diff --git a/css/@logicflow_core@2.0-BC0aJRlU.css b/css/@logicflow_core@2.0-BC0aJRlU.css new file mode 100644 index 00000000..6a7ce7dc --- /dev/null +++ b/css/@logicflow_core@2.0-BC0aJRlU.css @@ -0,0 +1 @@ +.lf-graph{position:relative;z-index:0;width:100%;height:100%;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lf-element-text{cursor:text}.lf-text-disabled{pointer-events:none}.lf-text-draggable{cursor:move}*:focus{outline:none}.lf-node-anchor{cursor:crosshair}.lf-node-anchor-hover{visibility:hidden}.lf-anchor:hover .lf-node-anchor-hover{visibility:visible}.lf-edge.pointer-none{pointer-events:none}.lf-edge-append{cursor:pointer}.lf-edge-animation{stroke-dashoffset:100%;-webkit-animation:lf_animate_dash 5s linear infinite;animation:lf_animate_dash 5s linear infinite}@-webkit-keyframes lf_animate_dash{to{stroke-dashoffset:0}}@keyframes lf_animate_dash{to{stroke-dashoffset:0}}.lf-node-not-allow{cursor:not-allowed}.lf-polyline-append-ns-resize{cursor:ns-resize}.lf-polyline-append-ew-resize{cursor:ew-resize}.lf-dragging,.lf-dragging .lf-element-text{cursor:move}.lf-draggable{cursor:default}.lf-bezier-adjust-anchor{cursor:pointer}.lf-background,.lf-grid{position:absolute;inset:0;z-index:-1}.lf-background-area{width:100%;height:100%}.lf-html-overlay{position:absolute;inset:0;z-index:1;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.lf-html-overlay__transform>*{pointer-events:all}.lf-text-editable{pointer-events:all}.lf-text-input{position:absolute;box-sizing:border-box;min-width:100px;min-height:20px;padding:5px;line-height:1.2;white-space:pre;text-align:center;background:#fff;border:1px solid #edefed;border-radius:3px;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);resize:none}.lf-get-text-height{display:inline-block;box-sizing:border-box;word-break:break-all;border:1px solid transparent}.lf-node-text-auto-wrap{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box}.lf-node-text-auto-wrap-content{width:100%;line-height:1.2;text-align:center;word-break:break-all;background:transparent}.lf-node-text-ellipsis-content{width:100%;line-height:1.2;white-space:nowrap;text-align:center;background:transparent}.lf-node-text-ellipsis-content>div{overflow:hidden;text-overflow:ellipsis}.lf-tool-overlay{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}.lf-tool-overlay>*{pointer-events:all}.modification-overlay{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}.modification-overlay>*{pointer-events:all}.lf-outline,.lf-snapline{pointer-events:none}.lf-keyboard-tips{float:right}.lf-node-select-decorate{position:absolute;border:1px dashed #343435;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.lf-multiple-select{position:absolute;border:2px dashed #187dffcc;box-shadow:0 0 3px #187dff80;cursor:move}.lf-edge-adjust-point{cursor:move}.lf-rotate-control{cursor:-webkit-grabbing;cursor:grabbing}.lf-resize-control-nw{cursor:nw-resize}.lf-resize-control-n{cursor:n-resize}.lf-resize-control-ne{cursor:ne-resize}.lf-resize-control-e{cursor:e-resize}.lf-resize-control-se{cursor:se-resize}.lf-resize-control-s{cursor:s-resize}.lf-resize-control-sw{cursor:sw-resize}.lf-resize-control-w{cursor:w-resize} diff --git a/css/@logicflow_core@2.0-BC0aJRlU.css.gz b/css/@logicflow_core@2.0-BC0aJRlU.css.gz new file mode 100644 index 00000000..22ef5e62 Binary files /dev/null and b/css/@logicflow_core@2.0-BC0aJRlU.css.gz differ diff --git a/css/@logicflow_core@2.0-Z6H4Q2Ml.css b/css/@logicflow_core@2.0-Z6H4Q2Ml.css deleted file mode 100644 index 6ad2400a..00000000 --- a/css/@logicflow_core@2.0-Z6H4Q2Ml.css +++ /dev/null @@ -1 +0,0 @@ -.lf-graph{position:relative;z-index:0;width:100%;height:100%;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lf-element-text{cursor:text}.lf-text-disabled{pointer-events:none}.lf-text-draggable{cursor:move}*:focus{outline:none}.lf-node-anchor{cursor:crosshair}.lf-node-anchor-hover{visibility:hidden}.lf-anchor:hover .lf-node-anchor-hover{visibility:visible}.lf-edge.pointer-none{pointer-events:none}.lf-edge-append{cursor:pointer}.lf-edge-animation{stroke-dashoffset:100%;-webkit-animation:lf_animate_dash 5s linear infinite;animation:lf_animate_dash 5s linear infinite}@-webkit-keyframes lf_animate_dash{to{stroke-dashoffset:0}}@keyframes lf_animate_dash{to{stroke-dashoffset:0}}.lf-node-not-allow{cursor:not-allowed}.lf-polyline-append-ns-resize{cursor:ns-resize}.lf-polyline-append-ew-resize{cursor:ew-resize}.lf-dragging,.lf-dragging .lf-element-text{cursor:move}.lf-draggable{cursor:default}.lf-bezier-adjust-anchor{cursor:pointer}.lf-background,.lf-grid{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.lf-background-area{width:100%;height:100%}.lf-html-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.lf-html-overlay__transform>*{pointer-events:all}.lf-text-editable{pointer-events:all}.lf-text-input{position:absolute;box-sizing:border-box;min-width:100px;min-height:20px;padding:5px;line-height:1.2;white-space:pre;text-align:center;background:#fff;border:1px solid #edefed;border-radius:3px;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);resize:none}.lf-get-text-height{display:inline-block;box-sizing:border-box;word-break:break-all;border:1px solid transparent}.lf-node-text-auto-wrap{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box}.lf-node-text-auto-wrap-content{width:100%;line-height:1.2;text-align:center;word-break:break-all;background:transparent}.lf-node-text-ellipsis-content{width:100%;line-height:1.2;white-space:nowrap;text-align:center;background:transparent}.lf-node-text-ellipsis-content>div{overflow:hidden;text-overflow:ellipsis}.lf-tool-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;overflow:hidden;pointer-events:none}.lf-tool-overlay>*{pointer-events:all}.modification-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;pointer-events:none}.modification-overlay>*{pointer-events:all}.lf-outline,.lf-snapline{pointer-events:none}.lf-keyboard-tips{float:right}.lf-node-select-decorate{position:absolute;border:1px dashed #343435;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.lf-multiple-select{position:absolute;border:2px dashed #187dffcc;box-shadow:0 0 3px #187dff80;cursor:move}.lf-edge-adjust-point{cursor:move}.lf-rotate-control{cursor:-webkit-grabbing;cursor:grabbing}.lf-resize-control-nw{cursor:nw-resize}.lf-resize-control-n{cursor:n-resize}.lf-resize-control-ne{cursor:ne-resize}.lf-resize-control-e{cursor:e-resize}.lf-resize-control-se{cursor:se-resize}.lf-resize-control-s{cursor:s-resize}.lf-resize-control-sw{cursor:sw-resize}.lf-resize-control-w{cursor:w-resize} diff --git a/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz b/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz deleted file mode 100644 index 174ac919..00000000 Binary files a/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz and /dev/null differ diff --git a/css/hooks-BSaw1srN.css b/css/hooks-BSaw1srN.css new file mode 100644 index 00000000..2f5ce5cf --- /dev/null +++ b/css/hooks-BSaw1srN.css @@ -0,0 +1 @@ +.n-card.r-draggable-card{-webkit-transform-origin:0 0;transform-origin:0 0;position:absolute;width:var(--r-draggable-card-width);z-index:var(--r-draggable-card-z-index)}#r-draggable-card-container{position:fixed;top:0;left:0;width:0;height:0}.draggable-card-enter-active,.draggable-card-leave-active{-webkit-transition:opacity .3s var(--r-bezier);transition:opacity .3s var(--r-bezier)}.draggable-card-enter-from,.draggable-card-leave-to{opacity:0}.ray-chart{width:var(--r-chart-width);height:var(--r-chart-height);border:none;outline:none;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;box-sizing:border-box}.ray-collapse-grid{box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ray-collapse-grid .ray-collapse-grid__suffix--btn{-webkit-align-self:var(--r-collapse-grid-action-align);align-self:var(--r-collapse-grid-action-align)}.r-icon{position:relative;width:var(--r-icon-width);height:var(--r-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:var(--r-icon-color);-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--r-icon-depth);cursor:var(--r-icon-cursor)}.r-icon svg[RIconAttribute=r-icon]{width:var(--r-icon-width);height:var(--r-icon-height);fill:currentColor}.r-icon-path__animate{stroke-dasharray:var(--r-icon-path-length);stroke-dashoffset:var(--r-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--r-iframe-width);height:var(--r-iframe-height);box-sizing:border-box;border:var(--r-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll;max-height:calc(var(--html-height) - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .r-icon.r-table__c-tool-icon--active{color:var(--r-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(4px);filter:blur(4px)}.r-barcode-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.r-barcode-container .r-barcode{width:100%;height:100%}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-barcode-spin:has(.r-barcode-container),.r-barcode-spin:has(.r-barcode-container) .n-spin-content{width:100%!important;height:100%!important}.r-flow{width:var(--r-flow-width);height:var(--r-flow-height)}.lf-text-input,.lf-control-text,.lf-menu-item{color:initial}.r-layout-full{position:fixed;inset:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:8px 16px}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .content-wrapper{width:100%;height:100%}.ray-template--light .r-layout-full__viewer-content{box-shadow:0 -1px 2px #0000001f}.ray-template--dark .r-layout-full__viewer-content{box-shadow:0 -1px 2px #000000b8}.app-lock-screen__content.app-lock-screen__content--full{width:100%;height:var(--html-height);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:24px 0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;inset:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:16.67rem;gap:80px;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{font-size:90px;padding:24px;border-radius:4px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:30px;background-color:#141313;font-weight:700;padding:80px;-webkit-filter:blur(4px);filter:blur(4px)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:5px;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:260px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:24px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.875rem;line-height:2.25rem}.ray-template--light .app-lock-screen__unlock__content-bg__wrapper{background-color:#fff!important}.ray-template--light .app-lock-screen__unlock__content-bg .left,.ray-template--light .app-lock-screen__unlock__content-bg .right{background-color:#f4f4f5!important}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{box-shadow:2px 0 8px #0000001f}.ray-template--dark .app-menu__sider{box-shadow:2px 0 8px #000000b8}.ray-menu__logo{height:64px;padding:0 18px 0 24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:8px 12px;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:80px;height:80px;border-radius:50%;cursor:pointer;z-index:99;right:-40px;top:-40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .r-icon{-webkit-transform:translate(-14px,14px);transform:translate(-14px,14px)}.ray-template--light .layout-content__maximize-out{background-color:#d5d3d1;color:#44403c}.ray-template--light .layout-content__maximize-out:hover{color:#2c2a28;background:#757473}.ray-template--dark .layout-content__maximize-out{background-color:#44403c;color:#d5d3d1}.ray-template--dark .layout-content__maximize-out:hover{color:#eae9e8;background:#a19f9d}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.menu-tag{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 0}.menu-tag .menu-tag-space{width:calc(100% - 18px);padding:0 18px}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 94px)}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{-webkit-transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier);transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier)}.menu-tag .menu-tag__btn .n-button__icon{opacity:0;width:0;height:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);margin-left:0;-webkit-transform:translateX(4px);transform:translate(4px)}.menu-tag .menu-tag__btn:hover .n-button__icon{opacity:1;width:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.ray-template--light .menu-tag__btn .menu-tag__btn-icon,.ray-template--dark .menu-tag__btn .menu-tag__btn-icon{border-radius:2px}.ray-template--light .menu-tag__btn .menu-tag__btn-icon:hover,.ray-template--dark .menu-tag__btn .menu-tag__btn-icon:hover{background-color:var(--n-color-hover)}.menu-tag__dropdown .menu-tag__icon{width:16px;height:16px}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{box-shadow:0 2px 2px #0000001f}.ray-template--dark .menu-tag{box-shadow:0 2px 2px #000000b8}.override-button__menu-tag{padding:0 6px}.layout-footer-wrapper{height:48px;text-align:center;line-height:48px}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{box-shadow:0 1px 2px #0000001f}.ray-template--dark .layout-header{box-shadow:0 1px 2px #000000b8}.override-button__layout{padding:0 9px}.global-search{position:fixed;width:650px;left:50%;margin-left:-325px;top:60px}.global-search .global-search__wrapper{box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:6px;min-width:560px}.global-search .global-search__wrapper .global-search__card .r-icon{color:var(--r-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:8px 12px}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:90px}.global-search .global-search__wrapper .global-search__card .content-item{padding:12px;border-radius:6px;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:24px;border-radius:4px;border:1px solid var(--n-border-color);padding:3px 6px;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--r-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:18px;height:18px;right:16px;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:22px;padding:0 6px;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translate(20px)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.n-form.setting-drawer__overrides-form .n-form-item .n-form-item-blank{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.tooltip-text__icon{cursor:pointer;outline:none;border:none} diff --git a/css/hooks-BSaw1srN.css.gz b/css/hooks-BSaw1srN.css.gz new file mode 100644 index 00000000..3e64c2ba Binary files /dev/null and b/css/hooks-BSaw1srN.css.gz differ diff --git a/css/hooks-CcIfdWpb.css b/css/hooks-CcIfdWpb.css deleted file mode 100644 index 362b33fb..00000000 --- a/css/hooks-CcIfdWpb.css +++ /dev/null @@ -1 +0,0 @@ -.n-card.r-draggable-card{-webkit-transform-origin:0 0;transform-origin:0 0;position:absolute;width:var(--r-draggable-card-width);z-index:var(--r-draggable-card-z-index)}#r-draggable-card-container{position:fixed;top:0;left:0;width:0;height:0}.draggable-card-enter-active,.draggable-card-leave-active{-webkit-transition:opacity .3s var(--r-bezier);transition:opacity .3s var(--r-bezier)}.draggable-card-enter-from,.draggable-card-leave-to{opacity:0}.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;box-sizing:border-box}.ray-collapse-grid{box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ray-collapse-grid .ray-collapse-grid__suffix--btn{-webkit-align-self:var(--r-collapse-grid-action-align);align-self:var(--r-collapse-grid-action-align)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:var(--ray-icon-color);-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll;max-height:calc(var(--html-height) - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(4px);filter:blur(4px)}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-flow{width:var(--r-flow-width);height:var(--r-flow-height)}.lf-text-input,.lf-control-text,.lf-menu-item{color:initial}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:8px 16px}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .content-wrapper{width:100%;height:100%}.ray-template--light .r-layout-full__viewer-content{box-shadow:0 -1px 2px #0000001f}.ray-template--dark .r-layout-full__viewer-content{box-shadow:0 -1px 2px #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{box-shadow:2px 0 8px #0000001f}.ray-template--dark .app-menu__sider{box-shadow:2px 0 8px #000000b8}.ray-menu__logo{height:64px;padding:0 18px 0 24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:8px 12px;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:80px;height:80px;border-radius:50%;cursor:pointer;z-index:99;right:-40px;top:-40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-14px,14px);transform:translate(-14px,14px)}.ray-template--light .layout-content__maximize-out{background-color:#d5d3d1;color:#44403c}.ray-template--light .layout-content__maximize-out:hover{color:#2c2a28;background:#757473}.ray-template--dark .layout-content__maximize-out{background-color:#44403c;color:#d5d3d1}.ray-template--dark .layout-content__maximize-out:hover{color:#eae9e8;background:#a19f9d}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:48px;text-align:center;line-height:48px}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{box-shadow:0 1px 2px #0000001f}.ray-template--dark .layout-header{box-shadow:0 1px 2px #000000b8}.override-button__layout{padding:0 9px}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.n-form.setting-drawer__overrides-form .n-form-item .n-form-item-blank{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translate(20px)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:650px;left:50%;margin-left:-325px;top:60px}.global-search .global-search__wrapper{box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:6px;min-width:560px}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:8px 12px}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:90px}.global-search .global-search__wrapper .global-search__card .content-item{padding:12px;border-radius:6px;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:24px;border-radius:4px;border:1px solid var(--n-border-color);padding:3px 6px;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:18px;height:18px;right:16px;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:22px;padding:0 6px;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.menu-tag{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 0}.menu-tag .menu-tag-space{width:calc(100% - 18px);padding:0 18px}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 94px)}.menu-tag .menu-tag-space .ray-icon,.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{-webkit-transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier);transition:color .3s var(--n-bezier),background-color .3s var(--n-bezier),opacity .3s var(--n-bezier),border-color .3s var(--n-bezier),width .3s var(--n-bezier)}.menu-tag .menu-tag__btn .n-button__icon{opacity:0;width:0;height:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);margin-left:0;-webkit-transform:translateX(4px);transform:translate(4px)}.menu-tag .menu-tag__btn:hover .n-button__icon{opacity:1;width:var(--n-icon-size);-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.ray-template--light .menu-tag__btn-icon:hover{-webkit-filter:brightness(1.2);filter:brightness(1.2)}.ray-template--dark .menu-tag__btn-icon:hover{-webkit-filter:brightness(.8);filter:brightness(.8)}.menu-tag__dropdown .menu-tag__icon{width:16px;height:16px}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{box-shadow:0 2px 2px #0000001f}.ray-template--dark .menu-tag{box-shadow:0 2px 2px #000000b8}.override-button__menu-tag{padding:0 6px}.app-lock-screen__content.app-lock-screen__content--full{width:100%;height:var(--html-height);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:24px 0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:16.67rem;gap:80px;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{font-size:90px;padding:24px;border-radius:4px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:30px;background-color:#141313;font-weight:700;padding:80px;-webkit-filter:blur(4px);filter:blur(4px)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:5px;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:260px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:24px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.875rem;line-height:2.25rem}.ray-template--light .app-lock-screen__unlock__content-bg__wrapper{background-color:#fff!important}.ray-template--light .app-lock-screen__unlock__content-bg .left,.ray-template--light .app-lock-screen__unlock__content-bg .right{background-color:#f4f4f5!important} diff --git a/css/hooks-CcIfdWpb.css.gz b/css/hooks-CcIfdWpb.css.gz deleted file mode 100644 index 5f1f29bb..00000000 Binary files a/css/hooks-CcIfdWpb.css.gz and /dev/null differ diff --git a/css/index-7EWYgCj5.css b/css/index-7EWYgCj5.css deleted file mode 100644 index c701c728..00000000 --- a/css/index-7EWYgCj5.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-30px);transform:translate(-30px)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translate(30px)}.scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.95);transform:scale(.95)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.03);transform:scale(1.03)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-bottom-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-15px);transform:translateY(-15px)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(15px);transform:translateY(15px)}.fade-scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.1);transform:scale(1.1)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.85);transform:scale(.85)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--ray-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:flex;gap:0 6px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 41px)}.r-menu--app .n-menu-item-content-header__extra{margin-right:8px}.n-date-picker,.n-input-number{width:100%}.n-flex.flex-vertical{height:100%}.printModal{font-family:sans-serif;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;font-weight:300;font-size:30px;left:0;top:0;position:absolute;color:#045fb4;width:100%;height:100%;background-color:#ffffffe6}.printClose{position:absolute;right:10px;top:10px}.printClose:before{content:"×";font-family:Helvetica Neue,sans-serif;font-weight:100;line-height:1px;padding-top:.5em;display:block;font-size:2em;text-indent:1px;overflow:hidden;height:1.25em;width:1.25em;text-align:center;cursor:pointer}.printSpinner{margin-top:3px;margin-left:-40px;position:absolute;display:inline-block;width:25px;height:25px;border:2px solid #045fb4;border-radius:50%;-webkit-animation:spin .75s infinite linear;animation:spin .75s infinite linear}.printSpinner:after,.printSpinner:before{left:-2px;top:-2px;display:none;position:absolute;content:"";width:inherit;height:inherit;border:inherit;border-radius:inherit}.printSpinner,.printSpinner:after,.printSpinner:before{display:inline-block;border-color:transparent;border-top-color:#045fb4;-webkit-animation-duration:1.2s;animation-duration:1.2s}.printSpinner:before{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.printSpinner:after{-webkit-transform:rotate(240deg);transform:rotate(240deg)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::-webkit-backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.grid{display:grid}.inline{display:inline}.block{display:block}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.flex{display:-webkit-box;display:-webkit-flex;display:flex}.table{display:table}.transform{-webkit-transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.resize{resize:both}.border{border-width:1px}.px{padding-left:1rem;padding-right:1rem}.pie{-webkit-padding-end:1rem;-moz-padding-end:1rem;padding-inline-end:1rem}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.blur{--un-blur:blur(8px);-webkit-filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.filter{-webkit-filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.ease-in-out{-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-7EWYgCj5.css.gz b/css/index-7EWYgCj5.css.gz deleted file mode 100644 index 94f7960e..00000000 Binary files a/css/index-7EWYgCj5.css.gz and /dev/null differ diff --git a/css/index-CCjd6kNA.css b/css/index-CCjd6kNA.css new file mode 100644 index 00000000..575f7ef1 --- /dev/null +++ b/css/index-CCjd6kNA.css @@ -0,0 +1 @@ +@charset "UTF-8";[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-30px);transform:translate(-30px)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translate(30px)}.scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.95);transform:scale(.95)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.03);transform:scale(1.03)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-bottom-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0);transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .35s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .35s cubic-bezier(.32,0,.67,0)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-15px);transform:translateY(-15px)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(15px);transform:translateY(15px)}.fade-scale-transform-enter-active{-webkit-transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1);transition:transform .35s cubic-bezier(.33,1,.68,1),opacity .25s cubic-bezier(.33,1,.68,1),-webkit-transform .35s cubic-bezier(.33,1,.68,1);-webkit-transition-delay:.25s;transition-delay:.25s}.fade-scale-transform-leave-active{-webkit-transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0);transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out;transition:transform .25s cubic-bezier(.32,0,.67,0),opacity .25s ease-out,-webkit-transform .25s cubic-bezier(.32,0,.67,0)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.1);transform:scale(1.1)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.85);transform:scale(.85)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--r-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:flex;gap:0 6px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 41px)}.r-menu--app .n-menu-item-content-header__extra{margin-right:8px}.n-date-picker,.n-input-number{width:100%}.n-flex.flex-vertical{height:100%}.printModal{font-family:sans-serif;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;font-weight:300;font-size:30px;left:0;top:0;position:absolute;color:#045fb4;width:100%;height:100%;background-color:#ffffffe6}.printClose{position:absolute;right:10px;top:10px}.printClose:before{content:"×";font-family:Helvetica Neue,sans-serif;font-weight:100;line-height:1px;padding-top:.5em;display:block;font-size:2em;text-indent:1px;overflow:hidden;height:1.25em;width:1.25em;text-align:center;cursor:pointer}.printSpinner{margin-top:3px;margin-left:-40px;position:absolute;display:inline-block;width:25px;height:25px;border:2px solid #045fb4;border-radius:50%;-webkit-animation:spin .75s infinite linear;animation:spin .75s infinite linear}.printSpinner:after,.printSpinner:before{left:-2px;top:-2px;display:none;position:absolute;content:"";width:inherit;height:inherit;border:inherit;border-radius:inherit}.printSpinner,.printSpinner:after,.printSpinner:before{display:inline-block;border-color:transparent;border-top-color:#045fb4;-webkit-animation-duration:1.2s;animation-duration:1.2s}.printSpinner:before{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.printSpinner:after{-webkit-transform:rotate(240deg);transform:rotate(240deg)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::-webkit-backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.grid{display:grid}.inline{display:inline}.block{display:block}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.flex{display:-webkit-box;display:-webkit-flex;display:flex}.table{display:table}.transform{-webkit-transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.resize{resize:both}.border{border-width:1px}.px{padding-left:1rem;padding-right:1rem}.pie{-webkit-padding-end:1rem;-moz-padding-end:1rem;padding-inline-end:1rem}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.blur{--un-blur:blur(8px);-webkit-filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.filter{-webkit-filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.ease-in-out{-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-CCjd6kNA.css.gz b/css/index-CCjd6kNA.css.gz new file mode 100644 index 00000000..2bebf029 Binary files /dev/null and b/css/index-CCjd6kNA.css.gz differ diff --git a/css/index-DId3lj_V.css.gz b/css/index-DId3lj_V.css.gz deleted file mode 100644 index 2e562b48..00000000 Binary files a/css/index-DId3lj_V.css.gz and /dev/null differ diff --git a/css/index-DId3lj_V.css b/css/index-DQkqgkwV.css similarity index 79% rename from css/index-DId3lj_V.css rename to css/index-DQkqgkwV.css index 66145b73..180356f1 100644 --- a/css/index-DId3lj_V.css +++ b/css/index-DQkqgkwV.css @@ -1 +1 @@ -.login{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden}.login .login-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";position:absolute;width:var(--login-height);height:2px;background:-webkit-linear-gradient(315deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),-webkit-linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background:linear-gradient(135deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background-size:1em 1em;background-repeat:repeat-x,repeat-x;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:0;transform-origin:0;left:50%}.login .login-wrapper .login-title__wrapper{position:absolute;left:24px;top:24px}.login .login-wrapper .login-action__wrapper{position:absolute;height:54.4px;right:24px;top:24px}.login .login-wrapper .login-copyright__wrapper{position:absolute;width:100%;text-align:center;bottom:24px;font-size:14px}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .n-grid{height:100%}.login .login-wrapper .login-wrapper__content .login__left-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier)}.login .login-wrapper .login-wrapper__content .login__right-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{width:50%;background-color:transparent}.ray-template--light .login__left-wrapper{background-color:#2080f038}.ray-template--light .login__right-wrapper{background-color:#fff}.ray-template--dark .login__left-wrapper{background-color:#2c354b}.ray-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (max-width: 1200px){.login__left-wrapper{display:none!important}}@media screen and (min-width: 768px) and (max-width: 992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (max-width: 768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{width:100%;height:240px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ray-template--light .sso-signing{color:#878787} +.login{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden}.login .login-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";position:absolute;width:var(--login-height);height:2px;background:-webkit-linear-gradient(315deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),-webkit-linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background:linear-gradient(135deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background-size:1em 1em;background-repeat:repeat-x,repeat-x;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:0;transform-origin:0;left:50%}.login .login-wrapper .login-title__wrapper{position:absolute;left:24px;top:24px}.login .login-wrapper .login-action__wrapper{position:absolute;height:54.4px;right:24px;top:24px}.login .login-wrapper .login-copyright__wrapper{position:absolute;width:100%;text-align:center;bottom:24px;font-size:14px}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .n-grid{height:100%}.login .login-wrapper .login-wrapper__content .login__left-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier)}.login .login-wrapper .login-wrapper__content .login__right-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{width:50%;background-color:transparent}.ray-template--light .login__left-wrapper{background-color:#2080f038}.ray-template--light .login__right-wrapper{background-color:#fff}.ray-template--dark .login__left-wrapper{background-color:#2c354b}.ray-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (max-width:1200px){.login__left-wrapper{display:none!important}}@media screen and (min-width:768px)and (max-width:992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (max-width:768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{width:100%;height:240px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ray-template--light .sso-signing{color:#878787} diff --git a/css/index-DQkqgkwV.css.gz b/css/index-DQkqgkwV.css.gz new file mode 100644 index 00000000..0e369ef2 Binary files /dev/null and b/css/index-DQkqgkwV.css.gz differ diff --git a/css/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8-B14JuMU_.css b/css/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9-B14JuMU_.css similarity index 100% rename from css/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8-B14JuMU_.css rename to css/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9-B14JuMU_.css diff --git a/css/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8-B14JuMU_.css.gz b/css/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9-B14JuMU_.css.gz similarity index 100% rename from css/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8-B14JuMU_.css.gz rename to css/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9-B14JuMU_.css.gz diff --git a/index.html b/index.html index 465ed7e1..266db6f0 100644 --- a/index.html +++ b/index.html @@ -8,74 +8,74 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + `}function c(e,n,t){const{styles:r,ids:s}=t;s.has(e)||r!==null&&(s.add(e),r.push(o(e,n)))}const d=typeof document<"u";function l(){if(d)return;const e=u(i,null);if(e!==null)return{adapter:(n,t)=>c(n,t,e),context:e}}export{l as u}; diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js.gz new file mode 100644 index 00000000..c2a605d9 Binary files /dev/null and b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js.gz differ diff --git a/js/@intlify_core-base@11.1.3-Cez6J5Vx.js b/js/@intlify_core-base@11.1.3-Cez6J5Vx.js new file mode 100644 index 00000000..89bf68ea --- /dev/null +++ b/js/@intlify_core-base@11.1.3-Cez6J5Vx.js @@ -0,0 +1 @@ +import{i as A,w as Re,a as u,b as w,c as S,d as N,e as K,f as I,g as le,h as P,j as V,k as ye,l as D,m as ee,n as pe,o as oe,p as ke,t as we,q as ve,r as We}from"./@intlify_shared@11.1.3-Byx4ULsF.js";import{c as Ue,C as Ve,d as $e,b as Ke}from"./@intlify_message-compiler@11.1.3-DphV8pYf.js";function Ge(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ye().__INTLIFY_PROD_DEVTOOLS__=!1)}function $(e){return P(e)&&te(e)===0&&(V(e,"b")||V(e,"body"))}const he=["b","body"];function Ye(e){return v(e,he)}const Ee=["c","cases"];function je(e){return v(e,Ee,[])}const Oe=["s","static"];function ze(e){return v(e,Oe)}const Te=["i","items"];function He(e){return v(e,Te,[])}const be=["t","type"];function te(e){return v(e,be)}const Ce=["v","value"];function z(e,t){const r=v(e,Ce);if(r!=null)return r;throw Y(t)}const Fe=["m","modifier"];function Be(e){return v(e,Fe)}const Se=["k","key"];function Ze(e){const t=v(e,Se);if(t)return t;throw Y(6)}function v(e,t,r){for(let n=0;nJe(r,e)}function Je(e,t){const r=Ye(t);if(r==null)throw Y(0);if(te(r)===1){const s=je(r);return e.plural(s.reduce((o,c)=>[...o,ie(e,c)],[]))}else return ie(e,r)}function ie(e,t){const r=ze(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=He(t).reduce((a,s)=>[...a,X(e,s)],[]);return e.normalize(n)}}function X(e,t){const r=te(t);switch(r){case 3:return z(t,r);case 9:return z(t,r);case 4:{const n=t;if(V(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(V(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Y(r)}case 5:{const n=t;if(V(n,"i")&&D(n.i))return e.interpolate(e.list(n.i));if(V(n,"index")&&D(n.index))return e.interpolate(e.list(n.index));throw Y(r)}case 6:{const n=t,a=Be(n),s=Ze(n);return e.linked(X(e,s),a?X(e,a):void 0,e.type)}case 7:return z(t,r);case 8:return z(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const Qe=e=>e;let H=N();function Xe(e,t={}){let r=!1;const n=t.onError||$e;return t.onError=a=>{r=!0,n(a)},{...Ke(e,t),detectError:r}}function vt(e,t){if(u(e)){I(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||Qe)(e),a=H[n];if(a)return a;const{ast:s,detectError:o}=Xe(e,{...t,location:!1,jit:!0}),c=q(s);return o?c:H[n]=c}else{const r=e.cacheKey;if(r){const n=H[r];return n||(H[r]=q(e))}else return q(e)}}let j=null;function Wt(e){j=e}function xe(e,t,r){j&&j.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const et=tt("function:translate");function tt(e){return t=>j&&j.emit(e,t)}const p={INVALID_ARGUMENT:Ve,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ut=24;function k(e){return Ue(e,null,void 0)}function re(e,t){return t.locale!=null?ce(t.locale):ce(e.locale)}let J;function ce(e){if(u(e))return e;if(A(e)){if(e.resolvedOnce&&J!=null)return J;if(e.constructor.name==="Function"){const t=e();if(ve(t))throw k(p.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return J=t}else throw k(p.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw k(p.NOT_SUPPORT_LOCALE_TYPE)}function rt(e,t,r){return[...new Set([r,...w(t)?t:P(t)?Object.keys(t):u(t)?[t]:[r]])]}function Vt(e,t,r){const n=u(r)?r:x,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(n);if(!s){s=[];let o=[r];for(;w(o);)o=ue(s,o,t);const c=w(t)||!S(t)?t:t.default?t.default:null;o=u(c)?[c]:c,w(o)&&ue(s,o,!1),a.__localeChainCache.set(n,s)}return s}function ue(e,t,r){let n=!0;for(let a=0;a{o===void 0?o=c:o+=c},_[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},_[2]=()=>{_[0](),a++},_[3]=()=>{if(a>0)a--,n=4,_[0]();else{if(a=0,o===void 0||(o=ct(o),o===!1))return!1;_[1]()}};function g(){const T=e[r+1];if(n===5&&T==="'"||n===6&&T==='"')return r++,c="\\"+T,_[0](),!0}for(;n!==null;)if(r++,s=e[r],!(s==="\\"&&g())){if(l=it(s),h=W[n],i=h[l]||h.l||8,i===8||(n=i[0],i[1]!==void 0&&(d=_[i[1]],d&&(c=s,d()===!1))))return;if(n===7)return t}}const fe=new Map;function ft(e,t){return P(e)?e[t]:null}function $t(e,t){if(!P(e))return null;let r=fe.get(t);if(r||(r=ut(t),r&&fe.set(t,r)),!r)return null;const n=r.length;let a=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function dt(){return{upper:(e,t)=>t==="text"&&u(e)?e.toUpperCase():t==="vnode"&&P(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&u(e)?e.toLowerCase():t==="vnode"&&P(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&u(e)?me(e):t==="vnode"&&P(e)&&"__v_isVNode"in e?me(e.children):e}}let Le;function Gt(e){Le=e}let Ae;function Yt(e){Ae=e}let Pe;function jt(e){Pe=e}let De=null;const zt=e=>{De=e},_t=()=>De;let Ie=null;const Ht=e=>{Ie=e},Bt=()=>Ie;let de=0;function Zt(e={}){const t=A(e.onWarn)?e.onWarn:Re,r=u(e.version)?e.version:mt,n=u(e.locale)||A(e.locale)?e.locale:x,a=A(n)?x:n,s=w(e.fallbackLocale)||S(e.fallbackLocale)||u(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=S(e.messages)?e.messages:Q(a),c=S(e.datetimeFormats)?e.datetimeFormats:Q(a),l=S(e.numberFormats)?e.numberFormats:Q(a),i=K(N(),e.modifiers,dt()),d=e.pluralRules||N(),h=A(e.missing)?e.missing:null,_=I(e.missingWarn)||le(e.missingWarn)?e.missingWarn:!0,g=I(e.fallbackWarn)||le(e.fallbackWarn)?e.fallbackWarn:!0,T=!!e.fallbackFormat,b=!!e.unresolving,C=A(e.postTranslation)?e.postTranslation:null,m=S(e.processor)?e.processor:null,E=I(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,f=A(e.messageCompiler)?e.messageCompiler:Le,O=A(e.messageResolver)?e.messageResolver:Ae||ft,F=A(e.localeFallbacker)?e.localeFallbacker:Pe||rt,U=P(e.fallbackContext)?e.fallbackContext:void 0,M=e,B=P(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Z=P(M.__numberFormatters)?M.__numberFormatters:new Map,G=P(M.__meta)?M.__meta:{};de++;const y={version:r,cid:de,locale:n,fallbackLocale:s,messages:o,modifiers:i,pluralRules:d,missing:h,missingWarn:_,fallbackWarn:g,fallbackFormat:T,unresolving:b,postTranslation:C,processor:m,warnHtmlMessage:E,escapeParameter:L,messageCompiler:f,messageResolver:O,localeFallbacker:F,fallbackContext:U,onWarn:t,__meta:G};return y.datetimeFormats=c,y.numberFormats=l,y.__datetimeFormatters=B,y.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&xe(y,r,G),y}const Q=e=>({[e]:N()});function ae(e,t,r,n,a){const{missing:s,onWarn:o}=e;if(s!==null){const c=s(e,r,t,a);return u(c)?c:t}else return t}function qt(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function gt(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ht(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{Et.includes(l)?o[l]=r[l]:s[l]=r[l]}),u(n)?s.locale=n:S(n)&&(o=n),S(a)&&(o=a),[s.key||"",c,s,o]}function Qt(e,t,r){const n=e;for(const a in r){const s=`${t}__${a}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function Xt(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:c}=e,[l,i,d,h]=bt(...t),_=I(d.missingWarn)?d.missingWarn:e.missingWarn;I(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const g=!!d.part,T=re(e,d),b=o(e,a,T);if(!u(l)||l==="")return new Intl.NumberFormat(T,h).format(i);let C={},m,E=null;const L="number format";for(let F=0;F{Tt.includes(l)?o[l]=r[l]:s[l]=r[l]}),u(n)?s.locale=n:S(n)&&(o=n),S(a)&&(o=a),[s.key||"",c,s,o]}function xt(e,t,r){const n=e;for(const a in r){const s=`${t}__${a}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}const Ct=e=>e,Ft=e=>"",St="text",Lt=e=>e.length===0?"":ke(e),At=we;function _e(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Pt(e){const t=D(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(D(e.named.count)||D(e.named.n))?D(e.named.count)?e.named.count:D(e.named.n)?e.named.n:t:t}function Dt(e,t){t.count||(t.count=e),t.n||(t.n=e)}function It(e={}){const t=e.locale,r=Pt(e),n=P(e.pluralRules)&&u(t)&&A(e.pluralRules[t])?e.pluralRules[t]:_e,a=P(e.pluralRules)&&u(t)&&A(e.pluralRules[t])?_e:void 0,s=m=>m[n(r,m.length,a)],o=e.list||[],c=m=>o[m],l=e.named||N();D(e.pluralIndex)&&Dt(r,l);const i=m=>l[m];function d(m,E){const L=A(e.messages)?e.messages(m,!!E):P(e.messages)?e.messages[m]:!1;return L||(e.parent?e.parent.message(m):Ft)}const h=m=>e.modifiers?e.modifiers[m]:Ct,_=S(e.processor)&&A(e.processor.normalize)?e.processor.normalize:Lt,g=S(e.processor)&&A(e.processor.interpolate)?e.processor.interpolate:At,T=S(e.processor)&&u(e.processor.type)?e.processor.type:St,C={list:c,named:i,plural:s,linked:(m,...E)=>{const[L,f]=E;let O="text",F="";E.length===1?P(L)?(F=L.modifier||F,O=L.type||O):u(L)&&(F=L||F):E.length===2&&(u(L)&&(F=L||F),u(f)&&(O=f||O));const U=d(m,!0)(C),M=O==="vnode"&&w(U)&&F?U[0]:U;return F?h(F)(M,O):M},message:d,type:T,interpolate:g,normalize:_,values:K(N(),o,l)};return C}const ge=()=>"",R=e=>A(e);function er(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:c}=e,[l,i]=Rt(...t),d=I(i.missingWarn)?i.missingWarn:e.missingWarn,h=I(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,_=I(i.escapeParameter)?i.escapeParameter:e.escapeParameter,g=!!i.resolvedMessage,T=u(i.default)||I(i.default)?I(i.default)?s?l:()=>l:i.default:r?s?l:()=>l:null,b=r||T!=null&&(u(T)||A(T)),C=re(e,i);_&&Nt(i);let[m,E,L]=g?[l,C,c[C]||N()]:Ne(e,l,C,o,h,d),f=m,O=l;if(!g&&!(u(f)||$(f)||R(f))&&b&&(f=T,O=f),!g&&(!(u(f)||$(f)||R(f))||!u(E)))return a?ne:l;let F=!1;const U=()=>{F=!0},M=R(f)?f:Me(e,l,E,f,O,U);if(F)return f;const B=pt(e,E,L,i),Z=It(B),G=Mt(e,M,Z),y=n?n(G,l):G;if(__INTLIFY_PROD_DEVTOOLS__){const se={timestamp:Date.now(),key:u(l)?l:R(f)?f.key:"",locale:E||(R(f)?f.locale:""),format:u(f)?f:R(f)?f.source:"",message:y};se.meta=K({},e.__meta,_t()||{}),et(se)}return y}function Nt(e){w(e.list)?e.list=e.list.map(t=>u(t)?oe(t):t):P(e.named)&&Object.keys(e.named).forEach(t=>{u(e.named[t])&&(e.named[t]=oe(e.named[t]))})}function Ne(e,t,r,n,a,s){const{messages:o,onWarn:c,messageResolver:l,localeFallbacker:i}=e,d=i(e,n,r);let h=N(),_,g=null;const T="translate";for(let b=0;bn);return i.locale=r,i.key=t,i}const l=o(n,yt(e,r,a,n,c,s));return l.locale=r,l.key=t,l.source=n,l}function Mt(e,t,r){return t(r)}function Rt(...e){const[t,r,n]=e,a=N();if(!u(t)&&!D(t)&&!R(t)&&!$(t))throw k(p.INVALID_ARGUMENT);const s=D(t)?String(t):(R(t),t);return D(r)?a.plural=r:u(r)?a.default=r:S(r)&&!ee(r)?a.named=r:w(r)&&(a.list=r),D(n)?a.plural=n:u(n)?a.default=n:S(n)&&K(a,n),[s,a]}function yt(e,t,r,n,a,s){return{locale:t,key:r,warnHtmlMessage:a,onError:o=>{throw s&&s(o),o},onCacheKey:o=>We(t,r,o)}}function pt(e,t,r,n){const{modifiers:a,pluralRules:s,messageResolver:o,fallbackLocale:c,fallbackWarn:l,missingWarn:i,fallbackContext:d}=e,_={locale:t,modifiers:a,pluralRules:s,messages:(g,T)=>{let b=o(r,g);if(b==null&&(d||T)){const[,,C]=Ne(d||e,g,t,c,l,i);b=o(C,g)}if(u(b)||$(b)){let C=!1;const E=Me(e,g,t,b,g,()=>{C=!0});return C?ge:E}else return R(b)?b:ge}};return e.processor&&(_.processor=e.processor),n.list&&(_.list=n.list),n.named&&(_.named=n.named),D(n.plural)&&(_.pluralIndex=n.plural),_}Ge();export{qe as A,Ut as C,x as D,Kt as M,ne as N,Qt as a,xt as b,Zt as c,Ht as d,Ot as e,Vt as f,Bt as g,Jt as h,$ as i,bt as j,R as k,Tt as l,Et as m,Xt as n,Yt as o,Rt as p,jt as q,Gt as r,zt as s,er as t,qt as u,Wt as v,vt as w,$t as x}; diff --git a/js/@intlify_core-base@11.1.3-Cez6J5Vx.js.gz b/js/@intlify_core-base@11.1.3-Cez6J5Vx.js.gz new file mode 100644 index 00000000..c46e8ec6 Binary files /dev/null and b/js/@intlify_core-base@11.1.3-Cez6J5Vx.js.gz differ diff --git a/js/@intlify_core-base@9.13.1-BNWv53cz.js b/js/@intlify_core-base@9.13.1-BNWv53cz.js deleted file mode 100644 index f74404de..00000000 --- a/js/@intlify_core-base@9.13.1-BNWv53cz.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as F,w as Ce,a as o,b as P,c as b,d as V,e as D,f as te,g as L,h as me,j as be,k as I,l as q,m as Ae,n as ae,o as Ne,t as Fe,p as Le,q as Me}from"./@intlify_shared@9.13.1-CM6R_CZ5.js";import{C as De,a as Ie,c as Se,d as pe,b as ye}from"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";/*! - * core-base v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function Re(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}const w=[];w[0]={w:[0],i:[3,0],"[":[4],o:[7]};w[1]={w:[1],".":[2],"[":[4],o:[7]};w[2]={w:[2],i:[3,0],0:[3,0]};w[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};w[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};w[5]={"'":[4,0],o:8,l:[5,0]};w[6]={'"':[4,0],o:8,l:[6,0]};const ke=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Pe(e){return ke.test(e)}function we(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function ve(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function We(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Pe(t)?we(t):"*"+t}function Ue(e){const t=[];let r=-1,a=0,n=0,s,c,u,l,i,_,E;const d=[];d[0]=()=>{c===void 0?c=u:c+=u},d[1]=()=>{c!==void 0&&(t.push(c),c=void 0)},d[2]=()=>{d[0](),n++},d[3]=()=>{if(n>0)n--,a=4,d[0]();else{if(n=0,c===void 0||(c=We(c),c===!1))return!1;d[1]()}};function g(){const T=e[r+1];if(a===5&&T==="'"||a===6&&T==='"')return r++,u="\\"+T,d[0](),!0}for(;a!==null;)if(r++,s=e[r],!(s==="\\"&&g())){if(l=ve(s),E=w[a],i=E[l]||E.l||8,i===8||(a=i[0],i[1]!==void 0&&(_=d[i[1]],_&&(u=s,_()===!1))))return;if(a===7)return t}}const re=new Map;function Ve(e,t){return L(e)?e[t]:null}function Ct(e,t){if(!L(e))return null;let r=re.get(t);if(r||(r=Ue(t),r&&re.set(t,r)),!r)return null;const a=r.length;let n=e,s=0;for(;se,Ge=e=>"",Ke="text",je=e=>e.length===0?"":Ne(e),Ye=Fe;function ne(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ze(e){const t=I(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(I(e.named.count)||I(e.named.n))?I(e.named.count)?e.named.count:I(e.named.n)?e.named.n:t:t}function Be(e,t){t.count||(t.count=e),t.n||(t.n=e)}function He(e={}){const t=e.locale,r=ze(e),a=L(e.pluralRules)&&o(t)&&F(e.pluralRules[t])?e.pluralRules[t]:ne,n=L(e.pluralRules)&&o(t)&&F(e.pluralRules[t])?ne:void 0,s=f=>f[a(r,f.length,n)],c=e.list||[],u=f=>c[f],l=e.named||{};I(e.pluralIndex)&&Be(r,l);const i=f=>l[f];function _(f){const O=F(e.messages)?e.messages(f):L(e.messages)?e.messages[f]:!1;return O||(e.parent?e.parent.message(f):Ge)}const E=f=>e.modifiers?e.modifiers[f]:$e,d=b(e.processor)&&F(e.processor.normalize)?e.processor.normalize:je,g=b(e.processor)&&F(e.processor.interpolate)?e.processor.interpolate:Ye,T=b(e.processor)&&o(e.processor.type)?e.processor.type:Ke,N={list:u,named:i,plural:s,linked:(f,...O)=>{const[M,m]=O;let h="text",C="";O.length===1?L(M)?(C=M.modifier||C,h=M.type||h):o(M)&&(C=M||C):O.length===2&&(o(M)&&(C=M||C),o(m)&&(h=m||h));const v=_(f)(N),S=h==="vnode"&&P(v)&&C?v[0]:v;return C?E(C)(S,h):S},message:_,type:T,interpolate:g,normalize:d,values:V({},c,l)};return N}let G=null;function bt(e){G=e}function Xe(e,t,r){G&&G.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const Ze=qe("function:translate");function qe(e){return t=>G&&G.emit(e,t)}const xe=De.__EXTEND_POINT__,W=me(xe),At={FALLBACK_TO_TRANSLATE:W(),CANNOT_FORMAT_NUMBER:W(),FALLBACK_TO_NUMBER_FORMAT:W(),CANNOT_FORMAT_DATE:W(),FALLBACK_TO_DATE_FORMAT:W(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:W(),__EXTEND_POINT__:W()},fe=Ie.__EXTEND_POINT__,U=me(fe),R={INVALID_ARGUMENT:fe,INVALID_DATE_ARGUMENT:U(),INVALID_ISO_DATE_ARGUMENT:U(),NOT_SUPPORT_NON_STRING_MESSAGE:U(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:U(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:U(),NOT_SUPPORT_LOCALE_TYPE:U(),__EXTEND_POINT__:U()};function k(e){return Se(e,null,void 0)}function x(e,t){return t.locale!=null?se(t.locale):se(e.locale)}let B;function se(e){if(o(e))return e;if(F(e)){if(e.resolvedOnce&&B!=null)return B;if(e.constructor.name==="Function"){const t=e();if(Le(t))throw k(R.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return B=t}else throw k(R.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw k(R.NOT_SUPPORT_LOCALE_TYPE)}function Je(e,t,r){return[...new Set([r,...P(t)?t:L(t)?Object.keys(t):o(t)?[t]:[r]])]}function Nt(e,t,r){const a=o(r)?r:X,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let s=n.__localeChainCache.get(a);if(!s){s=[];let c=[r];for(;P(c);)c=le(s,c,t);const u=P(t)||!b(t)?t:t.default?t.default:null;c=o(u)?[u]:u,P(c)&&le(s,c,!1),n.__localeChainCache.set(a,s)}return s}function le(e,t,r){let a=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function at(){return{upper:(e,t)=>t==="text"&&o(e)?e.toUpperCase():t==="vnode"&&L(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&o(e)?e.toLowerCase():t==="vnode"&&L(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&o(e)?ce(e):t==="vnode"&&L(e)&&"__v_isVNode"in e?ce(e.children):e}}let _e;function Lt(e){_e=e}let de;function Mt(e){de=e}let ge;function Dt(e){ge=e}let Te=null;const It=e=>{Te=e},rt=()=>Te;let Ee=null;const St=e=>{Ee=e},pt=()=>Ee;let ie=0;function yt(e={}){const t=F(e.onWarn)?e.onWarn:Ce,r=o(e.version)?e.version:tt,a=o(e.locale)||F(e.locale)?e.locale:X,n=F(a)?X:a,s=P(e.fallbackLocale)||b(e.fallbackLocale)||o(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,c=b(e.messages)?e.messages:{[n]:{}},u=b(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=b(e.numberFormats)?e.numberFormats:{[n]:{}},i=V({},e.modifiers||{},at()),_=e.pluralRules||{},E=F(e.missing)?e.missing:null,d=D(e.missingWarn)||te(e.missingWarn)?e.missingWarn:!0,g=D(e.fallbackWarn)||te(e.fallbackWarn)?e.fallbackWarn:!0,T=!!e.fallbackFormat,A=!!e.unresolving,N=F(e.postTranslation)?e.postTranslation:null,f=b(e.processor)?e.processor:null,O=D(e.warnHtmlMessage)?e.warnHtmlMessage:!0,M=!!e.escapeParameter,m=F(e.messageCompiler)?e.messageCompiler:_e,h=F(e.messageResolver)?e.messageResolver:de||Ve,C=F(e.localeFallbacker)?e.localeFallbacker:ge||Je,v=L(e.fallbackContext)?e.fallbackContext:void 0,S=e,Y=L(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,z=L(S.__numberFormatters)?S.__numberFormatters:new Map,$=L(S.__meta)?S.__meta:{};ie++;const y={version:r,cid:ie,locale:a,fallbackLocale:s,messages:c,modifiers:i,pluralRules:_,missing:E,missingWarn:d,fallbackWarn:g,fallbackFormat:T,unresolving:A,postTranslation:N,processor:f,warnHtmlMessage:O,escapeParameter:M,messageCompiler:m,messageResolver:h,localeFallbacker:C,fallbackContext:v,onWarn:t,__meta:$};return y.datetimeFormats=u,y.numberFormats=l,y.__datetimeFormatters=Y,y.__numberFormatters=z,__INTLIFY_PROD_DEVTOOLS__&&Xe(y,r,$),y}function Q(e,t,r,a,n){const{missing:s,onWarn:c}=e;if(s!==null){const u=s(e,r,t,n);return o(u)?u:t}else return t}function Rt(e,t,r){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function nt(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function st(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let a=r+1;alt(r,e)}function lt(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const a=r,n=a.c||a.cases;return e.plural(n.reduce((s,c)=>[...s,oe(e,c)],[]))}else return oe(e,r)}function oe(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const a=(t.i||t.items).reduce((n,s)=>[...n,Z(e,s)],[]);return e.normalize(a)}}function Z(e,t){const r=t.t||t.type;switch(r){case 3:{const a=t;return a.v||a.value}case 9:{const a=t;return a.v||a.value}case 4:{const a=t;return e.interpolate(e.named(a.k||a.key))}case 5:{const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index))}case 6:{const a=t,n=a.m||a.modifier;return e.linked(Z(e,a.k||a.key),n?Z(e,n):void 0,e.type)}case 7:{const a=t;return a.v||a.value}case 8:{const a=t;return a.v||a.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const ct=e=>e;let j=Object.create(null);const K=e=>L(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function it(e,t={}){let r=!1;const a=t.onError||pe;return t.onError=n=>{r=!0,a(n)},{...ye(e,t),detectError:r}}function kt(e,t){if(o(e)){D(t.warnHtmlMessage)&&t.warnHtmlMessage;const a=(t.onCacheKey||ct)(e),n=j[a];if(n)return n;const{ast:s,detectError:c}=it(e,{...t,location:!1,jit:!0}),u=H(s);return c?u:j[a]=u}else{const r=e.cacheKey;if(r){const a=j[r];return a||(j[r]=H(e))}else return H(e)}}const ue=()=>"",p=e=>F(e);function Pt(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:n,messageCompiler:s,fallbackLocale:c,messages:u}=e,[l,i]=mt(...t),_=D(i.missingWarn)?i.missingWarn:e.missingWarn,E=D(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,d=D(i.escapeParameter)?i.escapeParameter:e.escapeParameter,g=!!i.resolvedMessage,T=o(i.default)||D(i.default)?D(i.default)?s?l:()=>l:i.default:r?s?l:()=>l:"",A=r||T!=="",N=x(e,i);d&&ot(i);let[f,O,M]=g?[l,N,u[N]||{}]:Oe(e,l,N,c,E,_),m=f,h=l;if(!g&&!(o(m)||K(m)||p(m))&&A&&(m=T,h=m),!g&&(!(o(m)||K(m)||p(m))||!o(O)))return n?J:l;let C=!1;const v=()=>{C=!0},S=p(m)?m:he(e,l,O,m,h,v);if(C)return m;const Y=_t(e,O,M,i),z=He(Y),$=ut(e,S,z),y=a?a($,l):$;if(__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:o(l)?l:p(m)?m.key:"",locale:O||(p(m)?m.locale:""),format:o(m)?m:p(m)?m.source:"",message:y};ee.meta=V({},e.__meta,rt()||{}),Ze(ee)}return y}function ot(e){P(e.list)?e.list=e.list.map(t=>o(t)?ae(t):t):L(e.named)&&Object.keys(e.named).forEach(t=>{o(e.named[t])&&(e.named[t]=ae(e.named[t]))})}function Oe(e,t,r,a,n,s){const{messages:c,onWarn:u,messageResolver:l,localeFallbacker:i}=e,_=i(e,a,r);let E={},d,g=null;const T="translate";for(let A=0;A<_.length&&(d=_[A],E=c[d]||{},(g=l(E,t))===null&&(g=E[t]),!(o(g)||K(g)||p(g)));A++)if(!st(d,_)){const N=Q(e,t,d,s,T);N!==t&&(g=N)}return[g,d,E]}function he(e,t,r,a,n,s){const{messageCompiler:c,warnHtmlMessage:u}=e;if(p(a)){const i=a;return i.locale=i.locale||r,i.key=i.key||t,i}if(c==null){const i=()=>a;return i.locale=r,i.key=t,i}const l=c(a,ft(e,r,n,a,u,s));return l.locale=r,l.key=t,l.source=a,l}function ut(e,t,r){return t(r)}function mt(...e){const[t,r,a]=e,n={};if(!o(t)&&!I(t)&&!p(t)&&!K(t))throw k(R.INVALID_ARGUMENT);const s=I(t)?String(t):(p(t),t);return I(r)?n.plural=r:o(r)?n.default=r:b(r)&&!q(r)?n.named=r:P(r)&&(n.list=r),I(a)?n.plural=a:o(a)?n.default=a:b(a)&&V(n,a),[s,n]}function ft(e,t,r,a,n,s){return{locale:t,key:r,warnHtmlMessage:n,onError:c=>{throw s&&s(c),c},onCacheKey:c=>Me(t,r,c)}}function _t(e,t,r,a){const{modifiers:n,pluralRules:s,messageResolver:c,fallbackLocale:u,fallbackWarn:l,missingWarn:i,fallbackContext:_}=e,d={locale:t,modifiers:n,pluralRules:s,messages:g=>{let T=c(r,g);if(T==null&&_){const[,,A]=Oe(_,g,t,u,l,i);T=c(A,g)}if(o(T)||K(T)){let A=!1;const f=he(e,g,t,T,g,()=>{A=!0});return A?ue:f}else return p(T)?T:ue}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),I(a.plural)&&(d.pluralIndex=a.plural),d}function wt(e,...t){const{datetimeFormats:r,unresolving:a,fallbackLocale:n,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:u}=e,[l,i,_,E]=gt(...t),d=D(_.missingWarn)?_.missingWarn:e.missingWarn;D(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn;const g=!!_.part,T=x(e,_),A=c(e,n,T);if(!o(l)||l==="")return new Intl.DateTimeFormat(T,E).format(i);let N={},f,O=null;const M="datetime format";for(let C=0;C{dt.includes(l)?c[l]=r[l]:s[l]=r[l]}),o(a)?s.locale=a:b(a)&&(c=a),b(n)&&(c=n),[s.key||"",u,s,c]}function vt(e,t,r){const a=e;for(const n in r){const s=`${t}__${n}`;a.__datetimeFormatters.has(s)&&a.__datetimeFormatters.delete(s)}}function Wt(e,...t){const{numberFormats:r,unresolving:a,fallbackLocale:n,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:u}=e,[l,i,_,E]=Et(...t),d=D(_.missingWarn)?_.missingWarn:e.missingWarn;D(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn;const g=!!_.part,T=x(e,_),A=c(e,n,T);if(!o(l)||l==="")return new Intl.NumberFormat(T,E).format(i);let N={},f,O=null;const M="number format";for(let C=0;C{Tt.includes(l)?c[l]=r[l]:s[l]=r[l]}),o(a)?s.locale=a:b(a)&&(c=a),b(n)&&(c=n),[s.key||"",u,s,c]}function Ut(e,t,r){const a=e;for(const n in r){const s=`${t}__${n}`;a.__numberFormatters.has(s)&&a.__numberFormatters.delete(s)}}Re();export{R as C,X as D,Ft as M,J as N,vt as a,Ut as b,yt as c,St as d,gt as e,Nt as f,pt as g,wt as h,Et as i,K as j,p as k,Tt as l,dt as m,Wt as n,Mt as o,mt as p,Dt as q,Lt as r,It as s,Pt as t,Rt as u,bt as v,At as w,kt as x,Ct as y}; diff --git a/js/@intlify_core-base@9.13.1-BNWv53cz.js.gz b/js/@intlify_core-base@9.13.1-BNWv53cz.js.gz deleted file mode 100644 index 114aabc5..00000000 Binary files a/js/@intlify_core-base@9.13.1-BNWv53cz.js.gz and /dev/null differ diff --git a/js/@intlify_message-compiler@11.1.3-DphV8pYf.js b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js new file mode 100644 index 00000000..ccc0c335 --- /dev/null +++ b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js @@ -0,0 +1,3 @@ +import{e as te,a as j,p as ne}from"./@intlify_shared@11.1.3-Byx4ULsF.js";function ke(r,n,c){return{line:r,column:n,offset:c}}function J(r,n,c){return{start:r,end:n}}const h={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Be=17;function re(r,n,c={}){const{domain:a,messages:p,args:u}=c,T=r,_=new SyntaxError(String(T));return _.code=r,n&&(_.location=n),_.domain=a,_}function Ve(r){throw r}const X=" ",Ae="\r",b=` +`,Pe="\u2028",ye="\u2029";function me(r){const n=r;let c=0,a=1,p=1,u=0;const T=N=>n[N]===Ae&&n[N+1]===b,_=N=>n[N]===b,k=N=>n[N]===ye,m=N=>n[N]===Pe,D=N=>T(N)||_(N)||k(N)||m(N),A=()=>c,I=()=>a,v=()=>p,U=()=>u,S=N=>T(N)||k(N)||m(N)?b:n[N],C=()=>S(c),s=()=>S(c+u);function l(){return u=0,D(c)&&(a++,p=0),T(c)&&c++,c++,p++,n[c]}function d(){return T(c+u)&&u++,u++,n[c+u]}function o(){c=0,a=1,p=1,u=0}function E(N=0){u=N}function L(){const N=c+u;for(;N!==c;)l();u=0}return{index:A,line:I,column:v,peekOffset:U,charAt:S,currentChar:C,currentPeek:s,next:l,peek:d,reset:o,resetPeek:E,skipToPeek:L}}const $=void 0,Oe=".",Z="'",be="tokenizer";function De(r,n={}){const c=n.location!==!1,a=me(r),p=()=>a.index(),u=()=>ke(a.line(),a.column(),a.index()),T=u(),_=p(),k={currentType:13,offset:_,startLoc:T,endLoc:T,lastType:13,lastOffset:_,lastStartLoc:T,lastEndLoc:T,braceNest:0,inLinked:!1,text:""},m=()=>k,{onError:D}=n;function A(e,t,i,...f){const P=m();if(t.column+=i,t.offset+=i,D){const y=c?J(P.startLoc,t):null,R=re(e,y,{domain:be,args:f});D(R)}}function I(e,t,i){e.endLoc=u(),e.currentType=t;const f={type:t};return c&&(f.loc=J(e.startLoc,e.endLoc)),i!=null&&(f.value=i),f}const v=e=>I(e,13);function U(e,t){return e.currentChar()===t?(e.next(),t):(A(h.EXPECTED_TOKEN,u(),0,t),"")}function S(e){let t="";for(;e.currentPeek()===X||e.currentPeek()===b;)t+=e.currentPeek(),e.peek();return t}function C(e){const t=S(e);return e.skipToPeek(),t}function s(e){if(e===$)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function l(e){if(e===$)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function d(e,t){const{currentType:i}=t;if(i!==2)return!1;S(e);const f=s(e.currentPeek());return e.resetPeek(),f}function o(e,t){const{currentType:i}=t;if(i!==2)return!1;S(e);const f=e.currentPeek()==="-"?e.peek():e.currentPeek(),P=l(f);return e.resetPeek(),P}function E(e,t){const{currentType:i}=t;if(i!==2)return!1;S(e);const f=e.currentPeek()===Z;return e.resetPeek(),f}function L(e,t){const{currentType:i}=t;if(i!==7)return!1;S(e);const f=e.currentPeek()===".";return e.resetPeek(),f}function N(e,t){const{currentType:i}=t;if(i!==8)return!1;S(e);const f=s(e.currentPeek());return e.resetPeek(),f}function w(e,t){const{currentType:i}=t;if(!(i===7||i===11))return!1;S(e);const f=e.currentPeek()===":";return e.resetPeek(),f}function O(e,t){const{currentType:i}=t;if(i!==9)return!1;const f=()=>{const y=e.currentPeek();return y==="{"?s(e.peek()):y==="@"||y==="|"||y===":"||y==="."||y===X||!y?!1:y===b?(e.peek(),f()):G(e,!1)},P=f();return e.resetPeek(),P}function g(e){S(e);const t=e.currentPeek()==="|";return e.resetPeek(),t}function G(e,t=!0){const i=(P=!1,y="")=>{const R=e.currentPeek();return R==="{"||R==="@"||!R?P:R==="|"?!(y===X||y===b):R===X?(e.peek(),i(!0,X)):R===b?(e.peek(),i(!0,b)):!0},f=i();return t&&e.resetPeek(),f}function K(e,t){const i=e.currentChar();return i===$?$:t(i)?(e.next(),i):null}function se(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ie(e){return K(e,se)}function ce(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ue(e){return K(e,ce)}function ae(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function oe(e){return K(e,ae)}function le(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function fe(e){return K(e,le)}function W(e){let t="",i="";for(;t=oe(e);)i+=t;return i}function de(e){let t="";for(;;){const i=e.currentChar();if(i==="{"||i==="}"||i==="@"||i==="|"||!i)break;if(i===X||i===b)if(G(e))t+=i,e.next();else{if(g(e))break;t+=i,e.next()}else t+=i,e.next()}return t}function Ee(e){C(e);let t="",i="";for(;t=ue(e);)i+=t;return e.currentChar()===$&&A(h.UNTERMINATED_CLOSING_BRACE,u(),0),i}function Le(e){C(e);let t="";return e.currentChar()==="-"?(e.next(),t+=`-${W(e)}`):t+=W(e),e.currentChar()===$&&A(h.UNTERMINATED_CLOSING_BRACE,u(),0),t}function pe(e){return e!==Z&&e!==b}function Ne(e){C(e),U(e,"'");let t="",i="";for(;t=K(e,pe);)t==="\\"?i+=_e(e):i+=t;const f=e.currentChar();return f===b||f===$?(A(h.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,u(),0),f===b&&(e.next(),U(e,"'")),i):(U(e,"'"),i)}function _e(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return q(e,t,4);case"U":return q(e,t,6);default:return A(h.UNKNOWN_ESCAPE_SEQUENCE,u(),0,t),""}}function q(e,t,i){U(e,t);let f="";for(let P=0;P{const f=e.currentChar();return f==="{"||f==="@"||f==="|"||f==="("||f===")"||!f||f===X?i:(i+=f,e.next(),t(i))};return t("")}function F(e){C(e);const t=U(e,"|");return C(e),t}function B(e,t){let i=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&A(h.NOT_ALLOW_NEST_PLACEHOLDER,u(),0),e.next(),i=I(t,2,"{"),C(e),t.braceNest++,i;case"}":return t.braceNest>0&&t.currentType===2&&A(h.EMPTY_PLACEHOLDER,u(),0),e.next(),i=I(t,3,"}"),t.braceNest--,t.braceNest>0&&C(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),i;case"@":return t.braceNest>0&&A(h.UNTERMINATED_CLOSING_BRACE,u(),0),i=H(e,t)||v(t),t.braceNest=0,i;default:{let P=!0,y=!0,R=!0;if(g(e))return t.braceNest>0&&A(h.UNTERMINATED_CLOSING_BRACE,u(),0),i=I(t,1,F(e)),t.braceNest=0,t.inLinked=!1,i;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return A(h.UNTERMINATED_CLOSING_BRACE,u(),0),t.braceNest=0,V(e,t);if(P=d(e,t))return i=I(t,4,Ee(e)),C(e),i;if(y=o(e,t))return i=I(t,5,Le(e)),C(e),i;if(R=E(e,t))return i=I(t,6,Ne(e)),C(e),i;if(!P&&!y&&!R)return i=I(t,12,Ce(e)),A(h.INVALID_TOKEN_IN_PLACEHOLDER,u(),0,i.value),C(e),i;break}}return i}function H(e,t){const{currentType:i}=t;let f=null;const P=e.currentChar();switch((i===7||i===8||i===11||i===9)&&(P===b||P===X)&&A(h.INVALID_LINKED_FORMAT,u(),0),P){case"@":return e.next(),f=I(t,7,"@"),t.inLinked=!0,f;case".":return C(e),e.next(),I(t,8,".");case":":return C(e),e.next(),I(t,9,":");default:return g(e)?(f=I(t,1,F(e)),t.braceNest=0,t.inLinked=!1,f):L(e,t)||w(e,t)?(C(e),H(e,t)):N(e,t)?(C(e),I(t,11,Te(e))):O(e,t)?(C(e),P==="{"?B(e,t)||f:I(t,10,Ie(e))):(i===7&&A(h.INVALID_LINKED_FORMAT,u(),0),t.braceNest=0,t.inLinked=!1,V(e,t))}}function V(e,t){let i={type:13};if(t.braceNest>0)return B(e,t)||v(t);if(t.inLinked)return H(e,t)||v(t);switch(e.currentChar()){case"{":return B(e,t)||v(t);case"}":return A(h.UNBALANCED_CLOSING_BRACE,u(),0),e.next(),I(t,3,"}");case"@":return H(e,t)||v(t);default:{if(g(e))return i=I(t,1,F(e)),t.braceNest=0,t.inLinked=!1,i;if(G(e))return I(t,0,de(e));break}}return i}function Se(){const{currentType:e,offset:t,startLoc:i,endLoc:f}=k;return k.lastType=e,k.lastOffset=t,k.lastStartLoc=i,k.lastEndLoc=f,k.offset=p(),k.startLoc=u(),a.currentChar()===$?I(k,13):V(a,k)}return{nextToken:Se,currentOffset:p,currentPosition:u,context:m}}const ve="parser",Re=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ue(r,n,c){switch(r){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(n||c,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Me(r={}){const n=r.location!==!1,{onError:c}=r;function a(s,l,d,o,...E){const L=s.currentPosition();if(L.offset+=o,L.column+=o,c){const N=n?J(d,L):null,w=re(l,N,{domain:ve,args:E});c(w)}}function p(s,l,d){const o={type:s};return n&&(o.start=l,o.end=l,o.loc={start:d,end:d}),o}function u(s,l,d,o){n&&(s.end=l,s.loc&&(s.loc.end=d))}function T(s,l){const d=s.context(),o=p(3,d.offset,d.startLoc);return o.value=l,u(o,s.currentOffset(),s.currentPosition()),o}function _(s,l){const d=s.context(),{lastOffset:o,lastStartLoc:E}=d,L=p(5,o,E);return L.index=parseInt(l,10),s.nextToken(),u(L,s.currentOffset(),s.currentPosition()),L}function k(s,l){const d=s.context(),{lastOffset:o,lastStartLoc:E}=d,L=p(4,o,E);return L.key=l,s.nextToken(),u(L,s.currentOffset(),s.currentPosition()),L}function m(s,l){const d=s.context(),{lastOffset:o,lastStartLoc:E}=d,L=p(9,o,E);return L.value=l.replace(Re,Ue),s.nextToken(),u(L,s.currentOffset(),s.currentPosition()),L}function D(s){const l=s.nextToken(),d=s.context(),{lastOffset:o,lastStartLoc:E}=d,L=p(8,o,E);return l.type!==11?(a(s,h.UNEXPECTED_EMPTY_LINKED_MODIFIER,d.lastStartLoc,0),L.value="",u(L,o,E),{nextConsumeToken:l,node:L}):(l.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,M(l)),L.value=l.value||"",u(L,s.currentOffset(),s.currentPosition()),{node:L})}function A(s,l){const d=s.context(),o=p(7,d.offset,d.startLoc);return o.value=l,u(o,s.currentOffset(),s.currentPosition()),o}function I(s){const l=s.context(),d=p(6,l.offset,l.startLoc);let o=s.nextToken();if(o.type===8){const E=D(s);d.modifier=E.node,o=E.nextConsumeToken||s.nextToken()}switch(o.type!==9&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(o)),o=s.nextToken(),o.type===2&&(o=s.nextToken()),o.type){case 10:o.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(o)),d.key=A(s,o.value||"");break;case 4:o.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(o)),d.key=k(s,o.value||"");break;case 5:o.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(o)),d.key=_(s,o.value||"");break;case 6:o.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(o)),d.key=m(s,o.value||"");break;default:{a(s,h.UNEXPECTED_EMPTY_LINKED_KEY,l.lastStartLoc,0);const E=s.context(),L=p(7,E.offset,E.startLoc);return L.value="",u(L,E.offset,E.startLoc),d.key=L,u(d,E.offset,E.startLoc),{nextConsumeToken:o,node:d}}}return u(d,s.currentOffset(),s.currentPosition()),{node:d}}function v(s){const l=s.context(),d=l.currentType===1?s.currentOffset():l.offset,o=l.currentType===1?l.endLoc:l.startLoc,E=p(2,d,o);E.items=[];let L=null;do{const O=L||s.nextToken();switch(L=null,O.type){case 0:O.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(O)),E.items.push(T(s,O.value||""));break;case 5:O.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(O)),E.items.push(_(s,O.value||""));break;case 4:O.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(O)),E.items.push(k(s,O.value||""));break;case 6:O.value==null&&a(s,h.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,M(O)),E.items.push(m(s,O.value||""));break;case 7:{const g=I(s);E.items.push(g.node),L=g.nextConsumeToken||null;break}}}while(l.currentType!==13&&l.currentType!==1);const N=l.currentType===1?l.lastOffset:s.currentOffset(),w=l.currentType===1?l.lastEndLoc:s.currentPosition();return u(E,N,w),E}function U(s,l,d,o){const E=s.context();let L=o.items.length===0;const N=p(1,l,d);N.cases=[],N.cases.push(o);do{const w=v(s);L||(L=w.items.length===0),N.cases.push(w)}while(E.currentType!==13);return L&&a(s,h.MUST_HAVE_MESSAGES_IN_PLURAL,d,0),u(N,s.currentOffset(),s.currentPosition()),N}function S(s){const l=s.context(),{offset:d,startLoc:o}=l,E=v(s);return l.currentType===13?E:U(s,d,o,E)}function C(s){const l=De(s,te({},r)),d=l.context(),o=p(0,d.offset,d.startLoc);return n&&o.loc&&(o.loc.source=s),o.body=S(l),r.onCacheKey&&(o.cacheKey=r.onCacheKey(s)),d.currentType!==13&&a(l,h.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,s[d.offset]||""),u(o,l.currentOffset(),l.currentPosition()),o}return{parse:C}}function M(r){if(r.type===13)return"EOF";const n=(r.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function Xe(r,n={}){const c={ast:r,helpers:new Set};return{context:()=>c,helper:u=>(c.helpers.add(u),u)}}function z(r,n){for(let c=0;cee(c)),r}function ee(r){if(r.items.length===1){const n=r.items[0];(n.type===3||n.type===9)&&(r.static=n.value,delete n.value)}else{const n=[];for(let c=0;cT;function k(S,C){T.code+=S}function m(S,C=!0){const s=C?a:"";k(p?s+" ".repeat(S):s)}function D(S=!0){const C=++T.indentLevel;S&&m(C)}function A(S=!0){const C=--T.indentLevel;S&&m(C)}function I(){m(T.indentLevel)}return{context:_,push:k,indent:D,deindent:A,newline:I,helper:S=>`_${S}`,needIndent:()=>T.needIndent}}function Ke(r,n){const{helper:c}=r;r.push(`${c("linked")}(`),x(r,n.key),n.modifier?(r.push(", "),x(r,n.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function Ye(r,n){const{helper:c,needIndent:a}=r;r.push(`${c("normalize")}([`),r.indent(a());const p=n.items.length;for(let u=0;u1){r.push(`${c("plural")}([`),r.indent(a());const p=n.cases.length;for(let u=0;u{const c=j(n.mode)?n.mode:"normal",a=j(n.filename)?n.filename:"message.intl";n.sourceMap;const p=n.breakLineCode!=null?n.breakLineCode:c==="arrow"?";":` +`,u=n.needIndent?n.needIndent:c!=="arrow",T=r.helpers||[],_=ge(r,{filename:a,breakLineCode:p,needIndent:u});_.push(c==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(u),T.length>0&&(_.push(`const { ${ne(T.map(D=>`${D}: _${D}`),", ")} } = ctx`),_.newline()),_.push("return "),x(_,r),_.deindent(u),_.push("}"),delete r.helpers;const{code:k,map:m}=_.context();return{ast:r,code:k,map:m?m.toJSON():void 0}};function Je(r,n={}){const c=te({},n),a=!!c.jit,p=!!c.minify,u=c.optimize==null?!0:c.optimize,_=Me(c).parse(r);return a?(u&&$e(_),p&&Y(_),{ast:_,code:""}):(we(_,c),Ge(_,c))}export{Be as C,Je as b,re as c,Ve as d}; diff --git a/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz new file mode 100644 index 00000000..56ad9ccb Binary files /dev/null and b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz differ diff --git a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js b/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js deleted file mode 100644 index 3378ab8c..00000000 --- a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * message-compiler v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function me(r,n,u){return{line:r,column:n,offset:u}}function B(r,n,u){return{start:r,end:n}}const ye=/\{([0-9a-zA-Z]+)\}/g;function se(r,...n){return n.length===1&&be(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),r.replace(ye,(u,o)=>n.hasOwnProperty(o)?n[o]:"")}const ue=Object.assign,te=r=>typeof r=="string",be=r=>r!==null&&typeof r=="object";function ce(r,n=""){return r.reduce((u,o,N)=>N===0?u+o:u+n+o,"")}const ae={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ue={[ae.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Re(r,n,...u){const o=se(Ue[r],...u||[]),N={message:String(o),code:r};return n&&(N.location=n),N}const L={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Me={[L.EXPECTED_TOKEN]:"Expected token: '{0}'",[L.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[L.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[L.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[L.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[L.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[L.EMPTY_PLACEHOLDER]:"Empty placeholder",[L.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[L.INVALID_LINKED_FORMAT]:"Invalid linked format",[L.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[L.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[L.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[L.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[L.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[L.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function V(r,n,u={}){const{domain:o,messages:N,args:f}=u,h=se((N||Me)[r]||"",...f||[]),_=new SyntaxError(String(h));return _.code=r,n&&(_.location=n),_.domain=o,_}function nt(r){throw r}const Y=" ",ve="\r",y=` -`,Xe="\u2028",we="\u2029";function Ye(r){const n=r;let u=0,o=1,N=1,f=0;const h=l=>n[l]===ve&&n[l+1]===y,_=l=>n[l]===y,O=l=>n[l]===we,m=l=>n[l]===Xe,b=l=>h(l)||_(l)||O(l)||m(l),S=()=>u,I=()=>o,M=()=>N,v=()=>f,T=l=>h(l)||O(l)||m(l)?y:n[l],C=()=>T(u),X=()=>T(u+f);function x(){return f=0,b(u)&&(o++,N=0),h(u)&&u++,u++,N++,n[u]}function s(){return h(u+f)&&f++,f++,n[u+f]}function a(){u=0,o=1,N=1,f=0}function d(l=0){f=l}function c(){const l=u+f;for(;l!==u;)x();f=0}return{index:S,line:I,column:M,peekOffset:v,charAt:T,currentChar:C,currentPeek:X,next:x,peek:s,reset:a,resetPeek:d,skipToPeek:c}}const K=void 0,ge=".",ne="'",Ke="tokenizer";function He(r,n={}){const u=n.location!==!1,o=Ye(r),N=()=>o.index(),f=()=>me(o.line(),o.column(),o.index()),h=f(),_=N(),O={currentType:14,offset:_,startLoc:h,endLoc:h,lastType:14,lastOffset:_,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},m=()=>O,{onError:b}=n;function S(e,t,i,...E){const k=m();if(t.column+=i,t.offset+=i,b){const A=u?B(k.startLoc,t):null,g=V(e,A,{domain:Ke,args:E});b(g)}}function I(e,t,i){e.endLoc=f(),e.currentType=t;const E={type:t};return u&&(E.loc=B(e.startLoc,e.endLoc)),i!=null&&(E.value=i),E}const M=e=>I(e,14);function v(e,t){return e.currentChar()===t?(e.next(),t):(S(L.EXPECTED_TOKEN,f(),0,t),"")}function T(e){let t="";for(;e.currentPeek()===Y||e.currentPeek()===y;)t+=e.currentPeek(),e.peek();return t}function C(e){const t=T(e);return e.skipToPeek(),t}function X(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function x(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function s(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=X(e.currentPeek());return e.resetPeek(),E}function a(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=e.currentPeek()==="-"?e.peek():e.currentPeek(),k=x(E);return e.resetPeek(),k}function d(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=e.currentPeek()===ne;return e.resetPeek(),E}function c(e,t){const{currentType:i}=t;if(i!==8)return!1;T(e);const E=e.currentPeek()===".";return e.resetPeek(),E}function l(e,t){const{currentType:i}=t;if(i!==9)return!1;T(e);const E=X(e.currentPeek());return e.resetPeek(),E}function p(e,t){const{currentType:i}=t;if(!(i===8||i===12))return!1;T(e);const E=e.currentPeek()===":";return e.resetPeek(),E}function P(e,t){const{currentType:i}=t;if(i!==10)return!1;const E=()=>{const A=e.currentPeek();return A==="{"?X(e.peek()):A==="@"||A==="%"||A==="|"||A===":"||A==="."||A===Y||!A?!1:A===y?(e.peek(),E()):D(e,!1)},k=E();return e.resetPeek(),k}function U(e){T(e);const t=e.currentPeek()==="|";return e.resetPeek(),t}function W(e){const t=T(e),i=e.currentPeek()==="%"&&e.peek()==="{";return e.resetPeek(),{isModulo:i,hasSpace:t.length>0}}function D(e,t=!0){const i=(k=!1,A="",g=!1)=>{const H=e.currentPeek();return H==="{"?A==="%"?!1:k:H==="@"||!H?A==="%"?!0:k:H==="%"?(e.peek(),i(k,"%",!0)):H==="|"?A==="%"||g?!0:!(A===Y||A===y):H===Y?(e.peek(),i(!0,Y,g)):H===y?(e.peek(),i(!0,y,g)):!0},E=i();return t&&e.resetPeek(),E}function w(e,t){const i=e.currentChar();return i===K?K:t(i)?(e.next(),i):null}function oe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function le(e){return w(e,oe)}function fe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function Ee(e){return w(e,fe)}function de(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function Le(e){return w(e,de)}function Ne(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function _e(e){return w(e,Ne)}function Z(e){let t="",i="";for(;t=Le(e);)i+=t;return i}function pe(e){C(e);const t=e.currentChar();return t!=="%"&&S(L.EXPECTED_TOKEN,f(),0,t),e.next(),"%"}function z(e){let t="";for(;;){const i=e.currentChar();if(i==="{"||i==="}"||i==="@"||i==="|"||!i)break;if(i==="%")if(D(e))t+=i,e.next();else break;else if(i===Y||i===y)if(D(e))t+=i,e.next();else{if(U(e))break;t+=i,e.next()}else t+=i,e.next()}return t}function he(e){C(e);let t="",i="";for(;t=Ee(e);)i+=t;return e.currentChar()===K&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i}function Ce(e){C(e);let t="";return e.currentChar()==="-"?(e.next(),t+=`-${Z(e)}`):t+=Z(e),e.currentChar()===K&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),t}function Ie(e){return e!==ne&&e!==y}function Te(e){C(e),v(e,"'");let t="",i="";for(;t=w(e,Ie);)t==="\\"?i+=Ae(e):i+=t;const E=e.currentChar();return E===y||E===K?(S(L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,f(),0),E===y&&(e.next(),v(e,"'")),i):(v(e,"'"),i)}function Ae(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ee(e,t,4);case"U":return ee(e,t,6);default:return S(L.UNKNOWN_ESCAPE_SEQUENCE,f(),0,t),""}}function ee(e,t,i){v(e,t);let E="";for(let k=0;k{const E=e.currentChar();return E==="{"||E==="%"||E==="@"||E==="|"||E==="("||E===")"||!E||E===Y?i:(i+=E,e.next(),t(i))};return t("")}function Q(e){C(e);const t=v(e,"|");return C(e),t}function q(e,t){let i=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&S(L.NOT_ALLOW_NEST_PLACEHOLDER,f(),0),e.next(),i=I(t,2,"{"),C(e),t.braceNest++,i;case"}":return t.braceNest>0&&t.currentType===2&&S(L.EMPTY_PLACEHOLDER,f(),0),e.next(),i=I(t,3,"}"),t.braceNest--,t.braceNest>0&&C(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),i;case"@":return t.braceNest>0&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=F(e,t)||M(t),t.braceNest=0,i;default:{let k=!0,A=!0,g=!0;if(U(e))return t.braceNest>0&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;if(t.braceNest>0&&(t.currentType===5||t.currentType===6||t.currentType===7))return S(L.UNTERMINATED_CLOSING_BRACE,f(),0),t.braceNest=0,j(e,t);if(k=s(e,t))return i=I(t,5,he(e)),C(e),i;if(A=a(e,t))return i=I(t,6,Ce(e)),C(e),i;if(g=d(e,t))return i=I(t,7,Te(e)),C(e),i;if(!k&&!A&&!g)return i=I(t,13,ke(e)),S(L.INVALID_TOKEN_IN_PLACEHOLDER,f(),0,i.value),C(e),i;break}}return i}function F(e,t){const{currentType:i}=t;let E=null;const k=e.currentChar();switch((i===8||i===9||i===12||i===10)&&(k===y||k===Y)&&S(L.INVALID_LINKED_FORMAT,f(),0),k){case"@":return e.next(),E=I(t,8,"@"),t.inLinked=!0,E;case".":return C(e),e.next(),I(t,9,".");case":":return C(e),e.next(),I(t,10,":");default:return U(e)?(E=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,E):c(e,t)||p(e,t)?(C(e),F(e,t)):l(e,t)?(C(e),I(t,12,Pe(e))):P(e,t)?(C(e),k==="{"?q(e,t)||E:I(t,11,Oe(e))):(i===8&&S(L.INVALID_LINKED_FORMAT,f(),0),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let i={type:14};if(t.braceNest>0)return q(e,t)||M(t);if(t.inLinked)return F(e,t)||M(t);switch(e.currentChar()){case"{":return q(e,t)||M(t);case"}":return S(L.UNBALANCED_CLOSING_BRACE,f(),0),e.next(),I(t,3,"}");case"@":return F(e,t)||M(t);default:{if(U(e))return i=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;const{isModulo:k,hasSpace:A}=W(e);if(k)return A?I(t,0,z(e)):I(t,4,pe(e));if(D(e))return I(t,0,z(e));break}}return i}function De(){const{currentType:e,offset:t,startLoc:i,endLoc:E}=O;return O.lastType=e,O.lastOffset=t,O.lastStartLoc=i,O.lastEndLoc=E,O.offset=N(),O.startLoc=f(),o.currentChar()===K?I(O,14):j(o,O)}return{nextToken:De,currentOffset:N,currentPosition:f,context:m}}const xe="parser",$e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ge(r,n,u){switch(r){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(n||u,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function Fe(r={}){const n=r.location!==!1,{onError:u,onWarn:o}=r;function N(s,a,d,c,...l){const p=s.currentPosition();if(p.offset+=c,p.column+=c,u){const P=n?B(d,p):null,U=V(a,P,{domain:xe,args:l});u(U)}}function f(s,a,d,c,...l){const p=s.currentPosition();if(p.offset+=c,p.column+=c,o){const P=n?B(d,p):null;o(Re(a,P,l))}}function h(s,a,d){const c={type:s};return n&&(c.start=a,c.end=a,c.loc={start:d,end:d}),c}function _(s,a,d,c){n&&(s.end=a,s.loc&&(s.loc.end=d))}function O(s,a){const d=s.context(),c=h(3,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function m(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(5,c,l);return p.index=parseInt(a,10),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function b(s,a,d){const c=s.context(),{lastOffset:l,lastStartLoc:p}=c,P=h(4,l,p);return P.key=a,d===!0&&(P.modulo=!0),s.nextToken(),_(P,s.currentOffset(),s.currentPosition()),P}function S(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(9,c,l);return p.value=a.replace($e,Ge),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function I(s){const a=s.nextToken(),d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(8,c,l);return a.type!==12?(N(s,L.UNEXPECTED_EMPTY_LINKED_MODIFIER,d.lastStartLoc,0),p.value="",_(p,c,l),{nextConsumeToken:a,node:p}):(a.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,R(a)),p.value=a.value||"",_(p,s.currentOffset(),s.currentPosition()),{node:p})}function M(s,a){const d=s.context(),c=h(7,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function v(s){const a=s.context(),d=h(6,a.offset,a.startLoc);let c=s.nextToken();if(c.type===9){const l=I(s);d.modifier=l.node,c=l.nextConsumeToken||s.nextToken()}switch(c.type!==10&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),c=s.nextToken(),c.type===2&&(c=s.nextToken()),c.type){case 11:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=M(s,c.value||"");break;case 5:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=b(s,c.value||"");break;case 6:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=m(s,c.value||"");break;case 7:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=S(s,c.value||"");break;default:{N(s,L.UNEXPECTED_EMPTY_LINKED_KEY,a.lastStartLoc,0);const l=s.context(),p=h(7,l.offset,l.startLoc);return p.value="",_(p,l.offset,l.startLoc),d.key=p,_(d,l.offset,l.startLoc),{nextConsumeToken:c,node:d}}}return _(d,s.currentOffset(),s.currentPosition()),{node:d}}function T(s){const a=s.context(),d=a.currentType===1?s.currentOffset():a.offset,c=a.currentType===1?a.endLoc:a.startLoc,l=h(2,d,c);l.items=[];let p=null,P=null;do{const D=p||s.nextToken();switch(p=null,D.type){case 0:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(O(s,D.value||""));break;case 6:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(m(s,D.value||""));break;case 4:P=!0;break;case 5:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(b(s,D.value||"",!!P)),P&&(f(s,ae.USE_MODULO_SYNTAX,a.lastStartLoc,0,R(D)),P=null);break;case 7:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(S(s,D.value||""));break;case 8:{const w=v(s);l.items.push(w.node),p=w.nextConsumeToken||null;break}}}while(a.currentType!==14&&a.currentType!==1);const U=a.currentType===1?a.lastOffset:s.currentOffset(),W=a.currentType===1?a.lastEndLoc:s.currentPosition();return _(l,U,W),l}function C(s,a,d,c){const l=s.context();let p=c.items.length===0;const P=h(1,a,d);P.cases=[],P.cases.push(c);do{const U=T(s);p||(p=U.items.length===0),P.cases.push(U)}while(l.currentType!==14);return p&&N(s,L.MUST_HAVE_MESSAGES_IN_PLURAL,d,0),_(P,s.currentOffset(),s.currentPosition()),P}function X(s){const a=s.context(),{offset:d,startLoc:c}=a,l=T(s);return a.currentType===14?l:C(s,d,c,l)}function x(s){const a=He(s,ue({},r)),d=a.context(),c=h(0,d.offset,d.startLoc);return n&&c.loc&&(c.loc.source=s),c.body=X(a),r.onCacheKey&&(c.cacheKey=r.onCacheKey(s)),d.currentType!==14&&N(a,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,s[d.offset]||""),_(c,a.currentOffset(),a.currentPosition()),c}return{parse:x}}function R(r){if(r.type===14)return"EOF";const n=(r.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function Be(r,n={}){const u={ast:r,helpers:new Set};return{context:()=>u,helper:f=>(u.helpers.add(f),f)}}function re(r,n){for(let u=0;uie(u)),r}function ie(r){if(r.items.length===1){const n=r.items[0];(n.type===3||n.type===9)&&(r.static=n.value,delete n.value)}else{const n=[];for(let u=0;uh;function O(T,C){h.code+=T}function m(T,C=!0){const X=C?o:"";O(N?X+" ".repeat(T):X)}function b(T=!0){const C=++h.indentLevel;T&&m(C)}function S(T=!0){const C=--h.indentLevel;T&&m(C)}function I(){m(h.indentLevel)}return{context:_,push:O,indent:b,deindent:S,newline:I,helper:T=>`_${T}`,needIndent:()=>h.needIndent}}function Je(r,n){const{helper:u}=r;r.push(`${u("linked")}(`),G(r,n.key),n.modifier?(r.push(", "),G(r,n.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function Ze(r,n){const{helper:u,needIndent:o}=r;r.push(`${u("normalize")}([`),r.indent(o());const N=n.items.length;for(let f=0;f1){r.push(`${u("plural")}([`),r.indent(o());const N=n.cases.length;for(let f=0;f{const u=te(n.mode)?n.mode:"normal",o=te(n.filename)?n.filename:"message.intl";n.sourceMap;const N=n.breakLineCode!=null?n.breakLineCode:u==="arrow"?";":` -`,f=n.needIndent?n.needIndent:u!=="arrow",h=r.helpers||[],_=je(r,{filename:o,breakLineCode:N,needIndent:f});_.push(u==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(f),h.length>0&&(_.push(`const { ${ce(h.map(b=>`${b}: _${b}`),", ")} } = ctx`),_.newline()),_.push("return "),G(_,r),_.deindent(f),_.push("}"),delete r.helpers;const{code:O,map:m}=_.context();return{ast:r,code:O,map:m?m.toJSON():void 0}};function rt(r,n={}){const u=ue({},n),o=!!u.jit,N=!!u.minify,f=u.optimize==null?!0:u.optimize,_=Fe(u).parse(r);return o?(f&&We(_),N&&$(_),{ast:_,code:""}):(Ve(_,u),tt(_,u))}export{ae as C,L as a,rt as b,V as c,nt as d}; diff --git a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz b/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz deleted file mode 100644 index 20640a18..00000000 Binary files a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz and /dev/null differ diff --git a/js/@intlify_shared@11.1.3-Byx4ULsF.js b/js/@intlify_shared@11.1.3-Byx4ULsF.js new file mode 100644 index 00000000..eb80142e --- /dev/null +++ b/js/@intlify_shared@11.1.3-Byx4ULsF.js @@ -0,0 +1 @@ +const O=typeof window<"u",h=(t,e=!1)=>e?Symbol.for(t):Symbol(t),w=(t,e,o)=>y({l:t,k:e,s:o}),y=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),S=t=>typeof t=="number"&&isFinite(t),m=t=>a(t)==="[object Date]",A=t=>a(t)==="[object RegExp]",T=t=>b(t)&&Object.keys(t).length===0,_=Object.assign,d=Object.create,p=(t=null)=>d(t);let l;const E=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:p());function N(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const j=Object.prototype.hasOwnProperty;function P(t,e){return j.call(t,e)}const u=Array.isArray,f=t=>typeof t=="function",x=t=>typeof t=="string",D=t=>typeof t=="boolean",i=t=>t!==null&&typeof t=="object",F=t=>i(t)&&f(t.then)&&f(t.catch),g=Object.prototype.toString,a=t=>g.call(t),b=t=>a(t)==="[object Object]",J=t=>t==null?"":u(t)||b(t)&&t.toString===g?JSON.stringify(t,null,2):String(t);function q(t,e=""){return t.reduce((o,n,r)=>r===0?o+n:o+e+n,"")}function B(t,e){}const c=t=>!i(t)||u(t);function C(t,e){if(c(t)||c(e))throw new Error("Invalid value");const o=[{src:t,des:e}];for(;o.length;){const{src:n,des:r}=o.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(i(n[s])&&!i(r[s])&&(r[s]=Array.isArray(n[s])?[]:p()),c(r[s])||c(n[s])?r[s]=n[s]:o.push({src:n[s],des:r[s]}))})}}export{x as a,u as b,b as c,p as d,_ as e,D as f,A as g,i as h,f as i,P as j,E as k,S as l,T as m,m as n,N as o,q as p,F as q,w as r,h as s,J as t,O as u,C as v,B as w}; diff --git a/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz b/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz new file mode 100644 index 00000000..f1f786eb Binary files /dev/null and b/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz differ diff --git a/js/@intlify_shared@9.13.1-CM6R_CZ5.js b/js/@intlify_shared@9.13.1-CM6R_CZ5.js deleted file mode 100644 index 0c79e1aa..00000000 --- a/js/@intlify_shared@9.13.1-CM6R_CZ5.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * shared v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const d=typeof window<"u",O=(t,e=!1)=>e?Symbol.for(t):Symbol(t),h=(t,e,n)=>y({l:t,k:e,s:n}),y=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),j=t=>typeof t=="number"&&isFinite(t),w=t=>p(t)==="[object Date]",S=t=>p(t)==="[object RegExp]",m=t=>g(t)&&Object.keys(t).length===0,T=Object.assign;let a;const E=()=>a||(a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function N(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const b=Object.prototype.hasOwnProperty;function P(t,e){return b.call(t,e)}const f=Array.isArray,l=t=>typeof t=="function",A=t=>typeof t=="string",x=t=>typeof t=="boolean",i=t=>t!==null&&typeof t=="object",D=t=>i(t)&&l(t.then)&&l(t.catch),u=Object.prototype.toString,p=t=>u.call(t),g=t=>{if(!i(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},F=t=>t==null?"":f(t)||g(t)&&t.toString===u?JSON.stringify(t,null,2):String(t);function J(t,e=""){return t.reduce((n,o,r)=>r===0?n+o:n+e+o,"")}function k(t){let e=t;return()=>++e}function q(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const c=t=>!i(t)||f(t);function B(t,e){if(c(t)||c(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(s=>{c(o[s])||c(r[s])?r[s]=o[s]:n.push({src:o[s],des:r[s]})})}}export{A as a,f as b,g as c,T as d,x as e,S as f,i as g,k as h,l as i,E as j,j as k,m as l,w as m,N as n,J as o,D as p,h as q,O as r,d as s,F as t,B as u,P as v,q as w}; diff --git a/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz b/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz deleted file mode 100644 index 81760bfd..00000000 Binary files a/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz and /dev/null differ diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js deleted file mode 100644 index 61bd4dcb..00000000 --- a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js +++ /dev/null @@ -1 +0,0 @@ -var c=[],ne=function(){return c.some(function(e){return e.activeTargets.length>0})},oe=function(){return c.some(function(e){return e.skippedTargets.length>0})},P="ResizeObserver loop completed with undelivered notifications.",se=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:P}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=P),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},ae=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e}(),q=function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,s=t.right,o=t.bottom,h=t.left,d=t.width,v=t.height;return{x:r,y:i,top:n,right:s,bottom:o,left:h,width:d,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},G=function(e){if(C(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,s=n.offsetWidth,o=n.offsetHeight;return!(s||o||e.getClientRects().length)},I=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ve=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p=typeof window<"u"?window:{},z=new WeakMap,_=/auto|scroll/,ce=/^tb|vertical/,ue=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},f=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ae((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:f(),borderBoxSize:f(),contentBoxSize:f(),contentRect:new q(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),z.has(e)&&!t)return z.get(e);if(G(e))return z.set(e,W),W;var r=getComputedStyle(e),i=C(e)&&e.ownerSVGElement&&e.getBBox(),n=!ue&&r.boxSizing==="border-box",s=ce.test(r.writingMode||""),o=!i&&_.test(r.overflowY||""),h=!i&&_.test(r.overflowX||""),d=i?0:a(r.paddingTop),v=i?0:a(r.paddingRight),R=i?0:a(r.paddingBottom),l=i?0:a(r.paddingLeft),Q=i?0:a(r.borderTopWidth),Z=i?0:a(r.borderRightWidth),$=i?0:a(r.borderBottomWidth),j=i?0:a(r.borderLeftWidth),D=l+v,k=d+R,y=j+Z,T=Q+$,N=h?e.offsetHeight-T-e.clientHeight:0,A=o?e.offsetWidth-y-e.clientWidth:0,ee=n?D+y:0,te=n?k+T:0,g=i?i.width:a(r.width)-ee-A,x=i?i.height:a(r.height)-te-N,re=g+D+A+y,ie=x+k+N+T,M=u({devicePixelContentBoxSize:f(Math.round(g*devicePixelRatio),Math.round(x*devicePixelRatio),s),borderBoxSize:f(re,ie,s),contentBoxSize:f(g,x,s),contentRect:new q(l,d,g,x)});return z.set(e,M),M},U=function(e,t,r){var i=J(e,r),n=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return o;case b.BORDER_BOX:return n;default:return s}},he=function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e}(),Y=function(e){if(G(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},de=function(){var e=1/0,t=[];c.forEach(function(o){if(o.activeTargets.length!==0){var h=[];o.activeTargets.forEach(function(v){var R=new he(v.target),l=Y(v.target);h.push(R),v.lastReportedSize=U(v.target,v.observedBox),le?r.activeTargets.push(n):r.skippedTargets.push(n))})})},fe=function(){var e=0;for(L(e);ne();)e=de(),L(e);return oe()&&se(),e>0},m,K=[],le=function(){return K.splice(0).forEach(function(e){return e()})},pe=function(e){if(!m){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return le()}).observe(r,i),m=function(){r.textContent="".concat(t?t--:t++)}}K.push(e),m()},be=function(e){pe(function(){requestAnimationFrame(e)})},w=0,ge=function(){return!!w},xe=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],H=function(e){return e===void 0&&(e=0),Date.now()+e},B=!1,Ee=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=xe),!B){B=!0;var i=H(t);be(function(){var n=!1;try{n=fe()}finally{if(B=!1,t=i-H(),!ge())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ze)};document.body?r():p.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(r){return p.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(r){return p.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),S=new Ee,V=function(e){!w&&e>0&&S.start(),w+=e,!w&&S.stop()},Oe=function(e){return!C(e)&&!ve(e)&&getComputedStyle(e).display==="inline"},we=function(){function e(t,r){this.target=t,this.observedBox=r||b.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=U(this.target,this.observedBox,!0);return Oe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Re=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),E=new WeakMap,X=function(e,t){for(var r=0;r=0&&(s&&c.splice(c.indexOf(i),1),i.observationTargets.splice(n,1),V(-1))},e.disconnect=function(t){var r=this,i=E.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e}(),ye=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");O.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");O.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");O.unobserve(this,t)},e.prototype.disconnect=function(){O.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();export{ye as R}; diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz deleted file mode 100644 index 97527e61..00000000 Binary files a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz and /dev/null differ diff --git a/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js new file mode 100644 index 00000000..7944cb24 --- /dev/null +++ b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js @@ -0,0 +1 @@ +var c=[],ne=function(){return c.some(function(e){return e.activeTargets.length>0})},oe=function(){return c.some(function(e){return e.skippedTargets.length>0})},P="ResizeObserver loop completed with undelivered notifications.",se=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:P}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=P),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},ae=(function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e})(),q=(function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,s=t.right,o=t.bottom,h=t.left,d=t.width,v=t.height;return{x:r,y:i,top:n,right:s,bottom:o,left:h,width:d,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},G=function(e){if(C(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,s=n.offsetWidth,o=n.offsetHeight;return!(s||o||e.getClientRects().length)},I=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ve=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p=typeof window<"u"?window:{},z=new WeakMap,_=/auto|scroll/,ce=/^tb|vertical/,ue=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},f=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ae((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:f(),borderBoxSize:f(),contentBoxSize:f(),contentRect:new q(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),z.has(e)&&!t)return z.get(e);if(G(e))return z.set(e,W),W;var r=getComputedStyle(e),i=C(e)&&e.ownerSVGElement&&e.getBBox(),n=!ue&&r.boxSizing==="border-box",s=ce.test(r.writingMode||""),o=!i&&_.test(r.overflowY||""),h=!i&&_.test(r.overflowX||""),d=i?0:a(r.paddingTop),v=i?0:a(r.paddingRight),R=i?0:a(r.paddingBottom),l=i?0:a(r.paddingLeft),Q=i?0:a(r.borderTopWidth),Z=i?0:a(r.borderRightWidth),$=i?0:a(r.borderBottomWidth),j=i?0:a(r.borderLeftWidth),D=l+v,k=d+R,y=j+Z,T=Q+$,N=h?e.offsetHeight-T-e.clientHeight:0,A=o?e.offsetWidth-y-e.clientWidth:0,ee=n?D+y:0,te=n?k+T:0,g=i?i.width:a(r.width)-ee-A,x=i?i.height:a(r.height)-te-N,re=g+D+A+y,ie=x+k+N+T,M=u({devicePixelContentBoxSize:f(Math.round(g*devicePixelRatio),Math.round(x*devicePixelRatio),s),borderBoxSize:f(re,ie,s),contentBoxSize:f(g,x,s),contentRect:new q(l,d,g,x)});return z.set(e,M),M},U=function(e,t,r){var i=J(e,r),n=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return o;case b.BORDER_BOX:return n;default:return s}},he=(function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e})(),Y=function(e){if(G(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},de=function(){var e=1/0,t=[];c.forEach(function(o){if(o.activeTargets.length!==0){var h=[];o.activeTargets.forEach(function(v){var R=new he(v.target),l=Y(v.target);h.push(R),v.lastReportedSize=U(v.target,v.observedBox),le?r.activeTargets.push(n):r.skippedTargets.push(n))})})},fe=function(){var e=0;for(L(e);ne();)e=de(),L(e);return oe()&&se(),e>0},m,K=[],le=function(){return K.splice(0).forEach(function(e){return e()})},pe=function(e){if(!m){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return le()}).observe(r,i),m=function(){r.textContent="".concat(t?t--:t++)}}K.push(e),m()},be=function(e){pe(function(){requestAnimationFrame(e)})},w=0,ge=function(){return!!w},xe=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],H=function(e){return e===void 0&&(e=0),Date.now()+e},B=!1,Ee=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=xe),!B){B=!0;var i=H(t);be(function(){var n=!1;try{n=fe()}finally{if(B=!1,t=i-H(),!ge())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ze)};document.body?r():p.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(r){return p.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(r){return p.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e})(),S=new Ee,V=function(e){!w&&e>0&&S.start(),w+=e,!w&&S.stop()},Oe=function(e){return!C(e)&&!ve(e)&&getComputedStyle(e).display==="inline"},we=(function(){function e(t,r){this.target=t,this.observedBox=r||b.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=U(this.target,this.observedBox,!0);return Oe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),Re=(function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e})(),E=new WeakMap,X=function(e,t){for(var r=0;r=0&&(s&&c.splice(c.indexOf(i),1),i.observationTargets.splice(n,1),V(-1))},e.disconnect=function(t){var r=this,i=E.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e})(),ye=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");O.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");O.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");O.unobserve(this,t)},e.prototype.disconnect=function(){O.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();export{ye as R}; diff --git a/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz new file mode 100644 index 00000000..c5700cde Binary files /dev/null and b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz differ diff --git a/js/@logicflow_core@2.0.10-9WfPQnfd.js b/js/@logicflow_core@2.0.10-9WfPQnfd.js deleted file mode 100644 index 7d43b4ac..00000000 --- a/js/@logicflow_core@2.0.10-9WfPQnfd.js +++ /dev/null @@ -1,10 +0,0 @@ -import{o as yo}from"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import{u as x,x as K,g as Wn,b as Gr,n as Zr}from"./preact@10.25.4-CrjB-ZC0.js";import{a as k,c as C,m as Fr,g as Zn,n as sr,p as Kt,f as W,t as bt,b as St,d as Ht,i as Qt,e as ht,s as go,h as _o,j as Vr,k as gr,l as mo,o as Vn,q as xo,r as Eo,u as Kr,v as Mo,w as Kn,x as Oo,y as So}from"./lodash-es@4.17.21-UVJw7vmf.js";import{c as wo,t as mt,i as qn,s as Ao,o as E,a as F,b as m,r as Po}from"./mobx@5.15.7-DLDjekon.js";import{v as To}from"./uuid@9.0.1-CtRu48qb.js";import{c as Do}from"./classnames@2.5.1-Dfc4g_b4.js";import{M as No}from"./mousetrap@1.6.5-OHXNXF9n.js";import{d as bo}from"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";var Co=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);ov.step||Math.abs(v.sumDeltaY)>v.step)){var O=v.sumDeltaX%v.step,w=v.sumDeltaY%v.step,A=v.sumDeltaX-O,b=v.sumDeltaY-w;v.sumDeltaX=O,v.sumDeltaY=w;var R=(M=v.model)===null||M===void 0?void 0:M.getData();v.isDragging||((S=v.eventCenter)===null||S===void 0||S.emit(T["".concat(v.eventType,"_DRAGSTART")],{e:_,data:v.data||R}),v.onDragStart({event:_})),v.isDragging=!0,Promise.resolve().then(function(){var L,z;v.onDragging({deltaX:A,deltaY:b,event:_}),(L=v.eventCenter)===null||L===void 0||L.emit(T["".concat(v.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:b,e:_,data:v.data||R}),(z=v.eventCenter)===null||z===void 0||z.emit(T["".concat(v.eventType,"_DRAG")],{e:_,data:v.data||R})})}},this.handleMouseUp=function(_){var M=window.document;v.isStartDragging=!1,v.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",v.handleMouseMove,!1),M.removeEventListener("mouseup",v.handleMouseUp,!1);var A=(S=v.model)===null||S===void 0?void 0:S.getData();(O=v.eventCenter)===null||O===void 0||O.emit(T["".concat(v.eventType,"_MOUSEUP")],{e:_,data:v.data||A}),v.isDragging&&(v.isDragging=!1,v.onDragEnd({event:_}),(w=v.eventCenter)===null||w===void 0||w.emit(T["".concat(v.eventType,"_DROP")],{e:_,data:v.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",v.handleMouseMove,!1),_.removeEventListener("mouseup",v.handleMouseUp,!1),v.onDragEnd({event:void 0}),v.isDragging=!1},this.destroy=function(){v.isStartDragging&&v.cancelDrag()},this.onDragStart=r,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=y,this.eventType=d,this.eventCenter=u,this.model=p,this.data=g}return n.prototype.setStep=function(e){this.step=e},n.prototype.setModel=function(e){this.model=e},n}(),Yo=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{x:e-r/2,y:t-o/2,x1:e+r/2,y1:t+o/2}},Ho=function(n){var e=n.startPoint,t=n.endPoint,r=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:r-i/2,y:o-a/2,x1:r+i/2,y1:o+a/2}},ko=function(n){var e=n.points,t=kt(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},zo=function(n){var e=n.path,t=$r(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Go=function(n){if(n.modelType===j.LINE_EDGE)return Ho(n);if(n.modelType===j.POLYLINE_EDGE)return ko(n);if(n.modelType===j.BEZIER_EDGE)return zo(n)},Fo=function(n,e,t,r){var o=(e.y-n.y)*(r.x-t.x)-(n.x-e.x)*(t.y-r.y);if(o===0)return!1;var i=((e.x-n.x)*(r.x-t.x)*(t.y-n.y)+(e.y-n.y)*(r.x-t.x)*n.x-(r.y-t.y)*(e.x-n.x)*t.x)/o,a=-((e.y-n.y)*(r.y-t.y)*(t.x-n.x)+(e.x-n.x)*(r.y-t.y)*n.y-(r.x-t.x)*(e.y-n.y)*t.y)/o;return(i-n.x)*(i-e.x)<=0&&(a-n.y)*(a-e.y)<=0&&(i-t.x)*(i-r.x)<=0&&(a-t.y)*(a-r.y)<=0?{x:i,y:a}:!1},me=function(n,e,t){var r=n.x,o=n.y,i=e.x,a=e.y,s=t.x,l=t.y,d=(l-a)/(s-i),u=a-d*i;return(r>=i&&r<=s||r<=i&&r>=s)&&(o>=a&&o<=l||o<=a&&o>=l)&&Math.abs(o-d*r-u)=e.x?(a.leftX=e.x+d*Math.sin(s+l),a.leftY=e.y-d*Math.cos(s+l),a.rightX=e.x-d*Math.sin(s-l),a.rightY=e.y+d*Math.cos(s-l)):(a.leftX=e.x-d*Math.sin(s+l),a.leftY=e.y+d*Math.cos(s+l),a.rightX=e.x+d*Math.sin(s-l),a.rightY=e.y-d*Math.cos(s-l)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+d*Math.sin(s-l),a.leftY=t.y-d*Math.cos(s-l),a.rightX=t.x-d*Math.sin(s+l),a.rightY=t.y+d*Math.cos(s+l)):(a.leftX=t.x-d*Math.sin(s-l),a.leftY=t.y+d*Math.cos(s-l),a.rightX=t.x+d*Math.sin(s+l),a.rightY=t.y-d*Math.cos(s+l))),a},qt=function(){return qt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dt=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rr/e.height?G.HORIZONTAL:G.VERTICAL},Fe=function(n,e,t){var r=Uo(t,e);return r===G.HORIZONTAL?{x:t.x>n.centerX?n.maxX:n.minX,y:t.y}:{x:t.x,y:t.y>n.centerY?n.maxY:n.minY}},Qr=function(n,e){var t=Math.min(n.minX,e.minX),r=Math.min(n.minY,e.minY),o=Math.max(n.maxX,e.maxX),i=Math.max(n.maxY,e.maxY);return{x:(t+o)/2,y:(r+i)/2,centerX:(t+o)/2,centerY:(r+i)/2,minX:t,minY:r,maxX:o,maxY:i,height:i-r,width:o-t}},Ee=function(n,e){n===void 0&&(n=[]);var t=[],r=[];n.forEach(function(u){t.push(u.x),r.push(u.y)});var o=Math.min.apply(Math,Dt([],at(t),!1)),i=Math.max.apply(Math,Dt([],at(t),!1)),a=Math.min.apply(Math,Dt([],at(r),!1)),s=Math.max.apply(Math,Dt([],at(r),!1)),l=i-o,d=s-a;return e&&(l+=e,d+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:d,width:l}},$e=function(n){var e=n.minX,t=n.minY,r=n.maxX,o=n.maxY;return[{x:e,y:t},{x:r,y:t},{x:r,y:o},{x:e,y:o}]},Ne=function(n,e){var t=n.x,r=n.y;return te.maxX||re.maxY},Wo=function(n,e){return en.maxX?[]:[{x:e,y:n.minY},{x:e,y:n.maxY}]},Zo=function(n,e){return en.maxY?[]:[{x:n.minX,y:e},{x:n.maxX,y:e}]},Vo=function(n,e){return Dt(Dt([],at(Wo(n,e.x)),!1),at(Zo(n,e.y)),!1)},mr=function(n,e){return Math.abs(n.x-e.x)+Math.abs(n.y-e.y)},Ko=function(n,e){var t=-2,r=0;return e.forEach(function(o){o&&(n.x===o.x&&(r+=t),n.y===o.y&&(r+=t))}),r},tn=function(n,e,t,r,o){return mr(n,e)+mr(n,t)+Ko(n,[e,t,r,o])},Jn=function(n,e,t,r,o){o||(o=0),n.unshift(e[r]),t[r]&&t[r]!==r&&o<=100&&Jn(n,e,t,t[r],o+1)},qo=function(n,e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},ie=function(n,e,t,r){var o=e.x-n.x,i=e.y-n.y,a=r.x-t.x,s=r.y-t.y,l=(-i*(n.x-t.x)+o*(n.y-t.y))/(-a*i+o*s),d=(a*(n.y-t.y)-s*(n.x-t.x))/(-a*i+o*s);return l>=0&&l<=1&&d>=0&&d<=1},en=function(n,e,t){if(t.width===0&&t.height===0)return!1;var r=at($e(t),4),o=r[0],i=r[1],a=r[2],s=r[3];return ie(n,e,o,i)||ie(n,e,o,s)||ie(n,e,i,a)||ie(n,e,a,s)},Jo=function(n,e,t,r){var o=[];return n.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!en(i,e,t)&&!en(i,e,r)&&o.push(i)}),_r(o)},Qo=function(n,e,t,r,o,i,a){var s=[],l=[e],d={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=tn(e,t,e));var c={};n.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,g=1/0;if(l.forEach(function(_){_.id&&f[_.id]=u[_.id])return;d[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+tn(_,t,e,i,a)}})};l.length;){var y=h();if(typeof y=="object")return y.value}return[e,t]},rn=function(n){return rt(n)},Qn=function(n){for(var e=1;e2&&(v=Qn(v)),_r(v)},ti=function(n){if(n.length===1){var e=at(n,1),t=e[0];return[t,t]}else{for(var r=n[0],o=n[1],i=vt(r.x,r.y,o.x,o.y),a=1;ai&&(i=d,r=s,o=l)}return[r,o]}},on=function(n,e,t){var r=Nt(n,t),o=Nt(e,t);return r&&o},an=function(n,e,t){var r=Nt(n,t),o=Nt(e,t),i=r&&o,a=r||o;return!i&&a},sn=function(n,e,t){for(var r=void 0,o=rt(t),i=$e(o),a=0;a=1&&r<=126||r>=65376&&r<=65439?e+=1:e+=2}return e},ri=function(n){var e=n.start,t=n.end,r;if(e.x===t.x&&e.y===t.y)r="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(qt(qt({},o),{type:"start"})),a=xe(qt(qt({},o),{type:"end"}));r="M".concat(i.leftX," ").concat(i.leftY,` - L`).concat(i.rightX," ").concat(i.rightY,` - L`).concat(a.rightX," ").concat(a.rightY,` - L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:r,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},dn=function(n){var e=n.start,t=n.end,r=n.sourceNode,o=n.targetNode,i=n.offset,a=rt(r),s=rt(o),l=Ge(a,i),d=Ge(s,i),u=Fe(l,a,e),f=Fe(d,s,t);return{sNext:u,ePre:f}},$r=function(n){var e=n.replace(/M/g,"").replace(/C/g,",").split(","),t=be(e[0]),r=be(e[1]),o=be(e[2]),i=be(e[3]);return[t,r,o,i]},be=function(n){var e=at(n.replace(/(^\s*)/g,"").split(" "),2),t=e[0],r=e[1];return{x:+t,y:+r}},un=function(n,e){var t=at(n,4),r=t[0],o=t[1],i=t[2],a=t[3],s=Hi(r,o,i,a,e);return[s,n[3]]},eo=function(n,e){for(var t=n.x,r=n.y,o=kt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],l=0;lo?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},$t=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ce=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},dr=function(n,e,t){var r=lr(n,2),o=r[0],i=r[1],a=lr(e,2),s=a[0],l=a[1],d=lr(t,2),u=d[0],f=d[1];return o>s&&ol&&i=0?o:-o},e}(no),xr=function(n){Ur(e,n);function e(t,r){var o=n.call(this,t,r,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(no),tr=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ut=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ur=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;o--){var i=t[o],a=fi(n,i);if(a){var s=i.getTargetAnchor(n);if(s){var l={node:i,anchorIndex:s.index,anchor:s.anchor};(!r||di(i,r.node,e))&&(r=l)}}}return r},di=function(n,e,t){return n.zIndex>e.zIndex?!0:t.nodesMap[n.id].index>t.nodesMap[e.id].index},ui=function(n,e){for(var t=Er(e),r,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},fi=function(n,e){var t=!1,r=5,o=rt(e);return n.x>=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},rt=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{minX:e-r/2,minY:t-o/2,maxX:e+r/2,maxY:t+o/2,x:e,y:t,width:r,height:o,centerX:e,centerY:t}},ci=function(n){var e=n,t=e.x,r=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:r-i/2+a,r:a},{x:t+o/2-a,y:r-i/2+a,r:a},{x:t-o/2+a,y:r+i/2-a,r:a},{x:t+o/2-a,y:r+i/2-a,r:a}]},pn=function(n,e,t){var r=ci(t),o,i=Number.MAX_SAFE_INTEGER;return r.forEach(function(a){var s=vt(n.x,n.y,a.x,a.y);sd.minX&&n.xd.minY&&n.yu.x&&(f=u,c=d);var h={x:n.x,y:n.y};if(f.x===c.x&&e===G.HORIZONTAL&&(h={x:f.x,y:n.y}),f.y===c.y&&e===G.VERTICAL&&(h={x:n.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var y=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===G.HORIZONTAL?h={x:(n.y-p)/y,y:n.y}:e===G.VERTICAL&&(h={x:n.x,y:y*n.x+p})}var g=me(h,d,u);if(g){var v=vt(h.x,h.y,n.x,n.y);vn.x?o=n.x+t/2:e.xn.y?i=n.y+r/2:e.y1?e.forEach(function(s){var l=document.createElement("div");l.textContent=s,i.appendChild(l)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},gn=function(n){var e=n.rows,t=n.rowsLength,r=n.fontSize,o=0;return e&&e.forEach(function(i){var a=to(i);o=a>o?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Ve=function(n){return typeof n!="object"?{isAllPass:!!n,msg:n?"":"不允许连接"}:n},Yt=function(){return To()},se=new Map,io=function(n){var e=Yt();function t(){n();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var r=window.requestAnimationFrame(t);return se.set(e,r),e},Ke=function(n){var e=se.get(n);e&&(window.cancelAnimationFrame(e),se.delete(n))},Me=function(){return Me=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ao(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.value,a=n.fontSize,s=a===void 0?12:a,l=n.fill,d=l===void 0?"currentColor":l,u=n.overflowMode,f=u===void 0?"default":u,c=n.textWidth,h=c===void 0?void 0:c,y=n.model,p={x:t,y:o,fill:d,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(bt(n),function(O){var w=hi(O,2),A=w[0],b=w[1];typeof b!="object"&&(p[A]=b)}),i){var g=String(i).split(/[\r\n]/g),v=g.length;if(f!=="default"){var _=y.BaseType,M=y.modelType;if(_===$.NODE&&M!==j.TEXT_NODE||_===$.EDGE&&h)return vi(n)}if(v>1){var S=g.map(function(O,w){var A=s+2,b=(w-(v-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+b,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function vi(n){var e=n.x,t=n.y,r=n.value,o=n.model,i=n.textWidth,a=n.fontSize,s=a===void 0?12:a,l=n.lineHeight,d=n.fontFamily,u=d===void 0?"":d,f=n.wrapPadding,c=f===void 0?"0, 0":f,h=n.overflowMode,y=o.width,p=o.height,g=o.textHeight,v=i||y,_=String(r).split(/[\r\n]/g),M=_.length,S=oo({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(v,"px"),fontFamily:u,lineHeight:l,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;g&&(O=g);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:v,height:O,x:e-v/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:v,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},n),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Or=function(){return Or=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ee(n){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(bt(n),function(t){var r=yi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Or({},e))}var Sr=function(){return Sr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Et(n){var e=n.x,t=n.y,r=n.width,o=n.height,i=n.className,a=n.strokeWidth,s=n.radius,l=s===void 0?0:s,d=e-r/2,u=t-o/2,f={};return f["stroke-width"]=a,W(bt(n),function(c){var h=gi(c,2),y=h[0],p=h[1];typeof p!="object"&&(f[y]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",l&&(f.rx=l,f.ry=l),f.x=d,f.y=u,x("rect",Sr({},f))}var wr=function(){return wr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Oe(n){var e={d:""};return W(bt(n),function(t){var r=_i(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",wr({},e))}var Ar=function(){return Ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function re(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.r,a=i===void 0?4:i,s=n.className,l={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(d){var u=mi(d,2),f=u[0],c=u[1];typeof c!="object"&&(l[f]=c)}),s?l.className="lf-basic-shape ".concat(s):l.className="lf-basic-shape",x("circle",Ar({},l))}var Pr=function(){return Pr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Ei(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.rx,a=i===void 0?4:i,s=n.ry,l=s===void 0?4:s,d=n.className,u={cx:t,cy:o,rx:a,ry:l,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(f){var c=xi(f,2),h=c[0],y=c[1];typeof y!="object"&&(u[h]=y)}),d?u.className="lf-basic-shape ".concat(d):u.className="lf-basic-shape",x("ellipse",Pr({},u))}var Tr=function(){return Tr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function so(n){var e=n.points,t=e===void 0?[]:e,r=n.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(bt(n),function(i){var a=Mi(i,2),s=a[0],l=a[1];typeof l!="object"&&(o[s]=l)}),r?o.classNmae="lf-basic-shape ".concat(r):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Tr({},o))}var Dr=function(){return Dr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Si(n){var e=n.className,t={points:"",fill:"none"};return W(bt(n),function(r){var o=Oi(r,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Dr({},t))}var lo=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Se=function(){return Se=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},H;(function(n){n[n.LEFT_TOP=0]="LEFT_TOP",n[n.RIGHT_TOP=1]="RIGHT_TOP",n[n.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Pi=function(n){lo(e,n);function e(t){var r=n.call(this)||this;r.updateEdgePointByAnchors=function(){var s=r.nodeModel,l=s.id,d=s.anchors,u=r.graphModel.getNodeEdges(l);W(u,function(f){if(f.sourceNodeId===l){var c=Ht(d,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===l){var c=Ht(d,function(y){return y.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},r.triggerResizeEvent=function(s,l,d,u,f,c){r.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:l,deltaX:d,deltaY:u,index:f,model:c})},r.recalcResizeInfo=function(s,l,d,u,f){d===void 0&&(d=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=C(l),h=c.deltaX,y=c.deltaY,p=c.width,g=c.height,v=c.PCTResizeInfo;if(v){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-y)/_;break;case H.RIGHT_TOP:S=(h-y)/_;break;case H.RIGHT_BOTTOM:S=(h+y)/_;break;case H.LEFT_BOTTOM:S=(h*-1+y)/_;break}S!==0&&(M=Math.round(S/v.ResizeBasis.basisHeight*1e5)/1e3),v.ResizePCT.widthPCT=Math.max(Math.min(v.ResizePCT.widthPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit),v.ResizePCT.heightPCT=Math.max(Math.min(v.ResizePCT.heightPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit);var O=Math.round(v.ResizePCT.widthPCT*v.ResizeBasis.basisWidth/100),w=Math.round(v.ResizePCT.heightPCT*v.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,y=g-w;break;case H.RIGHT_TOP:h=O-p,y=g-w;break;case H.RIGHT_BOTTOM:h=O-p,y=w-g;break;case H.LEFT_BOTTOM:h=p-O,y=w-g;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*d,c.height=f?g:g-y*d;break;case H.RIGHT_TOP:c.width=u?p:p+h*d,c.height=f?g:g-y*d;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*d,c.height=f?g:g+y*d;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*d,c.height=f?g:g+y*d;break}return c},r.resizeNode=function(s){var l=s.deltaX,d=s.deltaY,u=r.index,f=r.props,c=f.model,h=f.graphModel,y=f.x,p=f.y;Ii({x:y,y:p,deltaX:l,deltaY:d,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){r.dragHandler.cancelDrag()}})},r.onDragging=function(s){var l=s.deltaX,d=s.deltaY,u=r.graphModel.transformModel,f=Ai(u.fixDeltaXY(l,d),2),c=f[0],h=f[1];r.resizeNode({deltaX:c,deltaY:h})},r.onDragEnd=function(){var s=r.nodeModel.x,l=r.nodeModel.y;r.nodeModel.moveTo(s,l),r.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return r.index=o,r.nodeModel=i,r.graphModel=a,r.dragHandler=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:a.gridSize}),r}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),l=s.width,d=s.height,u=wi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:r,y:o,width:l??7,height:d??7},u)),x(Et,{className:"lf-resize-control-content",x:r,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(K),Ti=function(n){lo(e,n);function e(){return n.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=rt(r),a=i.minX,s=i.minY,l=i.maxX,d=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:l,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:l,y:d},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:d}];return St(u,function(f){return x(Pi,Se({},f,{model:r,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,r=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:r,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(K);function Di(n,e){var t=n.x,r=n.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:r+(i-r)/2};return a}function ae(n,e,t){var r=Ni(t),o=n.x-e.x,i=n.y-e.y,a=o*Math.cos(r)-i*Math.sin(r)+e.x,s=o*Math.sin(r)+i*Math.cos(r)+e.y;return{x:a,y:s}}function Ni(n){return n*Math.PI/180}function bi(n){return n/Math.PI*180}function Ci(n,e,t,r,o,i,a,s,l){s===void 0&&(s=!1),l===void 0&&(l=!1);var d=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=bi(t),y={x:r,y:o},p={x:i,y:a},g=ae(y,p,h),v={x:g.x+d,y:g.y+u},_=Bi(g,v,p,h,s,l,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*n,e.height=S*n,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Li=function(n,e,t,r,o,i,a,s,l,d){t===void 0&&(t=1),r===void 0&&(r=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=C(e),f=u.deltaX,c=u.deltaY,h=u.width,y=u.height,p=u.PCTResizeInfo;if(p){var g=4,v=0,_=0;switch(n){case H.LEFT_TOP:_=(f*-1-c)/g;break;case H.RIGHT_TOP:_=(f-c)/g;break;case H.RIGHT_BOTTOM:_=(f+c)/g;break;case H.LEFT_BOTTOM:_=(f*-1+c)/g;break}_!==0&&(v=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(n){case H.LEFT_TOP:f=h-M,c=y-S;break;case H.RIGHT_TOP:f=M-h,c=y-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-y;break;case H.LEFT_BOTTOM:f=h-M,c=S-y;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ci(t,u,i,a,s,l,d,r,o);switch(n){case H.LEFT_TOP:u.width=r?h:h-f*t,u.height=o?y:y-c*t;break;case H.RIGHT_TOP:u.width=r?h:h+f*t,u.height=o?y:y-c*t;break;case H.RIGHT_BOTTOM:u.width=r?h:h+f*t,u.height=o?y:y+c*t;break;case H.LEFT_BOTTOM:u.width=r?h:h-f*t,u.height=o?y:y+c*t;break}return u},ji=function(n,e){var t=n.id,r=n.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(r,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(r,function(l){return l.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ri=function(n,e,t,r,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:n,data:e,deltaX:t,deltaY:r,index:o,model:i})},Ii=function(n){var e=n.x,t=n.y,r=n.deltaX,o=n.deltaY,i=n.index,a=n.nodeModel,s=n.graphModel,l=n.cancelCallback,d=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,y=a.PCTResizeInfo,p=a.minWidth,g=a.minHeight,v=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===v,A=g===_,b={width:d||u||c,height:d||f||h,deltaX:r,deltaY:o,PCTResizeInfo:y},R=d||u&&f?1/2:1,L=e,z=t,I=Li(i,b,R,w,A,M,L,z,S,O);if(I.widthv||I.height_){l==null||l();return}(M%(2*Math.PI)==0||y||L===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(ji(a,s),Ri(U,Y,r,o,i,a,s))};function Bi(n,e,t,r,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var l={x:t.x-(n.x-t.x),y:t.y-(n.y-t.y)},d=Di(l,e),u=ae(e,d,-r),f=ae(l,d,-r);if(o){var c=Math.abs(u.x-f.x),h=c-a;d.x>u.x?d.x=d.x+h/2:d.x=d.x-h/2}if(i){var y=Math.abs(u.y-f.y),p=y-s;d.y>u.y?d.y=d.y+p/2:d.y=d.y-p/2}if(o||i){var g=ae(f,d,r),v=g.x-l.x,_=g.y-l.y;d.x=d.x-v,d.y=d.y-_,f=ae(l,d,-r),u={x:d.x-(f.x-d.x),y:d.y-(f.y-d.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:d}}var Xi=100,Yi={x:1,y:0};function Hi(n,e,t,r,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:n.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+r.x*Math.pow(h,3),y:n.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+r.y*Math.pow(h,3)}},a=0,s=2,l=r.x,d=r.y,u=r;a=0?r:-r}function _n(n){var e=Math.hypot(n.x,n.y);return{x:n.x/e,y:n.y/e,z:0}}function Fi(n){return Gi(Yi,n)}function $i(n){return n*(180/Math.PI)}var Ui={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},uo=function(n){var e=C(Ui);return n&&(e=Fr(e,n)),e},Wi=uo,Zi=1e3,Vi=999,Wr=function(){return++Zi},Ki=function(){return--Vi},V=function(){return V=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},nr=function(){function n(e,t){var r;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initEdgeData(e),this.setAttributes()}return n.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Wr()),this.setAnchors(),this.initPoints(),this.formatText(e)},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},n.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return C(e)},n.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return C(e)},n.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),r=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),r)},n.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return C(t)},n.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(n.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),n.prototype.getBeginAnchor=function(e,t,r){var o,i,a=Er(e);if(r){if(o=Ht(a,function(s){return s.id===r}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(r,",已使用默认锚点作为起点"))}return a.forEach(function(s){var l=fn(s,t);(i===void 0||l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},mn=function(n){qi(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,n.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,r=n.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},r),C(t)),C(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,r=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,r+=a}),{x:t/this.pointsList.length,y:r/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=n.prototype.getData.call(this),r=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:r})},e.prototype.getControls=function(){var t=this.startPoint,r=this.endPoint,o=dn({start:t,end:r,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var r=fr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];return"M ".concat(o.x," ").concat(o.y,` - C `).concat(i.x," ").concat(i.y,`, - `).concat(a.x," ").concat(a.y,`, - `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),r=t.sNext,o=t.ePre;this.updatePath(r,o)},e.prototype.updatePath=function(t,r){t=C(t),r=C(r);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!r){var a=this.getControls();t=a.sNext,r=a.ePre}this.pointsList=[o,t,r,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r;var o=fr(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=r,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r;var o=fr(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=r,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,r){var o;r==="sNext"?this.pointsList[1]=t:r==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dn({start:r,end:o,sourceNode:i,targetNode:a,offset:this.offset}),l=s.sNext,d=s.ePre;this.pointsList=[r,l,d,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(nr),Ji=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),le=function(){return le=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Qi=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mn=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ea=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rl)&&(a=l,i=s)}),i},e.prototype.getCrossPoint=function(t,r,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:r.y}:t===G.VERTICAL&&(i={x:r.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,r,o){var i=o.map(function(v){return v});if(t===1){var a=i[t],s=i[r],l=i[t-1],d=on(l,a,this.sourceNode);if(d){var u=an(a,s,this.sourceNode);if(u){var f=sn(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,r--)}}else{var c=this.sourceNode.anchors;c.forEach(function(v){if(v.x===l.x&&v.x===a.x||v.y===l.y&&v.y===a.y){var _=vt(v.x,v.y,a.x,a.y),M=vt(l.x,l.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=nn({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(r){return"".concat(r.x,",").concat(r.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r,this.updatePoints()},e.prototype.updatePointsList=function(t,r){this.pointsList.forEach(function(a){a.x+=t,a.y+=r});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList,f=u;return d===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y},f=this.pointsList.map(function(c){return c})):d===G.VERTICAL&&(u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppend=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList;if(d===G.HORIZONTAL){u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y};var f=this.pointsList.map(function(g){return g});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x,y:i.y+r.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x,y:a.y+r.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(d===G.VERTICAL){u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x+r.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x+r.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Qn(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var r=t[0];this.startPoint=k({},r);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var r=this.updateCrossPoints(t);this.points=r.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=nn({x:r.x,y:r.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(nr),q=function(){return q=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sn=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ra=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ct=function(){function n(e,t){var r;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,r=t.x,o=r===void 0?0:r,i=t.y,a=i===void 0?0:i;this.transform=new rr(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),n.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.formatText(e),k(this,pi(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Wr())},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.setTextMode=function(e){this.textMode=e},n.prototype.formatText=function(e){var t,r,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,l=e.x,d=e.y,u=e.text,f={value:"",x:l,y:d,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:l,y:(r=u.y)!==null&&r!==void 0?r:d,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},n.prototype.resize=function(e){var t=e.width,r=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,r);return a?(this.move(o/2,i/2),this.width=t,this.height=r,this.setProperties({width:t,height:r}),this.getData()):this.getData()},n.prototype.proportionalResize=function(){},n.prototype.getData=function(){var e=this.text,t=e.x,r=e.y,o=e.value,i=this.properties;qn(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:r,value:o}),a},n.prototype.getHistoryData=function(){return this.getData()},n.prototype.getProperties=function(){return mt(this.properties)},n.prototype.getOuterGAttributes=function(){return{className:""}},n.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,r=t===void 0?{}:t;return q(q({},C(e)),C(r))},n.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return C(e)},n.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return C(e)},n.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return C(e)},n.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return C(t)},n.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return C(t)},n.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return C(e)},n.prototype.isAllowConnectedAsSource=function(e,t,r,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",l=0;l0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(r,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(r,"_").concat(s)}))}):this.getDefaultAnchor()},n.prototype.getDefaultAnchor=function(){return[]},n.prototype.getTargetAnchor=function(e){return ui(e,this)},n.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(n.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,r=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,l=a.y,d=ra(new er([s,l,1]).translate(-r,-o).rotate(i).translate(r,o)[0],2),u=d[0],f=d[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),n.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wn=function(n){na(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),C(r)),C(i))},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.r;return[{x:r,y:o-i,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+i,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=r,this.setProperties({r}),this.getData()},cr([E],e.prototype,"r",void 0),cr([F],e.prototype,"width",null),cr([F],e.prototype,"height",null),e}(Ct),oa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fe=function(){return fe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},An=function(n){oa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[[r,o-a],[r+i,o],[r,o+a],[r-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var r=je(t,2),o=r[0],i=r[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(r,o){var i=je(r,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e}(Ct),ia=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ce=function(){return ce=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pn=function(n){ia(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:r,y:o-a,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([F],e.prototype,"width",null),Re([F],e.prototype,"height",null),e}(Ct),aa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),pe=function(){return pe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Tn=function(n){aa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.points,o=t.width,i=t.height,a=r||this.points;this.points=ai(a,o,i)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+r-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=this,o=r.x,i=r.y,a=r.width,s=r.height,l=r.points;return l.map(function(d,u){var f=Be(d,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var r=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var l=St(this.points,function(d){var u=Be(d,2),f=u[0],c=u[1];return[f*o/r.width,c*i/r.height]});return this.points=l,this.properties.points=l,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([F],e.prototype,"pointsPosition",null),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e}(Ct),sa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),he=function(){return he=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Dn=function(n){sa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.width,o=t.height,i=t.radius;ht(r)||(this.width=r),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return[{x:r,y:o-a/2,id:"".concat(this.id,"_0")},{x:r+i/2,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a/2,id:"".concat(this.id,"_2")},{x:r-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),C(r)),C(i))},la([E],e.prototype,"radius",void 0),e}(Ct),da=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ve=function(){return ve=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ua=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ha=function(){function n(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return n.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},n.prototype.computeConfig=function(e){var t=e.isSilentMode,r=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var l=Kt(pa,Xe);this.stagedConfig=Kt(this,Xe),k(s,l)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(r)||k(s,{nodeTextDraggable:r,edgeTextDraggable:r}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),gr(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var d=Kt(e,Xe);return k(s,d)},n.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},n.prototype.getConfig=function(){return Kt(this,Xe)},B([E],n.prototype,"isSilentMode",void 0),B([E],n.prototype,"stopZoomGraph",void 0),B([E],n.prototype,"stopMoveGraph",void 0),B([E],n.prototype,"stopScrollGraph",void 0),B([E],n.prototype,"snapGrid",void 0),B([E],n.prototype,"textMode",void 0),B([E],n.prototype,"textEdit",void 0),B([E],n.prototype,"textDraggable",void 0),B([E],n.prototype,"nodeTextEdit",void 0),B([E],n.prototype,"nodeTextDraggable",void 0),B([E],n.prototype,"nodeTextMultiple",void 0),B([E],n.prototype,"nodeTextVertical",void 0),B([E],n.prototype,"nodeTextMode",void 0),B([E],n.prototype,"edgeTextMode",void 0),B([E],n.prototype,"edgeTextEdit",void 0),B([E],n.prototype,"edgeTextDraggable",void 0),B([E],n.prototype,"edgeTextMultiple",void 0),B([E],n.prototype,"edgeTextVertical",void 0),B([E],n.prototype,"hideAnchors",void 0),B([E],n.prototype,"allowRotate",void 0),B([E],n.prototype,"allowResize",void 0),B([E],n.prototype,"hoverOutline",void 0),B([E],n.prototype,"nodeSelectedOutline",void 0),B([E],n.prototype,"adjustNodePosition",void 0),B([E],n.prototype,"autoExpand",void 0),B([E],n.prototype,"adjustEdge",void 0),B([E],n.prototype,"adjustEdgeMiddle",void 0),B([E],n.prototype,"adjustEdgeStartAndEnd",void 0),B([E],n.prototype,"adjustEdgeStart",void 0),B([E],n.prototype,"adjustEdgeEnd",void 0),B([E],n.prototype,"edgeSelectedOutline",void 0),B([m],n.prototype,"updateEditConfig",null),B([m],n.prototype,"updateTextMode",null),n}(),va="*",ya=function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!r})})},n.prototype.once=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){o=o.trim(),r.on(o,t,!0)})},n.prototype.emit=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){var i=r._events[o]||[],a=r._events[va]||[],s=function(l){for(var d=l.length,u=0;u=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ma=function(n){ga(e,n);function e(t){var r=n.call(this)||this;r.stepScrollX=0,r.stepScrollY=0,r.onDragging=function(s){var l=s.deltaX,d=s.deltaY;r.setState({isDragging:!0});var u=r.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(l,d)},r.onDragEnd=function(){r.setState({isDragging:!1})},r.zoomHandler=function(s){var l=r.props,d=l.graphModel,u=d.editConfigModel,f=d.transformModel,c=d.gridSize,h=l.graphModel,y=s.deltaX,p=s.deltaY,g=u.stopScrollGraph,v=u.stopZoomGraph;if(!g&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),r.stepScrollX+=y,r.stepScrollY+=p,Math.abs(r.stepScrollX)>=c){var _=r.stepScrollX%c,M=r.stepScrollX-_;f.translate(-M*f.SCALE_X,0),r.stepScrollX=_}if(Math.abs(r.stepScrollY)>=c){var S=r.stepScrollY%c,O=r.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),r.stepScrollY=S}return}if(!v){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,b=A.x,R=A.y;f.zoom(s.deltaY<0,[b,R])}},r.clickHandler=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){var d=r.props.graphModel,u=d.selectElements;u.size>0&&d.clearSelectElements(),d.eventCenter.emit(T.BLANK_CLICK,{e:s})}},r.handleContextMenu=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){s.preventDefault();var d=r.props.graphModel,u=d.getPointByClient({x:s.clientX,y:s.clientY});d.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},r.mouseDownHandler=function(s){var l=r.props.graphModel,d=l.eventCenter,u=l.editConfigModel,f=l.transformModel.SCALE_X,c=l.gridSize,h=u.adjustEdge,y=u.adjustNodePosition,p=u.stopMoveGraph,g=s.target,v=!h&&!y;(g.getAttribute("name")==="canvas-overlay"||v)&&(p!==!0?(r.stepDrag.setStep(c*f),r.stepDrag.handleMouseDown(s)):d.emit(T.BLANK_MOUSEDOWN,{e:s}),r.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return r.stepDrag=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),r.state={isDragging:!1},r}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",Nr({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:r,children:i})}))},e=_a([ot],e),e}(K),fo=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),we=function(){return we=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ln=function(n){fo(e,n);function e(){var t=n.call(this)||this;return t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.bezierModel,l=i.type,d=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=d.x,f=d.y;s.updateAdjustAnchor({x:u,y:f},l),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var r=t.props.bezierModel;r.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,r=this.props.position,o=r.x,i=r.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(re,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(l){t.dragHandler.handleMouseDown(l)}}))},e}(K),Ma=function(n){fo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,r){var o=t.path,i=t.id,a=$r(o),s=Ea(a,4),l=s[0],d=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:l.x,y1:l.y,x2:d.x,y2:d.y},c))),h.push(x(Ln,{position:d,bezierModel:t,graphModel:r,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Ln,{position:u,bezierModel:t,graphModel:r,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,r=t.edges,o=[],i=0;i=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wa=function(n){Oa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:mo(t)?t:{},className:"lf-background-area"})})},e=Sa([ot],e),e}(K),Aa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Pa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},qe=function(n){Aa(e,n);function e(t){var r=n.call(this,t)||this;return r.id=Yt(),r.gridOptions=r.props.graphModel.grid,r}return e.prototype.renderDot=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?2:d,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:l,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?1:d,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:l,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=this.gridOptions,o=r.type,i=r.size,a=i===void 0?1:i,s=t.SCALE_X,l=t.SKEW_Y,d=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,l,d,u,f,c].join(","),y="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:y,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Pa([ot],e),e}(K);(function(n){n.defaultProps={size:Bo,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var r=C(n.defaultProps);return typeof t=="number"?k(r,{size:t}):typeof t=="boolean"?k(r,{visible:t}):k(r,t)}n.getGridOptions=e})(qe||(qe={}));var Ta=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Da=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=function(n){Ta(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:r,children:o})})},e=Da([ot],e),e}(K),ba=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wt=function(){return wt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=function(n){ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,r=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return r.forEach(function(l){if(l.isHovered||l.isSelected){var d=l.isHovered,u=l.isSelected,f=l.x,c=l.y,h=l.width,y=l.height;if(a&&u||i&&d){var p=l.getOutlineStyle(),g={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(g[_]=p[_])}),d){var v=p.hover;g=wt(wt({},g),v)}s.push(x(Et,wt({transform:l.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:y+10},g)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,r=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],l=0;l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=function(n){ja(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,r=t??{},o=r.position,i=r.isShowHorizontal,a=r.isShowVertical,s=t==null?void 0:t.getStyle(),l=o??{},d=l.x,u=d===void 0?0:d,f=l.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),y=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},y))]})},e=Ra([ot],e),e}(K),Ba=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,r=t.tool,o=t.graphModel,i=o.textEditElement,a=r.getTools(),s=a.map(function(l){return Wn(l,{textEditElement:i,graphModel:o,lf:r.instance})});return r.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,r=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=r.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Xa([ot],e),e}(K),Pt=function(){return Pt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ha=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},it=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=function(){function n(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return n.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},n.prototype.getCenterSnapLine=function(e,t){for(var r=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ga={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Fa=function(){function n(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var r=t.stopMoveGraph,o=r===void 0?!1:r;this.updateTranslateLimits(o)}return n.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},n.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},n.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[(r-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},n.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[r*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},n.prototype.moveCanvasPointByHtml=function(e,t,r){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+r/this.SCALE_Y]},n.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},n.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},n.prototype.zoom=function(e,t){e===void 0&&(e=!1);var r=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(r=e,o=e):e?(r+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(r-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),rthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(r-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=r,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},n.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},n.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},n.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},n.prototype.focusOn=function(e,t,r,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],l=Zt([r/2-a,o/2-s],2),d=l[0],u=l[1];this.TRANSLATE_X+=d,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},n.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:Ga[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],n.prototype,"SCALE_X",void 0),ut([E],n.prototype,"SKEW_Y",void 0),ut([E],n.prototype,"SKEW_X",void 0),ut([E],n.prototype,"SCALE_Y",void 0),ut([E],n.prototype,"TRANSLATE_X",void 0),ut([E],n.prototype,"TRANSLATE_Y",void 0),ut([E],n.prototype,"ZOOM_SIZE",void 0),ut([m],n.prototype,"zoom",null),ut([m],n.prototype,"resetZoom",null),ut([m],n.prototype,"translate",null),ut([m],n.prototype,"focusOn",null),n}(),$a=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ua=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Wa=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Za=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ja=function(n){Ka(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(r){var o=r.event,i=t.props,a=i.anchorData,s=i.nodeModel,l=i.graphModel;l.selectNodeById(s.id),s.autoToFront&&l.toFront(s.id),l.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,y=h.autoExpand,p=h.stopMoveGraph;if(o){var g=o.clientX,v=o.clientY,_=a.getPointByClient({x:g,y:v}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,b=w.y;t.t&&Ke(t.t);var R=[],L=10;S<10?R=[L,0]:S+10>f?R=[-10,0]:O<10?R=[0,L]:O+10>c&&(R=[0,-10]),t.setState({endX:A,endY:b,dragging:!0}),t.moveAnchorEnd(A,b),R.length>0&&!p&&y&&(t.t=io(function(){var z=qa(R,2),I=z[0],U=z[1];d.translate(I,U);var Y=t.state,Z=Y.endX,lt=Y.endY;t.setState({endX:Z-I,endY:lt-U}),t.moveAnchorEnd(Z-I,lt-U)})),u.emit(T.ANCHOR_DRAG,{data:l,e:o,nodeModel:s})}},t.onDragEnd=function(r){var o=r.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:d,e:o,nodeModel:l,edgeModel:i??void 0})},t.checkEnd=function(r){var o,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=l.x,u=l.y,f=l.id,c=t.state,h=c.endX,y=c.endY,p=c.dragging,g=Ze({x:h,y},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&g&&g.node){var v=g.node,_=g.anchor.id,M="".concat(s.id,"_").concat(v.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},b=A.isAllPass,R=A.msg;if(O&&b){v.setElementState(X.DEFAULT);var L=a.getNodeModelById(g.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:d,y:u},targetNodeId:g.node.id,targetAnchorId:g.anchor.id,endPoint:{x:g.anchor.x,y:g.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:r,nodeModel:s,edgeModel:I}),I}var Y=v.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,r=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(r);if(a)return a;var s=r.x,l=r.y,d=_t(_t({},o),o==null?void 0:o.hover);return x("g",{children:[x(re,_t({className:"lf-node-anchor-hover"},d,{x:s,y:l})),x(re,_t({className:"lf-node-anchor"},o,{x:s,y:l}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,r=t.graphModel,o=r.getAnchorIncomingEdge,i=r.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,r){var o,i,a=this.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData,u=Ze({x:t,y:r},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),d.id===c)return;this.preTargetNode=f;var h="".concat(l.id,"_").concat(f.id,"_").concat(c,"_").concat(d.id);if(!this.targetRuleResults.has(h)){var y=u.anchor,p=l.isAllowConnectedAsSource(f,d,y),g=f.isAllowConnectedAsTarget(l,d,y);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(g))}var v=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;v&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,r=t.startX,o=t.startY,i=t.endX,a=t.endY,s=vt(r,o,i,a);return s>10},e.prototype.render=function(){var t=this,r=this.state,o=r.startX,i=r.startY,a=r.endX,s=r.endY,l=this.props,d=l.anchorData.edgeAddable,u=l.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){d!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(K),Qa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),br=function(){return br=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},co=function(n){es(e,n);function e(t){var r=n.call(this)||this;r.mouseDownHandler=function(i){var a=r.props,s=a.draggable,l=a.model,d=a.graphModel,u=d.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),r.stepperDrag.model=l,r.stepperDrag.handleMouseDown(i))},r.onDragging=function(i){var a=i.deltaX,s=i.deltaY,l=r.props,d=l.model,u=l.graphModel.transformModel;if(a||s){var f=rs(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];d.moveText(c,h)}},r.dbClickHandler=function(){var i=r.props,a=i.editable,s=i.graphModel.eventCenter,l=i.model;a&&l.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:l.text,model:l})};var o=t.draggable;return r.stepperDrag=new Mt({onDragging:r.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),r}return e.prototype.getShape=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=r.text,s=a.value,l=a.x,d=a.y,u=a.editable,f=a.draggable,c={x:l,y:d,className:"",value:s},h=r.getTextStyle(),y=i.nodeTextDraggable||f;return x(ao,Cr({},c,h,{className:Do({"lf-element-text":u,"lf-text-draggable":!u&&y,"lf-text-disabled":!u&&!y}),model:r}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(K),ns=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ft=function(){return ft=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},os=function(n){ns(e,n);function e(t){var r=n.call(this,t)||this;return r.setHoverOn=function(){r.setState({isHovered:!0})},r.setHoverOff=function(){r.setState({isHovered:!1})},r.state={isHovered:!1},r}return e.prototype.getBackground=function(){var t=this.state.isHovered,r=this.props.model,o=r.text,i=r.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,l=i.textWidth,d=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,y=o.x,p=o.y,g={};if(u==="autoWrap"&&l){var v=oo({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(l,"px"),lineHeight:d,padding:f},rowsLength:h,className:"lf-get-text-height"});g=ft(ft({},a),{x:y,y:p,width:l,height:v})}else{var _=ii({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=l,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(nt){return nt.trim()}).map(function(nt){return parseFloat(nt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var b=Ye(O,2),R=b[0],L=b[1];O=[R,L,R,L]}else if(O.length===3){var z=Ye(O,3),I=z[0],L=z[1],U=z[2];O=[I,L,U,L]}var Y=Ye(O,4),Z=Y[0],lt=Y[1],jt=Y[2],Rt=Y[3];M+=lt+Rt,S+=Z+jt,y=y+(lt-Rt)/2,p=p+(jt-Z)/2}}g=ft(ft({},a),{x:y-1,y:p-1,width:M,height:S})}return x(Et,ft({},g))}return null},e.prototype.getShape=function(){var t=this.props.model,r=t.text,o=r.x,i=r.y,a=r.value;if(!a)return null;var s=t.getTextStyle(),l=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(ao,ft({},l))]})},e}(co),is=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Je=function(){return Je=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Lt=function(n){is(e,n);function e(t){var r=n.call(this)||this;r.onDragStart=function(l){var d=l.event,u=r.props,f=u.model,c=u.graphModel;if(d){var h=c.getPointByClient({x:d.clientX,y:d.clientY}).canvasOverlayPosition,y=h.x,p=h.y;r.moveOffset={dx:f.x-y,dy:f.y-p}}},r.onDragging=function(l){var d,u,f,c,h=l.event,y=r.props,p=y.model,g=y.graphModel,v=g.editConfigModel,_=v.stopMoveGraph,M=v.autoExpand,S=v.snapGrid,O=g.transformModel,w=g.selectNodes,A=g.width,b=g.height,R=g.gridSize;p.isDragging=!0;var L=h,z=L.clientX,I=L.clientY,U=g.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,lt=He(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=lt[0],Rt=lt[1];if(Y=Y+((u=(d=r.moveOffset)===null||d===void 0?void 0:d.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=r.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!b){g.moveNode2Coordinate(p.id,Y,Z);return}var nt=jt<0||Rt<0||jt>A||Rt>b;if(!(M&&!_&&nt)){var yt=He(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),ne=yt[0],ir=yt[1],Ae=He(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),ar=Ae[0],po=Ae[1],Pe=Math.max(R,20),zt=[];ne<0?zt=[Pe,0]:ar>g.width?zt=[-Pe,0]:ir<0?zt=[0,Pe]:po>g.height&&(zt=[0,-Pe]),r.t&&Ke(r.t),p.transform=new rr(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?r.t=io(function(){var De=He(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var ho=-(Gt??0)/O.SCALE_X,vo=-(Ft??0)/O.SCALE_X;g.moveNodes(Te,ho,vo)}):g.moveNodes(Te,Y-p.x,Z-p.y)}},r.onDragEnd=function(){r.t&&Ke(r.t);var l=r.props.model;l.isDragging=!1},r.onMouseOut=function(l){Ro()&&r.setHoverOff(l)},r.handleMouseUp=function(){var l=r.props.model;r.mouseUpDrag=l.isDragging},r.handleClick=function(l){var d=r.mouseUpDrag===!1;if(r.startTime){var u=r.props,f=u.model,c=u.graphModel;if(d){var h=f.getData(),y=c.getPointByClient({x:l.clientX,y:l.clientY}),p={data:h,e:l,position:y,isSelected:!1,isMultiple:!1},g=l.button===2,v=l.detail===2;if(!g){var _=c.editConfigModel,M=ro(l,_);p.isMultiple=M,f.isSelected&&!v&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||r.toFront()),v?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},r.handleContextMenu=function(l){l.preventDefault();var d=r.props,u=d.model,f=d.graphModel,c=f.editConfigModel,h=u.getData(),y=f.getPointByClient({x:l.clientX,y:l.clientY});f.setElementStateById(u.id,X.SHOW_MENU,y.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:l,position:y}),c.isSilentMode||r.toFront()},r.handleMouseDown=function(l){var d=r.props,u=d.model,f=d.graphModel;r.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.handleFocus=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:d.getData()})},r.handleBlur=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:d.getData()})},r.setHoverOn=function(l){var d=r.props,u=d.model,f=d.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:l})}},r.setHoverOff=function(l){var d=r.props,u=d.model,f=d.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:l}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),r.modelDisposer=Po(function(){return r.props},function(l){l&&l.model&&r.stepDrag.setModel(l.model)}),r}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.isSelected,s=o.isHitable,l=o.isDragging,d=o.isShowAnchor;return s&&(a||d)&&!l?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ja,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,l=r.isSelected,d=r.isHitable,u=r.rotatable,f=r.isHovered,c=s&&u,h=r.getRotateControlStyle();if(!a&&d&&(l||f)&&c)return x(ts,{graphModel:o,nodeModel:r,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,l=r.isSelected,d=r.isHitable,u=r.resizable,f=r.isHovered,c=s&&u,h=r.getResizeControlStyle();return!a&&d&&(l||f)&&c?x(Ti,{style:h,model:r,graphModel:o}):null},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(co,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,r=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(r){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,r=t.model,o=t.graphModel;r.autoToFront&&o.toFront(r.id)},e.prototype.render=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,l=i.allowRotate,d=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=r.isHitable,h=r.draggable,y=r.transform,p=r.getOuterGAttributes(),g=p.className,v=g===void 0?"":g,_=as(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:y,children:[this.getShape(),this.getText(),l&&this.getRotateControl(),d&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(v),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(v)},_,{children:M})),S},e.isObserved=!1,e}(K),ss=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Lr=function(){return Lr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},xt;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(xt||(xt={}));var kn=function(n){ys(e,n);function e(t){var r=n.call(this)||this;r.handleMouseDown=function(l){r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.onDragStart=function(){var l=r.props,d=l.x,u=l.y,f=l.edgeModel,c=f.startPoint,h=f.endPoint,y=f.pointsList;r.oldEdge={startPoint:c,endPoint:h,pointsList:y},r.setState({endX:d,endY:u,dragging:!0})},r.onDragging=function(l){var d=l.deltaX,u=l.deltaY,f=r.state,c=f.endX,h=f.endY,y=r.props,p=y.graphModel,g=y.type,v=p.transformModel,_=p.editConfigModel,M=_s(v.moveCanvasPointByHtml([c,h],d,u),2),S=M[0],O=M[1];r.setState({endX:S,endY:O,dragging:!0});var w=r.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&r.isAllowAdjust(A).pass){var b=w.startPoint,R=w.endPoint,L=w.sourceNode,z=w.targetNode,I=g===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:b.x,y:b.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else g===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},r.onDragEnd=function(l){var d,u,f,c=l.event;try{r.setState({dragging:!1});var h=r.props,y=h.graphModel,p=h.edgeModel,g=h.type,v=r.state,_=v.endX,M=v.endY,S=v.dragging,O=Ze({x:_,y:M},y);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var b=r.isAllowAdjust(O),R=b.pass,L=b.msg,z=b.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,lt=I.targetAnchorId,jt=lt===void 0?"":lt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:(U==null?void 0:U.value)||""}),g===xt.SOURCE){var nt=y.getNodeModelById(O.node.id),yt=y.getNodeModelById(p.targetNodeId),ne=(d=y.edgeGenerator)===null||d===void 0?void 0:d.call(y,nt==null?void 0:nt.getData(),yt==null?void 0:yt.getData(),A);A=ct(ct({},ne),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(g===xt.TARGET){var nt=y.getNodeModelById(p.sourceNodeId),yt=y.getNodeModelById(O.node.id),ne=(u=y.edgeGenerator)===null||u===void 0?void 0:u.call(y,nt==null?void 0:nt.getData(),yt==null?void 0:yt.getData(),A);A=ct(ct({},ne),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var ir=z.getData();y.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:ir,msg:L})}}else w=!0;if(w)r.recoveryEdge();else{var Ae=p.getData();y.deleteEdgeById(p.id);var ar=y.addEdge(ct({},A));y.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:ar.getData(),oldEdge:Ae}})}(f=r.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var y=r.props.graphModel;y.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:r.stepDragData})}},r.recoveryEdge=function(){var l=r.props.edgeModel,d=r.oldEdge,u=d.startPoint,f=d.endPoint,c=d.pointsList;l.updateStartPoint(u),l.updateEndPoint(f),l.modelType!==j.LINE_EDGE&&(l.pointsList=c??[],l.initPoints())},r.getAdjustPointStyle=function(){var l=r.props.graphModel.theme,d=l.edgeAdjust;return d},r.state={dragging:!1,endX:0,endY:0},r.targetRuleResults=new Map,r.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return r.stepDragData={type:o,edgeData:i.getData()},r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:r.stepDragData}),r}return e.prototype.isAllowAdjust=function(t){var r=this.props,o=r.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,l=o.sourceAnchorId,d=o.targetAnchorId,u=r.type,f,c,h,y;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,y=s.getAnchorInfo(d)):(f=a,c=t.node,y=t.anchor,h=a.getAnchorInfo(l)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,y.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(y.id);if(!this.targetRuleResults.has(p)){var g=f.isAllowConnectedAsSource(c,h,y,i),v=c.isAllowConnectedAsTarget(f,h,y,i);this.sourceRuleResults.set(p,Ve(g)),this.targetRuleResults.set(p,Ve(v))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,b=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(b):c.setElementState(b),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(r,o,a)})},e}(K),ms=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xr=function(){return Xr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},or=function(n){xs(e,n);function e(){var t=n.call(this)||this;return t.textRef=Gr(),t.handleHover=function(r,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(r);var l=r?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,d=a.getData();s.emit(l,{data:d,e:o})},t.setHoverOn=function(r){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,r))},t.setHoverOff=function(r){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,r))},t.handleContextMenu=function(r){r.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,l=a.getPointByClient({x:r.clientX,y:r.clientY});a.setElementStateById(i.id,X.SHOW_MENU,l.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:r,position:l})},t.handleMouseDown=function(r){r.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var r=t.props.model;t.mouseUpDrag=r.isDragging},t.handleClick=function(r){if(t.startTime&&!t.mouseUpDrag){var o=r.button===2;if(!o){var i=r.detail===2,a=t.props,s=a.model,l=a.graphModel,d=s==null?void 0:s.getData(),u=l.getPointByClient({x:r.clientX,y:r.clientY});if(i){var f=l.editConfigModel,c=l.textEditElement,h=s.id,y=s.text,p=s.modelType;if(c&&c.id===h&&l.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&y.editable&&(s.setSelected(!1),l.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var g=s,v=l.getPointByClient({x:r.x,y:r.y}).canvasOverlayPosition,_=v.x,M=v.y;g.dbClickPosition=eo({x:_,y:M},g.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:d,e:r,position:u})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:d,e:r,position:u}),l.eventCenter.emit(T.EDGE_CLICK,{data:d,e:r,position:u});var S=l.editConfigModel;l.selectEdgeById(s.id,ro(r,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(os,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:r,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint;return[r,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,r=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,l=s===void 0?2:s,d=Es(this.getLastTwoPoints(),2),u=d[0],f=d[1],c="auto";return u!==null&&f!==null&&(c=$i(Fi({x:f.x-u.x,y:f.y-u.y}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(r),refX:-l,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(r),refX:l,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,r=t.getArrowStyle(),o=r.stroke,i=r.strokeWidth,a=r.offset,s=r.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,r,o){var i=o.getAdjustPointStyle();return x(re,ge({className:"lf-edge-adjust-point"},i,{x:t,y:r}))},e.prototype.getAdjustPoints=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,l=i.adjustEdgeEnd,d=r.getAdjustStart(),u=r.getAdjustEnd();return x("g",{children:[a&&s&&x(kn,ge({type:xt.SOURCE},d,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o})),a&&l&&x(kn,ge({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,r=t.graphModel,o=t.model;r.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,r=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&r?this.getAdjustPoints():""]})},e.isObserved=!1,e}(K),Ms=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Yr=function(){return Yr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},zn=function(n){Ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,r=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,l=t.getEdgeAnimationStyle(),d=l.strokeDasharray,u=l.stroke,f=l.strokeDashoffset,c=l.animationName,h=l.animationDuration,y=l.animationIterationCount,p=l.animationTimingFunction,g=l.animationDirection;return x(Oe,Yr({d:i},r,s,a?{strokeDasharray:d,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:y,animationTimingFunction:p,animationDirection:g}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,r=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Os(un(a,i),2),l=s[0],d=s[1],u={start:l,end:d,hover:r,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return un(o,r)},e}(or),Ss=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hr=function(){return Hr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Fn=function(n){ws(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(){var r=t.props.model;r.dragAppendStart(),t.isShowAdjustPointTemp=r.isShowAdjustPoint,r.isShowAdjustPoint=!1},t.onDragging=function(r){var o=r.deltaX,i=r.deltaY,a=t.props,s=a.model,l=a.graphModel;t.isDragging=!0;var d=l.transformModel,u=l.editConfigModel,f=As(d.fixDeltaXY(o,i),2),c=f[0],h=f[1],y=s,p=u.adjustEdgeMiddle;p?t.appendInfo=y.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=y.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var r,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(r=t.isShowAdjustPointTemp)!==null&&r!==void 0?r:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(r,o){o.draggable&&t.drag.handleMouseDown(r),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,r=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),l=s.strokeDasharray,d=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,y=s.animationTimingFunction,p=s.animationDirection;return x(Si,Xt({points:r},a,i,o?{strokeDasharray:l,stroke:d,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:y,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.points,o=t.isSelected,i=this.state.hover,a=kt(r),s=a[0],l=a[0];return a.length>=2&&(s=a[a.length-2],l=a[a.length-1]),{start:s,end:l,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.points,o=kt(r),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var r=t.start,o=t.end,i;if(r.x===o.x&&r.y===o.y)i="";else{var a={start:r,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),l=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,` - L`).concat(s.rightX," ").concat(s.rightY,` - L`).concat(l.rightX," ").concat(l.rightY,` - L`).concat(l.leftX," ").concat(l.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var r=this.getAppendAttributes(t),o=r.d,i=r.strokeWidth,a=r.fill,s=r.strokeDasharray,l=r.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:l,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.pointsList,s=o.draggable,l=[],d=a.length,u=function(h){var y="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},g=x("g",{className:y,children:f.getAppendShape(p)}),v=i.editConfigModel,_=v.adjustEdge,M=v.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===d-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(y+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(y+="-ns-resize"),p.direction=G.HORIZONTAL),g=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:y,children:f.getAppendShape(p)})})}l.push(g)},f=this,c=0;c=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},bs=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Cs=function(n){Ds(e,n);function e(t){var r=n.call(this,t)||this;return r.ref=Gr(),r.__prevText={type:"",text:"",id:""},r.keyupHandler=function(o){var i=r.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(X.DEFAULT))},r.inputHandler=function(o){var i=o.target.innerText,a=r.props.graphModel.textEditElement;a&&(r.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},r.keydownHandler=function(o){o.stopPropagation()},r.state={style:{left:0,top:0}},r}return e.getDerivedStateFromProps=function(t){var r,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,l=s.inputText,d;if(o){if(!(!((r=o.text)===null||r===void 0)&&r.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var y={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,g=p.overflowMode,v=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&g==="autoWrap"&&(d=Ot(Ot({},y),{width:M,minWidth:M,lineHeight:v,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,g=S.overflowMode,v=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,b=A||M||O;(w!==j.TEXT_NODE&&g==="autoWrap"||w===j.TEXT_NODE&&M)&&(d=Ot(Ot({},y),{width:b,minWidth:b,lineHeight:v,padding:_}))}var R=o.text,L=R.x,z=R.y,I=bs(a.CanvasPointToHtmlPoint([L,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},d),l)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var r=this.__prevText,o=r.text,i=r.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(r)}},e.prototype.render=function(){var t,r=this.props.graphModel.textEditElement,o=this.state.style;return r?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=r.text)===null||t===void 0?void 0:t.value},r.id):null},e.toolName="text-edit-tool",e=Ns([ot],e),e}(K),Ls=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),js=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Rs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Bs=[Cs,Is],Xs=function(){function n(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Bs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var r=e.graphModel,o=r.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=r.textEditElement,s=r.editConfigModel,l=s.edgeTextEdit,d=s.nodeTextEdit;(l||d)&&a&&((i=r.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return n.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},n.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},n.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},n.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},n.prototype.getTools=function(){return Array.from(this.toolMap.values())},n.prototype.getInstance=function(){return this.instance},n.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},hr([E],n.prototype,"toolMap",void 0),hr([m],n.prototype,"disableTool",null),hr([m],n.prototype,"enableTool",null),n}(),kr=function(){return kr=Object.assign||function(n){for(var e,t=1,r=arguments.length;tthis.maxSize&&this.undos.shift())},n.prototype.undoAble=function(){return this.undos.length>1},n.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=C(t),t}},n.prototype.redoAble=function(){return this.redos.length>0},n.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=C(e),e}},n.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=bo(e,Vn(function(){var r=e.modelToHistoryData();r&&t.add(kr({},r))},this.waitTime))},n.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},n}();var gt=null;function $n(n,e){return n.x+=e,n.y+=e,Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}function Un(n,e){return n.startPoint&&(n.startPoint.x+=e,n.startPoint.y+=e),n.endPoint&&(n.endPoint.x+=e,n.endPoint.y+=e),n.pointsList&&n.pointsList.length>0&&n.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}var Vt=40,ke=40;function Hs(n,e){var t=n.keyboard,r=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Vt,!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=n.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(gt=null,!0):(gt=i,gt.nodes.forEach(function(s){return $n(s,Vt)}),gt.edges.forEach(function(s){return Un(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;if(gt&&(gt.nodes||gt.edges)){n.clearSelectElements();var o=n.addElements(gt,ke);if(!o)return!0;o.nodes.forEach(function(i){return n.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return n.selectElementById(i.id,!0)}),gt.nodes.forEach(function(i){return $n(i,Vt)}),gt.edges.forEach(function(i){return Un(i,Vt)}),ke=ke+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.redo(),!1)}),t.on(["backspace"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return n.clearSelectElements(),o.edges.forEach(function(i){return i.id&&n.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&n.deleteNode(i.id)}),!1})}var ks=function(){function n(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new No(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return n.prototype.initShortcuts=function(){var e=this,t,r=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(r)if(Oo(r))r.forEach(function(s){var l=s.keys,d=s.callback,u=s.action;return e.on(l,d,u)});else{var o=r.keys,i=r.callback,a=r.action;this.on(o,i,a)}},n.prototype.on=function(e,t,r){this.mousetrap.bind(this.getKeys(e),t,r)},Object.defineProperty(n.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),n.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},n.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},n.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},n.prototype.destroy=function(){this.mousetrap.reset()},n.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(r){return t.formatKey(r)})},n.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},n}(),Tt=function(){return Tt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rv.step||Math.abs(v.sumDeltaY)>v.step)){var O=v.sumDeltaX%v.step,w=v.sumDeltaY%v.step,A=v.sumDeltaX-O,C=v.sumDeltaY-w;v.sumDeltaX=O,v.sumDeltaY=w;var R=(M=v.model)===null||M===void 0?void 0:M.getData();v.isDragging||((S=v.eventCenter)===null||S===void 0||S.emit(T["".concat(v.eventType,"_DRAGSTART")],{e:_,data:v.data||R}),v.onDragStart({event:_})),v.isDragging=!0,Promise.resolve().then(function(){var b,z;v.onDragging({deltaX:A,deltaY:C,event:_}),(b=v.eventCenter)===null||b===void 0||b.emit(T["".concat(v.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:C,e:_,data:v.data||R}),(z=v.eventCenter)===null||z===void 0||z.emit(T["".concat(v.eventType,"_DRAG")],{e:_,data:v.data||R})})}},this.handleMouseUp=function(_){var M=window.document;v.isStartDragging=!1,v.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",v.handleMouseMove,!1),M.removeEventListener("mouseup",v.handleMouseUp,!1);var A=(S=v.model)===null||S===void 0?void 0:S.getData();(O=v.eventCenter)===null||O===void 0||O.emit(T["".concat(v.eventType,"_MOUSEUP")],{e:_,data:v.data||A}),v.isDragging&&(v.isDragging=!1,v.onDragEnd({event:_}),(w=v.eventCenter)===null||w===void 0||w.emit(T["".concat(v.eventType,"_DROP")],{e:_,data:v.data||A}))})},this.cancelDrag=function(){var _=window?.document;_.removeEventListener("mousemove",v.handleMouseMove,!1),_.removeEventListener("mouseup",v.handleMouseUp,!1),v.onDragEnd({event:void 0}),v.isDragging=!1},this.destroy=function(){v.isStartDragging&&v.cancelDrag()},this.onDragStart=r,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=y,this.eventType=d,this.eventCenter=u,this.model=p,this.data=g}return n.prototype.setStep=function(e){this.step=e},n.prototype.setModel=function(e){this.model=e},n})(),Yo=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{x:e-r/2,y:t-o/2,x1:e+r/2,y1:t+o/2}},Ho=function(n){var e=n.startPoint,t=n.endPoint,r=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:r-i/2,y:o-a/2,x1:r+i/2,y1:o+a/2}},ko=function(n){var e=n.points,t=kt(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},zo=function(n){var e=n.path,t=Ur(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Go=function(n){if(n.modelType===j.LINE_EDGE)return Ho(n);if(n.modelType===j.POLYLINE_EDGE)return ko(n);if(n.modelType===j.BEZIER_EDGE)return zo(n)},Fo=function(n,e,t,r){var o=(e.y-n.y)*(r.x-t.x)-(n.x-e.x)*(t.y-r.y);if(o===0)return!1;var i=((e.x-n.x)*(r.x-t.x)*(t.y-n.y)+(e.y-n.y)*(r.x-t.x)*n.x-(r.y-t.y)*(e.x-n.x)*t.x)/o,a=-((e.y-n.y)*(r.y-t.y)*(t.x-n.x)+(e.x-n.x)*(r.y-t.y)*n.y-(r.x-t.x)*(e.y-n.y)*t.y)/o;return(i-n.x)*(i-e.x)<=0&&(a-n.y)*(a-e.y)<=0&&(i-t.x)*(i-r.x)<=0&&(a-t.y)*(a-r.y)<=0?{x:i,y:a}:!1},me=function(n,e,t){var r=n.x,o=n.y,i=e.x,a=e.y,s=t.x,l=t.y,d=(l-a)/(s-i),u=a-d*i;return(r>=i&&r<=s||r<=i&&r>=s)&&(o>=a&&o<=l||o<=a&&o>=l)&&Math.abs(o-d*r-u)=e.x?(a.leftX=e.x+d*Math.sin(s+l),a.leftY=e.y-d*Math.cos(s+l),a.rightX=e.x-d*Math.sin(s-l),a.rightY=e.y+d*Math.cos(s-l)):(a.leftX=e.x-d*Math.sin(s+l),a.leftY=e.y+d*Math.cos(s+l),a.rightX=e.x+d*Math.sin(s-l),a.rightY=e.y-d*Math.cos(s-l)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+d*Math.sin(s-l),a.leftY=t.y-d*Math.cos(s-l),a.rightX=t.x-d*Math.sin(s+l),a.rightY=t.y+d*Math.cos(s+l)):(a.leftX=t.x-d*Math.sin(s-l),a.leftY=t.y+d*Math.cos(s-l),a.rightX=t.x+d*Math.sin(s+l),a.rightY=t.y-d*Math.cos(s+l))),a},qt=function(){return qt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dt=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rr/e.height?G.HORIZONTAL:G.VERTICAL},$e=function(n,e,t){var r=Uo(t,e);return r===G.HORIZONTAL?{x:t.x>n.centerX?n.maxX:n.minX,y:t.y}:{x:t.x,y:t.y>n.centerY?n.maxY:n.minY}},Qr=function(n,e){var t=Math.min(n.minX,e.minX),r=Math.min(n.minY,e.minY),o=Math.max(n.maxX,e.maxX),i=Math.max(n.maxY,e.maxY);return{x:(t+o)/2,y:(r+i)/2,centerX:(t+o)/2,centerY:(r+i)/2,minX:t,minY:r,maxX:o,maxY:i,height:i-r,width:o-t}},Ee=function(n,e){n===void 0&&(n=[]);var t=[],r=[];n.forEach(function(u){t.push(u.x),r.push(u.y)});var o=Math.min.apply(Math,Dt([],at(t),!1)),i=Math.max.apply(Math,Dt([],at(t),!1)),a=Math.min.apply(Math,Dt([],at(r),!1)),s=Math.max.apply(Math,Dt([],at(r),!1)),l=i-o,d=s-a;return e&&(l+=e,d+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:d,width:l}},Ue=function(n){var e=n.minX,t=n.minY,r=n.maxX,o=n.maxY;return[{x:e,y:t},{x:r,y:t},{x:r,y:o},{x:e,y:o}]},be=function(n,e){var t=n.x,r=n.y;return te.maxX||re.maxY},Wo=function(n,e){return en.maxX?[]:[{x:e,y:n.minY},{x:e,y:n.maxY}]},Zo=function(n,e){return en.maxY?[]:[{x:n.minX,y:e},{x:n.maxX,y:e}]},Vo=function(n,e){return Dt(Dt([],at(Wo(n,e.x)),!1),at(Zo(n,e.y)),!1)},xr=function(n,e){return Math.abs(n.x-e.x)+Math.abs(n.y-e.y)},Ko=function(n,e){var t=-2,r=0;return e.forEach(function(o){o&&(n.x===o.x&&(r+=t),n.y===o.y&&(r+=t))}),r},tn=function(n,e,t,r,o){return xr(n,e)+xr(n,t)+Ko(n,[e,t,r,o])},Jn=function(n,e,t,r,o){o||(o=0),n.unshift(e[r]),t[r]&&t[r]!==r&&o<=100&&Jn(n,e,t,t[r],o+1)},qo=function(n,e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},ie=function(n,e,t,r){var o=e.x-n.x,i=e.y-n.y,a=r.x-t.x,s=r.y-t.y,l=(-i*(n.x-t.x)+o*(n.y-t.y))/(-a*i+o*s),d=(a*(n.y-t.y)-s*(n.x-t.x))/(-a*i+o*s);return l>=0&&l<=1&&d>=0&&d<=1},en=function(n,e,t){if(t.width===0&&t.height===0)return!1;var r=at(Ue(t),4),o=r[0],i=r[1],a=r[2],s=r[3];return ie(n,e,o,i)||ie(n,e,o,s)||ie(n,e,i,a)||ie(n,e,a,s)},Jo=function(n,e,t,r){var o=[];return n.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!en(i,e,t)&&!en(i,e,r)&&o.push(i)}),mr(o)},Qo=function(n,e,t,r,o,i,a){var s=[],l=[e],d={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=tn(e,t,e));var c={};n.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,g=1/0;if(l.forEach(function(_){_.id&&f[_.id]=u[_.id])return;d[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+tn(_,t,e,i,a)}})};l.length;){var y=h();if(typeof y=="object")return y.value}return[e,t]},rn=function(n){return rt(n)},Qn=function(n){for(var e=1;e2&&(v=Qn(v)),mr(v)},ti=function(n){if(n.length===1){var e=at(n,1),t=e[0];return[t,t]}else{for(var r=n[0],o=n[1],i=vt(r.x,r.y,o.x,o.y),a=1;ai&&(i=d,r=s,o=l)}return[r,o]}},on=function(n,e,t){var r=Nt(n,t),o=Nt(e,t);return r&&o},an=function(n,e,t){var r=Nt(n,t),o=Nt(e,t),i=r&&o,a=r||o;return!i&&a},sn=function(n,e,t){for(var r=void 0,o=rt(t),i=Ue(o),a=0;a=1&&r<=126||r>=65376&&r<=65439?e+=1:e+=2}return e},ri=function(n){var e=n.start,t=n.end,r;if(e.x===t.x&&e.y===t.y)r="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(qt(qt({},o),{type:"start"})),a=xe(qt(qt({},o),{type:"end"}));r="M".concat(i.leftX," ").concat(i.leftY,` + L`).concat(i.rightX," ").concat(i.rightY,` + L`).concat(a.rightX," ").concat(a.rightY,` + L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:r,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},dn=function(n){var e=n.start,t=n.end,r=n.sourceNode,o=n.targetNode,i=n.offset,a=rt(r),s=rt(o),l=Fe(a,i),d=Fe(s,i),u=$e(l,a,e),f=$e(d,s,t);return{sNext:u,ePre:f}},Ur=function(n){var e=n.replace(/M/g,"").replace(/C/g,",").split(","),t=Ce(e[0]),r=Ce(e[1]),o=Ce(e[2]),i=Ce(e[3]);return[t,r,o,i]},Ce=function(n){var e=at(n.replace(/(^\s*)/g,"").split(" "),2),t=e[0],r=e[1];return{x:+t,y:+r}},un=function(n,e){var t=at(n,4),r=t[0],o=t[1],i=t[2],a=t[3],s=Hi(r,o,i,a,e);return[s,n[3]]},eo=function(n,e){for(var t=n.x,r=n.y,o=kt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],l=0;lo?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},$t=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Le=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ur=function(n,e,t){var r=dr(n,2),o=r[0],i=r[1],a=dr(e,2),s=a[0],l=a[1],d=dr(t,2),u=d[0],f=d[1];return o>s&&ol&&i=0?o:-o},e})(no),Er=(function(n){Wr(e,n);function e(t,r){var o=n.call(this,t,r,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e})(no),er=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ut=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;o--){var i=t[o],a=fi(n,i);if(a){var s=i.getTargetAnchor(n);if(s){var l={node:i,anchorIndex:s.index,anchor:s.anchor};(!r||di(i,r.node,e))&&(r=l)}}}return r},di=function(n,e,t){return n.zIndex>e.zIndex?!0:t.nodesMap[n.id].index>t.nodesMap[e.id].index},ui=function(n,e){for(var t=Mr(e),r,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},fi=function(n,e){var t=!1,r=5,o=rt(e);return n.x>=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},rt=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{minX:e-r/2,minY:t-o/2,maxX:e+r/2,maxY:t+o/2,x:e,y:t,width:r,height:o,centerX:e,centerY:t}},ci=function(n){var e=n,t=e.x,r=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:r-i/2+a,r:a},{x:t+o/2-a,y:r-i/2+a,r:a},{x:t-o/2+a,y:r+i/2-a,r:a},{x:t+o/2-a,y:r+i/2-a,r:a}]},pn=function(n,e,t){var r=ci(t),o,i=Number.MAX_SAFE_INTEGER;return r.forEach(function(a){var s=vt(n.x,n.y,a.x,a.y);sd.minX&&n.xd.minY&&n.yu.x&&(f=u,c=d);var h={x:n.x,y:n.y};if(f.x===c.x&&e===G.HORIZONTAL&&(h={x:f.x,y:n.y}),f.y===c.y&&e===G.VERTICAL&&(h={x:n.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var y=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===G.HORIZONTAL?h={x:(n.y-p)/y,y:n.y}:e===G.VERTICAL&&(h={x:n.x,y:y*n.x+p})}var g=me(h,d,u);if(g){var v=vt(h.x,h.y,n.x,n.y);vn.x?o=n.x+t/2:e.xn.y?i=n.y+r/2:e.y1?e.forEach(function(s){var l=document.createElement("div");l.textContent=s,i.appendChild(l)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},gn=function(n){var e=n.rows,t=n.rowsLength,r=n.fontSize,o=0;return e&&e.forEach(function(i){var a=to(i);o=a>o?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Ke=function(n){return typeof n!="object"?{isAllPass:!!n,msg:n?"":"不允许连接"}:n},Yt=function(){return To()},se=new Map,io=function(n){var e=Yt();function t(){n();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var r=window.requestAnimationFrame(t);return se.set(e,r),e},qe=function(n){var e=se.get(n);e&&(window.cancelAnimationFrame(e),se.delete(n))},Me=function(){return Me=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ao(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.value,a=n.fontSize,s=a===void 0?12:a,l=n.fill,d=l===void 0?"currentColor":l,u=n.overflowMode,f=u===void 0?"default":u,c=n.textWidth,h=c===void 0?void 0:c,y=n.model,p={x:t,y:o,fill:d,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(bt(n),function(O){var w=hi(O,2),A=w[0],C=w[1];typeof C!="object"&&(p[A]=C)}),i){var g=String(i).split(/[\r\n]/g),v=g.length;if(f!=="default"){var _=y.BaseType,M=y.modelType;if(_===$.NODE&&M!==j.TEXT_NODE||_===$.EDGE&&h)return vi(n)}if(v>1){var S=g.map(function(O,w){var A=s+2,C=(w-(v-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+C,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function vi(n){var e=n.x,t=n.y,r=n.value,o=n.model,i=n.textWidth,a=n.fontSize,s=a===void 0?12:a,l=n.lineHeight,d=n.fontFamily,u=d===void 0?"":d,f=n.wrapPadding,c=f===void 0?"0, 0":f,h=n.overflowMode,y=o.width,p=o.height,g=o.textHeight,v=i||y,_=String(r).split(/[\r\n]/g),M=_.length,S=oo({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(v,"px"),fontFamily:u,lineHeight:l,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;g&&(O=g);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:v,height:O,x:e-v/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:v,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},n),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Sr=function(){return Sr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ee(n){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(bt(n),function(t){var r=yi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Sr({},e))}var wr=function(){return wr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Et(n){var e=n.x,t=n.y,r=n.width,o=n.height,i=n.className,a=n.strokeWidth,s=n.radius,l=s===void 0?0:s,d=e-r/2,u=t-o/2,f={};return f["stroke-width"]=a,W(bt(n),function(c){var h=gi(c,2),y=h[0],p=h[1];typeof p!="object"&&(f[y]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",l&&(f.rx=l,f.ry=l),f.x=d,f.y=u,x("rect",wr({},f))}var Ar=function(){return Ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Oe(n){var e={d:""};return W(bt(n),function(t){var r=_i(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",Ar({},e))}var Pr=function(){return Pr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function re(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.r,a=i===void 0?4:i,s=n.className,l={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(d){var u=mi(d,2),f=u[0],c=u[1];typeof c!="object"&&(l[f]=c)}),s?l.className="lf-basic-shape ".concat(s):l.className="lf-basic-shape",x("circle",Pr({},l))}var Tr=function(){return Tr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Ei(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.rx,a=i===void 0?4:i,s=n.ry,l=s===void 0?4:s,d=n.className,u={cx:t,cy:o,rx:a,ry:l,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(f){var c=xi(f,2),h=c[0],y=c[1];typeof y!="object"&&(u[h]=y)}),d?u.className="lf-basic-shape ".concat(d):u.className="lf-basic-shape",x("ellipse",Tr({},u))}var Dr=function(){return Dr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function so(n){var e=n.points,t=e===void 0?[]:e,r=n.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(bt(n),function(i){var a=Mi(i,2),s=a[0],l=a[1];typeof l!="object"&&(o[s]=l)}),r?o.classNmae="lf-basic-shape ".concat(r):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Dr({},o))}var Nr=function(){return Nr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Si(n){var e=n.className,t={points:"",fill:"none"};return W(bt(n),function(r){var o=Oi(r,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nr({},t))}var lo=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Se=function(){return Se=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},H;(function(n){n[n.LEFT_TOP=0]="LEFT_TOP",n[n.RIGHT_TOP=1]="RIGHT_TOP",n[n.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Pi=(function(n){lo(e,n);function e(t){var r=n.call(this)||this;r.updateEdgePointByAnchors=function(){var s=r.nodeModel,l=s.id,d=s.anchors,u=r.graphModel.getNodeEdges(l);W(u,function(f){if(f.sourceNodeId===l){var c=Ht(d,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===l){var c=Ht(d,function(y){return y.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},r.triggerResizeEvent=function(s,l,d,u,f,c){r.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:l,deltaX:d,deltaY:u,index:f,model:c})},r.recalcResizeInfo=function(s,l,d,u,f){d===void 0&&(d=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=L(l),h=c.deltaX,y=c.deltaY,p=c.width,g=c.height,v=c.PCTResizeInfo;if(v){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-y)/_;break;case H.RIGHT_TOP:S=(h-y)/_;break;case H.RIGHT_BOTTOM:S=(h+y)/_;break;case H.LEFT_BOTTOM:S=(h*-1+y)/_;break}S!==0&&(M=Math.round(S/v.ResizeBasis.basisHeight*1e5)/1e3),v.ResizePCT.widthPCT=Math.max(Math.min(v.ResizePCT.widthPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit),v.ResizePCT.heightPCT=Math.max(Math.min(v.ResizePCT.heightPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit);var O=Math.round(v.ResizePCT.widthPCT*v.ResizeBasis.basisWidth/100),w=Math.round(v.ResizePCT.heightPCT*v.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,y=g-w;break;case H.RIGHT_TOP:h=O-p,y=g-w;break;case H.RIGHT_BOTTOM:h=O-p,y=w-g;break;case H.LEFT_BOTTOM:h=p-O,y=w-g;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*d,c.height=f?g:g-y*d;break;case H.RIGHT_TOP:c.width=u?p:p+h*d,c.height=f?g:g-y*d;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*d,c.height=f?g:g+y*d;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*d,c.height=f?g:g+y*d;break}return c},r.resizeNode=function(s){var l=s.deltaX,d=s.deltaY,u=r.index,f=r.props,c=f.model,h=f.graphModel,y=f.x,p=f.y;Ii({x:y,y:p,deltaX:l,deltaY:d,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){r.dragHandler.cancelDrag()}})},r.onDragging=function(s){var l=s.deltaX,d=s.deltaY,u=r.graphModel.transformModel,f=Ai(u.fixDeltaXY(l,d),2),c=f[0],h=f[1];r.resizeNode({deltaX:c,deltaY:h})},r.onDragEnd=function(){var s=r.nodeModel.x,l=r.nodeModel.y;r.nodeModel.moveTo(s,l),r.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return r.index=o,r.nodeModel=i,r.graphModel=a,r.dragHandler=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:a.gridSize}),r}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),l=s.width,d=s.height,u=wi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:r,y:o,width:l??7,height:d??7},u)),x(Et,{className:"lf-resize-control-content",x:r,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e})(K),Ti=(function(n){lo(e,n);function e(){return n.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=rt(r),a=i.minX,s=i.minY,l=i.maxX,d=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:l,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:l,y:d},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:d}];return St(u,function(f){return x(Pi,Se({},f,{model:r,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,r=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:r,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e})(K);function Di(n,e){var t=n.x,r=n.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:r+(i-r)/2};return a}function ae(n,e,t){var r=Ni(t),o=n.x-e.x,i=n.y-e.y,a=o*Math.cos(r)-i*Math.sin(r)+e.x,s=o*Math.sin(r)+i*Math.cos(r)+e.y;return{x:a,y:s}}function Ni(n){return n*Math.PI/180}function bi(n){return n/Math.PI*180}function Ci(n,e,t,r,o,i,a,s,l){s===void 0&&(s=!1),l===void 0&&(l=!1);var d=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=bi(t),y={x:r,y:o},p={x:i,y:a},g=ae(y,p,h),v={x:g.x+d,y:g.y+u},_=Bi(g,v,p,h,s,l,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*n,e.height=S*n,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Li=function(n,e,t,r,o,i,a,s,l,d){t===void 0&&(t=1),r===void 0&&(r=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=L(e),f=u.deltaX,c=u.deltaY,h=u.width,y=u.height,p=u.PCTResizeInfo;if(p){var g=4,v=0,_=0;switch(n){case H.LEFT_TOP:_=(f*-1-c)/g;break;case H.RIGHT_TOP:_=(f-c)/g;break;case H.RIGHT_BOTTOM:_=(f+c)/g;break;case H.LEFT_BOTTOM:_=(f*-1+c)/g;break}_!==0&&(v=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(n){case H.LEFT_TOP:f=h-M,c=y-S;break;case H.RIGHT_TOP:f=M-h,c=y-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-y;break;case H.LEFT_BOTTOM:f=h-M,c=S-y;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ci(t,u,i,a,s,l,d,r,o);switch(n){case H.LEFT_TOP:u.width=r?h:h-f*t,u.height=o?y:y-c*t;break;case H.RIGHT_TOP:u.width=r?h:h+f*t,u.height=o?y:y-c*t;break;case H.RIGHT_BOTTOM:u.width=r?h:h+f*t,u.height=o?y:y+c*t;break;case H.LEFT_BOTTOM:u.width=r?h:h-f*t,u.height=o?y:y+c*t;break}return u},ji=function(n,e){var t=n.id,r=n.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(r,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(r,function(l){return l.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ri=function(n,e,t,r,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:n,data:e,deltaX:t,deltaY:r,index:o,model:i})},Ii=function(n){var e=n.x,t=n.y,r=n.deltaX,o=n.deltaY,i=n.index,a=n.nodeModel,s=n.graphModel,l=n.cancelCallback,d=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,y=a.PCTResizeInfo,p=a.minWidth,g=a.minHeight,v=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===v,A=g===_,C={width:d||u||c,height:d||f||h,deltaX:r,deltaY:o,PCTResizeInfo:y},R=d||u&&f?1/2:1,b=e,z=t,I=Li(i,C,R,w,A,M,b,z,S,O);if(I.widthv||I.height_){l?.();return}(M%(2*Math.PI)==0||y||b===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(ji(a,s),Ri(U,Y,r,o,i,a,s))};function Bi(n,e,t,r,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var l={x:t.x-(n.x-t.x),y:t.y-(n.y-t.y)},d=Di(l,e),u=ae(e,d,-r),f=ae(l,d,-r);if(o){var c=Math.abs(u.x-f.x),h=c-a;d.x>u.x?d.x=d.x+h/2:d.x=d.x-h/2}if(i){var y=Math.abs(u.y-f.y),p=y-s;d.y>u.y?d.y=d.y+p/2:d.y=d.y-p/2}if(o||i){var g=ae(f,d,r),v=g.x-l.x,_=g.y-l.y;d.x=d.x-v,d.y=d.y-_,f=ae(l,d,-r),u={x:d.x-(f.x-d.x),y:d.y-(f.y-d.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:d}}var Xi=100,Yi={x:1,y:0};function Hi(n,e,t,r,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:n.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+r.x*Math.pow(h,3),y:n.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+r.y*Math.pow(h,3)}},a=0,s=2,l=r.x,d=r.y,u=r;a=0?r:-r}function _n(n){var e=Math.hypot(n.x,n.y);return{x:n.x/e,y:n.y/e,z:0}}function Fi(n){return Gi(Yi,n)}function $i(n){return n*(180/Math.PI)}var Ui={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},uo=function(n){var e=L(Ui);return n&&(e=$r(e,n)),e},Wi=uo,Zi=1e3,Vi=999,Zr=function(){return++Zi},Ki=function(){return--Vi},V=function(){return V=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},or=(function(){function n(e,t){var r;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initEdgeData(e),this.setAttributes()}return n.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Zr()),this.setAnchors(),this.initPoints(),this.formatText(e)},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},n.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return L(e)},n.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return L(e)},n.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),r=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),r)},n.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return L(t)},n.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(n.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),n.prototype.getBeginAnchor=function(e,t,r){var o,i,a=Mr(e);return r&&(o=Ht(a,function(s){return s.id===r}),o)||a.forEach(function(s){var l=fn(s,t);(i===void 0||l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},mn=(function(n){qi(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,n.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,r=n.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},r),L(t)),L(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,r=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,r+=a}),{x:t/this.pointsList.length,y:r/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=n.prototype.getData.call(this),r=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:r})},e.prototype.getControls=function(){var t=this.startPoint,r=this.endPoint,o=dn({start:t,end:r,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var r=cr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];return"M ".concat(o.x," ").concat(o.y,` + C `).concat(i.x," ").concat(i.y,`, + `).concat(a.x," ").concat(a.y,`, + `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),r=t.sNext,o=t.ePre;this.updatePath(r,o)},e.prototype.updatePath=function(t,r){t=L(t),r=L(r);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!r){var a=this.getControls();t=a.sNext,r=a.ePre}this.pointsList=[o,t,r,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=r,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=r,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,r){var o;r==="sNext"?this.pointsList[1]=t:r==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dn({start:r,end:o,sourceNode:i,targetNode:a,offset:this.offset}),l=s.sNext,d=s.ePre;this.pointsList=[r,l,d,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e})(or),Ji=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),le=function(){return le=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Qi=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mn=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ea=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rl)&&(a=l,i=s)}),i},e.prototype.getCrossPoint=function(t,r,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:r.y}:t===G.VERTICAL&&(i={x:r.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,r,o){var i=o.map(function(v){return v});if(t===1){var a=i[t],s=i[r],l=i[t-1],d=on(l,a,this.sourceNode);if(d){var u=an(a,s,this.sourceNode);if(u){var f=sn(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,r--)}}else{var c=this.sourceNode.anchors;c.forEach(function(v){if(v.x===l.x&&v.x===a.x||v.y===l.y&&v.y===a.y){var _=vt(v.x,v.y,a.x,a.y),M=vt(l.x,l.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=nn({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(r){return"".concat(r.x,",").concat(r.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r,this.updatePoints()},e.prototype.updatePointsList=function(t,r){this.pointsList.forEach(function(a){a.x+=t,a.y+=r});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList,f=u;return d===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y},f=this.pointsList.map(function(c){return c})):d===G.VERTICAL&&(u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppend=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList;if(d===G.HORIZONTAL){u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y};var f=this.pointsList.map(function(g){return g});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x,y:i.y+r.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x,y:a.y+r.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(d===G.VERTICAL){u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x+r.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x+r.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Qn(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var r=t[0];this.startPoint=k({},r);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var r=this.updateCrossPoints(t);this.points=r.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=nn({x:r.x,y:r.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e})(or),q=function(){return q=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sn=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ra=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ct=(function(){function n(e,t){var r;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,r=t.x,o=r===void 0?0:r,i=t.y,a=i===void 0?0:i;this.transform=new nr(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),n.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.formatText(e),k(this,pi(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Zr())},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.setTextMode=function(e){this.textMode=e},n.prototype.formatText=function(e){var t,r,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,l=e.x,d=e.y,u=e.text,f={value:"",x:l,y:d,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:l,y:(r=u.y)!==null&&r!==void 0?r:d,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},n.prototype.resize=function(e){var t=e.width,r=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,r);return a?(this.move(o/2,i/2),this.width=t,this.height=r,this.setProperties({width:t,height:r}),this.getData()):this.getData()},n.prototype.proportionalResize=function(){},n.prototype.getData=function(){var e=this.text,t=e.x,r=e.y,o=e.value,i=this.properties;qn(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:r,value:o}),a},n.prototype.getHistoryData=function(){return this.getData()},n.prototype.getProperties=function(){return mt(this.properties)},n.prototype.getOuterGAttributes=function(){return{className:""}},n.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,r=t===void 0?{}:t;return q(q({},L(e)),L(r))},n.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return L(e)},n.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return L(e)},n.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return L(e)},n.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return L(t)},n.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return L(t)},n.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return L(e)},n.prototype.isAllowConnectedAsSource=function(e,t,r,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",l=0;l0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(r,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(r,"_").concat(s)}))}):this.getDefaultAnchor()},n.prototype.getDefaultAnchor=function(){return[]},n.prototype.getTargetAnchor=function(e){return ui(e,this)},n.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(n.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,r=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,l=a.y,d=ra(new rr([s,l,1]).translate(-r,-o).rotate(i).translate(r,o)[0],2),u=d[0],f=d[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),n.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wn=(function(n){na(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),L(r)),L(i))},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.r;return[{x:r,y:o-i,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+i,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=r,this.setProperties({r}),this.getData()},pr([E],e.prototype,"r",void 0),pr([F],e.prototype,"width",null),pr([F],e.prototype,"height",null),e})(Ct),oa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),fe=function(){return fe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Re=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},An=(function(n){oa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[[r,o-a],[r+i,o],[r,o+a],[r-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var r=Re(t,2),o=r[0],i=r[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(r,o){var i=Re(r,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e})(Ct),ia=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ce=function(){return ce=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pn=(function(n){ia(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:r,y:o-a,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Ie([E],e.prototype,"rx",void 0),Ie([E],e.prototype,"ry",void 0),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e})(Ct),aa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),pe=function(){return pe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Xe=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Tn=(function(n){aa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.points,o=t.width,i=t.height,a=r||this.points;this.points=ai(a,o,i)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+r-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=this,o=r.x,i=r.y,a=r.width,s=r.height,l=r.points;return l.map(function(d,u){var f=Xe(d,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var r=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var l=St(this.points,function(d){var u=Xe(d,2),f=u[0],c=u[1];return[f*o/r.width,c*i/r.height]});return this.points=l,this.properties.points=l,this.getData()},Be([E],e.prototype,"points",void 0),Be([F],e.prototype,"pointsPosition",null),Be([F],e.prototype,"width",null),Be([F],e.prototype,"height",null),e})(Ct),sa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),he=function(){return he=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Dn=(function(n){sa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.width,o=t.height,i=t.radius;ht(r)||(this.width=r),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return[{x:r,y:o-a/2,id:"".concat(this.id,"_0")},{x:r+i/2,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a/2,id:"".concat(this.id,"_2")},{x:r-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),L(r)),L(i))},la([E],e.prototype,"radius",void 0),e})(Ct),da=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ve=function(){return ve=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ua=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Ye=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ha=(function(){function n(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return n.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},n.prototype.computeConfig=function(e){var t=e.isSilentMode,r=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var l=Kt(pa,Ye);this.stagedConfig=Kt(this,Ye),k(s,l)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(r)||k(s,{nodeTextDraggable:r,edgeTextDraggable:r}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),_r(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var d=Kt(e,Ye);return k(s,d)},n.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},n.prototype.getConfig=function(){return Kt(this,Ye)},B([E],n.prototype,"isSilentMode",void 0),B([E],n.prototype,"stopZoomGraph",void 0),B([E],n.prototype,"stopMoveGraph",void 0),B([E],n.prototype,"stopScrollGraph",void 0),B([E],n.prototype,"snapGrid",void 0),B([E],n.prototype,"textMode",void 0),B([E],n.prototype,"textEdit",void 0),B([E],n.prototype,"textDraggable",void 0),B([E],n.prototype,"nodeTextEdit",void 0),B([E],n.prototype,"nodeTextDraggable",void 0),B([E],n.prototype,"nodeTextMultiple",void 0),B([E],n.prototype,"nodeTextVertical",void 0),B([E],n.prototype,"nodeTextMode",void 0),B([E],n.prototype,"edgeTextMode",void 0),B([E],n.prototype,"edgeTextEdit",void 0),B([E],n.prototype,"edgeTextDraggable",void 0),B([E],n.prototype,"edgeTextMultiple",void 0),B([E],n.prototype,"edgeTextVertical",void 0),B([E],n.prototype,"hideAnchors",void 0),B([E],n.prototype,"allowRotate",void 0),B([E],n.prototype,"allowResize",void 0),B([E],n.prototype,"hoverOutline",void 0),B([E],n.prototype,"nodeSelectedOutline",void 0),B([E],n.prototype,"adjustNodePosition",void 0),B([E],n.prototype,"autoExpand",void 0),B([E],n.prototype,"adjustEdge",void 0),B([E],n.prototype,"adjustEdgeMiddle",void 0),B([E],n.prototype,"adjustEdgeStartAndEnd",void 0),B([E],n.prototype,"adjustEdgeStart",void 0),B([E],n.prototype,"adjustEdgeEnd",void 0),B([E],n.prototype,"edgeSelectedOutline",void 0),B([m],n.prototype,"updateEditConfig",null),B([m],n.prototype,"updateTextMode",null),n})(),va="*",ya=(function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){var o=this;e?.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!r})})},n.prototype.once=function(e,t){var r=this;e?.split(",").forEach(function(o){o=o.trim(),r.on(o,t,!0)})},n.prototype.emit=function(e,t){var r=this;e?.split(",").forEach(function(o){var i=r._events[o]||[],a=r._events[va]||[],s=function(l){for(var d=l.length,u=0;u=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ma=(function(n){ga(e,n);function e(t){var r=n.call(this)||this;r.stepScrollX=0,r.stepScrollY=0,r.onDragging=function(s){var l=s.deltaX,d=s.deltaY;r.setState({isDragging:!0});var u=r.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(l,d)},r.onDragEnd=function(){r.setState({isDragging:!1})},r.zoomHandler=function(s){var l=r.props,d=l.graphModel,u=d.editConfigModel,f=d.transformModel,c=d.gridSize,h=l.graphModel,y=s.deltaX,p=s.deltaY,g=u.stopScrollGraph,v=u.stopZoomGraph;if(!g&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),r.stepScrollX+=y,r.stepScrollY+=p,Math.abs(r.stepScrollX)>=c){var _=r.stepScrollX%c,M=r.stepScrollX-_;f.translate(-M*f.SCALE_X,0),r.stepScrollX=_}if(Math.abs(r.stepScrollY)>=c){var S=r.stepScrollY%c,O=r.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),r.stepScrollY=S}return}if(!v){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,C=A.x,R=A.y;f.zoom(s.deltaY<0,[C,R])}},r.clickHandler=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){var d=r.props.graphModel,u=d.selectElements;u.size>0&&d.clearSelectElements(),d.eventCenter.emit(T.BLANK_CLICK,{e:s})}},r.handleContextMenu=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){s.preventDefault();var d=r.props.graphModel,u=d.getPointByClient({x:s.clientX,y:s.clientY});d.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},r.mouseDownHandler=function(s){var l=r.props.graphModel,d=l.eventCenter,u=l.editConfigModel,f=l.transformModel.SCALE_X,c=l.gridSize,h=u.adjustEdge,y=u.adjustNodePosition,p=u.stopMoveGraph,g=s.target,v=!h&&!y;(g.getAttribute("name")==="canvas-overlay"||v)&&(p!==!0?(r.stepDrag.setStep(c*f),r.stepDrag.handleMouseDown(s)):d.emit(T.BLANK_MOUSEDOWN,{e:s}),r.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return r.stepDrag=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),r.state={isDragging:!1},r}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",br({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:r,children:i})}))},e=_a([ot],e),e})(K),fo=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),we=function(){return we=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ln=(function(n){fo(e,n);function e(){var t=n.call(this)||this;return t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.bezierModel,l=i.type,d=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=d.x,f=d.y;s.updateAdjustAnchor({x:u,y:f},l),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var r=t.props.bezierModel;r.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,r=this.props.position,o=r.x,i=r.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(re,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(l){t.dragHandler.handleMouseDown(l)}}))},e})(K),Ma=(function(n){fo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,r){var o=t.path,i=t.id,a=Ur(o),s=Ea(a,4),l=s[0],d=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:l.x,y1:l.y,x2:d.x,y2:d.y},c))),h.push(x(Ln,{position:d,bezierModel:t,graphModel:r,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Ln,{position:u,bezierModel:t,graphModel:r,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,r=t.edges,o=[],i=0;i=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wa=(function(n){Oa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:mo(t)?t:{},className:"lf-background-area"})})},e=Sa([ot],e),e})(K),Aa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Pa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Je=(function(n){Aa(e,n);function e(t){var r=n.call(this,t)||this;return r.id=Yt(),r.gridOptions=r.props.graphModel.grid,r}return e.prototype.renderDot=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?2:d,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:l,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?1:d,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:l,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=this.gridOptions,o=r.type,i=r.size,a=i===void 0?1:i,s=t.SCALE_X,l=t.SKEW_Y,d=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,l,d,u,f,c].join(","),y="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:y,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Pa([ot],e),e})(K);(function(n){n.defaultProps={size:Bo,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var r=L(n.defaultProps);return typeof t=="number"?k(r,{size:t}):typeof t=="boolean"?k(r,{visible:t}):k(r,t)}n.getGridOptions=e})(Je||(Je={}));var Ta=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Da=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=(function(n){Ta(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:r,children:o})})},e=Da([ot],e),e})(K),ba=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),wt=function(){return wt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=(function(n){ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,r=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return r.forEach(function(l){if(l.isHovered||l.isSelected){var d=l.isHovered,u=l.isSelected,f=l.x,c=l.y,h=l.width,y=l.height;if(a&&u||i&&d){var p=l.getOutlineStyle(),g={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(g[_]=p[_])}),d){var v=p.hover;g=wt(wt({},g),v)}s.push(x(Et,wt({transform:l.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:y+10},g)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,r=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],l=0;l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=(function(n){ja(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,r=t??{},o=r.position,i=r.isShowHorizontal,a=r.isShowVertical,s=t?.getStyle(),l=o??{},d=l.x,u=d===void 0?0:d,f=l.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s?.stroke:"none"}),y=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s?.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},y))]})},e=Ra([ot],e),e})(K),Ba=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Xa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=(function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,r=t.tool,o=t.graphModel,i=o.textEditElement,a=r.getTools(),s=a.map(function(l){return Wn(l,{textEditElement:i,graphModel:o,lf:r.instance})});return r.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,r=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=r.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Xa([ot],e),e})(K),Pt=function(){return Pt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ha=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},it=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=(function(){function n(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return n.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},n.prototype.getCenterSnapLine=function(e,t){for(var r=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ga={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Fa=(function(){function n(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var r=t.stopMoveGraph,o=r===void 0?!1:r;this.updateTranslateLimits(o)}return n.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},n.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},n.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[(r-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},n.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[r*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},n.prototype.moveCanvasPointByHtml=function(e,t,r){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+r/this.SCALE_Y]},n.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},n.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},n.prototype.zoom=function(e,t){e===void 0&&(e=!1);var r=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(r=e,o=e):e?(r+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(r-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),rthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(r-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=r,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},n.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},n.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},n.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},n.prototype.focusOn=function(e,t,r,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],l=Zt([r/2-a,o/2-s],2),d=l[0],u=l[1];this.TRANSLATE_X+=d,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},n.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:Ga[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],n.prototype,"SCALE_X",void 0),ut([E],n.prototype,"SKEW_Y",void 0),ut([E],n.prototype,"SKEW_X",void 0),ut([E],n.prototype,"SCALE_Y",void 0),ut([E],n.prototype,"TRANSLATE_X",void 0),ut([E],n.prototype,"TRANSLATE_Y",void 0),ut([E],n.prototype,"ZOOM_SIZE",void 0),ut([m],n.prototype,"zoom",null),ut([m],n.prototype,"resetZoom",null),ut([m],n.prototype,"translate",null),ut([m],n.prototype,"focusOn",null),n})(),$a=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ua=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Wa=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Za=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ja=(function(n){Ka(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(r){var o=r.event,i=t.props,a=i.anchorData,s=i.nodeModel,l=i.graphModel;l.selectNodeById(s.id),s.autoToFront&&l.toFront(s.id),l.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,y=h.autoExpand,p=h.stopMoveGraph;if(o){var g=o.clientX,v=o.clientY,_=a.getPointByClient({x:g,y:v}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,C=w.y;t.t&&qe(t.t);var R=[],b=10;S<10?R=[b,0]:S+10>f?R=[-b,0]:O<10?R=[0,b]:O+10>c&&(R=[0,-b]),t.setState({endX:A,endY:C,dragging:!0}),t.moveAnchorEnd(A,C),R.length>0&&!p&&y&&(t.t=io(function(){var z=qa(R,2),I=z[0],U=z[1];d.translate(I,U);var Y=t.state,Z=Y.endX,lt=Y.endY;t.setState({endX:Z-I,endY:lt-U}),t.moveAnchorEnd(Z-I,lt-U)})),u.emit(T.ANCHOR_DRAG,{data:l,e:o,nodeModel:s})}},t.onDragEnd=function(r){var o=r.event;t.t&&qe(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:d,e:o,nodeModel:l,edgeModel:i??void 0})},t.checkEnd=function(r){var o,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=l.x,u=l.y,f=l.id,c=t.state,h=c.endX,y=c.endY,p=c.dragging,g=Ve({x:h,y},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&g&&g.node){var v=g.node,_=g.anchor.id,M="".concat(s.id,"_").concat(v.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},C=A.isAllPass,R=A.msg;if(O&&C){v.setElementState(X.DEFAULT);var b=a.getNodeModelById(g.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),b?.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:d,y:u},targetNodeId:g.node.id,targetAnchorId:g.anchor.id,endPoint:{x:g.anchor.x,y:g.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:r,nodeModel:s,edgeModel:I}),I}var Y=v.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,r=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(r);if(a)return a;var s=r.x,l=r.y,d=_t(_t({},o),o?.hover);return x("g",{children:[x(re,_t({className:"lf-node-anchor-hover"},d,{x:s,y:l})),x(re,_t({className:"lf-node-anchor"},o,{x:s,y:l}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,r=t.graphModel,o=r.getAnchorIncomingEdge,i=r.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,r){var o,i,a=this.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData,u=Ve({x:t,y:r},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),d.id===c)return;this.preTargetNode=f;var h="".concat(l.id,"_").concat(f.id,"_").concat(c,"_").concat(d.id);if(!this.targetRuleResults.has(h)){var y=u.anchor,p=l.isAllowConnectedAsSource(f,d,y),g=f.isAllowConnectedAsTarget(l,d,y);this.sourceRuleResults.set(h,Ke(p)),this.targetRuleResults.set(h,Ke(g))}var v=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;v&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,r=t.startX,o=t.startY,i=t.endX,a=t.endY,s=vt(r,o,i,a);return s>10},e.prototype.render=function(){var t=this,r=this.state,o=r.startX,i=r.startY,a=r.endX,s=r.endY,l=this.props,d=l.anchorData.edgeAddable,u=l.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){d!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e})(K),Qa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Cr=function(){return Cr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},co=(function(n){es(e,n);function e(t){var r=n.call(this)||this;r.mouseDownHandler=function(i){var a=r.props,s=a.draggable,l=a.model,d=a.graphModel,u=d.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),r.stepperDrag.model=l,r.stepperDrag.handleMouseDown(i))},r.onDragging=function(i){var a=i.deltaX,s=i.deltaY,l=r.props,d=l.model,u=l.graphModel.transformModel;if(a||s){var f=rs(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];d.moveText(c,h)}},r.dbClickHandler=function(){var i=r.props,a=i.editable,s=i.graphModel.eventCenter,l=i.model;a&&l.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:l.text,model:l})};var o=t.draggable;return r.stepperDrag=new Mt({onDragging:r.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),r}return e.prototype.getShape=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=r.text,s=a.value,l=a.x,d=a.y,u=a.editable,f=a.draggable,c={x:l,y:d,className:"",value:s},h=r.getTextStyle(),y=i.nodeTextDraggable||f;return x(ao,Lr({},c,h,{className:Do({"lf-element-text":u,"lf-text-draggable":!u&&y,"lf-text-disabled":!u&&!y}),model:r}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e})(K),ns=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ft=function(){return ft=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},os=(function(n){ns(e,n);function e(t){var r=n.call(this,t)||this;return r.setHoverOn=function(){r.setState({isHovered:!0})},r.setHoverOff=function(){r.setState({isHovered:!1})},r.state={isHovered:!1},r}return e.prototype.getBackground=function(){var t=this.state.isHovered,r=this.props.model,o=r.text,i=r.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o?.value&&a?.fill!=="transparent"){var s=i.fontSize,l=i.textWidth,d=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o?.value.split(/[\r\n]/g),h=c.length,y=o.x,p=o.y,g={};if(u==="autoWrap"&&l){var v=oo({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(l,"px"),lineHeight:d,padding:f},rowsLength:h,className:"lf-get-text-height"});g=ft(ft({},a),{x:y,y:p,width:l,height:v})}else{var _=ii({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=l,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(nt){return nt.trim()}).map(function(nt){return parseFloat(nt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=He(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var C=He(O,2),R=C[0],b=C[1];O=[R,b,R,b]}else if(O.length===3){var z=He(O,3),I=z[0],b=z[1],U=z[2];O=[I,b,U,b]}var Y=He(O,4),Z=Y[0],lt=Y[1],jt=Y[2],Rt=Y[3];M+=lt+Rt,S+=Z+jt,y=y+(lt-Rt)/2,p=p+(jt-Z)/2}}g=ft(ft({},a),{x:y-1,y:p-1,width:M,height:S})}return x(Et,ft({},g))}return null},e.prototype.getShape=function(){var t=this.props.model,r=t.text,o=r.x,i=r.y,a=r.value;if(!a)return null;var s=t.getTextStyle(),l=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(ao,ft({},l))]})},e})(co),is=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Qe=function(){return Qe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Lt=(function(n){is(e,n);function e(t){var r=n.call(this)||this;r.onDragStart=function(l){var d=l.event,u=r.props,f=u.model,c=u.graphModel;if(d){var h=c.getPointByClient({x:d.clientX,y:d.clientY}).canvasOverlayPosition,y=h.x,p=h.y;r.moveOffset={dx:f.x-y,dy:f.y-p}}},r.onDragging=function(l){var d,u,f,c,h=l.event,y=r.props,p=y.model,g=y.graphModel,v=g.editConfigModel,_=v.stopMoveGraph,M=v.autoExpand,S=v.snapGrid,O=g.transformModel,w=g.selectNodes,A=g.width,C=g.height,R=g.gridSize;p.isDragging=!0;var b=h,z=b.clientX,I=b.clientY,U=g.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,lt=ke(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=lt[0],Rt=lt[1];if(Y=Y+((u=(d=r.moveOffset)===null||d===void 0?void 0:d.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=r.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!C){g.moveNode2Coordinate(p.id,Y,Z);return}var nt=jt<0||Rt<0||jt>A||Rt>C;if(!(M&&!_&&nt)){var yt=ke(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),ne=yt[0],ar=yt[1],Ae=ke(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),sr=Ae[0],po=Ae[1],Pe=Math.max(R,20),zt=[];ne<0?zt=[Pe,0]:sr>g.width?zt=[-Pe,0]:ar<0?zt=[0,Pe]:po>g.height&&(zt=[0,-Pe]),r.t&&qe(r.t),p.transform=new nr(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?r.t=io(function(){var De=ke(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var ho=-(Gt??0)/O.SCALE_X,vo=-(Ft??0)/O.SCALE_X;g.moveNodes(Te,ho,vo)}):g.moveNodes(Te,Y-p.x,Z-p.y)}},r.onDragEnd=function(){r.t&&qe(r.t);var l=r.props.model;l.isDragging=!1},r.onMouseOut=function(l){Ro()&&r.setHoverOff(l)},r.handleMouseUp=function(){var l=r.props.model;r.mouseUpDrag=l.isDragging},r.handleClick=function(l){var d=r.mouseUpDrag===!1;if(r.startTime){var u=r.props,f=u.model,c=u.graphModel;if(d){var h=f.getData(),y=c.getPointByClient({x:l.clientX,y:l.clientY}),p={data:h,e:l,position:y,isSelected:!1,isMultiple:!1},g=l.button===2,v=l.detail===2;if(!g){var _=c.editConfigModel,M=ro(l,_);p.isMultiple=M,f.isSelected&&!v&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||r.toFront()),v?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},r.handleContextMenu=function(l){l.preventDefault();var d=r.props,u=d.model,f=d.graphModel,c=f.editConfigModel,h=u.getData(),y=f.getPointByClient({x:l.clientX,y:l.clientY});f.setElementStateById(u.id,X.SHOW_MENU,y.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:l,position:y}),c.isSilentMode||r.toFront()},r.handleMouseDown=function(l){var d=r.props,u=d.model,f=d.graphModel;r.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.handleFocus=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:d.getData()})},r.handleBlur=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:d.getData()})},r.setHoverOn=function(l){var d=r.props,u=d.model,f=d.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:l})}},r.setHoverOff=function(l){var d=r.props,u=d.model,f=d.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:l}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),r.modelDisposer=Po(function(){return r.props},function(l){l&&l.model&&r.stepDrag.setModel(l.model)}),r}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.isSelected,s=o.isHitable,l=o.isDragging,d=o.isShowAnchor;return s&&(a||d)&&!l?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ja,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,l=r.isSelected,d=r.isHitable,u=r.rotatable,f=r.isHovered,c=s&&u,h=r.getRotateControlStyle();if(!a&&d&&(l||f)&&c)return x(ts,{graphModel:o,nodeModel:r,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,l=r.isSelected,d=r.isHitable,u=r.resizable,f=r.isHovered,c=s&&u,h=r.getResizeControlStyle();return!a&&d&&(l||f)&&c?x(Ti,{style:h,model:r,graphModel:o}):null},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(co,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,r=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(r){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,r=t.model,o=t.graphModel;r.autoToFront&&o.toFront(r.id)},e.prototype.render=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,l=i.allowRotate,d=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=r.isHitable,h=r.draggable,y=r.transform,p=r.getOuterGAttributes(),g=p.className,v=g===void 0?"":g,_=as(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:y,children:[this.getShape(),this.getText(),l&&this.getRotateControl(),d&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v)},_,{children:M})),S},e.isObserved=!1,e})(K),ss=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),jr=function(){return jr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},xt;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(xt||(xt={}));var kn=(function(n){ys(e,n);function e(t){var r=n.call(this)||this;r.handleMouseDown=function(l){r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.onDragStart=function(){var l=r.props,d=l.x,u=l.y,f=l.edgeModel,c=f.startPoint,h=f.endPoint,y=f.pointsList;r.oldEdge={startPoint:c,endPoint:h,pointsList:y},r.setState({endX:d,endY:u,dragging:!0})},r.onDragging=function(l){var d=l.deltaX,u=l.deltaY,f=r.state,c=f.endX,h=f.endY,y=r.props,p=y.graphModel,g=y.type,v=p.transformModel,_=p.editConfigModel,M=_s(v.moveCanvasPointByHtml([c,h],d,u),2),S=M[0],O=M[1];r.setState({endX:S,endY:O,dragging:!0});var w=r.props.edgeModel,A=Ve({x:c,y:h},p);if(A&&A.node&&r.isAllowAdjust(A).pass){var C=w.startPoint,R=w.endPoint,b=w.sourceNode,z=w.targetNode,I=g===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:C.x,y:C.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:b,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else g===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},r.onDragEnd=function(l){var d,u,f,c=l.event;try{r.setState({dragging:!1});var h=r.props,y=h.graphModel,p=h.edgeModel,g=h.type,v=r.state,_=v.endX,M=v.endY,S=v.dragging,O=Ve({x:_,y:M},y);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var C=r.isAllowAdjust(O),R=C.pass,b=C.msg,z=C.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,lt=I.targetAnchorId,jt=lt===void 0?"":lt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:U?.value||""}),g===xt.SOURCE){var nt=y.getNodeModelById(O.node.id),yt=y.getNodeModelById(p.targetNodeId),ne=(d=y.edgeGenerator)===null||d===void 0?void 0:d.call(y,nt?.getData(),yt?.getData(),A);A=ct(ct({},ne),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(g===xt.TARGET){var nt=y.getNodeModelById(p.sourceNodeId),yt=y.getNodeModelById(O.node.id),ne=(u=y.edgeGenerator)===null||u===void 0?void 0:u.call(y,nt?.getData(),yt?.getData(),A);A=ct(ct({},ne),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var ar=z.getData();y.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:ar,msg:b})}}else w=!0;if(w)r.recoveryEdge();else{var Ae=p.getData();y.deleteEdgeById(p.id);var sr=y.addEdge(ct({},A));y.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sr.getData(),oldEdge:Ae}})}(f=r.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var y=r.props.graphModel;y.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:r.stepDragData})}},r.recoveryEdge=function(){var l=r.props.edgeModel,d=r.oldEdge,u=d.startPoint,f=d.endPoint,c=d.pointsList;l.updateStartPoint(u),l.updateEndPoint(f),l.modelType!==j.LINE_EDGE&&(l.pointsList=c??[],l.initPoints())},r.getAdjustPointStyle=function(){var l=r.props.graphModel.theme,d=l.edgeAdjust;return d},r.state={dragging:!1,endX:0,endY:0},r.targetRuleResults=new Map,r.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return r.stepDragData={type:o,edgeData:i.getData()},r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:r.stepDragData}),r}return e.prototype.isAllowAdjust=function(t){var r=this.props,o=r.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,l=o.sourceAnchorId,d=o.targetAnchorId,u=r.type,f,c,h,y;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,y=s.getAnchorInfo(d)):(f=a,c=t.node,y=t.anchor,h=a.getAnchorInfo(l)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,y.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(y.id);if(!this.targetRuleResults.has(p)){var g=f.isAllowConnectedAsSource(c,h,y,i),v=c.isAllowConnectedAsTarget(f,h,y,i);this.sourceRuleResults.set(p,Ke(g)),this.targetRuleResults.set(p,Ke(v))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,C=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(C):c.setElementState(C),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(r,o,a)})},e})(K),ms=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Yr=function(){return Yr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ir=(function(n){xs(e,n);function e(){var t=n.call(this)||this;return t.textRef=Fr(),t.handleHover=function(r,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(r);var l=r?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,d=a.getData();s.emit(l,{data:d,e:o})},t.setHoverOn=function(r){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,r))},t.setHoverOff=function(r){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,r))},t.handleContextMenu=function(r){r.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,l=a.getPointByClient({x:r.clientX,y:r.clientY});a.setElementStateById(i.id,X.SHOW_MENU,l.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i?.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:r,position:l})},t.handleMouseDown=function(r){r.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var r=t.props.model;t.mouseUpDrag=r.isDragging},t.handleClick=function(r){if(t.startTime&&!t.mouseUpDrag){var o=r.button===2;if(!o){var i=r.detail===2,a=t.props,s=a.model,l=a.graphModel,d=s?.getData(),u=l.getPointByClient({x:r.clientX,y:r.clientY});if(i){var f=l.editConfigModel,c=l.textEditElement,h=s.id,y=s.text,p=s.modelType;if(c&&c.id===h&&l.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&y.editable&&(s.setSelected(!1),l.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var g=s,v=l.getPointByClient({x:r.x,y:r.y}).canvasOverlayPosition,_=v.x,M=v.y;g.dbClickPosition=eo({x:_,y:M},g.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:d,e:r,position:u})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:d,e:r,position:u}),l.eventCenter.emit(T.EDGE_CLICK,{data:d,e:r,position:u});var S=l.editConfigModel;l.selectEdgeById(s.id,ro(r,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(os,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:r,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint;return[r,o]},e.prototype.getArrowStyle=function(){return null},e.prototype.getArrow=function(){var t=this.props.model,r=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,l=s===void 0?2:s,d=Es(this.getLastTwoPoints(),2),u=d[0],f=d[1],c="auto";return u!==null&&f!==null&&(c=$i(Fi({x:f.x-u.x,y:f.y-u.y}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(r),refX:-l,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(r),refX:l,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,r=t.getArrowStyle(),o=r.stroke,i=r.strokeWidth,a=r.offset,s=r.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,r,o){var i=o.getAdjustPointStyle();return x(re,ge({className:"lf-edge-adjust-point"},i,{x:t,y:r}))},e.prototype.getAdjustPoints=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,l=i.adjustEdgeEnd,d=r.getAdjustStart(),u=r.getAdjustEnd();return x("g",{children:[a&&s&&x(kn,ge({type:xt.SOURCE},d,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o})),a&&l&&x(kn,ge({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o}))]})},e.prototype.getAnimation=function(){},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,r=t.graphModel,o=t.model;r.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,r=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&r?this.getAdjustPoints():""]})},e.isObserved=!1,e})(K),Ms=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Hr=function(){return Hr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},zn=(function(n){Ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,r=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,l=t.getEdgeAnimationStyle(),d=l.strokeDasharray,u=l.stroke,f=l.strokeDashoffset,c=l.animationName,h=l.animationDuration,y=l.animationIterationCount,p=l.animationTimingFunction,g=l.animationDirection;return x(Oe,Hr({d:i},r,s,a?{strokeDasharray:d,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:y,animationTimingFunction:p,animationDirection:g}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,r=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Os(un(a,i),2),l=s[0],d=s[1],u={start:l,end:d,hover:r,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return un(o,r)},e})(ir),Ss=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),kr=function(){return kr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Fn=(function(n){ws(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(){var r=t.props.model;r.dragAppendStart(),t.isShowAdjustPointTemp=r.isShowAdjustPoint,r.isShowAdjustPoint=!1},t.onDragging=function(r){var o=r.deltaX,i=r.deltaY,a=t.props,s=a.model,l=a.graphModel;t.isDragging=!0;var d=l.transformModel,u=l.editConfigModel,f=As(d.fixDeltaXY(o,i),2),c=f[0],h=f[1],y=s,p=u.adjustEdgeMiddle;p?t.appendInfo=y.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=y.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var r,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(r=t.isShowAdjustPointTemp)!==null&&r!==void 0?r:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(r,o){o.draggable&&t.drag.handleMouseDown(r),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,r=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),l=s.strokeDasharray,d=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,y=s.animationTimingFunction,p=s.animationDirection;return x(Si,Xt({points:r},a,i,o?{strokeDasharray:l,stroke:d,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:y,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.points,o=t.isSelected,i=this.state.hover,a=kt(r),s=a[0],l=a[0];return a.length>=2&&(s=a[a.length-2],l=a[a.length-1]),{start:s,end:l,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.points,o=kt(r),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var r=t.start,o=t.end,i;if(r.x===o.x&&r.y===o.y)i="";else{var a={start:r,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),l=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,` + L`).concat(s.rightX," ").concat(s.rightY,` + L`).concat(l.rightX," ").concat(l.rightY,` + L`).concat(l.leftX," ").concat(l.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var r=this.getAppendAttributes(t),o=r.d,i=r.strokeWidth,a=r.fill,s=r.strokeDasharray,l=r.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:l,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.pointsList,s=o.draggable,l=[],d=a.length,u=function(h){var y="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},g=x("g",{className:y,children:f.getAppendShape(p)}),v=i.editConfigModel,_=v.adjustEdge,M=v.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===d-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(y+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(y+="-ns-resize"),p.direction=G.HORIZONTAL),g=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:y,children:f.getAppendShape(p)})})}l.push(g)},f=this,c=0;c=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},bs=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Cs=(function(n){Ds(e,n);function e(t){var r=n.call(this,t)||this;return r.ref=Fr(),r.__prevText={type:"",text:"",id:""},r.keyupHandler=function(o){var i=r.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&i?.setElementState(X.DEFAULT)},r.inputHandler=function(o){var i=o.target.innerText,a=r.props.graphModel.textEditElement;a&&(r.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},r.keydownHandler=function(o){o.stopPropagation()},r.state={style:{left:0,top:0}},r}return e.getDerivedStateFromProps=function(t){var r,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,l=s.inputText,d;if(o){if(!(!((r=o.text)===null||r===void 0)&&r.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var y={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,g=p.overflowMode,v=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&g==="autoWrap"&&(d=Ot(Ot({},y),{width:M,minWidth:M,lineHeight:v,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,g=S.overflowMode,v=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,C=A||M||O;(w!==j.TEXT_NODE&&g==="autoWrap"||w===j.TEXT_NODE&&M)&&(d=Ot(Ot({},y),{width:C,minWidth:C,lineHeight:v,padding:_}))}var R=o.text,b=R.x,z=R.y,I=bs(a.CanvasPointToHtmlPoint([b,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},d),l)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var r=this.__prevText,o=r.text,i=r.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var o=window.getSelection();o?.removeAllRanges(),o?.addRange(r)}},e.prototype.render=function(){var t,r=this.props.graphModel.textEditElement,o=this.state.style;return r?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=r.text)===null||t===void 0?void 0:t.value},r.id):null},e.toolName="text-edit-tool",e=Ns([ot],e),e})(K),Ls=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),js=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Rs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Bs=[Cs,Is],Xs=(function(){function n(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Bs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var r=e.graphModel,o=r.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=r.textEditElement,s=r.editConfigModel,l=s.edgeTextEdit,d=s.nodeTextEdit;(l||d)&&a&&((i=r.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return n.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},n.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},n.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},n.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},n.prototype.getTools=function(){return Array.from(this.toolMap.values())},n.prototype.getInstance=function(){return this.instance},n.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},vr([E],n.prototype,"toolMap",void 0),vr([m],n.prototype,"disableTool",null),vr([m],n.prototype,"enableTool",null),n})(),zr=function(){return zr=Object.assign||function(n){for(var e,t=1,r=arguments.length;tthis.maxSize&&this.undos.shift())},n.prototype.undoAble=function(){return this.undos.length>1},n.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=L(t),t}},n.prototype.redoAble=function(){return this.redos.length>0},n.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=L(e),e}},n.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=bo(e,Vn(function(){var r=e.modelToHistoryData();r&&t.add(zr({},r))},this.waitTime))},n.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},n})();var gt=null;function $n(n,e){return n.x+=e,n.y+=e,Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}function Un(n,e){return n.startPoint&&(n.startPoint.x+=e,n.startPoint.y+=e),n.endPoint&&(n.endPoint.x+=e,n.endPoint.y+=e),n.pointsList&&n.pointsList.length>0&&n.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}var Vt=40,ze=40;function Hs(n,e){var t=n.keyboard,r=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ze=Vt,!r?.enabled||e.textEditElement)return!0;var o=n.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(gt=null,!0):(gt=i,gt.nodes.forEach(function(s){return $n(s,Vt)}),gt.edges.forEach(function(s){return Un(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!r?.enabled||e.textEditElement)return!0;if(gt&&(gt.nodes||gt.edges)){n.clearSelectElements();var o=n.addElements(gt,ze);if(!o)return!0;o.nodes.forEach(function(i){return n.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return n.selectElementById(i.id,!0)}),gt.nodes.forEach(function(i){return $n(i,Vt)}),gt.edges.forEach(function(i){return Un(i,Vt)}),ze=ze+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!r?.enabled||e.textEditElement?!0:(n.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!r?.enabled||e.textEditElement?!0:(n.redo(),!1)}),t.on(["backspace"],function(){if(!r?.enabled||e.textEditElement)return!0;var o=e.getSelectElements(!0);return n.clearSelectElements(),o.edges.forEach(function(i){return i.id&&n.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&n.deleteNode(i.id)}),!1})}var ks=(function(){function n(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new No(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return n.prototype.initShortcuts=function(){var e=this,t,r=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(r)if(Oo(r))r.forEach(function(s){var l=s.keys,d=s.callback,u=s.action;return e.on(l,d,u)});else{var o=r.keys,i=r.callback,a=r.action;this.on(o,i,a)}},n.prototype.on=function(e,t,r){this.mousetrap.bind(this.getKeys(e),t,r)},Object.defineProperty(n.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),n.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},n.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},n.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},n.prototype.destroy=function(){this.mousetrap.reset()},n.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(r){return t.formatKey(r)})},n.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},n})(),Tt=function(){return Tt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},yr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0&&--this._on===0&&(v=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function xt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function yt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),gt(n),te(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ct(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Tt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Tt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===z)||(t.globalVersion=z,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!ct(t))))return;t.flags|=2;const e=t.dep,s=h,n=R;h=t,R=!0;try{xt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,R=n,yt(t),t.flags&=-3}}function gt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)gt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function te(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let R=!0;const Dt=[];function It(){Dt.push(R),R=!1}function Et(){const t=Dt.pop();R=t===void 0?!0:t}function bt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let z=0;class ee{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!h||!R||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new ee(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Mt(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,z++,this.notify(e)}notify(e){_t();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{vt()}}}function Mt(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Mt(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),lt=Symbol(""),B=Symbol("");function w(t,e,s){if(R&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new et),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){z++;return}const a=f=>{f&&f.trigger()};if(_t(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&dt(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(B)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"set":C(t)&&a(o.get(P));break}}vt()}function se(t,e){const s=k.get(t);return s&&s.get(e)}function j(t){const e=u(t);return e===t?e:(w(e,"iterate",B),S(t)?e:e.map(g))}function wt(t){return w(t=u(t),"iterate",B),t}const ie={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,g)},concat(...t){return j(this).concat(...t.map(e=>y(e)?j(e):e))},entries(){return at(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return ft(this,"includes",t)},indexOf(...t){return ft(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return ft(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return Rt(this,"reduce",t,e)},reduceRight(t,...e){return Rt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return at(this,"values",g)}};function at(t,e,s){const n=wt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const ne=Array.prototype;function x(t,e,s,n,i,r){const o=wt(t),a=o!==t&&!S(t),f=o[e];if(f!==ne[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function Rt(t,e,s,n){const i=wt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function ft(t,e,s){const n=u(t);w(n,"iterate",B);const i=n[e](...s);return(i===-1||i===!1)&&be(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){It(),_t();const n=u(t)[e].apply(t,s);return vt(),Et(),n}const re=Jt("__proto__,__v_isRef,__isVue"),Pt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(F));function oe(t){F(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Ot{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ct:Ht:r?Kt:jt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=ie[s]))return f;if(s==="hasOwnProperty")return oe}const a=Reflect.get(e,s,b(e)?e:n);if((F(s)?Pt.has(s):re(s))||(i||w(e,"get",s),r))return a;if(b(a)){const f=o&&dt(s)?a:a.value;return i&&O(f)?ht(f):f}return O(a)?i?ht(a):Wt(a):a}}class At extends Ot{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=A(r);if(!S(n)&&!A(n)&&(r=u(r),n=u(n)),!y(e)&&b(r)&&!b(n))return f||(r.value=n),!0}const o=y(e)&&dt(s)?Number(s)t,Q=t=>Reflect.getPrototypeOf(t);function ue(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?ut:e?pt:g;return!e&&w(r,"iterate",f?lt:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function X(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function he(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=Q(o),d=e?ut:t?pt:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),i.size},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?ut:t?pt:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Bt(s,t?{add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear")}:{add(i){!e&&!S(i)&&!A(i)&&(i=u(i));const r=u(this);return Q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!A(r)&&(r=u(r));const o=u(this),{has:a,get:f}=Q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=Q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=ue(i,t,e)}),s}function st(t,e){const s=he(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const pe={get:st(!1,!1)},de={get:st(!1,!0)},_e={get:st(!0,!1)},ve={get:st(!0,!0)},jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap,Ct=new WeakMap;function ge(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function we(t){return t.__v_skip||!Object.isExtensible(t)?0:ge(zt(t))}function Wt(t){return A(t)?t:it(t,!1,ae,pe,jt)}function Oe(t){return it(t,!1,ce,de,Kt)}function ht(t){return it(t,!0,fe,_e,Ht)}function Ae(t){return it(t,!0,le,ve,Ct)}function it(t,e,s,n,i){if(!O(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=we(t);if(r===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,r===2?n:s);return i.set(t,a),a}function N(t){return A(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function A(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function be(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Gt(t,"__v_skip",!0),t}const g=t=>O(t)?Wt(t):t,pt=t=>O(t)?ht(t):t;function b(t){return t?t.__v_isRef===!0:!1}function Re(t){return Vt(t,!1)}function je(t){return Vt(t,!0)}function Vt(t,e){return b(t)?t:new Se(t,e)}class Se{constructor(e,s){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||A(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Nt(t){return b(t)?t.value:t}function Ke(t){return Y(t)?t():Nt(t)}const me={get:(t,e,s)=>e==="__v_raw"?t:Nt(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return b(i)&&!b(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function He(t){return N(t)?t:new Proxy(t,me)}class xe{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new et,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ce(t){return new xe(t)}function We(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Yt(t,s);return e}class ye{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return se(u(this._object),this._key)}}class Te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ve(t,e,s){return b(t)?t:Y(t)?new Te(t):O(t)&&arguments.length>1?Yt(t,e,s):Re(t)}function Yt(t,e,s){const n=t[e];return b(n)?n:new ye(t,e,s)}class De{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=z-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return mt(this,!0),!0}get value(){const e=this.dep.track();return Tt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ne(t,e,s=!1){let n,i;return Y(t)?n=t:(n=t.get,i=t.set),new De(n,i,s)}const Z={},tt=new WeakMap;let M;function Ie(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function Ye(t,e,s=Ft){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,G,J=!1,U=!1;if(b(t)?(p=()=>t.value,J=S(t)):N(t)?(p=()=>d(t),J=!0):y(t)?(U=!0,J=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(b(l))return l.value;if(N(l))return d(l);if(Y(l))return f?f(l,2):l()})):Y(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){It();try{_()}finally{Et()}}const l=M;M=c;try{return f?f(t,3,[G]):t(G)}finally{M=l}}:p=Xt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const nt=$t(),L=()=>{c.stop(),nt&&nt.active&&Ut(nt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),L()}}let E=U?new Array(t.length).fill(Z):Z;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||J||(U?m.some((rt,q)=>I(rt,E[q])):I(m,E))){_&&_();const rt=M;M=c;try{const q=[m,E===Z?void 0:U&&E[0]===Z?[]:E,G];E=m,f?f(e,3,q):e(...q)}finally{M=rt}}}else c.run()};return a&&a(K),c=new kt(p),c.scheduler=o?()=>o(K,!1):K,G=l=>Ie(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function D(t,e=1/0,s){if(e<=0||!O(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,b(t))D(t.value,e,s);else if(y(t))for(let n=0;n{D(n,e,s)});else if(Qt(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{N as A,Zt as E,kt as R,b as a,It as b,Ne as c,Oe as d,w as e,Ae as f,T as g,Wt as h,be as i,D as j,Re as k,Ke as l,Le as m,ht as n,Ve as o,He as p,Ce as q,Et as r,je as s,u as t,Nt as u,$t as v,Ye as w,Pe as x,We as y,Me as z}; diff --git a/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz b/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz deleted file mode 100644 index ab955a41..00000000 Binary files a/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz and /dev/null differ diff --git a/js/@vue_reactivity@3.5.25-CWykDyL9.js b/js/@vue_reactivity@3.5.25-CWykDyL9.js new file mode 100644 index 00000000..34b9dd35 --- /dev/null +++ b/js/@vue_reactivity@3.5.25-CWykDyL9.js @@ -0,0 +1 @@ +import{i as z,e as Ft,h as E,E as Gt,a as K,b as x,t as Jt,c as tt,d as J,m as Ut,f as it,g as V,j as qt,r as Qt,k as Xt,l as Zt,N as $t}from"./@vue_shared@3.5.25-ClSOc5xY.js";let v;class kt{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0&&--this._on===0&&(v=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(Y){let e=Y;for(Y=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;N;){let e=N;for(N=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Tt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Dt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),wt(n),se(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ht(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(It(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function It(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===B)||(t.globalVersion=B,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!ht(t))))return;t.flags|=2;const e=t.dep,s=h,n=b;h=t,b=!0;try{Tt(t);const i=t.fn(t._value);(e.version===0||E(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,b=n,Dt(t),t.flags&=-3}}function wt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)wt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function se(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let b=!0;const Et=[];function Mt(){Et.push(b),b=!1}function Pt(){const t=Et.pop();b=t===void 0?!0:t}function St(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let B=0;class ie{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new ie(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,At(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,B++,this.notify(e)}notify(e){vt();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{gt()}}}function At(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)At(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const et=new WeakMap,O=Symbol(""),pt=Symbol(""),F=Symbol("");function w(t,e,s){if(b&&h){let n=et.get(t);n||et.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new nt),i.map=n,i.key=s),i.track()}}function D(t,e,s,n,i,r){const o=et.get(t);if(!o){B++;return}const a=f=>{f&&f.trigger()};if(vt(),e==="clear")o.forEach(a);else{const f=x(t),p=f&&it(s);if(f&&s==="length"){const c=Number(n);o.forEach((d,_)=>{(_==="length"||_===F||!J(_)&&_>=c)&&a(d)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),p&&a(o.get(F)),e){case"add":f?p&&a(o.get("length")):(a(o.get(O)),V(t)&&a(o.get(pt)));break;case"delete":f||(a(o.get(O)),V(t)&&a(o.get(pt)));break;case"set":V(t)&&a(o.get(O));break}}gt()}function ne(t,e){const s=et.get(t);return s&&s.get(e)}function j(t){const e=u(t);return e===t?e:(w(e,"iterate",F),R(t)?e:e.map(y))}function Rt(t){return w(t=u(t),"iterate",F),t}function T(t,e){return M(t)?H(t)?G(y(e)):G(e):y(e)}const re={__proto__:null,[Symbol.iterator](){return lt(this,Symbol.iterator,t=>T(this,t))},concat(...t){return j(this).concat(...t.map(e=>x(e)?j(e):e))},entries(){return lt(this,"entries",t=>(t[1]=T(this,t[1]),t))},every(t,e){return m(this,"every",t,e,void 0,arguments)},filter(t,e){return m(this,"filter",t,e,s=>s.map(n=>T(this,n)),arguments)},find(t,e){return m(this,"find",t,e,s=>T(this,s),arguments)},findIndex(t,e){return m(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return m(this,"findLast",t,e,s=>T(this,s),arguments)},findLastIndex(t,e){return m(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return m(this,"forEach",t,e,void 0,arguments)},includes(...t){return ut(this,"includes",t)},indexOf(...t){return ut(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return ut(this,"lastIndexOf",t)},map(t,e){return m(this,"map",t,e,void 0,arguments)},pop(){return C(this,"pop")},push(...t){return C(this,"push",t)},reduce(t,...e){return mt(this,"reduce",t,e)},reduceRight(t,...e){return mt(this,"reduceRight",t,e)},shift(){return C(this,"shift")},some(t,e){return m(this,"some",t,e,void 0,arguments)},splice(...t){return C(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return C(this,"unshift",t)},values(){return lt(this,"values",t=>T(this,t))}};function lt(t,e,s){const n=Rt(t),i=n[e]();return n!==t&&!R(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const oe=Array.prototype;function m(t,e,s,n,i,r){const o=Rt(t),a=o!==t&&!R(t),f=o[e];if(f!==oe[e]){const d=f.apply(t,r);return a?y(d):d}let p=s;o!==t&&(a?p=function(d,_){return s.call(this,T(t,d),_,t)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,t)}));const c=f.call(o,p,n);return a&&i?i(c):c}function mt(t,e,s,n){const i=Rt(t);let r=s;return i!==t&&(R(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,T(t,a),f,t)}),i[e](r,...n)}function ut(t,e,s){const n=u(t);w(n,"iterate",F);const i=n[e](...s);return(i===-1||i===!1)&&Yt(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function C(t,e,s=[]){Mt(),vt();const n=u(t)[e].apply(t,s);return gt(),Pt(),n}const ae=Ut("__proto__,__v_isRef,__isVue"),Ot=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(J));function fe(t){J(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Kt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Vt:Ct:r?Wt:Ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=x(e);if(!i){let f;if(o&&(f=re[s]))return f;if(s==="hasOwnProperty")return fe}const a=Reflect.get(e,s,g(e)?e:n);if((J(s)?Ot.has(s):ae(s))||(i||w(e,"get",s),r))return a;if(g(a)){const f=o&&it(s)?a:a.value;return i&&K(f)?_t(f):f}return K(a)?i?_t(a):Nt(a):a}}class Lt extends Kt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];const o=x(e)&&it(s);if(!this._isShallow){const p=M(r);if(!R(n)&&!M(n)&&(r=u(r),n=u(n)),!o&&g(r)&&!g(n))return p||(r.value=n),!0}const a=o?Number(s)t,Z=t=>Reflect.getPrototypeOf(t);function pe(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=V(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,p=i[t](...n),c=s?dt:e?G:y;return!e&&w(r,"iterate",f?pt:O),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:a?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function $(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function de(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(E(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=Z(o),p=e?dt:t?G:y;if(f.call(o,i))return p(r.get(i));if(f.call(o,a))return p(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",O),i.size},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(E(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),p=e?dt:t?G:y;return!t&&w(f,"iterate",O),a.forEach((c,d)=>i.call(r,p(c),p(d),o))}};return Ft(s,t?{add:$("add"),set:$("set"),delete:$("delete"),clear:$("clear")}:{add(i){!e&&!R(i)&&!M(i)&&(i=u(i));const r=u(this);return Z(r).has.call(r,i)||(r.add(i),D(r,"add",i,i)),this},set(i,r){!e&&!R(r)&&!M(r)&&(r=u(r));const o=u(this),{has:a,get:f}=Z(o);let p=a.call(o,i);p||(i=u(i),p=a.call(o,i));const c=f.call(o,i);return o.set(i,r),p?E(r,c)&&D(o,"set",i,r):D(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=Z(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const p=r.delete(i);return f&&D(r,"delete",i,void 0),p},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&D(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=pe(i,t,e)}),s}function rt(t,e){const s=de(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(tt(s,i)&&i in n?s:n,i,r)}const _e={get:rt(!1,!1)},ve={get:rt(!1,!0)},ge={get:rt(!0,!1)},we={get:rt(!0,!0)},Ht=new WeakMap,Wt=new WeakMap,Ct=new WeakMap,Vt=new WeakMap;function Re(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function be(t){return t.__v_skip||!Object.isExtensible(t)?0:Re(Jt(t))}function Nt(t){return M(t)?t:ot(t,!1,ce,_e,Ht)}function Oe(t){return ot(t,!1,ue,ve,Wt)}function _t(t){return ot(t,!0,le,ge,Ct)}function Ke(t){return ot(t,!0,he,we,Vt)}function ot(t,e,s,n,i){if(!K(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=be(t);if(r===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,r===2?n:s);return i.set(t,a),a}function H(t){return M(t)?H(t.__v_raw):!!(t&&t.__v_isReactive)}function M(t){return!!(t&&t.__v_isReadonly)}function R(t){return!!(t&&t.__v_isShallow)}function Yt(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!tt(t,"__v_skip")&&Object.isExtensible(t)&&qt(t,"__v_skip",!0),t}const y=t=>K(t)?Nt(t):t,G=t=>K(t)?_t(t):t;function g(t){return t?t.__v_isRef===!0:!1}function Se(t){return zt(t,!1)}function je(t){return zt(t,!0)}function zt(t,e){return g(t)?t:new me(t,e)}class me{constructor(e,s){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:y(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||R(e)||M(e);e=n?e:u(e),E(e,s)&&(this._rawValue=e,this._value=n?e:y(e),this.dep.trigger())}}function bt(t){return g(t)?t.value:t}function He(t){return z(t)?t():bt(t)}const xe={get:(t,e,s)=>e==="__v_raw"?t:bt(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return g(i)&&!g(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function We(t){return H(t)?t:new Proxy(t,xe)}class ye{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new nt,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ce(t){return new ye(t)}function Ve(t){const e=x(t)?new Array(t.length):{};for(const s in t)e[s]=Bt(t,s);return e}class Te{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=u(e);let i=!0,r=e;if(!x(e)||!it(String(s)))do i=!Yt(r)||R(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=bt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&g(this._raw[this._key])){const s=this._object[this._key];if(g(s)){s.value=e;return}}this._object[this._key]=e}get dep(){return ne(this._raw,this._key)}}class De{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ne(t,e,s){return g(t)?t:z(t)?new De(t):K(t)&&arguments.length>1?Bt(t,e,s):Se(t)}function Bt(t,e,s){return new Te(t,e,s)}class Ie{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return yt(this,!0),!0}get value(){const e=this.dep.track();return It(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ye(t,e,s=!1){let n,i;return z(t)?n=t:(n=t.get,i=t.set),new Ie(n,i,s)}const k={},st=new WeakMap;let A;function Ee(t,e=!1,s=A){if(s){let n=st.get(s);n||st.set(s,n=[]),n.push(t)}}function ze(t,e,s=Gt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,p=l=>i?l:R(l)||i===!1||i===0?I(l,1):I(l);let c,d,_,U,q=!1,Q=!1;if(g(t)?(d=()=>t.value,q=R(t)):H(t)?(d=()=>p(t),q=!0):x(t)?(Q=!0,q=t.some(l=>H(l)||R(l)),d=()=>t.map(l=>{if(g(l))return l.value;if(H(l))return p(l);if(z(l))return f?f(l,2):l()})):z(t)?e?d=f?()=>f(t,2):t:d=()=>{if(_){Mt();try{_()}finally{Pt()}}const l=A;A=c;try{return f?f(t,3,[U]):t(U)}finally{A=l}}:d=$t,e&&i){const l=d,S=i===!0?1/0:i;d=()=>I(l(),S)}const at=te(),L=()=>{c.stop(),at&&at.active&&Qt(at.effects,c)};if(r&&e){const l=e;e=(...S)=>{l(...S),L()}}let P=Q?new Array(t.length).fill(k):k;const W=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const S=c.run();if(i||q||(Q?S.some((ft,X)=>E(ft,P[X])):E(S,P))){_&&_();const ft=A;A=c;try{const X=[S,P===k?void 0:Q&&P[0]===k?[]:P,U];P=S,f?f(e,3,X):e(...X)}finally{A=ft}}}else c.run()};return a&&a(W),c=new ee(d),c.scheduler=o?()=>o(W,!1):W,U=l=>Ee(l,!1,c),_=c.onStop=()=>{const l=st.get(c);if(l){if(f)f(l,4);else for(const S of l)S();st.delete(c)}},e?n?W(!0):P=c.run():o?o(W.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function I(t,e=1/0,s){if(e<=0||!K(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,g(t))I(t.value,e,s);else if(x(t))for(let n=0;n{I(n,e,s)});else if(Zt(t)){for(const n in t)I(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&I(t[n],e,s)}return t}export{H as A,kt as E,ee as R,g as a,Mt as b,Ye as c,Oe as d,w as e,Ke as f,D as g,Nt as h,Yt as i,I as j,Se as k,He as l,Le as m,_t as n,Ne as o,We as p,Ce as q,Pt as r,je as s,u as t,bt as u,te as v,ze as w,Ae as x,Ve as y,Pe as z}; diff --git a/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz b/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz new file mode 100644 index 00000000..2b84cdce Binary files /dev/null and b/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz differ diff --git a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js b/js/@vue_runtime-core@3.5.22-0v1MMfjG.js deleted file mode 100644 index eb765a57..00000000 --- a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js +++ /dev/null @@ -1,5 +0,0 @@ -import{c as Nl,w as $l,i as Ls,a as Tt,s as Ll,p as Vs,m as Vl,b as Ue,r as je,t as wt,E as Ul,R as jl,d as Dl,e as Us,g as Rl,h as Kl,j as Wl}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{a as V,n as js,b as K,E as q,e as ae,o as me,p as Ds,i as ge,q as Rs,s as is,u as Ke,r as Ks,v as Ht,N as Be,w as Ws,x as et,c as Q,y as tt,z as ke,A as ql,B as jt,C as ct,d as Gl,D as qs,F as Gs,G as Jl,H as Yl,f as Ql}from"./@vue_shared@3.5.22-Dikn8ojA.js";/** -* @vue/runtime-core v3.5.22 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ut(e,t,s,l){try{return l?e(...l):e()}catch(n){at(n,t,s)}}function Ee(e,t,s,l){if(V(e)){const n=ut(e,t,s,l);return n&&js(n)&&n.catch(r=>{at(r,t,s)}),n}if(K(e)){const n=[];for(let r=0;r>>1,n=ie[l],r=it(n);r=it(s)?ie.push(e):ie.splice(zl(t),0,e),e.flags|=1,Ys()}}function Ys(){vt||(vt=Js.then(Xs))}function Gt(e){K(e)?We.push(...e):Me&&e.id===-1?Me.splice(Re+1,0,e):e.flags&1||(We.push(e),e.flags|=1),Ys()}function Ts(e,t,s=ve+1){for(;sit(s)-it(l));if(We.length=0,Me){Me.push(...t);return}for(Me=t,Re=0;Ree.id==null?e.flags&2?-1:1/0:e.id;function Xs(e){try{for(ve=0;ve{l._d&&Pt(-1);const r=kt(t);let i;try{i=e(...n)}finally{kt(r),l._d&&Pt(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function yr(e,t){if(se===null)return e;const s=Vt(se),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),vs=e=>e&&(e.defer||e.defer===""),ks=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Jt=(e,t)=>{const s=e&&e.to;return me(s)?t?t(s):null:s},tl={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,f,u,h){const{mc:a,pc:d,pbc:_,o:{insert:x,querySelector:A,createText:B,createComment:L}}=h,$=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:O}=t;if(e==null){const E=t.el=B(""),M=t.anchor=B("");x(E,s,l),x(M,s,l);const j=(I,H)=>{v&16&&a(P,I,H,n,r,i,f,u)},U=()=>{const I=t.target=Jt(t.props,A),H=sl(I,t,B,x);I&&(i!=="svg"&&ks(I)?i="svg":i!=="mathml"&&Es(I)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(I),$||(j(I,H),_t(t,!1)))};$&&(j(s,M),_t(t,!0)),vs(t.props)?(t.el.__isMounted=!1,z(()=>{U(),delete t.el.__isMounted},r)):U()}else{if(vs(t.props)&&e.el.__isMounted===!1){z(()=>{tl.process(e,t,s,l,n,r,i,f,u,h)},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,j=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:j;if(i==="svg"||ks(M)?i="svg":(i==="mathml"||Es(M))&&(i="mathml"),O?(_(e.dynamicChildren,O,I,n,r,i,f),gs(e,t,!0)):u||d(e,t,I,H,n,r,i,f,!1),$)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yt(t,s,E,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Jt(t.props,A);D&&yt(t,D,null,h,0)}else U&&yt(t,M,j,h,1);_t(t,$)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:f,anchor:u,targetStart:h,targetAnchor:a,target:d,props:_}=e;if(d&&(n(h),n(a)),r&&n(u),i&16){const x=r||!st(_);for(let A=0;A{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},ll=e=>{const t=e.subTree;return t.component?ll(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=dt(),l=sn();return()=>{const n=t.default&&il(t.default(),!0);if(!n||!n.length)return;const r=nl(n),i=wt(e),{mode:f}=i;if(l.isLeaving)return Dt(r);const u=As(r);if(!u)return Dt(r);let h=Yt(u,i,l,s,d=>h=d);u.type!==ee&&Ge(u,h);let a=s.subTree&&As(s.subTree);if(a&&a.type!==ee&&!_e(a,u)&&ll(s).type!==ee){let d=Yt(a,i,l,s);if(Ge(a,d),f==="out-in"&&u.type!==ee)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Dt(r);f==="in-out"&&u.type!==ee?d.delayLeave=(_,x,A)=>{const B=rl(l,a);B[String(a.key)]=a,_[Ie]=()=>{x(),_[Ie]=void 0,delete h.delayedLeave,a=void 0},h.delayedLeave=()=>{A(),delete h.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function nl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ee){t=s;break}}return t}const br=nn;function rl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function Yt(e,t,s,l,n){const{appear:r,mode:i,persisted:f=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:_,onLeave:x,onAfterLeave:A,onLeaveCancelled:B,onBeforeAppear:L,onAppear:$,onAfterAppear:v,onAppearCancelled:P}=t,O=String(e.key),E=rl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},j=(I,H)=>{const D=H[1];M(I,H),K(I)?I.every(X=>X.length<=1)&&D():I.length<=1&&D()},U={mode:i,persisted:f,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=L||u;else return;I[Ie]&&I[Ie](!0);const D=E[O];D&&_e(e,D)&&D.el[Ie]&&D.el[Ie](),M(H,[I])},enter(I){let H=h,D=a,X=d;if(!s.isMounted)if(r)H=$||h,D=v||a,X=P||d;else return;let te=!1;const ne=I[mt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(D,[I]),U.delayedLeave&&U.delayedLeave(),I[mt]=void 0)};H?j(H,[I,ne]):ne()},leave(I,H){const D=String(e.key);if(I[mt]&&I[mt](!0),s.isUnmounting)return H();M(_,[I]);let X=!1;const te=I[Ie]=ne=>{X||(X=!0,H(),ne?M(B,[I]):M(A,[I]),I[Ie]=void 0,E[D]===e&&delete E[D])};E[D]=e,x?j(x,[I,te]):te()},clone(I){const H=Yt(I,t,s,l,n);return n&&n(H),H}};return U}function Dt(e){if(St(e))return e=Oe(e),e.children=null,e}function As(e){if(!St(e))return el(e.type)&&e.children?nl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&V(s.default))return s.default()}}function Ge(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ge(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 il(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}const Et=new WeakMap;function lt(e,t,s,l,n=!1){if(K(e)){e.forEach((A,B)=>lt(A,t&&(K(t)?t[B]:t),s,l,n));return}if(Le(l)&&!n){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&<(e,t,s,l.component.subTree);return}const r=l.shapeFlag&4?Vt(l.component):l.el,i=n?null:r,{i:f,r:u}=e,h=t&&t.r,a=f.refs===q?f.refs={}:f.refs,d=f.setupState,_=wt(d),x=d===q?Ws:A=>Q(_,A);if(h!=null&&h!==u){if(Is(t),me(h))a[h]=null,x(h)&&(d[h]=null);else if(Tt(h)){h.value=null;const A=t;A.k&&(a[A.k]=null)}}if(V(u))ut(u,f,12,[i,a]);else{const A=me(u),B=Tt(u);if(A||B){const L=()=>{if(e.f){const $=A?x(u)?d[u]:a[u]:u.value;if(n)K($)&&Ks($,r);else if(K($))$.includes(r)||$.push(r);else if(A)a[u]=[r],x(u)&&(d[u]=a[u]);else{const v=[r];u.value=v,e.k&&(a[e.k]=v)}}else A?(a[u]=i,x(u)&&(d[u]=i)):B&&(u.value=i,e.k&&(a[e.k]=i))};if(i){const $=()=>{L(),Et.delete(e)};$.id=-1,Et.set(e,$),z($,s)}else Is(e),L()}}}function Is(e){const t=Et.get(e);t&&(t.flags|=8,Et.delete(e))}Ht().requestIdleCallback;Ht().cancelIdleCallback;const Le=e=>!!e.type.__asyncLoader,St=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=dt(),l=s.ctx;if(!l.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const n=new Map,r=new Set;let i=null;const f=s.suspense,{renderer:{p:u,m:h,um:a,o:{createElement:d}}}=l,_=d("div");l.activate=(v,P,O,E,M)=>{const j=v.component;h(v,P,O,0,f),u(j.vnode,v,P,O,j,f,E,v.slotScopeIds,M),z(()=>{j.isDeactivated=!1,j.a&&et(j.a);const U=v.props&&v.props.onVnodeMounted;U&&ye(U,j.parent,v)},f)},l.deactivate=v=>{const P=v.component;It(P.m),It(P.a),h(v,_,null,1,f),z(()=>{P.da&&et(P.da);const O=v.props&&v.props.onVnodeUnmounted;O&&ye(O,P.parent,v),P.isDeactivated=!0},f)};function x(v){Rt(v),a(v,s,f,!0)}function A(v){n.forEach((P,O)=>{const E=rs(P.type);E&&!v(E)&&B(O)})}function B(v){const P=n.get(v);P&&(!i||!_e(P,i))?x(P):i&&Rt(i),n.delete(v),r.delete(v)}Ft(()=>[e.include,e.exclude],([v,P])=>{v&&A(O=>Ze(v,O)),P&&A(O=>!Ze(P,O))},{flush:"post",deep:!0});let L=null;const $=()=>{L!=null&&(Bt(s.subTree.type)?z(()=>{n.set(L,bt(s.subTree))},s.subTree.suspense):n.set(L,bt(s.subTree)))};return fs($),cl($),cs(()=>{n.forEach(v=>{const{subTree:P,suspense:O}=s,E=bt(P);if(v.type===E.type&&v.key===E.key){Rt(E);const M=E.component.da;M&&z(M,O);return}x(v)})}),()=>{if(L=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let O=bt(P);if(O.type===ee)return i=null,O;const E=O.type,M=rs(Le(O)?O.type.__asyncResolved||{}:E),{include:j,exclude:U,max:I}=e;if(j&&(!M||!Ze(j,M))||U&&M&&Ze(U,M))return O.shapeFlag&=-257,i=O,P;const H=O.key==null?E:O.key,D=n.get(H);return O.el&&(O=Oe(O),P.shapeFlag&128&&(P.ssContent=O)),L=H,D?(O.el=D.el,O.component=D.component,O.transition&&Ge(O,O.transition),O.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&B(r.values().next().value)),O.shapeFlag|=256,i=O,Bt(P.type)?P:O}}},Fr=rn;function Ze(e,t){return K(e)?e.some(s=>Ze(s,t)):me(e)?e.split(",").includes(t):Yl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){fl(e,"a",t)}function fn(e,t){fl(e,"da",t)}function fl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Nt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)St(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=Nt(t,e,l,!0);ul(()=>{Ks(l[t],n)},s)}function Rt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bt(e){return e.shapeFlag&128?e.ssContent:e}function Nt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ue();const f=ht(s),u=Ee(t,s,e,i);return f(),je(),u});return l?n.unshift(r):n.push(r),r}}const Pe=e=>(t,s=le)=>{(!ft||e==="sp")&&Nt(e,(...l)=>t(...l),s)},un=Pe("bm"),fs=Pe("m"),an=Pe("bu"),cl=Pe("u"),cs=Pe("bum"),ul=Pe("um"),dn=Pe("sp"),hn=Pe("rtg"),gn=Pe("rtc");function pn(e,t=le){Nt("ec",e,t)}const us="components",yn="directives";function Cr(e,t){return as(us,e,!0,t)||e}const al=Symbol.for("v-ndc");function Tr(e){return me(e)?as(us,e,!1)||e:e||al}function vr(e){return as(yn,e)}function as(e,t,s=!0,l=!1){const n=se||le;if(n){const r=n.type;if(e===us){const f=rs(r,!1);if(f&&(f===t||f===ke(t)||f===Gs(ke(t))))return r}const i=Bs(n[e]||r[e],t)||Bs(n.appContext[e],t);return!i&&l?r:i}}function Bs(e,t){return e&&(e[t]||e[ke(t)]||e[Gs(ke(t))])}function kr(e,t,s={},l,n){if(se.ce||se.parent&&Le(se.parent)&&se.parent.ce){const h=Object.keys(s).length>0;return Ot(),ss(he,null,[oe("slot",s,l)],h?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),Ot();const i=r&&dl(r(s)),f=s.key||i&&i.key,u=ss(he,{key:(f&&!Ql(f)?f:`_${t}`)+""},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function dl(e){return e.some(t=>De(t)?!(t.type===ee||t.type===he&&!dl(t.children)):!0)?e:null}const Qt=e=>e?Ml(e)?Vt(e):Qt(e.parent):null,nt=ae(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=>Qt(e.parent),$root:e=>Qt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gl(e),$forceUpdate:e=>e.f||(e.f=()=>{os(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>$n.bind(e)}),Kt=(e,t)=>e!==q&&!e.__isScriptSetup&&Q(e,t),mn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:f,appContext:u}=e;let h;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(Kt(l,t))return i[t]=1,l[t];if(n!==q&&Q(n,t))return i[t]=2,n[t];if((h=e.propsOptions[0])&&Q(h,t))return i[t]=3,r[t];if(s!==q&&Q(s,t))return i[t]=4,s[t];Zt&&(i[t]=0)}}const a=nt[t];let d,_;if(a)return t==="$attrs"&&Us(e.attrs,"get",""),a(e);if((d=f.__cssModules)&&(d=d[t]))return d;if(s!==q&&Q(s,t))return i[t]=4,s[t];if(_=u.config.globalProperties,Q(_,t))return _[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return Kt(n,t)?(n[t]=s,!0):l!==q&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,propsOptions:r,type:i}},f){let u,h;return!!(s[f]||e!==q&&f[0]!=="$"&&Q(e,f)||Kt(t,f)||(u=r[0])&&Q(u,f)||Q(l,f)||Q(nt,f)||Q(n.config.globalProperties,f)||(h=i.__cssModules)&&h[f])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xt(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Er(e,t){const s=Xt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?K(n)||V(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Zt=!0;function bn(e){const t=gl(e),s=e.proxy,l=e.ctx;Zt=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:f,provide:u,inject:h,created:a,beforeMount:d,mounted:_,beforeUpdate:x,updated:A,activated:B,deactivated:L,beforeDestroy:$,beforeUnmount:v,destroyed:P,unmounted:O,render:E,renderTracked:M,renderTriggered:j,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:D,components:X,directives:te,filters:ne}=t;if(h&&_n(h,l,null),i)for(const G in i){const J=i[G];V(J)&&(l[G]=J.bind(s))}if(n){const G=n.call(s,s);ge(G)&&(e.data=Kl(G))}if(Zt=!0,r)for(const G in r){const J=r[G],He=V(J)?J.bind(s,s):V(J.get)?J.get.bind(s,s):Be,gt=!V(J)&&V(J.set)?J.set.bind(s):Be,Se=ur({get:He,set:gt});Object.defineProperty(l,G,{enumerable:!0,configurable:!0,get:()=>Se.value,set:xe=>Se.value=xe})}if(f)for(const G in f)hl(f[G],l,s,G);if(u){const G=V(u)?u.call(s):u;Reflect.ownKeys(G).forEach(J=>{kn(J,G[J])})}a&&Os(a,e,"c");function Z(G,J){K(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(un,d),Z(fs,_),Z(an,x),Z(cl,A),Z(on,B),Z(fn,L),Z(pn,U),Z(gn,M),Z(hn,j),Z(cs,v),Z(ul,O),Z(dn,I),K(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===Be&&(e.render=E),D!=null&&(e.inheritAttrs=D),X&&(e.components=X),te&&(e.directives=te),I&&ol(e)}function _n(e,t,s=Be){K(e)&&(e=zt(e));for(const l in e){const n=e[l];let r;ge(n)?"default"in n?r=xt(n.from||l,n.default,!0):r=xt(n.from||l):r=xt(n),Tt(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Os(e,t,s){Ee(K(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function hl(e,t,s,l){let n=l.includes(".")?kl(s,l):()=>s[l];if(me(e)){const r=t[e];V(r)&&Ft(n,r)}else if(V(e))Ft(n,e.bind(s));else if(ge(e))if(K(e))e.forEach(r=>hl(r,t,s,l));else{const r=V(e.handler)?e.handler.bind(s):t[e.handler];V(r)&&Ft(n,r,e)}}function gl(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,f=r.get(t);let u;return f?u=f:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(h=>At(u,h,i,!0)),At(u,t,i)),ge(t)&&r.set(t,u),u}function At(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&At(e,r,s,!0),n&&n.forEach(i=>At(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const f=xn[i]||s&&s[i];e[i]=f?f(e[i],t[i]):t[i]}return e}const xn={data:Ps,props:Ms,emits:Ms,methods:ze,computed:ze,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:ze,directives:ze,watch:Cn,provide:Ps,inject:Fn};function Ps(e,t){return t?e?function(){return ae(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Fn(e,t){return ze(zt(e),zt(t))}function zt(e){if(K(e)){const t={};for(let s=0;s1)return s&&V(t)?t.call(l&&l.proxy):t}}function Ar(){return!!(dt()||Ve)}const yl={},ml=()=>Object.create(yl),bl=e=>Object.getPrototypeOf(e)===yl;function En(e,t,s,l=!1){const n={},r=ml();e.propsDefaults=Object.create(null),_l(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Dl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function An(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,f=wt(n),[u]=e.propsOptions;let h=!1;if((l||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[_,x]=xl(d,t,!0);ae(i,_),x&&f.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return ge(e)&&l.set(e,Ke),Ke;if(K(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",hs=e=>K(e)?e.map(be):[be(e)],Bn=(e,t,s)=>{if(t._n)return t;const l=en((...n)=>hs(t(...n)),s);return l._c=!1,l},Fl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(ds(n))continue;const r=e[n];if(V(r))t[n]=Bn(n,r,l);else if(r!=null){const i=hs(r);t[n]=()=>i}}},Cl=(e,t)=>{const s=hs(t);e.slots.default=()=>s},Tl=(e,t,s)=>{for(const l in t)(s||!ds(l))&&(e[l]=t[l])},On=(e,t,s)=>{const l=e.slots=ml();if(e.vnode.shapeFlag&32){const n=t._;n?(Tl(l,t,s),s&&Gl(l,"_",n,!0)):Fl(t,l)}else t&&Cl(e,t)},Pn=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=q;if(l.shapeFlag&32){const f=t._;f?s&&f===1?r=!1:Tl(n,t,s):(r=!t.$stable,Fl(t,n)),i=t}else t&&(Cl(e,t),i={default:1});if(r)for(const f in n)!ds(f)&&i[f]==null&&delete n[f]},z=Qn;function Ir(e){return Mn(e)}function Mn(e,t){const s=Ht();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:f,createComment:u,setText:h,setElementText:a,parentNode:d,nextSibling:_,setScopeId:x=Be,insertStaticContent:A}=e,B=(o,c,g,m=null,p=null,y=null,T=void 0,C=null,F=!!c.dynamicChildren)=>{if(o===c)return;o&&!_e(o,c)&&(m=pt(o),xe(o,p,y,!0),o=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:b,ref:S,shapeFlag:k}=c;switch(b){case Lt:L(o,c,g,m);break;case ee:$(o,c,g,m);break;case qt:o==null&&v(c,g,m,T);break;case he:X(o,c,g,m,p,y,T,C,F);break;default:k&1?E(o,c,g,m,p,y,T,C,F):k&6?te(o,c,g,m,p,y,T,C,F):(k&64||k&128)&&b.process(o,c,g,m,p,y,T,C,F,Qe)}S!=null&&p?lt(S,o&&o.ref,y,c||o,!c):S==null&&o&&o.ref!=null&<(o.ref,null,y,o,!0)},L=(o,c,g,m)=>{if(o==null)l(c.el=f(c.children),g,m);else{const p=c.el=o.el;c.children!==o.children&&h(p,c.children)}},$=(o,c,g,m)=>{o==null?l(c.el=u(c.children||""),g,m):c.el=o.el},v=(o,c,g,m)=>{[o.el,o.anchor]=A(o.children,c,g,m,o.el,o.anchor)},P=({el:o,anchor:c},g,m)=>{let p;for(;o&&o!==c;)p=_(o),l(o,g,m),o=p;l(c,g,m)},O=({el:o,anchor:c})=>{let g;for(;o&&o!==c;)g=_(o),n(o),o=g;n(c)},E=(o,c,g,m,p,y,T,C,F)=>{c.type==="svg"?T="svg":c.type==="math"&&(T="mathml"),o==null?M(c,g,m,p,y,T,C,F):I(o,c,p,y,T,C,F)},M=(o,c,g,m,p,y,T,C)=>{let F,b;const{props:S,shapeFlag:k,transition:w,dirs:N}=o;if(F=o.el=i(o.type,y,S&&S.is,S),k&8?a(F,o.children):k&16&&U(o.children,F,null,m,p,Wt(o,y),T,C),N&&Ne(o,null,m,"created"),j(F,o,o.scopeId,T,m),S){for(const Y in S)Y!=="value"&&!tt(Y)&&r(F,Y,null,S[Y],y,m);"value"in S&&r(F,"value",null,S.value,y),(b=S.onVnodeBeforeMount)&&ye(b,m,o)}N&&Ne(o,null,m,"beforeMount");const R=wn(p,w);R&&w.beforeEnter(F),l(F,c,g),((b=S&&S.onVnodeMounted)||R||N)&&z(()=>{b&&ye(b,m,o),R&&w.enter(F),N&&Ne(o,null,m,"mounted")},p)},j=(o,c,g,m,p)=>{if(g&&x(o,g),m)for(let y=0;y{for(let b=F;b{const C=c.el=o.el;let{patchFlag:F,dynamicChildren:b,dirs:S}=c;F|=o.patchFlag&16;const k=o.props||q,w=c.props||q;let N;if(g&&$e(g,!1),(N=w.onVnodeBeforeUpdate)&&ye(N,g,c,o),S&&Ne(c,o,g,"beforeUpdate"),g&&$e(g,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(C,""),b?H(o.dynamicChildren,b,C,g,m,Wt(c,p),y):T||J(o,c,C,null,g,m,Wt(c,p),y,!1),F>0){if(F&16)D(C,k,w,g,p);else if(F&2&&k.class!==w.class&&r(C,"class",null,w.class,p),F&4&&r(C,"style",k.style,w.style,p),F&8){const R=c.dynamicProps;for(let Y=0;Y{N&&ye(N,g,c,o),S&&Ne(c,o,g,"updated")},m)},H=(o,c,g,m,p,y,T)=>{for(let C=0;C{if(c!==g){if(c!==q)for(const y in c)!tt(y)&&!(y in g)&&r(o,y,c[y],null,p,m);for(const y in g){if(tt(y))continue;const T=g[y],C=c[y];T!==C&&y!=="value"&&r(o,y,C,T,p,m)}"value"in g&&r(o,"value",c.value,g.value,p)}},X=(o,c,g,m,p,y,T,C,F)=>{const b=c.el=o?o.el:f(""),S=c.anchor=o?o.anchor:f("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:N}=c;N&&(C=C?C.concat(N):N),o==null?(l(b,g,m),l(S,g,m),U(c.children||[],g,S,p,y,T,C,F)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,g,p,y,T,C),(c.key!=null||p&&c===p.subTree)&&gs(o,c,!0)):J(o,c,g,S,p,y,T,C,F)},te=(o,c,g,m,p,y,T,C,F)=>{c.slotScopeIds=C,o==null?c.shapeFlag&512?p.ctx.activate(c,g,m,T,F):ne(c,g,m,p,y,T,F):Ae(o,c,F)},ne=(o,c,g,m,p,y,T)=>{const C=o.component=nr(o,m,p);if(St(o)&&(C.ctx.renderer=Qe),rr(C,!1,T),C.asyncDep){if(p&&p.registerDep(C,Z,T),!o.el){const F=C.subTree=oe(ee);$(null,F,c,g),o.placeholder=F.el}}else Z(C,o,c,g,p,y,T)},Ae=(o,c,g)=>{const m=c.component=o.component;if(Kn(o,c,g))if(m.asyncDep&&!m.asyncResolved){G(m,c,g);return}else m.next=c,m.update();else c.el=o.el,m.vnode=c},Z=(o,c,g,m,p,y,T)=>{const C=()=>{if(o.isMounted){let{next:k,bu:w,u:N,parent:R,vnode:Y}=o;{const Ce=vl(o);if(Ce){k&&(k.el=Y.el,G(o,k,T)),Ce.asyncDep.then(()=>{o.isUnmounted||C()});return}}let W=k,fe;$e(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(fe=k.props&&k.props.onVnodeBeforeUpdate)&&ye(fe,R,k,Y),$e(o,!0);const ce=Hs(o),Fe=o.subTree;o.subTree=ce,B(Fe,ce,d(Fe.el),pt(Fe),o,p,y),k.el=ce.el,W===null&&ys(o,ce.el),N&&z(N,p),(fe=k.props&&k.props.onVnodeUpdated)&&z(()=>ye(fe,R,k,Y),p)}else{let k;const{el:w,props:N}=c,{bm:R,m:Y,parent:W,root:fe,type:ce}=o,Fe=Le(c);$e(o,!1),R&&et(R),!Fe&&(k=N&&N.onVnodeBeforeMount)&&ye(k,W,c),$e(o,!0);{fe.ce&&fe.ce._def.shadowRoot!==!1&&fe.ce._injectChildStyle(ce);const Ce=o.subTree=Hs(o);B(null,Ce,g,m,o,p,y),c.el=Ce.el}if(Y&&z(Y,p),!Fe&&(k=N&&N.onVnodeMounted)){const Ce=c;z(()=>ye(k,W,Ce),p)}(c.shapeFlag&256||W&&Le(W.vnode)&&W.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,c=g=m=null}};o.scope.on();const F=o.effect=new jl(C);o.scope.off();const b=o.update=F.run.bind(F),S=o.job=F.runIfDirty.bind(F);S.i=o,S.id=o.uid,F.scheduler=()=>os(S),$e(o,!0),b()},G=(o,c,g)=>{c.component=o;const m=o.vnode.props;o.vnode=c,o.next=null,An(o,c.props,m,g),Pn(o,c.children,g),Ue(),Ts(o),je()},J=(o,c,g,m,p,y,T,C,F=!1)=>{const b=o&&o.children,S=o?o.shapeFlag:0,k=c.children,{patchFlag:w,shapeFlag:N}=c;if(w>0){if(w&128){gt(b,k,g,m,p,y,T,C,F);return}else if(w&256){He(b,k,g,m,p,y,T,C,F);return}}N&8?(S&16&&Ye(b,p,y),k!==b&&a(g,k)):S&16?N&16?gt(b,k,g,m,p,y,T,C,F):Ye(b,p,y,!0):(S&8&&a(g,""),N&16&&U(k,g,m,p,y,T,C,F))},He=(o,c,g,m,p,y,T,C,F)=>{o=o||Ke,c=c||Ke;const b=o.length,S=c.length,k=Math.min(b,S);let w;for(w=0;wS?Ye(o,p,y,!0,!1,k):U(c,g,m,p,y,T,C,F,k)},gt=(o,c,g,m,p,y,T,C,F)=>{let b=0;const S=c.length;let k=o.length-1,w=S-1;for(;b<=k&&b<=w;){const N=o[b],R=c[b]=F?we(c[b]):be(c[b]);if(_e(N,R))B(N,R,g,null,p,y,T,C,F);else break;b++}for(;b<=k&&b<=w;){const N=o[k],R=c[w]=F?we(c[w]):be(c[w]);if(_e(N,R))B(N,R,g,null,p,y,T,C,F);else break;k--,w--}if(b>k){if(b<=w){const N=w+1,R=Nw)for(;b<=k;)xe(o[b],p,y,!0),b++;else{const N=b,R=b,Y=new Map;for(b=R;b<=w;b++){const de=c[b]=F?we(c[b]):be(c[b]);de.key!=null&&Y.set(de.key,b)}let W,fe=0;const ce=w-R+1;let Fe=!1,Ce=0;const Xe=new Array(ce);for(b=0;b=ce){xe(de,p,y,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(W=R;W<=w;W++)if(Xe[W-R]===0&&_e(de,c[W])){Te=W;break}Te===void 0?xe(de,p,y,!0):(Xe[Te-R]=b+1,Te>=Ce?Ce=Te:Fe=!0,B(de,c[Te],g,null,p,y,T,C,F),fe++)}const xs=Fe?Hn(Xe):Ke;for(W=xs.length-1,b=ce-1;b>=0;b--){const de=R+b,Te=c[de],Fs=c[de+1],Cs=de+1{const{el:y,type:T,transition:C,children:F,shapeFlag:b}=o;if(b&6){Se(o.component.subTree,c,g,m);return}if(b&128){o.suspense.move(c,g,m);return}if(b&64){T.move(o,c,g,Qe);return}if(T===he){l(y,c,g);for(let k=0;kC.enter(y),p);else{const{leave:k,delayLeave:w,afterLeave:N}=C,R=()=>{o.ctx.isUnmounted?n(y):l(y,c,g)},Y=()=>{y._isLeaving&&y[Ie](!0),k(y,()=>{R(),N&&N()})};w?w(y,R,Y):Y()}else l(y,c,g)},xe=(o,c,g,m=!1,p=!1)=>{const{type:y,props:T,ref:C,children:F,dynamicChildren:b,shapeFlag:S,patchFlag:k,dirs:w,cacheIndex:N}=o;if(k===-2&&(p=!1),C!=null&&(Ue(),lt(C,null,g,o,!0),je()),N!=null&&(c.renderCache[N]=void 0),S&256){c.ctx.deactivate(o);return}const R=S&1&&w,Y=!Le(o);let W;if(Y&&(W=T&&T.onVnodeBeforeUnmount)&&ye(W,c,o),S&6)Sl(o.component,g,m);else{if(S&128){o.suspense.unmount(g,m);return}R&&Ne(o,null,c,"beforeUnmount"),S&64?o.type.remove(o,c,g,Qe,m):b&&!b.hasOnce&&(y!==he||k>0&&k&64)?Ye(b,c,g,!1,!0):(y===he&&k&384||!p&&S&16)&&Ye(F,c,g),m&&bs(o)}(Y&&(W=T&&T.onVnodeUnmounted)||R)&&z(()=>{W&&ye(W,c,o),R&&Ne(o,null,c,"unmounted")},g)},bs=o=>{const{type:c,el:g,anchor:m,transition:p}=o;if(c===he){Hl(g,m);return}if(c===qt){O(o);return}const y=()=>{n(g),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:C}=p,F=()=>T(g,y);C?C(o.el,y,F):F()}else y()},Hl=(o,c)=>{let g;for(;o!==c;)g=_(o),n(o),o=g;n(c)},Sl=(o,c,g)=>{const{bum:m,scope:p,job:y,subTree:T,um:C,m:F,a:b}=o;It(F),It(b),m&&et(m),p.stop(),y&&(y.flags|=8,xe(T,o,c,g)),C&&z(C,c),z(()=>{o.isUnmounted=!0},c)},Ye=(o,c,g,m=!1,p=!1,y=0)=>{for(let T=y;T{if(o.shapeFlag&6)return pt(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const c=_(o.anchor||o.el),g=c&&c[zs];return g?_(g):c};let Ut=!1;const _s=(o,c,g)=>{o==null?c._vnode&&xe(c._vnode,null,null,!0):B(c._vnode||null,o,c,null,null,null,g),c._vnode=o,Ut||(Ut=!0,Ts(),Qs(),Ut=!1)},Qe={p:B,um:xe,m:Se,r:bs,mt:ne,mc:U,pc:J,pbc:H,n:pt,o:e};return{render:_s,hydrate:void 0,createApp:vn(_s)}}function Wt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function $e({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gs(e,t,s=!1){const l=e.children,n=t.children;if(K(l)&&K(n))for(let r=0;r>1,e[s[f]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function vl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:vl(t)}function It(e){if(e)for(let t=0;txt(Sn);function Br(e,t){return ps(e,null,t)}function Ft(e,t,s){return ps(e,t,s)}function ps(e,t,s=q){const{immediate:l,deep:n,flush:r,once:i}=s,f=ae({},s),u=t&&l||!t&&r!=="post";let h;if(ft){if(r==="sync"){const x=Nn();h=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Be,x.resume=Be,x.pause=Be,x}}const a=le;f.call=(x,A,B)=>Ee(x,a,A,B);let d=!1;r==="post"?f.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,f.scheduler=(x,A)=>{A?x():os(x)}),f.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const _=$l(e,t,f);return ft&&(h?h.push(_):u&&_()),_}function $n(e,t,s){const l=this.proxy,n=me(e)?e.includes(".")?kl(l,e):()=>l[e]:e.bind(l,l);let r;V(t)?r=t:(r=t.handler,s=t);const i=ht(this),f=ps(n,r.bind(l),s);return i(),f}function kl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function Vn(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||q;let n=s;const r=t.startsWith("update:"),i=r&&Ln(l,t.slice(7));i&&(i.trim&&(n=s.map(a=>me(a)?a.trim():a)),i.number&&(n=s.map(ql)));let f,u=l[f=jt(t)]||l[f=jt(ke(t))];!u&&r&&(u=l[f=jt(ct(t))]),u&&Ee(u,e,6,n);const h=l[f+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ee(h,e,6,n)}}const Un=new WeakMap;function El(e,t,s=!1){const l=s?Un:t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},f=!1;if(!V(e)){const u=h=>{const a=El(h,t,!0);a&&(f=!0,ae(i,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!f?(ge(e)&&l.set(e,null),null):(K(r)?r.forEach(u=>i[u]=null):ae(i,r),ge(e)&&l.set(e,i),i)}function $t(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ct(t))||Q(e,t))}function Hs(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:f,emit:u,render:h,renderCache:a,props:d,data:_,setupState:x,ctx:A,inheritAttrs:B}=e,L=kt(e);let $,v;try{if(s.shapeFlag&4){const O=n||l,E=O;$=be(h.call(E,O,a,d,x,_,A)),v=f}else{const O=t;$=be(O.length>1?O(d,{attrs:f,slots:i,emit:u}):O(d,null)),v=t.props?f:Dn(f)}}catch(O){rt.length=0,at(O,e,1),$=oe(ee)}let P=$;if(v&&B!==!1){const O=Object.keys(v),{shapeFlag:E}=P;O.length&&E&7&&(r&&O.some(qs)&&(v=Rn(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Ge(P,s.transition),$=P,kt(L),$}function jn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},Rn=(e,t)=>{const s={};for(const l in e)(!qs(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Kn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:f,patchFlag:u}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Ss(l,i,h):!!i;if(u&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let ts=0;const Wn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,f,u,h){if(e==null)qn(t,s,l,n,r,i,f,u,h);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gn(e,t,s,l,n,i,f,u,h)}},hydrate:Jn,normalize:Yn},Or=Wn;function ot(e,t){const s=e.props&&e.props[t];V(s)&&s()}function qn(e,t,s,l,n,r,i,f,u){const{p:h,o:{createElement:a}}=u,d=a("div"),_=e.suspense=Al(e,n,l,t,d,s,r,i,f,u);h(null,_.pendingBranch=e.ssContent,d,null,l,_,r,i),_.deps>0?(ot(e,"onPending"),ot(e,"onFallback"),h(null,e.ssFallback,t,s,l,null,r,i),qe(_,e.ssFallback)):_.resolve(!1,!0)}function Gn(e,t,s,l,n,r,i,f,{p:u,um:h,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const _=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:B,isInFallback:L,isHydrating:$}=d;if(B)d.pendingBranch=_,_e(B,_)?(u(B,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():L&&($||(u(A,x,s,l,n,null,r,i,f),qe(d,x)))):(d.pendingId=ts++,$?(d.isHydrating=!1,d.activeBranch=B):h(B,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),L?(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():(u(A,x,s,l,n,null,r,i,f),qe(d,x))):A&&_e(A,_)?(u(A,_,s,l,n,d,r,i,f),d.resolve(!0)):(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0&&d.resolve()));else if(A&&_e(A,_))u(A,_,s,l,n,d,r,i,f),qe(d,_);else if(ot(t,"onPending"),d.pendingBranch=_,_.shapeFlag&512?d.pendingId=_.component.suspenseId:d.pendingId=ts++,u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function Al(e,t,s,l,n,r,i,f,u,h,a=!1){const{p:d,m:_,um:x,n:A,o:{parentNode:B,remove:L}}=h;let $;const v=Xn(e);v&&t&&t.pendingBranch&&($=t.pendingId,t.deps++);const P=e.props?Jl(e.props.timeout):void 0,O=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:ts++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,j=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:D,effects:X,parentComponent:te,container:ne}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{D===E.pendingId&&(_(H,ne,r===O?A(I):r,0),Gt(X))}),I&&(B(I.el)===ne&&(r=A(I)),x(I,te,E,!0)),Ae||_(H,ne,r,0)),qe(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Gt(X),E.effects=[],v&&t&&t.pendingBranch&&$===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),ot(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:j,activeBranch:U,parentComponent:I,container:H,namespace:D}=E;ot(j,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,D,f,u),qe(E,M))},ne=M.transition&&M.transition.mode==="out-in";ne&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),ne||te()},move(M,j,U){E.activeBranch&&_(E.activeBranch,M,j,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,j,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(D=>{at(D,M,0)}).then(D=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ns(M,D),H&&(X.el=H);const te=!H&&M.subTree.el;j(M,X,B(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&L(te),ys(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,j){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,j),E.pendingBranch&&x(E.pendingBranch,s,M,j)}};return E}function Jn(e,t,s,l,n,r,i,f,u){const h=t.suspense=Al(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,f,!0),a=u(e,h.pendingBranch=t.ssContent,s,h,r,i);return h.deps===0&&h.resolve(!1,!0),a}function Yn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ns(l?s.default:s),e.ssFallback=l?Ns(s.fallback):oe(ee)}function Ns(e){let t;if(V(e)){const s=Je&&e._c;s&&(e._d=!1,Ot()),e=e(),s&&(e._d=!0,t=ue,Il())}return K(e)&&(e=jn(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Qn(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Gt(e)}function qe(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,ys(l,n))}function Xn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Lt=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),qt=Symbol.for("v-stc"),rt=[];let ue=null;function Ot(e=!1){rt.push(ue=e?null:[])}function Il(){rt.pop(),ue=rt[rt.length-1]||null}let Je=1;function Pt(e,t=!1){Je+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Bl(e){return e.dynamicChildren=Je>0?ue||Ke:null,Il(),Je>0&&ue&&ue.push(e),e}function Pr(e,t,s,l,n,r){return Bl(Pl(e,t,s,l,n,r,!0))}function ss(e,t,s,l,n){return Bl(oe(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const Ol=({key:e})=>e??null,Ct=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Tt(e)||V(e)?{i:se,r:e,k:t,f:!!s}:e:null);function Pl(e,t=null,s=null,l=0,n=null,r=e===he?0:1,i=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ol(t),ref:t&&Ct(t),scopeId:Zs,slotScopeIds:null,children:s,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:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:se};return f?(ms(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=me(s)?8:16),Je>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const oe=Zn;function Zn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===al)&&(e=ee),De(e)){const f=Oe(e,t,!0);return s&&ms(f,s),Je>0&&!r&&ue&&(f.shapeFlag&6?ue[ue.indexOf(e)]=f:ue.push(f)),f.patchFlag=-2,f}if(cr(e)&&(e=e.__vccOpts),t){t=zn(t);let{class:f,style:u}=t;f&&!me(f)&&(t.class=Ds(f)),ge(u)&&(Ls(u)&&!K(u)&&(u=ae({},u)),t.style=Rs(u))}const i=me(e)?1:Bt(e)?128:el(e)?64:ge(e)?4:V(e)?2:0;return Pl(e,t,s,l,n,i,r,!0)}function zn(e){return e?Ls(e)||bl(e)?ae({},e):e:null}function Oe(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:f,transition:u}=e,h=t?tr(n||{},t):n,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Ol(h),ref:t&&t.ref?s&&r?K(r)?r.concat(Ct(t)):[r,Ct(t)]:Ct(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&Ge(a,u.clone(a)),a}function er(e=" ",t=0){return oe(Lt,null,e,t)}function Mr(e="",t=!1){return t?(Ot(),ss(ee,null,e)):oe(ee,null,e)}function be(e){return e==null||typeof e=="boolean"?oe(ee):K(e)?oe(he,null,e.slice()):De(e)?we(e):oe(Lt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function ms(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ms(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!bl(t)?t._ctx=se:n===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:se},s=32):(t=String(t),l&64?(s=16,t=[er(t)]):s=8);e.children=t,e.shapeFlag|=s}function tr(...e){const t={};for(let s=0;sle||se;let Mt,ls;{const e=Ht(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Mt=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ls=t("__VUE_SSR_SETTERS__",s=>ft=s)}const ht=e=>{const t=le;return Mt(e),e.scope.on(),()=>{e.scope.off(),Mt(t)}},$s=()=>{le&&le.scope.off(),Mt(null)};function Ml(e){return e.vnode.shapeFlag&4}let ft=!1;function rr(e,t=!1,s=!1){t&&ls(t);const{props:l,children:n}=e.vnode,r=Ml(e);En(e,l,r,t),On(e,n,s||t);const i=r?ir(e,t):void 0;return t&&ls(!1),i}function ir(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mn);const{setup:l}=s;if(l){Ue();const n=e.setupContext=l.length>1?fr(e):null,r=ht(e),i=ut(l,e,0,[e.props,n]),f=js(i);if(je(),r(),(f||e.sp)&&!Le(e)&&ol(e),f){if(i.then($s,$s),t)return i.then(u=>{ns(e,u)}).catch(u=>{at(u,e,0)});e.asyncDep=i}else ns(e,i)}else wl(e)}function ns(e,t,s){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Vs(t)),wl(e)}function wl(e,t,s){const l=e.type;e.render||(e.render=l.render||Be);{const n=ht(e);Ue();try{bn(e)}finally{je(),n()}}}const or={get(e,t){return Us(e,"get",""),e[t]}};function fr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,or),slots:e.slots,emit:e.emit,expose:t}}function Vt(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Vl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function rs(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function cr(e){return V(e)&&"__vccOpts"in e}const ur=(e,t)=>Nl(e,t,ft);function wr(e,t,s){try{Pt(-1);const l=arguments.length;return l===2?ge(t)&&!K(t)?De(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),oe(e,t,s))}finally{Pt(1)}}const ar="3.5.22";export{Cr as A,ln as B,Pr as C,Ot as D,en as E,he as F,ss as G,Mr as H,Tr as I,er as J,Fr as K,on as L,fn as M,ee as N,yr as O,Oe as P,Lt as Q,ul as R,Or as S,mr as T,kr as U,vr as V,br as a,il as b,Ir as c,oe as d,Ee as e,ur as f,dt as g,wr as h,xt as i,Br as j,Ar as k,fs as l,_r as m,Zl as n,cl as o,tr as p,De as q,Yt as r,Ge as s,xr as t,sn as u,un as v,Ft as w,cs as x,kn as y,Er as z}; diff --git a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz b/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz deleted file mode 100644 index 5f827ebc..00000000 Binary files a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.5.25-CyFcdXRD.js b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js new file mode 100644 index 00000000..8df50bdc --- /dev/null +++ b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js @@ -0,0 +1 @@ +import{c as Nl,w as $l,i as Ls,a as Tt,s as Ll,p as Vs,m as Vl,b as je,r as Ue,t as wt,E as jl,R as Ul,d as Dl,e as js,g as Rl,h as Kl,j as Wl}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{i as j,n as Us,b as K,E as J,e as ae,o as me,p as Ds,a as ge,q as Rs,s as is,u as Ke,r as Ks,v as Ht,N as Ie,w as Ws,x as et,c as Q,y as tt,z as ke,A as ql,B as Ut,C as ct,j as Gl,D as qs,F as Gs,G as Jl,H as Yl,d as Ql}from"./@vue_shared@3.5.25-ClSOc5xY.js";function ut(e,t,s,l){try{return l?e(...l):e()}catch(n){at(n,t,s)}}function Ee(e,t,s,l){if(j(e)){const n=ut(e,t,s,l);return n&&Us(n)&&n.catch(r=>{at(r,t,s)}),n}if(K(e)){const n=[];for(let r=0;r>>1,n=ie[l],r=it(n);r=it(s)?ie.push(e):ie.splice(zl(t),0,e),e.flags|=1,Ys()}}function Ys(){vt||(vt=Js.then(Xs))}function Gt(e){K(e)?We.push(...e):Pe&&e.id===-1?Pe.splice(Re+1,0,e):e.flags&1||(We.push(e),e.flags|=1),Ys()}function Ts(e,t,s=ve+1){for(;sit(s)-it(l));if(We.length=0,Pe){Pe.push(...t);return}for(Pe=t,Re=0;Ree.id==null?e.flags&2?-1:1/0:e.id;function Xs(e){try{for(ve=0;ve{l._d&&Pt(-1);const r=kt(t);let i;try{i=e(...n)}finally{kt(r),l._d&&Pt(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function yr(e,t){if(se===null)return e;const s=Vt(se),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),vs=e=>e&&(e.defer||e.defer===""),ks=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Jt=(e,t)=>{const s=e&&e.to;return me(s)?t?t(s):null:s},tl={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,f,u,g){const{mc:a,pc:d,pbc:_,o:{insert:x,querySelector:A,createText:B,createComment:L}}=g,$=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:O}=t;if(e==null){const E=t.el=B(""),M=t.anchor=B("");x(E,s,l),x(M,s,l);const U=(I,H)=>{v&16&&a(P,I,H,n,r,i,f,u)},V=()=>{const I=t.target=Jt(t.props,A),H=sl(I,t,B,x);I&&(i!=="svg"&&ks(I)?i="svg":i!=="mathml"&&Es(I)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(I),$||(U(I,H),_t(t,!1)))};$&&(U(s,M),_t(t,!0)),vs(t.props)?(t.el.__isMounted=!1,z(()=>{V(),delete t.el.__isMounted},r)):V()}else{if(vs(t.props)&&e.el.__isMounted===!1){z(()=>{tl.process(e,t,s,l,n,r,i,f,u,g)},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,U=t.targetAnchor=e.targetAnchor,V=st(e.props),I=V?s:M,H=V?E:U;if(i==="svg"||ks(M)?i="svg":(i==="mathml"||Es(M))&&(i="mathml"),O?(_(e.dynamicChildren,O,I,n,r,i,f),ys(e,t,!0)):u||d(e,t,I,H,n,r,i,f,!1),$)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Jt(t.props,A);D&&yt(t,D,null,g,0)}else V&&yt(t,M,U,g,1);_t(t,$)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:f,anchor:u,targetStart:g,targetAnchor:a,target:d,props:_}=e;if(d&&(n(g),n(a)),r&&n(u),i&16){const x=r||!st(_);for(let A=0;A{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},ll=e=>{const t=e.subTree;return t.component?ll(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=dt(),l=sn();return()=>{const n=t.default&&il(t.default(),!0);if(!n||!n.length)return;const r=nl(n),i=wt(e),{mode:f}=i;if(l.isLeaving)return Dt(r);const u=As(r);if(!u)return Dt(r);let g=Yt(u,i,l,s,d=>g=d);u.type!==ee&&Ge(u,g);let a=s.subTree&&As(s.subTree);if(a&&a.type!==ee&&!_e(a,u)&&ll(s).type!==ee){let d=Yt(a,i,l,s);if(Ge(a,d),f==="out-in"&&u.type!==ee)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Dt(r);f==="in-out"&&u.type!==ee?d.delayLeave=(_,x,A)=>{const B=rl(l,a);B[String(a.key)]=a,_[Ae]=()=>{x(),_[Ae]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function nl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ee){t=s;break}}return t}const br=nn;function rl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function Yt(e,t,s,l,n){const{appear:r,mode:i,persisted:f=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:_,onLeave:x,onAfterLeave:A,onLeaveCancelled:B,onBeforeAppear:L,onAppear:$,onAfterAppear:v,onAppearCancelled:P}=t,O=String(e.key),E=rl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},U=(I,H)=>{const D=H[1];M(I,H),K(I)?I.every(X=>X.length<=1)&&D():I.length<=1&&D()},V={mode:i,persisted:f,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=L||u;else return;I[Ae]&&I[Ae](!0);const D=E[O];D&&_e(e,D)&&D.el[Ae]&&D.el[Ae](),M(H,[I])},enter(I){let H=g,D=a,X=d;if(!s.isMounted)if(r)H=$||g,D=v||a,X=P||d;else return;let te=!1;const ne=I[mt]=we=>{te||(te=!0,we?M(X,[I]):M(D,[I]),V.delayedLeave&&V.delayedLeave(),I[mt]=void 0)};H?U(H,[I,ne]):ne()},leave(I,H){const D=String(e.key);if(I[mt]&&I[mt](!0),s.isUnmounting)return H();M(_,[I]);let X=!1;const te=I[Ae]=ne=>{X||(X=!0,H(),ne?M(B,[I]):M(A,[I]),I[Ae]=void 0,E[D]===e&&delete E[D])};E[D]=e,x?U(x,[I,te]):te()},clone(I){const H=Yt(I,t,s,l,n);return n&&n(H),H}};return V}function Dt(e){if(St(e))return e=Be(e),e.children=null,e}function As(e){if(!St(e))return el(e.type)&&e.children?nl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&j(s.default))return s.default()}}function Ge(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ge(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 il(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}const Et=new WeakMap;function lt(e,t,s,l,n=!1){if(K(e)){e.forEach((A,B)=>lt(A,t&&(K(t)?t[B]:t),s,l,n));return}if(Le(l)&&!n){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&<(e,t,s,l.component.subTree);return}const r=l.shapeFlag&4?Vt(l.component):l.el,i=n?null:r,{i:f,r:u}=e,g=t&&t.r,a=f.refs===J?f.refs={}:f.refs,d=f.setupState,_=wt(d),x=d===J?Ws:A=>Q(_,A);if(g!=null&&g!==u){if(Is(t),me(g))a[g]=null,x(g)&&(d[g]=null);else if(Tt(g)){g.value=null;const A=t;A.k&&(a[A.k]=null)}}if(j(u))ut(u,f,12,[i,a]);else{const A=me(u),B=Tt(u);if(A||B){const L=()=>{if(e.f){const $=A?x(u)?d[u]:a[u]:u.value;if(n)K($)&&Ks($,r);else if(K($))$.includes(r)||$.push(r);else if(A)a[u]=[r],x(u)&&(d[u]=a[u]);else{const v=[r];u.value=v,e.k&&(a[e.k]=v)}}else A?(a[u]=i,x(u)&&(d[u]=i)):B&&(u.value=i,e.k&&(a[e.k]=i))};if(i){const $=()=>{L(),Et.delete(e)};$.id=-1,Et.set(e,$),z($,s)}else Is(e),L()}}}function Is(e){const t=Et.get(e);t&&(t.flags|=8,Et.delete(e))}Ht().requestIdleCallback;Ht().cancelIdleCallback;const Le=e=>!!e.type.__asyncLoader,St=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=dt(),l=s.ctx;if(!l.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const n=new Map,r=new Set;let i=null;const f=s.suspense,{renderer:{p:u,m:g,um:a,o:{createElement:d}}}=l,_=d("div");l.activate=(v,P,O,E,M)=>{const U=v.component;g(v,P,O,0,f),u(U.vnode,v,P,O,U,f,E,v.slotScopeIds,M),z(()=>{U.isDeactivated=!1,U.a&&et(U.a);const V=v.props&&v.props.onVnodeMounted;V&&ye(V,U.parent,v)},f)},l.deactivate=v=>{const P=v.component;It(P.m),It(P.a),g(v,_,null,1,f),z(()=>{P.da&&et(P.da);const O=v.props&&v.props.onVnodeUnmounted;O&&ye(O,P.parent,v),P.isDeactivated=!0},f)};function x(v){Rt(v),a(v,s,f,!0)}function A(v){n.forEach((P,O)=>{const E=rs(P.type);E&&!v(E)&&B(O)})}function B(v){const P=n.get(v);P&&(!i||!_e(P,i))?x(P):i&&Rt(i),n.delete(v),r.delete(v)}Ft(()=>[e.include,e.exclude],([v,P])=>{v&&A(O=>Ze(v,O)),P&&A(O=>!Ze(P,O))},{flush:"post",deep:!0});let L=null;const $=()=>{L!=null&&(Bt(s.subTree.type)?z(()=>{n.set(L,bt(s.subTree))},s.subTree.suspense):n.set(L,bt(s.subTree)))};return fs($),cl($),cs(()=>{n.forEach(v=>{const{subTree:P,suspense:O}=s,E=bt(P);if(v.type===E.type&&v.key===E.key){Rt(E);const M=E.component.da;M&&z(M,O);return}x(v)})}),()=>{if(L=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let O=bt(P);if(O.type===ee)return i=null,O;const E=O.type,M=rs(Le(O)?O.type.__asyncResolved||{}:E),{include:U,exclude:V,max:I}=e;if(U&&(!M||!Ze(U,M))||V&&M&&Ze(V,M))return O.shapeFlag&=-257,i=O,P;const H=O.key==null?E:O.key,D=n.get(H);return O.el&&(O=Be(O),P.shapeFlag&128&&(P.ssContent=O)),L=H,D?(O.el=D.el,O.component=D.component,O.transition&&Ge(O,O.transition),O.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&B(r.values().next().value)),O.shapeFlag|=256,i=O,Bt(P.type)?P:O}}},Fr=rn;function Ze(e,t){return K(e)?e.some(s=>Ze(s,t)):me(e)?e.split(",").includes(t):Yl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){fl(e,"a",t)}function fn(e,t){fl(e,"da",t)}function fl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Nt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)St(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=Nt(t,e,l,!0);ul(()=>{Ks(l[t],n)},s)}function Rt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bt(e){return e.shapeFlag&128?e.ssContent:e}function Nt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{je();const f=ht(s),u=Ee(t,s,e,i);return f(),Ue(),u});return l?n.unshift(r):n.push(r),r}}const Oe=e=>(t,s=le)=>{(!ft||e==="sp")&&Nt(e,(...l)=>t(...l),s)},un=Oe("bm"),fs=Oe("m"),an=Oe("bu"),cl=Oe("u"),cs=Oe("bum"),ul=Oe("um"),dn=Oe("sp"),hn=Oe("rtg"),gn=Oe("rtc");function pn(e,t=le){Nt("ec",e,t)}const us="components",yn="directives";function Cr(e,t){return as(us,e,!0,t)||e}const al=Symbol.for("v-ndc");function Tr(e){return me(e)?as(us,e,!1)||e:e||al}function vr(e){return as(yn,e)}function as(e,t,s=!0,l=!1){const n=se||le;if(n){const r=n.type;if(e===us){const f=rs(r,!1);if(f&&(f===t||f===ke(t)||f===Gs(ke(t))))return r}const i=Bs(n[e]||r[e],t)||Bs(n.appContext[e],t);return!i&&l?r:i}}function Bs(e,t){return e&&(e[t]||e[ke(t)]||e[Gs(ke(t))])}function kr(e,t,s={},l,n){if(se.ce||se.parent&&Le(se.parent)&&se.parent.ce){const g=Object.keys(s).length>0;return Ot(),ss(he,null,[oe("slot",s,l)],g?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),Ot();const i=r&&dl(r(s)),f=s.key||i&&i.key,u=ss(he,{key:(f&&!Ql(f)?f:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function dl(e){return e.some(t=>De(t)?!(t.type===ee||t.type===he&&!dl(t.children)):!0)?e:null}const Qt=e=>e?Ml(e)?Vt(e):Qt(e.parent):null,nt=ae(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=>Qt(e.parent),$root:e=>Qt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gl(e),$forceUpdate:e=>e.f||(e.f=()=>{os(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>In.bind(e)}),Kt=(e,t)=>e!==J&&!e.__isScriptSetup&&Q(e,t),mn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:f,appContext:u}=e;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(Kt(l,t))return i[t]=1,l[t];if(n!==J&&Q(n,t))return i[t]=2,n[t];if(Q(r,t))return i[t]=3,r[t];if(s!==J&&Q(s,t))return i[t]=4,s[t];Zt&&(i[t]=0)}}const g=nt[t];let a,d;if(g)return t==="$attrs"&&js(e.attrs,"get",""),g(e);if((a=f.__cssModules)&&(a=a[t]))return a;if(s!==J&&Q(s,t))return i[t]=4,s[t];if(d=u.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return Kt(n,t)?(n[t]=s,!0):l!==J&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,props:r,type:i}},f){let u;return!!(s[f]||e!==J&&f[0]!=="$"&&Q(e,f)||Kt(t,f)||Q(r,f)||Q(l,f)||Q(nt,f)||Q(n.config.globalProperties,f)||(u=i.__cssModules)&&u[f])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xt(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Er(e,t){const s=Xt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?K(n)||j(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Zt=!0;function bn(e){const t=gl(e),s=e.proxy,l=e.ctx;Zt=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:f,provide:u,inject:g,created:a,beforeMount:d,mounted:_,beforeUpdate:x,updated:A,activated:B,deactivated:L,beforeDestroy:$,beforeUnmount:v,destroyed:P,unmounted:O,render:E,renderTracked:M,renderTriggered:U,errorCaptured:V,serverPrefetch:I,expose:H,inheritAttrs:D,components:X,directives:te,filters:ne}=t;if(g&&_n(g,l,null),i)for(const W in i){const q=i[W];j(q)&&(l[W]=q.bind(s))}if(n){const W=n.call(s,s);ge(W)&&(e.data=Kl(W))}if(Zt=!0,r)for(const W in r){const q=r[W],He=j(q)?q.bind(s,s):j(q.get)?q.get.bind(s,s):Ie,gt=!j(q)&&j(q.set)?q.set.bind(s):Ie,Se=ur({get:He,set:gt});Object.defineProperty(l,W,{enumerable:!0,configurable:!0,get:()=>Se.value,set:xe=>Se.value=xe})}if(f)for(const W in f)hl(f[W],l,s,W);if(u){const W=j(u)?u.call(s):u;Reflect.ownKeys(W).forEach(q=>{kn(q,W[q])})}a&&Os(a,e,"c");function Z(W,q){K(q)?q.forEach(He=>W(He.bind(s))):q&&W(q.bind(s))}if(Z(un,d),Z(fs,_),Z(an,x),Z(cl,A),Z(on,B),Z(fn,L),Z(pn,V),Z(gn,M),Z(hn,U),Z(cs,v),Z(ul,O),Z(dn,I),K(H))if(H.length){const W=e.exposed||(e.exposed={});H.forEach(q=>{Object.defineProperty(W,q,{get:()=>s[q],set:He=>s[q]=He,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),D!=null&&(e.inheritAttrs=D),X&&(e.components=X),te&&(e.directives=te),I&&ol(e)}function _n(e,t,s=Ie){K(e)&&(e=zt(e));for(const l in e){const n=e[l];let r;ge(n)?"default"in n?r=xt(n.from||l,n.default,!0):r=xt(n.from||l):r=xt(n),Tt(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Os(e,t,s){Ee(K(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function hl(e,t,s,l){let n=l.includes(".")?yl(s,l):()=>s[l];if(me(e)){const r=t[e];j(r)&&Ft(n,r)}else if(j(e))Ft(n,e.bind(s));else if(ge(e))if(K(e))e.forEach(r=>hl(r,t,s,l));else{const r=j(e.handler)?e.handler.bind(s):t[e.handler];j(r)&&Ft(n,r,e)}}function gl(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,f=r.get(t);let u;return f?u=f:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(g=>At(u,g,i,!0)),At(u,t,i)),ge(t)&&r.set(t,u),u}function At(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&At(e,r,s,!0),n&&n.forEach(i=>At(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const f=xn[i]||s&&s[i];e[i]=f?f(e[i],t[i]):t[i]}return e}const xn={data:Ps,props:Ms,emits:Ms,methods:ze,computed:ze,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:ze,directives:ze,watch:Cn,provide:Ps,inject:Fn};function Ps(e,t){return t?e?function(){return ae(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Fn(e,t){return ze(zt(e),zt(t))}function zt(e){if(K(e)){const t={};for(let s=0;s1)return s&&j(t)?t.call(l&&l.proxy):t}}function Ar(){return!!(dt()||Ve)}const En=Symbol.for("v-scx"),An=()=>xt(En);function Ir(e,t){return ds(e,null,t)}function Ft(e,t,s){return ds(e,t,s)}function ds(e,t,s=J){const{immediate:l,deep:n,flush:r,once:i}=s,f=ae({},s),u=t&&l||!t&&r!=="post";let g;if(ft){if(r==="sync"){const x=An();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=le;f.call=(x,A,B)=>Ee(x,a,A,B);let d=!1;r==="post"?f.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,f.scheduler=(x,A)=>{A?x():os(x)}),f.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const _=$l(e,t,f);return ft&&(g?g.push(_):u&&_()),_}function In(e,t,s){const l=this.proxy,n=me(e)?e.includes(".")?yl(l,e):()=>l[e]:e.bind(l,l);let r;j(t)?r=t:(r=t.handler,s=t);const i=ht(this),f=ds(n,r.bind(l),s);return i(),f}function yl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function On(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||J;let n=s;const r=t.startsWith("update:"),i=r&&Bn(l,t.slice(7));i&&(i.trim&&(n=s.map(a=>me(a)?a.trim():a)),i.number&&(n=s.map(ql)));let f,u=l[f=Ut(t)]||l[f=Ut(ke(t))];!u&&r&&(u=l[f=Ut(ct(t))]),u&&Ee(u,e,6,n);const g=l[f+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ee(g,e,6,n)}}const Pn=new WeakMap;function ml(e,t,s=!1){const l=s?Pn:t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},f=!1;if(!j(e)){const u=g=>{const a=ml(g,t,!0);a&&(f=!0,ae(i,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!f?(ge(e)&&l.set(e,null),null):(K(r)?r.forEach(u=>i[u]=null):ae(i,r),ge(e)&&l.set(e,i),i)}function $t(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ct(t))||Q(e,t))}function ws(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:f,emit:u,render:g,renderCache:a,props:d,data:_,setupState:x,ctx:A,inheritAttrs:B}=e,L=kt(e);let $,v;try{if(s.shapeFlag&4){const O=n||l,E=O;$=be(g.call(E,O,a,d,x,_,A)),v=f}else{const O=t;$=be(O.length>1?O(d,{attrs:f,slots:i,emit:u}):O(d,null)),v=t.props?f:wn(f)}}catch(O){rt.length=0,at(O,e,1),$=oe(ee)}let P=$;if(v&&B!==!1){const O=Object.keys(v),{shapeFlag:E}=P;O.length&&E&7&&(r&&O.some(qs)&&(v=Hn(v,r)),P=Be(P,v,!1,!0))}return s.dirs&&(P=Be(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Ge(P,s.transition),$=P,kt(L),$}function Mn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},Hn=(e,t)=>{const s={};for(const l in e)(!qs(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Sn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:f,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Hs(l,i,g):!!i;if(u&8){const a=t.dynamicProps;for(let d=0;dObject.create(bl),xl=e=>Object.getPrototypeOf(e)===bl;function Nn(e,t,s,l=!1){const n={},r=_l();e.propsDefaults=Object.create(null),Fl(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Dl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function $n(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,f=wt(n),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[_,x]=Cl(d,t,!0);ae(i,_),x&&f.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return ge(e)&&l.set(e,Ke),Ke;if(K(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",ps=e=>K(e)?e.map(be):[be(e)],Vn=(e,t,s)=>{if(t._n)return t;const l=en((...n)=>ps(t(...n)),s);return l._c=!1,l},Tl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(gs(n))continue;const r=e[n];if(j(r))t[n]=Vn(n,r,l);else if(r!=null){const i=ps(r);t[n]=()=>i}}},vl=(e,t)=>{const s=ps(t);e.slots.default=()=>s},kl=(e,t,s)=>{for(const l in t)(s||!gs(l))&&(e[l]=t[l])},jn=(e,t,s)=>{const l=e.slots=_l();if(e.vnode.shapeFlag&32){const n=t._;n?(kl(l,t,s),s&&Gl(l,"_",n,!0)):Tl(t,l)}else t&&vl(e,t)},Un=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=J;if(l.shapeFlag&32){const f=t._;f?s&&f===1?r=!1:kl(n,t,s):(r=!t.$stable,Tl(t,n)),i=t}else t&&(vl(e,t),i={default:1});if(r)for(const f in n)!gs(f)&&i[f]==null&&delete n[f]},z=Qn;function Br(e){return Dn(e)}function Dn(e,t){const s=Ht();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:f,createComment:u,setText:g,setElementText:a,parentNode:d,nextSibling:_,setScopeId:x=Ie,insertStaticContent:A}=e,B=(o,c,h,b=null,p=null,y=null,T=void 0,C=null,F=!!c.dynamicChildren)=>{if(o===c)return;o&&!_e(o,c)&&(b=pt(o),xe(o,p,y,!0),o=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:m,ref:S,shapeFlag:k}=c;switch(m){case Lt:L(o,c,h,b);break;case ee:$(o,c,h,b);break;case qt:o==null&&v(c,h,b,T);break;case he:X(o,c,h,b,p,y,T,C,F);break;default:k&1?E(o,c,h,b,p,y,T,C,F):k&6?te(o,c,h,b,p,y,T,C,F):(k&64||k&128)&&m.process(o,c,h,b,p,y,T,C,F,Qe)}S!=null&&p?lt(S,o&&o.ref,y,c||o,!c):S==null&&o&&o.ref!=null&<(o.ref,null,y,o,!0)},L=(o,c,h,b)=>{if(o==null)l(c.el=f(c.children),h,b);else{const p=c.el=o.el;c.children!==o.children&&g(p,c.children)}},$=(o,c,h,b)=>{o==null?l(c.el=u(c.children||""),h,b):c.el=o.el},v=(o,c,h,b)=>{[o.el,o.anchor]=A(o.children,c,h,b,o.el,o.anchor)},P=({el:o,anchor:c},h,b)=>{let p;for(;o&&o!==c;)p=_(o),l(o,h,b),o=p;l(c,h,b)},O=({el:o,anchor:c})=>{let h;for(;o&&o!==c;)h=_(o),n(o),o=h;n(c)},E=(o,c,h,b,p,y,T,C,F)=>{if(c.type==="svg"?T="svg":c.type==="math"&&(T="mathml"),o==null)M(c,h,b,p,y,T,C,F);else{const m=o.el&&o.el._isVueCE?o.el:null;try{m&&m._beginPatch(),I(o,c,p,y,T,C,F)}finally{m&&m._endPatch()}}},M=(o,c,h,b,p,y,T,C)=>{let F,m;const{props:S,shapeFlag:k,transition:w,dirs:N}=o;if(F=o.el=i(o.type,y,S&&S.is,S),k&8?a(F,o.children):k&16&&V(o.children,F,null,b,p,Wt(o,y),T,C),N&&Ne(o,null,b,"created"),U(F,o,o.scopeId,T,b),S){for(const Y in S)Y!=="value"&&!tt(Y)&&r(F,Y,null,S[Y],y,b);"value"in S&&r(F,"value",null,S.value,y),(m=S.onVnodeBeforeMount)&&ye(m,b,o)}N&&Ne(o,null,b,"beforeMount");const R=Rn(p,w);R&&w.beforeEnter(F),l(F,c,h),((m=S&&S.onVnodeMounted)||R||N)&&z(()=>{m&&ye(m,b,o),R&&w.enter(F),N&&Ne(o,null,b,"mounted")},p)},U=(o,c,h,b,p)=>{if(h&&x(o,h),b)for(let y=0;y{for(let m=F;m{const C=c.el=o.el;let{patchFlag:F,dynamicChildren:m,dirs:S}=c;F|=o.patchFlag&16;const k=o.props||J,w=c.props||J;let N;if(h&&$e(h,!1),(N=w.onVnodeBeforeUpdate)&&ye(N,h,c,o),S&&Ne(c,o,h,"beforeUpdate"),h&&$e(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(C,""),m?H(o.dynamicChildren,m,C,h,b,Wt(c,p),y):T||q(o,c,C,null,h,b,Wt(c,p),y,!1),F>0){if(F&16)D(C,k,w,h,p);else if(F&2&&k.class!==w.class&&r(C,"class",null,w.class,p),F&4&&r(C,"style",k.style,w.style,p),F&8){const R=c.dynamicProps;for(let Y=0;Y{N&&ye(N,h,c,o),S&&Ne(c,o,h,"updated")},b)},H=(o,c,h,b,p,y,T)=>{for(let C=0;C{if(c!==h){if(c!==J)for(const y in c)!tt(y)&&!(y in h)&&r(o,y,c[y],null,p,b);for(const y in h){if(tt(y))continue;const T=h[y],C=c[y];T!==C&&y!=="value"&&r(o,y,C,T,p,b)}"value"in h&&r(o,"value",c.value,h.value,p)}},X=(o,c,h,b,p,y,T,C,F)=>{const m=c.el=o?o.el:f(""),S=c.anchor=o?o.anchor:f("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:N}=c;N&&(C=C?C.concat(N):N),o==null?(l(m,h,b),l(S,h,b),V(c.children||[],h,S,p,y,T,C,F)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,y,T,C),(c.key!=null||p&&c===p.subTree)&&ys(o,c,!0)):q(o,c,h,S,p,y,T,C,F)},te=(o,c,h,b,p,y,T,C,F)=>{c.slotScopeIds=C,o==null?c.shapeFlag&512?p.ctx.activate(c,h,b,T,F):ne(c,h,b,p,y,T,F):we(o,c,F)},ne=(o,c,h,b,p,y,T)=>{const C=o.component=nr(o,b,p);if(St(o)&&(C.ctx.renderer=Qe),rr(C,!1,T),C.asyncDep){if(p&&p.registerDep(C,Z,T),!o.el){const F=C.subTree=oe(ee);$(null,F,c,h),o.placeholder=F.el}}else Z(C,o,c,h,p,y,T)},we=(o,c,h)=>{const b=c.component=o.component;if(Sn(o,c,h))if(b.asyncDep&&!b.asyncResolved){W(b,c,h);return}else b.next=c,b.update();else c.el=o.el,b.vnode=c},Z=(o,c,h,b,p,y,T)=>{const C=()=>{if(o.isMounted){let{next:k,bu:w,u:N,parent:R,vnode:Y}=o;{const Ce=El(o);if(Ce){k&&(k.el=Y.el,W(o,k,T)),Ce.asyncDep.then(()=>{o.isUnmounted||C()});return}}let G=k,fe;$e(o,!1),k?(k.el=Y.el,W(o,k,T)):k=Y,w&&et(w),(fe=k.props&&k.props.onVnodeBeforeUpdate)&&ye(fe,R,k,Y),$e(o,!0);const ce=ws(o),Fe=o.subTree;o.subTree=ce,B(Fe,ce,d(Fe.el),pt(Fe),o,p,y),k.el=ce.el,G===null&&hs(o,ce.el),N&&z(N,p),(fe=k.props&&k.props.onVnodeUpdated)&&z(()=>ye(fe,R,k,Y),p)}else{let k;const{el:w,props:N}=c,{bm:R,m:Y,parent:G,root:fe,type:ce}=o,Fe=Le(c);$e(o,!1),R&&et(R),!Fe&&(k=N&&N.onVnodeBeforeMount)&&ye(k,G,c),$e(o,!0);{fe.ce&&fe.ce._def.shadowRoot!==!1&&fe.ce._injectChildStyle(ce);const Ce=o.subTree=ws(o);B(null,Ce,h,b,o,p,y),c.el=Ce.el}if(Y&&z(Y,p),!Fe&&(k=N&&N.onVnodeMounted)){const Ce=c;z(()=>ye(k,G,Ce),p)}(c.shapeFlag&256||G&&Le(G.vnode)&&G.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,c=h=b=null}};o.scope.on();const F=o.effect=new Ul(C);o.scope.off();const m=o.update=F.run.bind(F),S=o.job=F.runIfDirty.bind(F);S.i=o,S.id=o.uid,F.scheduler=()=>os(S),$e(o,!0),m()},W=(o,c,h)=>{c.component=o;const b=o.vnode.props;o.vnode=c,o.next=null,$n(o,c.props,b,h),Un(o,c.children,h),je(),Ts(o),Ue()},q=(o,c,h,b,p,y,T,C,F=!1)=>{const m=o&&o.children,S=o?o.shapeFlag:0,k=c.children,{patchFlag:w,shapeFlag:N}=c;if(w>0){if(w&128){gt(m,k,h,b,p,y,T,C,F);return}else if(w&256){He(m,k,h,b,p,y,T,C,F);return}}N&8?(S&16&&Ye(m,p,y),k!==m&&a(h,k)):S&16?N&16?gt(m,k,h,b,p,y,T,C,F):Ye(m,p,y,!0):(S&8&&a(h,""),N&16&&V(k,h,b,p,y,T,C,F))},He=(o,c,h,b,p,y,T,C,F)=>{o=o||Ke,c=c||Ke;const m=o.length,S=c.length,k=Math.min(m,S);let w;for(w=0;wS?Ye(o,p,y,!0,!1,k):V(c,h,b,p,y,T,C,F,k)},gt=(o,c,h,b,p,y,T,C,F)=>{let m=0;const S=c.length;let k=o.length-1,w=S-1;for(;m<=k&&m<=w;){const N=o[m],R=c[m]=F?Me(c[m]):be(c[m]);if(_e(N,R))B(N,R,h,null,p,y,T,C,F);else break;m++}for(;m<=k&&m<=w;){const N=o[k],R=c[w]=F?Me(c[w]):be(c[w]);if(_e(N,R))B(N,R,h,null,p,y,T,C,F);else break;k--,w--}if(m>k){if(m<=w){const N=w+1,R=Nw)for(;m<=k;)xe(o[m],p,y,!0),m++;else{const N=m,R=m,Y=new Map;for(m=R;m<=w;m++){const de=c[m]=F?Me(c[m]):be(c[m]);de.key!=null&&Y.set(de.key,m)}let G,fe=0;const ce=w-R+1;let Fe=!1,Ce=0;const Xe=new Array(ce);for(m=0;m=ce){xe(de,p,y,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(G=R;G<=w;G++)if(Xe[G-R]===0&&_e(de,c[G])){Te=G;break}Te===void 0?xe(de,p,y,!0):(Xe[Te-R]=m+1,Te>=Ce?Ce=Te:Fe=!0,B(de,c[Te],h,null,p,y,T,C,F),fe++)}const xs=Fe?Kn(Xe):Ke;for(G=xs.length-1,m=ce-1;m>=0;m--){const de=R+m,Te=c[de],Fs=c[de+1],Cs=de+1{const{el:y,type:T,transition:C,children:F,shapeFlag:m}=o;if(m&6){Se(o.component.subTree,c,h,b);return}if(m&128){o.suspense.move(c,h,b);return}if(m&64){T.move(o,c,h,Qe);return}if(T===he){l(y,c,h);for(let k=0;kC.enter(y),p);else{const{leave:k,delayLeave:w,afterLeave:N}=C,R=()=>{o.ctx.isUnmounted?n(y):l(y,c,h)},Y=()=>{y._isLeaving&&y[Ae](!0),k(y,()=>{R(),N&&N()})};w?w(y,R,Y):Y()}else l(y,c,h)},xe=(o,c,h,b=!1,p=!1)=>{const{type:y,props:T,ref:C,children:F,dynamicChildren:m,shapeFlag:S,patchFlag:k,dirs:w,cacheIndex:N}=o;if(k===-2&&(p=!1),C!=null&&(je(),lt(C,null,h,o,!0),Ue()),N!=null&&(c.renderCache[N]=void 0),S&256){c.ctx.deactivate(o);return}const R=S&1&&w,Y=!Le(o);let G;if(Y&&(G=T&&T.onVnodeBeforeUnmount)&&ye(G,c,o),S&6)Sl(o.component,h,b);else{if(S&128){o.suspense.unmount(h,b);return}R&&Ne(o,null,c,"beforeUnmount"),S&64?o.type.remove(o,c,h,Qe,b):m&&!m.hasOnce&&(y!==he||k>0&&k&64)?Ye(m,c,h,!1,!0):(y===he&&k&384||!p&&S&16)&&Ye(F,c,h),b&&bs(o)}(Y&&(G=T&&T.onVnodeUnmounted)||R)&&z(()=>{G&&ye(G,c,o),R&&Ne(o,null,c,"unmounted")},h)},bs=o=>{const{type:c,el:h,anchor:b,transition:p}=o;if(c===he){Hl(h,b);return}if(c===qt){O(o);return}const y=()=>{n(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:C}=p,F=()=>T(h,y);C?C(o.el,y,F):F()}else y()},Hl=(o,c)=>{let h;for(;o!==c;)h=_(o),n(o),o=h;n(c)},Sl=(o,c,h)=>{const{bum:b,scope:p,job:y,subTree:T,um:C,m:F,a:m}=o;It(F),It(m),b&&et(b),p.stop(),y&&(y.flags|=8,xe(T,o,c,h)),C&&z(C,c),z(()=>{o.isUnmounted=!0},c)},Ye=(o,c,h,b=!1,p=!1,y=0)=>{for(let T=y;T{if(o.shapeFlag&6)return pt(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const c=_(o.anchor||o.el),h=c&&c[zs];return h?_(h):c};let jt=!1;const _s=(o,c,h)=>{o==null?c._vnode&&xe(c._vnode,null,null,!0):B(c._vnode||null,o,c,null,null,null,h),c._vnode=o,jt||(jt=!0,Ts(),Qs(),jt=!1)},Qe={p:B,um:xe,m:Se,r:bs,mt:ne,mc:V,pc:q,pbc:H,n:pt,o:e};return{render:_s,hydrate:void 0,createApp:vn(_s)}}function Wt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function $e({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ys(e,t,s=!1){const l=e.children,n=t.children;if(K(l)&&K(n))for(let r=0;r>1,e[s[f]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function El(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:El(t)}function It(e){if(e)for(let t=0;te.__isSuspense;let ts=0;const Wn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,f,u,g){if(e==null)qn(t,s,l,n,r,i,f,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gn(e,t,s,l,n,i,f,u,g)}},hydrate:Jn,normalize:Yn},Or=Wn;function ot(e,t){const s=e.props&&e.props[t];j(s)&&s()}function qn(e,t,s,l,n,r,i,f,u){const{p:g,o:{createElement:a}}=u,d=a("div"),_=e.suspense=Al(e,n,l,t,d,s,r,i,f,u);g(null,_.pendingBranch=e.ssContent,d,null,l,_,r,i),_.deps>0?(ot(e,"onPending"),ot(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,r,i),qe(_,e.ssFallback)):_.resolve(!1,!0)}function Gn(e,t,s,l,n,r,i,f,{p:u,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const _=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:B,isInFallback:L,isHydrating:$}=d;if(B)d.pendingBranch=_,_e(B,_)?(u(B,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():L&&($||(u(A,x,s,l,n,null,r,i,f),qe(d,x)))):(d.pendingId=ts++,$?(d.isHydrating=!1,d.activeBranch=B):g(B,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),L?(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():(u(A,x,s,l,n,null,r,i,f),qe(d,x))):A&&_e(A,_)?(u(A,_,s,l,n,d,r,i,f),d.resolve(!0)):(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0&&d.resolve()));else if(A&&_e(A,_))u(A,_,s,l,n,d,r,i,f),qe(d,_);else if(ot(t,"onPending"),d.pendingBranch=_,_.shapeFlag&512?d.pendingId=_.component.suspenseId:d.pendingId=ts++,u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function Al(e,t,s,l,n,r,i,f,u,g,a=!1){const{p:d,m:_,um:x,n:A,o:{parentNode:B,remove:L}}=g;let $;const v=Xn(e);v&&t&&t.pendingBranch&&($=t.pendingId,t.deps++);const P=e.props?Jl(e.props.timeout):void 0,O=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:ts++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,U=!1){const{vnode:V,activeBranch:I,pendingBranch:H,pendingId:D,effects:X,parentComponent:te,container:ne,isInFallback:we}=E;let Z=!1;E.isHydrating?E.isHydrating=!1:M||(Z=I&&H.transition&&H.transition.mode==="out-in",Z&&(I.transition.afterLeave=()=>{D===E.pendingId&&(_(H,ne,r===O?A(I):r,0),Gt(X),we&&V.ssFallback&&(V.ssFallback.el=null))}),I&&(B(I.el)===ne&&(r=A(I)),x(I,te,E,!0),!Z&&we&&V.ssFallback&&z(()=>V.ssFallback.el=null,E)),Z||_(H,ne,r,0)),qe(E,H),E.pendingBranch=null,E.isInFallback=!1;let W=E.parent,q=!1;for(;W;){if(W.pendingBranch){W.effects.push(...X),q=!0;break}W=W.parent}!q&&!Z&&Gt(X),E.effects=[],v&&t&&t.pendingBranch&&$===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),ot(V,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:U,activeBranch:V,parentComponent:I,container:H,namespace:D}=E;ot(U,"onFallback");const X=A(V),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,D,f,u),qe(E,M))},ne=M.transition&&M.transition.mode==="out-in";ne&&(V.transition.afterLeave=te),E.isInFallback=!0,x(V,I,null,!0),ne||te()},move(M,U,V){E.activeBranch&&_(E.activeBranch,M,U,V),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,U,V){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(D=>{at(D,M,0)}).then(D=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ns(M,D),H&&(X.el=H);const te=!H&&M.subTree.el;U(M,X,B(H||M.subTree.el),H?null:A(M.subTree),E,i,V),te&&(X.placeholder=null,L(te)),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,U){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,U),E.pendingBranch&&x(E.pendingBranch,s,M,U)}};return E}function Jn(e,t,s,l,n,r,i,f,u){const g=t.suspense=Al(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,f,!0),a=u(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function Yn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ns(l?s.default:s),e.ssFallback=l?Ns(s.fallback):oe(ee)}function Ns(e){let t;if(j(e)){const s=Je&&e._c;s&&(e._d=!1,Ot()),e=e(),s&&(e._d=!0,t=ue,Il())}return K(e)&&(e=Mn(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Qn(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Gt(e)}function qe(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,hs(l,n))}function Xn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Lt=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),qt=Symbol.for("v-stc"),rt=[];let ue=null;function Ot(e=!1){rt.push(ue=e?null:[])}function Il(){rt.pop(),ue=rt[rt.length-1]||null}let Je=1;function Pt(e,t=!1){Je+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Bl(e){return e.dynamicChildren=Je>0?ue||Ke:null,Il(),Je>0&&ue&&ue.push(e),e}function Pr(e,t,s,l,n,r){return Bl(Pl(e,t,s,l,n,r,!0))}function ss(e,t,s,l,n){return Bl(oe(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const Ol=({key:e})=>e??null,Ct=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Tt(e)||j(e)?{i:se,r:e,k:t,f:!!s}:e:null);function Pl(e,t=null,s=null,l=0,n=null,r=e===he?0:1,i=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ol(t),ref:t&&Ct(t),scopeId:Zs,slotScopeIds:null,children:s,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:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:se};return f?(ms(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=me(s)?8:16),Je>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const oe=Zn;function Zn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===al)&&(e=ee),De(e)){const f=Be(e,t,!0);return s&&ms(f,s),Je>0&&!r&&ue&&(f.shapeFlag&6?ue[ue.indexOf(e)]=f:ue.push(f)),f.patchFlag=-2,f}if(cr(e)&&(e=e.__vccOpts),t){t=zn(t);let{class:f,style:u}=t;f&&!me(f)&&(t.class=Ds(f)),ge(u)&&(Ls(u)&&!K(u)&&(u=ae({},u)),t.style=Rs(u))}const i=me(e)?1:Bt(e)?128:el(e)?64:ge(e)?4:j(e)?2:0;return Pl(e,t,s,l,n,i,r,!0)}function zn(e){return e?Ls(e)||xl(e)?ae({},e):e:null}function Be(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:f,transition:u}=e,g=t?tr(n||{},t):n,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ol(g),ref:t&&t.ref?s&&r?K(r)?r.concat(Ct(t)):[r,Ct(t)]:Ct(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Be(e.ssContent),ssFallback:e.ssFallback&&Be(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&Ge(a,u.clone(a)),a}function er(e=" ",t=0){return oe(Lt,null,e,t)}function Mr(e="",t=!1){return t?(Ot(),ss(ee,null,e)):oe(ee,null,e)}function be(e){return e==null||typeof e=="boolean"?oe(ee):K(e)?oe(he,null,e.slice()):De(e)?Me(e):oe(Lt,null,String(e))}function Me(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Be(e)}function ms(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ms(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!xl(t)?t._ctx=se:n===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else j(t)?(t={default:t,_ctx:se},s=32):(t=String(t),l&64?(s=16,t=[er(t)]):s=8);e.children=t,e.shapeFlag|=s}function tr(...e){const t={};for(let s=0;sle||se;let Mt,ls;{const e=Ht(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Mt=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ls=t("__VUE_SSR_SETTERS__",s=>ft=s)}const ht=e=>{const t=le;return Mt(e),e.scope.on(),()=>{e.scope.off(),Mt(t)}},$s=()=>{le&&le.scope.off(),Mt(null)};function Ml(e){return e.vnode.shapeFlag&4}let ft=!1;function rr(e,t=!1,s=!1){t&&ls(t);const{props:l,children:n}=e.vnode,r=Ml(e);Nn(e,l,r,t),jn(e,n,s||t);const i=r?ir(e,t):void 0;return t&&ls(!1),i}function ir(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mn);const{setup:l}=s;if(l){je();const n=e.setupContext=l.length>1?fr(e):null,r=ht(e),i=ut(l,e,0,[e.props,n]),f=Us(i);if(Ue(),r(),(f||e.sp)&&!Le(e)&&ol(e),f){if(i.then($s,$s),t)return i.then(u=>{ns(e,u)}).catch(u=>{at(u,e,0)});e.asyncDep=i}else ns(e,i)}else wl(e)}function ns(e,t,s){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Vs(t)),wl(e)}function wl(e,t,s){const l=e.type;e.render||(e.render=l.render||Ie);{const n=ht(e);je();try{bn(e)}finally{Ue(),n()}}}const or={get(e,t){return js(e,"get",""),e[t]}};function fr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,or),slots:e.slots,emit:e.emit,expose:t}}function Vt(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Vl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function rs(e,t=!0){return j(e)?e.displayName||e.name:e.name||t&&e.__name}function cr(e){return j(e)&&"__vccOpts"in e}const ur=(e,t)=>Nl(e,t,ft);function wr(e,t,s){try{Pt(-1);const l=arguments.length;return l===2?ge(t)&&!K(t)?De(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),oe(e,t,s))}finally{Pt(1)}}const ar="3.5.25";export{Cr as A,ln as B,Pr as C,Ot as D,en as E,he as F,ss as G,Mr as H,Tr as I,er as J,Fr as K,on as L,fn as M,ee as N,yr as O,Be as P,Lt as Q,ul as R,Or as S,mr as T,kr as U,vr as V,br as a,il as b,Br as c,oe as d,Ee as e,ur as f,dt as g,wr as h,xt as i,Ir as j,Ar as k,fs as l,_r as m,Zl as n,cl as o,tr as p,xr as q,Yt as r,Ge as s,De as t,sn as u,un as v,Ft as w,cs as x,kn as y,Er as z}; diff --git a/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz new file mode 100644 index 00000000..2bbe8911 Binary files /dev/null and b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz differ diff --git a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js b/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js deleted file mode 100644 index 58d1d125..00000000 --- a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js +++ /dev/null @@ -1,5 +0,0 @@ -import{B as Pt,c as Dt,h as It,a as yt,u as $t,o as Ot,g as Rt,F as Ht,b as Bt,s as j,r as V,d as Ft,e as xt}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as I,a as ut,o as N,i as Gt,G as zt,b as y,s as Wt,D as qt,I as Kt,z as dt,J as pt,f as Ut,C as mt,F as jt}from"./@vue_shared@3.5.22-Dikn8ojA.js";import{t as Vt}from"./@vue_reactivity@3.5.22-BvBzZonp.js";/** -* @vue/runtime-dom v3.5.22 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let B;const X=typeof window<"u"&&window.trustedTypes;if(X)try{B=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=B?t=>B.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={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},vt=I({},Pt,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>It(yt,Ct(t),e)),T=(t,e=[])=>{y(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?y(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:x,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=x,onAppear:Mt=G,onAppearCancelled:_t=z}=e,$=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?f:c),C(a,m?l:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>$(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?f:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(x,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),F(a)):(F(a),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){$(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){$(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const l=r+"end";let f=0;const p=()=>{t.removeEventListener(l,d),i()},d=b=>{b.target===t&&++f>=u&&p()};setTimeout(()=>{f(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=k(c,u);let f=null,p=0,d=0;e===v?r>0&&(f=v,p=r,d=i.length):e===w?l>0&&(f=w,p=l,d=u.length):(p=Math.max(r,l),f=p>0?r>l?v:w:null,d=f?f===v?i.length:u.length:0);const b=f===v&&/\b(?:transform|all)(?:,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.lengthtt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function F(t){return(t?t.ownerDocument:document).body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={name:"show",beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(?:^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if(y(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(mt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=jt(s);for(let o=0;oH||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xt(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Rt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);F(n.vnode.el),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const p=l[D]=d=>{d&&d.target!==l||(!d||d.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",p),l[D]=null,C(l,r))};l.addEventListener("transitionend",p)}),o=[]}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Ht;if(o=[],i)for(let l=0;l{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=Dt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v}; diff --git a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz b/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz deleted file mode 100644 index e462eca3..00000000 Binary files a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz and /dev/null differ diff --git a/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js new file mode 100644 index 00000000..c7b3fd21 --- /dev/null +++ b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js @@ -0,0 +1 @@ +import{B as Pt,c as Dt,h as It,a as $t,u as yt,o as Ot,g as Rt,F as Ht,b as Ft,s as j,r as V,d as xt,e as Bt}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as I,i as ut,o as N,a as Gt,G as zt,b as $,s as Wt,D as qt,I as Kt,z as dt,J as pt,d as Ut,C as mt,F as jt}from"./@vue_shared@3.5.25-ClSOc5xY.js";import{t as Vt}from"./@vue_reactivity@3.5.25-CWykDyL9.js";let F;const X=typeof window<"u"&&window.trustedTypes;if(X)try{F=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=F?t=>F.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={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},vt=I({},Pt,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>It($t,Ct(t),e)),T=(t,e=[])=>{$(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?$(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:f=r,appearToClass:l=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:B,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=B,onAppear:Mt=G,onAppearCancelled:_t=z}=e,y=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?l:c),C(a,m?f:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>y(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?l:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(B,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,f)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),x(a)):(x(a),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){y(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){y(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const f=r+"end";let l=0;const p=()=>{t.removeEventListener(f,d),i()},d=b=>{b.target===t&&++l>=u&&p()};setTimeout(()=>{l(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),f=k(c,u);let l=null,p=0,d=0;e===v?r>0&&(l=v,p=r,d=i.length):e===w?f>0&&(l=w,p=f,d=u.length):(p=Math.max(r,f),l=p>0?r>f?v:w:null,d=l?l===v?i.length:u.length:0);const b=l===v&&/\b(?:transform|all)(?:,|$)/.test(s(`${v}Property`).toString());return{type:l,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.lengthtt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function x(t){return(t?t.ownerDocument:document).body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={name:"show",beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(?:^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if($(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(mt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=jt(s);for(let o=0;oH||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Bt(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if($(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Rt(),s=yt();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);x(n.vnode.el),c.forEach(u=>{const f=u.el,l=f.style;h(f,r),l.transform=l.webkitTransform=l.transitionDuration="";const p=f[D]=d=>{d&&d.target!==f||(!d||d.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[D]=null,C(f,r))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Ht;if(o=[],i)for(let f=0;f{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=Dt(be))}const Ie=((...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e});function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v}; diff --git a/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz new file mode 100644 index 00000000..d445a017 Binary files /dev/null and b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz differ diff --git a/js/@vue_shared@3.5.22-Dikn8ojA.js b/js/@vue_shared@3.5.22-Dikn8ojA.js deleted file mode 100644 index b683ec8c..00000000 --- a/js/@vue_shared@3.5.22-Dikn8ojA.js +++ /dev/null @@ -1,5 +0,0 @@ -/** -* @vue/shared v3.5.22 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>c(t)==="[object Map]",F=t=>c(t)==="[object Set]",_=t=>c(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,c=t=>h.call(t),G=t=>c(t).slice(8,-1),H=t=>c(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-\w/g,L=r(t=>t.replace(b,e=>e.slice(1).toUpperCase())),g=/\B([A-Z])/g,Y=r(t=>t.replace(g,"-$1").toLowerCase()),y=r(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=r(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nn in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>c(t)==="[object Map]",F=t=>c(t)==="[object Set]",_=t=>c(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,c=t=>h.call(t),G=t=>c(t).slice(8,-1),H=t=>c(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},b=/-\w/g,L=r(t=>t.replace(b,e=>e.slice(1).toUpperCase())),g=/\B([A-Z])/g,Y=r(t=>t.replace(g,"-$1").toLowerCase()),y=r(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=r(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;n{n.forEach(o=>o()),n.length=0},c=(o,s,a,l)=>(o.addEventListener(s,a,l),()=>o.removeEventListener(s,a,l)),p=C(()=>{const o=j(k(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0}),f=X(()=>{var o,s;return[(s=(o=p.value)==null?void 0:o.map(a=>M(a)))!=null?s:[I].filter(a=>a!=null),j(k(p.value?e[1]:e[0])),j(se(p.value?e[2]:e[1])),k(p.value?e[3]:e[2])]},([o,s,a,l])=>{if(i(),!(o!=null&&o.length)||!(s!=null&&s.length)||!(a!=null&&a.length))return;const u=Z(l)?{...l}:l;n.push(...o.flatMap(m=>s.flatMap(v=>a.map(w=>c(m,v,w,u)))))},{flush:"post"}),h=()=>{f(),i()};return H(i),h}let $=!1;function ke(e,n,i={}){const{window:c=I,ignore:p=[],capture:f=!0,detectIframe:h=!1,controls:o=!1}=i;if(!c)return o?{stop:W,cancel:W,trigger:W}:W;if(te&&!$){$=!0;const t={passive:!0};Array.from(c.document.body.children).forEach(r=>T(r,"click",W,t)),T(c.document.documentElement,"click",W,t)}let s=!0;const a=t=>k(p).some(r=>{if(typeof r=="string")return Array.from(c.document.querySelectorAll(r)).some(g=>g===t.target||t.composedPath().includes(g));{const g=M(r);return g&&(t.target===g||t.composedPath().includes(g))}});function l(t){const r=k(t);return r&&r.$.subTree.shapeFlag===16}function u(t,r){const g=k(t),A=g.$.subTree&&g.$.subTree.children;return A==null||!Array.isArray(A)?!1:A.some(O=>O.el===r.target||r.composedPath().includes(O.el))}const m=t=>{const r=M(e);if(t.target!=null&&!(!(r instanceof Element)&&l(e)&&u(e,t))&&!(!r||r===t.target||t.composedPath().includes(r))){if("detail"in t&&t.detail===0&&(s=!a(t)),!s){s=!0;return}n(t)}};let v=!1;const w=[T(c,"click",t=>{v||(v=!0,setTimeout(()=>{v=!1},0),m(t))},{passive:!0,capture:f}),T(c,"pointerdown",t=>{const r=M(e);s=!a(t)&&!!(r&&!t.composedPath().includes(r))},{passive:!0}),h&&T(c,"blur",t=>{setTimeout(()=>{var r;const g=M(e);((r=c.document.activeElement)==null?void 0:r.tagName)==="IFRAME"&&!(g!=null&&g.contains(c.document.activeElement))&&n(t)},0)},{passive:!0})].filter(Boolean),b=()=>w.forEach(t=>t());return o?{stop:b,cancel:()=>{s=!1},trigger:t=>{s=!0,m(t),s=!1}}:b}function ce(){const e=E(!1),n=le();return n&&ue(()=>{e.value=!0},n),e}function B(e){const n=ce();return C(()=>(n.value,!!e()))}function de(e,n,i={}){const{window:c=I,...p}=i;let f;const h=B(()=>c&&"MutationObserver"in c),o=()=>{f&&(f.disconnect(),f=void 0)},s=C(()=>{const m=k(e),v=j(m).map(M).filter(Q);return new Set(v)}),a=V(()=>s.value,m=>{o(),h.value&&m.size&&(f=new MutationObserver(n),m.forEach(v=>f.observe(v,p)))},{immediate:!0,flush:"post"}),l=()=>f==null?void 0:f.takeRecords(),u=()=>{a(),o()};return H(u),{isSupported:h,stop:u,takeRecords:l}}const fe=Symbol("vueuse-ssr-width");function pe(){const e=ae()?ne(fe,null):null;return typeof e=="number"?e:void 0}function Y(e,n={}){const{window:i=I,ssrWidth:c=pe()}=n,p=B(()=>i&&"matchMedia"in i&&typeof i.matchMedia=="function"),f=E(typeof c=="number"),h=E(),o=E(!1),s=a=>{o.value=a.matches};return ie(()=>{if(f.value){f.value=!p.value;const a=k(e).split(",");o.value=a.some(l=>{const u=l.includes("not all"),m=l.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=l.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(m||v);return m&&w&&(w=c>=J(m[1])),v&&w&&(w=c<=J(v[1])),u?!w:w});return}p.value&&(h.value=i.matchMedia(k(e)),o.value=h.value.matches)}),T(h,"change",s,{passive:!0}),C(()=>o.value)}const L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D="__vueuse_ssr_handlers__",me=ve();function ve(){return D in L||(L[D]=L[D]||{}),L[D]}function q(e,n){return me[e]||n}function he(e){return Y("(prefers-color-scheme: dark)",e)}function we(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 ge={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()}},K="vueuse-storage";function ye(e,n,i,c={}){var p;const{flush:f="pre",deep:h=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:a=!1,shallow:l,window:u=I,eventFilter:m,onError:v=d=>{console.error(d)},initOnMounted:w}=c,b=(l?E:oe)(typeof n=="function"?n():n),t=C(()=>k(e));if(!i)try{i=q("getDefaultStorage",()=>{var d;return(d=I)==null?void 0:d.localStorage})()}catch(d){v(d)}if(!i)return b;const r=k(n),g=we(r),A=(p=c.serializer)!=null?p:ge[g],{pause:O,resume:z}=G(b,()=>_(b.value),{flush:f,deep:h,eventFilter:m});V(t,()=>N(),{flush:f}),u&&o&&F(()=>{i instanceof Storage?T(u,"storage",N,{passive:!0}):T(u,K,R),w&&N()}),w||N();function x(d,y){if(u){const S={key:t.value,oldValue:d,newValue:y,storageArea:i};u.dispatchEvent(i instanceof Storage?new StorageEvent("storage",S):new CustomEvent(K,{detail:S}))}}function _(d){try{const y=i.getItem(t.value);if(d==null)x(y,null),i.removeItem(t.value);else{const S=A.write(d);y!==S&&(i.setItem(t.value,S),x(y,S))}}catch(y){v(y)}}function P(d){const y=d?d.newValue:i.getItem(t.value);if(y==null)return s&&r!=null&&i.setItem(t.value,A.write(r)),r;if(!d&&a){const S=A.read(y);return typeof a=="function"?a(S,r):g==="object"&&!Array.isArray(S)?{...r,...S}:S}else return typeof y!="string"?y:A.read(y)}function N(d){if(!(d&&d.storageArea!==i)){if(d&&d.key==null){b.value=r;return}if(!(d&&d.key!==t.value)){O();try{(d==null?void 0:d.newValue)!==A.write(b.value)&&(b.value=P(d))}catch(y){v(y)}finally{d?re(z):z()}}}}function R(d){N(d.detail)}return b}const be="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Te(e={}){const{selector:n="html",attribute:i="class",initialValue:c="auto",window:p=I,storage:f,storageKey:h="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:s,emitAuto:a,disableTransition:l=!0}=e,u={auto:"",light:"light",dark:"dark",...e.modes||{}},m=he({window:p}),v=C(()=>m.value?"dark":"light"),w=s||(h==null?ee(c):ye(h,c,f,{window:p,listenToStorageChanges:o})),b=C(()=>w.value==="auto"?v.value:w.value),t=q("updateHTMLAttrs",(O,z,x)=>{const _=typeof O=="string"?p==null?void 0:p.document.querySelector(O):M(O);if(!_)return;const P=new Set,N=new Set;let R=null;if(z==="class"){const y=x.split(/\s/g);Object.values(u).flatMap(S=>(S||"").split(/\s/g)).filter(Boolean).forEach(S=>{y.includes(S)?P.add(S):N.add(S)})}else R={key:z,value:x};if(P.size===0&&N.size===0&&R===null)return;let d;l&&(d=p.document.createElement("style"),d.appendChild(document.createTextNode(be)),p.document.head.appendChild(d));for(const y of P)_.classList.add(y);for(const y of N)_.classList.remove(y);R&&_.setAttribute(R.key,R.value),l&&(p.getComputedStyle(d).opacity,document.head.removeChild(d))});function r(O){var z;t(n,i,(z=u[O])!=null?z:O)}function g(O){e.onChanged?e.onChanged(O,r):r(O)}V(b,g,{flush:"post",immediate:!0}),F(()=>g(b.value));const A=C({get(){return a?w.value:b.value},set(O){w.value=O}});return Object.assign(A,{store:w,system:v,state:b})}function Se(e,n,i={}){const{window:c=I,...p}=i;let f;const h=B(()=>c&&"ResizeObserver"in c),o=()=>{f&&(f.disconnect(),f=void 0)},s=C(()=>{const u=k(e);return Array.isArray(u)?u.map(m=>M(m)):[M(u)]}),a=V(s,u=>{if(o(),h.value&&c){f=new ResizeObserver(n);for(const m of u)m&&f.observe(m,p)}},{immediate:!0,flush:"post"}),l=()=>{o(),a()};return H(l),{isSupported:h,stop:l}}function Ae(e,n={}){const{reset:i=!0,windowResize:c=!0,windowScroll:p=!0,immediate:f=!0,updateTiming:h="sync"}=n,o=E(0),s=E(0),a=E(0),l=E(0),u=E(0),m=E(0),v=E(0),w=E(0);function b(){const r=M(e);if(!r){i&&(o.value=0,s.value=0,a.value=0,l.value=0,u.value=0,m.value=0,v.value=0,w.value=0);return}const g=r.getBoundingClientRect();o.value=g.height,s.value=g.bottom,a.value=g.left,l.value=g.right,u.value=g.top,m.value=g.width,v.value=g.x,w.value=g.y}function t(){h==="sync"?b():h==="next-frame"&&requestAnimationFrame(()=>b())}return Se(e,t),V(()=>M(e),r=>!r&&t()),de(e,t,{attributeFilter:["style","class"]}),p&&T("scroll",t,{capture:!0,passive:!0}),c&&T("resize",t,{passive:!0}),F(()=>{f&&t()}),{height:o,bottom:s,left:a,right:l,top:u,width:m,x:v,y:w,update:t}}function Ce(e,n,i={}){const{root:c,rootMargin:p="0px",threshold:f=0,window:h=I,immediate:o=!0}=i,s=B(()=>h&&"IntersectionObserver"in h),a=C(()=>{const w=k(e);return j(w).map(M).filter(Q)});let l=W;const u=E(o),m=s.value?V(()=>[a.value,M(c),u.value],([w,b])=>{if(l(),!u.value||!w.length)return;const t=new IntersectionObserver(n,{root:M(b),rootMargin:p,threshold:f});w.forEach(r=>r&&t.observe(r)),l=()=>{t.disconnect(),l=W}},{immediate:o,flush:"post"}):W,v=()=>{l(),m(),u.value=!1};return H(v),{isSupported:s,isActive:u,pause(){l(),u.value=!1},resume(){u.value=!0},stop:v}}function Ie(e={}){const{window:n=I,initialWidth:i=Number.POSITIVE_INFINITY,initialHeight:c=Number.POSITIVE_INFINITY,listenOrientation:p=!0,includeScrollbar:f=!0,type:h="inner"}=e,o=E(i),s=E(c),a=()=>{if(n)if(h==="outer")o.value=n.outerWidth,s.value=n.outerHeight;else if(h==="visual"&&n.visualViewport){const{width:u,height:m,scale:v}=n.visualViewport;o.value=Math.round(u*v),s.value=Math.round(m*v)}else f?(o.value=n.innerWidth,s.value=n.innerHeight):(o.value=n.document.documentElement.clientWidth,s.value=n.document.documentElement.clientHeight)};a(),F(a);const l={passive:!0};if(T("resize",a,l),n&&h==="visual"&&n.visualViewport&&T(n.visualViewport,"resize",a,l),p){const u=Y("(orientation: portrait)");V(u,()=>a())}return{width:o,height:s}}export{Ce as a,Se as b,Te as c,ye as d,Ae as e,Ie as f,ke as o,T as u}; diff --git a/js/@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js.gz b/js/@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js.gz deleted file mode 100644 index 7737c58b..00000000 Binary files a/js/@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js.gz and /dev/null differ diff --git a/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js b/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js new file mode 100644 index 00000000..21cc93f2 --- /dev/null +++ b/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js @@ -0,0 +1 @@ +import{w as G,t as F,i as U,a as j,b as X,c as Z,p as J,n as Q,d as ee,e as W,f as H,g as te,h as ne}from"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import{s as E,k as oe,l as k,u as se}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{f as C,w as V,n as re,j as ie,k as ae,l as ue,g as le}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";const I=U?window:void 0;function M(e){var n;const i=k(e);return(n=i?.$el)!=null?n:i}function T(...e){const n=[],i=()=>{n.forEach(o=>o()),n.length=0},c=(o,s,a,l)=>(o.addEventListener(s,a,l),()=>o.removeEventListener(s,a,l)),p=C(()=>{const o=j(k(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0}),f=X(()=>{var o,s;return[(s=(o=p.value)==null?void 0:o.map(a=>M(a)))!=null?s:[I].filter(a=>a!=null),j(k(p.value?e[1]:e[0])),j(se(p.value?e[2]:e[1])),k(p.value?e[3]:e[2])]},([o,s,a,l])=>{if(i(),!o?.length||!s?.length||!a?.length)return;const u=Z(l)?{...l}:l;n.push(...o.flatMap(m=>s.flatMap(v=>a.map(w=>c(m,v,w,u)))))},{flush:"post"}),h=()=>{f(),i()};return H(i),h}let $=!1;function ke(e,n,i={}){const{window:c=I,ignore:p=[],capture:f=!0,detectIframe:h=!1,controls:o=!1}=i;if(!c)return o?{stop:W,cancel:W,trigger:W}:W;if(te&&!$){$=!0;const t={passive:!0};Array.from(c.document.body.children).forEach(r=>T(r,"click",W,t)),T(c.document.documentElement,"click",W,t)}let s=!0;const a=t=>k(p).some(r=>{if(typeof r=="string")return Array.from(c.document.querySelectorAll(r)).some(g=>g===t.target||t.composedPath().includes(g));{const g=M(r);return g&&(t.target===g||t.composedPath().includes(g))}});function l(t){const r=k(t);return r&&r.$.subTree.shapeFlag===16}function u(t,r){const g=k(t),A=g.$.subTree&&g.$.subTree.children;return A==null||!Array.isArray(A)?!1:A.some(O=>O.el===r.target||r.composedPath().includes(O.el))}const m=t=>{const r=M(e);if(t.target!=null&&!(!(r instanceof Element)&&l(e)&&u(e,t))&&!(!r||r===t.target||t.composedPath().includes(r))){if("detail"in t&&t.detail===0&&(s=!a(t)),!s){s=!0;return}n(t)}};let v=!1;const w=[T(c,"click",t=>{v||(v=!0,setTimeout(()=>{v=!1},0),m(t))},{passive:!0,capture:f}),T(c,"pointerdown",t=>{const r=M(e);s=!a(t)&&!!(r&&!t.composedPath().includes(r))},{passive:!0}),h&&T(c,"blur",t=>{setTimeout(()=>{var r;const g=M(e);((r=c.document.activeElement)==null?void 0:r.tagName)==="IFRAME"&&!g?.contains(c.document.activeElement)&&n(t)},0)},{passive:!0})].filter(Boolean),b=()=>w.forEach(t=>t());return o?{stop:b,cancel:()=>{s=!1},trigger:t=>{s=!0,m(t),s=!1}}:b}function ce(){const e=E(!1),n=le();return n&&ue(()=>{e.value=!0},n),e}function B(e){const n=ce();return C(()=>(n.value,!!e()))}function de(e,n,i={}){const{window:c=I,...p}=i;let f;const h=B(()=>c&&"MutationObserver"in c),o=()=>{f&&(f.disconnect(),f=void 0)},s=C(()=>{const m=k(e),v=j(m).map(M).filter(Q);return new Set(v)}),a=V(()=>s.value,m=>{o(),h.value&&m.size&&(f=new MutationObserver(n),m.forEach(v=>f.observe(v,p)))},{immediate:!0,flush:"post"}),l=()=>f?.takeRecords(),u=()=>{a(),o()};return H(u),{isSupported:h,stop:u,takeRecords:l}}const fe=Symbol("vueuse-ssr-width");function pe(){const e=ae()?ne(fe,null):null;return typeof e=="number"?e:void 0}function Y(e,n={}){const{window:i=I,ssrWidth:c=pe()}=n,p=B(()=>i&&"matchMedia"in i&&typeof i.matchMedia=="function"),f=E(typeof c=="number"),h=E(),o=E(!1),s=a=>{o.value=a.matches};return ie(()=>{if(f.value){f.value=!p.value;const a=k(e).split(",");o.value=a.some(l=>{const u=l.includes("not all"),m=l.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=l.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(m||v);return m&&w&&(w=c>=J(m[1])),v&&w&&(w=c<=J(v[1])),u?!w:w});return}p.value&&(h.value=i.matchMedia(k(e)),o.value=h.value.matches)}),T(h,"change",s,{passive:!0}),C(()=>o.value)}const L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D="__vueuse_ssr_handlers__",me=ve();function ve(){return D in L||(L[D]=L[D]||{}),L[D]}function q(e,n){return me[e]||n}function he(e){return Y("(prefers-color-scheme: dark)",e)}function we(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 ge={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()}},K="vueuse-storage";function ye(e,n,i,c={}){var p;const{flush:f="pre",deep:h=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:a=!1,shallow:l,window:u=I,eventFilter:m,onError:v=d=>{},initOnMounted:w}=c,b=(l?E:oe)(typeof n=="function"?n():n),t=C(()=>k(e));if(!i)try{i=q("getDefaultStorage",()=>{var d;return(d=I)==null?void 0:d.localStorage})()}catch(d){v(d)}if(!i)return b;const r=k(n),g=we(r),A=(p=c.serializer)!=null?p:ge[g],{pause:O,resume:z}=G(b,()=>_(b.value),{flush:f,deep:h,eventFilter:m});V(t,()=>N(),{flush:f}),u&&o&&F(()=>{i instanceof Storage?T(u,"storage",N,{passive:!0}):T(u,K,R),w&&N()}),w||N();function x(d,y){if(u){const S={key:t.value,oldValue:d,newValue:y,storageArea:i};u.dispatchEvent(i instanceof Storage?new StorageEvent("storage",S):new CustomEvent(K,{detail:S}))}}function _(d){try{const y=i.getItem(t.value);if(d==null)x(y,null),i.removeItem(t.value);else{const S=A.write(d);y!==S&&(i.setItem(t.value,S),x(y,S))}}catch(y){v(y)}}function P(d){const y=d?d.newValue:i.getItem(t.value);if(y==null)return s&&r!=null&&i.setItem(t.value,A.write(r)),r;if(!d&&a){const S=A.read(y);return typeof a=="function"?a(S,r):g==="object"&&!Array.isArray(S)?{...r,...S}:S}else return typeof y!="string"?y:A.read(y)}function N(d){if(!(d&&d.storageArea!==i)){if(d&&d.key==null){b.value=r;return}if(!(d&&d.key!==t.value)){O();try{d?.newValue!==A.write(b.value)&&(b.value=P(d))}catch(y){v(y)}finally{d?re(z):z()}}}}function R(d){N(d.detail)}return b}const be="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Te(e={}){const{selector:n="html",attribute:i="class",initialValue:c="auto",window:p=I,storage:f,storageKey:h="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:s,emitAuto:a,disableTransition:l=!0}=e,u={auto:"",light:"light",dark:"dark",...e.modes||{}},m=he({window:p}),v=C(()=>m.value?"dark":"light"),w=s||(h==null?ee(c):ye(h,c,f,{window:p,listenToStorageChanges:o})),b=C(()=>w.value==="auto"?v.value:w.value),t=q("updateHTMLAttrs",(O,z,x)=>{const _=typeof O=="string"?p?.document.querySelector(O):M(O);if(!_)return;const P=new Set,N=new Set;let R=null;if(z==="class"){const y=x.split(/\s/g);Object.values(u).flatMap(S=>(S||"").split(/\s/g)).filter(Boolean).forEach(S=>{y.includes(S)?P.add(S):N.add(S)})}else R={key:z,value:x};if(P.size===0&&N.size===0&&R===null)return;let d;l&&(d=p.document.createElement("style"),d.appendChild(document.createTextNode(be)),p.document.head.appendChild(d));for(const y of P)_.classList.add(y);for(const y of N)_.classList.remove(y);R&&_.setAttribute(R.key,R.value),l&&(p.getComputedStyle(d).opacity,document.head.removeChild(d))});function r(O){var z;t(n,i,(z=u[O])!=null?z:O)}function g(O){e.onChanged?e.onChanged(O,r):r(O)}V(b,g,{flush:"post",immediate:!0}),F(()=>g(b.value));const A=C({get(){return a?w.value:b.value},set(O){w.value=O}});return Object.assign(A,{store:w,system:v,state:b})}function Se(e,n,i={}){const{window:c=I,...p}=i;let f;const h=B(()=>c&&"ResizeObserver"in c),o=()=>{f&&(f.disconnect(),f=void 0)},s=C(()=>{const u=k(e);return Array.isArray(u)?u.map(m=>M(m)):[M(u)]}),a=V(s,u=>{if(o(),h.value&&c){f=new ResizeObserver(n);for(const m of u)m&&f.observe(m,p)}},{immediate:!0,flush:"post"}),l=()=>{o(),a()};return H(l),{isSupported:h,stop:l}}function Ae(e,n={}){const{reset:i=!0,windowResize:c=!0,windowScroll:p=!0,immediate:f=!0,updateTiming:h="sync"}=n,o=E(0),s=E(0),a=E(0),l=E(0),u=E(0),m=E(0),v=E(0),w=E(0);function b(){const r=M(e);if(!r){i&&(o.value=0,s.value=0,a.value=0,l.value=0,u.value=0,m.value=0,v.value=0,w.value=0);return}const g=r.getBoundingClientRect();o.value=g.height,s.value=g.bottom,a.value=g.left,l.value=g.right,u.value=g.top,m.value=g.width,v.value=g.x,w.value=g.y}function t(){h==="sync"?b():h==="next-frame"&&requestAnimationFrame(()=>b())}return Se(e,t),V(()=>M(e),r=>!r&&t()),de(e,t,{attributeFilter:["style","class"]}),p&&T("scroll",t,{capture:!0,passive:!0}),c&&T("resize",t,{passive:!0}),F(()=>{f&&t()}),{height:o,bottom:s,left:a,right:l,top:u,width:m,x:v,y:w,update:t}}function Ce(e,n,i={}){const{root:c,rootMargin:p="0px",threshold:f=0,window:h=I,immediate:o=!0}=i,s=B(()=>h&&"IntersectionObserver"in h),a=C(()=>{const w=k(e);return j(w).map(M).filter(Q)});let l=W;const u=E(o),m=s.value?V(()=>[a.value,M(c),u.value],([w,b])=>{if(l(),!u.value||!w.length)return;const t=new IntersectionObserver(n,{root:M(b),rootMargin:p,threshold:f});w.forEach(r=>r&&t.observe(r)),l=()=>{t.disconnect(),l=W}},{immediate:o,flush:"post"}):W,v=()=>{l(),m(),u.value=!1};return H(v),{isSupported:s,isActive:u,pause(){l(),u.value=!1},resume(){u.value=!0},stop:v}}function Ie(e={}){const{window:n=I,initialWidth:i=Number.POSITIVE_INFINITY,initialHeight:c=Number.POSITIVE_INFINITY,listenOrientation:p=!0,includeScrollbar:f=!0,type:h="inner"}=e,o=E(i),s=E(c),a=()=>{if(n)if(h==="outer")o.value=n.outerWidth,s.value=n.outerHeight;else if(h==="visual"&&n.visualViewport){const{width:u,height:m,scale:v}=n.visualViewport;o.value=Math.round(u*v),s.value=Math.round(m*v)}else f?(o.value=n.innerWidth,s.value=n.innerHeight):(o.value=n.document.documentElement.clientWidth,s.value=n.document.documentElement.clientHeight)};a(),F(a);const l={passive:!0};if(T("resize",a,l),n&&h==="visual"&&n.visualViewport&&T(n.visualViewport,"resize",a,l),p){const u=Y("(orientation: portrait)");V(u,()=>a())}return{width:o,height:s}}export{Ce as a,Se as b,ye as c,Ae as d,Te as e,Ie as f,ke as o,T as u}; diff --git a/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js.gz b/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js.gz new file mode 100644 index 00000000..d8313928 Binary files /dev/null and b/js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js.gz differ diff --git a/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js b/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js deleted file mode 100644 index a345adfe..00000000 --- a/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js +++ /dev/null @@ -1 +0,0 @@ -import{n as m,o as O,k as A,q as k,v as P,x as T,a as x,l as C}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{n as D,w as g,g as y,k as I,i as M,l as W}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";function H(t){return P()?(T(t),!0):!1}const p=new WeakMap,J=(...t)=>{var e;const o=t[0],n=(e=y())==null?void 0:e.proxy;if(n==null&&!I())throw new Error("injectLocal must be called in setup");return n&&p.has(n)&&o in p.get(n)?p.get(n)[o]:M(...t)},R=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const K=t=>t!=null,L=Object.prototype.toString,Q=t=>L.call(t)==="[object Object]",w=()=>{},U=N();function N(){var t,e;return R&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function V(...t){if(t.length!==1)return O(...t);const e=t[0];return typeof e=="function"?m(k(()=>({get:e,set:w}))):A(e)}function _(t,e){function o(...n){return new Promise((i,r)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(r)})}return o}const b=t=>t();function E(...t){let e=0,o,n=!0,i=w,r,a,s,c,l;!x(t[0])&&typeof t[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=t[0]:[a,s=!0,c=!0,l=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,i(),i=w)};return F=>{const u=C(a),h=Date.now()-e,d=()=>r=F();return f(),u<=0?(e=Date.now(),d()):(h>u&&(c||!n)?(e=Date.now(),d()):s&&(r=new Promise((v,S)=>{i=l?S:v,o=setTimeout(()=>{e=Date.now(),n=!0,v(d()),f()},Math.max(0,u-h))})),!c&&!o&&(o=setTimeout(()=>n=!0,u)),n=!1,r)}}function G(t=b,e={}){const{initialState:o="active"}=e,n=V(o==="active");function i(){n.value=!1}function r(){n.value=!0}const a=(...s)=>{n.value&&t(...s)};return{isActive:m(n),pause:i,resume:r,eventFilter:a}}function X(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function Y(t){return Array.isArray(t)?t:[t]}function q(t){return y()}function j(t,e,o={}){const{eventFilter:n=b,...i}=o;return g(t,_(n,e),i)}function Z(t,e,o={}){const{eventFilter:n,initialState:i="active",...r}=o,{eventFilter:a,pause:s,resume:c,isActive:l}=G(n,{initialState:i});return{stop:j(t,e,{...r,eventFilter:a}),pause:s,resume:c,isActive:l}}function tt(t,e=!0,o){q()?W(t,o):e?t():D(t)}function et(t,e,o){return g(t,e,{...o,immediate:!0})}function nt(t,e,o={}){const{throttle:n=0,trailing:i=!0,leading:r=!0,...a}=o;return j(t,e,{...a,eventFilter:E(n,i,r)})}export{Y as a,et as b,H as c,Q as d,V as e,w as f,U as g,J as h,R as i,nt as j,K as n,X as p,tt as t,Z as w}; diff --git a/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js.gz b/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js.gz deleted file mode 100644 index 1e65132d..00000000 Binary files a/js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js.gz and /dev/null differ diff --git a/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js b/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js new file mode 100644 index 00000000..543c381b --- /dev/null +++ b/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js @@ -0,0 +1 @@ +import{n as O,w as m,g,k as A,i as k,l as P}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{n as y,o as T,k as x,q as C,v as D,x as I,a as M,l as W}from"./@vue_reactivity@3.5.25-CWykDyL9.js";function H(t){return D()?(I(t),!0):!1}const p=new WeakMap,J=(...t)=>{var e;const o=t[0],n=(e=g())==null?void 0:e.proxy;if(n==null&&!A())throw new Error("injectLocal must be called in setup");return n&&p.has(n)&&o in p.get(n)?p.get(n)[o]:k(...t)},R=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const K=t=>t!=null,L=Object.prototype.toString,Q=t=>L.call(t)==="[object Object]",w=()=>{},U=N();function N(){var t,e;return R&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function V(...t){if(t.length!==1)return T(...t);const e=t[0];return typeof e=="function"?y(C(()=>({get:e,set:w}))):x(e)}function _(t,e){function o(...n){return new Promise((i,r)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(r)})}return o}const b=t=>t();function E(...t){let e=0,o,n=!0,i=w,r,a,s,c,l;!M(t[0])&&typeof t[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=t[0]:[a,s=!0,c=!0,l=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,i(),i=w)};return F=>{const u=W(a),h=Date.now()-e,d=()=>r=F();return f(),u<=0?(e=Date.now(),d()):(h>u&&(c||!n)?(e=Date.now(),d()):s&&(r=new Promise((v,S)=>{i=l?S:v,o=setTimeout(()=>{e=Date.now(),n=!0,v(d()),f()},Math.max(0,u-h))})),!c&&!o&&(o=setTimeout(()=>n=!0,u)),n=!1,r)}}function G(t=b,e={}){const{initialState:o="active"}=e,n=V(o==="active");function i(){n.value=!1}function r(){n.value=!0}const a=(...s)=>{n.value&&t(...s)};return{isActive:y(n),pause:i,resume:r,eventFilter:a}}function X(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function Y(t){return Array.isArray(t)?t:[t]}function q(t){return g()}function j(t,e,o={}){const{eventFilter:n=b,...i}=o;return m(t,_(n,e),i)}function Z(t,e,o={}){const{eventFilter:n,initialState:i="active",...r}=o,{eventFilter:a,pause:s,resume:c,isActive:l}=G(n,{initialState:i});return{stop:j(t,e,{...r,eventFilter:a}),pause:s,resume:c,isActive:l}}function tt(t,e=!0,o){q()?P(t,o):e?t():O(t)}function et(t,e,o){return m(t,e,{...o,immediate:!0})}function nt(t,e,o={}){const{throttle:n=0,trailing:i=!0,leading:r=!0,...a}=o;return j(t,e,{...a,eventFilter:E(n,i,r)})}export{Y as a,et as b,Q as c,V as d,w as e,H as f,U as g,J as h,R as i,nt as j,K as n,X as p,tt as t,Z as w}; diff --git a/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js.gz b/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js.gz new file mode 100644 index 00000000..c5d88f1d Binary files /dev/null and b/js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js.gz differ diff --git a/js/async-validator@4.2.5-9PlIezaS.js b/js/async-validator@4.2.5-9PlIezaS.js deleted file mode 100644 index 219cc9aa..00000000 --- a/js/async-validator@4.2.5-9PlIezaS.js +++ /dev/null @@ -1,12 +0,0 @@ -function _(){return _=Object.assign?Object.assign.bind():function(i){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(i,e,r){return re()?M=Reflect.construct.bind():M=function(n,f,a){var s=[null];s.push.apply(s,f);var d=Function.bind.apply(n,s),q=new d;return a&&S(q,a.prototype),q},M.apply(null,arguments)}function te(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function J(i){var e=typeof Map=="function"?new Map:void 0;return J=function(t){if(t===null||!te(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return M(t,arguments,U(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),S(n,t)},J(i)}var ne=/%[sdj%]/g,ie=function(){};function Z(i){if(!i||!i.length)return null;var e={};return i.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function F(i){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=f)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function h(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function fe(i,e,r){var t=[],n=0,f=i.length;function a(s){t.push.apply(t,s||[]),n++,n===f&&r(t)}i.forEach(function(s){e(s,a)})}function G(i,e,r){var t=0,n=i.length;function f(a){if(a&&a.length){r(a);return}var s=t;t=t+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$={integer:function(e){return $.number(e)&&parseInt(e,10)===e},float:function(e){return $.number(e)&&!$.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!$.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(X.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(pe())},hex:function(e){return typeof e=="string"&&!!e.match(X.hex)}},ye=function(e,r,t,n,f){if(e.required&&r===void 0){C(e,r,t,n,f);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?$[s](r)||n.push(F(f.messages.types[s],e.fullField,e.type)):s&&typeof r!==e.type&&n.push(F(f.messages.types[s],e.fullField,e.type))},ge=function(e,r,t,n,f){var a=typeof e.len=="number",s=typeof e.min=="number",d=typeof e.max=="number",q=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=r,m=null,l=typeof r=="number",O=typeof r=="string",x=Array.isArray(r);if(l?m="number":O?m="string":x&&(m="array"),!m)return!1;x&&(v=r.length),O&&(v=r.replace(q,"_").length),a?v!==e.len&&n.push(F(f.messages[m].len,e.fullField,e.len)):s&&!d&&ve.max?n.push(F(f.messages[m].max,e.fullField,e.max)):s&&d&&(ve.max)&&n.push(F(f.messages[m].range,e.fullField,e.min,e.max))},N="enum",ve=function(e,r,t,n,f){e[N]=Array.isArray(e[N])?e[N]:[],e[N].indexOf(r)===-1&&n.push(F(f.messages[N],e.fullField,e[N].join(", ")))},he=function(e,r,t,n,f){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern))}}},c={required:C,whitespace:ce,type:ye,range:ge,enum:ve,pattern:he},me=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f,"string"),h(r,"string")||(c.type(e,r,n,a,f),c.range(e,r,n,a,f),c.pattern(e,r,n,a,f),e.whitespace===!0&&c.whitespace(e,r,n,a,f))}t(a)},le=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},qe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r===""&&(r=void 0),h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},we=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},be=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),h(r)||c.type(e,r,n,a,f)}t(a)},Fe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},xe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Oe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r==null&&!e.required)return t();c.required(e,r,n,a,f,"array"),r!=null&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Ee=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},Ae="enum",Pe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c[Ae](e,r,n,a,f)}t(a)},je=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f),h(r,"string")||c.pattern(e,r,n,a,f)}t(a)},Re=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"date")&&!e.required)return t();if(c.required(e,r,n,a,f),!h(r,"date")){var d;r instanceof Date?d=r:d=new Date(r),c.type(e,d,n,a,f),d&&c.range(e,d.getTime(),n,a,f)}}t(a)},_e=function(e,r,t,n,f){var a=[],s=Array.isArray(r)?"array":typeof r;c.required(e,r,n,a,f,s),t(a)},B=function(e,r,t,n,f){var a=e.type,s=[],d=e.required||!e.required&&n.hasOwnProperty(e.field);if(d){if(h(r,a)&&!e.required)return t();c.required(e,r,n,s,f,a),h(r,a)||c.type(e,r,n,s,f)}t(s)},Ne=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f)}t(a)},D={string:me,method:le,number:qe,boolean:we,regexp:be,integer:Fe,float:xe,array:Oe,object:Ee,enum:Pe,pattern:je,date:Re,url:B,hex:B,email:B,required:_e,any:Ne};function W(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var z=W(),L=function(){function i(r){this.rules=null,this._messages=z,this.define(r)}var e=i.prototype;return e.define=function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(f){var a=t[f];n.rules[f]=Array.isArray(a)?a:[a]})},e.messages=function(t){return t&&(this._messages=Q(W(),t)),this._messages},e.validate=function(t,n,f){var a=this;n===void 0&&(n={}),f===void 0&&(f=function(){});var s=t,d=n,q=f;if(typeof d=="function"&&(q=d,d={}),!this.rules||Object.keys(this.rules).length===0)return q&&q(null,s),Promise.resolve(s);function v(u){var g=[],o={};function A(y){if(Array.isArray(y)){var b;g=(b=g).concat.apply(b,y)}else g.push(y)}for(var p=0;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(i,e,r){return re()?M=Reflect.construct.bind():M=function(n,f,a){var s=[null];s.push.apply(s,f);var d=Function.bind.apply(n,s),q=new d;return a&&S(q,a.prototype),q},M.apply(null,arguments)}function te(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function J(i){var e=typeof Map=="function"?new Map:void 0;return J=function(t){if(t===null||!te(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return M(t,arguments,U(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),S(n,t)},J(i)}var ne=/%[sdj%]/g,ie=function(){};function Z(i){if(!i||!i.length)return null;var e={};return i.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function F(i){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=f)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function h(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function fe(i,e,r){var t=[],n=0,f=i.length;function a(s){t.push.apply(t,s||[]),n++,n===f&&r(t)}i.forEach(function(s){e(s,a)})}function G(i,e,r){var t=0,n=i.length;function f(a){if(a&&a.length){r(a);return}var s=t;t=t+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$={integer:function(e){return $.number(e)&&parseInt(e,10)===e},float:function(e){return $.number(e)&&!$.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!$.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(X.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(pe())},hex:function(e){return typeof e=="string"&&!!e.match(X.hex)}},ye=function(e,r,t,n,f){if(e.required&&r===void 0){C(e,r,t,n,f);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?$[s](r)||n.push(F(f.messages.types[s],e.fullField,e.type)):s&&typeof r!==e.type&&n.push(F(f.messages.types[s],e.fullField,e.type))},ge=function(e,r,t,n,f){var a=typeof e.len=="number",s=typeof e.min=="number",d=typeof e.max=="number",q=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=r,m=null,l=typeof r=="number",O=typeof r=="string",x=Array.isArray(r);if(l?m="number":O?m="string":x&&(m="array"),!m)return!1;x&&(v=r.length),O&&(v=r.replace(q,"_").length),a?v!==e.len&&n.push(F(f.messages[m].len,e.fullField,e.len)):s&&!d&&ve.max?n.push(F(f.messages[m].max,e.fullField,e.max)):s&&d&&(ve.max)&&n.push(F(f.messages[m].range,e.fullField,e.min,e.max))},N="enum",ve=function(e,r,t,n,f){e[N]=Array.isArray(e[N])?e[N]:[],e[N].indexOf(r)===-1&&n.push(F(f.messages[N],e.fullField,e[N].join(", ")))},he=function(e,r,t,n,f){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern))}}},c={required:C,whitespace:ce,type:ye,range:ge,enum:ve,pattern:he},me=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f,"string"),h(r,"string")||(c.type(e,r,n,a,f),c.range(e,r,n,a,f),c.pattern(e,r,n,a,f),e.whitespace===!0&&c.whitespace(e,r,n,a,f))}t(a)},le=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},qe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r===""&&(r=void 0),h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},we=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},be=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),h(r)||c.type(e,r,n,a,f)}t(a)},Fe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},xe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Oe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r==null&&!e.required)return t();c.required(e,r,n,a,f,"array"),r!=null&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Ee=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},Ae="enum",Pe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c[Ae](e,r,n,a,f)}t(a)},je=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f),h(r,"string")||c.pattern(e,r,n,a,f)}t(a)},Re=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"date")&&!e.required)return t();if(c.required(e,r,n,a,f),!h(r,"date")){var d;r instanceof Date?d=r:d=new Date(r),c.type(e,d,n,a,f),d&&c.range(e,d.getTime(),n,a,f)}}t(a)},_e=function(e,r,t,n,f){var a=[],s=Array.isArray(r)?"array":typeof r;c.required(e,r,n,a,f,s),t(a)},B=function(e,r,t,n,f){var a=e.type,s=[],d=e.required||!e.required&&n.hasOwnProperty(e.field);if(d){if(h(r,a)&&!e.required)return t();c.required(e,r,n,s,f,a),h(r,a)||c.type(e,r,n,s,f)}t(s)},Ne=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f)}t(a)},D={string:me,method:le,number:qe,boolean:we,regexp:be,integer:Fe,float:xe,array:Oe,object:Ee,enum:Pe,pattern:je,date:Re,url:B,hex:B,email:B,required:_e,any:Ne};function W(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var z=W(),L=(function(){function i(r){this.rules=null,this._messages=z,this.define(r)}var e=i.prototype;return e.define=function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(f){var a=t[f];n.rules[f]=Array.isArray(a)?a:[a]})},e.messages=function(t){return t&&(this._messages=Q(W(),t)),this._messages},e.validate=function(t,n,f){var a=this;n===void 0&&(n={}),f===void 0&&(f=function(){});var s=t,d=n,q=f;if(typeof d=="function"&&(q=d,d={}),!this.rules||Object.keys(this.rules).length===0)return q&&q(null,s),Promise.resolve(s);function v(u){var g=[],o={};function A(y){if(Array.isArray(y)){var w;g=(w=g).concat.apply(w,y)}else g.push(y)}for(var p=0;p/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function nn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,l){const u=j(f);if(!u)throw new Error("header name must be a non-empty string");const p=a.findKey(s,u);(!p||s[p]===void 0||l===!0||l===void 0&&s[p]!==!1)&&(s[p||f]=$(c))}const i=(c,f)=>a.forEach(c,(l,u)=>o(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!tn(t))i(Yt(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return en(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=$(s),delete n[o];return}const c=t?nn(o):String(o).trim();c!==o&&delete n[o],n[c]=$(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[be]=this[be]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(rn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function te(e,t){const n=this||I,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Me(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function ze(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function on(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[o];i||(i=l),n[s]=f,r[s]=l;let p=o,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),p=u-n;p>=r?i(l,u):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=on(50,250);return an(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),u=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},we=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ee=e=>(...t)=>a.asap(()=>e(...t)),cn=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function un(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t,n){let r=!un(t);return e&&(r||n==!1)?fn(e,t):t}const Re=e=>e instanceof x?{...e}:e;function B(e,t){t=t||{};const n={};function r(l,u,p,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,p,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,p,b)}else return r(l,u,p,b)}function o(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,p)=>s(Re(l),Re(u),p,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=f[u]||s,b=p(e[u],t[u],u);a.isUndefined(b)&&p!==c||(n[u]=b)}),n}const Je=e=>{const t=B({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=qe($e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&cn(t.url))){const l=s&&o&&ln.read(o);l&&i.set(s,l)}return t},dn=typeof XMLHttpRequest<"u",pn=dn&&function(e){return new Promise(function(n,r){const s=Je(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=s,u,p,b,R,d;function y(){R&&R(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};ze(function(_){n(_),y()},function(_){r(_),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||He;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),l&&([b,d]=V(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,R]=V(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(u=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const S=sn(s.url);if(S&&O.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},hn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof m?u:new k(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},mn=function*(e,t){let n=e.byteLength;if(n{const s=yn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){c(),f.close();return}let p=u.byteLength;if(n){let b=o+=p;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Z=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ve=Z&&typeof ReadableStream=="function",wn=Z&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),We=(e,...t)=>{try{return!!e(...t)}catch{return!1}},En=Ve&&We(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ge=64*1024,ie=Ve&&We(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Z&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Rn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await wn(e)).byteLength},Sn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Rn(t)},gn=Z&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:b}=Je(e);l=l?(l+"").toLowerCase():"text";let R=hn([s,o&&o.toAbortSignal()],i),d;const y=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let h;try{if(f&&En&&n!=="get"&&n!=="head"&&(h=await Sn(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),F;if(a.isFormData(r)&&(F=T.headers.get("content-type"))&&u.setContentType(F),T.body){const[_,M]=we(h,V(Ee(f)));r=Se(T.body,ge,_,M)}}a.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;d=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let S=await fetch(d,b);const g=ie&&(l==="stream"||l==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(de=>{T[de]=S[de]});const F=a.toFiniteNumber(S.headers.get("content-length")),[_,M]=c&&we(F,V(Ee(c),!0))||[];S=new Response(Se(S.body,ge,_,()=>{M&&M(),y&&y()}),T)}l=l||"text";let P=await W[a.findKey(W,l)||"text"](S,e);return!g&&y&&y(),await new Promise((T,F)=>{ze(T,F,{data:P,headers:x.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:d})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,d),{cause:w.cause||w}):m.from(w,w&&w.code,e,d)}}),ae={http:kt,xhr:pn,fetch:gn};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Oe=e=>`- ${e}`,On=e=>a.isFunction(e)||e===null||e===!1,Ke={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Oe).join(` -`):" "+Oe(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Te(e){return ne(e),e.headers=x.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ke.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return Me(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const ve="1.10.0",Y={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Y[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ae={};Y.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ve+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ae[i]&&(Ae[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Y.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Tn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:Tn,validators:Y},N=J.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ye,response:new ye}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`):" "+Oe(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Te(e){return ne(e),e.headers=x.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ke.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return Me(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const ve="1.10.0",Y={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Y[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ae={};Y.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ve+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ae[i]&&(Ae[i]=!0),t?t(o,i,c):!0}};Y.spelling=function(t){return(n,r)=>!0};function Tn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:Tn,validators:Y},N=J.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ye,response:new ye}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&J.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:J.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),J.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),n.headers=x.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,b;if(!f){const d=[Te.bind(this),void 0];for(d.unshift.apply(d,c),d.push.apply(d,l),b=d.length,u=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Xe(function(s){t=s}),cancel:t}}};function xn(e){return function(n){return e.apply(null,n)}}function Cn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Ge(e){const t=new L(e),n=xe(L.prototype.request,t);return a.extend(n,L.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ge(B(e,s))},n}const E=Ge(I);E.Axios=L;E.CanceledError=k;E.CancelToken=An;E.isCancel=Me;E.VERSION=ve;E.toFormData=Q;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=xn;E.isAxiosError=Cn;E.mergeConfig=B;E.AxiosHeaders=x;E.formToJSON=e=>Ie(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=Ke.getAdapter;E.HttpStatusCode=ce;E.default=E;const{Axios:Fn,AxiosError:_n,CanceledError:Un,isCancel:Ln,CancelToken:Bn,VERSION:Dn,all:kn,Cancel:jn,isAxiosError:qn,spread:Hn,toFormData:In,AxiosHeaders:Mn,HttpStatusCode:zn,formToJSON:$n,getAdapter:Jn,mergeConfig:Vn}=E;export{E as a}; diff --git a/js/axios@1.10.0-Dq7h7Pqt.js.gz b/js/axios@1.10.0-CIcuZHni.js.gz similarity index 83% rename from js/axios@1.10.0-Dq7h7Pqt.js.gz rename to js/axios@1.10.0-CIcuZHni.js.gz index efd12ef0..31cd65ea 100644 Binary files a/js/axios@1.10.0-Dq7h7Pqt.js.gz and b/js/axios@1.10.0-CIcuZHni.js.gz differ diff --git a/js/barcode-demo-Co5GUWlj.js b/js/barcode-demo-Co5GUWlj.js new file mode 100644 index 00000000..d8fc64be --- /dev/null +++ b/js/barcode-demo-Co5GUWlj.js @@ -0,0 +1 @@ +import{F as a}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{a as s,b as e,N as i,e as p,ag as l,T as n,D as F}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as c,d as t,J as u}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as m}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const ft=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(s,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"根据尺寸自动更新的条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r},responsive:!0},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(n,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(F,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{ft as default}; diff --git a/js/barcode-demo-Co5GUWlj.js.gz b/js/barcode-demo-Co5GUWlj.js.gz new file mode 100644 index 00000000..2664852c Binary files /dev/null and b/js/barcode-demo-Co5GUWlj.js.gz differ diff --git a/js/barcode-demo-DioSkHms.js b/js/barcode-demo-DioSkHms.js deleted file mode 100644 index 0f615da3..00000000 --- a/js/barcode-demo-DioSkHms.js +++ /dev/null @@ -1 +0,0 @@ -import{F as a}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{a as s,b as e,N as i,e as p,ag as l,J as n,M as F}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as c,d as t,J as u}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as m}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ft=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(s,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(n,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(F,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{ft as default}; diff --git a/js/barcode-demo-DioSkHms.js.gz b/js/barcode-demo-DioSkHms.js.gz deleted file mode 100644 index 365005fc..00000000 Binary files a/js/barcode-demo-DioSkHms.js.gz and /dev/null differ diff --git a/js/@vue_devtools-api@6.6.1-l0sNRNKZ.js b/js/birpc@2.8.0-l0sNRNKZ.js similarity index 100% rename from js/@vue_devtools-api@6.6.1-l0sNRNKZ.js rename to js/birpc@2.8.0-l0sNRNKZ.js diff --git a/js/@vue_devtools-api@6.6.1-l0sNRNKZ.js.gz b/js/birpc@2.8.0-l0sNRNKZ.js.gz similarity index 100% rename from js/@vue_devtools-api@6.6.1-l0sNRNKZ.js.gz rename to js/birpc@2.8.0-l0sNRNKZ.js.gz diff --git a/js/classnames@2.5.1-CU_BXU7G.js b/js/classnames@2.5.1-CU_BXU7G.js new file mode 100644 index 00000000..8552898f --- /dev/null +++ b/js/classnames@2.5.1-CU_BXU7G.js @@ -0,0 +1 @@ +var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function y(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var a=t.default;if(typeof a=="function"){var r=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:function(){return t[s]}})}),r}var f={exports:{}};var i;function l(){return i||(i=1,(function(t){(function(){var a={}.hasOwnProperty;function r(){for(var e="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{container:document.body},r="";return typeof n=="string"?r=k(n,e):n instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(n?.type)?r=k(n.value,e):(r=g()(n),d("copy")),r},C=j;function S(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(e){return typeof e}:S=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(i)}var D=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,r=e===void 0?"copy":e,o=n.container,u=n.target,m=n.text;if(r!=="copy"&&r!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(u!==void 0)if(u&&S(u)==="object"&&u.nodeType===1){if(r==="copy"&&u.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(r==="cut"&&(u.hasAttribute("readonly")||u.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(m)return C(m,{container:o});if(u)return r==="cut"?p(u):C(u,{container:o})},F=D;function _(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(e){return typeof e}:_=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(i)}function H(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function P(i,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function T(i){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(i)}function L(i,n){var e="data-clipboard-".concat(i);if(n.hasAttribute(e))return n.getAttribute(e)}var V=(function(i){z(e,i);var n=U(e);function e(r,o){var u;return H(this,e),u=n.call(this),u.resolveOptions(o),u.listenClick(r),u}return I(e,[{key:"resolveOptions",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof o.action=="function"?o.action:this.defaultAction,this.target=typeof o.target=="function"?o.target:this.defaultTarget,this.text=typeof o.text=="function"?o.text:this.defaultText,this.container=_(o.container)==="object"?o.container:document.body}},{key:"listenClick",value:function(o){var u=this;this.listener=h()(o,"click",function(m){return u.onClick(m)})}},{key:"onClick",value:function(o){var u=o.delegateTarget||o.currentTarget,m=this.action(u)||"copy",w=F({action:m,container:this.container,target:this.target(u),text:this.text(u)});this.emit(w?"success":"error",{action:m,text:w,trigger:u,clearSelection:function(){u&&u.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(o){return L("action",o)}},{key:"defaultTarget",value:function(o){var u=L("target",o);if(u)return document.querySelector(u)}},{key:"defaultText",value:function(o){return L("text",o)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(o,u)}},{key:"cut",value:function(o){return p(o)}},{key:"isSupported",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],u=typeof o=="string"?[o]:o,m=!!document.queryCommandSupported;return u.forEach(function(w){m=m&&!!document.queryCommandSupported(w)}),m}}]),e})(f()),X=V}),828:(function(l){var c=9;if(typeof Element<"u"&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function a(f,s){for(;f&&f.nodeType!==c;){if(typeof f.matches=="function"&&f.matches(s))return f;f=f.parentNode}}l.exports=a}),438:(function(l,c,t){var a=t(828);function f(y,g,d,v,p){var E=h.apply(this,arguments);return y.addEventListener(d,E,p),{destroy:function(){y.removeEventListener(d,E,p)}}}function s(y,g,d,v,p){return typeof y.addEventListener=="function"?f.apply(null,arguments):typeof d=="function"?f.bind(null,document).apply(null,arguments):(typeof y=="string"&&(y=document.querySelectorAll(y)),Array.prototype.map.call(y,function(E){return f(E,g,d,v,p)}))}function h(y,g,d,v){return function(p){p.delegateTarget=a(p.target,g),p.delegateTarget&&v.call(y,p)}}l.exports=s}),879:(function(l,c){c.node=function(t){return t!==void 0&&t instanceof HTMLElement&&t.nodeType===1},c.nodeList=function(t){var a=Object.prototype.toString.call(t);return t!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in t&&(t.length===0||c.node(t[0]))},c.string=function(t){return typeof t=="string"||t instanceof String},c.fn=function(t){var a=Object.prototype.toString.call(t);return a==="[object Function]"}}),370:(function(l,c,t){var a=t(879),f=t(438);function s(d,v,p){if(!d&&!v&&!p)throw new Error("Missing required arguments");if(!a.string(v))throw new TypeError("Second argument must be a String");if(!a.fn(p))throw new TypeError("Third argument must be a Function");if(a.node(d))return h(d,v,p);if(a.nodeList(d))return y(d,v,p);if(a.string(d))return g(d,v,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(d,v,p){return d.addEventListener(v,p),{destroy:function(){d.removeEventListener(v,p)}}}function y(d,v,p){return Array.prototype.forEach.call(d,function(E){E.addEventListener(v,p)}),{destroy:function(){Array.prototype.forEach.call(d,function(E){E.removeEventListener(v,p)})}}}function g(d,v,p){return f(document.body,d,v,p)}l.exports=s}),817:(function(l){function c(t){var a;if(t.nodeName==="SELECT")t.focus(),a=t.value;else if(t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){var f=t.hasAttribute("readonly");f||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),f||t.removeAttribute("readonly"),a=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),h=document.createRange();h.selectNodeContents(t),s.removeAllRanges(),s.addRange(h),a=s.toString()}return a}l.exports=c}),279:(function(l){function c(){}c.prototype={on:function(t,a,f){var s=this.e||(this.e={});return(s[t]||(s[t]=[])).push({fn:a,ctx:f}),this},once:function(t,a,f){var s=this;function h(){s.off(t,h),a.apply(f,arguments)}return h._=a,this.on(t,h,f)},emit:function(t){var a=[].slice.call(arguments,1),f=((this.e||(this.e={}))[t]||[]).slice(),s=0,h=f.length;for(s;s1&&arguments[1]!==void 0?arguments[1]:{container:document.body},r="";return typeof n=="string"?r=k(n,e):n instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(n==null?void 0:n.type)?r=k(n.value,e):(r=g()(n),d("copy")),r},C=j;function S(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(e){return typeof e}:S=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(i)}var D=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,r=e===void 0?"copy":e,o=n.container,u=n.target,m=n.text;if(r!=="copy"&&r!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(u!==void 0)if(u&&S(u)==="object"&&u.nodeType===1){if(r==="copy"&&u.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(r==="cut"&&(u.hasAttribute("readonly")||u.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(m)return C(m,{container:o});if(u)return r==="cut"?p(u):C(u,{container:o})},F=D;function _(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(e){return typeof e}:_=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(i)}function H(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function P(i,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function T(i){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(i)}function L(i,n){var e="data-clipboard-".concat(i);if(n.hasAttribute(e))return n.getAttribute(e)}var J=function(i){z(e,i);var n=U(e);function e(r,o){var u;return H(this,e),u=n.call(this),u.resolveOptions(o),u.listenClick(r),u}return I(e,[{key:"resolveOptions",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof o.action=="function"?o.action:this.defaultAction,this.target=typeof o.target=="function"?o.target:this.defaultTarget,this.text=typeof o.text=="function"?o.text:this.defaultText,this.container=_(o.container)==="object"?o.container:document.body}},{key:"listenClick",value:function(o){var u=this;this.listener=h()(o,"click",function(m){return u.onClick(m)})}},{key:"onClick",value:function(o){var u=o.delegateTarget||o.currentTarget,m=this.action(u)||"copy",w=F({action:m,container:this.container,target:this.target(u),text:this.text(u)});this.emit(w?"success":"error",{action:m,text:w,trigger:u,clearSelection:function(){u&&u.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(o){return L("action",o)}},{key:"defaultTarget",value:function(o){var u=L("target",o);if(u)return document.querySelector(u)}},{key:"defaultText",value:function(o){return L("text",o)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(o,u)}},{key:"cut",value:function(o){return p(o)}},{key:"isSupported",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],u=typeof o=="string"?[o]:o,m=!!document.queryCommandSupported;return u.forEach(function(w){m=m&&!!document.queryCommandSupported(w)}),m}}]),e}(f()),V=J},828:function(l){var c=9;if(typeof Element<"u"&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function a(f,s){for(;f&&f.nodeType!==c;){if(typeof f.matches=="function"&&f.matches(s))return f;f=f.parentNode}}l.exports=a},438:function(l,c,t){var a=t(828);function f(y,g,d,v,p){var E=h.apply(this,arguments);return y.addEventListener(d,E,p),{destroy:function(){y.removeEventListener(d,E,p)}}}function s(y,g,d,v,p){return typeof y.addEventListener=="function"?f.apply(null,arguments):typeof d=="function"?f.bind(null,document).apply(null,arguments):(typeof y=="string"&&(y=document.querySelectorAll(y)),Array.prototype.map.call(y,function(E){return f(E,g,d,v,p)}))}function h(y,g,d,v){return function(p){p.delegateTarget=a(p.target,g),p.delegateTarget&&v.call(y,p)}}l.exports=s},879:function(l,c){c.node=function(t){return t!==void 0&&t instanceof HTMLElement&&t.nodeType===1},c.nodeList=function(t){var a=Object.prototype.toString.call(t);return t!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in t&&(t.length===0||c.node(t[0]))},c.string=function(t){return typeof t=="string"||t instanceof String},c.fn=function(t){var a=Object.prototype.toString.call(t);return a==="[object Function]"}},370:function(l,c,t){var a=t(879),f=t(438);function s(d,v,p){if(!d&&!v&&!p)throw new Error("Missing required arguments");if(!a.string(v))throw new TypeError("Second argument must be a String");if(!a.fn(p))throw new TypeError("Third argument must be a Function");if(a.node(d))return h(d,v,p);if(a.nodeList(d))return y(d,v,p);if(a.string(d))return g(d,v,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(d,v,p){return d.addEventListener(v,p),{destroy:function(){d.removeEventListener(v,p)}}}function y(d,v,p){return Array.prototype.forEach.call(d,function(E){E.addEventListener(v,p)}),{destroy:function(){Array.prototype.forEach.call(d,function(E){E.removeEventListener(v,p)})}}}function g(d,v,p){return f(document.body,d,v,p)}l.exports=s},817:function(l){function c(t){var a;if(t.nodeName==="SELECT")t.focus(),a=t.value;else if(t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){var f=t.hasAttribute("readonly");f||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),f||t.removeAttribute("readonly"),a=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),h=document.createRange();h.selectNodeContents(t),s.removeAllRanges(),s.addRange(h),a=s.toString()}return a}l.exports=c},279:function(l){function c(){}c.prototype={on:function(t,a,f){var s=this.e||(this.e={});return(s[t]||(s[t]=[])).push({fn:a,ctx:f}),this},once:function(t,a,f){var s=this;function h(){s.off(t,h),a.apply(f,arguments)}return h._=a,this.on(t,h,f)},emit:function(t){var a=[].slice.call(arguments,1),f=((this.e||(this.e={}))[t]||[]).slice(),s=0,h=f.length;for(s;s>>2]>>>24-A%4*8&255;a[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S>>2]=i[S>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=n.ceil(a/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var a=[],i=0;i>>2]>>>24-l%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new B.init(i,a/2)}},o=r.Latin1={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l>>2]>>>24-l%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new B.init(i,a)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var a,i=this._data,E=i.words,l=i.sigBytes,A=this.blockSize,_=A*4,S=l/_;t?S=n.ceil(S):S=n.max((S|0)-this._minBufferSize,0);var v=S*A,F=n.min(v*4,l);if(v){for(var y=0;y>>2]|=d[B]<<24-B%4*8;w.call(this,e,x)}else w.apply(this,arguments)};u.prototype=p}}(),C.lib.WordArray})}(A0)),A0.exports}var F0={exports:{}},Dr=F0.exports,Ax;function _r(){return Ax||(Ax=1,function(R,$){(function(C,n){R.exports=n(L())})(Dr,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Utf16=w.Utf16BE={stringify:function(d){for(var x=d.words,e=d.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535;B.push(String.fromCharCode(s))}return B.join("")},parse:function(d){for(var x=d.length,e=[],B=0;B>>1]|=d.charCodeAt(B)<<16-B%2*16;return p.create(e,x*2)}},w.Utf16LE={stringify:function(d){for(var x=d.words,e=d.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535);B.push(String.fromCharCode(s))}return B.join("")},parse:function(d){for(var x=d.length,e=[],B=0;B>>1]|=u(d.charCodeAt(B)<<16-B%2*16);return p.create(e,x*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),C.enc.Utf16})}(F0)),F0.exports}var p0={exports:{}},br=p0.exports,Fx;function r0(){return Fx||(Fx=1,function(R,$){(function(C,n){R.exports=n(L())})(br,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Base64={stringify:function(d){var x=d.words,e=d.sigBytes,B=this._map;d.clamp();for(var r=[],s=0;s>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,h=o<<16|c<<8|f,t=0;t<4&&s+t*.75>>6*(3-t)&63));var a=B.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(d){var x=d.length,e=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var r=0;r>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return p.create(B,r)}}(),C.enc.Base64})}(p0)),p0.exports}var D0={exports:{}},yr=D0.exports,px;function gr(){return px||(px=1,function(R,$){(function(C,n){R.exports=n(L())})(yr,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Base64url={stringify:function(d,x){x===void 0&&(x=!0);var e=d.words,B=d.sigBytes,r=x?this._safe_map:this._map;d.clamp();for(var s=[],o=0;o>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,h=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|h,a=0;a<4&&o+a*.75>>6*(3-a)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(d,x){x===void 0&&(x=!0);var e=d.length,B=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return p.create(B,r)}}(),C.enc.Base64url})}(D0)),D0.exports}var _0={exports:{}},kr=_0.exports,Dx;function e0(){return Dx||(Dx=1,function(R,$){(function(C,n){R.exports=n(L())})(kr,function(C){return function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=n.abs(n.sin(c+1))*4294967296|0})();var e=d.MD5=u.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var h=0;h<16;h++){var t=f+h,a=c[t];c[t]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}var i=this._hash.words,E=c[f+0],l=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],v=c[f+5],F=c[f+6],y=c[f+7],g=c[f+8],z=c[f+9],q=c[f+10],P=c[f+11],X=c[f+12],T=c[f+13],N=c[f+14],I=c[f+15],b=i[0],H=i[1],m=i[2],k=i[3];b=B(b,H,m,k,E,7,x[0]),k=B(k,b,H,m,l,12,x[1]),m=B(m,k,b,H,A,17,x[2]),H=B(H,m,k,b,_,22,x[3]),b=B(b,H,m,k,S,7,x[4]),k=B(k,b,H,m,v,12,x[5]),m=B(m,k,b,H,F,17,x[6]),H=B(H,m,k,b,y,22,x[7]),b=B(b,H,m,k,g,7,x[8]),k=B(k,b,H,m,z,12,x[9]),m=B(m,k,b,H,q,17,x[10]),H=B(H,m,k,b,P,22,x[11]),b=B(b,H,m,k,X,7,x[12]),k=B(k,b,H,m,T,12,x[13]),m=B(m,k,b,H,N,17,x[14]),H=B(H,m,k,b,I,22,x[15]),b=r(b,H,m,k,l,5,x[16]),k=r(k,b,H,m,F,9,x[17]),m=r(m,k,b,H,P,14,x[18]),H=r(H,m,k,b,E,20,x[19]),b=r(b,H,m,k,v,5,x[20]),k=r(k,b,H,m,q,9,x[21]),m=r(m,k,b,H,I,14,x[22]),H=r(H,m,k,b,S,20,x[23]),b=r(b,H,m,k,z,5,x[24]),k=r(k,b,H,m,N,9,x[25]),m=r(m,k,b,H,_,14,x[26]),H=r(H,m,k,b,g,20,x[27]),b=r(b,H,m,k,T,5,x[28]),k=r(k,b,H,m,A,9,x[29]),m=r(m,k,b,H,y,14,x[30]),H=r(H,m,k,b,X,20,x[31]),b=s(b,H,m,k,v,4,x[32]),k=s(k,b,H,m,g,11,x[33]),m=s(m,k,b,H,P,16,x[34]),H=s(H,m,k,b,N,23,x[35]),b=s(b,H,m,k,l,4,x[36]),k=s(k,b,H,m,S,11,x[37]),m=s(m,k,b,H,y,16,x[38]),H=s(H,m,k,b,q,23,x[39]),b=s(b,H,m,k,T,4,x[40]),k=s(k,b,H,m,E,11,x[41]),m=s(m,k,b,H,_,16,x[42]),H=s(H,m,k,b,F,23,x[43]),b=s(b,H,m,k,z,4,x[44]),k=s(k,b,H,m,X,11,x[45]),m=s(m,k,b,H,I,16,x[46]),H=s(H,m,k,b,A,23,x[47]),b=o(b,H,m,k,E,6,x[48]),k=o(k,b,H,m,y,10,x[49]),m=o(m,k,b,H,N,15,x[50]),H=o(H,m,k,b,v,21,x[51]),b=o(b,H,m,k,X,6,x[52]),k=o(k,b,H,m,_,10,x[53]),m=o(m,k,b,H,q,15,x[54]),H=o(H,m,k,b,l,21,x[55]),b=o(b,H,m,k,g,6,x[56]),k=o(k,b,H,m,I,10,x[57]),m=o(m,k,b,H,F,15,x[58]),H=o(H,m,k,b,T,21,x[59]),b=o(b,H,m,k,S,6,x[60]),k=o(k,b,H,m,P,10,x[61]),m=o(m,k,b,H,A,15,x[62]),H=o(H,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+H|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var a=n.floor(h/4294967296),i=h;f[(t+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,l=E.words,A=0;A<4;A++){var _=l[A];l[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=u.clone.call(this);return c._hash=this._hash.clone(),c}});function B(c,f,h,t,a,i,E){var l=c+(f&h|~f&t)+a+E;return(l<>>32-i)+f}function r(c,f,h,t,a,i,E){var l=c+(f&t|h&~t)+a+E;return(l<>>32-i)+f}function s(c,f,h,t,a,i,E){var l=c+(f^h^t)+a+E;return(l<>>32-i)+f}function o(c,f,h,t,a,i,E){var l=c+(h^(f|~t))+a+E;return(l<>>32-i)+f}D.MD5=u._createHelper(e),D.HmacMD5=u._createHmacHelper(e)}(Math),C.MD5})}(_0)),_0.exports}var b0={exports:{}},wr=b0.exports,_x;function Vx(){return _x||(_x=1,function(R,$){(function(C,n){R.exports=n(L())})(wr,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=D.Hasher,u=n.algo,d=[],x=u.SHA1=w.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,B){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],h=r[4],t=0;t<80;t++){if(t<16)d[t]=e[B+t]|0;else{var a=d[t-3]^d[t-8]^d[t-14]^d[t-16];d[t]=a<<1|a>>>31}var i=(s<<5|s>>>27)+h+d[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,h=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+h|0},_doFinalize:function(){var e=this._data,B=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return B[s>>>5]|=128<<24-s%32,B[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),B[(s+64>>>9<<4)+15]=r,e.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var e=w.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA1=w._createHelper(x),n.HmacSHA1=w._createHmacHelper(x)}(),C.SHA1})}(b0)),b0.exports}var y0={exports:{}},Hr=y0.exports,bx;function ex(){return bx||(bx=1,function(R,$){(function(C,n){R.exports=n(L())})(Hr,function(C){return function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=[],e=[];(function(){function s(h){for(var t=n.sqrt(h),a=2;a<=t;a++)if(!(h%a))return!1;return!0}function o(h){return(h-(h|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(n.pow(c,1/2))),e[f]=o(n.pow(c,1/3)),f++),c++})();var B=[],r=d.SHA256=u.extend({_doReset:function(){this._hash=new w.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],h=c[1],t=c[2],a=c[3],i=c[4],E=c[5],l=c[6],A=c[7],_=0;_<64;_++){if(_<16)B[_]=s[o+_]|0;else{var S=B[_-15],v=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=B[_-2],y=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;B[_]=v+B[_-7]+y+B[_-16]}var g=i&E^~i&l,z=f&h^f&t^h&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),P=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),X=A+P+g+e[_]+B[_],T=q+z;A=l,l=E,E=i,i=a+X|0,a=t,t=h,h=f,f=X+T|0}c[0]=c[0]+f|0,c[1]=c[1]+h|0,c[2]=c[2]+t|0,c[3]=c[3]+a|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+l|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=n.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=u.clone.call(this);return s._hash=this._hash.clone(),s}});D.SHA256=u._createHelper(r),D.HmacSHA256=u._createHmacHelper(r)}(Math),C.SHA256})}(y0)),y0.exports}var g0={exports:{}},mr=g0.exports,yx;function Sr(){return yx||(yx=1,function(R,$){(function(C,n,D){R.exports=n(L(),ex())})(mr,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=n.algo,u=w.SHA256,d=w.SHA224=u.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=u._doFinalize.call(this);return x.sigBytes-=4,x}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),C.SHA224})}(g0)),g0.exports}var k0={exports:{}},Rr=k0.exports,gx;function Jx(){return gx||(gx=1,function(R,$){(function(C,n,D){R.exports=n(L(),V0())})(Rr,function(C){return function(){var n=C,D=n.lib,p=D.Hasher,w=n.x64,u=w.Word,d=w.WordArray,x=n.algo;function e(){return u.create.apply(u,arguments)}var B=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=p.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,h=f[0],t=f[1],a=f[2],i=f[3],E=f[4],l=f[5],A=f[6],_=f[7],S=h.high,v=h.low,F=t.high,y=t.low,g=a.high,z=a.low,q=i.high,P=i.low,X=E.high,T=E.low,N=l.high,I=l.low,b=A.high,H=A.low,m=_.high,k=_.low,K=S,O=v,G=F,W=y,o0=g,t0=z,J0=q,i0=P,j=X,Z=T,B0=N,f0=I,d0=b,s0=H,xx=m,c0=k,M=0;M<80;M++){var Y,V,h0=r[M];if(M<16)V=h0.high=o[c+M*2]|0,Y=h0.low=o[c+M*2+1]|0;else{var ax=r[M-15],a0=ax.high,v0=ax.low,xr=(a0>>>1|v0<<31)^(a0>>>8|v0<<24)^a0>>>7,nx=(v0>>>1|a0<<31)^(v0>>>8|a0<<24)^(v0>>>7|a0<<25),ox=r[M-2],n0=ox.high,u0=ox.low,rr=(n0>>>19|u0<<13)^(n0<<3|u0>>>29)^n0>>>6,ix=(u0>>>19|n0<<13)^(u0<<3|n0>>>29)^(u0>>>6|n0<<26),fx=r[M-7],er=fx.high,tr=fx.low,sx=r[M-16],ar=sx.high,cx=sx.low;Y=nx+tr,V=xr+er+(Y>>>0>>0?1:0),Y=Y+ix,V=V+rr+(Y>>>0>>0?1:0),Y=Y+cx,V=V+ar+(Y>>>0>>0?1:0),h0.high=V,h0.low=Y}var nr=j&B0^~j&d0,vx=Z&f0^~Z&s0,or=K&G^K&o0^G&o0,ir=O&W^O&t0^W&t0,fr=(K>>>28|O<<4)^(K<<30|O>>>2)^(K<<25|O>>>7),ux=(O>>>28|K<<4)^(O<<30|K>>>2)^(O<<25|K>>>7),sr=(j>>>14|Z<<18)^(j>>>18|Z<<14)^(j<<23|Z>>>9),cr=(Z>>>14|j<<18)^(Z>>>18|j<<14)^(Z<<23|j>>>9),Bx=B[M],vr=Bx.high,dx=Bx.low,Q=c0+cr,J=xx+sr+(Q>>>0>>0?1:0),Q=Q+vx,J=J+nr+(Q>>>0>>0?1:0),Q=Q+dx,J=J+vr+(Q>>>0>>0?1:0),Q=Q+Y,J=J+V+(Q>>>0>>0?1:0),hx=ux+ir,ur=fr+or+(hx>>>0>>0?1:0);xx=d0,c0=s0,d0=B0,s0=f0,B0=j,f0=Z,Z=i0+Q|0,j=J0+J+(Z>>>0>>0?1:0)|0,J0=o0,i0=t0,o0=G,t0=W,G=K,W=O,O=Q+hx|0,K=J+ur+(O>>>0>>0?1:0)|0}v=h.low=v+O,h.high=S+K+(v>>>0>>0?1:0),y=t.low=y+W,t.high=F+G+(y>>>0>>0?1:0),z=a.low=z+t0,a.high=g+o0+(z>>>0>>0?1:0),P=i.low=P+i0,i.high=q+J0+(P>>>0>>0?1:0),T=E.low=T+Z,E.high=X+j+(T>>>0>>0?1:0),I=l.low=I+f0,l.high=N+B0+(I>>>0>>0?1:0),H=A.low=H+s0,A.high=b+d0+(H>>>0>>0?1:0),k=_.low=k+c0,_.high=m+xx+(k>>>0>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,h=o.sigBytes*8;c[h>>>5]|=128<<24-h%32,c[(h+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(h+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=p.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});n.SHA512=p._createHelper(s),n.HmacSHA512=p._createHmacHelper(s)}(),C.SHA512})}(k0)),k0.exports}var w0={exports:{}},zr=w0.exports,kx;function qr(){return kx||(kx=1,function(R,$){(function(C,n,D){R.exports=n(L(),V0(),Jx())})(zr,function(C){return function(){var n=C,D=n.x64,p=D.Word,w=D.WordArray,u=n.algo,d=u.SHA512,x=u.SHA384=d.extend({_doReset:function(){this._hash=new w.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var e=d._doFinalize.call(this);return e.sigBytes-=16,e}});n.SHA384=d._createHelper(x),n.HmacSHA384=d._createHmacHelper(x)}(),C.SHA384})}(w0)),w0.exports}var H0={exports:{}},Pr=H0.exports,wx;function Wr(){return wx||(wx=1,function(R,$){(function(C,n,D){R.exports=n(L(),V0())})(Pr,function(C){return function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.x64,x=d.Word,e=D.algo,B=[],r=[],s=[];(function(){for(var f=1,h=0,t=0;t<24;t++){B[f+5*h]=(t+1)*(t+2)/2%64;var a=h%5,i=(2*f+3*h)%5;f=a,h=i}for(var f=0;f<5;f++)for(var h=0;h<5;h++)r[f+5*h]=h+(2*f+3*h)%5*5;for(var E=1,l=0;l<24;l++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var v=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;var A=t[i];A.high^=l,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var v=0,F=0,y=0;y<5;y++){var A=t[S+5*y];v^=A.high,F^=A.low}var g=o[S];g.high=v,g.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],P=q.high,X=q.low,v=z.high^(P<<1|X>>>31),F=z.low^(X<<1|P>>>31),y=0;y<5;y++){var A=t[S+5*y];A.high^=v,A.low^=F}for(var T=1;T<25;T++){var v,F,A=t[T],N=A.high,I=A.low,b=B[T];b<32?(v=N<>>32-b,F=I<>>32-b):(v=I<>>64-b,F=N<>>64-b);var H=o[r[T]];H.high=v,H.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var y=0;y<5;y++){var T=S+5*y,A=t[T],K=o[T],O=o[(S+1)%5+5*y],G=o[(S+2)%5+5*y];A.high=K.high^~O.high&G.high,A.low=K.low^~O.low&G.low}var A=t[0],W=s[_];A.high^=W.high,A.low^=W.low}},_doFinalize:function(){var f=this._data,h=f.words;this._nDataBytes*8;var t=f.sigBytes*8,a=this.blockSize*32;h[t>>>5]|=1<<24-t%32,h[(n.ceil((t+1)/a)*a>>>5)-1]|=128,f.sigBytes=h.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,l=E/8,A=[],_=0;_>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(v)}return new w.init(A,E)},clone:function(){for(var f=u.clone.call(this),h=f._state=this._state.slice(0),t=0;t<25;t++)h[t]=h[t].clone();return f}});D.SHA3=u._createHelper(c),D.HmacSHA3=u._createHmacHelper(c)}(Math),C.SHA3})}(H0)),H0.exports}var m0={exports:{}},$r=m0.exports,Hx;function Lr(){return Hx||(Hx=1,function(R,$){(function(C,n){R.exports=n(L())})($r,function(C){/** @preserve - (c) 2012 by Cédric Mesnil. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=w.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=w.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),B=w.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=w.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),s=w.create([0,1518500249,1859775393,2400959708,2840853838]),o=w.create([1352829926,1548603684,1836072691,2053994217,0]),c=d.RIPEMD160=u.extend({_doReset:function(){this._hash=w.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,A){for(var _=0;_<16;_++){var S=A+_,v=l[S];l[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var F=this._hash.words,y=s.words,g=o.words,z=x.words,q=e.words,P=B.words,X=r.words,T,N,I,b,H,m,k,K,O,G;m=T=F[0],k=N=F[1],K=I=F[2],O=b=F[3],G=H=F[4];for(var W,_=0;_<80;_+=1)W=T+l[A+z[_]]|0,_<16?W+=f(N,I,b)+y[0]:_<32?W+=h(N,I,b)+y[1]:_<48?W+=t(N,I,b)+y[2]:_<64?W+=a(N,I,b)+y[3]:W+=i(N,I,b)+y[4],W=W|0,W=E(W,P[_]),W=W+H|0,T=H,H=b,b=E(I,10),I=N,N=W,W=m+l[A+q[_]]|0,_<16?W+=i(k,K,O)+g[0]:_<32?W+=a(k,K,O)+g[1]:_<48?W+=t(k,K,O)+g[2]:_<64?W+=h(k,K,O)+g[3]:W+=f(k,K,O)+g[4],W=W|0,W=E(W,X[_]),W=W+G|0,m=G,G=O,O=E(K,10),K=k,k=W;W=F[1]+I+O|0,F[1]=F[2]+b+G|0,F[2]=F[3]+H+m|0,F[3]=F[4]+T+k|0,F[4]=F[0]+N+K|0,F[0]=W},_doFinalize:function(){var l=this._data,A=l.words,_=this._nDataBytes*8,S=l.sigBytes*8;A[S>>>5]|=128<<24-S%32,A[(S+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,l.sigBytes=(A.length+1)*4,this._process();for(var v=this._hash,F=v.words,y=0;y<5;y++){var g=F[y];F[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return v},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});function f(l,A,_){return l^A^_}function h(l,A,_){return l&A|~l&_}function t(l,A,_){return(l|~A)^_}function a(l,A,_){return l&_|A&~_}function i(l,A,_){return l^(A|~_)}function E(l,A){return l<>>32-A}D.RIPEMD160=u._createHelper(c),D.HmacRIPEMD160=u._createHmacHelper(c)}(),C.RIPEMD160})}(m0)),m0.exports}var S0={exports:{}},Tr=S0.exports,mx;function tx(){return mx||(mx=1,function(R,$){(function(C,n){R.exports=n(L())})(Tr,function(C){(function(){var n=C,D=n.lib,p=D.Base,w=n.enc,u=w.Utf8,d=n.algo;d.HMAC=p.extend({init:function(x,e){x=this._hasher=new x.init,typeof e=="string"&&(e=u.parse(e));var B=x.blockSize,r=B*4;e.sigBytes>r&&(e=x.finalize(e)),e.clamp();for(var s=this._oKey=e.clone(),o=this._iKey=e.clone(),c=s.words,f=o.words,h=0;h>>2]&255;v.sigBytes-=F}};p.BlockCipher=s.extend({cfg:s.cfg.extend({mode:f,padding:t}),reset:function(){var v;s.reset.call(this);var F=this.cfg,y=F.iv,g=F.mode;this._xformMode==this._ENC_XFORM_MODE?v=g.createEncryptor:(v=g.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,y&&y.words):(this._mode=v.call(g,this,y&&y.words),this._mode.__creator=v)},_doProcessBlock:function(v,F){this._mode.processBlock(v,F)},_doFinalize:function(){var v,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),F.unpad(v)),v},blockSize:128/32});var a=p.CipherParams=w.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),i=D.format={},E=i.OpenSSL={stringify:function(v){var F,y=v.ciphertext,g=v.salt;return g?F=u.create([1398893684,1701076831]).concat(g).concat(y):F=y,F.toString(e)},parse:function(v){var F,y=e.parse(v),g=y.words;return g[0]==1398893684&&g[1]==1701076831&&(F=u.create(g.slice(2,4)),g.splice(0,4),y.sigBytes-=16),a.create({ciphertext:y,salt:F})}},l=p.SerializableCipher=w.extend({cfg:w.extend({format:E}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=v.createEncryptor(y,g),q=z.finalize(F),P=z.cfg;return a.create({ciphertext:q,key:y,iv:P.iv,algorithm:v,mode:P.mode,padding:P.padding,blockSize:v.blockSize,formatter:g.format})},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=v.createDecryptor(y,g).finalize(F.ciphertext);return z},_parse:function(v,F){return typeof v=="string"?F.parse(v,this):v}}),A=D.kdf={},_=A.OpenSSL={execute:function(v,F,y,g,z){if(g||(g=u.random(64/8)),z)var q=r.create({keySize:F+y,hasher:z}).compute(v,g);else var q=r.create({keySize:F+y}).compute(v,g);var P=u.create(q.words.slice(F),y*4);return q.sigBytes=F*4,a.create({key:q,iv:P,salt:g})}},S=p.PasswordBasedCipher=l.extend({cfg:l.cfg.extend({kdf:_}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=g.kdf.execute(y,v.keySize,v.ivSize,g.salt,g.hasher);g.iv=z.iv;var q=l.encrypt.call(this,v,F,z.key,g);return q.mixIn(z),q},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=g.kdf.execute(y,v.keySize,v.ivSize,F.salt,g.hasher);g.iv=z.iv;var q=l.decrypt.call(this,v,F,z.key,g);return q}})}()})}(q0)),q0.exports}var P0={exports:{}},Kr=P0.exports,qx;function Ur(){return qx||(qx=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(Kr,function(C){return C.mode.CFB=function(){var n=C.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(p,w){var u=this._cipher,d=u.blockSize;D.call(this,p,w,d,u),this._prevBlock=p.slice(w,w+d)}}),n.Decryptor=n.extend({processBlock:function(p,w){var u=this._cipher,d=u.blockSize,x=p.slice(w,w+d);D.call(this,p,w,d,u),this._prevBlock=x}});function D(p,w,u,d){var x,e=this._iv;e?(x=e.slice(0),this._iv=void 0):x=this._prevBlock,d.encryptBlock(x,0);for(var B=0;B>24&255)===255){var d=u>>16&255,x=u>>8&255,e=u&255;d===255?(d=0,x===255?(x=0,e===255?e=0:++e):++x):++d,u=0,u+=d<<16,u+=x<<8,u+=e}else u+=1<<24;return u}function p(u){return(u[0]=D(u[0]))===0&&(u[1]=D(u[1])),u}var w=n.Encryptor=n.extend({processBlock:function(u,d){var x=this._cipher,e=x.blockSize,B=this._iv,r=this._counter;B&&(r=this._counter=B.slice(0),this._iv=void 0),p(r);var s=r.slice(0);x.encryptBlock(s,0);for(var o=0;o>>2]|=u<<24-d%4*8,n.sigBytes+=u},unpad:function(n){var D=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=D}},C.pad.Ansix923})}(I0)),I0.exports}var N0={exports:{}},ee=N0.exports,Ix;function te(){return Ix||(Ix=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(ee,function(C){return C.pad.Iso10126={pad:function(n,D){var p=D*4,w=p-n.sigBytes%p;n.concat(C.lib.WordArray.random(w-1)).concat(C.lib.WordArray.create([w<<24],1))},unpad:function(n){var D=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=D}},C.pad.Iso10126})}(N0)),N0.exports}var O0={exports:{}},ae=O0.exports,Nx;function ne(){return Nx||(Nx=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(ae,function(C){return C.pad.Iso97971={pad:function(n,D){n.concat(C.lib.WordArray.create([2147483648],1)),C.pad.ZeroPadding.pad(n,D)},unpad:function(n){C.pad.ZeroPadding.unpad(n),n.sigBytes--}},C.pad.Iso97971})}(O0)),O0.exports}var X0={exports:{}},oe=X0.exports,Ox;function ie(){return Ox||(Ox=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(oe,function(C){return C.pad.ZeroPadding={pad:function(n,D){var p=D*4;n.clamp(),n.sigBytes+=p-(n.sigBytes%p||p)},unpad:function(n){for(var D=n.words,p=n.sigBytes-1,p=n.sigBytes-1;p>=0;p--)if(D[p>>>2]>>>24-p%4*8&255){n.sigBytes=p+1;break}}},C.pad.ZeroPadding})}(X0)),X0.exports}var K0={exports:{}},fe=K0.exports,Xx;function se(){return Xx||(Xx=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(fe,function(C){return C.pad.NoPadding={pad:function(){},unpad:function(){}},C.pad.NoPadding})}(K0)),K0.exports}var U0={exports:{}},ce=U0.exports,Kx;function ve(){return Kx||(Kx=1,function(R,$){(function(C,n,D){R.exports=n(L(),U())})(ce,function(C){return function(n){var D=C,p=D.lib,w=p.CipherParams,u=D.enc,d=u.Hex,x=D.format;x.Hex={stringify:function(e){return e.ciphertext.toString(d)},parse:function(e){var B=d.parse(e);return w.create({ciphertext:B})}}}(),C.format.Hex})}(U0)),U0.exports}var G0={exports:{}},ue=G0.exports,Ux;function Be(){return Ux||(Ux=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(ue,function(C){return function(){var n=C,D=n.lib,p=D.BlockCipher,w=n.algo,u=[],d=[],x=[],e=[],B=[],r=[],s=[],o=[],c=[],f=[];(function(){for(var a=[],i=0;i<256;i++)i<128?a[i]=i<<1:a[i]=i<<1^283;for(var E=0,l=0,i=0;i<256;i++){var A=l^l<<1^l<<2^l<<3^l<<4;A=A>>>8^A&255^99,u[E]=A,d[A]=E;var _=a[E],S=a[_],v=a[S],F=a[A]*257^A*16843008;x[E]=F<<24|F>>>8,e[E]=F<<16|F>>>16,B[E]=F<<8|F>>>24,r[E]=F;var F=v*16843009^S*65537^_*257^E*16843008;s[A]=F<<24|F>>>8,o[A]=F<<16|F>>>16,c[A]=F<<8|F>>>24,f[A]=F,E?(E=_^a[a[a[v^_]]],l^=a[a[l]]):E=l=1}})();var h=[0,1,2,4,8,16,32,64,128,27,54],t=w.AES=p.extend({_doReset:function(){var a;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var i=this._keyPriorReset=this._key,E=i.words,l=i.sigBytes/4,A=this._nRounds=l+6,_=(A+1)*4,S=this._keySchedule=[],v=0;v<_;v++)v6&&v%l==4&&(a=u[a>>>24]<<24|u[a>>>16&255]<<16|u[a>>>8&255]<<8|u[a&255]):(a=a<<8|a>>>24,a=u[a>>>24]<<24|u[a>>>16&255]<<16|u[a>>>8&255]<<8|u[a&255],a^=h[v/l|0]<<24),S[v]=S[v-l]^a);for(var F=this._invKeySchedule=[],y=0;y<_;y++){var v=_-y;if(y%4)var a=S[v];else var a=S[v-4];y<4||v<=4?F[y]=a:F[y]=s[u[a>>>24]]^o[u[a>>>16&255]]^c[u[a>>>8&255]]^f[u[a&255]]}}},encryptBlock:function(a,i){this._doCryptBlock(a,i,this._keySchedule,x,e,B,r,u)},decryptBlock:function(a,i){var E=a[i+1];a[i+1]=a[i+3],a[i+3]=E,this._doCryptBlock(a,i,this._invKeySchedule,s,o,c,f,d);var E=a[i+1];a[i+1]=a[i+3],a[i+3]=E},_doCryptBlock:function(a,i,E,l,A,_,S,v){for(var F=this._nRounds,y=a[i]^E[0],g=a[i+1]^E[1],z=a[i+2]^E[2],q=a[i+3]^E[3],P=4,X=1;X>>24]^A[g>>>16&255]^_[z>>>8&255]^S[q&255]^E[P++],N=l[g>>>24]^A[z>>>16&255]^_[q>>>8&255]^S[y&255]^E[P++],I=l[z>>>24]^A[q>>>16&255]^_[y>>>8&255]^S[g&255]^E[P++],b=l[q>>>24]^A[y>>>16&255]^_[g>>>8&255]^S[z&255]^E[P++];y=T,g=N,z=I,q=b}var T=(v[y>>>24]<<24|v[g>>>16&255]<<16|v[z>>>8&255]<<8|v[q&255])^E[P++],N=(v[g>>>24]<<24|v[z>>>16&255]<<16|v[q>>>8&255]<<8|v[y&255])^E[P++],I=(v[z>>>24]<<24|v[q>>>16&255]<<16|v[y>>>8&255]<<8|v[g&255])^E[P++],b=(v[q>>>24]<<24|v[y>>>16&255]<<16|v[g>>>8&255]<<8|v[z&255])^E[P++];a[i]=T,a[i+1]=N,a[i+2]=I,a[i+3]=b},keySize:256/32});n.AES=p._createHelper(t)}(),C.AES})}(G0)),G0.exports}var Z0={exports:{}},de=Z0.exports,Gx;function he(){return Gx||(Gx=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(de,function(C){return function(){var n=C,D=n.lib,p=D.WordArray,w=D.BlockCipher,u=n.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],x=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=u.DES=w.extend({_doReset:function(){for(var h=this._key,t=h.words,a=[],i=0;i<56;i++){var E=d[i]-1;a[i]=t[E>>>5]>>>31-E%32&1}for(var l=this._subKeys=[],A=0;A<16;A++){for(var _=l[A]=[],S=e[A],i=0;i<24;i++)_[i/6|0]|=a[(x[i]-1+S)%28]<<31-i%6,_[4+(i/6|0)]|=a[28+(x[i+24]-1+S)%28]<<31-i%6;_[0]=_[0]<<1|_[0]>>>31;for(var i=1;i<7;i++)_[i]=_[i]>>>(i-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var v=this._invSubKeys=[],i=0;i<16;i++)v[i]=l[15-i]},encryptBlock:function(h,t){this._doCryptBlock(h,t,this._subKeys)},decryptBlock:function(h,t){this._doCryptBlock(h,t,this._invSubKeys)},_doCryptBlock:function(h,t,a){this._lBlock=h[t],this._rBlock=h[t+1],o.call(this,4,252645135),o.call(this,16,65535),c.call(this,2,858993459),c.call(this,8,16711935),o.call(this,1,1431655765);for(var i=0;i<16;i++){for(var E=a[i],l=this._lBlock,A=this._rBlock,_=0,S=0;S<8;S++)_|=B[S][((A^E[S])&r[S])>>>0];this._lBlock=A,this._rBlock=l^_}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,o.call(this,1,1431655765),c.call(this,8,16711935),c.call(this,2,858993459),o.call(this,16,65535),o.call(this,4,252645135),h[t]=this._lBlock,h[t+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function o(h,t){var a=(this._lBlock>>>h^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<>>h^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<192.");var a=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),E=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=s.createEncryptor(p.create(a)),this._des2=s.createEncryptor(p.create(i)),this._des3=s.createEncryptor(p.create(E))},encryptBlock:function(h,t){this._des1.encryptBlock(h,t),this._des2.decryptBlock(h,t),this._des3.encryptBlock(h,t)},decryptBlock:function(h,t){this._des3.decryptBlock(h,t),this._des2.encryptBlock(h,t),this._des1.decryptBlock(h,t)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=w._createHelper(f)}(),C.TripleDES})}(Z0)),Z0.exports}var Q0={exports:{}},Ce=Q0.exports,Zx;function le(){return Zx||(Zx=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Ce,function(C){return function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=w.RC4=p.extend({_doReset:function(){for(var e=this._key,B=e.words,r=e.sigBytes,s=this._S=[],o=0;o<256;o++)s[o]=o;for(var o=0,c=0;o<256;o++){var f=o%r,h=B[f>>>2]>>>24-f%4*8&255;c=(c+s[o]+h)%256;var t=s[o];s[o]=s[c],s[c]=t}this._i=this._j=0},_doProcessBlock:function(e,B){e[B]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var e=this._S,B=this._i,r=this._j,s=0,o=0;o<4;o++){B=(B+1)%256,r=(r+e[B])%256;var c=e[B];e[B]=e[r],e[r]=c,s|=e[(e[B]+e[r])%256]<<24-o*8}return this._i=B,this._j=r,s}n.RC4=p._createHelper(u);var x=w.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)d.call(this)}});n.RC4Drop=p._createHelper(x)}(),C.RC4})}(Q0)),Q0.exports}var Y0={exports:{}},Ee=Y0.exports,Qx;function Ae(){return Qx||(Qx=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Ee,function(C){return function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=[],d=[],x=[],e=w.Rabbit=p.extend({_doReset:function(){for(var r=this._key.words,s=this.cfg.iv,o=0;o<4;o++)r[o]=(r[o]<<8|r[o]>>>24)&16711935|(r[o]<<24|r[o]>>>8)&4278255360;var c=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],f=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var o=0;o<4;o++)B.call(this);for(var o=0;o<8;o++)f[o]^=c[o+4&7];if(s){var h=s.words,t=h[0],a=h[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,l=i>>>16|E&4294901760,A=E<<16|i&65535;f[0]^=i,f[1]^=l,f[2]^=E,f[3]^=A,f[4]^=i,f[5]^=l,f[6]^=E,f[7]^=A;for(var o=0;o<4;o++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0>>0?1:0)|0,this._b=s[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,h=c>>>16,t=((f*f>>>17)+f*h>>>15)+h*h,a=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^a}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}n.Rabbit=p._createHelper(e)}(),C.Rabbit})}(Y0)),Y0.exports}var j0={exports:{}},Fe=j0.exports,Yx;function pe(){return Yx||(Yx=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Fe,function(C){return function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=[],d=[],x=[],e=w.RabbitLegacy=p.extend({_doReset:function(){var r=this._key.words,s=this.cfg.iv,o=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],c=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var f=0;f<4;f++)B.call(this);for(var f=0;f<8;f++)c[f]^=o[f+4&7];if(s){var h=s.words,t=h[0],a=h[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,l=i>>>16|E&4294901760,A=E<<16|i&65535;c[0]^=i,c[1]^=l,c[2]^=E,c[3]^=A,c[4]^=i,c[5]^=l,c[6]^=E,c[7]^=A;for(var f=0;f<4;f++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0>>0?1:0)|0,this._b=s[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,h=c>>>16,t=((f*f>>>17)+f*h>>>15)+h*h,a=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^a}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}n.RabbitLegacy=p._createHelper(e)}(),C.RabbitLegacy})}(j0)),j0.exports}var M0={exports:{}},De=M0.exports,jx;function _e(){return jx||(jx=1,function(R,$){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(De,function(C){return function(){var n=C,D=n.lib,p=D.BlockCipher,w=n.algo;const u=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],x=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var e={pbox:[],sbox:[]};function B(f,h){let t=h>>24&255,a=h>>16&255,i=h>>8&255,E=h&255,l=f.sbox[0][t]+f.sbox[1][a];return l=l^f.sbox[2][i],l=l+f.sbox[3][E],l}function r(f,h,t){let a=h,i=t,E;for(let l=0;l1;--l)a=a^f.pbox[l],i=B(f,a)^i,E=a,a=i,i=E;return E=a,a=i,i=E,i=i^f.pbox[1],a=a^f.pbox[0],{left:a,right:i}}function o(f,h,t){for(let A=0;A<4;A++){f.sbox[A]=[];for(let _=0;_<256;_++)f.sbox[A][_]=x[A][_]}let a=0;for(let A=0;A=t&&(a=0);let i=0,E=0,l=0;for(let A=0;A>>2]>>>24-A%4*8&255;a[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S>>2]=i[S>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=n.ceil(a/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var a=[],i=0;i>>2]>>>24-l%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new B.init(i,a/2)}},o=r.Latin1={stringify:function(t){for(var a=t.words,i=t.sigBytes,E=[],l=0;l>>2]>>>24-l%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var a=t.length,i=[],E=0;E>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new B.init(i,a)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var a,i=this._data,E=i.words,l=i.sigBytes,A=this.blockSize,_=A*4,S=l/_;t?S=n.ceil(S):S=n.max((S|0)-this._minBufferSize,0);var v=S*A,F=n.min(v*4,l);if(v){for(var y=0;y>>2]|=d[B]<<24-B%4*8;w.call(this,e,x)}else w.apply(this,arguments)};u.prototype=p}})(),C.lib.WordArray})})(A0)),A0.exports}var F0={exports:{}},Dr=F0.exports,Ax;function _r(){return Ax||(Ax=1,(function(R,W){(function(C,n){R.exports=n(L())})(Dr,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Utf16=w.Utf16BE={stringify:function(d){for(var x=d.words,e=d.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535;B.push(String.fromCharCode(s))}return B.join("")},parse:function(d){for(var x=d.length,e=[],B=0;B>>1]|=d.charCodeAt(B)<<16-B%2*16;return p.create(e,x*2)}},w.Utf16LE={stringify:function(d){for(var x=d.words,e=d.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535);B.push(String.fromCharCode(s))}return B.join("")},parse:function(d){for(var x=d.length,e=[],B=0;B>>1]|=u(d.charCodeAt(B)<<16-B%2*16);return p.create(e,x*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}})(),C.enc.Utf16})})(F0)),F0.exports}var p0={exports:{}},br=p0.exports,Fx;function r0(){return Fx||(Fx=1,(function(R,W){(function(C,n){R.exports=n(L())})(br,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Base64={stringify:function(d){var x=d.words,e=d.sigBytes,B=this._map;d.clamp();for(var r=[],s=0;s>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,h=o<<16|c<<8|f,t=0;t<4&&s+t*.75>>6*(3-t)&63));var a=B.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(d){var x=d.length,e=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var r=0;r>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return p.create(B,r)}})(),C.enc.Base64})})(p0)),p0.exports}var D0={exports:{}},yr=D0.exports,px;function gr(){return px||(px=1,(function(R,W){(function(C,n){R.exports=n(L())})(yr,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=n.enc;w.Base64url={stringify:function(d,x){x===void 0&&(x=!0);var e=d.words,B=d.sigBytes,r=x?this._safe_map:this._map;d.clamp();for(var s=[],o=0;o>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,h=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|h,a=0;a<4&&o+a*.75>>6*(3-a)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(d,x){x===void 0&&(x=!0);var e=d.length,B=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return p.create(B,r)}})(),C.enc.Base64url})})(D0)),D0.exports}var _0={exports:{}},kr=_0.exports,Dx;function e0(){return Dx||(Dx=1,(function(R,W){(function(C,n){R.exports=n(L())})(kr,function(C){return(function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=n.abs(n.sin(c+1))*4294967296|0})();var e=d.MD5=u.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var h=0;h<16;h++){var t=f+h,a=c[t];c[t]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}var i=this._hash.words,E=c[f+0],l=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],v=c[f+5],F=c[f+6],y=c[f+7],g=c[f+8],z=c[f+9],q=c[f+10],$=c[f+11],X=c[f+12],T=c[f+13],N=c[f+14],I=c[f+15],b=i[0],H=i[1],m=i[2],k=i[3];b=B(b,H,m,k,E,7,x[0]),k=B(k,b,H,m,l,12,x[1]),m=B(m,k,b,H,A,17,x[2]),H=B(H,m,k,b,_,22,x[3]),b=B(b,H,m,k,S,7,x[4]),k=B(k,b,H,m,v,12,x[5]),m=B(m,k,b,H,F,17,x[6]),H=B(H,m,k,b,y,22,x[7]),b=B(b,H,m,k,g,7,x[8]),k=B(k,b,H,m,z,12,x[9]),m=B(m,k,b,H,q,17,x[10]),H=B(H,m,k,b,$,22,x[11]),b=B(b,H,m,k,X,7,x[12]),k=B(k,b,H,m,T,12,x[13]),m=B(m,k,b,H,N,17,x[14]),H=B(H,m,k,b,I,22,x[15]),b=r(b,H,m,k,l,5,x[16]),k=r(k,b,H,m,F,9,x[17]),m=r(m,k,b,H,$,14,x[18]),H=r(H,m,k,b,E,20,x[19]),b=r(b,H,m,k,v,5,x[20]),k=r(k,b,H,m,q,9,x[21]),m=r(m,k,b,H,I,14,x[22]),H=r(H,m,k,b,S,20,x[23]),b=r(b,H,m,k,z,5,x[24]),k=r(k,b,H,m,N,9,x[25]),m=r(m,k,b,H,_,14,x[26]),H=r(H,m,k,b,g,20,x[27]),b=r(b,H,m,k,T,5,x[28]),k=r(k,b,H,m,A,9,x[29]),m=r(m,k,b,H,y,14,x[30]),H=r(H,m,k,b,X,20,x[31]),b=s(b,H,m,k,v,4,x[32]),k=s(k,b,H,m,g,11,x[33]),m=s(m,k,b,H,$,16,x[34]),H=s(H,m,k,b,N,23,x[35]),b=s(b,H,m,k,l,4,x[36]),k=s(k,b,H,m,S,11,x[37]),m=s(m,k,b,H,y,16,x[38]),H=s(H,m,k,b,q,23,x[39]),b=s(b,H,m,k,T,4,x[40]),k=s(k,b,H,m,E,11,x[41]),m=s(m,k,b,H,_,16,x[42]),H=s(H,m,k,b,F,23,x[43]),b=s(b,H,m,k,z,4,x[44]),k=s(k,b,H,m,X,11,x[45]),m=s(m,k,b,H,I,16,x[46]),H=s(H,m,k,b,A,23,x[47]),b=o(b,H,m,k,E,6,x[48]),k=o(k,b,H,m,y,10,x[49]),m=o(m,k,b,H,N,15,x[50]),H=o(H,m,k,b,v,21,x[51]),b=o(b,H,m,k,X,6,x[52]),k=o(k,b,H,m,_,10,x[53]),m=o(m,k,b,H,q,15,x[54]),H=o(H,m,k,b,l,21,x[55]),b=o(b,H,m,k,g,6,x[56]),k=o(k,b,H,m,I,10,x[57]),m=o(m,k,b,H,F,15,x[58]),H=o(H,m,k,b,T,21,x[59]),b=o(b,H,m,k,S,6,x[60]),k=o(k,b,H,m,$,10,x[61]),m=o(m,k,b,H,A,15,x[62]),H=o(H,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+H|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var a=n.floor(h/4294967296),i=h;f[(t+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,l=E.words,A=0;A<4;A++){var _=l[A];l[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=u.clone.call(this);return c._hash=this._hash.clone(),c}});function B(c,f,h,t,a,i,E){var l=c+(f&h|~f&t)+a+E;return(l<>>32-i)+f}function r(c,f,h,t,a,i,E){var l=c+(f&t|h&~t)+a+E;return(l<>>32-i)+f}function s(c,f,h,t,a,i,E){var l=c+(f^h^t)+a+E;return(l<>>32-i)+f}function o(c,f,h,t,a,i,E){var l=c+(h^(f|~t))+a+E;return(l<>>32-i)+f}D.MD5=u._createHelper(e),D.HmacMD5=u._createHmacHelper(e)})(Math),C.MD5})})(_0)),_0.exports}var b0={exports:{}},wr=b0.exports,_x;function Vx(){return _x||(_x=1,(function(R,W){(function(C,n){R.exports=n(L())})(wr,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=D.Hasher,u=n.algo,d=[],x=u.SHA1=w.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,B){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],h=r[4],t=0;t<80;t++){if(t<16)d[t]=e[B+t]|0;else{var a=d[t-3]^d[t-8]^d[t-14]^d[t-16];d[t]=a<<1|a>>>31}var i=(s<<5|s>>>27)+h+d[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,h=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+h|0},_doFinalize:function(){var e=this._data,B=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return B[s>>>5]|=128<<24-s%32,B[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),B[(s+64>>>9<<4)+15]=r,e.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var e=w.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA1=w._createHelper(x),n.HmacSHA1=w._createHmacHelper(x)})(),C.SHA1})})(b0)),b0.exports}var y0={exports:{}},Hr=y0.exports,bx;function ex(){return bx||(bx=1,(function(R,W){(function(C,n){R.exports=n(L())})(Hr,function(C){return(function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=[],e=[];(function(){function s(h){for(var t=n.sqrt(h),a=2;a<=t;a++)if(!(h%a))return!1;return!0}function o(h){return(h-(h|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(n.pow(c,1/2))),e[f]=o(n.pow(c,1/3)),f++),c++})();var B=[],r=d.SHA256=u.extend({_doReset:function(){this._hash=new w.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],h=c[1],t=c[2],a=c[3],i=c[4],E=c[5],l=c[6],A=c[7],_=0;_<64;_++){if(_<16)B[_]=s[o+_]|0;else{var S=B[_-15],v=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=B[_-2],y=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;B[_]=v+B[_-7]+y+B[_-16]}var g=i&E^~i&l,z=f&h^f&t^h&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),$=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),X=A+$+g+e[_]+B[_],T=q+z;A=l,l=E,E=i,i=a+X|0,a=t,t=h,h=f,f=X+T|0}c[0]=c[0]+f|0,c[1]=c[1]+h|0,c[2]=c[2]+t|0,c[3]=c[3]+a|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+l|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=n.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=u.clone.call(this);return s._hash=this._hash.clone(),s}});D.SHA256=u._createHelper(r),D.HmacSHA256=u._createHmacHelper(r)})(Math),C.SHA256})})(y0)),y0.exports}var g0={exports:{}},mr=g0.exports,yx;function Sr(){return yx||(yx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),ex())})(mr,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=n.algo,u=w.SHA256,d=w.SHA224=u.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=u._doFinalize.call(this);return x.sigBytes-=4,x}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)})(),C.SHA224})})(g0)),g0.exports}var k0={exports:{}},Rr=k0.exports,gx;function Jx(){return gx||(gx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),V0())})(Rr,function(C){return(function(){var n=C,D=n.lib,p=D.Hasher,w=n.x64,u=w.Word,d=w.WordArray,x=n.algo;function e(){return u.create.apply(u,arguments)}var B=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=p.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,h=f[0],t=f[1],a=f[2],i=f[3],E=f[4],l=f[5],A=f[6],_=f[7],S=h.high,v=h.low,F=t.high,y=t.low,g=a.high,z=a.low,q=i.high,$=i.low,X=E.high,T=E.low,N=l.high,I=l.low,b=A.high,H=A.low,m=_.high,k=_.low,K=S,O=v,G=F,P=y,o0=g,t0=z,J0=q,i0=$,j=X,Z=T,B0=N,f0=I,d0=b,s0=H,xx=m,c0=k,M=0;M<80;M++){var Y,V,h0=r[M];if(M<16)V=h0.high=o[c+M*2]|0,Y=h0.low=o[c+M*2+1]|0;else{var ax=r[M-15],a0=ax.high,v0=ax.low,xr=(a0>>>1|v0<<31)^(a0>>>8|v0<<24)^a0>>>7,nx=(v0>>>1|a0<<31)^(v0>>>8|a0<<24)^(v0>>>7|a0<<25),ox=r[M-2],n0=ox.high,u0=ox.low,rr=(n0>>>19|u0<<13)^(n0<<3|u0>>>29)^n0>>>6,ix=(u0>>>19|n0<<13)^(u0<<3|n0>>>29)^(u0>>>6|n0<<26),fx=r[M-7],er=fx.high,tr=fx.low,sx=r[M-16],ar=sx.high,cx=sx.low;Y=nx+tr,V=xr+er+(Y>>>0>>0?1:0),Y=Y+ix,V=V+rr+(Y>>>0>>0?1:0),Y=Y+cx,V=V+ar+(Y>>>0>>0?1:0),h0.high=V,h0.low=Y}var nr=j&B0^~j&d0,vx=Z&f0^~Z&s0,or=K&G^K&o0^G&o0,ir=O&P^O&t0^P&t0,fr=(K>>>28|O<<4)^(K<<30|O>>>2)^(K<<25|O>>>7),ux=(O>>>28|K<<4)^(O<<30|K>>>2)^(O<<25|K>>>7),sr=(j>>>14|Z<<18)^(j>>>18|Z<<14)^(j<<23|Z>>>9),cr=(Z>>>14|j<<18)^(Z>>>18|j<<14)^(Z<<23|j>>>9),Bx=B[M],vr=Bx.high,dx=Bx.low,Q=c0+cr,J=xx+sr+(Q>>>0>>0?1:0),Q=Q+vx,J=J+nr+(Q>>>0>>0?1:0),Q=Q+dx,J=J+vr+(Q>>>0>>0?1:0),Q=Q+Y,J=J+V+(Q>>>0>>0?1:0),hx=ux+ir,ur=fr+or+(hx>>>0>>0?1:0);xx=d0,c0=s0,d0=B0,s0=f0,B0=j,f0=Z,Z=i0+Q|0,j=J0+J+(Z>>>0>>0?1:0)|0,J0=o0,i0=t0,o0=G,t0=P,G=K,P=O,O=Q+hx|0,K=J+ur+(O>>>0>>0?1:0)|0}v=h.low=v+O,h.high=S+K+(v>>>0>>0?1:0),y=t.low=y+P,t.high=F+G+(y>>>0

>>0?1:0),z=a.low=z+t0,a.high=g+o0+(z>>>0>>0?1:0),$=i.low=$+i0,i.high=q+J0+($>>>0>>0?1:0),T=E.low=T+Z,E.high=X+j+(T>>>0>>0?1:0),I=l.low=I+f0,l.high=N+B0+(I>>>0>>0?1:0),H=A.low=H+s0,A.high=b+d0+(H>>>0>>0?1:0),k=_.low=k+c0,_.high=m+xx+(k>>>0>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,h=o.sigBytes*8;c[h>>>5]|=128<<24-h%32,c[(h+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(h+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=p.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});n.SHA512=p._createHelper(s),n.HmacSHA512=p._createHmacHelper(s)})(),C.SHA512})})(k0)),k0.exports}var w0={exports:{}},zr=w0.exports,kx;function qr(){return kx||(kx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),V0(),Jx())})(zr,function(C){return(function(){var n=C,D=n.x64,p=D.Word,w=D.WordArray,u=n.algo,d=u.SHA512,x=u.SHA384=d.extend({_doReset:function(){this._hash=new w.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var e=d._doFinalize.call(this);return e.sigBytes-=16,e}});n.SHA384=d._createHelper(x),n.HmacSHA384=d._createHmacHelper(x)})(),C.SHA384})})(w0)),w0.exports}var H0={exports:{}},$r=H0.exports,wx;function Pr(){return wx||(wx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),V0())})($r,function(C){return(function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.x64,x=d.Word,e=D.algo,B=[],r=[],s=[];(function(){for(var f=1,h=0,t=0;t<24;t++){B[f+5*h]=(t+1)*(t+2)/2%64;var a=h%5,i=(2*f+3*h)%5;f=a,h=i}for(var f=0;f<5;f++)for(var h=0;h<5;h++)r[f+5*h]=h+(2*f+3*h)%5*5;for(var E=1,l=0;l<24;l++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var v=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;var A=t[i];A.high^=l,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var v=0,F=0,y=0;y<5;y++){var A=t[S+5*y];v^=A.high,F^=A.low}var g=o[S];g.high=v,g.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],$=q.high,X=q.low,v=z.high^($<<1|X>>>31),F=z.low^(X<<1|$>>>31),y=0;y<5;y++){var A=t[S+5*y];A.high^=v,A.low^=F}for(var T=1;T<25;T++){var v,F,A=t[T],N=A.high,I=A.low,b=B[T];b<32?(v=N<>>32-b,F=I<>>32-b):(v=I<>>64-b,F=N<>>64-b);var H=o[r[T]];H.high=v,H.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var y=0;y<5;y++){var T=S+5*y,A=t[T],K=o[T],O=o[(S+1)%5+5*y],G=o[(S+2)%5+5*y];A.high=K.high^~O.high&G.high,A.low=K.low^~O.low&G.low}var A=t[0],P=s[_];A.high^=P.high,A.low^=P.low}},_doFinalize:function(){var f=this._data,h=f.words;this._nDataBytes*8;var t=f.sigBytes*8,a=this.blockSize*32;h[t>>>5]|=1<<24-t%32,h[(n.ceil((t+1)/a)*a>>>5)-1]|=128,f.sigBytes=h.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,l=E/8,A=[],_=0;_>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(v)}return new w.init(A,E)},clone:function(){for(var f=u.clone.call(this),h=f._state=this._state.slice(0),t=0;t<25;t++)h[t]=h[t].clone();return f}});D.SHA3=u._createHelper(c),D.HmacSHA3=u._createHmacHelper(c)})(Math),C.SHA3})})(H0)),H0.exports}var m0={exports:{}},Wr=m0.exports,Hx;function Lr(){return Hx||(Hx=1,(function(R,W){(function(C,n){R.exports=n(L())})(Wr,function(C){return(function(n){var D=C,p=D.lib,w=p.WordArray,u=p.Hasher,d=D.algo,x=w.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=w.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),B=w.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=w.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),s=w.create([0,1518500249,1859775393,2400959708,2840853838]),o=w.create([1352829926,1548603684,1836072691,2053994217,0]),c=d.RIPEMD160=u.extend({_doReset:function(){this._hash=w.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,A){for(var _=0;_<16;_++){var S=A+_,v=l[S];l[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var F=this._hash.words,y=s.words,g=o.words,z=x.words,q=e.words,$=B.words,X=r.words,T,N,I,b,H,m,k,K,O,G;m=T=F[0],k=N=F[1],K=I=F[2],O=b=F[3],G=H=F[4];for(var P,_=0;_<80;_+=1)P=T+l[A+z[_]]|0,_<16?P+=f(N,I,b)+y[0]:_<32?P+=h(N,I,b)+y[1]:_<48?P+=t(N,I,b)+y[2]:_<64?P+=a(N,I,b)+y[3]:P+=i(N,I,b)+y[4],P=P|0,P=E(P,$[_]),P=P+H|0,T=H,H=b,b=E(I,10),I=N,N=P,P=m+l[A+q[_]]|0,_<16?P+=i(k,K,O)+g[0]:_<32?P+=a(k,K,O)+g[1]:_<48?P+=t(k,K,O)+g[2]:_<64?P+=h(k,K,O)+g[3]:P+=f(k,K,O)+g[4],P=P|0,P=E(P,X[_]),P=P+G|0,m=G,G=O,O=E(K,10),K=k,k=P;P=F[1]+I+O|0,F[1]=F[2]+b+G|0,F[2]=F[3]+H+m|0,F[3]=F[4]+T+k|0,F[4]=F[0]+N+K|0,F[0]=P},_doFinalize:function(){var l=this._data,A=l.words,_=this._nDataBytes*8,S=l.sigBytes*8;A[S>>>5]|=128<<24-S%32,A[(S+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,l.sigBytes=(A.length+1)*4,this._process();for(var v=this._hash,F=v.words,y=0;y<5;y++){var g=F[y];F[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return v},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});function f(l,A,_){return l^A^_}function h(l,A,_){return l&A|~l&_}function t(l,A,_){return(l|~A)^_}function a(l,A,_){return l&_|A&~_}function i(l,A,_){return l^(A|~_)}function E(l,A){return l<>>32-A}D.RIPEMD160=u._createHelper(c),D.HmacRIPEMD160=u._createHmacHelper(c)})(),C.RIPEMD160})})(m0)),m0.exports}var S0={exports:{}},Tr=S0.exports,mx;function tx(){return mx||(mx=1,(function(R,W){(function(C,n){R.exports=n(L())})(Tr,function(C){(function(){var n=C,D=n.lib,p=D.Base,w=n.enc,u=w.Utf8,d=n.algo;d.HMAC=p.extend({init:function(x,e){x=this._hasher=new x.init,typeof e=="string"&&(e=u.parse(e));var B=x.blockSize,r=B*4;e.sigBytes>r&&(e=x.finalize(e)),e.clamp();for(var s=this._oKey=e.clone(),o=this._iKey=e.clone(),c=s.words,f=o.words,h=0;h>>2]&255;v.sigBytes-=F}};p.BlockCipher=s.extend({cfg:s.cfg.extend({mode:f,padding:t}),reset:function(){var v;s.reset.call(this);var F=this.cfg,y=F.iv,g=F.mode;this._xformMode==this._ENC_XFORM_MODE?v=g.createEncryptor:(v=g.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,y&&y.words):(this._mode=v.call(g,this,y&&y.words),this._mode.__creator=v)},_doProcessBlock:function(v,F){this._mode.processBlock(v,F)},_doFinalize:function(){var v,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),F.unpad(v)),v},blockSize:128/32});var a=p.CipherParams=w.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),i=D.format={},E=i.OpenSSL={stringify:function(v){var F,y=v.ciphertext,g=v.salt;return g?F=u.create([1398893684,1701076831]).concat(g).concat(y):F=y,F.toString(e)},parse:function(v){var F,y=e.parse(v),g=y.words;return g[0]==1398893684&&g[1]==1701076831&&(F=u.create(g.slice(2,4)),g.splice(0,4),y.sigBytes-=16),a.create({ciphertext:y,salt:F})}},l=p.SerializableCipher=w.extend({cfg:w.extend({format:E}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=v.createEncryptor(y,g),q=z.finalize(F),$=z.cfg;return a.create({ciphertext:q,key:y,iv:$.iv,algorithm:v,mode:$.mode,padding:$.padding,blockSize:v.blockSize,formatter:g.format})},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=v.createDecryptor(y,g).finalize(F.ciphertext);return z},_parse:function(v,F){return typeof v=="string"?F.parse(v,this):v}}),A=D.kdf={},_=A.OpenSSL={execute:function(v,F,y,g,z){if(g||(g=u.random(64/8)),z)var q=r.create({keySize:F+y,hasher:z}).compute(v,g);else var q=r.create({keySize:F+y}).compute(v,g);var $=u.create(q.words.slice(F),y*4);return q.sigBytes=F*4,a.create({key:q,iv:$,salt:g})}},S=p.PasswordBasedCipher=l.extend({cfg:l.cfg.extend({kdf:_}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=g.kdf.execute(y,v.keySize,v.ivSize,g.salt,g.hasher);g.iv=z.iv;var q=l.encrypt.call(this,v,F,z.key,g);return q.mixIn(z),q},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=g.kdf.execute(y,v.keySize,v.ivSize,F.salt,g.hasher);g.iv=z.iv;var q=l.decrypt.call(this,v,F,z.key,g);return q}})})()})})(q0)),q0.exports}var $0={exports:{}},Kr=$0.exports,qx;function Ur(){return qx||(qx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(Kr,function(C){return C.mode.CFB=(function(){var n=C.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(p,w){var u=this._cipher,d=u.blockSize;D.call(this,p,w,d,u),this._prevBlock=p.slice(w,w+d)}}),n.Decryptor=n.extend({processBlock:function(p,w){var u=this._cipher,d=u.blockSize,x=p.slice(w,w+d);D.call(this,p,w,d,u),this._prevBlock=x}});function D(p,w,u,d){var x,e=this._iv;e?(x=e.slice(0),this._iv=void 0):x=this._prevBlock,d.encryptBlock(x,0);for(var B=0;B>24&255)===255){var d=u>>16&255,x=u>>8&255,e=u&255;d===255?(d=0,x===255?(x=0,e===255?e=0:++e):++x):++d,u=0,u+=d<<16,u+=x<<8,u+=e}else u+=1<<24;return u}function p(u){return(u[0]=D(u[0]))===0&&(u[1]=D(u[1])),u}var w=n.Encryptor=n.extend({processBlock:function(u,d){var x=this._cipher,e=x.blockSize,B=this._iv,r=this._counter;B&&(r=this._counter=B.slice(0),this._iv=void 0),p(r);var s=r.slice(0);x.encryptBlock(s,0);for(var o=0;o>>2]|=u<<24-d%4*8,n.sigBytes+=u},unpad:function(n){var D=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=D}},C.pad.Ansix923})})(I0)),I0.exports}var N0={exports:{}},ee=N0.exports,Ix;function te(){return Ix||(Ix=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(ee,function(C){return C.pad.Iso10126={pad:function(n,D){var p=D*4,w=p-n.sigBytes%p;n.concat(C.lib.WordArray.random(w-1)).concat(C.lib.WordArray.create([w<<24],1))},unpad:function(n){var D=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=D}},C.pad.Iso10126})})(N0)),N0.exports}var O0={exports:{}},ae=O0.exports,Nx;function ne(){return Nx||(Nx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(ae,function(C){return C.pad.Iso97971={pad:function(n,D){n.concat(C.lib.WordArray.create([2147483648],1)),C.pad.ZeroPadding.pad(n,D)},unpad:function(n){C.pad.ZeroPadding.unpad(n),n.sigBytes--}},C.pad.Iso97971})})(O0)),O0.exports}var X0={exports:{}},oe=X0.exports,Ox;function ie(){return Ox||(Ox=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(oe,function(C){return C.pad.ZeroPadding={pad:function(n,D){var p=D*4;n.clamp(),n.sigBytes+=p-(n.sigBytes%p||p)},unpad:function(n){for(var D=n.words,p=n.sigBytes-1,p=n.sigBytes-1;p>=0;p--)if(D[p>>>2]>>>24-p%4*8&255){n.sigBytes=p+1;break}}},C.pad.ZeroPadding})})(X0)),X0.exports}var K0={exports:{}},fe=K0.exports,Xx;function se(){return Xx||(Xx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(fe,function(C){return C.pad.NoPadding={pad:function(){},unpad:function(){}},C.pad.NoPadding})})(K0)),K0.exports}var U0={exports:{}},ce=U0.exports,Kx;function ve(){return Kx||(Kx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),U())})(ce,function(C){return(function(n){var D=C,p=D.lib,w=p.CipherParams,u=D.enc,d=u.Hex,x=D.format;x.Hex={stringify:function(e){return e.ciphertext.toString(d)},parse:function(e){var B=d.parse(e);return w.create({ciphertext:B})}}})(),C.format.Hex})})(U0)),U0.exports}var G0={exports:{}},ue=G0.exports,Ux;function Be(){return Ux||(Ux=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(ue,function(C){return(function(){var n=C,D=n.lib,p=D.BlockCipher,w=n.algo,u=[],d=[],x=[],e=[],B=[],r=[],s=[],o=[],c=[],f=[];(function(){for(var a=[],i=0;i<256;i++)i<128?a[i]=i<<1:a[i]=i<<1^283;for(var E=0,l=0,i=0;i<256;i++){var A=l^l<<1^l<<2^l<<3^l<<4;A=A>>>8^A&255^99,u[E]=A,d[A]=E;var _=a[E],S=a[_],v=a[S],F=a[A]*257^A*16843008;x[E]=F<<24|F>>>8,e[E]=F<<16|F>>>16,B[E]=F<<8|F>>>24,r[E]=F;var F=v*16843009^S*65537^_*257^E*16843008;s[A]=F<<24|F>>>8,o[A]=F<<16|F>>>16,c[A]=F<<8|F>>>24,f[A]=F,E?(E=_^a[a[a[v^_]]],l^=a[a[l]]):E=l=1}})();var h=[0,1,2,4,8,16,32,64,128,27,54],t=w.AES=p.extend({_doReset:function(){var a;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var i=this._keyPriorReset=this._key,E=i.words,l=i.sigBytes/4,A=this._nRounds=l+6,_=(A+1)*4,S=this._keySchedule=[],v=0;v<_;v++)v6&&v%l==4&&(a=u[a>>>24]<<24|u[a>>>16&255]<<16|u[a>>>8&255]<<8|u[a&255]):(a=a<<8|a>>>24,a=u[a>>>24]<<24|u[a>>>16&255]<<16|u[a>>>8&255]<<8|u[a&255],a^=h[v/l|0]<<24),S[v]=S[v-l]^a);for(var F=this._invKeySchedule=[],y=0;y<_;y++){var v=_-y;if(y%4)var a=S[v];else var a=S[v-4];y<4||v<=4?F[y]=a:F[y]=s[u[a>>>24]]^o[u[a>>>16&255]]^c[u[a>>>8&255]]^f[u[a&255]]}}},encryptBlock:function(a,i){this._doCryptBlock(a,i,this._keySchedule,x,e,B,r,u)},decryptBlock:function(a,i){var E=a[i+1];a[i+1]=a[i+3],a[i+3]=E,this._doCryptBlock(a,i,this._invKeySchedule,s,o,c,f,d);var E=a[i+1];a[i+1]=a[i+3],a[i+3]=E},_doCryptBlock:function(a,i,E,l,A,_,S,v){for(var F=this._nRounds,y=a[i]^E[0],g=a[i+1]^E[1],z=a[i+2]^E[2],q=a[i+3]^E[3],$=4,X=1;X>>24]^A[g>>>16&255]^_[z>>>8&255]^S[q&255]^E[$++],N=l[g>>>24]^A[z>>>16&255]^_[q>>>8&255]^S[y&255]^E[$++],I=l[z>>>24]^A[q>>>16&255]^_[y>>>8&255]^S[g&255]^E[$++],b=l[q>>>24]^A[y>>>16&255]^_[g>>>8&255]^S[z&255]^E[$++];y=T,g=N,z=I,q=b}var T=(v[y>>>24]<<24|v[g>>>16&255]<<16|v[z>>>8&255]<<8|v[q&255])^E[$++],N=(v[g>>>24]<<24|v[z>>>16&255]<<16|v[q>>>8&255]<<8|v[y&255])^E[$++],I=(v[z>>>24]<<24|v[q>>>16&255]<<16|v[y>>>8&255]<<8|v[g&255])^E[$++],b=(v[q>>>24]<<24|v[y>>>16&255]<<16|v[g>>>8&255]<<8|v[z&255])^E[$++];a[i]=T,a[i+1]=N,a[i+2]=I,a[i+3]=b},keySize:256/32});n.AES=p._createHelper(t)})(),C.AES})})(G0)),G0.exports}var Z0={exports:{}},de=Z0.exports,Gx;function he(){return Gx||(Gx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(de,function(C){return(function(){var n=C,D=n.lib,p=D.WordArray,w=D.BlockCipher,u=n.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],x=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=u.DES=w.extend({_doReset:function(){for(var h=this._key,t=h.words,a=[],i=0;i<56;i++){var E=d[i]-1;a[i]=t[E>>>5]>>>31-E%32&1}for(var l=this._subKeys=[],A=0;A<16;A++){for(var _=l[A]=[],S=e[A],i=0;i<24;i++)_[i/6|0]|=a[(x[i]-1+S)%28]<<31-i%6,_[4+(i/6|0)]|=a[28+(x[i+24]-1+S)%28]<<31-i%6;_[0]=_[0]<<1|_[0]>>>31;for(var i=1;i<7;i++)_[i]=_[i]>>>(i-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var v=this._invSubKeys=[],i=0;i<16;i++)v[i]=l[15-i]},encryptBlock:function(h,t){this._doCryptBlock(h,t,this._subKeys)},decryptBlock:function(h,t){this._doCryptBlock(h,t,this._invSubKeys)},_doCryptBlock:function(h,t,a){this._lBlock=h[t],this._rBlock=h[t+1],o.call(this,4,252645135),o.call(this,16,65535),c.call(this,2,858993459),c.call(this,8,16711935),o.call(this,1,1431655765);for(var i=0;i<16;i++){for(var E=a[i],l=this._lBlock,A=this._rBlock,_=0,S=0;S<8;S++)_|=B[S][((A^E[S])&r[S])>>>0];this._lBlock=A,this._rBlock=l^_}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,o.call(this,1,1431655765),c.call(this,8,16711935),c.call(this,2,858993459),o.call(this,16,65535),o.call(this,4,252645135),h[t]=this._lBlock,h[t+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function o(h,t){var a=(this._lBlock>>>h^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<>>h^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<192.");var a=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),E=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=s.createEncryptor(p.create(a)),this._des2=s.createEncryptor(p.create(i)),this._des3=s.createEncryptor(p.create(E))},encryptBlock:function(h,t){this._des1.encryptBlock(h,t),this._des2.decryptBlock(h,t),this._des3.encryptBlock(h,t)},decryptBlock:function(h,t){this._des3.decryptBlock(h,t),this._des2.encryptBlock(h,t),this._des1.decryptBlock(h,t)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=w._createHelper(f)})(),C.TripleDES})})(Z0)),Z0.exports}var Q0={exports:{}},Ce=Q0.exports,Zx;function le(){return Zx||(Zx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Ce,function(C){return(function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=w.RC4=p.extend({_doReset:function(){for(var e=this._key,B=e.words,r=e.sigBytes,s=this._S=[],o=0;o<256;o++)s[o]=o;for(var o=0,c=0;o<256;o++){var f=o%r,h=B[f>>>2]>>>24-f%4*8&255;c=(c+s[o]+h)%256;var t=s[o];s[o]=s[c],s[c]=t}this._i=this._j=0},_doProcessBlock:function(e,B){e[B]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var e=this._S,B=this._i,r=this._j,s=0,o=0;o<4;o++){B=(B+1)%256,r=(r+e[B])%256;var c=e[B];e[B]=e[r],e[r]=c,s|=e[(e[B]+e[r])%256]<<24-o*8}return this._i=B,this._j=r,s}n.RC4=p._createHelper(u);var x=w.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)d.call(this)}});n.RC4Drop=p._createHelper(x)})(),C.RC4})})(Q0)),Q0.exports}var Y0={exports:{}},Ee=Y0.exports,Qx;function Ae(){return Qx||(Qx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Ee,function(C){return(function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=[],d=[],x=[],e=w.Rabbit=p.extend({_doReset:function(){for(var r=this._key.words,s=this.cfg.iv,o=0;o<4;o++)r[o]=(r[o]<<8|r[o]>>>24)&16711935|(r[o]<<24|r[o]>>>8)&4278255360;var c=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],f=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var o=0;o<4;o++)B.call(this);for(var o=0;o<8;o++)f[o]^=c[o+4&7];if(s){var h=s.words,t=h[0],a=h[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,l=i>>>16|E&4294901760,A=E<<16|i&65535;f[0]^=i,f[1]^=l,f[2]^=E,f[3]^=A,f[4]^=i,f[5]^=l,f[6]^=E,f[7]^=A;for(var o=0;o<4;o++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0>>0?1:0)|0,this._b=s[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,h=c>>>16,t=((f*f>>>17)+f*h>>>15)+h*h,a=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^a}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}n.Rabbit=p._createHelper(e)})(),C.Rabbit})})(Y0)),Y0.exports}var j0={exports:{}},Fe=j0.exports,Yx;function pe(){return Yx||(Yx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(Fe,function(C){return(function(){var n=C,D=n.lib,p=D.StreamCipher,w=n.algo,u=[],d=[],x=[],e=w.RabbitLegacy=p.extend({_doReset:function(){var r=this._key.words,s=this.cfg.iv,o=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],c=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var f=0;f<4;f++)B.call(this);for(var f=0;f<8;f++)c[f]^=o[f+4&7];if(s){var h=s.words,t=h[0],a=h[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,l=i>>>16|E&4294901760,A=E<<16|i&65535;c[0]^=i,c[1]^=l,c[2]^=E,c[3]^=A,c[4]^=i,c[5]^=l,c[6]^=E,c[7]^=A;for(var f=0;f<4;f++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0>>0?1:0)|0,this._b=s[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,h=c>>>16,t=((f*f>>>17)+f*h>>>15)+h*h,a=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^a}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}n.RabbitLegacy=p._createHelper(e)})(),C.RabbitLegacy})})(j0)),j0.exports}var M0={exports:{}},De=M0.exports,jx;function _e(){return jx||(jx=1,(function(R,W){(function(C,n,D){R.exports=n(L(),r0(),e0(),x0(),U())})(De,function(C){return(function(){var n=C,D=n.lib,p=D.BlockCipher,w=n.algo;const u=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],x=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var e={pbox:[],sbox:[]};function B(f,h){let t=h>>24&255,a=h>>16&255,i=h>>8&255,E=h&255,l=f.sbox[0][t]+f.sbox[1][a];return l=l^f.sbox[2][i],l=l+f.sbox[3][E],l}function r(f,h,t){let a=h,i=t,E;for(let l=0;l1;--l)a=a^f.pbox[l],i=B(f,a)^i,E=a,a=i,i=E;return E=a,a=i,i=E,i=i^f.pbox[1],a=a^f.pbox[0],{left:a,right:i}}function o(f,h,t){for(let A=0;A<4;A++){f.sbox[A]=[];for(let _=0;_<256;_++)f.sbox[A][_]=x[A][_]}let a=0;for(let A=0;A=t&&(a=0);let i=0,E=0,l=0;for(let A=0;A{if(Array.isArray(r))y(r,e,t);else if(typeof r=="function"){const f=r(e);Array.isArray(f)?y(f,e,t):f&&t(f)}else r&&t(r)})}function A(n,e,t,r,f){const u=n.$;let i="";if(!u||typeof u=="string")h(u)?i=u:e.push(u);else if(typeof u=="function"){const s=u({context:r.context,props:f});h(s)?i=s:e.push(s)}else if(u.before&&u.before(r.context),!u.$||typeof u.$=="string")h(u.$)?i=u.$:e.push(u.$);else if(u.$){const s=u.$({context:r.context,props:f});h(s)?i=s:e.push(s)}const o=k(e),c=E(o,n.props,r,f);i?t.push(`${i} {`):c.length&&t.push(c),n.children&&y(n.children,{context:r.context,props:f},s=>{if(typeof s=="string"){const l=E(o,{raw:s},r,f);t.push(l)}else A(s,e,t,r,f)}),e.pop(),i&&t.push("}"),u&&u.after&&u.after(r.context)}function M(n,e,t){const r=[];return A(n,[],r,e,t),r.join(` -`)}typeof window<"u"&&(window.__cssrContext={});function O(n,e,t,r){const{els:f}=e;if(t===void 0)f.forEach(x),e.els=[];else{const u=d(t,r);u&&f.includes(u)&&(x(u),e.els=f.filter(i=>i!==u))}}function g(n,e){n.push(e)}function T(n,e,t,r,f,u,i,o,c){let s;if(t===void 0&&(s=e.render(r),t=C(s)),c){c.adapter(t,s??e.render(r));return}o===void 0&&(o=document.head);const l=d(t,o);if(l!==null&&!u)return l;const a=l??q(t);if(s===void 0&&(s=e.render(r)),a.textContent=s,l!==null)return l;if(i){const m=o.querySelector(`meta[name="${i}"]`);if(m)return o.insertBefore(a,m),g(e.els,a),a}return f?o.insertBefore(a,o.querySelector("style, link")):o.appendChild(a),g(e.els,a),a}function W(n){return M(this,this.instance,n)}function _(n={}){const{id:e,ssr:t,props:r,head:f=!1,force:u=!1,anchorMetaName:i,parent:o}=n;return T(this.instance,this,e,r,f,u,i,o,t)}function U(n={}){const{id:e,parent:t}=n;O(this.instance,this,e,t)}const p=function(n,e,t,r){return{instance:n,$:e,props:t,children:r,els:[],render:W,mount:_,unmount:U}},Z=function(n,e,t,r){return Array.isArray(e)?p(n,{$:null},null,e):Array.isArray(t)?p(n,e,null,t):Array.isArray(r)?p(n,e,t,r):p(n,e,t,null)};function D(n={}){const e={c:(...t)=>Z(e,...t),use:(t,...r)=>t.install(e,...r),find:d,context:{},config:n};return e}function F(n,e){if(n===void 0)return!1;if(e){const{context:{ids:t}}=e;return t.has(n)}return d(n)!==null}export{D as C,F as e}; +`)}typeof window<"u"&&(window.__cssrContext={});function O(n,e,t,r){const{els:f}=e;if(t===void 0)f.forEach(x),e.els=[];else{const u=d(t,r);u&&f.includes(u)&&(x(u),e.els=f.filter(i=>i!==u))}}function g(n,e){n.push(e)}function T(n,e,t,r,f,u,i,o,c){let s;if(t===void 0&&(s=e.render(r),t=C(s)),c){c.adapter(t,s??e.render(r));return}o===void 0&&(o=document.head);const l=d(t,o);if(l!==null&&!u)return l;const a=l??q(t);if(s===void 0&&(s=e.render(r)),a.textContent=s,l!==null)return l;if(i){const m=o.querySelector(`meta[name="${i}"]`);if(m)return o.insertBefore(a,m),g(e.els,a),a}return f?o.insertBefore(a,o.querySelector("style, link")):o.appendChild(a),g(e.els,a),a}function W(n){return M(this,this.instance,n)}function _(n={}){const{id:e,ssr:t,props:r,head:f=!1,force:u=!1,anchorMetaName:i,parent:o}=n;return T(this.instance,this,e,r,f,u,i,o,t)}function U(n={}){const{id:e,parent:t}=n;O(this.instance,this,e,t)}const p=function(n,e,t,r){return{instance:n,$:e,props:t,children:r,els:[],render:W,mount:_,unmount:U}},Z=function(n,e,t,r){return Array.isArray(e)?p(n,{$:null},null,e):Array.isArray(t)?p(n,e,null,t):Array.isArray(r)?p(n,e,t,r):p(n,e,t,null)};function D(n={}){const e={c:((...t)=>Z(e,...t)),use:(t,...r)=>t.install(e,...r),find:d,context:{},config:n};return e}function F(n,e){if(n===void 0)return!1;if(e){const{context:{ids:t}}=e;return t.has(n)}return d(n)!==null}export{D as C,F as e}; diff --git a/js/css-render@0.15.14-C5toWlUr.js.gz b/js/css-render@0.15.14-DTtBB2Mk.js.gz similarity index 93% rename from js/css-render@0.15.14-C5toWlUr.js.gz rename to js/css-render@0.15.14-DTtBB2Mk.js.gz index 1ac4b0a5..2fd1e31a 100644 Binary files a/js/css-render@0.15.14-C5toWlUr.js.gz and b/js/css-render@0.15.14-DTtBB2Mk.js.gz differ diff --git a/js/currency.js@2.0.4-9OAR_aOO.js b/js/currency.js@2.0.4-9OAR_aOO.js deleted file mode 100644 index 775283d6..00000000 --- a/js/currency.js@2.0.4-9OAR_aOO.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * currency.js - v2.0.4 - * http://scurker.github.io/currency.js - * - * Copyright (c) 2021 Jason Wilson - * Released under MIT license - */var m={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:y,fromCents:!1},h=function(t){return Math.round(t)},d=function(t){return Math.pow(10,t)},V=function(t,e){return h(t/e)*e},b=/(\d)(?=(\d{3})+\b)/g,_=/(\d)(?=(\d\d)+\d\b)/g;function a(i,t){var e=this;if(!(e instanceof a))return new a(i,t);var r=Object.assign({},m,t),n=d(r.precision),s=f(i,r);e.intValue=s,e.value=s/n,r.increment=r.increment||1/n,r.useVedic?r.groups=_:r.groups=b,this.s=r,this.p=n}function f(i,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=0,n=t.decimal,s=t.errorOnInvalid,c=t.precision,l=t.fromCents,u=d(c),o=typeof i=="number",p=i instanceof a;if(p&&l)return i.intValue;if(o||p)r=p?i.value:i;else if(typeof i=="string"){var g=new RegExp("[^-\\d"+n+"]","g"),v=new RegExp("\\"+n,"g");r=i.replace(/\((.*)\)/,"-$1").replace(g,"").replace(v,"."),r=r||0}else{if(s)throw Error("Invalid Input");r=0}return l||(r*=u,r=r.toFixed(4)),e?h(r):r}function y(i,t){var e=t.pattern,r=t.negativePattern,n=t.symbol,s=t.separator,c=t.decimal,l=t.groups,u=(""+i).replace(/^-/,"").split("."),o=u[0],p=u[1];return(i.value>=0?e:r).replace("!",n).replace("#",o.replace(l,"$1"+s)+(p?c+p:""))}a.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return a((e+=f(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return a((e-=f(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return a((e*=t)/(r.fromCents?1:d(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return a(e/=f(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,s=[],c=Math[e>=0?"floor":"ceil"](e/t),l=Math.abs(e-c*t),u=n.fromCents?1:r;t!==0;t--){var o=a(c/u,n);l-- >0&&(o=o[e>=0?"add":"subtract"](1/u)),s.push(o)}return s},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,e=this.p;return~~(t%e)},format:function(t){var e=this.s;return typeof t=="function"?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t=this.intValue,e=this.p,r=this.s;return V(t/e,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};export{a as c}; diff --git a/js/currency.js@2.0.4-9OAR_aOO.js.gz b/js/currency.js@2.0.4-9OAR_aOO.js.gz deleted file mode 100644 index 7e773391..00000000 Binary files a/js/currency.js@2.0.4-9OAR_aOO.js.gz and /dev/null differ diff --git a/js/currency.js@2.0.4-BSkspdt3.js b/js/currency.js@2.0.4-BSkspdt3.js new file mode 100644 index 00000000..091a9d02 --- /dev/null +++ b/js/currency.js@2.0.4-BSkspdt3.js @@ -0,0 +1 @@ +var m={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:y,fromCents:!1},h=function(t){return Math.round(t)},d=function(t){return Math.pow(10,t)},V=function(t,e){return h(t/e)*e},b=/(\d)(?=(\d{3})+\b)/g,_=/(\d)(?=(\d\d)+\d\b)/g;function a(i,t){var e=this;if(!(e instanceof a))return new a(i,t);var r=Object.assign({},m,t),n=d(r.precision),s=f(i,r);e.intValue=s,e.value=s/n,r.increment=r.increment||1/n,r.useVedic?r.groups=_:r.groups=b,this.s=r,this.p=n}function f(i,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=0,n=t.decimal,s=t.errorOnInvalid,c=t.precision,l=t.fromCents,u=d(c),o=typeof i=="number",p=i instanceof a;if(p&&l)return i.intValue;if(o||p)r=p?i.value:i;else if(typeof i=="string"){var g=new RegExp("[^-\\d"+n+"]","g"),v=new RegExp("\\"+n,"g");r=i.replace(/\((.*)\)/,"-$1").replace(g,"").replace(v,"."),r=r||0}else{if(s)throw Error("Invalid Input");r=0}return l||(r*=u,r=r.toFixed(4)),e?h(r):r}function y(i,t){var e=t.pattern,r=t.negativePattern,n=t.symbol,s=t.separator,c=t.decimal,l=t.groups,u=(""+i).replace(/^-/,"").split("."),o=u[0],p=u[1];return(i.value>=0?e:r).replace("!",n).replace("#",o.replace(l,"$1"+s)+(p?c+p:""))}a.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return a((e+=f(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return a((e-=f(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return a((e*=t)/(r.fromCents?1:d(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return a(e/=f(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,s=[],c=Math[e>=0?"floor":"ceil"](e/t),l=Math.abs(e-c*t),u=n.fromCents?1:r;t!==0;t--){var o=a(c/u,n);l-- >0&&(o=o[e>=0?"add":"subtract"](1/u)),s.push(o)}return s},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,e=this.p;return~~(t%e)},format:function(t){var e=this.s;return typeof t=="function"?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t=this.intValue,e=this.p,r=this.s;return V(t/e,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};export{a as c}; diff --git a/js/currency.js@2.0.4-BSkspdt3.js.gz b/js/currency.js@2.0.4-BSkspdt3.js.gz new file mode 100644 index 00000000..17af1fc3 Binary files /dev/null and b/js/currency.js@2.0.4-BSkspdt3.js.gz differ diff --git a/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js b/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js deleted file mode 100644 index e27b1b3e..00000000 --- a/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js +++ /dev/null @@ -1 +0,0 @@ -import{g as $,f as _}from"./date-fns@3.6.0-BMcLdxE-.js";function w(e,t,n){const r=$(),s=L(e,n.timeZone,n.locale??r.locale);return"formatToParts"in s?S(s,t):E(s,t)}function S(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function E(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function L(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function X(e,t){const n=k(t);return"formatToParts"in n?P(n,e):W(n,e)}const A={year:0,month:1,day:2,hour:3,minute:4,second:5};function P(e,t){try{const n=e.formatToParts(t),r=[];for(let s=0;s=0?i:1e3+i,r-s}function G(e,t,n){let s=e.getTime()-t;const i=g(new Date(s),n);if(t===i)return t;s-=i-t;const o=g(new Date(s),n);return i===o?i:Math.max(i,o)}function M(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const O={};function q(e){if(O[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),O[e]=!0,!0}catch{return!1}}const B=60*1e3,J={X:function(e,t,n){const r=T(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return x(r);case"XXXX":case"XX":return l(r);case"XXXXX":case"XXX":default:return l(r,":")}},x:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"x":return x(r);case"xxxx":case"xx":return l(r);case"xxxxx":case"xxx":default:return l(r,":")}},O:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Q(r,":");case"OOOO":default:return"GMT"+l(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return w("short",e,n);case"zzzz":default:return w("long",e,n)}}};function T(e,t){const n=e?I(e,t,!0)/B:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function m(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),s=m(Math.floor(r/60),2),i=m(Math.floor(r%60),2);return n+s+t+i}function x(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):l(e,t)}function Q(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.floor(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+m(i,2)}function z(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const V=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,N=36e5,C=6e4,K=2,u={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:V};function b(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?K:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=ee(e),{year:s,restDateString:i}=te(r.date,n),o=ne(i,s);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const a=o.getTime();let c=0,f;if(r.time&&(c=re(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(f=I(r.timeZone||t.timeZone,new Date(a+c)),isNaN(f))return new Date(NaN)}else f=z(new Date(a+c)),f=z(new Date(a+c+f));return new Date(a+c+f)}else return new Date(NaN)}function ee(e){const t={};let n=u.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=u.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const s=u.timeZone.exec(r);s?(t.time=r.replace(s[1],""),t.timeZone=s[1].trim()):t.time=r}return t}function te(e,t){if(e){const n=u.YYY[t],r=u.YYYYY[t];let s=u.YYYY.exec(e)||r.exec(e);if(s){const i=s[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(s=u.YY.exec(e)||n.exec(e),s){const i=s[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function ne(e,t){if(t===null)return null;let n,r,s;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=u.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,H(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=u.DDD.exec(e),i){n=new Date(0);const o=parseInt(i[1],10);return oe(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(i=u.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const o=parseInt(i[2],10);return H(t,r,o)?(n.setUTCFullYear(t,r,o),n):new Date(NaN)}if(i=u.Www.exec(e),i)return s=parseInt(i[1],10)-1,Z(s)?U(t,s):new Date(NaN);if(i=u.WwwD.exec(e),i){s=parseInt(i[1],10)-1;const o=parseInt(i[2],10)-1;return Z(s,o)?U(t,s,o):new Date(NaN)}return null}function re(e){let t,n,r=u.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),p(t)?t%24*N:NaN;if(r=u.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),p(t,n)?t%24*N+n*C:NaN;if(r=u.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const s=parseFloat(r[3].replace(",","."));return p(t,n,s)?t%24*N+n*C+s*1e3:NaN}return null}function U(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const s=r.getUTCDay()||7,i=t*7+n+1-s;return r.setUTCDate(r.getUTCDate()+i),r}const se=[31,28,31,30,31,30,31,31,30,31,30,31],ie=[31,29,31,30,31,30,31,31,30,31,30,31];function y(e){return e%400===0||e%4===0&&e%100!==0}function H(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=y(e);if(r&&n>ie[t]||!r&&n>se[t])return!1}return!0}function oe(e,t){if(t<1)return!1;const n=y(e);return!(n&&t>366||!n&&t>365)}function Z(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function p(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const ae=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ue(e,t,n={}){t=String(t);const r=t.match(ae);if(r){const s=b(n.originalDate||e,n);t=r.reduce(function(i,o){if(o[0]==="'")return i;const a=i.indexOf(o),c=i[a-1]==="'",f=i.replace(o,"'"+J[o[0]](s,o,n)+"'");return c?f.substring(0,a-1)+f.substring(a+1):f},t)}return _(e,t,n)}function ce(e,t,n){e=b(e,n);const r=I(t,e,!0),s=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),i.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),i}function le(e,t,n,r){return r={...r,timeZone:t,originalDate:e},ue(ce(e,t,{timeZone:r.timeZone}),n,r)}export{le as f}; diff --git a/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js.gz b/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js.gz deleted file mode 100644 index da67cf79..00000000 Binary files a/js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js.gz and /dev/null differ diff --git a/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js b/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js new file mode 100644 index 00000000..0f5fcc07 --- /dev/null +++ b/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js @@ -0,0 +1 @@ +import{g as $,f as _}from"./date-fns@4.1.0-D7sOP3Nv.js";function w(e,t,n){const r=$(),i=L(e,n.timeZone,n.locale??r.locale);return"formatToParts"in i?S(i,t):E(i,t)}function S(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function E(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function L(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function X(e,t){const n=k(t);return"formatToParts"in n?P(n,e):W(n,e)}const A={year:0,month:1,day:2,hour:3,minute:4,second:5};function P(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i=0?a:1e3+a,r-i}function G(e,t,n){let i=e.getTime()-t;const a=p(new Date(i),n);if(t===a)return t;i-=a-t;const s=p(new Date(i),n);return a===s?a:Math.max(a,s)}function M(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const O={};function q(e){if(O[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),O[e]=!0,!0}catch{return!1}}const B=60*1e3,J={X:function(e,t,n){const r=T(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return x(r);case"XXXX":case"XX":return l(r);case"XXXXX":case"XXX":default:return l(r,":")}},x:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"x":return x(r);case"xxxx":case"xx":return l(r);case"xxxxx":case"xxx":default:return l(r,":")}},O:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Q(r,":");case"OOOO":default:return"GMT"+l(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return w("short",e,n);case"zzzz":default:return w("long",e,n)}}};function T(e,t){const n=e?I(e,t,!0)/B:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function m(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),i=m(Math.floor(r/60),2),a=m(Math.floor(r%60),2);return n+i+t+a}function x(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):l(e,t)}function Q(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+m(a,2)}function z(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const V=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,N=36e5,C=6e4,K=2,u={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:V};function b(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?K:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=ee(e),{year:i,restDateString:a}=te(r.date,n),s=ne(a,i);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const o=s.getTime();let c=0,f;if(r.time&&(c=re(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(f=I(r.timeZone||t.timeZone,new Date(o+c)),isNaN(f))return new Date(NaN)}else f=z(new Date(o+c)),f=z(new Date(o+c+f));return new Date(o+c+f)}else return new Date(NaN)}function ee(e){const t={};let n=u.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=u.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=u.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function te(e,t){if(e){const n=u.YYY[t],r=u.YYYYY[t];let i=u.YYYY.exec(e)||r.exec(e);if(i){const a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=u.YY.exec(e)||n.exec(e),i){const a=i[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function ne(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=u.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,H(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=u.DDD.exec(e),a){n=new Date(0);const s=parseInt(a[1],10);return se(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(a=u.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const s=parseInt(a[2],10);return H(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(a=u.Www.exec(e),a)return i=parseInt(a[1],10)-1,Z(i)?U(t,i):new Date(NaN);if(a=u.WwwD.exec(e),a){i=parseInt(a[1],10)-1;const s=parseInt(a[2],10)-1;return Z(i,s)?U(t,i,s):new Date(NaN)}return null}function re(e){let t,n,r=u.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),g(t)?t%24*N:NaN;if(r=u.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),g(t,n)?t%24*N+n*C:NaN;if(r=u.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return g(t,n,i)?t%24*N+n*C+i*1e3:NaN}return null}function U(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const ie=[31,28,31,30,31,30,31,31,30,31,30,31],ae=[31,29,31,30,31,30,31,31,30,31,30,31];function y(e){return e%400===0||e%4===0&&e%100!==0}function H(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=y(e);if(r&&n>ae[t]||!r&&n>ie[t])return!1}return!0}function se(e,t){if(t<1)return!1;const n=y(e);return!(n&&t>366||!n&&t>365)}function Z(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function g(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const oe=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ue(e,t,n={}){t=String(t);const r=t.match(oe);if(r){const i=b(n.originalDate||e,n);t=r.reduce(function(a,s){if(s[0]==="'")return a;const o=a.indexOf(s),c=a[o-1]==="'",f=a.replace(s,"'"+J[s[0]](i,s,n)+"'");return c?f.substring(0,o-1)+f.substring(o+1):f},t)}return _(e,t,n)}function ce(e,t,n){e=b(e,n);const r=I(t,e,!0),i=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function le(e,t,n,r){return r={...r,timeZone:t,originalDate:e},ue(ce(e,t,{timeZone:r.timeZone}),n,r)}export{le as f}; diff --git a/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js.gz b/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js.gz new file mode 100644 index 00000000..3b214015 Binary files /dev/null and b/js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js.gz differ diff --git a/js/date-fns@3.6.0-BMcLdxE-.js b/js/date-fns@3.6.0-BMcLdxE-.js deleted file mode 100644 index 36e8aa3c..00000000 --- a/js/date-fns@3.6.0-BMcLdxE-.js +++ /dev/null @@ -1 +0,0 @@ -var Oe=Object.defineProperty;var Ye=(n,r,e)=>r in n?Oe(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var o=(n,r,e)=>Ye(n,typeof r!="symbol"?r+"":r,e);function Q(n){return(r={})=>{const e=r.width?String(r.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}function W(n){return(r,e)=>{const t=e!=null&&e.context?String(e.context):"standalone";let a;if(t==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,c=e!=null&&e.width?String(e.width):i;a=n.formattingValues[c]||n.formattingValues[i]}else{const i=n.defaultWidth,c=e!=null&&e.width?String(e.width):n.defaultWidth;a=n.values[c]||n.values[i]}const s=n.argumentCallback?n.argumentCallback(r):r;return a[s]}}function v(n){return(r,e={})=>{const t=e.width,a=t&&n.matchPatterns[t]||n.matchPatterns[n.defaultMatchWidth],s=r.match(a);if(!s)return null;const i=s[0],c=t&&n.parsePatterns[t]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(c)?ve(c,D=>D.test(i)):We(c,D=>D.test(i));let w;w=n.valueCallback?n.valueCallback(h):h,w=e.valueCallback?e.valueCallback(w):w;const P=r.slice(i.length);return{value:w,rest:P}}}function We(n,r){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&r(n[e]))return e}function ve(n,r){for(let e=0;e{const t=r.match(n.matchPattern);if(!t)return null;const a=t[0],s=r.match(n.parsePattern);if(!s)return null;let i=n.valueCallback?n.valueCallback(s[0]):s[0];i=e.valueCallback?e.valueCallback(i):i;const c=r.slice(a.length);return{value:i,rest:c}}}function u(n){const r=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&r==="[object Date]"?new n.constructor(+n):typeof n=="number"||r==="[object Number]"||typeof n=="string"||r==="[object String]"?new Date(n):new Date(NaN)}let _e={};function R(){return _e}function E(n,r){var c,h,w,P;const e=R(),t=(r==null?void 0:r.weekStartsOn)??((h=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:h.weekStartsOn)??e.weekStartsOn??((P=(w=e.locale)==null?void 0:w.options)==null?void 0:P.weekStartsOn)??0,a=u(n),s=a.getDay(),i=(s{let t;const a=Ee[n];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t},He={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fe=(n,r,e,t)=>He[n],Le={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Re={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xe=(n,r)=>{const e=Number(n),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Ge={ordinalNumber:Xe,era:W({values:Le,defaultWidth:"wide"}),quarter:W({values:Ce,defaultWidth:"wide",argumentCallback:n=>n-1}),month:W({values:Qe,defaultWidth:"wide"}),day:W({values:Ie,defaultWidth:"wide"}),dayPeriod:W({values:Re,defaultWidth:"wide",formattingValues:$e,defaultFormattingWidth:"wide"})},Be=/^(\d+)(th|st|nd|rd)?/i,Ae=/\d+/i,Ve={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},je={any:[/^b/i,/^(a|c)/i]},ze={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Je={any:[/1/i,/2/i,/3/i,/4/i]},Ke={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ze={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Se={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ue={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},et={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nt={ordinalNumber:de({matchPattern:Be,parsePattern:Ae,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:Ve,defaultMatchWidth:"wide",parsePatterns:je,defaultParseWidth:"any"}),quarter:v({matchPatterns:ze,defaultMatchWidth:"wide",parsePatterns:Je,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:Ke,defaultMatchWidth:"wide",parsePatterns:Ze,defaultParseWidth:"any"}),day:v({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Ue,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:et,defaultMatchWidth:"any",parsePatterns:tt,defaultParseWidth:"any"})},rt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},at={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},st={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ot={date:Q({formats:rt,defaultWidth:"full"}),time:Q({formats:at,defaultWidth:"full"}),dateTime:Q({formats:st,defaultWidth:"full"})},le={code:"en-US",formatDistance:qe,formatLong:ot,formatRelative:Fe,localize:Ge,match:nt,options:{weekStartsOn:0,firstWeekContainsDate:1}},it={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},ut=(n,r,e)=>{let t;const a=it[n];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",String(r)),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?t+"内":t+"前":t},ct={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},dt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},lt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ft={date:Q({formats:ct,defaultWidth:"full"}),time:Q({formats:dt,defaultWidth:"full"}),dateTime:Q({formats:lt,defaultWidth:"full"})};function ae(n,r,e){const t="eeee p";return Ne(n,r,e)?t:n.getTime()>r.getTime()?"'下个'"+t:"'上个'"+t}const ht={lastWeek:ae,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ae,other:"PP p"},mt=(n,r,e,t)=>{const a=ht[n];return typeof a=="function"?a(r,e,t):a},wt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},gt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},yt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},bt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},xt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Mt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pt=(n,r)=>{const e=Number(n);switch(r==null?void 0:r.unit){case"date":return e.toString()+"日";case"hour":return e.toString()+"时";case"minute":return e.toString()+"分";case"second":return e.toString()+"秒";default:return"第 "+e.toString()}},pt={ordinalNumber:Pt,era:W({values:wt,defaultWidth:"wide"}),quarter:W({values:gt,defaultWidth:"wide",argumentCallback:n=>n-1}),month:W({values:yt,defaultWidth:"wide"}),day:W({values:bt,defaultWidth:"wide"}),dayPeriod:W({values:xt,defaultWidth:"wide",formattingValues:Mt,defaultFormattingWidth:"wide"})},Dt=/^(第\s*)?\d+(日|时|分|秒)?/i,kt=/\d+/i,Tt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Ot={any:[/^(前)/i,/^(公元)/i]},Yt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Wt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},vt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},_t={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Nt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Et={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Ht={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Ft={ordinalNumber:de({matchPattern:Dt,parsePattern:kt,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:Tt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:v({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:vt,defaultMatchWidth:"wide",parsePatterns:_t,defaultParseWidth:"any"}),day:v({matchPatterns:Nt,defaultMatchWidth:"wide",parsePatterns:Et,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:qt,defaultMatchWidth:"any",parsePatterns:Ht,defaultParseWidth:"any"})},rr={code:"zh-CN",formatDistance:ut,formatLong:ft,formatRelative:mt,localize:pt,match:Ft,options:{weekStartsOn:1,firstWeekContainsDate:4}};function m(n,r){return n instanceof Date?new n.constructor(r):new Date(r)}function fe(n,r){const e=u(n);return isNaN(r)?m(n,NaN):(r&&e.setDate(e.getDate()+r),e)}function he(n,r){const e=u(n);if(isNaN(r))return m(n,NaN);if(!r)return e;const t=e.getDate(),a=m(n,e.getTime());a.setMonth(e.getMonth()+r+1,0);const s=a.getDate();return t>=s?a:(e.setFullYear(a.getFullYear(),a.getMonth(),t),e)}const me=6048e5,Lt=864e5,Ct=6e4,Qt=36e5,It=1e3;function I(n){return E(n,{weekStartsOn:1})}function we(n){const r=u(n),e=r.getFullYear(),t=m(n,0);t.setFullYear(e+1,0,4),t.setHours(0,0,0,0);const a=I(t),s=m(n,0);s.setFullYear(e,0,4),s.setHours(0,0,0,0);const i=I(s);return r.getTime()>=a.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function B(n){const r=u(n);return r.setHours(0,0,0,0),r}function A(n){const r=u(n),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+n-+e}function Rt(n,r){const e=B(n),t=B(r),a=+e-A(e),s=+t-A(t);return Math.round((a-s)/Lt)}function $t(n){const r=we(n),e=m(n,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),I(e)}function ar(n,r){const e=r*3;return he(n,e)}function sr(n,r){return he(n,r*12)}function or(n,r){const e=B(n),t=B(r);return+e==+t}function Xt(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Gt(n){if(!Xt(n)&&typeof n!="number")return!1;const r=u(n);return!isNaN(Number(r))}function ir(n){const r=u(n);return Math.trunc(r.getMonth()/3)+1}function ur(n){const r=u(n);return r.setSeconds(0,0),r}function se(n){const r=u(n),e=r.getMonth(),t=e-e%3;return r.setMonth(t,1),r.setHours(0,0,0,0),r}function cr(n){const r=u(n);return r.setDate(1),r.setHours(0,0,0,0),r}function Bt(n){const r=u(n),e=m(n,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}function At(n){const r=u(n);return Rt(r,Bt(r))+1}function ge(n){const r=u(n),e=+I(r)-+$t(r);return Math.round(e/me)+1}function K(n,r){var P,D,O,T;const e=u(n),t=e.getFullYear(),a=R(),s=(r==null?void 0:r.firstWeekContainsDate)??((D=(P=r==null?void 0:r.locale)==null?void 0:P.options)==null?void 0:D.firstWeekContainsDate)??a.firstWeekContainsDate??((T=(O=a.locale)==null?void 0:O.options)==null?void 0:T.firstWeekContainsDate)??1,i=m(n,0);i.setFullYear(t+1,0,s),i.setHours(0,0,0,0);const c=E(i,r),h=m(n,0);h.setFullYear(t,0,s),h.setHours(0,0,0,0);const w=E(h,r);return e.getTime()>=c.getTime()?t+1:e.getTime()>=w.getTime()?t:t-1}function Vt(n,r){var c,h,w,P;const e=R(),t=(r==null?void 0:r.firstWeekContainsDate)??((h=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??e.firstWeekContainsDate??((P=(w=e.locale)==null?void 0:w.options)==null?void 0:P.firstWeekContainsDate)??1,a=K(n,r),s=m(n,0);return s.setFullYear(a,0,t),s.setHours(0,0,0,0),E(s,r)}function ye(n,r){const e=u(n),t=+E(e,r)-+Vt(e,r);return Math.round(t/me)+1}function f(n,r){const e=n<0?"-":"",t=Math.abs(n).toString().padStart(r,"0");return e+t}const H={y(n,r){const e=n.getFullYear(),t=e>0?e:1-e;return f(r==="yy"?t%100:t,r.length)},M(n,r){const e=n.getMonth();return r==="M"?String(e+1):f(e+1,2)},d(n,r){return f(n.getDate(),r.length)},a(n,r){const e=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,r){return f(n.getHours()%12||12,r.length)},H(n,r){return f(n.getHours(),r.length)},m(n,r){return f(n.getMinutes(),r.length)},s(n,r){return f(n.getSeconds(),r.length)},S(n,r){const e=r.length,t=n.getMilliseconds(),a=Math.trunc(t*Math.pow(10,e-3));return f(a,r.length)}},C={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oe={G:function(n,r,e){const t=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(n,r,e){if(r==="yo"){const t=n.getFullYear(),a=t>0?t:1-t;return e.ordinalNumber(a,{unit:"year"})}return H.y(n,r)},Y:function(n,r,e,t){const a=K(n,t),s=a>0?a:1-a;if(r==="YY"){const i=s%100;return f(i,2)}return r==="Yo"?e.ordinalNumber(s,{unit:"year"}):f(s,r.length)},R:function(n,r){const e=we(n);return f(e,r.length)},u:function(n,r){const e=n.getFullYear();return f(e,r.length)},Q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return f(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return f(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(n,r,e){const t=n.getMonth();switch(r){case"M":case"MM":return H.M(n,r);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(n,r,e){const t=n.getMonth();switch(r){case"L":return String(t+1);case"LL":return f(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(n,r,e,t){const a=ye(n,t);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):f(a,r.length)},I:function(n,r,e){const t=ge(n);return r==="Io"?e.ordinalNumber(t,{unit:"week"}):f(t,r.length)},d:function(n,r,e){return r==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):H.d(n,r)},D:function(n,r,e){const t=At(n);return r==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):f(t,r.length)},E:function(n,r,e){const t=n.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(n,r,e,t){const a=n.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(s);case"ee":return f(s,2);case"eo":return e.ordinalNumber(s,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,r,e,t){const a=n.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(s);case"cc":return f(s,r.length);case"co":return e.ordinalNumber(s,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,r,e){const t=n.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return f(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(n,r,e){const a=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,r,e){const t=n.getHours();let a;switch(t===12?a=C.noon:t===0?a=C.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,r,e){const t=n.getHours();let a;switch(t>=17?a=C.evening:t>=12?a=C.afternoon:t>=4?a=C.morning:a=C.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,r,e){if(r==="ho"){let t=n.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return H.h(n,r)},H:function(n,r,e){return r==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):H.H(n,r)},K:function(n,r,e){const t=n.getHours()%12;return r==="Ko"?e.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},k:function(n,r,e){let t=n.getHours();return t===0&&(t=24),r==="ko"?e.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},m:function(n,r,e){return r==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):H.m(n,r)},s:function(n,r,e){return r==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):H.s(n,r)},S:function(n,r){return H.S(n,r)},X:function(n,r,e){const t=n.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return ue(t);case"XXXX":case"XX":return F(t);case"XXXXX":case"XXX":default:return F(t,":")}},x:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"x":return ue(t);case"xxxx":case"xx":return F(t);case"xxxxx":case"xxx":default:return F(t,":")}},O:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+ie(t,":");case"OOOO":default:return"GMT"+F(t,":")}},z:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+ie(t,":");case"zzzz":default:return"GMT"+F(t,":")}},t:function(n,r,e){const t=Math.trunc(n.getTime()/1e3);return f(t,r.length)},T:function(n,r,e){const t=n.getTime();return f(t,r.length)}};function ie(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=Math.trunc(t/60),s=t%60;return s===0?e+String(a):e+String(a)+r+f(s,2)}function ue(n,r){return n%60===0?(n>0?"-":"+")+f(Math.abs(n)/60,2):F(n,r)}function F(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=f(Math.trunc(t/60),2),s=f(t%60,2);return e+a+r+s}const ce=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},be=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},jt=(n,r)=>{const e=n.match(/(P+)(p+)?/)||[],t=e[1],a=e[2];if(!a)return ce(n,r);let s;switch(t){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;case"PPPP":default:s=r.dateTime({width:"full"});break}return s.replace("{{date}}",ce(t,r)).replace("{{time}}",be(a,r))},z={p:be,P:jt},zt=/^D+$/,Jt=/^Y+$/,Kt=["D","DD","YY","YYYY"];function xe(n){return zt.test(n)}function Me(n){return Jt.test(n)}function J(n,r,e){const t=Zt(n,r,e);if(console.warn(t),Kt.includes(n))throw new RangeError(t)}function Zt(n,r,e){const t=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ut=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,en=/^'([^]*?)'?$/,tn=/''/g,nn=/[a-zA-Z]/;function dr(n,r,e){var P,D,O,T,q,$,X,G;const t=R(),a=(e==null?void 0:e.locale)??t.locale??le,s=(e==null?void 0:e.firstWeekContainsDate)??((D=(P=e==null?void 0:e.locale)==null?void 0:P.options)==null?void 0:D.firstWeekContainsDate)??t.firstWeekContainsDate??((T=(O=t.locale)==null?void 0:O.options)==null?void 0:T.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??(($=(q=e==null?void 0:e.locale)==null?void 0:q.options)==null?void 0:$.weekStartsOn)??t.weekStartsOn??((G=(X=t.locale)==null?void 0:X.options)==null?void 0:G.weekStartsOn)??0,c=u(n);if(!Gt(c))throw new RangeError("Invalid time value");let h=r.match(Ut).map(k=>{const p=k[0];if(p==="p"||p==="P"){const L=z[p];return L(k,a.formatLong)}return k}).join("").match(St).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const p=k[0];if(p==="'")return{isToken:!1,value:rn(k)};if(oe[p])return{isToken:!0,value:k};if(p.match(nn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:k}});a.localize.preprocessor&&(h=a.localize.preprocessor(c,h));const w={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return h.map(k=>{if(!k.isToken)return k.value;const p=k.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Me(p)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&xe(p))&&J(p,r,String(n));const L=oe[p[0]];return L(c,p,a.localize,w)}).join("")}function rn(n){const r=n.match(en);return r?r[1].replace(tn,"'"):n}function lr(n){return u(n).getDate()}function fr(n){return u(n).getDay()}function an(n){const r=u(n),e=r.getFullYear(),t=r.getMonth(),a=m(n,0);return a.setFullYear(e,t+1,0),a.setHours(0,0,0,0),a.getDate()}function sn(){return Object.assign({},R())}function hr(n){return u(n).getHours()}function on(n){let e=u(n).getDay();return e===0&&(e=7),e}function mr(n){return u(n).getMilliseconds()}function wr(n){return u(n).getMinutes()}function gr(n){return u(n).getMonth()}function yr(n){return u(n).getSeconds()}function br(n){return u(n).getTime()}function xr(n){return u(n).getFullYear()}function un(n,r){const e=r instanceof Date?m(r,0):new r(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}const cn=10;class Pe{constructor(){o(this,"subPriority",0)}validate(r,e){return!0}}class dn extends Pe{constructor(r,e,t,a,s){super(),this.value=r,this.validateValue=e,this.setValue=t,this.priority=a,s&&(this.subPriority=s)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,t){return this.setValue(r,e,this.value,t)}}class ln extends Pe{constructor(){super(...arguments);o(this,"priority",cn);o(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:m(e,un(e,Date))}}class l{run(r,e,t,a){const s=this.parse(r,e,t,a);return s?{setter:new dn(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(r,e,t){return!0}}class fn extends l{constructor(){super(...arguments);o(this,"priority",140);o(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,a){switch(t){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,t,a){return t.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const x={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},_={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function M(n,r){return n&&{value:r(n.value),rest:n.rest}}function g(n,r){const e=r.match(n);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function N(n,r){const e=r.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const t=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:t*(a*Qt+s*Ct+i*It),rest:r.slice(e[0].length)}}function pe(n){return g(x.anyDigitsSigned,n)}function b(n,r){switch(n){case 1:return g(x.singleDigit,r);case 2:return g(x.twoDigits,r);case 3:return g(x.threeDigits,r);case 4:return g(x.fourDigits,r);default:return g(new RegExp("^\\d{1,"+n+"}"),r)}}function V(n,r){switch(n){case 1:return g(x.singleDigitSigned,r);case 2:return g(x.twoDigitsSigned,r);case 3:return g(x.threeDigitsSigned,r);case 4:return g(x.fourDigitsSigned,r);default:return g(new RegExp("^-?\\d{1,"+n+"}"),r)}}function Z(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function De(n,r){const e=r>0,t=e?r:1-r;let a;if(t<=50)a=n||100;else{const s=t+50,i=Math.trunc(s/100)*100,c=n>=s%100;a=n+i-(c?100:0)}return e?a:1-a}function ke(n){return n%400===0||n%4===0&&n%100!==0}class hn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return M(b(4,e),s);case"yo":return M(a.ordinalNumber(e,{unit:"year"}),s);default:return M(b(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a){const s=e.getFullYear();if(a.isTwoDigitYear){const c=De(a.year,s);return e.setFullYear(c,0,1),e.setHours(0,0,0,0),e}const i=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class mn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return M(b(4,e),s);case"Yo":return M(a.ordinalNumber(e,{unit:"year"}),s);default:return M(b(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a,s){const i=K(e,s);if(a.isTwoDigitYear){const h=De(a.year,i);return e.setFullYear(h,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),E(e,s)}const c=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(c,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),E(e,s)}}class wn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return V(t==="R"?4:t.length,e)}set(e,t,a){const s=m(e,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),I(s)}}class gn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return V(t==="u"?4:t.length,e)}set(e,t,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class yn extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"Q":case"QQ":return b(t.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class bn extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"q":case"qq":return b(t.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class xn extends l{constructor(){super(...arguments);o(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);o(this,"priority",110)}parse(e,t,a){const s=i=>i-1;switch(t){case"M":return M(g(x.month,e),s);case"MM":return M(b(2,e),s);case"Mo":return M(a.ordinalNumber(e,{unit:"month"}),s);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class Mn extends l{constructor(){super(...arguments);o(this,"priority",110);o(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,a){const s=i=>i-1;switch(t){case"L":return M(g(x.month,e),s);case"LL":return M(b(2,e),s);case"Lo":return M(a.ordinalNumber(e,{unit:"month"}),s);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function Pn(n,r,e){const t=u(n),a=ye(t,e)-r;return t.setDate(t.getDate()-a*7),t}class pn extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,a){switch(t){case"w":return g(x.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a,s){return E(Pn(e,a,s),s)}}function Dn(n,r){const e=u(n),t=ge(e)-r;return e.setDate(e.getDate()-t*7),e}class kn extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,a){switch(t){case"I":return g(x.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a){return I(Dn(e,a))}}const Tn=[31,28,31,30,31,30,31,31,30,31,30,31],On=[31,29,31,30,31,30,31,31,30,31,30,31];class Yn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subPriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"d":return g(x.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return b(t.length,e)}}validate(e,t){const a=e.getFullYear(),s=ke(a),i=e.getMonth();return s?t>=1&&t<=On[i]:t>=1&&t<=Tn[i]}set(e,t,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class Wn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subpriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,a){switch(t){case"D":case"DD":return g(x.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return b(t.length,e)}}validate(e,t){const a=e.getFullYear();return ke(a)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function S(n,r,e){var D,O,T,q;const t=R(),a=(e==null?void 0:e.weekStartsOn)??((O=(D=e==null?void 0:e.locale)==null?void 0:D.options)==null?void 0:O.weekStartsOn)??t.weekStartsOn??((q=(T=t.locale)==null?void 0:T.options)==null?void 0:q.weekStartsOn)??0,s=u(n),i=s.getDay(),h=(r%7+7)%7,w=7-a,P=r<0||r>6?r-(i+w)%7:(h+w)%7-(i+w)%7;return fe(s,P)}class vn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}class _n extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,a,s){const i=c=>{const h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(t){case"e":case"ee":return M(b(t.length,e),i);case"eo":return M(a.ordinalNumber(e,{unit:"day"}),i);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}class Nn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,a,s){const i=c=>{const h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(t){case"c":case"cc":return M(b(t.length,e),i);case"co":return M(a.ordinalNumber(e,{unit:"day"}),i);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}function En(n,r){const e=u(n),t=on(e),a=r-t;return fe(e,a)}class qn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,a){const s=i=>i===0?7:i;switch(t){case"i":case"ii":return b(t.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return M(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return M(a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return M(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return M(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,t){return t>=1&&t<=7}set(e,t,a){return e=En(e,a),e.setHours(0,0,0,0),e}}class Hn extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,a){switch(t){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Fn extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,a){switch(t){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Ln extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,a){switch(t){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Cn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,a){switch(t){case"h":return g(x.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,a){const s=e.getHours()>=12;return s&&a<12?e.setHours(a+12,0,0,0):!s&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class Qn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,a){switch(t){case"H":return g(x.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,a){return e.setHours(a,0,0,0),e}}class In extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,a){switch(t){case"K":return g(x.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class Rn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,a){switch(t){case"k":return g(x.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,a){const s=a<=24?a%24:a;return e.setHours(s,0,0,0),e}}class $n extends l{constructor(){super(...arguments);o(this,"priority",60);o(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"m":return g(x.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setMinutes(a,0,0),e}}class Xn extends l{constructor(){super(...arguments);o(this,"priority",50);o(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"s":return g(x.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setSeconds(a,0),e}}class Gn extends l{constructor(){super(...arguments);o(this,"priority",30);o(this,"incompatibleTokens",["t","T"])}parse(e,t){const a=s=>Math.trunc(s*Math.pow(10,-t.length+3));return M(b(t.length,e),a)}set(e,t,a){return e.setMilliseconds(a),e}}class Bn extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return N(_.basicOptionalMinutes,e);case"XX":return N(_.basic,e);case"XXXX":return N(_.basicOptionalSeconds,e);case"XXXXX":return N(_.extendedOptionalSeconds,e);case"XXX":default:return N(_.extended,e)}}set(e,t,a){return t.timestampIsSet?e:m(e,e.getTime()-A(e)-a)}}class An extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return N(_.basicOptionalMinutes,e);case"xx":return N(_.basic,e);case"xxxx":return N(_.basicOptionalSeconds,e);case"xxxxx":return N(_.extendedOptionalSeconds,e);case"xxx":default:return N(_.extended,e)}}set(e,t,a){return t.timestampIsSet?e:m(e,e.getTime()-A(e)-a)}}class Vn extends l{constructor(){super(...arguments);o(this,"priority",40);o(this,"incompatibleTokens","*")}parse(e){return pe(e)}set(e,t,a){return[m(e,a*1e3),{timestampIsSet:!0}]}}class jn extends l{constructor(){super(...arguments);o(this,"priority",20);o(this,"incompatibleTokens","*")}parse(e){return pe(e)}set(e,t,a){return[m(e,a),{timestampIsSet:!0}]}}const zn={G:new fn,y:new hn,Y:new mn,R:new wn,u:new gn,Q:new yn,q:new bn,M:new xn,L:new Mn,w:new pn,I:new kn,d:new Yn,D:new Wn,E:new vn,e:new _n,c:new Nn,i:new qn,a:new Hn,b:new Fn,B:new Ln,h:new Cn,H:new Qn,K:new In,k:new Rn,m:new $n,s:new Xn,S:new Gn,X:new Bn,x:new An,t:new Vn,T:new jn},Jn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zn=/^'([^]*?)'?$/,Sn=/''/g,Un=/\S/,er=/[a-zA-Z]/;function Mr(n,r,e,t){var $,X,G,k,p,L,U,ee;const a=sn(),s=(t==null?void 0:t.locale)??a.locale??le,i=(t==null?void 0:t.firstWeekContainsDate)??((X=($=t==null?void 0:t.locale)==null?void 0:$.options)==null?void 0:X.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(G=a.locale)==null?void 0:G.options)==null?void 0:k.firstWeekContainsDate)??1,c=(t==null?void 0:t.weekStartsOn)??((L=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:L.weekStartsOn)??a.weekStartsOn??((ee=(U=a.locale)==null?void 0:U.options)==null?void 0:ee.weekStartsOn)??0;if(r==="")return n===""?u(e):m(e,NaN);const h={firstWeekContainsDate:i,weekStartsOn:c,locale:s},w=[new ln],P=r.match(Kn).map(d=>{const y=d[0];if(y in z){const Y=z[y];return Y(d,s.formatLong)}return d}).join("").match(Jn),D=[];for(let d of P){!(t!=null&&t.useAdditionalWeekYearTokens)&&Me(d)&&J(d,r,n),!(t!=null&&t.useAdditionalDayOfYearTokens)&&xe(d)&&J(d,r,n);const y=d[0],Y=zn[y];if(Y){const{incompatibleTokens:te}=Y;if(Array.isArray(te)){const ne=D.find(re=>te.includes(re.token)||re.token===y);if(ne)throw new RangeError(`The format string mustn't contain \`${ne.fullToken}\` and \`${d}\` at the same time`)}else if(Y.incompatibleTokens==="*"&&D.length>0)throw new RangeError(`The format string mustn't contain \`${d}\` and any other token at the same time`);D.push({token:y,fullToken:d});const j=Y.run(n,d,s.match,h);if(!j)return m(e,NaN);w.push(j.setter),n=j.rest}else{if(y.match(er))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(d==="''"?d="'":y==="'"&&(d=tr(d)),n.indexOf(d)===0)n=n.slice(d.length);else return m(e,NaN)}}if(n.length>0&&Un.test(n))return m(e,NaN);const O=w.map(d=>d.priority).sort((d,y)=>y-d).filter((d,y,Y)=>Y.indexOf(d)===y).map(d=>w.filter(y=>y.priority===d).sort((y,Y)=>Y.subPriority-y.subPriority)).map(d=>d[0]);let T=u(e);if(isNaN(T.getTime()))return m(e,NaN);const q={};for(const d of O){if(!d.validate(T,h))return m(e,NaN);const y=d.set(T,q,h);Array.isArray(y)?(T=y[0],Object.assign(q,y[1])):T=y}return m(e,T)}function tr(n){return n.match(Zn)[1].replace(Sn,"'")}function Pr(n){const r=u(n);return r.setMinutes(0,0,0),r}function pr(n,r){const e=u(n),t=u(r);return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Dr(n,r){const e=se(n),t=se(r);return+e==+t}function kr(n){const r=u(n);return r.setMilliseconds(0),r}function Tr(n,r){const e=u(n),t=u(r);return e.getFullYear()===t.getFullYear()}function Te(n,r){const e=u(n),t=e.getFullYear(),a=e.getDate(),s=m(n,0);s.setFullYear(t,r,15),s.setHours(0,0,0,0);const i=an(s);return e.setMonth(r,Math.min(a,i)),e}function Or(n,r){let e=u(n);return isNaN(+e)?m(n,NaN):(r.year!=null&&e.setFullYear(r.year),r.month!=null&&(e=Te(e,r.month)),r.date!=null&&e.setDate(r.date),r.hours!=null&&e.setHours(r.hours),r.minutes!=null&&e.setMinutes(r.minutes),r.seconds!=null&&e.setSeconds(r.seconds),r.milliseconds!=null&&e.setMilliseconds(r.milliseconds),e)}function Yr(n,r){const e=u(n);return e.setHours(r),e}function Wr(n,r){const e=u(n);return e.setMinutes(r),e}function vr(n,r){const e=u(n),t=Math.trunc(e.getMonth()/3)+1,a=r-t;return Te(e,e.getMonth()+a*3)}function _r(n,r){const e=u(n);return e.setSeconds(r),e}function Nr(n,r){const e=u(n);return isNaN(+e)?m(n,NaN):(e.setFullYear(r),e)}export{vr as A,kr as B,se as C,E as D,B as E,hr as F,Yr as G,Pr as H,Wr as I,ur as J,_r as K,mr as L,yr as M,wr as N,gr as a,br as b,fe as c,fr as d,le as e,dr as f,sn as g,Bt as h,Gt as i,he as j,Nr as k,sr as l,ar as m,pr as n,xr as o,Mr as p,Tr as q,Dr as r,cr as s,ir as t,lr as u,or as v,Ne as w,Te as x,Or as y,rr as z}; diff --git a/js/date-fns@3.6.0-BMcLdxE-.js.gz b/js/date-fns@3.6.0-BMcLdxE-.js.gz deleted file mode 100644 index a7a9e9ce..00000000 Binary files a/js/date-fns@3.6.0-BMcLdxE-.js.gz and /dev/null differ diff --git a/js/date-fns@4.1.0-D7sOP3Nv.js b/js/date-fns@4.1.0-D7sOP3Nv.js new file mode 100644 index 00000000..57538dac --- /dev/null +++ b/js/date-fns@4.1.0-D7sOP3Nv.js @@ -0,0 +1 @@ +function q(r){return(e={})=>{const t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}function D(r){return(e,t)=>{const n=t?.context?String(t.context):"standalone";let a;if(n==="formatting"&&r.formattingValues){const o=r.defaultFormattingWidth||r.defaultWidth,u=t?.width?String(t.width):o;a=r.formattingValues[u]||r.formattingValues[o]}else{const o=r.defaultWidth,u=t?.width?String(t.width):r.defaultWidth;a=r.values[u]||r.values[o]}const s=r.argumentCallback?r.argumentCallback(e):e;return a[s]}}function k(r){return(e,t={})=>{const n=t.width,a=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],s=e.match(a);if(!s)return null;const o=s[0],u=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],M=Array.isArray(u)?Me(u,p=>p.test(o)):xe(u,p=>p.test(o));let x;x=r.valueCallback?r.valueCallback(M):M,x=t.valueCallback?t.valueCallback(x):x;const g=e.slice(o.length);return{value:x,rest:g}}}function xe(r,e){for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function Me(r,e){for(let t=0;t{const n=e.match(r.matchPattern);if(!n)return null;const a=n[0],s=e.match(r.parsePattern);if(!s)return null;let o=r.valueCallback?r.valueCallback(s[0]):s[0];o=t.valueCallback?t.valueCallback(o):o;const u=e.slice(a.length);return{value:o,rest:u}}}const ae=6048e5,Pe=864e5,De=6e4,ke=36e5,Te=1e3,K=Symbol.for("constructDateFrom");function f(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&K in r?r[K](e):r instanceof Date?new r.constructor(e):new Date(e)}function F(r,...e){const t=f.bind(null,r||e.find(n=>typeof n=="object"));return e.map(t)}let Oe={};function C(){return Oe}function i(r,e){return f(e||r,r)}function Y(r,e){const t=C(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,a=i(r,e?.in),s=a.getDay(),o=(s{let n;const a=We[r];return typeof a=="string"?n=a:e===1?n=a.one:n=a.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n},_e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=(r,e,t,n)=>_e[r],Ne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},He={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Le={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Qe=(r,e)=>{const t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ie={ordinalNumber:Qe,era:D({values:Ne,defaultWidth:"wide"}),quarter:D({values:qe,defaultWidth:"wide",argumentCallback:r=>r-1}),month:D({values:He,defaultWidth:"wide"}),day:D({values:Fe,defaultWidth:"wide"}),dayPeriod:D({values:Ce,defaultWidth:"wide",formattingValues:Le,defaultFormattingWidth:"wide"})},Re=/^(\d+)(th|st|nd|rd)?/i,$e=/\d+/i,Xe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ge={any:[/^b/i,/^(a|c)/i]},Be={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ae={any:[/1/i,/2/i,/3/i,/4/i]},Ve={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ze={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},je={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Je={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ke={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ze={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ue={ordinalNumber:re({matchPattern:Re,parsePattern:$e,valueCallback:r=>parseInt(r,10)}),era:k({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:Ge,defaultParseWidth:"any"}),quarter:k({matchPatterns:Be,defaultMatchWidth:"wide",parsePatterns:Ae,defaultParseWidth:"any",valueCallback:r=>r+1}),month:k({matchPatterns:Ve,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),day:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:Je,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:Ke,defaultMatchWidth:"any",parsePatterns:Ze,defaultParseWidth:"any"})},Se={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},et={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nt={date:q({formats:Se,defaultWidth:"full"}),time:q({formats:et,defaultWidth:"full"}),dateTime:q({formats:tt,defaultWidth:"full"})},se={code:"en-US",formatDistance:ve,formatLong:nt,formatRelative:Ee,localize:Ie,match:Ue,options:{weekStartsOn:0,firstWeekContainsDate:1}},rt={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},at=(r,e,t)=>{let n;const a=rt[r];return typeof a=="string"?n=a:e===1?n=a.one:n=a.other.replace("{{count}}",String(e)),t?.addSuffix?t.comparison&&t.comparison>0?n+"内":n+"前":n},st={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},ot={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},it={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ut={date:q({formats:st,defaultWidth:"full"}),time:q({formats:ot,defaultWidth:"full"}),dateTime:q({formats:it,defaultWidth:"full"})};function Z(r,e,t){const n="eeee p";return Ye(r,e,t)?n:r.getTime()>e.getTime()?"'下个'"+n:"'上个'"+n}const ct={lastWeek:Z,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Z,other:"PP p"},dt=(r,e,t,n)=>{const a=ct[r];return typeof a=="function"?a(e,t,n):a},lt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},ft={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},ht={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},mt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},wt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},gt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},yt=(r,e)=>{const t=Number(r);switch(e?.unit){case"date":return t.toString()+"日";case"hour":return t.toString()+"时";case"minute":return t.toString()+"分";case"second":return t.toString()+"秒";default:return"第 "+t.toString()}},bt={ordinalNumber:yt,era:D({values:lt,defaultWidth:"wide"}),quarter:D({values:ft,defaultWidth:"wide",argumentCallback:r=>r-1}),month:D({values:ht,defaultWidth:"wide"}),day:D({values:mt,defaultWidth:"wide"}),dayPeriod:D({values:wt,defaultWidth:"wide",formattingValues:gt,defaultFormattingWidth:"wide"})},pt=/^(第\s*)?\d+(日|时|分|秒)?/i,xt=/\d+/i,Mt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Pt={any:[/^(前)/i,/^(公元)/i]},Dt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},kt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Tt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Ot={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Yt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Wt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},vt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},_t={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Et={ordinalNumber:re({matchPattern:pt,parsePattern:xt,valueCallback:r=>parseInt(r,10)}),era:k({matchPatterns:Mt,defaultMatchWidth:"wide",parsePatterns:Pt,defaultParseWidth:"any"}),quarter:k({matchPatterns:Dt,defaultMatchWidth:"wide",parsePatterns:kt,defaultParseWidth:"any",valueCallback:r=>r+1}),month:k({matchPatterns:Tt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),day:k({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:_t,defaultParseWidth:"any"})},Jn={code:"zh-CN",formatDistance:at,formatLong:ut,formatRelative:dt,localize:bt,match:Et,options:{weekStartsOn:1,firstWeekContainsDate:4}};function oe(r,e,t){const n=i(r,t?.in);return isNaN(e)?f(t?.in||r,NaN):(e&&n.setDate(n.getDate()+e),n)}function ie(r,e,t){const n=i(r,t?.in);if(isNaN(e))return f(r,NaN);if(!e)return n;const a=n.getDate(),s=f(r,n.getTime());s.setMonth(n.getMonth()+e+1,0);const o=s.getDate();return a>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}function H(r,e){return Y(r,{...e,weekStartsOn:1})}function ue(r,e){const t=i(r,e?.in),n=t.getFullYear(),a=f(t,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=H(a),o=f(t,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=H(o);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function L(r){const e=i(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function Q(r,e){const t=i(r,e?.in);return t.setHours(0,0,0,0),t}function Nt(r,e,t){const[n,a]=F(t?.in,r,e),s=Q(n),o=Q(a),u=+s-L(s),M=+o-L(o);return Math.round((u-M)/Pe)}function qt(r,e){const t=ue(r,e),n=f(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),H(n)}function Kn(r,e,t){return ie(r,e*3,t)}function Zn(r,e,t){return ie(r,e*12,t)}function Un(r,e,t){const[n,a]=F(t?.in,r,e);return+Q(n)==+Q(a)}function Ht(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Ft(r){return!(!Ht(r)&&typeof r!="number"||isNaN(+i(r)))}function Sn(r,e){const t=i(r,e?.in);return Math.trunc(t.getMonth()/3)+1}function U(r,e){const t=i(r,e?.in),n=t.getMonth(),a=n-n%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function er(r,e){const t=i(r,e?.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Ct(r,e){const t=i(r,e?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Lt(r,e){const t=i(r,e?.in);return Nt(t,Ct(t))+1}function ce(r,e){const t=i(r,e?.in),n=+H(t)-+qt(t);return Math.round(n/ae)+1}function G(r,e){const t=i(r,e?.in),n=t.getFullYear(),a=C(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=f(e?.in||r,0);o.setFullYear(n+1,0,s),o.setHours(0,0,0,0);const u=Y(o,e),M=f(e?.in||r,0);M.setFullYear(n,0,s),M.setHours(0,0,0,0);const x=Y(M,e);return+t>=+u?n+1:+t>=+x?n:n-1}function Qt(r,e){const t=C(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,a=G(r,e),s=f(e?.in||r,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),Y(s,e)}function de(r,e){const t=i(r,e?.in),n=+Y(t,e)-+Qt(t,e);return Math.round(n/ae)+1}function l(r,e){const t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}const W={y(r,e){const t=r.getFullYear(),n=t>0?t:1-t;return l(e==="yy"?n%100:n,e.length)},M(r,e){const t=r.getMonth();return e==="M"?String(t+1):l(t+1,2)},d(r,e){return l(r.getDate(),e.length)},a(r,e){const t=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return l(r.getHours()%12||12,e.length)},H(r,e){return l(r.getHours(),e.length)},m(r,e){return l(r.getMinutes(),e.length)},s(r,e){return l(r.getSeconds(),e.length)},S(r,e){const t=e.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return l(a,e.length)}},N={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},S={G:function(r,e,t){const n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){const n=r.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return W.y(r,e)},Y:function(r,e,t,n){const a=G(r,n),s=a>0?a:1-a;if(e==="YY"){const o=s%100;return l(o,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):l(s,e.length)},R:function(r,e){const t=ue(r);return l(t,e.length)},u:function(r,e){const t=r.getFullYear();return l(t,e.length)},Q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return l(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return l(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){const n=r.getMonth();switch(e){case"M":case"MM":return W.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){const n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return l(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){const a=de(r,n);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):l(a,e.length)},I:function(r,e,t){const n=ce(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):l(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):W.d(r,e)},D:function(r,e,t){const n=Lt(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):l(n,e.length)},E:function(r,e,t){const n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return l(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){const a=r.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return l(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,e,t){const n=r.getDay(),a=n===0?7:n;switch(e){case"i":return String(a);case"ii":return l(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){const a=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,e,t){const n=r.getHours();let a;switch(n===12?a=N.noon:n===0?a=N.midnight:a=n/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,e,t){const n=r.getHours();let a;switch(n>=17?a=N.evening:n>=12?a=N.afternoon:n>=4?a=N.morning:a=N.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return W.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):W.H(r,e)},K:function(r,e,t){const n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):l(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):l(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):W.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):W.s(r,e)},S:function(r,e){return W.S(r,e)},X:function(r,e,t){const n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return te(n);case"XXXX":case"XX":return _(n);case"XXXXX":case"XXX":default:return _(n,":")}},x:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"x":return te(n);case"xxxx":case"xx":return _(n);case"xxxxx":case"xxx":default:return _(n,":")}},O:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ee(n,":");case"OOOO":default:return"GMT"+_(n,":")}},z:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ee(n,":");case"zzzz":default:return"GMT"+_(n,":")}},t:function(r,e,t){const n=Math.trunc(+r/1e3);return l(n,e.length)},T:function(r,e,t){return l(+r,e.length)}};function ee(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),s=n%60;return s===0?t+String(a):t+String(a)+e+l(s,2)}function te(r,e){return r%60===0?(r>0?"-":"+")+l(Math.abs(r)/60,2):_(r,e)}function _(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=l(Math.trunc(n/60),2),s=l(n%60,2);return t+a+e+s}const ne=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},le=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},It=(r,e)=>{const t=r.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return ne(r,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",ne(n,e)).replace("{{time}}",le(a,e))},$={p:le,P:It},Rt=/^D+$/,$t=/^Y+$/,Xt=["D","DD","YY","YYYY"];function fe(r){return Rt.test(r)}function he(r){return $t.test(r)}function X(r,e,t){const n=Gt(r,e,t);if(Xt.includes(r))throw new RangeError(n)}function Gt(r,e,t){const n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Bt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,At=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vt=/^'([^]*?)'?$/,zt=/''/g,jt=/[a-zA-Z]/;function tr(r,e,t){const n=C(),a=t?.locale??n.locale??se,s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=i(r,t?.in);if(!Ft(u))throw new RangeError("Invalid time value");let M=e.match(At).map(g=>{const p=g[0];if(p==="p"||p==="P"){const v=$[p];return v(g,a.formatLong)}return g}).join("").match(Bt).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const p=g[0];if(p==="'")return{isToken:!1,value:Jt(g)};if(S[p])return{isToken:!0,value:g};if(p.match(jt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:g}});a.localize.preprocessor&&(M=a.localize.preprocessor(u,M));const x={firstWeekContainsDate:s,weekStartsOn:o,locale:a};return M.map(g=>{if(!g.isToken)return g.value;const p=g.value;(!t?.useAdditionalWeekYearTokens&&he(p)||!t?.useAdditionalDayOfYearTokens&&fe(p))&&X(p,e,String(r));const v=S[p[0]];return v(u,p,a.localize,x)}).join("")}function Jt(r){const e=r.match(Vt);return e?e[1].replace(zt,"'"):r}function nr(r,e){return i(r,e?.in).getDate()}function rr(r,e){return i(r,e?.in).getDay()}function Kt(r,e){const t=i(r,e?.in),n=t.getFullYear(),a=t.getMonth(),s=f(t,0);return s.setFullYear(n,a+1,0),s.setHours(0,0,0,0),s.getDate()}function Zt(){return Object.assign({},C())}function ar(r,e){return i(r,e?.in).getHours()}function Ut(r,e){const t=i(r,e?.in).getDay();return t===0?7:t}function sr(r){return i(r).getMilliseconds()}function or(r,e){return i(r,e?.in).getMinutes()}function ir(r,e){return i(r,e?.in).getMonth()}function ur(r){return i(r).getSeconds()}function cr(r){return+i(r)}function dr(r,e){return i(r,e?.in).getFullYear()}function St(r,e){const t=en(e)?new e(0):f(e,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function en(r){return typeof r=="function"&&r.prototype?.constructor===r}const tn=10;class me{subPriority=0;validate(e,t){return!0}}class nn extends me{constructor(e,t,n,a,s){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=a,s&&(this.subPriority=s)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class rn extends me{priority=tn;subPriority=-1;constructor(e,t){super(),this.context=e||(n=>f(t,n))}set(e,t){return t.timestampIsSet?e:f(e,St(e,this.context))}}class d{run(e,t,n,a){const s=this.parse(e,t,n,a);return s?{setter:new nn(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,t,n){return!0}}class an extends d{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const y={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},T={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function b(r,e){return r&&{value:e(r.value),rest:r.rest}}function h(r,e){const t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function O(r,e){const t=e.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const n=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,s=t[3]?parseInt(t[3],10):0,o=t[5]?parseInt(t[5],10):0;return{value:n*(a*ke+s*De+o*Te),rest:e.slice(t[0].length)}}function we(r){return h(y.anyDigitsSigned,r)}function w(r,e){switch(r){case 1:return h(y.singleDigit,e);case 2:return h(y.twoDigits,e);case 3:return h(y.threeDigits,e);case 4:return h(y.fourDigits,e);default:return h(new RegExp("^\\d{1,"+r+"}"),e)}}function I(r,e){switch(r){case 1:return h(y.singleDigitSigned,e);case 2:return h(y.twoDigitsSigned,e);case 3:return h(y.threeDigitsSigned,e);case 4:return h(y.fourDigitsSigned,e);default:return h(new RegExp("^-?\\d{1,"+r+"}"),e)}}function B(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ge(r,e){const t=e>0,n=t?e:1-e;let a;if(n<=50)a=r||100;else{const s=n+50,o=Math.trunc(s/100)*100,u=r>=s%100;a=r+o-(u?100:0)}return t?a:1-a}function ye(r){return r%400===0||r%4===0&&r%100!==0}class sn extends d{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const a=s=>({year:s,isTwoDigitYear:t==="yy"});switch(t){case"y":return b(w(4,e),a);case"yo":return b(n.ordinalNumber(e,{unit:"year"}),a);default:return b(w(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const a=e.getFullYear();if(n.isTwoDigitYear){const o=ge(n.year,a);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const s=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class on extends d{priority=130;parse(e,t,n){const a=s=>({year:s,isTwoDigitYear:t==="YY"});switch(t){case"Y":return b(w(4,e),a);case"Yo":return b(n.ordinalNumber(e,{unit:"year"}),a);default:return b(w(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,a){const s=G(e,a);if(n.isTwoDigitYear){const u=ge(n.year,s);return e.setFullYear(u,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),Y(e,a)}const o=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(o,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),Y(e,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class un extends d{priority=130;parse(e,t){return I(t==="R"?4:t.length,e)}set(e,t,n){const a=f(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),H(a)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class cn extends d{priority=130;parse(e,t){return I(t==="u"?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class dn extends d{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return w(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class ln extends d{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return w(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class fn extends d{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const a=s=>s-1;switch(t){case"M":return b(h(y.month,e),a);case"MM":return b(w(2,e),a);case"Mo":return b(n.ordinalNumber(e,{unit:"month"}),a);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}class hn extends d{priority=110;parse(e,t,n){const a=s=>s-1;switch(t){case"L":return b(h(y.month,e),a);case"LL":return b(w(2,e),a);case"Lo":return b(n.ordinalNumber(e,{unit:"month"}),a);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function mn(r,e,t){const n=i(r,t?.in),a=de(n,t)-e;return n.setDate(n.getDate()-a*7),i(n,t?.in)}class wn extends d{priority=100;parse(e,t,n){switch(t){case"w":return h(y.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,a){return Y(mn(e,n,a),a)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function gn(r,e,t){const n=i(r,t?.in),a=ce(n,t)-e;return n.setDate(n.getDate()-a*7),n}class yn extends d{priority=100;parse(e,t,n){switch(t){case"I":return h(y.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return H(gn(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const bn=[31,28,31,30,31,30,31,31,30,31,30,31],pn=[31,29,31,30,31,30,31,31,30,31,30,31];class xn extends d{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return h(y.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return w(t.length,e)}}validate(e,t){const n=e.getFullYear(),a=ye(n),s=e.getMonth();return a?t>=1&&t<=pn[s]:t>=1&&t<=bn[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Mn extends d{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return h(y.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return w(t.length,e)}}validate(e,t){const n=e.getFullYear();return ye(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function A(r,e,t){const n=C(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=i(r,t?.in),o=s.getDay(),M=(e%7+7)%7,x=7-a,g=e<0||e>6?e-(o+x)%7:(M+x)%7-(o+x)%7;return oe(s,g,t)}class Pn extends d{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return e=A(e,n,a),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class Dn extends d{priority=90;parse(e,t,n,a){const s=o=>{const u=Math.floor((o-1)/7)*7;return(o+a.weekStartsOn+6)%7+u};switch(t){case"e":case"ee":return b(w(t.length,e),s);case"eo":return b(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return e=A(e,n,a),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class kn extends d{priority=90;parse(e,t,n,a){const s=o=>{const u=Math.floor((o-1)/7)*7;return(o+a.weekStartsOn+6)%7+u};switch(t){case"c":case"cc":return b(w(t.length,e),s);case"co":return b(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return e=A(e,n,a),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Tn(r,e,t){const n=i(r,t?.in),a=Ut(n,t),s=e-a;return oe(n,s,t)}class On extends d{priority=90;parse(e,t,n){const a=s=>s===0?7:s;switch(t){case"i":case"ii":return w(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return b(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return b(n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return b(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);case"iiii":default:return b(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Tn(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Yn extends d{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(B(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class Wn extends d{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(B(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class vn extends d{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(B(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class _n extends d{priority=70;parse(e,t,n){switch(t){case"h":return h(y.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const a=e.getHours()>=12;return a&&n<12?e.setHours(n+12,0,0,0):!a&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class En extends d{priority=70;parse(e,t,n){switch(t){case"H":return h(y.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class Nn extends d{priority=70;parse(e,t,n){switch(t){case"K":return h(y.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class qn extends d{priority=70;parse(e,t,n){switch(t){case"k":return h(y.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const a=n<=24?n%24:n;return e.setHours(a,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class Hn extends d{priority=60;parse(e,t,n){switch(t){case"m":return h(y.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}class Fn extends d{priority=50;parse(e,t,n){switch(t){case"s":return h(y.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}class Cn extends d{priority=30;parse(e,t){const n=a=>Math.trunc(a*Math.pow(10,-t.length+3));return b(w(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}class Ln extends d{priority=10;parse(e,t){switch(t){case"X":return O(T.basicOptionalMinutes,e);case"XX":return O(T.basic,e);case"XXXX":return O(T.basicOptionalSeconds,e);case"XXXXX":return O(T.extendedOptionalSeconds,e);case"XXX":default:return O(T.extended,e)}}set(e,t,n){return t.timestampIsSet?e:f(e,e.getTime()-L(e)-n)}incompatibleTokens=["t","T","x"]}class Qn extends d{priority=10;parse(e,t){switch(t){case"x":return O(T.basicOptionalMinutes,e);case"xx":return O(T.basic,e);case"xxxx":return O(T.basicOptionalSeconds,e);case"xxxxx":return O(T.extendedOptionalSeconds,e);case"xxx":default:return O(T.extended,e)}}set(e,t,n){return t.timestampIsSet?e:f(e,e.getTime()-L(e)-n)}incompatibleTokens=["t","T","X"]}class In extends d{priority=40;parse(e){return we(e)}set(e,t,n){return[f(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class Rn extends d{priority=20;parse(e){return we(e)}set(e,t,n){return[f(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}const $n={G:new an,y:new sn,Y:new on,R:new un,u:new cn,Q:new dn,q:new ln,M:new fn,L:new hn,w:new wn,I:new yn,d:new xn,D:new Mn,E:new Pn,e:new Dn,c:new kn,i:new On,a:new Yn,b:new Wn,B:new vn,h:new _n,H:new En,K:new Nn,k:new qn,m:new Hn,s:new Fn,S:new Cn,X:new Ln,x:new Qn,t:new In,T:new Rn},Xn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bn=/^'([^]*?)'?$/,An=/''/g,Vn=/\S/,zn=/[a-zA-Z]/;function lr(r,e,t,n){const a=()=>f(n?.in||t,NaN),s=Zt(),o=n?.locale??s.locale??se,u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,M=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return r?a():i(t,n?.in);const x={firstWeekContainsDate:u,weekStartsOn:M,locale:o},g=[new rn(n?.in,t)],p=e.match(Gn).map(c=>{const m=c[0];if(m in $){const P=$[m];return P(c,o.formatLong)}return c}).join("").match(Xn),v=[];for(let c of p){!n?.useAdditionalWeekYearTokens&&he(c)&&X(c,e,r),!n?.useAdditionalDayOfYearTokens&&fe(c)&&X(c,e,r);const m=c[0],P=$n[m];if(P){const{incompatibleTokens:z}=P;if(Array.isArray(z)){const j=v.find(J=>z.includes(J.token)||J.token===m);if(j)throw new RangeError(`The format string mustn't contain \`${j.fullToken}\` and \`${c}\` at the same time`)}else if(P.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${c}\` and any other token at the same time`);v.push({token:m,fullToken:c});const R=P.run(r,c,o.match,x);if(!R)return a();g.push(R.setter),r=R.rest}else{if(m.match(zn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");if(c==="''"?c="'":m==="'"&&(c=jn(c)),r.indexOf(c)===0)r=r.slice(c.length);else return a()}}if(r.length>0&&Vn.test(r))return a();const pe=g.map(c=>c.priority).sort((c,m)=>m-c).filter((c,m,P)=>P.indexOf(c)===m).map(c=>g.filter(m=>m.priority===c).sort((m,P)=>P.subPriority-m.subPriority)).map(c=>c[0]);let E=i(t,n?.in);if(isNaN(+E))return a();const V={};for(const c of pe){if(!c.validate(E,x))return a();const m=c.set(E,V,x);Array.isArray(m)?(E=m[0],Object.assign(V,m[1])):E=m}return E}function jn(r){return r.match(Bn)[1].replace(An,"'")}function fr(r,e){const t=i(r,e?.in);return t.setMinutes(0,0,0),t}function hr(r,e){const t=i(r,e?.in);return t.setSeconds(0,0),t}function mr(r,e,t){const[n,a]=F(t?.in,r,e);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function wr(r,e,t){const[n,a]=F(t?.in,r,e);return+U(n)==+U(a)}function gr(r,e){const t=i(r,e?.in);return t.setMilliseconds(0),t}function yr(r,e,t){const[n,a]=F(t?.in,r,e);return n.getFullYear()===a.getFullYear()}function be(r,e,t){const n=i(r,t?.in),a=n.getFullYear(),s=n.getDate(),o=f(r,0);o.setFullYear(a,e,15),o.setHours(0,0,0,0);const u=Kt(o);return n.setMonth(e,Math.min(s,u)),n}function br(r,e,t){let n=i(r,t?.in);return isNaN(+n)?f(r,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=be(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function pr(r,e,t){const n=i(r,t?.in);return n.setHours(e),n}function xr(r,e,t){const n=i(r,t?.in);return n.setMinutes(e),n}function Mr(r,e,t){const n=i(r,t?.in),a=Math.trunc(n.getMonth()/3)+1,s=e-a;return be(n,n.getMonth()+s*3)}function Pr(r,e,t){const n=i(r,t?.in);return n.setSeconds(e),n}function Dr(r,e,t){const n=i(r,t?.in);return isNaN(+n)?f(r,NaN):(n.setFullYear(e),n)}export{Mr as A,gr as B,U as C,Y as D,Q as E,ar as F,pr as G,fr as H,xr as I,hr as J,Pr as K,sr as L,ur as M,or as N,ir as a,cr as b,oe as c,rr as d,se as e,tr as f,Zt as g,Ct as h,Ft as i,ie as j,Dr as k,Zn as l,Kn as m,mr as n,dr as o,lr as p,yr as q,wr as r,er as s,Sn as t,nr as u,Un as v,Ye as w,be as x,br as y,Jn as z}; diff --git a/js/date-fns@4.1.0-D7sOP3Nv.js.gz b/js/date-fns@4.1.0-D7sOP3Nv.js.gz new file mode 100644 index 00000000..6b1e77ba Binary files /dev/null and b/js/date-fns@4.1.0-D7sOP3Nv.js.gz differ diff --git a/js/dayjs@1.11.13-Dcmsq1le.js b/js/dayjs@1.11.13-Dcmsq1le.js deleted file mode 100644 index 21f11056..00000000 --- a/js/dayjs@1.11.13-Dcmsq1le.js +++ /dev/null @@ -1 +0,0 @@ -import{g as et}from"./classnames@2.5.1-Dfc4g_b4.js";var I={exports:{}},rt=I.exports,R;function P(){return R||(R=1,function(q,Q){(function(O,p){q.exports=p()})(rt,function(){var O=1e3,p=6e4,j=36e5,x="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",D="year",b="date",J="Invalid Date",G=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,K=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},F=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},tt={s:F,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+F(n,2,"0")+":"+F(e,2,"0")},m:function s(r,t){if(r.date()1)return s(u[0])}else{var o=r.name;g[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(N(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new A(t)},a=tt;a.l=W,a.i=N,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==J},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)=r?s:""+Array(r+1-n.length).join(t)+s},tt={s:F,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+F(n,2,"0")+":"+F(e,2,"0")},m:function s(r,t){if(r.date()1)return s(u[0])}else{var o=r.name;g[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(N(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new A(t)},a=tt;a.l=W,a.i=N,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var A=(function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=(function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==J},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)[u("我被限制在 body 中。")]}),r?t(m,{animation:!0,title:"Custom Container",restrictionElement:a,closable:!0,onClose:()=>this.card3=!1,defaultPosition:this.positionRadioValue,dad:this.card3Dad},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(d,{title:"显示与隐藏卡片"},{default:()=>[t(i,{vertical:!0},{default:()=>[t(i,null,{default:()=>[t(n,{value:this.card3Dad,"onUpdate:value":e=>this.card3Dad=e},{checked:()=>"拖拽",unchecked:()=>"禁用"})]}),t(i,null,{default:()=>[t(s,{value:this.positionRadioValue,"onUpdate:value":e=>this.positionRadioValue=e},g(o=l.map(e=>t(c,{key:e.value,value:e.value},{default:()=>[e.label]})))?o:{default:()=>[o]})]}),t(i,null,{default:()=>[t(f,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[u("点一下试试")]})]})]})]})])}});export{Rt as default}; diff --git a/js/draggable-card-BA24M5Dj.js.gz b/js/draggable-card-BA24M5Dj.js.gz new file mode 100644 index 00000000..6f2e82b8 Binary files /dev/null and b/js/draggable-card-BA24M5Dj.js.gz differ diff --git a/js/draggable-card-W9uWQrcM.js b/js/draggable-card-W9uWQrcM.js deleted file mode 100644 index ef2c3491..00000000 --- a/js/draggable-card-W9uWQrcM.js +++ /dev/null @@ -1 +0,0 @@ -import{I as m}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{N as d,e as i,J as n,aj as s,ak as c,P as f}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as b,d as t,J as u,t as h,q as v}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!v(o)}const Rt=b({name:"DraggableCardDemo",setup(){const o=p(!1),r=h("domRef"),a=[{label:"center",value:"center"},{label:"top-center",value:"top-center"},{label:"bottom-center",value:"bottom-center"},{label:"top-left",value:"top-left"},{label:"top-right",value:"top-right"},{label:"bottom-left",value:"bottom-left"},{label:"bottom-right",value:"bottom-right"}],l=p("center"),e=p(!0);return{card3:o,card3Dad:e,domRef:r,positionRadioOptions:a,positionRadioValue:l}},render(){let o;const{card3:r,domRef:a,positionRadioOptions:l}=this;return t("div",null,[t("div",{ref:"domRef",style:{width:"100%",height:"400px",backgroundColor:"rgba(255, 10, 20, 1)"}},null),t(m,{animation:!0,title:"Body"},{default:()=>[u("我被限制在 body 中。")]}),r?t(m,{animation:!0,title:"Custom Container",restrictionElement:a,closable:!0,onClose:()=>this.card3=!1,defaultPosition:this.positionRadioValue,dad:this.card3Dad},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(d,{title:"显示与隐藏卡片"},{default:()=>[t(i,{vertical:!0},{default:()=>[t(i,null,{default:()=>[t(n,{value:this.card3Dad,"onUpdate:value":e=>this.card3Dad=e},{checked:()=>"拖拽",unchecked:()=>"禁用"})]}),t(i,null,{default:()=>[t(s,{value:this.positionRadioValue,"onUpdate:value":e=>this.positionRadioValue=e},g(o=l.map(e=>t(c,{key:e.value,value:e.value},{default:()=>[e.label]})))?o:{default:()=>[o]})]}),t(i,null,{default:()=>[t(f,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[u("点一下试试")]})]})]})]})])}});export{Rt as default}; diff --git a/js/draggable-card-W9uWQrcM.js.gz b/js/draggable-card-W9uWQrcM.js.gz deleted file mode 100644 index e5d45a6b..00000000 Binary files a/js/draggable-card-W9uWQrcM.js.gz and /dev/null differ diff --git a/js/echarts@6.0.0-BTrF8XjC.js b/js/echarts@6.0.0-BTrF8XjC.js deleted file mode 100644 index 08c042af..00000000 --- a/js/echarts@6.0.0-BTrF8XjC.js +++ /dev/null @@ -1,28 +0,0 @@ -import{_ as H}from"./tslib@2.3.0-BDyQ-Jie.js";import{i as X,r as Wa,m as Y,a as N,b as $,c as Z,e as C,d as ue,f as ce,g as Po,h as ut,j as ye,k as Gg,l as W,n as q,P as Ce,o as ru,p as $n,q as qe,s as j,Z as Zr,t as Fg,u as Wg,v as oe,w as ze,x as Hg,T as Ug,y as Ns,z as lr,A as Yg,B as Xg,C as Zg,D as Mv,E as Iv,F as Ee,G as $g,H as vi,I as Q,J as hi,K as Lv,S as pr,R as Pv,L as zs,M as Kn,N as de,O as ur,Q as kv,U as Vs,V as Kg,W as Se,X as qg,Y as Rv,_ as Ev,$ as pe,a0 as jg,a1 as De,a2 as qn,a3 as Ov,a4 as Gs,a5 as J,a6 as bt,a7 as Ne,a8 as ne,a9 as ko,aa as We,ab as we,ac as ie,ad as Ha,ae as Qg,af as St,ag as Ro,ah as Jg,ai as em,aj as Bv,ak as tm,al as jn,am as nu,an as Ei,ao as rm,ap as Eo,aq as Ua,ar as nm,as as Fs,at as au,au as Oi,av as Nv,aw as In,ax as iu,ay as am,az as im,aA as om,aB as Oo,aC as ou,aD as sm,aE as lm,aF as um,aG as cm,aH as fm,aI as vm,aJ as hm,aK as su,aL as lu,aM as dm,aN as pm,aO as gm,aP as mm,aQ as ym,aR as _m,aS as Sm,aT as xm,aU as bm}from"./zrender@6.0.0-Dzb6jg8s.js";var wm=1e-4,zv=20;function Cm(r){return r.replace(/^\s+|\s+$/g,"")}var Ln=Math.min,Fe=Math.max,it=Math.abs;function Bt(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var se=Tm;function Tm(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Bo(r,e,t)}function Bo(r,e,t){return X(r)?Cm(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function Le(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),zv),r=(+r).toFixed(e),t?r:+r}function Dm(r){return r.sort(function(e,t){return e-t}),r}function yt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Am(r)}function Am(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Vv(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(it(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Mm(r,e){var t=Wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=Y(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=Y(a,function(v){return Math.floor(v)}),s=Wa(o,function(v,d){return v+d},0),l=Y(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Y(o,function(v){return v/n})}function Im(r,e){var t=Math.max(yt(r),yt(e)),n=r+e;return t>zv?n:Le(n,t)}function Gv(r){var e=Math.PI*2;return(r%e+e)%e}function Ya(r){return r>-1e-4&&r=10&&e++,e}function Fv(r,e){var t=Ws(r),n=Math.pow(10,t),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function Ht(r){var e=parseFloat(r);return e==r&&(e!==0||!X(r)||r.indexOf("x")<=0)?e:NaN}function Wv(r){return!isNaN(Ht(r))}function Hv(){return Math.round(Math.random()*9)}function Uv(r,e){return e===0?r:Uv(e,r%e)}function uu(r,e){return r==null?e:e==null?r:r*e/Uv(r,e)}var km="[ECharts] ",Rm=typeof console<"u"&&console.warn&&console.log;function Em(r,e,t){Rm&&console[r](km+e)}function Yv(r,e){Em("error",r)}function re(r){throw new Error(r)}function cu(r,e,t){return(e-r)*t+r}var Xv="series\0",Zv="\0_ec_\0";function _e(r){return r instanceof Array?r:r==null?[]:[r]}function No(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n=0||i&&ue(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var iy=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],oy=kn(iy),sy=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return oy(this,e,t)},r}(),ee=fe(),ly=function(r,e,t,n){if(n){var a=ee(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ee(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},vu=1,hu={},Qv=fe(),Xs=fe(),Zs=0,pi=1,gi=2,Ke=["emphasis","blur","select"],Xa=["normal","emphasis","blur","select"],uy=10,cy=9,ir="highlight",ka="downplay",Za="select",zo="unselect",$a="toggleSelect",$s="selectchanged";function Sr(r){return r!=null&&r!=="none"}function mi(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Jv(r){mi(r,"emphasis",gi)}function eh(r){r.hoverState===gi&&mi(r,"normal",Zs)}function Ks(r){mi(r,"blur",pi)}function th(r){r.hoverState===pi&&mi(r,"normal",Zs)}function fy(r){r.selected=!0}function vy(r){r.selected=!1}function du(r,e,t){e(r,t)}function wt(r,e,t){du(r,e,t),r.isGroup&&r.traverse(function(n){du(n,e,t)})}function pu(r,e){switch(e){case"emphasis":r.hoverState=gi;break;case"normal":r.hoverState=Zs;break;case"blur":r.hoverState=pi;break;case"select":r.selected=!0}}function hy(r,e,t,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Ce){var o=Qv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Sr(s)||Sr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=W({},n),u=W({},u),u.fill=s):!Sr(u.fill)&&Sr(s)?(i=!0,n=W({},n),u=W({},u),u.fill=ru(s)):!Sr(u.stroke)&&Sr(l)&&(i||(n=W({},n),u=W({},u)),u.stroke=ru(l)),n.style=u}}if(n&&n.z2==null){i||(n=W({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??uy)}return n}function py(r,e,t){if(t&&t.z2==null){t=W({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??cy)}return t}function gy(r,e,t){var n=ue(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:hy(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=W({},t),o=W({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Bi(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return dy(this,r,e,t);if(r==="blur")return gy(this,r,t);if(r==="select")return py(this,r,t)}return t}function my(r){r.stateProxy=Bi;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Bi),t&&(t.stateProxy=Bi)}function gu(r,e){!ih(r,e)&&!r.__highByOuter&&wt(r,Jv)}function mu(r,e){!ih(r,e)&&!r.__highByOuter&&wt(r,eh)}function zr(r,e){r.__highByOuter|=1<<(e||0),wt(r,Jv)}function Vr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&wt(r,eh)}function yy(r){wt(r,Ks)}function rh(r){wt(r,th)}function nh(r){wt(r,fy)}function ah(r){wt(r,vy)}function ih(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function oh(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=Xs(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){th(u)}),s&&t.push(i)),o.isBlured=!1}),C(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Vo(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Fo(r,e,t){sh(r,!0),wt(r,my),Ty(r,e,t)}function Cy(r){sh(r,!1)}function fr(r,e,t,n){n?Cy(r):Fo(r,e,t)}function Ty(r,e,t){var n=ee(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var _u=["emphasis","blur","select"],Dy={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rn(r,e,t,n){t=t||"itemStyle";for(var a=0;a<_u.length;a++){var i=_u[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=o[Dy[t]]()}}function sh(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Wo(r){return!!(r&&r.__highDownDispatcher)}function Ay(r){var e=hu[r];return e==null&&vu<=32&&(e=hu[r]=vu++),e}function Ho(r){var e=r.type;return e===Za||e===zo||e===$a}function Su(r){var e=r.type;return e===ir||e===ka}function My(r){var e=Qv(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var lh=fe();function yi(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=j(n.duration,200),c=j(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),q(f)&&(f=f(t,a)),q(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function js(r,e,t,n,a,i,o){var s=!1,l;q(a)?(o=i,i=a,a=null):$(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=yi(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Ae(r,e,t,n,a,i){js("update",r,e,t,n,a,i)}function Ve(r,e,t,n,a,i){js("enter",r,e,t,n,a,i)}function bn(r){if(!r.__zr)return!0;for(var e=0;eit(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function bu(r){return!r.isGroup}function By(r){return r.shape!=null}function hh(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){bu(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return By(o)&&(s.shape=Q(o.shape)),s}var i=n(r);e.traverse(function(o){if(bu(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ae(o,l,t,ee(o).dataIndex)}}})}function dh(r,e){return Y(r,function(t){var n=t[0];n=Fe(n,e.x),n=Ln(n,e.x+e.width);var a=t[1];return a=Fe(a,e.y),a=Ln(a,e.y+e.height),[n,a]})}function Ny(r,e){var t=Fe(r.x,e.x),n=Ln(r.x+r.width,e.x+e.width),a=Fe(r.y,e.y),i=Ln(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Si(r,e,t){var n=W({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),oe(a,t),new Zr(n)):Qs(r.replace("path://",""),n,t,"center")}function zy(r,e,t,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=Ni(v,d,c,f)/h;return!(m<0||m>1)}function Ni(r,e,t,n){return r*n-t*e}function Vy(r){return r<=1e-6&&r>=-1e-6}function Ka(r,e,t,n,a){return e==null||(ce(e)?ve[0]=ve[1]=ve[2]=ve[3]=e:(ve[0]=e[0],ve[1]=e[1],ve[2]=e[2],ve[3]=e[3]),n&&(ve[0]=Fe(0,ve[0]),ve[1]=Fe(0,ve[1]),ve[2]=Fe(0,ve[2]),ve[3]=Fe(0,ve[3])),t&&(ve[0]=-ve[0],ve[1]=-ve[1],ve[2]=-ve[2],ve[3]=-ve[3]),wu(r,ve,"x","width",3,1,a&&a[0]||0),wu(r,ve,"y","height",0,2,a&&a[1]||0)),r}var ve=[0,0,0,0];function wu(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=Fe(0,Ln(o,l)),r[n]=0?-e[a]:e[i]>=0?l+e[i]:it(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function ea(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=X(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(qe(l),function(c){ze(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ee(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:oe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Yo(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ta(r,e){if(r)if(N(r))for(var t=0;te&&(e=o),oe&&(t=e=0),{min:t,max:e}}function gh(r,e,t){mh(r,e,t,-1/0)}function mh(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function al(r,e){return J(J({},r,!0),e,!0)}const e0={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},t0={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ja="ZH",il="EN",Or=il,Ea={},ol={},xh=ye.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Or).toUpperCase();return r.indexOf(ja)>-1?ja:Or}():Or;function bh(r,e){r=r.toUpperCase(),ol[r]=new he(e),Ea[r]=e}function r0(r){if(X(r)){var e=Ea[r.toUpperCase()]||{};return r===ja||r===il?Q(e):J(Q(e),Q(Ea[Or]),!1)}else return J(Q(r),Q(Ea[Or]),!1)}function n0(r){return ol[r]}function a0(){return ol[Or]}bh(il,e0);bh(ja,t0);var i0=null;function Qa(){return i0}var sl=1e3,ll=sl*60,Cn=ll*60,$e=Cn*24,Lu=$e*365,o0={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Oa={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},s0="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ca="{yyyy}-{MM}-{dd}",Pu={year:"{yyyy}",month:"{yyyy}-{MM}",day:ca,hour:ca+" "+Oa.hour,minute:ca+" "+Oa.minute,second:ca+" "+Oa.second,millisecond:s0},or=["year","month","day","hour","minute","second","millisecond"],l0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function u0(r){return!X(r)&&!q(r)?c0(r):r}function c0(r){r=r||{};var e={},t=!0;return C(or,function(n){t&&(t=r[n]==null)}),C(or,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=or[s],u=$(i)&&!N(i)?i[l]:i,c=void 0;N(u)?(c=u.slice(),o=c[0]||""):X(u)?(o=u,c=[o]):(o==null?o=Oa[n]:o0[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],t&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function At(r,e){return r+="","0000".substr(0,e-r.length)+r}function Tn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function f0(r){return r===Tn(r)}function v0(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wi(r,e,t,n){var a=$r(r),i=a[wh(t)](),o=a[ul(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[cl(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[fl(t)](),f=(c-1)%12+1,h=a[vl(t)](),v=a[hl(t)](),d=a[dl(t)](),p=c>=12?"pm":"am",m=p.toUpperCase(),g=n instanceof he?n:n0(n||xh)||a0(),y=g.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,At(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,At(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,At(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,At(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,At(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,At(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,At(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,At(d,3)).replace(/{S}/g,d+"")}function h0(r,e,t,n,a){var i=null;if(X(t))i=t;else if(q(t)){var o={time:r.time,level:r.time.level},s=Qa();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var c=Ja(r.value,a);i=t[c][c][0]}}return wi(new Date(r.value),i,a,n)}function Ja(r,e){var t=$r(r),n=t[ul(e)]()+1,a=t[cl(e)](),i=t[fl(e)](),o=t[vl(e)](),s=t[hl(e)](),l=t[dl(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Xo(r,e,t){switch(e){case"year":r[Ch(t)](0);case"month":r[Th(t)](1);case"day":r[Dh(t)](0);case"hour":r[Ah(t)](0);case"minute":r[Mh(t)](0);case"second":r[Ih(t)](0)}return r}function wh(r){return r?"getUTCFullYear":"getFullYear"}function ul(r){return r?"getUTCMonth":"getMonth"}function cl(r){return r?"getUTCDate":"getDate"}function fl(r){return r?"getUTCHours":"getHours"}function vl(r){return r?"getUTCMinutes":"getMinutes"}function hl(r){return r?"getUTCSeconds":"getSeconds"}function dl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function d0(r){return r?"setUTCFullYear":"setFullYear"}function Ch(r){return r?"setUTCMonth":"setMonth"}function Th(r){return r?"setUTCDate":"setDate"}function Dh(r){return r?"setUTCHours":"setHours"}function Ah(r){return r?"setUTCMinutes":"setMinutes"}function Mh(r){return r?"setUTCSeconds":"setSeconds"}function Ih(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Lh(r){if(!Wv(r))return X(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ph(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ci=Ov;function Zo(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&qn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?$r(r):r;if(isNaN(+l)){if(s)return"-"}else return wi(l,n,t)}if(e==="ordinal")return Po(r)?a(r):ce(r)&&i(r)?r+"":"-";var u=Ht(r);return i(u)?Lh(u):Po(r)?a(r):typeof r=="boolean"?r+"":"-"}var ku=["a","b","c","d","e","f","g"],Gi=function(r,e){return"{"+r+(e??"")+"}"};function kh(r,e,t){N(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function vr(r,e){return e=e||"transparent",X(r)?r:$(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Ru(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ba={},Fi={},pl=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ba),this._normalMasterList=n(Fi);function n(a,i){var o=[];return C(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){C(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Ba[e]=t;return}Fi[e]=t},r.get=function(e){return Fi[e]||Ba[e]},r}();function g0(r){return!!Ba[r]}var $o={coord:1,coord2:2};function m0(r){Rh.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Rh=Z();function y0(r){var e=r.getShallow("coord",!0),t=$o.coord;if(e==null){var n=Rh.get(r.type);n&&n.getCoord2&&(t=$o.coord2,e=n.getCoord2(r))}return{coord:e,from:t}}var mt={none:0,dataCoordSys:1,boxCoordSys:2};function _0(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=mt.none;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=mt.dataCoordSys,i||(a=mt.none)):n==="box"&&(a=mt.boxCoordSys,!i&&!g0(t)&&(a=mt.none))}return{coordSysType:t,kind:a}}function S0(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys,i=_0(e),o=i.kind,s=i.coordSysType;if(a&&o!==mt.dataCoordSys&&(o=mt.dataCoordSys,s=t),o===mt.none||s!==t)return!1;var l=n(t,e);return l?(o===mt.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var Na=C,x0=["left","right","top","bottom","width","height"],fa=[["width","left","right"],["height","top","bottom"]];function gl(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>a||l.newline?(i+=s+t,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var Br=gl;ne(gl,"vertical");ne(gl,"horizontal");function b0(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function w0(r,e){var t=na(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===pn.point)i=t.refPoint,a=ct(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];a=ct(n,t.refContainer),i=t.boxCoordFrom===$o.coord2?t.refPoint:[se(s[0],a.width)+a.x,se(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function C0(r,e){var t=w0(r,e),n=t.viewRect,a=t.center,i=r.get("radius");N(i)||(i=[0,i]);var o=se(n.width,e.getWidth()),s=se(n.height,e.getHeight()),l=Math.min(o,s),u=se(i[0],l/2),c=se(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:c,viewRect:n}}function ct(r,e,t){t=Ci(t||0);var n=e.width,a=e.height,i=se(r.left,n),o=se(r.top,a),s=se(r.right,n),l=se(r.bottom,a),u=se(r.width,n),c=se(r.height,a),f=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ee((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,c);return d.margin=t,d}var pn={rect:1,point:2};function na(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=y0(r),u=l.coord,c=l.from;if(o.dataToLayout){i=pn.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=pn.point,s=c,a=o.dataToPoint(u))}return i==null&&(i=pn.rect),i===pn.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function T0(r,e,t,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=ct(oe({width:o.width,height:o.height},e),t,n),u=l.x-o.x,c=l.y-o.y;return i.x+=u,i.y+=c,i===r&&r.markRedraw(),!0}function Nn(r){var e=r.layoutMode||r.constructor.layoutMode;return $(e)?e:e?{type:e}:null}function Yt(r,e,t){var n=t&&t.ignoreSize;!N(n)&&(n=[n,n]);var a=o(fa[0],0),i=o(fa[1],1);l(fa[0],r,a),l(fa[1],r,i);function o(u,c){var f={},h=0,v={},d=0,p=2;if(Na(u,function(y){v[y]=r[y]}),Na(u,function(y){ze(e,y)&&(f[y]=v[y]=e[y]),s(f,y)&&h++,s(v,y)&&d++}),n[c])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return f;for(var m=0;m=0;l--)s=J(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return Jn(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return b0(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(he);jv(ae,he);di(ae);Qy(ae);Jy(ae,M0);function M0(r){var e=[];return C(ae.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Y(e,function(t){return ot(t).main}),r!=="dataset"&&ue(e,"dataset")<=0&&e.unshift("dataset"),e}var z={color:{},darkColor:{},size:{}},ge=z.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};W(ge,{primary:ge.neutral80,secondary:ge.neutral70,tertiary:ge.neutral60,quaternary:ge.neutral50,disabled:ge.neutral20,border:ge.neutral30,borderTint:ge.neutral20,borderShade:ge.neutral40,background:ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ge.neutral70,axisLineTint:ge.neutral40,axisTick:ge.neutral70,axisTickMinor:ge.neutral60,axisLabel:ge.neutral70,axisSplitLine:ge.neutral15,axisMinorSplitLine:ge.neutral05});for(var jt in ge)if(ge.hasOwnProperty(jt)){var Eu=ge[jt];jt==="theme"?z.darkColor.theme=ge.theme.slice():jt==="highlight"?z.darkColor.highlight="rgba(255,231,130,0.4)":jt.indexOf("accent")===0?z.darkColor[jt]=ko(Eu,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):z.darkColor[jt]=ko(Eu,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Eh="";typeof navigator<"u"&&(Eh=navigator.platform||"");var xr="rgba(0, 0, 0, 0.2)",Oh=z.color.theme[0],I0=ko(Oh,null,null,.9);const L0={darkMode:"auto",colorBy:"series",color:z.color.theme,gradientColor:[I0,Oh],aria:{decal:{decals:[{color:xr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Eh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Bh=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ue="original",Pe="arrayRows",Ye="objectRows",nt="keyedColumns",Ft="typedArray",Nh="unknown",et="column",gr="row",Me={Must:1,Might:2,Not:3},zh=fe();function P0(r){zh(r).datasetMap=Z()}function Vh(r,e,t){var n={},a=ml(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=zh(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),C(r,function(p,m){var g=$(p)?p:r[m]={name:p};g.type==="ordinal"&&c==null&&(c=m,f=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});C(r,function(p,m){var g=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[g],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===m)v(n[g],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[g],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,m,g){for(var y=0;ye)return r[n];return r[t-1]}function Wh(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?t:N0(n,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function z0(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var va,tn,Nu,zu="\0_ec_inner",V0=1,_l=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new he(i),this._locale=new he(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=Fu(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,Fu(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Nu(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=n&&n.replaceMergeMainTypeMap;P0(this),C(t,function(f,h){f!=null&&(ae.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Q(f):J(a[h],f,!0))}),u&&u.each(function(f,h){ae.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ae.topologicalTravel(s,ae.getAllClassMainTypes(),c,this);function c(f){var h=O0(this,f,_e(t[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Bm(v,h,d);Um(p,f,ae),a[f]=null,i.set(f,null),o.set(f,0);var m=[],g=[],y=0,_;C(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",D=ae.getClass(f,S.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=W({componentIndex:b},S.keyInfo);x=new D(w,this,this,M),W(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[f]=m,i.set(f,g),o.set(f,y),f==="series"&&va(this)}this._seriesIndices||va(this)},e.prototype.getOption=function(){var t=Q(this.option);return C(t,function(n,a){if(ae.hasClass(a)){for(var i=_e(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Pn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[zu],t},e.prototype.setTheme=function(t){this._theme=new he(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function $0(r,e){return r.join(",")===e.join(",")}var je=C,zn=$,Wu=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wi(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Wu.length;t0?t[o-1].seriesModel:null)}),n_(t)}})}function n_(r){C(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var p=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Im(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Ti=function(){function r(e){this.data=e.data||(e.sourceFormat===nt?{}:[]),this.sourceFormat=e.sourceFormat||Nh,this.seriesLayoutBy=e.seriesLayoutBy||et,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Ku=(e={},e[Pe+"_"+et]={pure:!0,appendData:i},e[Pe+"_"+gr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ye]={pure:!0,appendData:i},e[nt]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Ue]={appendData:i},e[Ft]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Fr(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function Ju(r){var e,t;return $(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Dn(r){return new v_(r)}var v_=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},d_=function(){function r(e,t){if(!ce(t)){var n="";re(n)}this._opFn=ed[e],this._rvalFloat=Ht(t)}return r.prototype.evaluate=function(e){return ce(e)?this._opFn(e,this._rvalFloat):this._opFn(Ht(e),this._rvalFloat)},r}(),td=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=ce(e)?e:Ht(e),a=ce(t)?t:Ht(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=X(e),l=X(t);s&&(n=l?e:0),l&&(a=s?t:0)}return na?-this._resultLT:0},r}(),p_=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ht(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=Ht(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function g_(r,e){return r==="eq"||r==="ne"?new p_(r==="eq",e):ze(ed,r)?new d_(r,e):null}var m_=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return za(e,t)},r}();function y_(r,e){var t=new m_,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==et&&re(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";ze(l,g)&&re(_),l[g]=y}});else for(var c=0;c65535?D_:A_}function wr(){return[1/0,-1/0]}function M_(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function rc(r,e,t,n,a){var i=ad[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(y){return y.property}),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=e[a[1]][0],b=e[a[1]][1],g=0;g=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g=f&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var g=0;ge[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,h,v=new(br(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}A>0&&As&&(p=s-c);for(var m=0;md&&(d=y,v=c+m)}var _=this.getRawIndex(f),S=this.getRawIndex(v);fc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,a,i){return za(t[i],this._dimensions[i])}Yi={arrayRows:e,objectRows:function(t,n,a,i){return za(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return za(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}}(),r}(),id=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(da(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=We(s)?Ft:Ue,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=j(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(f.sourceHeader,h.sourceHeader),p=j(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[qo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(t);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[qo(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&ac(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&ac(f),s.push(c),l.push(u._getVersionSign())}),n?o=C_(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[a_(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return C(r.blocks,function(a){var i=ud(a);i>=e&&(e=i+ +(n&&(!i||Qo(a)&&!a.noHeader)))}),e}return 0}function k_(r,e,t,n){var a=e.noHeader,i=E_(ud(e)),o=[],s=e.blocks||[];ut(!s||N(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ze(u,l)){var c=new td(u[l],null);s.sort(function(p,m){return c.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,m){var g=e.valueFormatter,y=ld(p)(g?W(W({},r),{valueFormatter:g}):r,p,m>0?i.html:0,n);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):Jo(n,o.join(""),a?t:i.html);if(a)return f;var h=Zo(e.header,"ordinal",r.useUTC),v=sd(n,r.renderMode).nameStyle,d=od(n);return r.renderMode==="richText"?cd(r,h,v)+i.richText+f:Jo(n,'

'+Ne(h)+"
"+f,t)}function R_(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],Y(S,function(b,x){return Zo(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||z.color.secondary,a),h=i?"":Zo(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!i,m=!s&&i,g=sd(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":f)+(i?"":cd(r,h,y))+(o?"":N_(r,d,p,m,_)):Jo(n,(s?"":f)+(i?"":O_(h,!s,y))+(o?"":B_(d,p,m,_)),t)}}function ic(r,e,t,n,a,i){if(r){var o=ld(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function E_(r){return{html:L_[r],richText:P_[r]}}function Jo(r,e,t){var n='
',a="margin: "+t+"px 0 0",i=od(r);return'
'+e+n+"
"}function O_(r,e,t){var n=e?"margin-left:2px":"";return''+Ne(r)+""}function B_(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],''+Y(r,function(o){return Ne(o)}).join("  ")+""}function cd(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function N_(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,i)}function z_(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return vr(n)}function fd(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Xi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Hv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=p0({color:t,type:e,renderMode:n,markerId:a});return X(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};N(t)?C(t,function(i){return W(n,i)}):W(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function V_(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=N(s),u=z_(e,t),c,f,h,v;if(o>1||l&&!o){var d=G_(s,e,t,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Fr(a,t,i[0]),f=p.type}else v=c=l?s[0]:s;var m=Hs(e),g=m&&e.name||"",y=a.getName(t),_=n?g:y;return Vn("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[Vn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!qn(_),value:c,valueType:f,dataIndex:t})].concat(h||[])})}function G_(r,e,t,n,a){var i=e.getData(),o=Wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(f){c(Fr(i,t,f),f)}):C(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Vn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Mt=fe();function pa(r,e){return r.getName(e)||r.getId(e)}var Va="__universalTransitionEnabled",He=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Dn({count:W_,reset:H_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Mt(this).sourceManager=new id(this);i.prepareSource();var o=this.getInitialData(t,a);sc(o,this),this.dataTask.context.data=o,Mt(this).dataBeforeProcessed=o,oc(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Nn(this),i=a?aa(t):{},o=this.subType;ae.hasClass(o)&&(o+="Series"),J(t,n.getTheme().get(this.subType)),J(t,this.getDefaultOption()),No(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Yt(t,i,a)},e.prototype.mergeOption=function(t,n){t=J(this.option,t,!0),this.fillDataTextStyle(t.data);var a=Nn(this);a&&Yt(this.option,t,a);var i=Mt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);sc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Mt(this).dataBeforeProcessed=o,oc(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!We(t))for(var n=["show"],a=0;a=0&&h<0)&&(f=y,h=g,v=0),g===h&&(c[v++]=p))}),c.length=v,c},e.prototype.formatTooltip=function(t,n,a){return V_({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ye.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=yl.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[pa(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Va])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ae.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ae);bt(He,f_);bt(He,yl);jv(He,ae);function oc(r){var e=r.name;Hs(r)||(r.name=F_(r)||e)}function F_(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return C(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function W_(r){return r.model.getRawData().count()}function H_(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),U_}function U_(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sc(r,e){C(Qg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ne(Y_,e))})}function Y_(r,e){var t=es(r);return t&&t.setOutputEnd((e||this).count()),e}function es(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ge=function(){function r(){this.group=new Se,this.uid=ra("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Ys(Ge);di(Ge);function ia(){var r=fe();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var vd=fe(),X_=ia(),Be=function(){function r(){this.group=new Se,this.uid=ra("viewChart"),this.renderTask=Dn({plan:Z_,reset:$_}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&uc(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&uc(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){ta(this.group,e)},r.markUpdateMethod=function(e,t){vd(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function lc(r,e,t){r&&Wo(r)&&(e==="emphasis"?zr:Vr)(r,t)}function uc(r,e,t){var n=cr(r,e),a=e&&e.highlightKey!=null?Ay(e.highlightKey):null;n!=null?C(_e(n),function(i){lc(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){lc(i,t,a)})}Ys(Be);di(Be);function Z_(r){return X_(r.model)}function $_(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&vd(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),K_[l]}var K_={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ei="\0__throttleOriginMethod",cc="\0__throttleRate",fc="\0__throttleType";function wl(r,e,t){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function hd(r,e,t,n){var a=r[e];if(a){var i=a[ei]||a,o=a[fc],s=a[cc];if(s!==t||o!==n){if(t==null)return r[e]=i;a=r[e]=wl(i,t,n==="debounce"),a[ei]=i,a[fc]=n,a[cc]=t}return a}}function ts(r,e){var t=r[e];t&&t[ei]&&(t.clear&&t.clear(),r[e]=t[ei])}var vc=fe(),hc={itemStyle:kn(Sh,!0),lineStyle:kn(_h,!0)},q_={lineStyle:"stroke",itemStyle:"fill"};function dd(r,e){var t=r.visualStyleMapper||hc[e];return t||(console.warn("Unknown style type '"+e+"'."),hc.itemStyle)}function pd(r,e){var t=r.visualDrawType||q_[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var j_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=dd(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=pd(r,n),u=o[l],c=q(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=W({},o);m[l]=c(p),v.setItemVisual(d,"style",m)}}}},nn=new he,Q_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=dd(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){nn.option=l[n];var u=a(nn),c=o.ensureUniqueItemVisual(s,"style");W(c,u),nn.option.decal&&(o.setItemVisual(s,"decal",nn.option.decal),nn.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},J_={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),vc(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=vc(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=pd(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},ga=Math.PI;function eS(r,e){e=e||{},oe(e,{text:"loading",textColor:z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Se,n=new de({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new De({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new de({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Vs({shape:{startAngle:-ga/2,endAngle:-ga/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ga*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ga*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var gd=function(){function r(e,t,n,a){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Z();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;C(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";ut(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;C(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Dn({plan:iS,reset:oS,count:lS}));v.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Dn({reset:tS});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";ut(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,C(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,Dn({reset:rS,onDirty:aS})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return q(e)&&(e={overallReset:e,seriesType:uS(e)}),e.uid=ra("stageHandler"),t&&(e.visualType=t),e},r}();function tS(r){r.overallReset(r.ecModel,r.api,r.payload)}function rS(r){return r.overallProgress&&nS}function nS(){this.agent.dirty(),this.getDownstream().dirty()}function aS(){this.agent&&this.agent.dirty()}function iS(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function oS(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=_e(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?Y(e,function(t,n){return md(n)}):sS}var sS=md(0);function md(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),rs=["symbol","symbolSize","symbolRotate","symbolOffset"],pc=rs.concat(["symbolKeepAspect"]),vS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[be]){if(this._disposed){this.id;return}var i,o,s;if($(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[be]=!0,Ar(this),!this._model||n){var l=new U0(this._api),u=this._theme,c=this._model=new _l;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},ls);var f={seriesTransition:s,optionChanged:!0};if(a)this[Te]={silent:i,updateParams:f},this[be]=!1,this.getZr().wakeUp();else{try{rr(this),dt.update.call(this,null,f)}catch(h){throw this[Te]=null,this[be]=!1,h}this._ssr||this._zr.flush(),this[Te]=null,this[be]=!1,Tr.call(this,i),Dr.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[be]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Te]&&(i==null&&(i=this[Te].silent),o=this[Te].updateParams,this[Te]=null),this[be]=!0,Ar(this);try{this._updateTheme(t),a.setTheme(this._theme),rr(this),dt.update.call(this,{type:"setTheme"},o)}catch(s){throw this[be]=!1,s}this[be]=!1,Tr.call(this,i),Dr.call(this,i)}}},e.prototype._updateTheme=function(t){X(t)&&(t=Od[t]),t&&(t=Q(t),t&&Yh(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ye.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return C(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;C(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Tc[a]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();C(An,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,m=Bv.createCanvas(),g=nu(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return C(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new de({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),C(h,function(_){var S=new Zr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return _a(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return _a(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return _a(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=xn(a,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=xn(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?dS(s,l,n):pS(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(XS,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,c=a==="globalout";if(c?u={}:l&&mn(l,function(p){var m=ee(p);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=W({},m.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var v=f&&h!=null&&s.getComponent(f,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;C(os,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),mS(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Kv(this.getDom(),Al,"");var n=this,a=n._api,i=n._model;C(n._componentsViews,function(o){o.dispose(i,a)}),C(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete An[n.id]},e.prototype.resize=function(t){if(!this[be]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Te]&&(i==null&&(i=this[Te].silent),a=!0,this[Te]=null),this[be]=!0,Ar(this);try{a&&rr(this),dt.update.call(this,{type:"resize",animation:W({duration:0},t&&t.animation)})}catch(o){throw this[be]=!1,o}this[be]=!1,Tr.call(this,i),Dr.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if($(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!us[t]){var a=us[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=W({},t);return n.type=is[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if($(n)||(n={silent:!!n}),!!ri[t.type]&&this._model){if(this[be]){this._pendingActions.push(t);return}var a=n.silent;Qi.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&ye.browser.weChat&&this._throttledZrFlush(),Tr.call(this,a),Dr.call(this,a)}},e.prototype.updateLabelLayout=function(){Qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){rr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),qi(f,!0),qi(f,!1),h.plan()},qi=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ye.node&&!ye.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=f._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(f,h){if(!f.preventAutoZ){var v=qa(f);h.eachRendered(function(d){return gh(d,v.z,v.zlevel),!0})}}function u(f,h){h.eachRendered(function(v){if(!bn(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),m=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(bn(g))return;if(g instanceof Ce&&My(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&i(g)}})}wc=function(f){return new(function(h){H(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){zr(d,p),Xe(f)},v.prototype.leaveEmphasis=function(d,p){Vr(d,p),Xe(f)},v.prototype.enterBlur=function(d){yy(d),Xe(f)},v.prototype.leaveBlur=function(d){rh(d),Xe(f)},v.prototype.enterSelect=function(d){nh(d),Xe(f)},v.prototype.leaveSelect=function(d){ah(d),Xe(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return f[ma]},v}(Hh))(f)},Rd=function(f){function h(v,d){for(var p=0;p=0)){Dc.push(t);var i=gd.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function Vd(r,e){us[r]=e}function JS(r,e,t){var n=PS("registerMap");n&&n(r,e,t)}var ex=w_;mr(Tl,j_);mr(Ai,Q_);mr(Ai,J_);mr(Tl,vS);mr(Ai,hS);mr(Ad,IS);Nd(Yh);zd(ES,r_);Vd("default",eS);ft({type:ir,event:ir,update:ir},St);ft({type:ka,event:ka,update:ka},St);ft({type:Za,event:$s,update:Za,action:St,refineEvent:Ll,publishNonRefinedEvent:!0});ft({type:zo,event:$s,update:zo,action:St,refineEvent:Ll,publishNonRefinedEvent:!0});ft({type:$a,event:$s,update:$a,action:St,refineEvent:Ll,publishNonRefinedEvent:!0});function Ll(r,e,t,n){return{eventContent:{selected:wy(t),isFromClick:e.isFromClick||!1}}}Bd("default",{});Bd("dark",Sd);function on(r){return r==null?0:r.length||1}function Ac(r){return r}var Fn=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||Ac,this._newKeyGetter=a||Ac,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var sn=$,It=Y,ox=typeof Int32Array>"u"?Array:Int32Array,sx="e\0\0",Mc=-1,lx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ux=["_approximateExtent"],Ic,xa,ln,un,to,cn,ro,Yd=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Fd(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ue;if(l&&!a.pure)for(var u=[],c=e;c0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),N(i)?i=i.slice():sn(i)&&(i=W({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,sn(t)?W(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){sn(e)?W(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?W(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;ly(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:It(this.dimensions,this._getDimInfo,this),this.hostModel)),to(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(rm(arguments)))})},r.internalField=function(){Ic=function(e){var t=e._invertedIndicesMap;C(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new ox(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),r}();function Xd(r,e){Sl(r)||(r=Xh(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=Z(),i=[],o=fx(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ud(o),l=n===r.dimensionsDefine,u=l?Hd(r):Wd(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=Z(c),h=new nd(o),v=0;v0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function fx(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return C(e,function(i){var o;$(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function vx(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var hx=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function dx(r){var e=r.get("coordinateSystem"),t=new hx(e),n=px[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var px={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Mr(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Mr(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",Re).models[0];e.coordSysDims=["single"],t.set("single",a),Mr(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Mr(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Mr(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Mr(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",Re).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function Mr(r){return r.get("type")==="category"}function gx(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;mx(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(C(i,function(y,_){X(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;C(i,function(y){y.coordDim===v&&p++});var m={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function mx(r){return!Fd(r.schema)}function Wr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function yx(r,e){return Wr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function _x(r,e){var t=r.get("coordinateSystem"),n=pl.get(t),a;return e&&e.coordSysDims&&(a=Y(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=cs(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Sx(r,e,t){var n,a;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Mi(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Ue;var o=dx(e),s=_x(e,o),l=t.useEncodeDefaulter,u=q(l)?l:l?ne(Vh,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Xd(a,c),h=Sx(f.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=gx(e,{schema:f,store:v}),p=new Yd(f,e);p.setCalculationInfo(d);var m=h!=null&&xx(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function xx(r){if(r.sourceFormat===Ue){var e=bx(r.data||[]);return!N(Qn(e))}}function bx(r){for(var e=0;ea&&(o=i.interval=a);var s=i.intervalPrecision=Wn(o),l=i.niceTickExtent=[Le(Math.ceil(r[0]/o)*o,s),Le(Math.floor(r[1]/o)*o,s)];return Cx(l,r),i}function no(r){var e=Math.pow(10,Ws(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Le(t*e)}function Wn(r){return yt(r)+2}function Lc(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Cx(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Lc(r,0,e),Lc(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Pl(r,e){return r>=e[0]&&r<=e[1]}var Tx=function(){function r(){this.normalize=Pc,this.scale=kc}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=ie(e.normalize,e),this.scale=ie(e.scale,e)):(this.normalize=Pc,this.scale=kc)},r}();function Pc(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function kc(r,e){return r*(e[1]-e[0])+e[0]}function vs(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var $t=function(){function r(e){this._calculator=new Tx,this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(e){},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();di($t);var Dx=0,hs=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Dx,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&Y(n,Ax);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!X(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function Ax(r){return $(r)&&r.value!=null?r.value:r+""}var kl=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new hs({})),N(a)&&(a=new hs({categories:Y(a,function(i){return $(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Pl(t,this._extent)&&t>=0&&t=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}($t);$t.registerClass(kl);var Lt=Le,Hr=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Pl(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Wn(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Qa(),l=[];if(!n)return l;t.breakTicks;var u=1e4;a[0]=0&&(f=Lt(f+h*n,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(t.expandToNicedExtent?l.push({value:Lt(v+n,o)}):l.push({value:a[1]})),t.breakTicks,l},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;oi[0]&&d0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function qd(r){var e=Lx(r),t=[];return C(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=se(n.get("barWidth"),s),p=se(n.get("barMaxWidth"),s),m=se(n.get("barMinWidth")||(ep(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:Rl(i),stackId:$d(n)})}),Px(t)}function Px(r){var e={};C(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return C(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=qe(i).length;s=Math.max(35-l*4,15)+"%"}var u=se(s,o),c=se(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),C(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;C(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var m=-d/2;C(i,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+c)})}),t}function kx(r,e,t){if(r&&e){var n=r[Rl(e)];return n}}function jd(r,e){var t=Kd(r,e),n=qd(t);C(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=$d(a),u=n[Rl(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Qd(r){return{seriesType:r,plan:ia(),reset:function(e){if(Jd(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=Wr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Rx(a,i),d=ep(e),p=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&st(b*3),w=d&&l&&st(b*3),T=d&&st(b),D=n.master.getRect(),M=h?D.width:D.height,A,L=S.getStore(),I=0;(A=_.next())!=null;){var P=L.get(f?m:o,A),k=L.get(s,A),E=v,U=void 0;f&&(U=+P-L.get(o,A));var R=void 0,O=void 0,V=void 0,B=void 0;if(h){var G=n.dataToPoint([P,k]);if(f){var K=n.dataToPoint([U,k]);E=K[0]}R=E,O=G[1]+y,V=G[0]-E,B=g,Math.abs(V)0?t:1:t))}var Ex=function(r,e,t,n){for(;t>>1;r[a][1]a&&(this._approxInterval=a);var o=ba.length,s=Math.min(Ex(ba,this._approxInterval,0,o),o-1);this._interval=ba[s][1],this._intervalPrecision=Wn(this._interval),this._minLevelUnit=ba[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return ce(t)?t:+$r(t)},e.prototype.contain=function(t){return Pl(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Hr),ba=[["second",sl],["minute",ll],["hour",Cn],["quarter-day",Cn*6],["half-day",Cn*12],["day",$e*1.2],["half-week",$e*3.5],["week",$e*7],["month",$e*31],["quarter",$e*95],["half-year",Lu/2],["year",Lu]];function Ox(r,e,t,n){return Xo(new Date(e),r,n).getTime()===Xo(new Date(t),r,n).getTime()}function Bx(r,e){return r/=$e,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Nx(r){var e=30*$e;return r/=e,r>6?6:r>3?3:r>2?2:1}function zx(r){return r/=Cn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Rc(r,e){return r/=e?ll:sl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Vx(r){return Fv(r)}function Gx(r,e,t){var n=Math.max(0,ue(or,e)-1);return Xo(new Date(r),or[n],t).getTime()}function Fx(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function Wx(r,e,t,n,a,i){var o=1e4,s=l0,l=0;function u(I,P,k,E,U,R,O){for(var V=Fx(U,I),B=P,G=new Date(B);Bo));)if(G[U](G[E]()+I),B=G.getTime(),i){var K=i.calcNiceTickMultiple(B,V);K>0&&(G[U](G[E]()+K*I),B=G.getTime())}O.push({value:B,notAdd:!0})}function c(I,P,k){var E=[],U=!P.length;if(!Ox(Tn(I),n[0],n[1],t)){U&&(P=[{value:Gx(n[0],I,t)},{value:n[1]}]);for(var R=0;R=n[0]&&O<=n[1]&&u(B,O,V,G,K,te,E),I==="year"&&k.length>1&&R===0&&k.unshift({value:k[0].value-B})}}for(var R=0;R=n[0]&&S<=n[1]&&v++)}var b=a/e;if(v>b*1.5&&d>b/1.5||(f.push(y),v>b||r===s[p]))break}h=[]}}}for(var x=we(Y(f,function(I){return we(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),w=[],T=x.length-1,p=0;p0;)i*=10;var s=[ds(Ux(n[0]/i)*i),ds(Hx(n[1]/i)*i)];this._interval=i,this._intervalPrecision=Wn(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=Ca(t)/Ca(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=Ca(t)/Ca(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),wa(this.base,t)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e}(Hr);function ao(r,e){return ds(r,yt(e))}$t.registerClass(rp);var Yx=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[Zx[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=Xx[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Xx={min:"_determinedMin",max:"_determinedMax"},Zx={min:"_dataMin",max:"_dataMax"};function np(r,e,t){var n=r.rawExtentInfo;return n||(n=new Yx(r,e,t),r.rawExtentInfo=n,n)}function Ta(r,e){return e==null?null:Ua(e)?NaN:r.parse(e)}function ap(r,e){var t=r.type,n=np(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=Kd("bar",o),l=!1;if(C(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=qd(s),c=$x(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function $x(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=kx(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;C(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/i,h=c/f-c;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Ec(r,e){var t=e,n=ap(r,t),a=n.extent,i=t.get("splitNumber");r instanceof rp&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(sp(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Kx(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new kl({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new tp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new($t.getClass(e)||Hr)}}function qx(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function jr(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=u0(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(X(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(q(e)){if(r.type==="category")return function(a,i){return e(ai(r,a),a.value-r.scale.getExtent()[0],null)};var n=Qa();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(ai(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function ai(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function El(r){var e=r.get("interval");return e??"auto"}function ip(r){return r.type==="category"&&El(r.getLabelModel())===0}function op(r,e){var t={};return C(r.mapDimensionsAll(e),function(n){t[yx(r,n)]=!0}),qe(t)}function jx(r,e,t){e&&C(op(e,t),function(n){var a=e.getApproximateExtent(n);a[0]r[1]&&(r[1]=a[1])})}function Ur(r){return r==="middle"||r==="center"}function Hn(r){return r.getShallow("show")}function sp(r){var e=r.get("breaks",!0);e==null}var Qx=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Oc=[],Jx={registerPreprocessor:Nd,registerProcessor:zd,registerPostInit:KS,registerPostUpdate:qS,registerUpdateLifecycle:Ml,registerAction:ft,registerCoordinateSystem:jS,registerLayout:QS,registerVisual:mr,registerTransform:ex,registerLoading:Vd,registerMap:JS,registerImpl:LS,PRIORITY:HS,ComponentModel:ae,ComponentView:Ge,SeriesModel:He,ChartView:Be,registerComponentModel:function(r){ae.registerClass(r)},registerComponentView:function(r){Ge.registerClass(r)},registerSeriesModel:function(r){He.registerClass(r)},registerChartView:function(r){Be.registerClass(r)},registerCustomSeries:function(r,e){},registerSubTypeDefaulter:function(r,e){ae.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){nm(r,e)}};function xt(r){if(N(r)){C(r,function(e){xt(e)});return}ue(Oc,r)>=0||(Oc.push(r),q(r)&&(r={install:r}),r.install(Jx))}var eb=fe(),Mn=fe(),tt={estimate:1,determine:2};function ii(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function lp(r,e){var t=Y(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function tb(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=jr(r),a=r.scale.getExtent(),i=lp(r,t),o=we(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?nb(r,e):ib(r)}function rb(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=lp(r,n);return{ticks:we(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?ab(r,e):{ticks:Y(r.scale.getTicks(t),function(o){return o.value})}}function nb(r,e){var t=r.getLabelModel(),n=up(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function up(r,e,t){var n=sb(r),a=El(e),i=t.kind===tt.estimate;if(!i){var o=fp(n,a);if(o)return o}var s,l;q(a)?s=dp(r,a):(l=a==="auto"?lb(r,t):a,s=hp(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return ps(n,a,u),!0}):ps(n,a,u),u}function ab(r,e){var t=ob(r),n=El(e),a=fp(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),q(n))i=dp(r,n,!0);else if(n==="auto"){var s=up(r,r.getLabelModel(),ii(tt.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=n,i=hp(r,o,!0);return ps(t,n,{ticks:i,tickCategoryInterval:o})}function ib(r){var e=r.scale.getTicks(),t=jr(r);return{labels:Y(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var ob=cp("axisTick"),sb=cp("axisLabel");function cp(r){return function(t){return Mn(t)[r]||(Mn(t)[r]={list:[]})}}function fp(r,e){for(var t=0;tc&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],h=r.dataToCoord(f+1)-r.dataToCoord(f),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,m=0;f<=s[1];f+=u){var g=0,y=0,_=Fs(a({value:f}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var S=p/v,b=m/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(t===tt.estimate)return e.out.noPxChangeTryDetermine.push(ie(cb,null,r,x,l)),x;var w=vp(r,x,l);return w??x}function cb(r,e,t){return vp(r,e,t)==null}function vp(r,e,t){var n=eb(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function fb(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function hp(r,e,t){var n=jr(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=ip(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(t?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m,time:void 0,break:void 0})}return s}function dp(r,e,t){var n=r.scale,a=jr(r),i=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Bc=[0,1],vb=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Vv(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Nc(n,a.count())),Bt(e,Bc,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Nc(n,a.count()));var i=Bt(e,n,Bc,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=rb(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=Y(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return hb(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=Y(n,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||ii(tt.determine),tb(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||ii(tt.determine),ub(this,e)},r}();function Nc(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function hb(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;C(e,function(v){v.coord-=u/2,v.onBand=!0});var c=r.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:c[1]+1,onBand:!0},e.push(o)}var f=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function h(v,d){return v=Le(v),d=Le(d),f?v>d:v0){e=e/180*Math.PI,zt.fromArray(r[0]),me.fromArray(r[1]),Ie.fromArray(r[2]),pe.sub(Vt,zt,me),pe.sub(at,Ie,me);var t=Vt.len(),n=at.len();if(!(t<.001||n<.001)){Vt.scale(1/t),at.scale(1/n);var a=Vt.dot(at),i=Math.cos(e);if(i1&&pe.copy(Oe,Ie),Oe.toArray(r[1])}}}}function pb(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,zt.fromArray(r[0]),me.fromArray(r[1]),Ie.fromArray(r[2]),pe.sub(Vt,me,zt),pe.sub(at,Ie,me);var n=Vt.len(),a=at.len();if(!(n<.001||a<.001)){Vt.scale(1/n),at.scale(1/a);var i=Vt.dot(e),o=Math.cos(t);if(i=l)pe.copy(Oe,Ie);else{Oe.scaleAndAdd(at,s/Math.tan(Math.PI/2-c));var f=Ie.x!==me.x?(Oe.x-me.x)/(Ie.x-me.x):(Oe.y-me.y)/(Ie.y-me.y);if(isNaN(f))return;f<0?pe.copy(Oe,me):f>1&&pe.copy(Oe,Ie)}Oe.toArray(r[1])}}}}function io(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function gb(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=au(n[0],n[1]),i=au(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=Oi([],n[1],n[0],o/a),l=Oi([],n[1],n[2],o/i),u=Oi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0){S(M*D,0,i);var A=M+w;A<0&&b(-A*D,1)}else b(-w*D,1)}}function S(w,T,D){w!==0&&(c=!0);for(var M=T;M0)for(var A=0;A0;A--){var k=D[A-1]*P;S(-k,A,i)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var D=Math.ceil(w/(i-1)),M=0;M0?S(D,0,M+1):S(-D,i-M-1,i),w-=D,w<=0)return}return c}function wb(r){var e=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function t(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;nn[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(vb),Ob="expandAxisBreak",Gt=Math.PI,Bb=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Nb=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Un=fe(),xp=fe(),bp=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r}();function zb(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=Nl(r.axisName)&&Ur(r.nameLocation);C(n,function(d){var p=Zt(d);if(!(!p||p.label.ignore)){o.push(p);var m=i.transGroup;l&&(m.transform?Ns(fn,m.transform):Mv(fn),p.transform&&Iv(fn,fn,p.transform),Ee.copy(Da,p.localRect),Da.applyTransform(fn),s?s.union(Da):Ee.copy(s=new Ee(0,0,0,0),Da))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=a.getExtent(),h=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-h;s.union(new Ee(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var fn=vi(),Da=new Ee(0,0,0,0),wp=function(r,e,t,n,a,i){if(Ur(r.nameLocation)){var o=i.stOccupiedRect;o&&Cp(Sb({},o,i.transGroup.transform),n,a)}else Tp(i.labelInfoList,i.dirVec,n,a)};function Cp(r,e,t){var n=new pe;Ol(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&xb(e,n)}function Tp(r,e,t,n){for(var a=pe.dot(n,e)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):Ya(a-Gt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Vb=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Gb={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,c=[l[0],0],f=[l[1],0],h=c[0]>f[0];u&&(lr(c,c,u),lr(f,f,u));var v=W({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())Pb().buildAxisBreakLine(n,a,i,d);else{var p=new ur(W({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},d));On(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var g=n.get(["axisLine","symbolSize"]);X(m)&&(m=[m,m]),(X(g)||ce(g))&&(g=[g,g]);var y=Cl(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];C([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(b,x){if(m[x]!=="none"&&m[x]!=null){var w=Xt(m[x],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,D=h?f:c;w.attr({rotation:b.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=Yc(e,a,s);l&&Uc(r,e,t,n,a,i,o,tt.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=Yc(e,a,s);l&&Uc(r,e,t,n,a,i,o,tt.determine);var u=Ub(r,a,i,n);Hb(r,e.labelLayoutList,u),Yb(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Nl(u)){var c=r.nameLocation,f=r.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new pe(0,0),g=new pe(0,0);c==="start"?(m.x=d[0]-p*v,g.x=-p):c==="end"?(m.x=d[1]+p*v,g.x=p):(m.x=(d[0]+d[1])/2,m.y=r.labelOffset+f*v,g.y=f);var y=vi();g.transform(Nv(y,y,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Gt/180);var S,b;Ur(c)?S=Wt.innerTextLayout(r.rotation,_??r.rotation,f):(S=Fb(r.rotation,c,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,D=In(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,A=new De({x:m.x,y:m.y,rotation:S.rotation,silent:Wt.isLabelSilent(n),style:Ut(h,{text:u,font:x,overflow:"truncate",width:D,ellipsis:T,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ea({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=Wt.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ee(A).eventData=L}i.add(A),A.updateTransform(),e.nameEl=A;var I=l.nameLayout=Zt({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Ur(c)?Bb[M]:Nb[M]});if(l.nameLocation=c,a.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,I,g,P)}}}};function Uc(r,e,t,n,a,i,o,s){Ap(e)||Xb(r,e,a,s,n,o);var l=e.labelLayoutList;Zb(r,n,l,i),r.rotation;var u=r.optionHideOverlap;Wb(n,l,u),u&&wb(we(l,function(c){return c&&!c.label.ignore})),zb(r,t,n,l)}function Fb(r,e,t,n){var a=Gv(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ya(a-Gt/2)?(o=l?"bottom":"top",i="center"):Ya(a-Gt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aGt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Wb(r,e,t){if(ip(r.axis))return;function n(s,l,u){var c=Zt(e[l]),f=Zt(e[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){yn(c.label);return}if(f.suggestIgnore){yn(f.label);return}var h=.1;if(!t){var v=[0,0,0,0];c=Vc({marginForce:v},c),f=Vc({marginForce:v},f)}Ol(c,f,null,{touchThreshold:h})&&yn(s?f.label:c.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function Hb(r,e,t){r.showMinorTicks||C(e,function(n){if(n&&n.label.ignore)for(var a=0;au[0]&&isFinite(d)&&isFinite(u[0]);)v=no(v),d=u[1]-v*o;else{var m=r.getTicks().length-1;m>o&&(v=no(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=Le(p-g),d<0&&u[0]>=0?(d=0,p=Le(g)):p>0&&u[1]<=0&&(p=0,d=-Le(g))}var y=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(r,d+v*y,p+v*_),n.setInterval.call(r,v),(y||_)&&n.setNiceExtent.call(r,d+v,p-v)}var Zc=[[3,1],[0,2]],ew=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ms,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=qe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;fs(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Ec(p,d),fs(p)&&(s=v))}c.length&&(s||(s=c.pop(),Ec(s.scale,s.model)),C(c,function(m){Jb(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};C(n.x,function(o){$c(n,"y",o,i)}),C(n.y,function(o){$c(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=na(e,t),i=this._rect=ct(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(_s(o,i),!n){var u=nw(i,s,o,l,t),c=void 0;if(l)Ss?(Ss(this._axesList,i),_s(o,i)):c=jc(i.clone(),"axisLabel",null,i,o,u,a);else{var f=aw(e,i,a),h=f.outerBoundsRect,v=f.parsedOuterBoundsContain,d=f.outerBoundsClamp;h&&(c=jc(h,v,d,i,o,u,a))}Mp(i,o,tt.determine,null,c,a)}C(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}$(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0})==null;return Ka(n,s,!0,!0,t),_s(a,n),l;function u(h){C(a[Nt[h]],function(v){if(Hn(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var m=0;m0&&!Ua(v)&&v>1e-4&&(h/=v),h}}function nw(r,e,t,n,a){var i=new bp(iw);return C(t,function(o){return C(o,function(s){if(Hn(s.model)){var l=!n;s.axisBuilder=jb(r,e,s.model,a,i,l)}})}),i}function Mp(r,e,t,n,a,i){var o=t===tt.determine;C(e,function(u){return C(u,function(c){Hn(c.model)&&(Qb(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Nt[1-u]]=r[Gr[u]]<=i.refContainer[Gr[u]]*.5?0:1-u===1?2:1}C(e,function(u,c){return C(u,function(f){Hn(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function aw(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=ct(r.get("outerBounds",!0)||_p,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ue(["all","axisLabel"],i)<0?o="all":o=i;var s=[Bo(j(r.get("outerBoundsClampWidth",!0),ui[0]),e.width),Bo(j(r.get("outerBoundsClampHeight",!0),ui[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var iw=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";wp(r,e,t,n,a,i),Ur(r.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Tp(s.labelInfoList,s.dirVec,n,a)})};function ow(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sw(t,r,e),t.seriesInvolved&&uw(t,r),t}function sw(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Yn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(C(s.getAxes(),ne(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&C(d.baseAxes,ne(p,v?"cross":!0,h)),v&&C(d.otherAxes,ne(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!m&&!xs(_))){g==null&&(g=_.get("triggerTooltip")),_=m?lw(y,f,a,e,m,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Yn(y.model),T=g||b||y.type==="category",D=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:xs(_),seriesModels:[],linkGroup:null};u[w]=D,r.seriesInvolved=r.seriesInvolved||T;var M=cw(i,y);if(M!=null){var A=o[M]||(o[M]={axesInfo:{}});A.axesInfo[w]=D,A.mapper=i[M].mapper,D.linkGroup=A}}}})}function lw(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(h){l[h]=Q(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&oe(u,f.textStyle)}}return r.model.getModel("axisPointer",new he(l,t,n))}function uw(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[Yn(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function cw(r,e){for(var t=e.model,n=e.dim,a=0;a=0||r===e}function fw(r){var e=zl(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=xs(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=zl(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=ar(e).pointerEl=new nl[i.type](ef(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=ar(e).labelEl=new De(ef(t.label));e.add(i),rf(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=ar(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=ar(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),rf(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Si(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){im(u.event)},onmousedown:uo(this._onHandleDragMove,this,0,0),drift:uo(this._onHandleDragMove,this),ondragend:uo(this._onHandleDragEnd,this)}),n.add(a)),nf(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,hd(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){tf(this._axisPointerModel,!t&&this._moveAnimation,this._handle,co(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(co(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(co(a)),ar(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ts(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function tf(r,e,t,n){Rp(ar(t).lastProp,n)||(ar(t).lastProp=n,e?Ae(t,n,r):(t.stopAnimation(),t.attr(n)))}function Rp(r,e){if($(r)&&$(e)){var t=!0;return C(e,function(n,a){t=t&&Rp(r[a],n)}),!!t}else return r===e}function rf(r,e){r[e.get(["label","show"])?"show":"hide"]()}function co(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function nf(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function Sw(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function xw(r,e,t,n,a){var i=t.get("value"),o=Ep(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ci(s.get("padding")||0),u=s.getFont(),c=Fs(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),bw(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ut(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function bw(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ep(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:ai(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),X(o)?i=o.replace("{value}",i):q(o)&&(i=o(s))}return i}function Op(r,e,t){var n=vi();return Nv(n,n,t.rotation),om(n,n,t.position),el([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function ww(r,e,t,n,a,i){var o=Wt.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),xw(e,n,a,i,{position:Op(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Cw(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Tw(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var Dw=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=af(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Sw(i),v=Aw[u](s,f,c);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=ci(l.getRect(),a);ww(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=ci(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Op(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=af(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[c]}},e}(_w);function af(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Aw={line:function(r,e,t){var n=Cw([e,t[0]],[e,t[1]],of(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:Tw([e-n/2,t[0]],[n,a],of(r))}}};function of(r){return r.dim==="x"?0:1}var Mw=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:z.color.border,width:1,type:"dashed"},shadowStyle:{color:z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:z.color.neutral00,padding:[5,7,5,7],backgroundColor:z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:z.color.accent40,throttle:40}},e}(ae),_t=fe(),Iw=C;function Bp(r,e,t){if(!ye.node){var n=e.getZr();_t(n).records||(_t(n).records={}),Lw(n,e);var a=_t(n).records[r]||(_t(n).records[r]={});a.handler=t}}function Lw(r,e){if(_t(r).initialized)return;_t(r).initialized=!0,t("click",ne(sf,"click")),t("mousemove",ne(sf,"mousemove")),t("globalout",kw);function t(n,a){r.on(n,function(i){var o=Rw(e);Iw(_t(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Pw(o.pendings,e)})}}function Pw(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function kw(r,e,t){r.handler("leave",null,t)}function sf(r,e,t,n){e.handler(r,t,n)}function Rw(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function ws(r,e){if(!ye.node){var t=e.getZr(),n=(_t(t).records||{})[r];n&&(_t(t).records[r]=null)}}var Ew=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Bp("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){ws("axisPointer",n)},e.prototype.dispose=function(t,n){ws("axisPointer",n)},e.type="axisPointer",e}(Ge);function Np(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=cr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(Y(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var lf=fe();function Ow(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ie(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Fa(a)&&(a=Np({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Fa(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Fa(a),h={},v={},d={list:[],map:{}},p={showPointer:ne(Nw,v),showTooltip:ne(zw,d)};C(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);C(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,w=Ww(u,S);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&uf(S,T,p,!1,h)}})});var m={};return C(c,function(g,y){var _=g.linkGroup;_&&!v[y]&&C(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,cf(S),cf(g)))),m[g.key]=w}})}),C(m,function(g,y){uf(c[y],g,p,!0,h)}),Vw(v,c,h),Gw(d,a,r,o),Fw(c,o,t),h}}function uf(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Bw(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&W(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Bw(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);h=v.dataIndices,f=v.nestestValue}else{if(h=l.indicesOfNearest(n,c[0],r,t.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),C(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Nw(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function zw(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Yn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Vw(r,e,t){var n=t.axesInfo=[];C(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Gw(r,e,t,n){if(Fa(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Fw(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=lf(n)[a]||{},o=lf(n)[a]={};C(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&C(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];C(i,function(u,c){!o[c]&&l.push(u)}),C(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Ww(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function cf(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Fa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function zp(r){Ip.registerAxisPointerClass("CartesianAxisPointer",Dw),r.registerComponentModel(Mw),r.registerComponentView(Ew),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=ow(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ow)}function ID(r){xt(kp),xt(zp)}var Vp=fe();function Hw(r,e,t){Vp(r)[e]=t}function Uw(r,e,t){var n=Vp(r),a=n[e];a===t&&(n[e]=null)}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},St);var Yw={axisPointer:1,tooltip:1,brush:1};function Xw(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||Yw.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=qa(n),o=qa(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}function Gp(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Ir(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Ir(s,[0,o]),a=i=Ir(s,[a,i]),n=0}e[0]=Ir(e[0],t),e[1]=Ir(e[1],t);var l=fo(e,n);e[n]+=r;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Ir(e[n],c);var f;return f=fo(e,n),a!=null&&(f.sign!==l.sign||f.spani&&(e[1-n]=e[n]+f.sign*i),e}function fo(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ir(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var hr=!0,Xn=Math.min,Yr=Math.max,Zw=Math.pow,$w=1e4,Kw=6,qw=6,ff="globalPan",jw={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Qw={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},vf={brushStyle:{lineWidth:2,stroke:z.color.backgroundTint,fill:z.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Jw=0,eC=function(r){H(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Se,n._uid="brushController_"+Jw++,C(sC,function(a,i){this._handlers[i]=ie(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||Hw(n,ff,this._uid),C(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=J(Q(vf),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Uw(t,ff,this._uid),C(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};C(t,function(a){n[a.panelId]=Q(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Y(t,function(h){return J(Q(vf),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Fn(a,t,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Wp(o,Fp(o,d));Vl(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),Cs(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(jn);function Fp(r,e){var t=Ii[e.brushType].createCover(r,e);return t.__brushOption=e,Up(t,e),r.group.add(t),t}function Wp(r,e){var t=Gl(e);return t.endCreating&&(t.endCreating(r,e),Up(e,e.__brushOption)),e}function Hp(r,e){var t=e.__brushOption;Gl(e).updateCoverShape(r,e,t.range,t)}function Up(r,e){var t=e.z;t==null&&(t=$w),r.traverse(function(n){n.z=t,n.z2=t})}function Vl(r,e){Gl(e).updateCommon(r,e),Hp(r,e)}function Gl(r){return Ii[r.__brushOption.brushType]}function Fl(r,e,t){var n=r._panels;if(!n)return hr;var a,i=r._transform;return C(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function Yp(r,e){var t=r._panels;if(!t)return hr;var n=e.__brushOption.panelId;return n!=null?t[n]:hr}function Cs(r){var e=r._covers,t=e.length;return C(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function dr(r,e){var t=Y(r._covers,function(n){var a=n.__brushOption,i=Q(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function tC(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=Zw(a*a+i*i,.5);return o>Kw}function Xp(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Zp(r,e,t,n){var a=new Se;return a.add(new de({name:"main",style:Wl(t),silent:!0,draggable:!0,cursor:"move",drift:ne(hf,r,e,a,["n","s","w","e"]),ondragend:ne(dr,e,{isEnd:!0})})),C(n,function(i){a.add(new de({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ne(hf,r,e,a,i),ondragend:ne(dr,e,{isEnd:!0})}))}),a}function $p(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Yr(a,qw),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],f=t[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,m=d+a,g=p+a;gt(r,e,"main",o,s,d,p),n.transformable&&(gt(r,e,"w",l,u,i,g),gt(r,e,"e",h,u,i,g),gt(r,e,"n",l,u,m,i),gt(r,e,"s",l,v,m,i),gt(r,e,"nw",l,u,i,i),gt(r,e,"ne",h,u,i,i),gt(r,e,"sw",l,v,i,i),gt(r,e,"se",h,v,i,i))}function Ts(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(Wl(t)),a.attr({silent:!n,cursor:n?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Ds(r,i[0]):nC(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Qw[s]+"-resize":null})})}function gt(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(iC(Hl(r,e,[[n,a],[n+i,a+o]])))}function Wl(r){return oe({strokeNoScale:!0},r.brushStyle)}function Kp(r,e,t,n){var a=[Xn(r,t),Xn(e,n)],i=[Yr(r,t),Yr(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function rC(r){return Js(r.group)}function Ds(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=vh(t[e],rC(r));return n[a]}function nC(r,e){var t=[Ds(r,e[0]),Ds(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function hf(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=qp(e,a,i);C(n,function(u){var c=jw[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(Kp(s[0][0],s[1][0],s[0][1],s[1][1])),Vl(e,t),dr(e,{isEnd:!1})}function aC(r,e,t,n){var a=e.__brushOption.range,i=qp(r,t,n);C(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Vl(r,e),dr(r,{isEnd:!1})}function qp(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Hl(r,e,t){var n=Yp(r,e);return n&&n!==hr?n.clipPath(t,r._transform):Q(t)}function iC(r){var e=Xn(r[0][0],r[1][0]),t=Xn(r[0][1],r[1][1]),n=Yr(r[0][0],r[1][0]),a=Yr(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function oC(r,e,t){if(!(!r._brushType||lC(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=Fl(r,e,t);if(!r._dragging)for(var o=0;on.getWidth()||t<0||t>n.getHeight()}var Ii={lineX:gf(0),lineY:gf(1),rect:{createCover:function(r,e){function t(n){return n}return Zp({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Xp(r);return Kp(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){$p(r,e,t,n)},updateCommon:Ts,contain:Ms},polygon:{createCover:function(r,e){var t=new Se;return t.add(new Kn({name:"main",style:Wl(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new zs({name:"main",draggable:!0,drift:ne(aC,r,e),ondragend:ne(dr,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:Hl(r,e,t)})},updateCommon:Ts,contain:Ms}};function gf(r){return{createCover:function(e,t){return Zp({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Xp(e),n=Xn(t[0][r],t[1][r]),a=Yr(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=Yp(e,t);if(o!==hr&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),$p(e,t,l,a)},updateCommon:Ts,contain:Ms}}function uC(r){return r=Ul(r),function(e){return dh(e,r)}}function cC(r,e){return r=Ul(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function fC(r,e,t){var n=Ul(r);return function(a,i){return n.contain(i[0],i[1])&&!Xw(a,e,t)}}function Ul(r){return Ee.create(r)}var mf=["x","y","radius","angle","single"],vC=["cartesian2d","polar","singleAxis"];function hC(r){var e=r.get("coordinateSystem");return ue(vC,e)>=0}function Er(r){return r+"Axis"}function dC(r,e){var t=Z(),n=[],a=Z();r.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(t.get(f)||t.set(f,[]))[h]=!0})}return n}var vo=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),pC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=yf(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=yf(t);J(this.option,t,!0),J(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Z(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return C(mf,function(a){var i=this.getReferringComponents(Er(a),Zm);if(i.specified){n=!0;var o=new vo;C(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new vo;if(h.add(f.componentIndex),t.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&C(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&C(mf,function(u){if(i){var c=a.findComponents({mainType:Er(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new vo;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Er(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){C(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Er(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;C(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else kr(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});kr(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;kr(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Bt(n[0]+o,n,[0,100],!0):i!=null&&(o=Bt(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=Vv(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function SC(r,e,t){var n=[1/0,-1/0];kr(t,function(o){jx(n,o.getData(),e)});var a=r.getAxisModel(),i=np(a.axis.scale,a,n).calculate();return[i.min,i.max]}var xC={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Er(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new _C(a,i,s,r),t.push(o.__dzAxisProxy))});var n=Z();return C(t,function(a){C(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function bC(r){r.registerAction("dataZoom",function(e,t){var n=dC(t,e);C(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Sf=!1;function wC(r){Sf||(Sf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,xC),bC(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function CC(r){r.registerComponentModel(gC),r.registerComponentView(yC),wC(r)}var Je=function(){function r(){}return r}(),Qp={};function vn(r,e){Qp[r]=e}function Jp(r){return Qp[r]}var TC=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(n,a){var i=Jp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),J(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:z.size.m,itemSize:15,itemGap:z.size.s,showTitle:!0,iconStyle:{borderColor:z.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:z.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(ae);function eg(r,e){var t=Ci(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new de({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var DC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];C(u,function(y,_){f.push(_)}),new Fn(this._featureNames||[],f).add(h).update(h).remove(ne(h,null)).execute(),this._featureNames=f;function h(y,_){var S=f[y],b=f[_],x=u[S],w=new he(x,t,t.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(AC(S))T={onclick:w.option.onclick,featureName:S};else{var D=Jp(S);if(!D)return;T=new D}c[S]=T}else if(T=c[b],!T)return;T.uid=ra("toolbox-feature"),T.model=w,T.ecModel=n,T.api=a;var M=T instanceof Je;if(!S&&b){M&&T.dispose&&T.dispose(n,a);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(n,a);return}v(w,T,S),w.setIconStatus=function(A,L){var I=this.option,P=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[A]=L,P[A]&&(L==="emphasis"?zr:Vr)(P[A])},T instanceof Je&&T.render&&T.render(w,n,a,i)}function v(y,_,S){var b=y.getModel("iconStyle"),x=y.getModel(["emphasis","iconStyle"]),w=_ instanceof Je&&_.getIcons?_.getIcons():y.get("icon"),T=y.get("title")||{},D,M;X(w)?(D={},D[S]=w):D=w,X(T)?(M={},M[S]=T):M=T;var A=y.iconPaths={};C(D,function(L,I){var P=Si(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(b.getItemStyle());var k=P.ensureState("emphasis");k.style=x.getItemStyle();var E=new De({style:{text:M[I],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:yh({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),ea({el:P,componentModel:t,itemName:I,formatterParamsExtra:{title:M[I]}}),P.__title=M[I],P.on("mouseover",function(){var U=x.getItemStyle(),R=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:x.get("textFill")||U.fill||U.stroke||z.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),P.setTextConfig({position:x.get("textPosition")||R}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(y.get(["iconStatus",I])==="emphasis"?zr:Vr)(P),o.add(P),P.on("click",ie(_.onclick,_,n,a,I)),A[I]=P})}var d=na(t,a).refContainer,p=t.getBoxLayoutParams(),m=t.get("padding"),g=ct(p,d,m);Br(t.get("orient"),o,t.get("itemGap"),g.width,g.height),T0(o,p,d,m),o.add(eg(o.getBoundingRect(),t)),l||o.eachChild(function(y){var _=y.__title,S=y.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=y.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!q(w)&&_){var T=w.style||(w.style={}),D=Fs(_,De.makeFont(T)),M=y.x+o.x,A=y.y+o.y+s,L=!1;A+D.height>a.getHeight()&&(b.position="top",L=!0);var I=L?-5-D.height:s+10;M+D.width/2>a.getWidth()?(b.position=["100%",I],T.align="right"):M-D.width/2<0&&(b.position=[0,I],T.align="left")}})},e.prototype.updateView=function(t,n,a,i){C(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){C(this._features,function(a){a instanceof Je&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){C(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Ge);function AC(r){return r.indexOf("my")===0}var MC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||z.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ye.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:z.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Je),xf="__ec_magicType_stack__",IC=[["line","bar"],["stack"]],LC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return C(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(bf[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=bf[a](h,v,f,i);d&&(oe(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};C(IC,function(f){ue(f,a)>=0&&C(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=J({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Je),bf={line:function(r,e,t,n){if(r==="bar")return J({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return J({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===xf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),J({id:e,stack:a?"":xf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Li=new Array(60).join("-"),Xr=" ";function PC(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function kC(r){var e=[];return C(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(Y(t.series,function(v){return v.name})),l=[a.model.getCategories()];C(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Xr)],c=0;c=0)return!0}var Is=new RegExp("["+Xr+"]+","g");function BC(r){for(var e=r.split(/\n+/g),t=fi(e.shift()).split(Is),n=[],a=Y(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function WC(r){var e=Yl(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return tg(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function HC(r){rg(r).snapshots=null}function UC(r){return Yl(r).length}function Yl(r){var e=rg(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var YC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){HC(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Je);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var XC=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ng=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=wf(t,e);C(ZC,function(o,s){(!n||!n.include||ue(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=ho[n.brushType](0,i,a);n.__rangeOffset={offset:Af[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){C(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=ho[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=ho[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Af[n.brushType](i.values,o.offset,$C(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:uC(a),isTargetByCursor:fC(a,e,n.coordSysModel),getLinearBrushOtherExtent:cC(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&ue(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=wf(t,e),i=0;ir[1]&&r.reverse(),r}function wf(r,e){return xn(r,e,{includeMainTypes:XC})}var ZC={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Z(),o={},s={};!t&&!n&&!a||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];C(u.getCartesians(),function(f,h){(ue(t,f.getAxis("x").model)>=0||ue(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Tf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:Tf.geo})})}},Cf=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],Tf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Js(r)),e}},ho={lineX:ne(Df,0),lineY:ne(Df,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[Ls([a[0],i[0]]),Ls([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Df(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=Ls(Y([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Af={lineX:ne(Mf,0),lineY:ne(Mf,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return Y(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function Mf(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function $C(r,e){var t=If(r),n=If(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function If(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ps=C,KC=Hm("toolbox-dataZoom_"),qC=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new eC(a.getZr()),this._brushController.on("brush",ie(this._onBrush,this)).mount()),JC(t,n,this,i,a),QC(t,n)},e.prototype.onclick=function(t,n,a){jC[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new ng(Xl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),FC(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Gp(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var n=[];Ps(t,function(a,i){n.push(Q(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:z.color.backgroundTint}};return n},e}(Je),jC={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(WC(this.ecModel))}};function Xl(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function QC(r,e){r.setIconStatus("back",UC(e)>1?"emphasis":"normal")}function JC(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new ng(Xl(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}E0("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Xl(n),o=xn(r,i);Ps(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Ps(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:KC+u+f};h[c]=f,a.push(h)}return a});function LD(r){r.registerComponentModel(TC),r.registerComponentView(DC),vn("saveAsImage",MC),vn("magicType",LC),vn("dataView",VC),vn("dataZoom",qC),vn("restore",YC),xt(CC)}var eT=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:z.color.tertiary,fontSize:14}},e}(ae);function ag(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function ig(r){if(ye.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function sT(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(ye.transformSupported?""+Zl+a:",left"+a+",top"+a)),nT+":"+i}function Lf(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ye.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ye.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+Zl+":"+o+";":[["top",0],["left",0],[og,o]]}function lT(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),C(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function uT(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=fd(r,"html"),v=u+"px "+c+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&i>0&&a.push(sT(i,t,n)),o&&a.push("background-color:"+o),C(["width","color","radius"],function(d){var p="border-"+d,m=Ph(p),g=r.get(m);g!=null&&a.push(p+":"+g+(d==="color"?"":"px"))}),a.push(lT(f)),h!=null&&a.push("padding:"+Ci(h).join("px ")+"px"),a.join(";")+";"}function Pf(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&lm(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var cT=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ye.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(X(i)?document.querySelector(i):Oo(i)?i:q(i)&&i(e.getDom()));Pf(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();sm(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=rT(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=aT+uT(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Lf(i[0],i[1],!0)+("border-color:"+vr(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(X(i)&&n.get("trigger")==="item"&&!ag(n)&&(s=oT(n,a,i)),X(e))o.innerHTML=e+s;else if(e){o.innerHTML="",N(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||ye.node||!a.getDom())){var o=Ef(i,a);this._ticket="";var s=i.dataByCoordSys,l=mT(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=vT;c.x=i.x,c.y=i.y,c.update(),ee(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var f=Np(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Ef(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=hn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=ee(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;mn(a,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(ee(c).dataIndex!=null?l=c:ee(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=ie(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hn([n.tooltipOption],i),l=this._renderMode,u=[],c=Vn("section",{blocks:[],noHeader:!0}),f=[],h=new Xi;C(t,function(y){C(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Ep(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=Vn("section",{header:x,noHeader:!qn(x),sortBlocks:!0,blocks:[]});c.blocks.push(w),C(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,A=D.getDataParams(M);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=ai(S.axis,{value:b}),A.axisValueLabel=x,A.marker=h.makeTooltipMarker("item",vr(A.color),l);var L=Ju(D.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=hn([D],i).get("valueFormatter");w.blocks.push(P?W({valueFormatter:P},I):I)}L.text&&f.push(L.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=ic(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?` - -`:"
",g=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ee(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=t.positionDefault,p=hn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,f),y=new Xi;g.marker=y.makeTooltipMarker("item",vr(g.color),v);var _=Ju(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?ic(b?W({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,T,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=ee(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(X(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Q(l),l.content=Ne(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=t.positionDefault,d=hn(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),m=Math.random()+"",g=new Xi;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,t.offsetX,t.offsetY,t.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(X(h)){var m=t.ecModel.get("useUTC"),g=N(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=wi(g.axisValue,v,m)),v=kh(v,a,!0)}else if(q(h)){var _=ie(function(S,b){S===this._ticket&&(f.setContent(b,c,t,p,l),this._updatePosition(t,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,t,p,l),f.show(t,p),this._updatePosition(t,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||N(n))return{color:i||o};if(!N(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||t.get("position");var f=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),q(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),N(n))a=se(n[0],u),i=se(n[1],c);else if($(n)){var p=n;p.width=f[0],p.height=f[1];var m=ct(p,{width:u,height:c});a=m.x,i=m.y,h=null,v=null}else if(X(n)&&l){var g=gT(n,d,f,t.get("borderWidth"));a=g[0],i=g[1]}else{var g=dT(a,i,o,u,c,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=Of(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Of(v)?f[1]/2:v==="bottom"?f[1]:0),ag(t)){var g=pT(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&C(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&C(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&C(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&C(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){ye.node||!n.getDom()||(ts(this,"_updatePosition"),this._tooltipContent.dispose(),ws("itemTooltip",n))},e.type="tooltip",e}(Ge);function hn(r,e,t){var n=e.ecModel,a;t?(a=new he(t,n,n),a=new he(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof he&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(a=new he(o,a,n)))}return a}function Ef(r,e){return r.dispatchAction||ie(e.dispatchAction,e)}function dT(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function pT(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function gT(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function Of(r){return r==="center"||r==="middle"}function mT(r,e,t){var n=Us(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Jn(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ee(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function PD(r){xt(zp),r.registerComponentModel(eT),r.registerComponentView(hT),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},St),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},St)}var yT=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:z.size.m,backgroundColor:z.color.transparent,borderColor:z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:z.color.primary},subtextStyle:{fontSize:12,color:z.color.quaternary}},e}(ae),_T=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=j(t.get("textBaseline"),t.get("textVerticalAlign")),c=new De({style:Ut(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new De({style:Ut(s,{text:h,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!p&&!m,d&&c.on("click",function(){Ru(d,"_"+t.get("target"))}),p&&v.on("click",function(){Ru(p,"_"+t.get("subtarget"))}),ee(c).eventData=ee(v).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),h&&i.add(v);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=na(t,a),S=ct(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new de({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(Ge);function kD(r){r.registerComponentModel(yT),r.registerComponentView(_T)}function Pi(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=Fr(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(e[i])}return n.join(" ")}var $l=function(r){H(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=Xt(t,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=ST,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){zr(this.childAt(0))},e.prototype.downplay=function(){Vr(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=o!==this._symbolType,f=i&&i.disableAnimation;if(c){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(d):Ae(v,d,s,n),_i(v)}if(this._updateCommon(t,n,l,a,i),c){var v=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ve(v,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=qr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Cl(t.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=t.getItemVisual(n,"style"),w=x.fill;if(s instanceof Zr){var T=s.style;s.useStyle(W({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(W({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var A=o&&o.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(k){return A?t.getName(k):Pi(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),fr(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ee(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&En(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();En(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return DS(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Se);function ST(r,e){this.parent.drift(r,e)}function po(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Bf(r){return r!=null&&!$(r)&&(r={isIgnore:r}),r||{}}function Nf(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:qr(e),cursorStyle:e.get("cursor")}}var ug=function(){function r(e){this.group=new Se,this._SymbolCtor=e||$l}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Bf(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Nf(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||n.removeAll(),e.diff(i).add(function(f){var h=c(f);if(po(e,h,f,t)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!po(e,d,f,t)){n.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ae(v,g,a)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Nf(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=Bf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:z.size.m,align:"auto",backgroundColor:z.color.transparent,borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:z.color.disabled,inactiveBorderColor:z.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:z.color.tertiary,borderWidth:1,borderColor:z.color.border},emphasis:{selectorLabel:{show:!0,color:z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ae),Lr=ne,Rs=C,Aa=Se,cg=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Aa),this.group.add(this._selectorGroup=new Aa),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var c=na(t,a).refContainer,f=t.getBoxLayoutParams(),h=t.get("padding"),v=ct(f,c,h),d=this.layoutInner(t,o,v,i,l,u),p=ct(oe({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eg(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),c=Z(),f=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Rs(n.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var y=new Aa;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(g)[0];if(!c.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,g,p,d,n,t,b,w,x,f,i);T.on("click",Lr(zf,g,null,i,v)).on("mouseover",Lr(Es,_.name,null,i,v)).on("mouseout",Lr(Os,_.name,null,i,v)),a.ssr&&T.eachChild(function(D){var M=ee(D);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),h&&T.eachChild(function(D){m.packEventData(D,n,_,p,g)}),c.set(g,!0)}else a.eachRawSeries(function(D){var M=this;if(!c.get(g)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(g))return;var L=A.indexOfName(g),I=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),k=cm(I.fill);k&&k[3]===0&&(k[3]=.2,I=W(W({},I),{fill:fm(k,"rgba")}));var E=this._createItem(D,g,p,d,n,t,{},I,P,f,i);E.on("click",Lr(zf,null,g,i,v)).on("mouseover",Lr(Es,null,g,i,v)).on("mouseout",Lr(Os,null,g,i,v)),a.ssr&&E.eachChild(function(U){var R=ee(U);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&E.eachChild(function(U){M.packEventData(U,n,D,p,g)}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ee(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();Rs(t,function(u){var c=u.type,f=new De({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Kr(f,{normal:h,emphasis:v},{defaultText:u.title}),Fo(f)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,c,f,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=bT(c,i,l,u,v,m,h),b=new Aa,x=i.getModel("textStyle");if(q(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(wT({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),A=n;X(M)&&M?A=M.replace("{name}",n??""):q(M)&&(A=M(n));var L=m?x.getTextColor():i.get("inactiveColor");b.add(new De({style:Ut(x,{text:A,x:T,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new de({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ea({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(k){k.silent=!0}),I.silent=!f,this.getContentGroup().add(b),Fo(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Br(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Br("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[m]+d:f[p]+=h[m]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+d+h[m],_[g]=Math.max(c[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ge);function bT(r,e,t,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Rs(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:as(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function wT(r){var e=r.icon||"roundRect",t=Xt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=z.color.neutral00,t.style.lineWidth=2),t}function zf(r,e,t,n){Os(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Es(r,e,t,n)}function fg(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;na[o],m=[-v.x,-v.y];n||(m[i]=c[u]);var g=[0,0],y=[-d.x,-d.y],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new de({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Ae(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=go[o],l=mo[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(c[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(c[m]),(!_||!b(y,_.s))&&g.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e}(cg);function MT(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function IT(r){xt(vg),r.registerComponentModel(DT),r.registerComponentView(AT),MT(r)}function RD(r){xt(vg),xt(IT)}var LT={label:{enabled:!0},decal:{show:!1}},Wf=fe(),PT={};function kT(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Q(LT);J(n.label,r.getLocaleModel().get("aria"),!1),J(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=Z();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),Wf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(q(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Bu(h.ecModel,h.name,PT,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=Wf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=Bu(h.ecModel,w,m,g),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var w=b?W(W({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=oe(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?f.get(["series","multiple",L]):f.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),U=f.get(["data","excludeDimensionId"]),R=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ET=function(){function r(e){var t=this._condVal=X(e)?new RegExp(e):vm(e)?e:null;if(t==null){var n="";re(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):ce(t)?this._condVal.test(e+""):!1},r}(),OT=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),BT=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t-1&&(u.style.stroke=u.style.fill,u.style.fill=z.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(He);function dg(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=KT(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Y(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Wr(e,f[0])&&(h=!0,f[0]=v),Wr(e,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function KT(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:ce(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function pg(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function qT(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function jT(r,e,t,n,a,i,o,s){for(var l=qT(r,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],m=dg(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_=a||p<0)break;if(sr(g,y)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](g,y),f=g,h=y;else{var _=g-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=e[b*2],w=e[b*2+1];x===g&&w===y&&m=n||sr(x,w))v=g,d=y;else{M=x-u,A=w-c;var P=g-u,k=x-g,E=y-c,U=w-y,R=void 0,O=void 0;if(s==="x"){R=Math.abs(P),O=Math.abs(k);var V=M>0?1:-1;v=g-V*R*o,d=y,L=g+V*O*o,I=y}else if(s==="y"){R=Math.abs(E),O=Math.abs(U);var B=A>0?1:-1;v=g,d=y-B*R*o,L=g,I=y+B*O*o}else R=Math.sqrt(P*P+E*E),O=Math.sqrt(k*k+U*U),D=O/(O+R),v=g-M*o*(1-D),d=y-A*o*(1-D),L=g+M*o*D,I=y+A*o*D,L=Pt(L,kt(x,g)),I=Pt(I,kt(w,y)),L=kt(L,Pt(x,g)),I=kt(I,Pt(w,y)),M=L-g,A=I-y,v=g-M*R/O,d=y-A*R/O,v=Pt(v,kt(u,g)),d=Pt(d,kt(c,y)),v=kt(v,Pt(u,g)),d=kt(d,Pt(c,y)),M=g-v,A=y-d,L=g+M*O/R,I=y+A*O/R}r.bezierCurveTo(f,h,v,d,g,y),f=L,h=I}else r.lineTo(g,y)}u=g,c=y,p+=i}return m}var gg=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),QT=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new gg},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&sr(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++];var b=u?su(s,v,p,g,t,c):su(l,d,m,y,t,c);if(b>0)for(var x=0;x=0){var S=u?lu(l,d,m,y,w):lu(s,v,p,g,w);return u?[t,S]:[S,t]}}s=g,l=y;break}}},e}(Ce),JT=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(gg),e1=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new JT},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&sr(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function n1(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=r1(u,a==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";C(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Rv(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function a1(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&i1(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function i1(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function o1(r,e){return isNaN(r)||isNaN(e)}function s1(r){for(var e=r.length/2;e>0&&o1(r[e*2-2],r[e*2-1]);e--);return e-1}function Kf(r,e){return[r[e*2],r[e*2+1]]}function l1(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function _g(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}ee(d).seriesIndex=t.seriesIndex,fr(d,E,U,R);var V=$f(t.get("smooth")),B=t.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:B,connectNulls:w}),p){var G=s.getCalculationInfo("stackedOnSeries"),K=0;p.useStyle(oe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(K=$f(G.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:K,smoothMonotone:B,connectNulls:w}),Rn(p,t,"areaStyle"),ee(p).seriesIndex=t.seriesIndex,fr(p,E,U,R)}var te=this._changePolyState;s.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,n){ee(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=cr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new $l(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Be.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=cr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Be.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;pu(this._polyline,t),n&&pu(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new QT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new e1({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");q(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=q(f)?f(null):f;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var T=q(f)?f(d):c*w+h,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(_g(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new De({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=s1(l);c>=0&&(Kr(s,qr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?lg(o,v):Pi(o,f)},enableTextSetter:!0},u1(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),w=g?"x":"y",T=l1(f,S,w),D=T.range,M=D[1]-D[0],A=void 0;if(M>=1){if(M>1&&!v){var L=Kf(f,D[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(A=h.getRawValue(D[0]))}else{var L=c.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(A=qm(a,d,I,P,T.t))}i.lastFrameIndex=D[0]}else{var k=t===1||i.lastFrameIndex>0?D[0]:0,L=Kf(f,k);o&&(A=h.getRawValue(k)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var E=bi(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,h=jT(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(d=Rt(h.stackedOnCurrent,h.current,a,o,l),v=Rt(h.current,null,a,o,l),m=Rt(h.stackedOnNext,h.next,a,o,l),p=Rt(h.next,null,a,o,l)),Zf(v,p)>3e3||c&&Zf(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Ae(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ae(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;X(i)?d=f1[i]:q(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,d,v1))}}}}}function ND(r){r.registerChartView(c1),r.registerSeriesModel($T),r.registerLayout(Ql("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sg("line"))}var Zn=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Mi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)C(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),m=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!p&&(m+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bm){_=(x+y)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(He);He.registerClass(Zn);var h1=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Mi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=al(Zn.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:z.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Zn),d1=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),qf=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new d1},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){wn(i,t,ee(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Be),jf={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=_o(e.x,r.x),s=So(e.x+e.width,a),l=_o(e.y,r.y),u=So(e.y+e.height,i),c=sa?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=So(e.r,r.r),i=_o(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Qf={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new de({shape:W({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?qf:pr,c=new u({shape:n,z2:1});c.name="item";var f=xg(a);if(c.calculateTextPosition=p1(f,{isRoundCap:u===qf}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Ae:Ve)(c,{shape:d},i)}return c}};function _1(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Jf(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ae:Ve)(t,{shape:l},e,a,null);var c=e?r.baseAxis.model:null;(o?Ae:Ve)(t,{shape:u},c,a)}function ev(r,e){for(var t=0;t0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function b1(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function xg(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function rv(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=_n(n.getModel("itemStyle"),c,!0);W(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=qr(n);Kr(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Pi(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,g1(r,m==="outside"?v:m,xg(o),n.get(["label","rotate"]))}Uy(p,d,i.getRawValue(t),function(y){return lg(e,y)});var g=n.getModel(["emphasis"]);fr(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Rn(r,n),b1(a)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function w1(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var C1=function(){function r(){}return r}(),nv=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new C1},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function T1(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function bg(r,e,t){if(Kl(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function D1(r,e,t){var n=r.type==="polar"?pr:de;return new n({shape:bg(e,t,r),silent:!0,z2:0})}function zD(r){r.registerChartView(y1),r.registerSeriesModel(h1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ne(jd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Qd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sg("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var ov=Math.PI*2,Pa=Math.PI/180;function A1(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=C0(n,t),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=o.viewRect,h=-n.get("startAngle")*Pa,v=n.get("endAngle"),d=n.get("padAngle")*Pa;v=v==="auto"?h-ov:-v*Pa;var p=n.get("minAngle")*Pa,m=p+d,g=0;a.each(i,function(U){!isNaN(U)&&g++});var y=a.getSum(i),_=Math.PI/(y||g)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var T=S?1:-1,D=[h,v],M=T*d/2;pm(D,!S),h=D[0],v=D[1];var A=wg(n);A.startAngle=h,A.endAngle=v,A.clockwise=S,A.cx=s,A.cy=l,A.r=u,A.r0=c;var L=Math.abs(v-h),I=L,P=0,k=h;if(a.setLayout({viewRect:f,r:u}),a.each(i,function(U,R){var O;if(isNaN(U)){a.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:c,r:b?NaN:u});return}b!=="area"?O=y===0&&x?_:U*_:O=L/g,OO?(B=k+T*O/2,G=B):(B=k+M,G=V-M),a.setItemLayout(R,{angle:O,startAngle:B,endAngle:G,clockwise:S,cx:s,cy:l,r0:c,r:b?Bt(U,w,[c,u]):u}),k=V}),It?g:m,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*a,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}Tg(i,n)}}}function Tg(r,e){lv.rect=r,yp(lv,e,P1)}var P1={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},lv={};function xo(r){return r.position==="center"}function k1(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*I1,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,D=w.getTextContent(),M=w.getTextGuideLine(),A=e.getItemModel(x),L=A.getModel("label"),I=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),k=L.get("alignTo"),E=se(L.get("edgeDistance"),u),U=L.get("bleedMargin");U==null&&(U=Math.min(u,h)>200?10:2);var R=A.getModel("labelLine"),O=R.get("length");O=se(O,u);var V=R.get("length2");if(V=se(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":G>0?"left":"right"}var Dt=Math.PI,vt=0,en=L.get("rotate");if(ce(en))vt=en*(Dt/180);else if(I==="center")vt=0;else if(en==="radial"||en===!0){var zg=G<0?-B+Dt:-B;vt=zg}else if(en==="tangential"&&I!=="outside"&&I!=="outer"){var _r=Math.atan2(G,K);_r<0&&(_r=Dt*2+_r);var Vg=K>0;Vg&&(_r=Dt+_r),vt=_r-Dt}if(i=!!vt,D.x=te,D.y=le,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Tt){D.setStyle({align:yr});var Ri=D.states.select;Ri&&(Ri.x+=D.x,Ri.y+=D.y)}else{var ki=new Ee(0,0,0,0);Tg(ki,D),t.push({label:D,labelLine:M,position:I,len:O,len2:V,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new pe(G,K),linePoints:Ct,textAlign:yr,labelDistance:P,labelAlignTo:k,edgeDistance:E,bleedMargin:U,rect:ki,unconstrainedWidth:ki.width,labelStyleWidth:D.style.width})}w.setTextConfig({inside:Tt})}}),!i&&r.get("avoidLabelOverlap")&&L1(t,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},e.type="pie",e}(Be);function Dg(r,e,t){e=N(e)&&{coordDimensions:e}||W({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Xd(n,e).dimensions,i=new Yd(a,r);return i.initData(n,t),i}var O1=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),B1=fe(),Ag=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new O1(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Dg(this,{coordDimensions:["value"],encodeDefaulter:ne(k0,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=B1(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Mm(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){No(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(He);m0({fullType:Ag.type,getCoord2:function(r){return r.getShallow("center")}});function N1(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ce(o)&&!isNaN(o)&&o<0)})}}}function VD(r){r.registerChartView(E1),r.registerSeriesModel(Ag),gS("pie",r.registerAction),r.registerLayout(ne(A1,"pie")),r.registerProcessor(M1("pie")),r.registerProcessor(N1("pie"))}var z1=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Mi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:z.color.primary}},universalTransition:{divideShape:"clone"}},e}(He),Mg=4,V1=function(){function r(){}return r}(),G1=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new V1},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(t>=f&&n>=h&&t<=f+s&&n<=h+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),W1=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ql("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new F1:new ug,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Be);function GD(r){xt(kp),r.registerSeriesModel(z1),r.registerChartView(W1),r.registerLayout(Ql("scatter"))}var H1=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),m=e.data;if(m&&l){var g=[];C(m,function(S,b){var x;N(S)?(x=S.slice(),S.unshift(b)):N(S.value)?(x=W({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),e.data=g}var y=this.defaultValueDimensions,_=[{name:f,type:cs(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:cs(p),dimsDef:y.slice()}];return Dg(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:ne(Vh,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),U1=["itemStyle","borderColor"],Y1=["itemStyle","borderColor0"],X1=["itemStyle","borderColorDoji"],Z1=["itemStyle","color"],$1=["itemStyle","color0"];function Jl(r,e){return e.get(r>0?Z1:$1)}function eu(r,e){return e.get(r===0?X1:r>0?U1:Y1)}var K1={seriesType:"candlestick",plan:ia(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Jl(s,o),l.stroke=eu(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}},q1=["color","borderColor"],j1=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ta(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&uv(u,f))return;var h=bo(f,c,!0);Ve(h,{shape:{points:f.ends}},t,c),wo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&uv(u,v)){i.remove(h);return}h?(Ae(h,{shape:{points:v.ends}},t,c),_i(h)):h=bo(v),wo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),cv(t,this.group);var n=t.get("clip",!0)?jl(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=bo(s);wo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){cv(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Be),Q1=function(){function r(){}return r}(),J1=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Q1},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ce);function bo(r,e,t){var n=r.ends;return new J1({shape:{points:t?eD(n,r):n},z2:100})}function uv(r,e){for(var t=!0,n=0;nb?A[i]:M[i],ends:P,brushRect:O(x,w,_)})}function U(B,G){var K=[];return K[a]=G,K[i]=B,isNaN(G)||isNaN(B)?[NaN,NaN]:e.dataToPoint(K)}function R(B,G,K){var te=G.slice(),le=G.slice();te[a]=Ra(te[a]+n/2,1,!1),le[a]=Ra(le[a]-n/2,1,!0),K?B.push(te,le):B.push(le,te)}function O(B,G,K){var te=U(B,K),le=U(G,K);return te[a]-=n/2,le[a]-=n/2,{x:te[0],y:te[1],width:n,height:le[1]-te[1]}}function V(B){return B[a]=Ra(B[a],1),B}}function d(p,m){for(var g=st(p.count*4),y=0,_,S=[],b=[],x,w=m.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=w.get(s,x),M=w.get(u,x),A=w.get(c,x),L=w.get(f,x),I=w.get(h,x);if(isNaN(D)||isNaN(L)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=fv(w,x,M,A,c,T),S[a]=D,S[i]=L,_=e.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function fv(r,e,t,n,a,i){var o;return t>n?o=-1:t0?r.get(a,e-1)<=n?1:-1:1,o}function aD(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=se(j(r.get("barMaxWidth"),a),a),o=se(j(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?se(s,a):Math.max(Math.min(a/2,i),o)}function FD(r){r.registerChartView(j1),r.registerSeriesModel(Ig),r.registerPreprocessor(rD),r.registerVisual(K1),r.registerLayout(nD)}var iD=["itemStyle","borderWidth"],vv=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Do=new hi,oD=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:vv[+c],categoryDim:vv[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=dv(o,d),m=hv(o,d,p,h),g=pv(o,h,m);o.setItemGraphicEl(d,g),i.add(g),mv(g,h,m)}}).update(function(d,p){var m=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(m);return}var g=dv(o,d),y=hv(o,d,g,h),_=Og(o,y);m&&_!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(d,null),m=null),m?hD(m,h,y):m=pv(o,h,y,!0),o.setItemGraphicEl(d,m),m.__pictorialSymbolMeta=y,i.add(m),mv(m,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&gv(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=t.get("clip",!0)?jl(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){gv(i,ee(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Be);function hv(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),h={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};sD(t,i,a,n,h),lD(r,e,a,i,o,h.boundingLength,h.pxSign,c,n,h),uD(t,h.symbolScale,u,n,h);var v=h.symbolSize,d=Cl(t.get("symbolOffset"),v);return cD(t,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function sD(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(N(o)){var f=[Ao(s,o[0])-l,Ao(s,o[1])-l];f[1]=0?1:-1:c>0?1:-1}function Ao(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function lD(r,e,t,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=se(d[f.index],h),d[c.index]=se(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function uD(r,e,t,n,a){var i=r.get(iD)||0;i&&(Do.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Do.updateTransform(),i/=Do.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function cD(r,e,t,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),m=p;if(n){var g=Math.abs(l),y=In(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=se(y,e[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=Wv(n),T=w?n:yv((g+x)/b),D=g-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?yv((Math.abs(u)+x)/b):0),m=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var M=d*(m/2),A=f.pathPosition=[];A[h.index]=t[h.wh]/2,A[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var L=f.bundlePosition=[];L[h.index]=t[h.xy],L[v.index]=t[v.xy];var I=f.barRectShape=W({},t);I[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(A[v.index]+M)),I[h.wh]=t[h.wh];var P=f.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function Lg(r){var e=r.symbolPatternSize,t=Xt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Pg(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(tu(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(y=u-1-p),m[l.index]=f*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function kg(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Nr(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=Lg(t),a.add(i),Nr(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function Rg(r,e,t){var n=W({},e.barRectShape),a=r.__pictorialBarRect;a?Nr(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new de({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Eg(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=W({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Ae(a,{shape:i},s,l);else{i[o.wh]=0,a=new de({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],nl[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function dv(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=fD,t.isAnimationEnabled=vD,t}function fD(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function vD(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function pv(r,e,t,n){var a=new Se,i=new Se;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Pg(a,e,t):kg(a,e,t),Rg(a,t,n),Eg(a,e,t,n),a.__pictorialShapeStr=Og(r,t),a.__pictorialSymbolMeta=t,a}function hD(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Ae(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?Pg(r,e,t,!0):kg(r,e,t,!0),Rg(r,t,!0),Eg(r,e,t,!0)}function gv(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];tu(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),C(i,function(o){En(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function Og(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tu(r,e,t){C(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Nr(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&nl[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function mv(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");tu(r,function(p){if(p instanceof Zr){var m=p.style;p.useStyle(W({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else p.useStyle(t.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Kr(d,qr(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Pi(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),fr(r,c,f,i.get("disabled"))}function yv(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var dD=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=al(Zn.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:z.color.primary}}}),e}(Zn);function WD(r){r.registerChartView(oD),r.registerSeriesModel(dD),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ne(jd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Qd("pictorialBar"))}function _v(r){return N(r[0])}function Sv(r,e){for(var t=[],n=r.length,a=0;a=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pD={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;_v(r)&&(u=r,c=e),_v(e)&&(u=e,c=r);function f(g,y,_,S,b){var x=g.many,w=g.one;if(x.length===1&&!b){var T=y?x[0]:w,D=y?w:x[0];if(gm(T))f({many:[T],one:D},!0,_,S,!0);else{var M=s?oe({delay:s(_,S)},l):l;mm(T,D,M),i(T,D,T,D,M)}}else for(var A=oe({dividePath:pD[t],individualDelay:s&&function(U,R,O,V){return s(U+_,S)}},l),L=y?ym(x,w,A):_m(w,x,A),I=L.fromIndividuals,P=L.toIndividuals,k=I.length,E=0;Ee.length,v=u?Sv(c,u):Sv(h?e:r,[h?r:e]),d=0,p=0;pBg))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Ce&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function Tv(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function Dv(r){return N(r)?r.sort().join(","):r}function Ot(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function bD(r,e){var t=Z(),n=Z(),a=Z();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Tv(i),c=Dv(u);n.set(c,{dataGroupId:s,data:l}),N(u)&&C(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),C(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Tv(i),u=Dv(l),c=n.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ot(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Ot(s),data:s}]});else if(N(l)){var f=[];C(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Ot(p.data),data:p.data})}),f.length&&t.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Ot(s)}]})}else{var h=a.get(l);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ot(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Ot(s)})}}}}),t}function Av(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ot(e.oldData[s]),groupIdDim:o.dimension})}),C(_e(r.to),function(o){var s=Av(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ot(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Ng(a,i,n)}function HD(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){C(_e(n.seriesTransition),function(a){C(_e(a.to),function(i){for(var o=n.updatedSeries,s=0;s40&&(u=Math.ceil(a/40));for(var c=0;c=0||i&&ue(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var km=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Rm=Ln(km),Em=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Rm(this,t,e)},r})(),uu=1e-4,Fv=20;function Om(r){return r.replace(/^\s+|\s+$/g,"")}var Pn=Math.min,Fe=Math.max,ot=Math.abs;function Bt(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var se=Bm;function Bm(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Bo(r,t,e)}function Bo(r,t,e){return X(r)?Om(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Le(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Fv),r=(+r).toFixed(t),e?r:+r}function Nm(r){return r.sort(function(t,e){return t-e}),r}function yt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return zm(r)}function zm(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Wv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(ot(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Vm(r,t){var e=Wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=Y(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=Y(a,function(v){return Math.floor(v)}),s=Wa(o,function(v,d){return v+d},0),l=Y(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Y(o,function(v){return v/n})}function Gm(r,t){var e=Math.max(yt(r),yt(t)),n=r+t;return e>Fv?n:Le(n,e)}function Hv(r){var t=Math.PI*2;return(r%t+t)%t}function Ya(r){return r>-uu&&r=10&&t++,t}function Uv(r,t){var e=Hs(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Ht(r){var t=parseFloat(r);return t==r&&(t!==0||!X(r)||r.indexOf("x")<=0)?t:NaN}function Yv(r){return!isNaN(Ht(r))}function Xv(){return Math.round(Math.random()*9)}function Zv(r,t){return t===0?r:Zv(t,r%t)}function cu(r,t){return r==null?t:t==null?r:r*t/Zv(r,t)}function $v(r,t){}function re(r){throw new Error(r)}function fu(r,t,e){return(t-r)*e+r}var Kv="series\0",qv="\0_ec_\0";function _e(r){return r instanceof Array?r:r==null?[]:[r]}function No(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0,i=!1;if(r instanceof Ce){var o=Jv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Sr(s)||Sr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=W({},n),u=W({},u),u.fill=s):!Sr(u.fill)&&Sr(s)?(i=!0,n=W({},n),u=W({},u),u.fill=ru(s)):!Sr(u.stroke)&&Sr(l)&&(i||(n=W({},n),u=W({},u)),u.stroke=ru(l)),n.style=u}}if(n&&n.z2==null){i||(n=W({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??oy)}return n}function vy(r,t,e){if(e&&e.z2==null){e=W({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??sy)}return e}function hy(r,t,e){var n=ue(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:cy(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=W({},e),o=W({opacity:n?a:i.opacity*.1},o),e.style=o),e}function Bi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return fy(this,r,t,e);if(r==="blur")return hy(this,r,e);if(r==="select")return vy(this,r,e)}return e}function dy(r){r.stateProxy=Bi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Bi),e&&(e.stateProxy=Bi)}function mu(r,t){!oh(r,t)&&!r.__highByOuter&&wt(r,eh)}function yu(r,t){!oh(r,t)&&!r.__highByOuter&&wt(r,th)}function zr(r,t){r.__highByOuter|=1<<(t||0),wt(r,eh)}function Vr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&wt(r,th)}function py(r){wt(r,Ks)}function nh(r){wt(r,rh)}function ah(r){wt(r,ly)}function ih(r){wt(r,uy)}function oh(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function sh(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=Xs(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){rh(u)}),s&&e.push(i)),o.isBlured=!1}),C(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Vo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Fo(r,t,e){lh(r,!0),wt(r,dy),by(r,t,e)}function xy(r){lh(r,!1)}function fr(r,t,e,n){n?xy(r):Fo(r,t,e)}function by(r,t,e){var n=ee(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Su=["emphasis","blur","select"],wy={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Ae(r,t,e,n,a,i){js("update",r,t,e,n,a,i)}function Ve(r,t,e,n,a,i){js("enter",r,t,e,n,a,i)}function bn(r){if(!r.__zr)return!0;for(var t=0;tot(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function wu(r){return!r.isGroup}function Ry(r){return r.shape!=null}function dh(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){wu(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ry(o)&&(s.shape=Q(o.shape)),s}var i=n(r);t.traverse(function(o){if(wu(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ae(o,l,e,ee(o).dataIndex)}}})}function ph(r,t){return Y(r,function(e){var n=e[0];n=Fe(n,t.x),n=Pn(n,t.x+t.width);var a=e[1];return a=Fe(a,t.y),a=Pn(a,t.y+t.height),[n,a]})}function Ey(r,t){var e=Fe(r.x,t.x),n=Pn(r.x+r.width,t.x+t.width),a=Fe(r.y,t.y),i=Pn(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Si(r,t,e){var n=W({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),oe(a,e),new Zr(n)):Qs(r.replace("path://",""),n,e,"center")}function Oy(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=Ni(v,d,c,f)/h;return!(m<0||m>1)}function Ni(r,t,e,n){return r*n-e*t}function By(r){return r<=1e-6&&r>=-1e-6}function Ka(r,t,e,n,a){return t==null||(ce(t)?ve[0]=ve[1]=ve[2]=ve[3]=t:(ve[0]=t[0],ve[1]=t[1],ve[2]=t[2],ve[3]=t[3]),n&&(ve[0]=Fe(0,ve[0]),ve[1]=Fe(0,ve[1]),ve[2]=Fe(0,ve[2]),ve[3]=Fe(0,ve[3])),e&&(ve[0]=-ve[0],ve[1]=-ve[1],ve[2]=-ve[2],ve[3]=-ve[3]),Cu(r,ve,"x","width",3,1,a&&a[0]||0),Cu(r,ve,"y","height",0,2,a&&a[1]||0)),r}var ve=[0,0,0,0];function Cu(r,t,e,n,a,i,o){var s=t[i]+t[a],l=r[n];r[n]+=s,o=Fe(0,Pn(o,l)),r[n]=0?-t[a]:t[i]>=0?l+t[i]:ot(s)>1e-8?(l-o)*t[a]/s:0):r[e]-=t[a]}function ea(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=X(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(qe(l),function(c){ze(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ee(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:oe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Yo(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ta(r,t){if(r)if(N(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function mh(r,t,e){yh(r,t,e,-1/0)}function yh(r,t,e,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;sp&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Eu=(t={},t[Pe+"_"+et]={pure:!0,appendData:i},t[Pe+"_"+gr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ye]={pure:!0,appendData:i},t[nt]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ue]={appendData:i},t[Ft]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;st},gte:function(r,t){return r>=t}},s0=(function(){function r(t,e){if(!ce(e)){var n="";re(n)}this._opFn=Bh[t],this._rvalFloat=Ht(e)}return r.prototype.evaluate=function(t){return ce(t)?this._opFn(t,this._rvalFloat):this._opFn(Ht(t),this._rvalFloat)},r})(),Nh=(function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ce(t)?t:Ht(t),a=ce(e)?e:Ht(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=X(t),l=X(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r})(),l0=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ht(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Ht(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function u0(r,t){return r==="eq"||r==="ne"?new l0(r==="eq",t):ze(Bh,r)?new s0(r,t):null}var Ci="undefined",c0=typeof Uint32Array===Ci?Array:Uint32Array,f0=typeof Uint16Array===Ci?Array:Uint16Array,zh=typeof Int32Array===Ci?Array:Int32Array,zu=typeof Float64Array===Ci?Array:Float64Array,Vh={float:zu,int:zh,ordinal:Array,number:Array,time:zu},Wi;function xr(r){return r>65535?c0:f0}function br(){return[1/0,-1/0]}function v0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Vu(r,t,e,n,a){var i=Vh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(y){return y.property}),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],g=0;g=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g=f&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var g=0;gt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(xr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}A>0&&As&&(p=s-c);for(var m=0;md&&(d=y,v=c+m)}var _=this.getRawIndex(f),S=this.getRawIndex(v);fc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,n,a,i){return Oa(e[i],this._dimensions[i])}Wi={arrayRows:t,objectRows:function(e,n,a,i){return Oa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Oa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}})(),r})(),h0=fe(),d0={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gh=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Hh(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return j(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Lh(this.source),n=!Uh(t),a="",i=[],o=0,s=0;o30}var rn=$,At=Y,p0=typeof Int32Array>"u"?Array:Int32Array,g0="e\0\0",Gu=-1,m0=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],y0=["_approximateExtent"],Fu,fa,nn,an,Hi,on,Ui,Yh=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Fh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ue;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),N(i)?i=i.slice():rn(i)&&(i=W({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,rn(e)?W(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){rn(t)?W(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?W(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;iy(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){C(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:At(this.dimensions,this._getDimInfo,this),this.hostModel)),Hi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Jg(arguments)))})},r.internalField=(function(){Fu=function(t){var e=t._invertedIndicesMap;C(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new p0(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}})(),r})();function Xh(r,t){il(r)||(r=Mh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=Z(),i=[],o=S0(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Uh(o),l=n===r.dimensionsDefine,u=l?Hh(r):Wh(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=Z(c),h=new zh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function S0(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return C(t,function(i){var o;$(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function x0(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var Ba={},Yi={},sl=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(Ba),this._normalMasterList=n(Yi);function n(a,i){var o=[];return C(a,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){C(this._normalMasterList,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Ba[t]=e;return}Yi[t]=e},r.get=function(t){return Yi[t]||Ba[t]},r})();function b0(r){return!!Ba[r]}var Ko={coord:1,coord2:2};function w0(r){Zh.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Zh=Z();function C0(r){var t=r.getShallow("coord",!0),e=Ko.coord;if(t==null){var n=Zh.get(r.type);n&&n.getCoord2&&(e=Ko.coord2,t=n.getCoord2(r))}return{coord:t,from:e}}var mt={none:0,dataCoordSys:1,boxCoordSys:2};function T0(r,t){var e=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=mt.none;if(e){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=mt.dataCoordSys,i||(a=mt.none)):n==="box"&&(a=mt.boxCoordSys,!i&&!b0(e)&&(a=mt.none))}return{coordSysType:e,kind:a}}function D0(r){var t=r.targetModel,e=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys,i=T0(t),o=i.kind,s=i.coordSysType;if(a&&o!==mt.dataCoordSys&&(o=mt.dataCoordSys,s=e),o===mt.none||s!==e)return!1;var l=n(e,t);return l?(o===mt.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var A0=(function(){function r(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return r})();function M0(r){var t=r.get("coordinateSystem"),e=new A0(t),n=I0[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var I0={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),wr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),wr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),wr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),wr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),wr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),wr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,n){var a=r.getReferringComponents("matrix",Re).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");e.set("x",i),e.set("y",o),n.set("x",i),n.set("y",o)}};function wr(r){return r.get("type")==="category"}function L0(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;P0(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(C(i,function(y,_){X(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;C(i,function(y){y.coordDim===v&&p++});var m={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function P0(r){return!Fh(r.schema)}function Wr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function k0(r,t){return Wr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function R0(r,t){var e=r.get("coordinateSystem"),n=sl.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Zo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function E0(r,t,e){var n,a;return e&&C(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Ti(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Ue;var o=M0(t),s=R0(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?ne(Th,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Xh(a,c),h=E0(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=L0(t,{schema:f,store:v}),p=new Yh(f,t);p.setCalculationInfo(d);var m=h!=null&&O0(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function O0(r){if(r.sourceFormat===Ue){var t=B0(r.data||[]);return!N(Qn(t))}}function B0(r){for(var t=0;t=0&&s.push(l)}),s}}function ll(r,t){return J(J({},r,!0),t,!0)}const G0={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},F0={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ja="ZH",ul="EN",Or=ul,Na={},cl={},$h=ye.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Or).toUpperCase();return r.indexOf(ja)>-1?ja:Or})():Or;function Kh(r,t){r=r.toUpperCase(),cl[r]=new he(t),Na[r]=t}function W0(r){if(X(r)){var t=Na[r.toUpperCase()]||{};return r===ja||r===ul?Q(t):J(Q(t),Q(Na[Or]),!1)}else return J(Q(r),Q(Na[Or]),!1)}function H0(r){return cl[r]}function U0(){return cl[Or]}Kh(ul,G0);Kh(ja,F0);var Y0=null;function Qa(){return Y0}var fl=1e3,vl=fl*60,Cn=vl*60,$e=Cn*24,Wu=$e*365,X0={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},za={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Z0="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",va="{yyyy}-{MM}-{dd}",Hu={year:"{yyyy}",month:"{yyyy}-{MM}",day:va,hour:va+" "+za.hour,minute:va+" "+za.minute,second:va+" "+za.second,millisecond:Z0},or=["year","month","day","hour","minute","second","millisecond"],$0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function K0(r){return!X(r)&&!q(r)?q0(r):r}function q0(r){r=r||{};var t={},e=!0;return C(or,function(n){e&&(e=r[n]==null)}),C(or,function(n,a){var i=r[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=or[s],u=$(i)&&!N(i)?i[l]:i,c=void 0;N(u)?(c=u.slice(),o=c[0]||""):X(u)?(o=u,c=[o]):(o==null?o=za[n]:X0[l].test(o)||(o=t[l][l][0]+" "+o),c=[o],e&&(c[1]="{primary|"+o+"}")),t[n][l]=c}}),t}function Mt(r,t){return r+="","0000".substr(0,t-r.length)+r}function Tn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function j0(r){return r===Tn(r)}function Q0(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Di(r,t,e,n){var a=$r(r),i=a[qh(e)](),o=a[hl(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[dl(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[pl(e)](),f=(c-1)%12+1,h=a[gl(e)](),v=a[ml(e)](),d=a[yl(e)](),p=c>=12?"pm":"am",m=p.toUpperCase(),g=n instanceof he?n:H0(n||$h)||U0(),y=g.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Mt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Mt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Mt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Mt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Mt(d,3)).replace(/{S}/g,d+"")}function J0(r,t,e,n,a){var i=null;if(X(e))i=e;else if(q(e)){var o={time:r.time,level:r.time.level},s=Qa();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var c=Ja(r.value,a);i=e[c][c][0]}}return Di(new Date(r.value),i,a,n)}function Ja(r,t){var e=$r(r),n=e[hl(t)]()+1,a=e[dl(t)](),i=e[pl(t)](),o=e[gl(t)](),s=e[ml(t)](),l=e[yl(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function qo(r,t,e){switch(t){case"year":r[jh(e)](0);case"month":r[Qh(e)](1);case"day":r[Jh(e)](0);case"hour":r[ed(e)](0);case"minute":r[td(e)](0);case"second":r[rd(e)](0)}return r}function qh(r){return r?"getUTCFullYear":"getFullYear"}function hl(r){return r?"getUTCMonth":"getMonth"}function dl(r){return r?"getUTCDate":"getDate"}function pl(r){return r?"getUTCHours":"getHours"}function gl(r){return r?"getUTCMinutes":"getMinutes"}function ml(r){return r?"getUTCSeconds":"getSeconds"}function yl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function e_(r){return r?"setUTCFullYear":"setFullYear"}function jh(r){return r?"setUTCMonth":"setMonth"}function Qh(r){return r?"setUTCDate":"setDate"}function Jh(r){return r?"setUTCHours":"setHours"}function ed(r){return r?"setUTCMinutes":"setMinutes"}function td(r){return r?"setUTCSeconds":"setSeconds"}function rd(r){return r?"setUTCMilliseconds":"setMilliseconds"}function nd(r){if(!Yv(r))return X(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ad(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ai=Bv;function jo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&qn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?$r(r):r;if(isNaN(+l)){if(s)return"-"}else return Di(l,n,e)}if(t==="ordinal")return Po(r)?a(r):ce(r)&&i(r)?r+"":"-";var u=Ht(r);return i(u)?nd(u):Po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Uu=["a","b","c","d","e","f","g"],Xi=function(r,t){return"{"+r+(t??"")+"}"};function id(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function vr(r,t){return t=t||"transparent",X(r)?r:$(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Yu(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Va=C,r_=["left","right","top","bottom","width","height"],ha=[["width","left","right"],["height","top","bottom"]];function _l(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>a||l.newline?(i+=s+e,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Br=_l;ne(_l,"vertical");ne(_l,"horizontal");function n_(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function a_(r,t){var e=na(r,t,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(e.type===pn.point)i=e.refPoint,a=ct(n,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];a=ct(n,e.refContainer),i=e.boxCoordFrom===Ko.coord2?e.refPoint:[se(s[0],a.width)+a.x,se(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function i_(r,t){var e=a_(r,t),n=e.viewRect,a=e.center,i=r.get("radius");N(i)||(i=[0,i]);var o=se(n.width,t.getWidth()),s=se(n.height,t.getHeight()),l=Math.min(o,s),u=se(i[0],l/2),c=se(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:c,viewRect:n}}function ct(r,t,e){e=Ai(e||0);var n=t.width,a=t.height,i=se(r.left,n),o=se(r.top,a),s=se(r.right,n),l=se(r.bottom,a),u=se(r.width,n),c=se(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ee((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,c);return d.margin=e,d}var pn={rect:1,point:2};function na(r,t,e){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=C0(r),u=l.coord,c=l.from;if(o.dataToLayout){i=pn.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=pn.point,s=c,a=o.dataToPoint(u))}return i==null&&(i=pn.rect),i===pn.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function o_(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=ct(oe({width:o.width,height:o.height},t),e,n),u=l.x-o.x,c=l.y-o.y;return i.x+=u,i.y+=c,i===r&&r.markRedraw(),!0}function zn(r){var t=r.layoutMode||r.constructor.layoutMode;return $(t)?t:t?{type:t}:null}function Yt(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var a=o(ha[0],0),i=o(ha[1],1);l(ha[0],r,a),l(ha[1],r,i);function o(u,c){var f={},h=0,v={},d=0,p=2;if(Va(u,function(y){v[y]=r[y]}),Va(u,function(y){ze(t,y)&&(f[y]=v[y]=t[y]),s(f,y)&&h++,s(v,y)&&d++}),n[c])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return f;for(var m=0;m=0;l--)s=J(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Jn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return n_(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(he);Gv(ae,he);di(ae);z0(ae);V0(ae,u_);function u_(r){var t=[];return C(ae.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return it(e).main}),r!=="dataset"&&ue(t,"dataset")<=0&&t.unshift("dataset"),t}var Xu=fe(),c_=fe(),Sl=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=_e(this.get("color",!0)),i=this.get("colorLayer",!0);return od(this,Xu,a,i,t,e,n)},r.prototype.clearColorPalette=function(){v_(this,Xu)},r})();function Zu(r,t,e,n){var a=_e(r.get(["aria","decal","decals"]));return od(r,c_,a,null,t,e,n)}function f_(r,t){for(var e=r.length,n=0;nt)return r[n];return r[e-1]}function od(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:f_(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function v_(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var h_=/\{@(.+?)\}/g,d_=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:a,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&N(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(i))return l.status=e,l.dimensionIndex=a,i(l);if(X(i)){var c=id(i,l);return c.replace(h_,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Fr(s,t,d);if(o&&N(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Fr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r})();function $u(r){var t,e;return $(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Dn(r){return new p_(r)}var p_=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:l9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(da(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=We(s)?Ft:Ue,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=j(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(f.sourceHeader,h.sourceHeader),p=j(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[Xo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[Xo(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&ju(i)}var o,s=[],l=[];return C(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&ju(f),s.push(c),l.push(u._getVersionSign())}),n?o=w_(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[jy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return C(r.blocks,function(a){var i=vd(a);i>=t&&(t=i+ +(n&&(!i||Qo(a)&&!a.noHeader)))}),t}return 0}function M_(r,t,e,n){var a=t.noHeader,i=L_(vd(t)),o=[],s=t.blocks||[];ut(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ze(u,l)){var c=new Nh(u[l],null);s.sort(function(p,m){return c.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,m){var g=t.valueFormatter,y=fd(p)(g?W(W({},r),{valueFormatter:g}):r,p,m>0?i.html:0,n);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):Jo(n,o.join(""),a?e:i.html);if(a)return f;var h=jo(t.header,"ordinal",r.useUTC),v=cd(n,r.renderMode).nameStyle,d=ud(n);return r.renderMode==="richText"?hd(r,h,v)+i.richText+f:Jo(n,'
'+Ne(h)+"
"+f,e)}function I_(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],Y(S,function(b,x){return jo(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||z.color.secondary,a),h=i?"":jo(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,m=!s&&i,g=cd(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":f)+(i?"":hd(r,h,y))+(o?"":R_(r,d,p,m,_)):Jo(n,(s?"":f)+(i?"":P_(h,!s,y))+(o?"":k_(d,p,m,_)),e)}}function Ju(r,t,e,n,a,i){if(r){var o=fd(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function L_(r){return{html:D_[r],richText:A_[r]}}function Jo(r,t,e){var n='
',a="margin: "+e+"px 0 0",i=ud(r);return'
'+t+n+"
"}function P_(r,t,e){var n=t?"margin-left:2px":"";return''+Ne(r)+""}function k_(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],''+Y(r,function(o){return Ne(o)}).join("  ")+""}function hd(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function R_(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function E_(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return vr(n)}function dd(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Zi=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Xv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=t_({color:e,type:t,renderMode:n,markerId:a});return X(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?C(e,function(i){return W(n,i)}):W(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r})();function O_(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=N(s),u=E_(t,e),c,f,h,v;if(o>1||l&&!o){var d=B_(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Fr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var m=Us(t),g=m&&t.name||"",y=a.getName(e),_=n?g:y;return Vn("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[Vn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!qn(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function B_(r,t,e,n,a){var i=t.getData(),o=Wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(f){c(Fr(i,e,f),f)}):C(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Vn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var It=fe();function pa(r,t){return r.getName(t)||r.getId(t)}var Ga="__universalTransitionEnabled",He=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Dn({count:z_,reset:V_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=It(this).sourceManager=new ld(this);i.prepareSource();var o=this.getInitialData(e,a);tc(o,this),this.dataTask.context.data=o,It(this).dataBeforeProcessed=o,ec(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=zn(this),i=a?aa(e):{},o=this.subType;ae.hasClass(o)&&(o+="Series"),J(e,n.getTheme().get(this.subType)),J(e,this.getDefaultOption()),No(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yt(e,i,a)},t.prototype.mergeOption=function(e,n){e=J(this.option,e,!0),this.fillDataTextStyle(e.data);var a=zn(this);a&&Yt(this.option,e,a);var i=It(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);tc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,It(this).dataBeforeProcessed=o,ec(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!We(e))for(var n=["show"],a=0;a=0&&h<0)&&(f=y,h=g,v=0),g===h&&(c[v++]=p))}),c.length=v,c},t.prototype.formatTooltip=function(e,n,a){return O_({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(ye.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Sl.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[pa(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ga])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ae.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ae);bt(He,d_);bt(He,Sl);Gv(He,ae);function ec(r){var t=r.name;Us(r)||(r.name=N_(r)||t)}function N_(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return C(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function z_(r){return r.model.getRawData().count()}function V_(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),G_}function G_(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function tc(r,t){C(em(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ne(F_,t))})}function F_(r,t){var e=es(r);return e&&e.setOutputEnd((t||this).count()),t}function es(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var W_=Ce.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),H_=Ce.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),U_=Ce.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-f*v,l+s+h*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-c+f*v,l+s+h*v,e-c,l+s),r.closePath()}}),Y_=Ce.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),X_={line:ur,rect:de,roundRect:de,square:de,circle:hi,diamond:H_,pin:U_,arrow:Y_,triangle:W_},Z_={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},ts={};C(X_,function(r,t){ts[t]=new r});var $_=Ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Ro(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=ts[n];a||(n="rect",a=ts[n]),Z_[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function K_(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||z.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Xt(r,t,e,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=ch(r.slice(8),new Ee(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Qs(r.slice(7),{},new Ee(t,e,n,a),o?"center":"cover"):l=new $_({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=K_,i&&l.setColor(i),l}function q_(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function bl(r,t){if(r!=null)return N(r)||(r=[r,r]),[se(r[0],t[0])||0,se(j(r[1],r[0]),t[1])||0]}var j_=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ti(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Se,a=Xt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Xt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=z.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(He);function Mi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Fr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var wl=(function(r){H(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o,s){this.removeAll();var l=Xt(e,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Q_,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){zr(this.childAt(0))},t.prototype.downplay=function(){Vr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=t.getSymbolZ2(e,n),c=o!==this._symbolType,f=i&&i.disableAnimation;if(c){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(d):Ae(v,d,s,n),_i(v)}if(this._updateCommon(e,n,l,a,i),c){var v=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ve(v,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=qr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=bl(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof Zr){var T=s.style;s.useStyle(W({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(W({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var A=o&&o.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(k){return A?e.getName(k):Mi(e,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),fr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=ee(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&En(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();En(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return q_(e.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(e,n){return e.getItemVisual(n,"z2")},t})(Se);function Q_(r,t){this.parent.drift(r,t)}function $i(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function rc(r){return r!=null&&!$(r)&&(r={isIgnore:r}),r||{}}function nc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:qr(t),cursorStyle:t.get("cursor")}}var gd=(function(){function r(t){this.group=new Se,this._SymbolCtor=t||wl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=rc(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=nc(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if($i(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!$i(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ae(v,g,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=rc(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function yd(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}var _d=typeof Float32Array<"u",eS=_d?Float32Array:Array;function st(r){return N(r)?_d?new Float32Array(r):r:new eS(r)}function tS(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function rS(r,t,e,n,a,i,o,s){for(var l=tS(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],m=md(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(sr(g,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,h=y;else{var _=g-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===g&&w===y&&m=n||sr(x,w))v=g,d=y;else{M=x-u,A=w-c;var P=g-u,k=x-g,E=y-c,U=w-y,R=void 0,O=void 0;if(s==="x"){R=Math.abs(P),O=Math.abs(k);var V=M>0?1:-1;v=g-V*R*o,d=y,L=g+V*O*o,I=y}else if(s==="y"){R=Math.abs(E),O=Math.abs(U);var B=A>0?1:-1;v=g,d=y-B*R*o,L=g,I=y+B*O*o}else R=Math.sqrt(P*P+E*E),O=Math.sqrt(k*k+U*U),D=O/(O+R),v=g-M*o*(1-D),d=y-A*o*(1-D),L=g+M*o*D,I=y+A*o*D,L=Lt(L,Pt(x,g)),I=Lt(I,Pt(w,y)),L=Pt(L,Lt(x,g)),I=Pt(I,Lt(w,y)),M=L-g,A=I-y,v=g-M*R/O,d=y-A*R/O,v=Lt(v,Pt(u,g)),d=Lt(d,Pt(c,y)),v=Pt(v,Lt(u,g)),d=Pt(d,Lt(c,y)),M=g-v,A=y-d,L=g+M*O/R,I=y+A*O/R}r.bezierCurveTo(f,h,v,d,g,y),f=L,h=I}else r.lineTo(g,y)}u=g,c=y,p+=i}return m}var Sd=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),nS=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&sr(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++];var b=u?nu(s,v,p,g,e,c):nu(l,d,m,y,e,c);if(b>0)for(var x=0;x=0){var S=u?au(l,d,m,y,w):au(s,v,p,g,w);return u?[e,S]:[S,e]}}s=g,l=y;break}}},t})(Ce),aS=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Sd),iS=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new aS},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&sr(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function vS(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=fS(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";C(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Ev(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function hS(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&dS(i,t))){var o=t.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function dS(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function pS(r,t){return isNaN(r)||isNaN(t)}function gS(r){for(var t=r.length/2;t>0&&pS(r[t*2-2],r[t*2-1]);t--);return t-1}function cc(r,t){return[r[t*2],r[t*2+1]]}function mS(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Cd(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}ee(d).seriesIndex=e.seriesIndex,fr(d,E,U,R);var V=uc(e.get("smooth")),B=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:B,connectNulls:w}),p){var G=s.getCalculationInfo("stackedOnSeries"),K=0;p.useStyle(oe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(K=uc(G.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:K,smoothMonotone:B,connectNulls:w}),Rn(p,e,"areaStyle"),ee(p).seriesIndex=e.seriesIndex,fr(p,E,U,R)}var te=this._changePolyState;s.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ee(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new wl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Be.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Be.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;gu(this._polyline,e),n&&gu(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new iS({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");q(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=q(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var T=q(f)?f(d):c*w+h,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Cd(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new De({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=gS(l);c>=0&&(Kr(s,qr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?pd(o,v):Mi(o,f)},enableTextSetter:!0},yS(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),w=g?"x":"y",T=mS(f,S,w),D=T.range,M=D[1]-D[0],A=void 0;if(M>=1){if(M>1&&!v){var L=cc(f,D[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(A=h.getRawValue(D[0]))}else{var L=c.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(A=ay(a,d,I,P,T.t))}i.lastFrameIndex=D[0]}else{var k=e===1||i.lastFrameIndex>0?D[0]:0,L=cc(f,k);o&&(A=h.getRawValue(k)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var E=bi(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=rS(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(d=kt(h.stackedOnCurrent,h.current,a,o,l),v=kt(h.current,null,a,o,l),m=kt(h.stackedOnNext,h.next,a,o,l),p=kt(h.next,null,a,o,l)),lc(v,p)>3e3||c&&lc(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Ae(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ae(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;X(i)?d=SS[i]:q(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,xS))}}}}}function TD(r){r.registerChartView(_S),r.registerSeriesModel(j_),r.registerLayout(Dl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Td("line"))}var bS="__ec_stack_";function Dd(r){return r.get("stack")||bS+r.seriesIndex}function Al(r){return r.dim+r.index}function Ad(r,t){var e=[];return t.eachSeriesByType(r,function(n){Pd(n)&&e.push(n)}),e}function wS(r){var t={};C(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,m=d.count();p0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function Md(r){var t=wS(r),e=[];return C(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=se(n.get("barWidth"),s),p=se(n.get("barMaxWidth"),s),m=se(n.get("barMinWidth")||(kd(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:Al(i),stackId:Dd(n)})}),CS(e)}function CS(r){var t={};C(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return C(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=qe(i).length;s=Math.max(35-l*4,15)+"%"}var u=se(s,o),c=se(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),C(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;C(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var m=-d/2;C(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+c)})}),e}function TS(r,t,e){if(r&&t){var n=r[Al(t)];return n}}function Id(r,t){var e=Ad(r,t),n=Md(e);C(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Dd(a),u=n[Al(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Ld(r){return{seriesType:r,plan:ia(),reset:function(t){if(Pd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Wr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=DS(a,i),d=kd(t),p=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&st(b*3),w=d&&l&&st(b*3),T=d&&st(b),D=n.master.getRect(),M=h?D.width:D.height,A,L=S.getStore(),I=0;(A=_.next())!=null;){var P=L.get(f?m:o,A),k=L.get(s,A),E=v,U=void 0;f&&(U=+P-L.get(o,A));var R=void 0,O=void 0,V=void 0,B=void 0;if(h){var G=n.dataToPoint([P,k]);if(f){var K=n.dataToPoint([U,k]);E=K[0]}R=E,O=G[1]+y,V=G[0]-E,B=g,Math.abs(V)0?e:1:e))}var Gn=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ti(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)C(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),m=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!p&&(m+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bm){_=(x+y)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(He);He.registerClass(Gn);var AS=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ti(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ll(Gn.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:z.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Gn),ei="\0__throttleOriginMethod",fc="\0__throttleRate",vc="\0__throttleType";function Ml(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Rd(r,t,e,n){var a=r[t];if(a){var i=a[ei]||a,o=a[vc],s=a[fc];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Ml(i,e,n==="debounce"),a[ei]=i,a[vc]=n,a[fc]=e}return a}}function ns(r,t){var e=r[t];e&&e[ei]&&(e.clear&&e.clear(),r[t]=e[ei])}var MS=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),hc=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new MS},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){wn(i,e,ee(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Be),dc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=qi(t.x,r.x),s=ji(t.x+t.width,a),l=qi(t.y,r.y),u=ji(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=ji(t.r,r.r),i=qi(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},pc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new de({shape:W({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?hc:pr,c=new u({shape:n,z2:1});c.name="item";var f=Ed(a);if(c.calculateTextPosition=IS(f,{isRoundCap:u===hc}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Ae:Ve)(c,{shape:d},i)}return c}};function RS(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function gc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ae:Ve)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?Ae:Ve)(e,{shape:u},c,a)}function mc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function BS(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Ed(r){return(function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}})(r)}function _c(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=gn(n.getModel("itemStyle"),c,!0);W(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=qr(n);Kr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Mi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,LS(r,m==="outside"?v:m,Ed(o),n.get(["label","rotate"]))}Fy(p,d,i.getRawValue(e),function(y){return pd(t,y)});var g=n.getModel(["emphasis"]);fr(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Rn(r,n),BS(a)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function NS(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var zS=(function(){function r(){}return r})(),Sc=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new zS},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function VS(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Od(r,t,e){if(Tl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function GS(r,t,e){var n=r.type==="polar"?pr:de;return new n({shape:Od(t,e,r),silent:!0,z2:0})}function DD(r){r.registerChartView(kS),r.registerSeriesModel(AS),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ne(Id,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ld("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Td("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}function FS(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}C([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=W({},a),o.dispatchAction(W(a,{type:n[1],seriesIndex:e(i,a)}))})})}function Cr(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;cO?(B=k+T*O/2,G=B):(B=k+M,G=V-M),a.setItemLayout(R,{angle:O,startAngle:B,endAngle:G,clockwise:S,cx:s,cy:l,r0:c,r:b?Bt(U,w,[c,u]):u}),k=V}),I0){t=t/180*Math.PI,zt.fromArray(r[0]),me.fromArray(r[1]),Ie.fromArray(r[2]),pe.sub(Vt,zt,me),pe.sub(at,Ie,me);var e=Vt.len(),n=at.len();if(!(e<.001||n<.001)){Vt.scale(1/e),at.scale(1/n);var a=Vt.dot(at),i=Math.cos(t);if(i1&&pe.copy(Oe,Ie),Oe.toArray(r[1])}}}}function XS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,zt.fromArray(r[0]),me.fromArray(r[1]),Ie.fromArray(r[2]),pe.sub(Vt,me,zt),pe.sub(at,Ie,me);var n=Vt.len(),a=at.len();if(!(n<.001||a<.001)){Vt.scale(1/n),at.scale(1/a);var i=Vt.dot(t),o=Math.cos(e);if(i=l)pe.copy(Oe,Ie);else{Oe.scaleAndAdd(at,s/Math.tan(Math.PI/2-c));var f=Ie.x!==me.x?(Oe.x-me.x)/(Ie.x-me.x):(Oe.y-me.y)/(Ie.y-me.y);if(isNaN(f))return;f<0?pe.copy(Oe,me):f>1&&pe.copy(Oe,Ie)}Oe.toArray(r[1])}}}}function Qi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ZS(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=iu(n[0],n[1]),i=iu(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=Ei([],n[1],n[0],o/a),l=Ei([],n[1],n[2],o/i),u=Ei([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0){S(M*D,0,i);var A=M+w;A<0&&b(-A*D,1)}else b(-w*D,1)}}function S(w,T,D){w!==0&&(c=!0);for(var M=T;M0)for(var A=0;A0;A--){var k=D[A-1]*P;S(-k,A,i)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var D=Math.ceil(w/(i-1)),M=0;M0?S(D,0,M+1):S(-D,i-M-1,i),w-=D,w<=0)return}return c}function ex(r){var t=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function e(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;ne?g:m,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}Wd(i,n)}}}function Wd(r,t){Mc.rect=r,Gd(Mc,t,nx)}var nx={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Mc={};function eo(r){return r.position==="center"}function ax(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*tx,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,D=w.getTextContent(),M=w.getTextGuideLine(),A=t.getItemModel(x),L=A.getModel("label"),I=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),k=L.get("alignTo"),E=se(L.get("edgeDistance"),u),U=L.get("bleedMargin");U==null&&(U=Math.min(u,h)>200?10:2);var R=A.getModel("labelLine"),O=R.get("length");O=se(O,u);var V=R.get("length2");if(V=se(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":G>0?"left":"right"}var Dt=Math.PI,vt=0,en=L.get("rotate");if(ce(en))vt=en*(Dt/180);else if(I==="center")vt=0;else if(en==="radial"||en===!0){var Vg=G<0?-B+Dt:-B;vt=Vg}else if(en==="tangential"&&I!=="outside"&&I!=="outer"){var _r=Math.atan2(G,K);_r<0&&(_r=Dt*2+_r);var Gg=K>0;Gg&&(_r=Dt+_r),vt=_r-Dt}if(i=!!vt,D.x=te,D.y=le,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Tt){D.setStyle({align:yr});var Ri=D.states.select;Ri&&(Ri.x+=D.x,Ri.y+=D.y)}else{var ki=new Ee(0,0,0,0);Wd(ki,D),e.push({label:D,labelLine:M,position:I,len:O,len2:V,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new pe(G,K),linePoints:Ct,textAlign:yr,labelDistance:P,labelAlignTo:k,edgeDistance:E,bleedMargin:U,rect:ki,unconstrainedWidth:ki.width,labelStyleWidth:D.style.width})}w.setTextConfig({inside:Tt})}}),!i&&r.get("avoidLabelOverlap")&&rx(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t})(Be);function Hd(r,t,e){t=N(t)&&{coordDimensions:t}||W({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Xh(n,t).dimensions,i=new Yh(a,r);return i.initData(n,e),i}var sx=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r})(),lx=fe(),Ud=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new sx(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Hd(this,{coordDimensions:["value"],encodeDefaulter:ne(Ky,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=lx(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Vm(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){No(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(He);w0({fullType:Ud.type,getCoord2:function(r){return r.getShallow("center")}});function ux(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ce(o)&&!isNaN(o)&&o<0)})}}}function AD(r){r.registerChartView(ox),r.registerSeriesModel(Ud),FS("pie",r.registerAction),r.registerLayout(ne(HS,"pie")),r.registerProcessor(US("pie")),r.registerProcessor(ux("pie"))}var Yd="";typeof navigator<"u"&&(Yd=navigator.platform||"");var Tr="rgba(0, 0, 0, 0.2)",Xd=z.color.theme[0],cx=ko(Xd,null,null,.9);const fx={darkMode:"auto",colorBy:"series",color:z.color.theme,gradientColor:[cx,Xd],aria:{decal:{decals:[{color:Tr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Tr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Tr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Tr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Tr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Tr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var as=Z();function vx(r,t){ut(as.get(r)==null&&t),as.set(r,t)}function hx(r,t,e){var n=as.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var Sa,sn,Ic,Lc="\0_ec_inner",dx=1,Ll=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new he(i),this._locale=new he(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=Rc(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Rc(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Ic(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=n&&n.replaceMergeMainTypeMap;$y(this),C(e,function(f,h){f!=null&&(ae.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Q(f):J(a[h],f,!0))}),u&&u.each(function(f,h){ae.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ae.topologicalTravel(s,ae.getAllClassMainTypes(),c,this);function c(f){var h=hx(this,f,_e(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Um(v,h,d);Qm(p,f,ae),a[f]=null,i.set(f,null),o.set(f,0);var m=[],g=[],y=0,_;C(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",D=ae.getClass(f,S.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=W({componentIndex:b},S.keyInfo);x=new D(w,this,this,M),W(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[f]=m,i.set(f,g),o.set(f,y),f==="series"&&Sa(this)}this._seriesIndices||Sa(this)},t.prototype.getOption=function(){var e=Q(this.option);return C(e,function(n,a){if(ae.hasClass(a)){for(var i=_e(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!kn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Lc],e},t.prototype.setTheme=function(e){this._theme=new he(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function wx(r,t){return r.join(",")===t.join(",")}var je=C,Fn=$,Ec=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function to(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Ec.length;e0?e[o-1].seriesModel:null)}),kx(e)}})}function kx(r){C(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(t.stackedDimension,f);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(f):v=o.get(t.stackedByDimension,f);for(var p=NaN,m=e-1;m>=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Gm(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Ge=(function(){function r(){this.group=new Se,this.uid=ra("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Ws(Ge);di(Ge);var Vc=fe(),Gc={itemStyle:Ln(xh,!0),lineStyle:Ln(Sh,!0)},Rx={lineStyle:"stroke",itemStyle:"fill"};function qd(r,t){var e=r.visualStyleMapper||Gc[t];return e||Gc.itemStyle}function jd(r,t){var e=r.visualDrawType||Rx[t];return e||"fill"}var Ex={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=qd(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=jd(r,n),u=o[l],c=q(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=W({},o);m[l]=c(p),v.setItemVisual(d,"style",m)}}}},un=new he,Ox={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=qd(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){un.option=l[n];var u=a(un),c=o.ensureUniqueItemVisual(s,"style");W(c,u),un.option.decal&&(o.setItemVisual(s,"decal",un.option.decal),un.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Bx={performRawSeries:!0,overallReset:function(r){var t=Z();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Vc(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Vc(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=jd(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},xa=Math.PI;function Nx(r,t){t=t||{},oe(t,{text:"loading",textColor:z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Se,n=new de({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new De({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new de({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Vs({shape:{startAngle:-xa/2,endAngle:-xa/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:xa*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:xa*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Qd=(function(){function r(t,e,n,a){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Z();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;C(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";ut(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;C(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Dn({plan:Wx,reset:Hx,count:Yx}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||Dn({reset:zx});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";ut(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,C(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,Dn({reset:Vx,onDirty:Fx})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:Xx(t)}),t.uid=ra("stageHandler"),e&&(t.visualType=e),t},r})();function zx(r){r.overallReset(r.ecModel,r.api,r.payload)}function Vx(r){return r.overallProgress&&Gx}function Gx(){this.agent.dirty(),this.getDownstream().dirty()}function Fx(){this.agent&&this.agent.dirty()}function Wx(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Hx(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=_e(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return Jd(n)}):Ux}var Ux=Jd(0);function Jd(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),is=["symbol","symbolSize","symbolRotate","symbolOffset"],Wc=is.concat(["symbolKeepAspect"]),Kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[be]){if(this._disposed){this.id;return}var i,o,s;if($(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[be]=!0,Mr(this),!this._model||n){var l=new _x(this._api),u=this._theme,c=this._model=new Ll;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},cs);var f={seriesTransition:s,optionChanged:!0};if(a)this[Te]={silent:i,updateParams:f},this[be]=!1,this.getZr().wakeUp();else{try{rr(this),dt.update.call(this,null,f)}catch(h){throw this[Te]=null,this[be]=!1,h}this._ssr||this._zr.flush(),this[Te]=null,this[be]=!1,Dr.call(this,i),Ar.call(this,i)}}},t.prototype.setTheme=function(e,n){if(!this[be]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Te]&&(i==null&&(i=this[Te].silent),o=this[Te].updateParams,this[Te]=null),this[be]=!0,Mr(this);try{this._updateTheme(e),a.setTheme(this._theme),rr(this),dt.update.call(this,{type:"setTheme"},o)}catch(s){throw this[be]=!1,s}this[be]=!1,Dr.call(this,i),Ar.call(this,i)}}},t.prototype._updateTheme=function(e){X(e)&&(e=mp[e]),e&&(e=Q(e),e&&Kd(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ye.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,n=e.storage.getDisplayList();return C(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;C(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Qc[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();C(An,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,m=Nv.createCanvas(),g=ou(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return C(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new de({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),C(h,function(_){var S=new Zr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n,a){return Ca(this,"convertToPixel",e,n,a)},t.prototype.convertToLayout=function(e,n,a){return Ca(this,"convertToLayout",e,n,a)},t.prototype.convertFromPixel=function(e,n,a){return Ca(this,"convertFromPixel",e,n,a)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=xn(a,e);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=xn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?jx(s,l,n):Qx(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;C(yb,function(a){var i=function(o){var s=e.getModel(),l=o.target,u,c=a==="globalout";if(c?u={}:l&&yn(l,function(p){var m=ee(p);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=W({},m.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var v=f&&h!=null&&s.getComponent(f,h),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(a,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(a,i,e)});var n=this._messageCenter;C(ls,function(a,i){n.on(i,function(o){e.trigger(i,o)})}),WS(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Qv(this.getDom(),Rl,"");var n=this,a=n._api,i=n._model;C(n._componentsViews,function(o){o.dispose(i,a)}),C(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete An[n.id]},t.prototype.resize=function(e){if(!this[be]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Te]&&(i==null&&(i=this[Te].silent),a=!0,this[Te]=null),this[be]=!0,Mr(this);try{a&&rr(this),dt.update.call(this,{type:"resize",animation:W({duration:0},e&&e.animation)})}catch(o){throw this[be]=!1,o}this[be]=!1,Dr.call(this,i),Ar.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if($(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!fs[e]){var a=fs[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=W({},e);return n.type=ss[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if($(n)||(n={silent:!!n}),!!ii[e.type]&&this._model){if(this[be]){this._pendingActions.push(e);return}var a=n.silent;lo.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ye.browser.weChat&&this._throttledZrFlush(),Dr.call(this,a),Ar.call(this,a)}},t.prototype.updateLabelLayout=function(){Qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){rr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),oo(f,!0),oo(f,!1),h.plan()},oo=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ye.node&&!ye.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=f._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(f,h){if(!f.preventAutoZ){var v=qa(f);h.eachRendered(function(d){return mh(d,v.z,v.zlevel),!0})}}function u(f,h){h.eachRendered(function(v){if(!bn(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),m=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(bn(g))return;if(g instanceof Ce&&Ty(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&i(g)}})}qc=function(f){return new((function(h){H(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){zr(d,p),Xe(f)},v.prototype.leaveEmphasis=function(d,p){Vr(d,p),Xe(f)},v.prototype.enterBlur=function(d){py(d),Xe(f)},v.prototype.leaveBlur=function(d){nh(d),Xe(f)},v.prototype.enterSelect=function(d){ah(d),Xe(f)},v.prototype.leaveSelect=function(d){ih(d),Xe(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return f[ba]},v})(Zd))(f)},pp=function(f){function h(v,d){for(var p=0;p=0)){Jc.push(e);var i=Qd.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function xp(r,t){fs[r]=t}function Tb(r,t,e){var n=nb("registerMap");n&&n(r,t,e)}var Db=b_;mr(Pl,Ex);mr(Ii,Ox);mr(Ii,Bx);mr(Pl,Kx);mr(Ii,qx);mr(up,tb);_p(Kd);Sp(ob,Px);xp("default",Nx);ft({type:ir,event:ir,update:ir},St);ft({type:ka,event:ka,update:ka},St);ft({type:Za,event:$s,update:Za,action:St,refineEvent:Bl,publishNonRefinedEvent:!0});ft({type:zo,event:$s,update:zo,action:St,refineEvent:Bl,publishNonRefinedEvent:!0});ft({type:$a,event:$s,update:$a,action:St,refineEvent:Bl,publishNonRefinedEvent:!0});function Bl(r,t,e,n){return{eventContent:{selected:Sy(e),isFromClick:t.isFromClick||!1}}}yp("default",{});yp("dark",rp);var ef=[],Ab={registerPreprocessor:_p,registerProcessor:Sp,registerPostInit:xb,registerPostUpdate:bb,registerUpdateLifecycle:El,registerAction:ft,registerCoordinateSystem:wb,registerLayout:Cb,registerVisual:mr,registerTransform:Db,registerLoading:xp,registerMap:Tb,registerImpl:rb,PRIORITY:pb,ComponentModel:ae,ComponentView:Ge,SeriesModel:He,ChartView:Be,registerComponentModel:function(r){ae.registerClass(r)},registerComponentView:function(r){Ge.registerClass(r)},registerSeriesModel:function(r){He.registerClass(r)},registerChartView:function(r){Be.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){ae.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){sm(r,t)}};function xt(r){if(N(r)){C(r,function(t){xt(t)});return}ue(ef,r)>=0||(ef.push(r),q(r)&&(r={install:r}),r.install(Ab))}var Mb=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ti(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:z.color.primary}},universalTransition:{divideShape:"clone"}},t})(He),bp=4,Ib=(function(){function r(){}return r})(),Lb=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Ib},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),kb=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Dl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Pb:new gd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Be),wp={left:0,right:0,top:0,bottom:0},si=["25%","25%"],Rb=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,n){var a=aa(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&e.outerBounds&&Yt(e.outerBounds,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Yt(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:wp,outerBoundsContain:"all",outerBoundsClampWidth:si[0],outerBoundsClampHeight:si[1],backgroundColor:z.color.transparent,borderWidth:1,borderColor:z.color.neutral30},t})(ae),Eb=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})(),vs=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t})(ae);bt(vs,Eb);var Cp={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:z.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[z.color.backgroundTint,z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:z.color.neutral00,borderColor:z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Ob=J({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Cp),Nl=J({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:z.color.axisMinorSplitLine,width:1}}},Cp),Bb=J({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nl),Nb=oe({logBase:10},Nl);const zb={category:Ob,value:Nl,time:Bb,log:Nb};var Vb=0,hs=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Vb,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Gb);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!X(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r})();function Gb(r){return $(r)&&r.value!=null?r.value:r+""}var Fb={value:1,category:1,time:1,log:1},Wb=null;function Hb(){return Wb}function tf(r,t,e,n){C(Fb,function(a,i){var o=J(J({},zb[i],!0),n,!0),s=(function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=zn(this),v=h?aa(c):{},d=f.getTheme();J(c,d.get(i+"Axis")),J(c,this.getDefaultOption()),c.type=rf(c),h&&Yt(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=hs.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){return{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",rf)}function rf(r){return r.type||(r.data?"category":"value")}function ds(r){return r.type==="interval"||r.type==="log"}function Ub(r,t,e,n,a){var i={},o=i.interval=Uv(t/e);n!=null&&oa&&(o=i.interval=a);var s=i.intervalPrecision=Hn(o),l=i.niceTickExtent=[Le(Math.ceil(r[0]/o)*o,s),Le(Math.floor(r[1]/o)*o,s)];return Yb(l,r),i}function co(r){var t=Math.pow(10,Hs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Le(e*t)}function Hn(r){return yt(r)+2}function nf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Yb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),nf(r,0,t),nf(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function zl(r,t){return r>=t[0]&&r<=t[1]}var Xb=(function(){function r(){this.normalize=af,this.scale=of}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ie(t.normalize,t),this.scale=ie(t.scale,t)):(this.normalize=af,this.scale=of)},r})();function af(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function of(r,t){return r*(t[1]-t[0])+t[0]}function ps(r,t,e){var n=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/n,Math.log(e?t[1]:Math.max(0,t[1]))/n]}var $t=(function(){function r(t){this._calculator=new Xb,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();di($t);var Vl=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new hs({})),N(a)&&(a=new hs({categories:Y(a,function(i){return $(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:X(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return zl(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})($t);$t.registerClass(Vl);var Rt=Le,Hr=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return zl(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hn(e)},t.prototype.getTicks=function(e){e=e||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Qa(),l=[];if(!n)return l;e.breakTicks;var u=1e4;a[0]=0&&(f=Rt(f+h*n,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(e.expandToNicedExtent?l.push({value:Rt(v+n,o)}):l.push({value:a[1]})),e.breakTicks,l},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;oi[0]&&d>>1;r[a][1]a&&(this._approxInterval=a);var o=Da.length,s=Math.min(Zb(Da,this._approxInterval,0,o),o-1);this._interval=Da[s][1],this._intervalPrecision=Hn(this._interval),this._minLevelUnit=Da[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return ce(e)?e:+$r(e)},t.prototype.contain=function(e){return zl(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(Hr),Da=[["second",fl],["minute",vl],["hour",Cn],["quarter-day",Cn*6],["half-day",Cn*12],["day",$e*1.2],["half-week",$e*3.5],["week",$e*7],["month",$e*31],["quarter",$e*95],["half-year",Wu/2],["year",Wu]];function $b(r,t,e,n){return qo(new Date(t),r,n).getTime()===qo(new Date(e),r,n).getTime()}function Kb(r,t){return r/=$e,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qb(r){var t=30*$e;return r/=t,r>6?6:r>3?3:r>2?2:1}function jb(r){return r/=Cn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function sf(r,t){return r/=t?vl:fl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Qb(r){return Uv(r)}function Jb(r,t,e){var n=Math.max(0,ue(or,t)-1);return qo(new Date(r),or[n],e).getTime()}function ew(r,t){var e=new Date(0);e[r](1);var n=e.getTime();e[r](1+t);var a=e.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function tw(r,t,e,n,a,i){var o=1e4,s=$0,l=0;function u(I,P,k,E,U,R,O){for(var V=ew(U,I),B=P,G=new Date(B);Bo));)if(G[U](G[E]()+I),B=G.getTime(),i){var K=i.calcNiceTickMultiple(B,V);K>0&&(G[U](G[E]()+K*I),B=G.getTime())}O.push({value:B,notAdd:!0})}function c(I,P,k){var E=[],U=!P.length;if(!$b(Tn(I),n[0],n[1],e)){U&&(P=[{value:Jb(n[0],I,e)},{value:n[1]}]);for(var R=0;R=n[0]&&O<=n[1]&&u(B,O,V,G,K,te,E),I==="year"&&k.length>1&&R===0&&k.unshift({value:k[0].value-B})}}for(var R=0;R=n[0]&&S<=n[1]&&v++)}var b=a/t;if(v>b*1.5&&d>b/1.5||(f.push(y),v>b||r===s[p]))break}h=[]}}}for(var x=we(Y(f,function(I){return we(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),w=[],T=x.length-1,p=0;p0;)i*=10;var s=[gs(nw(n[0]/i)*i),gs(rw(n[1]/i)*i)];this._interval=i,this._intervalPrecision=Hn(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Ma(e)/Ma(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Ma(e)/Ma(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Aa(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t})(Hr);function fo(r,t){return gs(r,yt(t))}$t.registerClass(Dp);var aw=(function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[ow[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=iw[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),iw={min:"_determinedMin",max:"_determinedMax"},ow={min:"_dataMin",max:"_dataMax"};function Ap(r,t,e){var n=r.rawExtentInfo;return n||(n=new aw(r,t,e),r.rawExtentInfo=n,n)}function Ia(r,t){return t==null?null:Ua(t)?NaN:r.parse(t)}function Mp(r,t){var e=r.type,n=Ap(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=Ad("bar",o),l=!1;if(C(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Md(s),c=sw(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function sw(r,t,e,n){var a=e.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=TS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;C(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;C(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function lf(r,t){var e=t,n=Mp(r,e),a=n.extent,i=e.get("splitNumber");r instanceof Dp&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Pp(e)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function lw(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Vl({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Tp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new($t.getClass(t)||Hr)}}function uw(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function jr(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=K0(t);return function(a,i){return r.scale.getFormattedLabel(a,i,e)}}else{if(X(t))return function(a){var i=r.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(q(t)){if(r.type==="category")return function(a,i){return t(li(r,a),a.value-r.scale.getExtent()[0],null)};var n=Qa();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(li(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function li(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Gl(r){var t=r.get("interval");return t??"auto"}function Ip(r){return r.type==="category"&&Gl(r.getLabelModel())===0}function Lp(r,t){var e={};return C(r.mapDimensionsAll(t),function(n){e[k0(r,n)]=!0}),qe(e)}function cw(r,t,e){t&&C(Lp(t,e),function(n){var a=t.getApproximateExtent(n);a[0]r[1]&&(r[1]=a[1])})}function Ur(r){return r==="middle"||r==="center"}function Un(r){return r.getShallow("show")}function Pp(r){var t=r.get("breaks",!0);t==null}var fw=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),we(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),ms=["x","y"];function uf(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var vw=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ms,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uf(e)||!uf(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Ns([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ee(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return lr(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n,a){if(a=a||[],this._invTransform)return lr(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ee(i,o,s,l)},t})(fw),hw=fe(),Mn=fe(),tt={estimate:1,determine:2};function ui(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function kp(r,t){var e=Y(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function dw(r,t){var e=r.getLabelModel().get("customValues");if(e){var n=jr(r),a=r.scale.getExtent(),i=kp(r,e),o=we(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?gw(r,t):yw(r)}function pw(r,t,e){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=kp(r,n);return{ticks:we(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?mw(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function gw(r,t){var e=r.getLabelModel(),n=Rp(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:n}function Rp(r,t,e){var n=Sw(r),a=Gl(t),i=e.kind===tt.estimate;if(!i){var o=Op(n,a);if(o)return o}var s,l;q(a)?s=zp(r,a):(l=a==="auto"?xw(r,e):a,s=Np(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return ys(n,a,u),!0}):ys(n,a,u),u}function mw(r,t){var e=_w(r),n=Gl(t),a=Op(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),q(n))i=zp(r,n,!0);else if(n==="auto"){var s=Rp(r,r.getLabelModel(),ui(tt.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=n,i=Np(r,o,!0);return ys(e,n,{ticks:i,tickCategoryInterval:o})}function yw(r){var t=r.scale.getTicks(),e=jr(r);return{labels:Y(t,function(n,a){return{formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var _w=Ep("axisTick"),Sw=Ep("axisLabel");function Ep(r){return function(e){return Mn(e)[r]||(Mn(e)[r]={list:[]})}}function Op(r,t){for(var e=0;ec&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],h=r.dataToCoord(f+1)-r.dataToCoord(f),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,m=0;f<=s[1];f+=u){var g=0,y=0,_=Fs(a({value:f}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var S=p/v,b=m/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===tt.estimate)return t.out.noPxChangeTryDetermine.push(ie(ww,null,r,x,l)),x;var w=Bp(r,x,l);return w??x}function ww(r,t,e){return Bp(r,t,e)==null}function Bp(r,t,e){var n=hw(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=e,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function Cw(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Np(r,t,e){var n=jr(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Ip(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(e?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m,time:void 0,break:void 0})}return s}function zp(r,t,e){var n=r.scale,a=jr(r),i=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var cf=[0,1],Tw=(function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Wv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(a.parse(t)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),ff(n,a.count())),Bt(t,cf,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),ff(n,a.count()));var i=Bt(t,n,cf,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=pw(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=n.ticks,i=Y(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Dw(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(t){return t=t||ui(tt.determine),dw(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(t){return t=t||ui(tt.determine),bw(this,t)},r})();function ff(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function Dw(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;C(t,function(v){v.coord-=u/2,v.onBand=!0});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:c[1]+1,onBand:!0},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=Le(v),d=Le(d),f?v>d:vn[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Tw),Mw="expandAxisBreak",Gt=Math.PI,Iw=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Lw=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Yn=fe(),Vp=fe(),Gp=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[e]||(a[e]=[]);return i[n]||(i[n]={ready:{}})},r})();function Pw(r,t,e,n){var a=e.axis,i=t.ensureRecord(e),o=[],s,l=Fl(r.axisName)&&Ur(r.nameLocation);C(n,function(d){var p=Zt(d);if(!(!p||p.label.ignore)){o.push(p);var m=i.transGroup;l&&(m.transform?Ns(fn,m.transform):Iv(fn),p.transform&&Lv(fn,fn,p.transform),Ee.copy(La,p.localRect),La.applyTransform(fn),s?s.union(La):Ee.copy(s=new Ee(0,0,0,0),La))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=a.getExtent(),h=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-h;s.union(new Ee(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var fn=vi(),La=new Ee(0,0,0,0),Fp=function(r,t,e,n,a,i){if(Ur(r.nameLocation)){var o=i.stOccupiedRect;o&&Wp(jS({},o,i.transGroup.transform),n,a)}else Hp(i.labelInfoList,i.dirVec,n,a)};function Wp(r,t,e){var n=new pe;Il(r,t,n,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&QS(t,n)}function Hp(r,t,e,n){for(var a=pe.dot(n,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):Ya(a-Gt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),kw=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Rw={axisLine:function(r,t,e,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,c=[l[0],0],f=[l[1],0],h=c[0]>f[0];u&&(lr(c,c,u),lr(f,f,u));var v=W({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())Hb().buildAxisBreakLine(n,a,i,d);else{var p=new ur(W({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},d));On(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var g=n.get(["axisLine","symbolSize"]);X(m)&&(m=[m,m]),(X(g)||ce(g))&&(g=[g,g]);var y=bl(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];C([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(b,x){if(m[x]!=="none"&&m[x]!=null){var w=Xt(m[x],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,D=h?f:c;w.attr({rotation:b.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,n,a,i,o,s){var l=hf(t,a,s);l&&vf(r,t,e,n,a,i,o,tt.estimate)},axisTickLabelDetermine:function(r,t,e,n,a,i,o,s){var l=hf(t,a,s);l&&vf(r,t,e,n,a,i,o,tt.determine);var u=Nw(r,a,i,n);Bw(r,t.labelLayoutList,u),zw(r,a,i,n,r.tickDirection)},axisName:function(r,t,e,n,a,i,o,s){var l=e.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Fl(u)){var c=r.nameLocation,f=r.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new pe(0,0),g=new pe(0,0);c==="start"?(m.x=d[0]-p*v,g.x=-p):c==="end"?(m.x=d[1]+p*v,g.x=p):(m.x=(d[0]+d[1])/2,m.y=r.labelOffset+f*v,g.y=f);var y=vi();g.transform(zv(y,y,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Gt/180);var S,b;Ur(c)?S=Wt.innerTextLayout(r.rotation,_??r.rotation,f):(S=Ew(r.rotation,c,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,D=In(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,A=new De({x:m.x,y:m.y,rotation:S.rotation,silent:Wt.isLabelSilent(n),style:Ut(h,{text:u,font:x,overflow:"truncate",width:D,ellipsis:T,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ea({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=Wt.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ee(A).eventData=L}i.add(A),A.updateTransform(),t.nameEl=A;var I=l.nameLayout=Zt({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Ur(c)?Iw[M]:Lw[M]});if(l.nameLocation=c,a.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=e.ensureRecord(n);e.resolveAxisNameOverlap(r,e,n,I,g,P)}}}};function vf(r,t,e,n,a,i,o,s){Yp(t)||Vw(r,t,a,s,n,o);var l=t.labelLayoutList;Gw(r,n,l,i),r.rotation;var u=r.optionHideOverlap;Ow(n,l,u),u&&ex(we(l,function(c){return c&&!c.label.ignore})),Pw(r,e,n,l)}function Ew(r,t,e,n){var a=Hv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ya(a-Gt/2)?(o=l?"bottom":"top",i="center"):Ya(a-Gt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aGt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Ow(r,t,e){if(Ip(r.axis))return;function n(s,l,u){var c=Zt(t[l]),f=Zt(t[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){_n(c.label);return}if(f.suggestIgnore){_n(f.label);return}var h=.1;if(!e){var v=[0,0,0,0];c=Tc({marginForce:v},c),f=Tc({marginForce:v},f)}Il(c,f,null,{touchThreshold:h})&&_n(s?f.label:c.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;n(a,0,1),n(i,o-1,o-2)}function Bw(r,t,e){r.showMinorTicks||C(t,function(n){if(n&&n.label.ignore)for(var a=0;au[0]&&isFinite(d)&&isFinite(u[0]);)v=co(v),d=u[1]-v*o;else{var m=r.getTicks().length-1;m>o&&(v=co(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=Le(p-g),d<0&&u[0]>=0?(d=0,p=Le(g)):p>0&&u[1]<=0&&(p=0,d=-Le(g))}var y=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(r,d+v*y,p+v*_),n.setInterval.call(r,v),(y||_)&&n.setNiceExtent.call(r,d+v,p-v)}var pf=[[3,1],[0,2]],Zw=(function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ms,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=qe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;ds(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(lf(p,d),ds(p)&&(s=v))}c.length&&(s||(s=c.pop(),lf(s.scale,s.model)),C(c,function(m){Xw(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};C(n.x,function(o){gf(n,"y",o,i)}),C(n.y,function(o){gf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=na(t,e),i=this._rect=ct(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Ss(o,i),!n){var u=qw(i,s,o,l,e),c=void 0;if(l)xs?(xs(this._axesList,i),Ss(o,i)):c=_f(i.clone(),"axisLabel",null,i,o,u,a);else{var f=jw(t,i,a),h=f.outerBoundsRect,v=f.parsedOuterBoundsContain,d=f.outerBoundsClamp;h&&(c=_f(h,v,d,i,o,u,a))}Xp(i,o,tt.determine,null,c,a)}C(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}$(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0})==null;return Ka(n,s,!0,!0,e),Ss(a,n),l;function u(h){C(a[Nt[h]],function(v){if(Un(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var m=0;m0&&!Ua(v)&&v>1e-4&&(h/=v),h}}function qw(r,t,e,n,a){var i=new Gp(Qw);return C(e,function(o){return C(o,function(s){if(Un(s.model)){var l=!n;s.axisBuilder=Uw(r,t,s.model,a,i,l)}})}),i}function Xp(r,t,e,n,a,i){var o=e===tt.determine;C(t,function(u){return C(u,function(c){Un(c.model)&&(Yw(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Nt[1-u]]=r[Gr[u]]<=i.refContainer[Gr[u]]*.5?0:1-u===1?2:1}C(t,function(u,c){return C(u,function(f){Un(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function jw(r,t,e){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=ct(r.get("outerBounds",!0)||wp,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ue(["all","axisLabel"],i)<0?o="all":o=i;var s=[Bo(j(r.get("outerBoundsClampWidth",!0),si[0]),t.width),Bo(j(r.get("outerBoundsClampHeight",!0),si[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Qw=function(r,t,e,n,a,i){var o=e.axis.dim==="x"?"y":"x";Fp(r,t,e,n,a,i),Ur(r.nameLocation)||C(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Hp(s.labelInfoList,s.dirVec,n,a)})};function Jw(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return eC(e,r,t),e.seriesInvolved&&rC(e,r),e}function eC(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];C(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(C(s.getAxes(),ne(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&C(d.baseAxes,ne(p,v?"cross":!0,h)),v&&C(d.otherAxes,ne(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!m&&!bs(_))){g==null&&(g=_.get("triggerTooltip")),_=m?tC(y,f,a,t,m,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Xn(y.model),T=g||b||y.type==="category",D=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:bs(_),seriesModels:[],linkGroup:null};u[w]=D,r.seriesInvolved=r.seriesInvolved||T;var M=nC(i,y);if(M!=null){var A=o[M]||(o[M]={axesInfo:{}});A.axesInfo[w]=D,A.mapper=i[M].mapper,D.linkGroup=A}}}})}function tC(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(h){l[h]=Q(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&oe(u,f.textStyle)}}return r.model.getModel("axisPointer",new he(l,e,n))}function rC(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[Xn(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function nC(r,t){for(var e=t.model,n=t.dim,a=0;a=0||r===t}function aC(r){var t=Wl(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=bs(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),oi&&(t[1-n]=t[n]+f.sign*i),t}function po(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ir(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var hr=!0,Zn=Math.min,Yr=Math.max,gC=Math.pow,mC=1e4,yC=6,_C=6,bf="globalPan",SC={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},xC={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wf={brushStyle:{lineWidth:2,stroke:z.color.backgroundTint,fill:z.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},bC=0,wC=(function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Se,n._uid="brushController_"+bC++,C(LC,function(a,i){this._handlers[i]=ie(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||vC(n,bf,this._uid),C(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=J(Q(wf),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;hC(e,bf,this._uid),C(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};C(e,function(a){n[a.panelId]=Q(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Y(e,function(h){return J(Q(wf),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Nn(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):eg(o,Jp(o,d));Hl(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Cs(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(jn);function Jp(r,t){var e=Li[t.brushType].createCover(r,t);return e.__brushOption=t,rg(e,t),r.group.add(e),e}function eg(r,t){var e=Ul(t);return e.endCreating&&(e.endCreating(r,t),rg(t,t.__brushOption)),t}function tg(r,t){var e=t.__brushOption;Ul(t).updateCoverShape(r,t,e.range,e)}function rg(r,t){var e=t.z;e==null&&(e=mC),r.traverse(function(n){n.z=e,n.z2=e})}function Hl(r,t){Ul(t).updateCommon(r,t),tg(r,t)}function Ul(r){return Li[r.__brushOption.brushType]}function Yl(r,t,e){var n=r._panels;if(!n)return hr;var a,i=r._transform;return C(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function ng(r,t){var e=r._panels;if(!e)return hr;var n=t.__brushOption.panelId;return n!=null?e[n]:hr}function Cs(r){var t=r._covers,e=t.length;return C(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function dr(r,t){var e=Y(r._covers,function(n){var a=n.__brushOption,i=Q(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function CC(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=gC(a*a+i*i,.5);return o>yC}function ag(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ig(r,t,e,n){var a=new Se;return a.add(new de({name:"main",style:Xl(e),silent:!0,draggable:!0,cursor:"move",drift:ne(Cf,r,t,a,["n","s","w","e"]),ondragend:ne(dr,t,{isEnd:!0})})),C(n,function(i){a.add(new de({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ne(Cf,r,t,a,i),ondragend:ne(dr,t,{isEnd:!0})}))}),a}function og(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Yr(a,_C),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,m=d+a,g=p+a;gt(r,t,"main",o,s,d,p),n.transformable&&(gt(r,t,"w",l,u,i,g),gt(r,t,"e",h,u,i,g),gt(r,t,"n",l,u,m,i),gt(r,t,"s",l,v,m,i),gt(r,t,"nw",l,u,i,i),gt(r,t,"ne",h,u,i,i),gt(r,t,"sw",l,v,i,i),gt(r,t,"se",h,v,i,i))}function Ts(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Xl(e)),a.attr({silent:!n,cursor:n?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Ds(r,i[0]):DC(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?xC[s]+"-resize":null})})}function gt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(MC(Zl(r,t,[[n,a],[n+i,a+o]])))}function Xl(r){return oe({strokeNoScale:!0},r.brushStyle)}function sg(r,t,e,n){var a=[Zn(r,e),Zn(t,n)],i=[Yr(r,e),Yr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function TC(r){return Js(r.group)}function Ds(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=hh(e[t],TC(r));return n[a]}function DC(r,t){var e=[Ds(r,t[0]),Ds(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Cf(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=lg(t,a,i);C(n,function(u){var c=SC[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(sg(s[0][0],s[1][0],s[0][1],s[1][1])),Hl(t,e),dr(t,{isEnd:!1})}function AC(r,t,e,n){var a=t.__brushOption.range,i=lg(r,e,n);C(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Hl(r,t),dr(r,{isEnd:!1})}function lg(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Zl(r,t,e){var n=ng(r,t);return n&&n!==hr?n.clipPath(e,r._transform):Q(e)}function MC(r){var t=Zn(r[0][0],r[1][0]),e=Zn(r[0][1],r[1][1]),n=Yr(r[0][0],r[1][0]),a=Yr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function IC(r,t,e){if(!(!r._brushType||PC(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Yl(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var Li={lineX:Af(0),lineY:Af(1),rect:{createCover:function(r,t){function e(n){return n}return ig({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ag(r);return sg(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){og(r,t,e,n)},updateCommon:Ts,contain:Ms},polygon:{createCover:function(r,t){var e=new Se;return e.add(new Kn({name:"main",style:Xl(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new zs({name:"main",draggable:!0,drift:ne(AC,r,t),ondragend:ne(dr,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Zl(r,t,e)})},updateCommon:Ts,contain:Ms}};function Af(r){return{createCover:function(t,e){return ig({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ag(t),n=Zn(e[0][r],e[1][r]),a=Yr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=ng(t,e);if(o!==hr&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),og(t,e,l,a)},updateCommon:Ts,contain:Ms}}function kC(r){return r=$l(r),function(t){return ph(t,r)}}function RC(r,t){return r=$l(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function EC(r,t,e){var n=$l(r);return function(a,i){return n.contain(i[0],i[1])&&!pC(a,t,e)}}function $l(r){return Ee.create(r)}var OC=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),m=t.data;if(m&&l){var g=[];C(m,function(S,b){var x;N(S)?(x=S.slice(),S.unshift(b)):N(S.value)?(x=W({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),t.data=g}var y=this.defaultValueDimensions,_=[{name:f,type:Zo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Zo(p),dimsDef:y.slice()}];return Hd(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:ne(Th,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),BC=["itemStyle","borderColor"],NC=["itemStyle","borderColor0"],zC=["itemStyle","borderColorDoji"],VC=["itemStyle","color"],GC=["itemStyle","color0"];function Kl(r,t){return t.get(r>0?VC:GC)}function ql(r,t){return t.get(r===0?zC:r>0?BC:NC)}var FC={seriesType:"candlestick",plan:ia(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Kl(s,o),l.stroke=ql(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}},WC=["color","borderColor"],HC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){ta(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Mf(u,f))return;var h=go(f,c,!0);Ve(h,{shape:{points:f.ends}},e,c),mo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Mf(u,v)){i.remove(h);return}h?(Ae(h,{shape:{points:v.ends}},e,c),_i(h)):h=go(v),mo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),If(e,this.group);var n=e.get("clip",!0)?Cl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=go(s);mo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){If(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(Be),UC=(function(){function r(){}return r})(),YC=(function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new UC},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t})(Ce);function go(r,t,e){var n=r.ends;return new YC({shape:{points:e?XC(n,r):n},z2:100})}function Mf(r,t){for(var e=!0,n=0;nb?A[i]:M[i],ends:P,brushRect:O(x,w,_)})}function U(B,G){var K=[];return K[a]=G,K[i]=B,isNaN(G)||isNaN(B)?[NaN,NaN]:t.dataToPoint(K)}function R(B,G,K){var te=G.slice(),le=G.slice();te[a]=Ra(te[a]+n/2,1,!1),le[a]=Ra(le[a]-n/2,1,!0),K?B.push(te,le):B.push(le,te)}function O(B,G,K){var te=U(B,K),le=U(G,K);return te[a]-=n/2,le[a]-=n/2,{x:te[0],y:te[1],width:n,height:le[1]-te[1]}}function V(B){return B[a]=Ra(B[a],1),B}}function d(p,m){for(var g=st(p.count*4),y=0,_,S=[],b=[],x,w=m.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=w.get(s,x),M=w.get(u,x),A=w.get(c,x),L=w.get(f,x),I=w.get(h,x);if(isNaN(D)||isNaN(L)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=Lf(w,x,M,A,c,T),S[a]=D,S[i]=L,_=t.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function Lf(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function qC(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=se(j(r.get("barMaxWidth"),a),a),o=se(j(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?se(s,a):Math.max(Math.min(a/2,i),o)}function LD(r){r.registerChartView(HC),r.registerSeriesModel(cg),r.registerPreprocessor($C),r.registerVisual(FC),r.registerLayout(KC)}var jC=["itemStyle","borderWidth"],Pf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],So=new hi,QC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Pf[+c],categoryDim:Pf[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Rf(o,d),m=kf(o,d,p,h),g=Ef(o,h,m);o.setItemGraphicEl(d,g),i.add(g),Bf(g,h,m)}}).update(function(d,p){var m=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(m);return}var g=Rf(o,d),y=kf(o,d,g,h),_=gg(o,y);m&&_!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(d,null),m=null),m?iT(m,h,y):m=Ef(o,h,y,!0),o.setItemGraphicEl(d,m),m.__pictorialSymbolMeta=y,i.add(m),Bf(m,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Of(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?Cl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Of(i,ee(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t})(Be);function kf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};JC(e,i,a,n,h),eT(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),tT(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=bl(e.get("symbolOffset"),v);return rT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function JC(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(N(o)){var f=[xo(s,o[0])-l,xo(s,o[1])-l];f[1]=0?1:-1:c>0?1:-1}function xo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function eT(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=se(d[f.index],h),d[c.index]=se(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function tT(r,t,e,n,a){var i=r.get(jC)||0;i&&(So.attr({scaleX:t[0],scaleY:t[1],rotation:e}),So.updateTransform(),i/=So.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function rT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),m=p;if(n){var g=Math.abs(l),y=In(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=se(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=Yv(n),T=w?n:Nf((g+x)/b),D=g-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?Nf((Math.abs(u)+x)/b):0),m=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var M=d*(m/2),A=f.pathPosition=[];A[h.index]=e[h.wh]/2,A[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var L=f.bundlePosition=[];L[h.index]=e[h.xy],L[v.index]=e[v.xy];var I=f.barRectShape=W({},e);I[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(A[v.index]+M)),I[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function fg(r){var t=r.symbolPatternSize,e=Xt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function vg(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(jl(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(y=u-1-p),m[l.index]=f*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function hg(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Nr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=fg(e),a.add(i),Nr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function dg(r,t,e){var n=W({},t.barRectShape),a=r.__pictorialBarRect;a?Nr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new de({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function pg(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=W({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Ae(a,{shape:i},s,l);else{i[o.wh]=0,a=new de({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],nl[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Rf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=nT,e.isAnimationEnabled=aT,e}function nT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function aT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ef(r,t,e,n){var a=new Se,i=new Se;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?vg(a,t,e):hg(a,t,e),dg(a,e,n),pg(a,t,e,n),a.__pictorialShapeStr=gg(r,e),a.__pictorialSymbolMeta=e,a}function iT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Ae(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?vg(r,t,e,!0):hg(r,t,e,!0),dg(r,e,!0),pg(r,t,e,!0)}function Of(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];jl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),C(i,function(o){En(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function gg(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function jl(r,t,e){C(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Nr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&nl[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Bf(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");jl(r,function(p){if(p instanceof Zr){var m=p.style;p.useStyle(W({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},e.style))}else p.useStyle(e.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Kr(d,qr(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Mi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),fr(r,c,f,i.get("disabled"))}function Nf(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var oT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ll(Gn.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:z.color.primary}}}),t})(Gn);function PD(r){r.registerChartView(QC),r.registerSeriesModel(oT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ne(Id,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ld("pictorialBar"))}var ar=fe(),zf=Q,bo=ie,sT=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Se,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=ne(Vf,e,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}Ff(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Wl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=ar(t).pointerEl=new nl[i.type](zf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=ar(t).labelEl=new De(zf(e.label));t.add(i),Gf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=ar(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=ar(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Gf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Si(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){um(u.event)},onmousedown:bo(this._onHandleDragMove,this,0,0),drift:bo(this._onHandleDragMove,this),ondragend:bo(this._onHandleDragEnd,this)}),n.add(a)),Ff(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Rd(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Vf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,wo(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(wo(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(wo(a)),ar(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ns(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r})();function Vf(r,t,e,n){mg(ar(e).lastProp,n)||(ar(e).lastProp=n,t?Ae(e,n,r):(e.stopAnimation(),e.attr(n)))}function mg(r,t){if($(r)&&$(t)){var e=!0;return C(t,function(n,a){e=e&&mg(r[a],n)}),!!e}else return r===t}function Gf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function wo(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Ff(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function lT(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function uT(r,t,e,n,a){var i=e.get("value"),o=yg(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ai(s.get("padding")||0),u=s.getFont(),c=Fs(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),cT(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ut(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function cT(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function yg(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:li(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),X(o)?i=o.replace("{value}",i):q(o)&&(i=o(s))}return i}function _g(r,t,e){var n=vi();return zv(n,n,e.rotation),cm(n,n,e.position),el([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function fT(r,t,e,n,a,i){var o=Wt.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),uT(t,n,a,i,{position:_g(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function hT(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var dT=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=Wf(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=lT(i),v=pT[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=ci(l.getRect(),a);fT(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=ci(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=_g(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Wf(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t})(sT);function Wf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var pT={line:function(r,t,e){var n=vT([t,e[0]],[t,e[1]],Hf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:hT([t-n/2,e[0]],[n,a],Hf(r))}}};function Hf(r){return r.dim==="x"?0:1}var gT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:z.color.border,width:1,type:"dashed"},shadowStyle:{color:z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:z.color.neutral00,padding:[5,7,5,7],backgroundColor:z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:z.color.accent40,throttle:40}},t})(ae),_t=fe(),mT=C;function Sg(r,t,e){if(!ye.node){var n=t.getZr();_t(n).records||(_t(n).records={}),yT(n,t);var a=_t(n).records[r]||(_t(n).records[r]={});a.handler=e}}function yT(r,t){if(_t(r).initialized)return;_t(r).initialized=!0,e("click",ne(Uf,"click")),e("mousemove",ne(Uf,"mousemove")),e("globalout",ST);function e(n,a){r.on(n,function(i){var o=xT(t);mT(_t(r).records,function(s){s&&a(s,i,o.dispatchAction)}),_T(o.pendings,t)})}}function _T(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function ST(r,t,e){r.handler("leave",null,e)}function Uf(r,t,e,n){t.handler(r,e,n)}function xT(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Is(r,t){if(!ye.node){var e=t.getZr(),n=(_t(e).records||{})[r];n&&(_t(e).records[r]=null)}}var bT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Sg("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Is("axisPointer",n)},t.prototype.dispose=function(e,n){Is("axisPointer",n)},t.type="axisPointer",t})(Ge);function xg(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=cr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var Yf=fe();function wT(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ie(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Fa(a)&&(a=xg({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Fa(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Fa(a),h={},v={},d={list:[],map:{}},p={showPointer:ne(TT,v),showTooltip:ne(DT,d)};C(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);C(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,w=LT(u,S);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Xf(S,T,p,!1,h)}})});var m={};return C(c,function(g,y){var _=g.linkGroup;_&&!v[y]&&C(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,Zf(S),Zf(g)))),m[g.key]=w}})}),C(m,function(g,y){Xf(c[y],g,p,!0,h)}),AT(v,c,h),MT(d,a,r,o),IT(c,o,e),h}}function Xf(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=CT(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&W(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function CT(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.indicesOfNearest(n,c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),C(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function TT(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function DT(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Xn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function AT(r,t,e){var n=e.axesInfo=[];C(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function MT(r,t,e,n){if(Fa(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function IT(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Yf(n)[a]||{},o=Yf(n)[a]={};C(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&C(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];C(i,function(u,c){!o[c]&&l.push(u)}),C(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function LT(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Zf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Fa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function bg(r){Zp.registerAxisPointerClass("CartesianAxisPointer",dT),r.registerComponentModel(gT),r.registerComponentView(bT),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Jw(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wT)}function kD(r){xt(qp),xt(bg)}var $f=["x","y","radius","angle","single"],PT=["cartesian2d","polar","singleAxis"];function kT(r){var t=r.get("coordinateSystem");return ue(PT,t)>=0}function Er(r){return r+"Axis"}function RT(r,t){var e=Z(),n=[],a=Z();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var Co=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),ET=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Kf(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Kf(e);J(this.option,e,!0),J(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=Z(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return C($f,function(a){var i=this.getReferringComponents(Er(a),ty);if(i.specified){n=!0;var o=new Co;C(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Co;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&C(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&C($f,function(u){if(i){var c=a.findComponents({mainType:Er(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Co;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Er(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){C(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Er(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;C(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else kr(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});kr(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;kr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Bt(n[0]+o,n,[0,100],!0):i!=null&&(o=Bt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=Wv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r})();function VT(r,t,e){var n=[1/0,-1/0];kr(e,function(o){cw(n,o.getData(),t)});var a=r.getAxisModel(),i=Ap(a.axis.scale,a,n).calculate();return[i.min,i.max]}var GT={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Er(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new zT(a,i,s,r),e.push(o.__dzAxisProxy))});var n=Z();return C(e,function(a){C(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function FT(r){r.registerAction("dataZoom",function(t,e){var n=RT(e,t);C(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var jf=!1;function WT(r){jf||(jf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,GT),FT(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function HT(r){r.registerComponentModel(OT),r.registerComponentView(NT),WT(r)}var Je=(function(){function r(){}return r})(),wg={};function vn(r,t){wg[r]=t}function Cg(r){return wg[r]}var UT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;C(this.option.feature,function(n,a){var i=Cg(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),J(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:z.size.m,itemSize:15,itemGap:z.size.s,showTitle:!0,iconStyle:{borderColor:z.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:z.color.accent50}},tooltip:{show:!1,position:"bottom"}},t})(ae);function Tg(r,t){var e=Ai(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new de({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var YT=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];C(u,function(y,_){f.push(_)}),new Nn(this._featureNames||[],f).add(h).update(h).remove(ne(h,null)).execute(),this._featureNames=f;function h(y,_){var S=f[y],b=f[_],x=u[S],w=new he(x,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(XT(S))T={onclick:w.option.onclick,featureName:S};else{var D=Cg(S);if(!D)return;T=new D}c[S]=T}else if(T=c[b],!T)return;T.uid=ra("toolbox-feature"),T.model=w,T.ecModel=n,T.api=a;var M=T instanceof Je;if(!S&&b){M&&T.dispose&&T.dispose(n,a);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(n,a);return}v(w,T,S),w.setIconStatus=function(A,L){var I=this.option,P=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[A]=L,P[A]&&(L==="emphasis"?zr:Vr)(P[A])},T instanceof Je&&T.render&&T.render(w,n,a,i)}function v(y,_,S){var b=y.getModel("iconStyle"),x=y.getModel(["emphasis","iconStyle"]),w=_ instanceof Je&&_.getIcons?_.getIcons():y.get("icon"),T=y.get("title")||{},D,M;X(w)?(D={},D[S]=w):D=w,X(T)?(M={},M[S]=T):M=T;var A=y.iconPaths={};C(D,function(L,I){var P=Si(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(b.getItemStyle());var k=P.ensureState("emphasis");k.style=x.getItemStyle();var E=new De({style:{text:M[I],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:_h({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),ea({el:P,componentModel:e,itemName:I,formatterParamsExtra:{title:M[I]}}),P.__title=M[I],P.on("mouseover",function(){var U=x.getItemStyle(),R=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:x.get("textFill")||U.fill||U.stroke||z.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),P.setTextConfig({position:x.get("textPosition")||R}),E.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(y.get(["iconStatus",I])==="emphasis"?zr:Vr)(P),o.add(P),P.on("click",ie(_.onclick,_,n,a,I)),A[I]=P})}var d=na(e,a).refContainer,p=e.getBoxLayoutParams(),m=e.get("padding"),g=ct(p,d,m);Br(e.get("orient"),o,e.get("itemGap"),g.width,g.height),o_(o,p,d,m),o.add(Tg(o.getBoundingRect(),e)),l||o.eachChild(function(y){var _=y.__title,S=y.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=y.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!q(w)&&_){var T=w.style||(w.style={}),D=Fs(_,De.makeFont(T)),M=y.x+o.x,A=y.y+o.y+s,L=!1;A+D.height>a.getHeight()&&(b.position="top",L=!0);var I=L?-5-D.height:s+10;M+D.width/2>a.getWidth()?(b.position=["100%",I],T.align="right"):M-D.width/2<0&&(b.position=[0,I],T.align="left")}})},t.prototype.updateView=function(e,n,a,i){C(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){C(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){C(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t})(Ge);function XT(r){return r.indexOf("my")===0}var ZT=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||z.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ye.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:z.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t})(Je),Qf="__ec_magicType_stack__",$T=[["line","bar"],["stack"]],KT=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return C(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Jf[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Jf[a](h,v,f,i);d&&(oe(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};C($T,function(f){ue(f,a)>=0&&C(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=J({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t})(Je),Jf={line:function(r,t,e,n){if(r==="bar")return J({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return J({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Qf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),J({id:t,stack:a?"":Qf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Pi=new Array(60).join("-"),Xr=" ";function qT(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jT(r){var t=[];return C(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(v){return v.name})),l=[a.model.getCategories()];C(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Xr)],c=0;c=0)return!0}var Ls=new RegExp("["+Xr+"]+","g");function t1(r){for(var t=r.split(/\n+/g),e=fi(t.shift()).split(Ls),n=[],a=Y(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function s1(r){var t=Ql(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return Dg(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function l1(r){Ag(r).snapshots=null}function u1(r){return Ql(r).length}function Ql(r){var t=Ag(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var c1=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){l1(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t})(Je);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var f1=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mg=(function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=ev(e,t);C(v1,function(o,s){(!n||!n.include||ue(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=To[n.brushType](0,i,a);n.__rangeOffset={offset:av[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){C(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&C(i.coordSyses,function(o){var s=To[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){C(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=To[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?av[n.brushType](i.values,o.offset,h1(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:kC(a),isTargetByCursor:EC(a,t,n.coordSysModel),getLinearBrushOtherExtent:RC(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ue(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=ev(e,t),i=0;ir[1]&&r.reverse(),r}function ev(r,t){return xn(r,t,{includeMainTypes:f1})}var v1={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Z(),o={},s={};!e&&!n&&!a||(C(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];C(u.getCartesians(),function(f,h){(ue(e,f.getAxis("x").model)>=0||ue(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:rv.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){C(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:rv.geo})})}},tv=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],rv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Js(r)),t}},To={lineX:ne(nv,0),lineY:ne(nv,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Ps([a[0],i[0]]),Ps([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function nv(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Ps(Y([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var av={lineX:ne(iv,0),lineY:ne(iv,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function iv(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function h1(r,t){var e=ov(r),n=ov(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ov(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var ks=C,d1=jm("toolbox-dataZoom_"),p1=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new wC(a.getZr()),this._brushController.on("brush",ie(this._onBrush,this)).mount()),y1(e,n,this,i,a),m1(e,n)},t.prototype.onclick=function(e,n,a){g1[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Mg(Jl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),o1(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Qp(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];ks(e,function(a,i){n.push(Q(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:z.color.backgroundTint}};return n},t})(Je),g1={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(s1(this.ecModel))}};function Jl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function m1(r,t){r.setIconStatus("back",u1(t)>1?"emphasis":"normal")}function y1(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Mg(Jl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}vx("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=Jl(n),o=xn(r,i);ks(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ks(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:d1+u+f};h[c]=f,a.push(h)}return a});function RD(r){r.registerComponentModel(UT),r.registerComponentView(YT),vn("saveAsImage",ZT),vn("magicType",KT),vn("dataView",a1),vn("dataZoom",p1),vn("restore",c1),xt(HT)}var _1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:z.color.tertiary,fontSize:14}},t})(ae);function Ig(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Lg(r){if(ye.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function D1(r,t,e){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return e&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+r+"s "+n,i+=(i.length?",":"")+(ye.transformSupported?""+eu+a:",left"+a+",top"+a)),b1+":"+i}function sv(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ye.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ye.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+eu+":"+o+";":[["top",0],["left",0],[Pg,o]]}function A1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var a=j(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),C(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function M1(r,t,e,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=dd(r,"html"),v=u+"px "+c+"px "+s+"px "+l;return a.push("box-shadow:"+v),t&&i>0&&a.push(D1(i,e,n)),o&&a.push("background-color:"+o),C(["width","color","radius"],function(d){var p="border-"+d,m=ad(p),g=r.get(m);g!=null&&a.push(p+":"+g+(d==="color"?"":"px"))}),a.push(A1(f)),h!=null&&a.push("padding:"+Ai(h).join("px ")+"px"),a.join(";")+";"}function lv(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&vm(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var I1=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ye.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(X(i)?document.querySelector(i):Oo(i)?i:q(i)&&i(t.getDom()));lv(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();fm(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=x1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=w1+M1(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+sv(i[0],i[1],!0)+("border-color:"+vr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(X(i)&&n.get("trigger")==="item"&&!Ig(n)&&(s=T1(n,a,i)),X(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ye.node||!a.getDom())){var o=fv(i,a);this._ticket="";var s=i.dataByCoordSys,l=B1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=P1;c.x=i.x,c.y=i.y,c.update(),ee(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=xg(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(fv(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=hn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=ee(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;yn(a,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(ee(c).dataIndex!=null?l=c:ee(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ie(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hn([n.tooltipOption],i),l=this._renderMode,u=[],c=Vn("section",{blocks:[],noHeader:!0}),f=[],h=new Zi;C(e,function(y){C(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=yg(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=Vn("section",{header:x,noHeader:!qn(x),sortBlocks:!0,blocks:[]});c.blocks.push(w),C(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,A=D.getDataParams(M);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=li(S.axis,{value:b}),A.axisValueLabel=x,A.marker=h.makeTooltipMarker("item",vr(A.color),l);var L=$u(D.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=hn([D],i).get("valueFormatter");w.blocks.push(P?W({valueFormatter:P},I):I)}L.text&&f.push(L.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=Ju(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?` + +`:"
",g=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=ee(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=hn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,f),y=new Zi;g.marker=y.makeTooltipMarker("item",vr(g.color),v);var _=$u(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?Ju(b?W({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=ee(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(X(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Q(l),l.content=Ne(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=e.positionDefault,d=hn(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),m=Math.random()+"",g=new Zi;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(h)if(X(h)){var m=e.ecModel.get("useUTC"),g=N(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=Di(g.axisValue,v,m)),v=id(v,a,!0)}else if(q(h)){var _=ie(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i,o){if(a==="axis"||N(n))return{color:i||o};if(!N(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),q(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),N(n))a=se(n[0],u),i=se(n[1],c);else if($(n)){var p=n;p.width=f[0],p.height=f[1];var m=ct(p,{width:u,height:c});a=m.x,i=m.y,h=null,v=null}else if(X(n)&&l){var g=O1(n,d,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=R1(a,i,o,u,c,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=vv(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=vv(v)?f[1]/2:v==="bottom"?f[1]:0),Ig(e)){var g=E1(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&C(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&C(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&C(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&C(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ye.node||!n.getDom()||(ns(this,"_updatePosition"),this._tooltipContent.dispose(),Is("itemTooltip",n))},t.type="tooltip",t})(Ge);function hn(r,t,e){var n=t.ecModel,a;e?(a=new he(e,n,n),a=new he(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof he&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(a=new he(o,a,n)))}return a}function fv(r,t){return r.dispatchAction||ie(t.dispatchAction,t)}function R1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function E1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function O1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function vv(r){return r==="center"||r==="middle"}function B1(r,t,e){var n=Ys(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Jn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ee(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function ED(r){xt(bg),r.registerComponentModel(_1),r.registerComponentView(k1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},St),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},St)}var N1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:z.size.m,backgroundColor:z.color.transparent,borderColor:z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:z.color.primary},subtextStyle:{fontSize:12,color:z.color.quaternary}},t})(ae),z1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=j(e.get("textBaseline"),e.get("textVerticalAlign")),c=new De({style:Ut(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new De({style:Ut(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!p&&!m,d&&c.on("click",function(){Yu(d,"_"+e.get("target"))}),p&&v.on("click",function(){Yu(p,"_"+e.get("subtarget"))}),ee(c).eventData=ee(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=na(e,a),S=ct(y,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new de({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t})(Ge);function OD(r){r.registerComponentModel(N1),r.registerComponentView(z1)}var V1=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Rs=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),N(n)&&C(n,function(i,o){X(i)&&(i={type:i}),n[o]=J(i,V1(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:z.size.m,align:"auto",backgroundColor:z.color.transparent,borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:z.color.disabled,inactiveBorderColor:z.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:z.color.tertiary,borderWidth:1,borderColor:z.color.border},emphasis:{selectorLabel:{show:!0,color:z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ae),Lr=ne,Es=C,Pa=Se,Rg=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Pa),this.group.add(this._selectorGroup=new Pa),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=na(e,a).refContainer,f=e.getBoxLayoutParams(),h=e.get("padding"),v=ct(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=ct(oe({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tg(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=Z(),f=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Es(n.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var y=new Pa;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(g)[0];if(!c.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,g,p,d,n,e,b,w,x,f,i);T.on("click",Lr(hv,g,null,i,v)).on("mouseover",Lr(Os,_.name,null,i,v)).on("mouseout",Lr(Bs,_.name,null,i,v)),a.ssr&&T.eachChild(function(D){var M=ee(D);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),h&&T.eachChild(function(D){m.packEventData(D,n,_,p,g)}),c.set(g,!0)}else a.eachRawSeries(function(D){var M=this;if(!c.get(g)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(g))return;var L=A.indexOfName(g),I=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),k=dm(I.fill);k&&k[3]===0&&(k[3]=.2,I=W(W({},I),{fill:pm(k,"rgba")}));var E=this._createItem(D,g,p,d,n,e,{},I,P,f,i);E.on("click",Lr(hv,null,g,i,v)).on("mouseover",Lr(Os,null,g,i,v)).on("mouseout",Lr(Bs,null,g,i,v)),a.ssr&&E.eachChild(function(U){var R=ee(U);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&E.eachChild(function(U){M.packEventData(U,n,D,p,g)}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(e,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ee(e).eventData=s},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Es(e,function(u){var c=u.type,f=new De({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Kr(f,{normal:h,emphasis:v},{defaultText:u.title}),Fo(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=G1(c,i,l,u,v,m,h),b=new Pa,x=i.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(F1({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),A=n;X(M)&&M?A=M.replace("{name}",n??""):q(M)&&(A=M(n));var L=m?x.getTextColor():i.get("inactiveColor");b.add(new De({style:Ut(x,{text:A,x:T,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new de({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ea({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(k){k.silent=!0}),I.silent=!f,this.getContentGroup().add(b),Fo(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Br(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Br("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[m]+d:f[p]+=h[m]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+d+h[m],_[g]=Math.max(c[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ge);function G1(r,t,e,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Es(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:os(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function F1(r){var t=r.icon||"roundRect",e=Xt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=z.color.neutral00,e.style.lineWidth=2),e}function hv(r,t,e,n){Bs(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Os(r,t,e,n)}function Eg(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],m=[-v.x,-v.y];n||(m[i]=c[u]);var g=[0,0],y=[-d.x,-d.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new de({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ae(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Do[o],l=Ao[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(c[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(c[m]),(!_||!b(y,_.s))&&g.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t})(Rg);function X1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Z1(r){xt(Og),r.registerComponentModel(U1),r.registerComponentView(Y1),X1(r)}function BD(r){xt(Og),xt(Z1)}var $1={label:{enabled:!0},decal:{show:!1}},mv=fe(),K1={};function q1(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Q($1);J(n.label,r.getLocaleModel().get("aria"),!1),J(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=Z();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),mv(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(q(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Zu(h.ecModel,h.name,K1,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=mv(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=Zu(h.ecModel,w,m,g),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var w=b?W(W({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=oe(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?f.get(["series","multiple",L]):f.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),U=f.get(["data","excludeDimensionId"]),R=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q1=(function(){function r(t){var e=this._condVal=X(t)?new RegExp(t):gm(t)?t:null;if(e==null){var n="";re(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):ce(e)?this._condVal.test(t+""):!1},r})(),J1=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),eD=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var vD={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Sv(r)&&(u=r,c=t),Sv(t)&&(u=t,c=r);function f(g,y,_,S,b){var x=g.many,w=g.one;if(x.length===1&&!b){var T=y?x[0]:w,D=y?w:x[0];if(mm(T))f({many:[T],one:D},!0,_,S,!0);else{var M=s?oe({delay:s(_,S)},l):l;ym(T,D,M),i(T,D,T,D,M)}}else for(var A=oe({dividePath:vD[e],individualDelay:s&&function(U,R,O,V){return s(U+_,S)}},l),L=y?_m(x,w,A):Sm(w,x,A),I=L.fromIndividuals,P=L.toIndividuals,k=I.length,E=0;Et.length,v=u?xv(c,u):xv(h?t:r,[h?r:t]),d=0,p=0;pNg))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Ce&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function Dv(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Av(r){return N(r)?r.sort().join(","):r}function Ot(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function _D(r,t){var e=Z(),n=Z(),a=Z();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Dv(i),c=Av(u);n.set(c,{dataGroupId:s,data:l}),N(u)&&C(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),C(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Dv(i),u=Av(l),c=n.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ot(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Ot(s),data:s}]});else if(N(l)){var f=[];C(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Ot(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Ot(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ot(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Ot(s)})}}}}),e}function Mv(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ot(t.oldData[s]),groupIdDim:o.dimension})}),C(_e(r.to),function(o){var s=Mv(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ot(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&zg(a,i,n)}function GD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){C(_e(n.seriesTransition),function(a){C(_e(a.to),function(i){for(var o=n.updatedSeries,s=0;s40&&(u=Math.ceil(a/40));for(var c=0;c{i.contains(P(s))||c(s)};return{mousemove:d,touchstart:d}}else if(r==="clickoutside"){let d=!1;const s=b=>{d=!i.contains(P(b))},u=b=>{d&&(i.contains(P(b))||c(b))};return{mousedown:s,mouseup:u,touchstart:s,touchend:u}}return console.error(`[evtd/create-trap-handler]: name \`${r}\` is invalid. This could be a bug of evtd.`),{}}function U(r,i,c){const d=q[r];let s=d.get(i);s===void 0&&d.set(i,s=new WeakMap);let u=s.get(c);return u===void 0&&s.set(c,u=A(r,i,c)),u}function B(r,i,c,d){if(r==="mousemoveoutside"||r==="clickoutside"){const s=U(r,i,c);return Object.keys(s).forEach(u=>{J(u,document,s[u],d)}),!0}return!1}function F(r,i,c,d){if(r==="mousemoveoutside"||r==="clickoutside"){const s=U(r,i,c);return Object.keys(s).forEach(u=>{K(u,document,s[u],d)}),!0}return!1}function G(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const r=new WeakMap,i=new WeakMap;function c(){r.set(this,!0)}function d(){r.set(this,!0),i.set(this,!0)}function s(n,e,t){const o=n[e];return n[e]=function(){return t.apply(n,arguments),o.apply(n,arguments)},n}function u(n,e){n[e]=Event.prototype[e]}const b=new WeakMap,W=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function x(){var n;return(n=b.get(this))!==null&&n!==void 0?n:null}function O(n,e){W!==void 0&&Object.defineProperty(n,"currentTarget",{configurable:!0,enumerable:!0,get:e??W.get})}const T={bubble:{},capture:{}},H={};function z(){const n=function(e){const{type:t,eventPhase:o,bubbles:a}=e,p=P(e);if(o===2)return;const w=o===1?"capture":"bubble";let f=p;const l=[];for(;f===null&&(f=window),l.push(f),f!==window;)f=f.parentNode||null;const h=T.capture[t],v=T.bubble[t];if(s(e,"stopPropagation",c),s(e,"stopImmediatePropagation",d),O(e,x),w==="capture"){if(h===void 0)return;for(let g=l.length-1;g>=0&&!r.has(e);--g){const m=l[g],k=h.get(m);if(k!==void 0){b.set(e,m);for(const E of k){if(i.has(e))break;E(e)}}if(g===0&&!a&&v!==void 0){const E=v.get(m);if(E!==void 0)for(const $ of E){if(i.has(e))break;$(e)}}}}else if(w==="bubble"){if(v===void 0)return;for(let g=0;gp(e))};return n.displayName="evtdUnifiedWindowEventHandler",n}const j=z(),M=I();function D(n,e){const t=T[n];return t[e]===void 0&&(t[e]=new Map,window.addEventListener(e,j,n==="capture")),t[e]}function C(n){return H[n]===void 0&&(H[n]=new Set,window.addEventListener(n,M)),H[n]}function L(n,e){let t=n.get(e);return t===void 0&&n.set(e,t=new Set),t}function y(n,e,t,o){const a=T[e][t];if(a!==void 0){const p=a.get(n);if(p!==void 0&&p.has(o))return!0}return!1}function N(n,e){const t=H[n];return!!(t!==void 0&&t.has(e))}function _(n,e,t,o){let a;if(typeof o=="object"&&o.once===!0?a=h=>{S(n,e,a,o),t(h)}:a=t,B(n,e,a,o))return;const w=o===!0||typeof o=="object"&&o.capture===!0?"capture":"bubble",f=D(w,n),l=L(f,e);if(l.has(a)||l.add(a),e===window){const h=C(n);h.has(a)||h.add(a)}}function S(n,e,t,o){if(F(n,e,t,o))return;const p=o===!0||typeof o=="object"&&o.capture===!0,w=p?"capture":"bubble",f=D(w,n),l=L(f,e);if(e===window&&!y(e,p?"bubble":"capture",n,t)&&N(n,t)){const v=H[n];v.delete(t),v.size===0&&(window.removeEventListener(n,M),H[n]=void 0)}l.has(t)&&l.delete(t),l.size===0&&f.delete(e),f.size===0&&(window.removeEventListener(n,j,w==="capture"),T[w][n]=void 0)}return{on:_,off:S}}const{on:J,off:K}=G();export{K as a,J as o}; diff --git a/js/evtd@0.2.4-CI_DDEu_.js.gz b/js/evtd@0.2.4-CI_DDEu_.js.gz deleted file mode 100644 index e58ce410..00000000 Binary files a/js/evtd@0.2.4-CI_DDEu_.js.gz and /dev/null differ diff --git a/js/evtd@0.2.4-w6UMCrcr.js b/js/evtd@0.2.4-w6UMCrcr.js new file mode 100644 index 00000000..6e20f685 --- /dev/null +++ b/js/evtd@0.2.4-w6UMCrcr.js @@ -0,0 +1 @@ +function P(o){return o.composedPath()[0]}const q={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function A(o,s,c){if(o==="mousemoveoutside"){const d=a=>{s.contains(P(a))||c(a)};return{mousemove:d,touchstart:d}}else if(o==="clickoutside"){let d=!1;const a=b=>{d=!s.contains(P(b))},u=b=>{d&&(s.contains(P(b))||c(b))};return{mousedown:a,mouseup:u,touchstart:a,touchend:u}}return{}}function U(o,s,c){const d=q[o];let a=d.get(s);a===void 0&&d.set(s,a=new WeakMap);let u=a.get(c);return u===void 0&&a.set(c,u=A(o,s,c)),u}function B(o,s,c,d){if(o==="mousemoveoutside"||o==="clickoutside"){const a=U(o,s,c);return Object.keys(a).forEach(u=>{J(u,document,a[u],d)}),!0}return!1}function F(o,s,c,d){if(o==="mousemoveoutside"||o==="clickoutside"){const a=U(o,s,c);return Object.keys(a).forEach(u=>{K(u,document,a[u],d)}),!0}return!1}function G(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const o=new WeakMap,s=new WeakMap;function c(){o.set(this,!0)}function d(){o.set(this,!0),s.set(this,!0)}function a(n,e,t){const r=n[e];return n[e]=function(){return t.apply(n,arguments),r.apply(n,arguments)},n}function u(n,e){n[e]=Event.prototype[e]}const b=new WeakMap,W=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function x(){var n;return(n=b.get(this))!==null&&n!==void 0?n:null}function O(n,e){W!==void 0&&Object.defineProperty(n,"currentTarget",{configurable:!0,enumerable:!0,get:e??W.get})}const T={bubble:{},capture:{}},H={};function z(){const n=function(e){const{type:t,eventPhase:r,bubbles:i}=e,p=P(e);if(r===2)return;const w=r===1?"capture":"bubble";let f=p;const l=[];for(;f===null&&(f=window),l.push(f),f!==window;)f=f.parentNode||null;const h=T.capture[t],v=T.bubble[t];if(a(e,"stopPropagation",c),a(e,"stopImmediatePropagation",d),O(e,x),w==="capture"){if(h===void 0)return;for(let g=l.length-1;g>=0&&!o.has(e);--g){const m=l[g],k=h.get(m);if(k!==void 0){b.set(e,m);for(const E of k){if(s.has(e))break;E(e)}}if(g===0&&!i&&v!==void 0){const E=v.get(m);if(E!==void 0)for(const $ of E){if(s.has(e))break;$(e)}}}}else if(w==="bubble"){if(v===void 0)return;for(let g=0;gp(e))};return n.displayName="evtdUnifiedWindowEventHandler",n}const j=z(),M=I();function D(n,e){const t=T[n];return t[e]===void 0&&(t[e]=new Map,window.addEventListener(e,j,n==="capture")),t[e]}function C(n){return H[n]===void 0&&(H[n]=new Set,window.addEventListener(n,M)),H[n]}function L(n,e){let t=n.get(e);return t===void 0&&n.set(e,t=new Set),t}function y(n,e,t,r){const i=T[e][t];if(i!==void 0){const p=i.get(n);if(p!==void 0&&p.has(r))return!0}return!1}function N(n,e){const t=H[n];return!!(t!==void 0&&t.has(e))}function _(n,e,t,r){let i;if(typeof r=="object"&&r.once===!0?i=h=>{S(n,e,i,r),t(h)}:i=t,B(n,e,i,r))return;const w=r===!0||typeof r=="object"&&r.capture===!0?"capture":"bubble",f=D(w,n),l=L(f,e);if(l.has(i)||l.add(i),e===window){const h=C(n);h.has(i)||h.add(i)}}function S(n,e,t,r){if(F(n,e,t,r))return;const p=r===!0||typeof r=="object"&&r.capture===!0,w=p?"capture":"bubble",f=D(w,n),l=L(f,e);if(e===window&&!y(e,p?"bubble":"capture",n,t)&&N(n,t)){const v=H[n];v.delete(t),v.size===0&&(window.removeEventListener(n,M),H[n]=void 0)}l.has(t)&&l.delete(t),l.size===0&&f.delete(e),f.size===0&&(window.removeEventListener(n,j,w==="capture"),T[w][n]=void 0)}return{on:_,off:S}}const{on:J,off:K}=G();export{K as a,J as o}; diff --git a/js/evtd@0.2.4-w6UMCrcr.js.gz b/js/evtd@0.2.4-w6UMCrcr.js.gz new file mode 100644 index 00000000..bf2713d6 Binary files /dev/null and b/js/evtd@0.2.4-w6UMCrcr.js.gz differ diff --git a/js/flow-demo-C04s4ly-.js b/js/flow-demo-C04s4ly-.js new file mode 100644 index 00000000..67e5904c --- /dev/null +++ b/js/flow-demo-C04s4ly-.js @@ -0,0 +1 @@ +import{N as l,R as n,O as s}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import{e as d,N as m,a as u,al as f,T as c}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as g,d as t,l as y}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as p}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const wt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:i}]=l(),o=p(),e=p({readonly:!1}),a=()=>{window.$message.info("获取实例成功,请在 console 中查看")};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:e}},render(){const{register:r,flowDataRef:i,settingRef:o}=this;return t(d,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(n,null,{default:()=>[t(u,{xGap:4,yGap:18,cols:4},{default:()=>[t(f,{label:"禁用流程图"},{default:()=>[t(c,{value:o.readonly,"onUpdate:value":e=>o.readonly=e},null)]})]})]})]}),t(m,null,{default:()=>[t(s,{height:500,onRegister:r,data:i,readonly:o.readonly},null)]})]})}});export{wt as default}; diff --git a/js/flow-demo-C04s4ly-.js.gz b/js/flow-demo-C04s4ly-.js.gz new file mode 100644 index 00000000..465a3b65 Binary files /dev/null and b/js/flow-demo-C04s4ly-.js.gz differ diff --git a/js/flow-demo-CSAWIMUQ.js b/js/flow-demo-CSAWIMUQ.js deleted file mode 100644 index b8fd584e..00000000 --- a/js/flow-demo-CSAWIMUQ.js +++ /dev/null @@ -1 +0,0 @@ -import{N as l,R as n,O as s}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import{e as d,N as m,a as u,al as f,J as c}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as g,d as t,l as y}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const wt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=l(),o=p(),i=p({readonly:!1}),a=()=>{e(),window.$message.info("获取实例成功,请在 console 中查看")};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(d,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(n,null,{default:()=>[t(u,{xGap:4,yGap:18,cols:4},{default:()=>[t(f,{label:"禁用流程图"},{default:()=>[t(c,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(s,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{wt as default}; diff --git a/js/flow-demo-CSAWIMUQ.js.gz b/js/flow-demo-CSAWIMUQ.js.gz deleted file mode 100644 index d9b24b69..00000000 Binary files a/js/flow-demo-CSAWIMUQ.js.gz and /dev/null differ diff --git a/js/hooks-CkuihJ2J.js b/js/hooks-CkuihJ2J.js deleted file mode 100644 index 0ec52b72..00000000 --- a/js/hooks-CkuihJ2J.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-jscFZbs8.js","js/dayjs@1.11.13-Dcmsq1le.js","js/classnames@2.5.1-Dfc4g_b4.js","js/print-js@1.6.0-DO6wNZql.js","js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js","js/@vue_reactivity@3.5.22-BvBzZonp.js","js/@vue_shared@3.5.22-Dikn8ojA.js","js/@vue_runtime-core@3.5.22-0v1MMfjG.js","js/lodash-es@4.17.21-UVJw7vmf.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-CSmfy_M5.js","js/jsbarcode@3.11.6-_Q8BloHp.js","js/@logicflow_core@2.0.10-9WfPQnfd.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js","js/preact@10.25.4-CrjB-ZC0.js","js/mobx@5.15.7-DLDjekon.js","js/uuid@9.0.1-CtRu48qb.js","js/mousetrap@1.6.5-OHXNXF9n.js","js/mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js","css/@logicflow_core@2.0-Z6H4Q2Ml.css","js/currency.js@2.0.4-9OAR_aOO.js","js/crypto-js@4.2.0-BC7ZohPc.js","js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js","js/date-fns@3.6.0-BMcLdxE-.js","js/seemly@0.3.9-DfXeAbNj.js","js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js","js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js","js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js","js/async-validator@4.2.5-9PlIezaS.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js","js/@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js","js/utils-BPTDWjJB.js","js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js","js/destr@2.0.5-BPvN1X9m.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js","js/html-to-image@1.11.13-C6a6vdc2.js","js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js","js/interactjs@1.10.27-BJB5VkCx.js","js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js","js/@intlify_shared@9.13.1-CM6R_CZ5.js","js/@intlify_core-base@9.13.1-BNWv53cz.js","js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js","js/echarts@6.0.0-BTrF8XjC.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zrender@6.0.0-Dzb6jg8s.js","js/zh-CN-B2ZX_Lvi.js","js/index-Doj_j7n-.js","js/index-DhKYIZ2t.js","css/index-BPwDcGFh.css","js/index-DX3k6HIU.js","js/instance-DHBzlXKU.js","js/axios@1.10.0-Dq7h7Pqt.js","css/index-C60eEB5E.css","js/barcode-demo-DioSkHms.js","js/index-CNjGdIq4.js","js/index-BCkJ9CaF.js","js/index-Dr3r3fQI.js","js/draggable-card-W9uWQrcM.js","js/index-D59wuniw.js","css/index-D9y7XLpS.css","js/flow-demo-CSAWIMUQ.js","js/index-uwe6HViu.js","js/index-Db0GGVvm.js","js/index-BVCgCb1q.js","js/index-CibMIKN_.js","js/index-DS8LyikS.js","js/index-CKWrGOHG.js","js/index-BnMsYwPn.js","js/index-DzPBaQ_Z.js","js/index-BgiN69QR.js","js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js","css/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8-B14JuMU_.css","js/ray-dCjhX_JK.js","js/index-CPot1G4P.js","css/index-C7SBslZD.css","js/index-C7ZPiBNs.js","js/index-CEtXx0V-.js","js/index-CyqiW0jN.js","css/index-CCBgYJcK.css","js/index-C-wONugf.js","js/index-CxsLSYpq.js","css/index-Bit-kagu.css","js/table-auto-height-CrKWbqPv.js","js/mockjs@1.1.0-ege38Uil.js","js/table-pro-demo-B3fUrCSq.js","js/index-qE3vedkr.js","js/index-Bgiz3EGp.js","js/index-BrBEr-DR.js","css/index-DId3lj_V.css","js/index-B1QNREDs.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]); -var co=Object.defineProperty;var po=(e,n,t)=>n in e?co(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Wt=(e,n,t)=>po(e,typeof n!="symbol"?n+"":n,t);import{s as yt,c as ye,m as it,z as Se,q as Mt,w as hn,p as je,A as mo}from"./lodash-es@4.17.21-UVJw7vmf.js";import{d as qt,z as Ht,f as fo,g as go,c as ho,N as Me,a as yo,b as vo,e as L,h as Ke,m as bo,i as yn,u as _o,S as Dt,j as So,k as De,l as wo,n as vn,o as Co,p as Ue,q as To,r as fe,t as Oo,s as bn,v as ko,w as Ao,x as _n,y as ut,A as Gt,B as Sn,C as Po,D as Ro,E as xo,F as oe,G as Eo,H as Yt,I,J as te,K as G,L as Mo,M as zt,O as wn,P as J,Q as Do,R as zo,T as et,U as Io,V as Lo,W as Fo,X as Bo,Y as Vo,Z as Cn,_ as No,$ as Xt}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{o as jo,u as ze,a as Uo,b as $o,c as Tn,d as Ko,e as vt,f as Wo}from"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import{s as ee,k as N,n as ve,h as le,o as qo,y as we,a as On,u as Q}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{n as ne,j as de,m as x,d as r,p as j,q as Ce,T as Ho,t as se,f as O,l as Te,w as We,v as Go,x as It,i as Oe,h as mt,F as Lt,y as kn,z as Yo,A as Xo,C as Jo,D as Ae,E as bt,G as Ve,H as Zo,S as Qo,K as ea,I as Jt,J as q}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import{d as H}from"./dayjs@1.11.13-Dcmsq1le.js";import{p as ta}from"./print-js@1.6.0-DO6wNZql.js";import{u as An}from"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import{b as na}from"./jsbarcode@3.11.6-_Q8BloHp.js";import{L as Zt}from"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{u as Ft,g as Ie,i as ge,s as Re,a as Pt,c as oa,b as ct,d as $,e as ae,q as $e,f as Pn,l as Rn,h as aa,r as be,j as la,k as B,m as dt,n as xn,p as Bt,o as Vt,t as ra,v as Qt,w as ce,x as En,y as sa,z as ia,A as ua,B as ca,C as da}from"./utils-BPTDWjJB.js";import{i as pa}from"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import{d as ft,c as ma}from"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import{t as fa,a as ga,b as ha,c as ya,d as va,e as ba}from"./html-to-image@1.11.13-C6a6vdc2.js";import{u as qe,a as _a,o as Sa,c as wa,b as Ca}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import{T as Mn,a as Ta}from"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import{i as en}from"./interactjs@1.10.27-BJB5VkCx.js";import{c as Oa}from"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import{r as ka,u as Ne,i as Aa,a as Pa,b as Ra,c as xa,d as Ea,e as Ma,f as Da,g as za,h as Ia,j as La,k as Fa,l as Ba,m as Va,n as Na,o as ja,p as Ua,q as $a,s as Ka}from"./echarts@6.0.0-BTrF8XjC.js";import{j as Wa}from"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";const gi=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(yt(t,u,t[u]||{}),yt(t[u],c,a)):yt(t,u,a||{}))}),t},qa="modulepreload",Ha=function(e){return"/ray-template/"+e},tn={},z=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){let s=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),u=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=s(t.map(c=>{if(c=Ha(c),c in tn)return;tn[c]=!0;const p=c.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${m}`))return;const S=document.createElement("link");if(S.rel=p?"stylesheet":qa,p||(S.as="script"),S.crossOrigin="",S.href=c,u&&S.setAttribute("nonce",u),document.head.appendChild(S),p)return new Promise((_,d)=>{S.addEventListener("load",_),S.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},Ga=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ya=async e=>{var t;const n={};for(const o of e){const a=await Ga(Object.assign({"../lang/en-US.ts":()=>z(()=>import("./en-US-jscFZbs8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),"../lang/zh-CN.ts":()=>z(()=>import("./zh-CN-B2ZX_Lvi.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},hi=e=>{switch(e){case"zh-CN":return{locale:Ht,dateLocal:qt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Ht,dateLocal:qt}}},Xa={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},yi={max:5,closable:!1},vi="loading",bi="",K={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appMenuTagOptions:"appMenuTagOptions",appLockScreenPasswordKey:"appLockScreenPasswordKey"},Ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],_e={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgba(18, 18, 18, 1)"}},light:{common:{borderRadius:"4px",baseColor:"rgba(255, 255, 255, 1)"}}},echartTheme:"macarons"},Dn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Za="zh-CN",Qa="zh-CN",el={"zh-CN":"zh-cn","en-US":"en"},tl="zh-cn",_i={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Si={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xe=ee(null),zn=ee(null),nl=["RLogin","ErrorPage","RayTemplateDoc"],tt=[],wi=(e,n)=>{const t=N(0),o=N(0),a=N(!1),{clickOutside:l}={},s=m=>{a.value=m},i=m=>{m.preventDefault(),s(!1),ne().then(()=>{const{clientX:S,clientY:_}=m;t.value=S,o.value=_,s(!0)})};l&&jo(e,m=>{l(m)});const u=ze(e,"contextmenu",i,n),c=ze(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ve(t),y:ve(o),show:ve(a),updateShow:s}},Nt=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){Ft(Nt,e,n,t)}function gt(e){return ve(qo(Nt,e))}function ol(){return{...we(ve(Nt))}}let pe;const al=async()=>{const e=ao(),n=await Ya(Dn);return Oa({locale:e,messages:n,missingWarn:!1,fallbackLocale:Qa})},Ci=async e=>{const n=await al();e.use(n),pe=n},nn=(e,n)=>n,He=e=>{if(!pe)return{t:l=>nn(e,l),locale:l=>{}};const{t:n,...t}=pe.global;return{...t,t:(l,...s)=>l?l.includes(".")?n(nn(e,l),...s):l:"",locale:l=>{pe.mode==="legacy"?pe.global.locale=l:On(pe.global.locale)?pe.global.locale.value=l:pe.global.locale=l}}},V=e=>e,ll={path:"/dashboard",component:()=>z(()=>import("./index-Doj_j7n-.js"),__vite__mapDeps([56,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,57,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,58])),meta:{i18nKey:V("menu.Dashboard"),icon:"dashboard",order:0}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/axios",name:"RAxios",component:()=>z(()=>import("./index-DX3k6HIU.js"),__vite__mapDeps([59,4,5,6,7,8,9,10,2,60,61,1,3,11,12,13,14,15,16,17,18,19,40,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,62])),meta:{i18nKey:V("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"barcode",component:()=>z(()=>import("./barcode-demo-DioSkHms.js"),__vite__mapDeps([63,20,21,2,1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,11,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"/cache-demo",component:()=>z(()=>import("./index-CNjGdIq4.js"),__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.CacheDemo"),icon:"other",order:3}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/context-menu",component:()=>z(()=>import("./index-BCkJ9CaF.js"),__vite__mapDeps([65,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.ContextMenu"),icon:"other",order:2}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/directive",component:()=>z(()=>import("./index-Dr3r3fQI.js"),__vite__mapDeps([66,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{i18nKey:V("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),yl={path:"/draggable-card",component:()=>z(()=>import("./draggable-card-W9uWQrcM.js"),__vite__mapDeps([67,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),bl={path:"/echart",component:()=>z(()=>import("./index-D59wuniw.js"),__vite__mapDeps([68,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,69])),meta:{i18nKey:V("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/flow",component:()=>z(()=>import("./flow-demo-CSAWIMUQ.js"),__vite__mapDeps([70,20,21,2,1,3,4,5,6,7,8,9,10,11,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,12,13,14,15,16,17,18,19,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Flow"),icon:"other",order:2}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Cl={path:"/form",component:()=>z(()=>import("./index-uwe6HViu.js"),__vite__mapDeps([71,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,60,61,40,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/iframe",component:()=>z(()=>import("./index-Db0GGVvm.js"),__vite__mapDeps([72,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Al={path:"/mock-demo",component:()=>z(()=>import("./index-BVCgCb1q.js"),__vite__mapDeps([73,20,21,2,1,3,11,12,13,14,15,8,16,17,18,19,4,5,6,7,9,10,60,61,40,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Rl={path:"/modal-demo",component:()=>z(()=>import("./index-CibMIKN_.js"),__vite__mapDeps([74,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Modal"),icon:"other",order:3}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),st=()=>z(()=>Promise.resolve().then(()=>is),void 0),El={path:"/multi",component:st,meta:{i18nKey:V("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>z(()=>import("./index-DS8LyikS.js"),__vite__mapDeps([75,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:st,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>z(()=>import("./index-CKWrGOHG.js"),__vite__mapDeps([76,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:st,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>z(()=>import("./index-BnMsYwPn.js"),__vite__mapDeps([77,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),Dl={path:"/precision",component:()=>z(()=>import("./index-DzPBaQ_Z.js"),__vite__mapDeps([78,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.CalculatePrecision"),icon:"other",order:2}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Il={path:"/qrcode",component:()=>z(()=>import("./index-BgiN69QR.js"),__vite__mapDeps([79,80,7,5,6,81,82,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{i18nKey:V("menu.QRCode"),icon:"other",order:2}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Fl={path:"rely-about",component:()=>z(()=>import("./index-CPot1G4P.js"),__vite__mapDeps([83,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37,84])),meta:{i18nKey:V("menu.RelyAbout"),icon:"rely",order:999}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Vl={path:"/router-demo",component:st,meta:{i18nKey:V("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>z(()=>import("./index-C7ZPiBNs.js"),__vite__mapDeps([85,20,21,2,1,3,46,7,5,6,11,12,13,14,15,8,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,4,9,10,40,41,42,43,44,45,47,48,49,50,51,52,53,54])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>z(()=>import("./index-CEtXx0V-.js"),__vite__mapDeps([86,46,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),jl={path:"/scroll-reveal",component:()=>z(()=>import("./index-CyqiW0jN.js"),__vite__mapDeps([87,7,5,6,22,23,24,25,26,27,28,29,30,31,32,33,8,34,35,36,37,88])),meta:{i18nKey:V("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),$l={path:"/segment",component:()=>z(()=>import("./index-C-wONugf.js"),__vite__mapDeps([89,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl={path:"/svg-icons",component:()=>z(()=>import("./index-CxsLSYpq.js"),__vite__mapDeps([90,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,91])),meta:{i18nKey:V("menu.SvgIcon"),icon:"other",order:3}},ql=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),Hl={path:"/table-auto-height",name:"RTableAutoHeight",component:()=>z(()=>import("./table-auto-height-CrKWbqPv.js"),__vite__mapDeps([92,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,93,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TableAutoHeight"),icon:"other",order:3,extra:{label:"new"}}},Gl=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"})),Yl={path:"/table-pro",component:()=>z(()=>import("./table-pro-demo-B3fUrCSq.js"),__vite__mapDeps([94,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,60,61,93,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Jl={path:"/table",component:()=>z(()=>import("./index-qE3vedkr.js"),__vite__mapDeps([95,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Zl=Object.freeze(Object.defineProperty({__proto__:null,default:Jl},Symbol.toStringTag,{value:"Module"})),Ql={path:"/template-hooks",component:()=>z(()=>import("./index-Bgiz3EGp.js"),__vite__mapDeps([96,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TemplateHooks"),icon:"other",order:1}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Ql},Symbol.toStringTag,{value:"Module"})),tr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":rl,"/src/router/modules/demo/axios.ts":il,"/src/router/modules/demo/barcode.ts":cl,"/src/router/modules/demo/cache-demo.ts":pl,"/src/router/modules/demo/context-menu.ts":fl,"/src/router/modules/demo/directive.ts":hl,"/src/router/modules/demo/draggable-card.ts":vl,"/src/router/modules/demo/echart.ts":_l,"/src/router/modules/demo/flow.ts":wl,"/src/router/modules/demo/form.ts":Tl,"/src/router/modules/demo/iframe.ts":kl,"/src/router/modules/demo/mock.ts":Pl,"/src/router/modules/demo/modal.ts":xl,"/src/router/modules/demo/multi-menu.ts":Ml,"/src/router/modules/demo/precision.ts":zl,"/src/router/modules/demo/qrcode.ts":Ll,"/src/router/modules/demo/rely.ts":Bl,"/src/router/modules/demo/router-demo.ts":Nl,"/src/router/modules/demo/scroll-reveal.ts":Ul,"/src/router/modules/demo/segment.ts":Kl,"/src/router/modules/demo/svg-icons.ts":ql,"/src/router/modules/demo/table-auto-height.ts":Gl,"/src/router/modules/demo/table-pro.ts":Xl,"/src/router/modules/demo/table.ts":Zl,"/src/router/modules/demo/template-hooks.ts":er});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},nr=e=>e[0]==="/",In=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(nr(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){In(a.children,n,l);continue}else n.push({...a,path:l})}return n},or=e=>Array.isArray(e)?In(ye(e)):[],ar=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),lr=e=>{const{beforeEach:n}=e,{getRootPath:t}=Xe(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=Ie(K.token,"localStorage"),u=Ie(K.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:p}=a;i!==null?o(a,l)?_t(!0):!ge(p,"Symbol")&&p&&nl.includes(p)?s():Zn(c)?o(a,l)?u?s(u):_t(!0):s():_t(!0):o(a,l)?s():s("/")})},_t=(e=!0)=>{const{router:n}=Ut(),{push:t,replace:o}=n,{getRootPath:a}=Xe();Re(K.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},rr=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=xe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},sr=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Ln=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Pt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},ir={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},Fn=()=>ir,Le=ft("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=_e,{locale:t}=He(),{locale:o}=Fs(),a=le({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:ao(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...ye(Fn())}),l=c=>{t(c),o(c),Re(K.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,p=.85)=>{const m=oa(c,p),S={primaryColor:c,primaryColorHover:m,primaryColorPressed:c,primaryColorSuppl:m},{rayTemplateThemePrimaryColor:_,rayTemplateThemePrimaryFadeColor:d}=Xa,b=document.documentElement;a.primaryColorOverride.common=S,b.style.setProperty(_,c),b.style.setProperty(d,m)},i=(c,p,m)=>{Ft(a,c,p,m)},u=c=>{const p=document.documentElement;i("colorWeakness",c),ct(p,{filter:c?"invert(100%)":""})};return de(()=>{var c;a._appTheme?a.primaryColorOverride=it({},a.primaryColorOverride,_e.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=it({},a.primaryColorOverride,_e.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:K.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Bn={...Se(fo,["onSubmit"]),loading:{type:Boolean,default:!1},loadingDescription:{type:String,default:void 0},autocomplete:{type:String,default:"off"},submitWhenEnter:{type:Boolean,default:!1},onFinish:{type:Function,default:null},onRegister:{type:[Function,Array],default:null}},Vn={actionSpan:{type:Number,default:1},actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...go};function ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const cr=Object.assign({},Bn,{...Vn,open:{type:Boolean,default:!0},cols:{type:[Number,String],default:"4 xs:1 s:2 m:2 l:4 xl:4 2xl:6"},bordered:{type:Boolean,default:!0},responsive:{type:String,default:"screen"}}),Ti=x({name:"RCollapse",props:cr,render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r($n,j(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(gr,a,ur(e)?e:{default:()=>[e]})]})}}),dr={...ho,restrictionElement:{type:[String,HTMLElement,Function,Object],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},Oi=x({name:"RDraggableCard",props:dr,setup(e,{expose:n}){const t=se("cardRef");let o=null;const a={x:0,y:0},l="r-draggable-card-container",s=O(()=>({"--r-draggable-card-width":$(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;const u={defaultPosition:e.defaultPosition,dad:e.dad};(()=>{if(!document.getElementById(l)){const b=document.createElement("div");b.id=l,document.documentElement.appendChild(b)}})();const p=()=>{const b=ae(t),v=typeof e.restrictionElement=="string"?$e(e.restrictionElement):e.restrictionElement;let w=null;return Array.isArray(v)?w=v[0]:w=ae(v),{card:b,restrictionElement:w}},m=(b,v)=>{const{defaultPosition:w,padding:f}=e,{x:C=0,y:g=0}=f??{},{x:y,y:h,width:T,height:k}=b,{width:F,height:A}=v;if(typeof w=="string")switch(w){case"top-center":{const P=(T-F)/2+y,M=g+h;return{x:C+P,y:M}}case"bottom-center":{const P=(T-F)/2+y,M=k-A-g+h;return{x:C+P,y:M}}case"center":{const P=(T-F)/2+y,M=(k-A)/2+h,U=C+P,X=g+M;return{x:U,y:X}}case"top-left":return{x:C+y,y:g+h};case"top-right":return{x:T-F-C+y,y:g+h};case"bottom-left":return{x:C+y,y:k-A-g+h};case"bottom-right":return{x:T-F-C+y,y:k-A-g+h};default:return{x:C+y,y:g+h}}else{const{x:P,y:M}=w;return{x:P+y+C,y:M+h+g}}},S=()=>{const{card:b,restrictionElement:v}=p();if(!b)return;const w=v==null?void 0:v.getBoundingClientRect(),f=b.querySelector(".n-card-header"),C=Object.assign({},{restriction:v,endOnly:!0},e.restrictRectOptions);if(w&&!i){const g=m(w,b.getBoundingClientRect());b.style.transform=`translate(${g.x}px, ${g.y}px)`,a.x=g.x,a.y=g.y}e.dad&&(o=en(b).draggable({inertia:!0,autoScroll:!0,allowFrom:f?".n-card-header":".n-card__content",modifiers:[en.modifiers.restrictRect(C)],listeners:{move:g=>{b.setAttribute("can-drag","true"),a.x+=g.dx,a.y+=g.dy,b.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0)},_=()=>{o==null||o.unset(),o=null},d=b=>{i=!1,b(),S()};return n(),de(()=>{e.dad?S():_(),e.defaultPosition!==u.defaultPosition&&d(()=>{u.defaultPosition=e.defaultPosition})}),Te(()=>{ne(()=>{S()})}),{cardRef:t,CONTAINER_ID:l,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:l}=this;return r(Ho,{to:`#${o}`},{default:()=>[l?r(Mn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[r(Me,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):r(Me,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),pr={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Rn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Pn()},onRegister:{type:[Function,Array],default:null}},mr=Symbol("USE_CHART_PROVIDER_KEY"),fr=aa(),on="__R_CHART_DOWN_LOAD_CHART__";fr.forEach(e=>{ka(e.name,e.theme)});const ki=x({name:"RChart",props:pr,setup(e,{expose:n}){const{getAppTheme:t}=Y(),o=se("rayChartRef"),a=se("rayChartWrapperRef"),l=ee();let s,i;const{echartTheme:u}=_e;let c;const p=O(()=>[{label:"下载图片",key:on,disabled:!(l.value&&l.value.getDom())}]),m=O(()=>({"--ray-chart-width":$(e.width),"--ray-chart-height":$(e.height)})),S=N(!1);let _;const d={aria:e.showAria},b=Oe(mr,{}),v=async()=>{var A;Ne([Pa,Ra,xa,Ea,Ma,Da,za,Ia]),Ne([La,Fa,Ba,Va,Na,ja]),Ne([Ua,$a]),Ne([Ka]);try{Ne((A=e.use)==null?void 0:A.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},w=()=>{const{theme:A}=b||{};if(l.value&&y(),A){C(A);return}if(e.theme==="default"){e.autoChangeTheme?C("dark"):C("");return}if(e.theme)C(e.theme);else{const P=e.autoChangeTheme&&t.value?`${u}-dark`:u;C(P)}},f=A=>{let P=Q(A);return P=(U=>Object.assign({},P,U))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},C=(A=u)=>{var Ze;const P=o.value,M=f(e.options),{height:U,width:X}=P.getBoundingClientRect(),{onSuccess:re,onError:Je}=e;try{l.value=Aa(P,A,{width:X===0?200:void 0,height:U===0?200:void 0}),re&&B(re,l.value),e.nextTick?(l.value.setOption({}),ne(()=>{var ue;M&&((ue=l.value)==null||ue.setOption(M))})):M&&((Ze=l.value)==null||Ze.setOption(M))}catch(ue){throw Je&&B(Je),new Error(`[RChart render error]: ${ue}`)}finally{const{onFinally:ue}=e;ue&&B(ue)}},g=()=>{var A;return!!((A=l.value)!=null&&A.isDisposed())},y=()=>{var A;g()||(A=l.value)==null||A.dispose()},h=()=>{l.value&&l.value.resize()},T=(A,P)=>{if(A===on&&!g()){const{filename:U,...X}=e.downloadOptions;la(l.value.getDataURL(X),U??`${new Date().getTime()}`)}const{onDropdownSelect:M}=e;M&&B(M,A,P)},k=()=>{var P;if(e.autoResize&&(s||(s=Mt(h,500)),i||(i=$o(e.autoResizeObserverTarget||a,s))),(P=l.value)!=null&&P.getDom()||!S.value&&e.intersectionObserver)return;w(),_==null||_.stop();const{onRegister:A}=e;A&&l.value&&B(A,l.value,k,F)},F=()=>{y(),s==null||s.cancel(),i==null||i.stop(),_==null||_.stop(),_=null,s=null,i=null};return We(()=>t.value,()=>{e.autoChangeTheme&&(y(),w())}),de(()=>{var A,P;e.intersectionObserver&&(_=Uo(e.intersectionObserverTarget||a,([M])=>{S.value=M.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Wa(()=>e.options,M=>{var re;const U=f(M),X=Object.assign({},Pn(),e.setChartOptions);(re=l.value)==null||re.setOption(U,X)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(A=l.value)==null||A.showLoading(Rn(e.loadingOptions)):(P=l.value)==null||P.hideLoading(),e.showAria!==d.aria&&l.value&&(l.value.setOption(f(e.options)),d.aria=e.showAria),S.value&&!g()&&k()}),n(),Go(async()=>{await v()}),Te(()=>{k()}),It(()=>{F(),c==null||c()}),{rayChartRef:o,cssVarsRef:m,rayChartWrapperRef:a,moreDropDownOptions:p,dropdownSelect:T}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(Me,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:be(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:be(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":be(i,{defaultElement:r(jn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Ai=()=>{let e,n,t;const o=(u,c,p)=>{u&&(e=u,n=p,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},gr=x({name:"RCollapseGrid",props:Vn,setup(e){const n=N(!e.open),t=O(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&B(l,n.value),s&&B(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(E,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return de(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:p,bordered:m}=this;return r(Me,{bordered:m,style:[c]},{default:()=>r(yo,j({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(vo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:p},{default:()=>[r(L,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),hr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},E=x({name:"RIcon",props:hr,setup(e){const n=O(()=>`#${e.prefix}-${e.name}`),t=O(()=>({"--ray-icon-width":e.width?$(e.width):$(e.size),"--ray-icon-height":e.height?$(e.height):$(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&B(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",j({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),yr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Pi=x({name:"RIframe",props:yr,setup(e,{expose:n}){const t=O(()=>({"--ray-iframe-frameborder":$(e.frameborder),"--ray-iframe-width":$(e.width),"--ray-iframe-height":$(e.height)})),o=se("iframeRef"),a=N(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&B(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&B(u,i)};return ze(o,"load",l),ze(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(Ke,j(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),vr={...bo,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},br="r-modal__preset-card--fullscreen",Nn="r-modal",Ee={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Ri=x({name:"RModal",props:vr,setup(e){const n=O(()=>({[Ee.width]:$(e.width??600),[Ee.cardWidth]:$(e.cardWidth??600),[Ee.dialogWidth]:$(e.dialogWidth??446)})),t=dt(),o=O(()=>e.preset==="card"&&e.fullscreen);return{cssVars:n,isFullscreenCardType:o,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(yn,j({class:[Nn,i?br:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),_r=()=>{const{create:e,destroyAll:n}=_o();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>mt(Dt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"hover",style:{width:"auto",maxHeight:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,fullscreen:u,width:c,cardWidth:p,dialogWidth:m}=o,S=e({...l,content:s}),{key:_}=S,d={[Ee.width]:$(c??600),[Ee.cardWidth]:$(p??600),[Ee.dialogWidth]:$(m??446)};return ne(()=>{const[b]=$e(`[internalkey="${_}"]`)||[];b&&(u&&i==="card"&&ct(b,{width:"100%",height:"100vh"}),ct(b,d),xn(b,Nn))}),S},destroyAll:n}},Sr={...So,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function wr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const jn=x({name:"RMoreDropdown",props:Sr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(De,j(this.$props,this.$attrs,{placement:"bottom-start"}),wr(e=be(a,{defaultElement:r(E,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Fe={...wo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null},flexAutoHeight:{type:Boolean,default:!1}},ie={tableIconSize:"18",tableKey:Symbol("r-table")},Cr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Tr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Fe},setup(e){return{size:N(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&B(l,a)}}},render(){return r(vn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(E,{name:"adjustment",size:ie.tableIconSize,cursor:"pointer"},null)]})}}),Or=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=Oe(ie.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=An(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(E,{name:"fullscreen",size:ie.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),kr=()=>r(E,{name:"draggable",size:14,cursor:"grab"},null),an=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ue,{showArrow:!1},{trigger:()=>r(E,{name:e,size:ie.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Rt=(e,n)=>{if(!n)return[null,null];for(let t=0;tye(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:p,title:m,children:S,fixed:_,isResizable:d,...b}=u,v=_==="left",w=_==="right",f={...b,title:m,key:p,fixed:_,isLeftFixedActivated:v,isRightFixedActivated:w,isResizable:d};return{...f,suffix:()=>r(L,{style:"padding-left: 32px;"},{default:()=>[r(an,{icon:"row_head",title:"固定在列首",customClassName:v?St:"",onClick:l.bind(this,"left",f,c)},null),r(Ue,{showArrow:!1},{trigger:()=>r(E,{name:"resize_h",size:ie.tableIconSize,cursor:"pointer",customClassName:d?St:"",onClick:a.bind(this,f,c)},null),default:()=>"修改列宽"}),r(an,{icon:"row_end",title:"固定在列尾",customClassName:w?St:"",onClick:l.bind(this,"right",f,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&B(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const p=`${i}FixedActivated`,m=`${i==="left"?"right":"left"}FixedActivated`;u[m]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[p,m]=Rt(u,t.value);if(p===null||m===null)return;p.splice(m,1);const[S,_]=Rt(i,t.value);S===null||_===null||(c==="before"?S.splice(_,0,u):S.splice(_+1,0,u),hn(n)||S.unshift(n),o(S))}}},render(){return r(Ue,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(E,{name:"setting",size:ie.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(Co,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:kr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Pr=x({name:"TablePrint",props:Fe,setup(e){const{wrapperRef:n}=Oe(ie.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),Bt(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(E,{name:"print",size:ie.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Rr=x({name:"TablePropsSelect",props:{...Fe,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=N(!1),t=N([]),o=l=>{const{onPopselectChange:s}=e;s&&B(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&B(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(vn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:Cr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(E,{name:"expanded",size:ie.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function xr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const ln=x({name:"RTable",inheritAttrs:!1,props:Fe,setup(e,n){const{expose:t,emit:o}=n,a=se("rTableInst"),l=se("wrapperRef"),s=dt(16),i=dt(16),u=le({x:0,y:0,showContextMenu:!1}),c=le({size:e.size}),p=N(Object.assign({striped:!1,bordered:!1},je(e,"striped","bordered"))),m=O(()=>{const{title:g,tool:y,cardProps:h}=e,{headerStyle:T={}}=h??{};return!g&&!y?Object.assign({},{paddingTop:"0px"},T):T}),S=O(()=>{const{flexAutoHeight:g}=e;return g?{height:"100%",flex:1}:null}),_=(g,y)=>{const{onContextMenuClick:h}=e;h&&B(h,g,y),u.showContextMenu=!1},d=(g,y)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,g,y),onContextmenu:e.disabledContextMenu?void 0:k=>{k.preventDefault(),u.showContextMenu=!1,ne().then(()=>{u.showContextMenu=!0,u.x=k.clientX,u.y=k.clientY})}}},b=g=>{c.size=g},v=g=>{const{onUpdateColumns:y,"onUpdate:columns":h}=e;y&&B(y,g),h&&B(h,g)},w=()=>{const{toolOptions:g}=e;return g==null?void 0:g.filter(Boolean).map(y=>typeof y=="function"?y():y)},f=g=>{Object.keys(p.value).forEach(h=>{p.value[h]=g.includes(h)})},C=g=>{const{tool:y}=g;if(!y)return;const h=()=>r(L,{align:"center"},{default:()=>[r(Pr,g,null),r(Tr,j(g,{onChangeSize:b.bind(this)}),null),r(Or,null,null),r(Ar,j(g,{onUpdateColumn:v.bind(this)}),null),r(Rr,j(g,{onPopselectChange:f.bind(this),onInitialed:f.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let T;return r(L,{align:"center"},xr(T=w())?T:{default:()=>[T]})}:()=>r(L,{align:"center"},{default:()=>[h(),w()]}):h};return Te(()=>{const{onRegister:g}=e;g&&a.value&&B(g,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),kn(ie.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:d,contextMenuSelect:_,privateReactive:c,tool:C,wrapperRef:l,propsPopselectValue:p,cardHeaderStyle:m,flexAutoHeightStyle:S}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u,flexAutoHeightStyle:c}=this,{class:p,...m}=n,{tool:S,combineRowProps:_,contextMenuSelect:d}=this,{renderWrapperHeader:b,wrapperBordered:v,disabledContextMenu:w,contextMenuOptions:f,title:C,tableFlexHeight:g,cardProps:y,flexAutoHeight:h,flexHeight:T,...k}=e,{headerStyle:F,...A}=y??{};return r(Me,j(A,{id:l},m,{ref:"wrapperRef",bordered:v,class:p,style:Object.assign({},u,c)}),{default:()=>r(Lt,null,[r(To,j({id:o},k,i,{flexHeight:h?!0:T,rowProps:_.bind(this),size:s.size,ref:"rTableInst",style:{height:h?"100%":g!=null?$(g):null}}),{...t}),w?null:r(De,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:f,onClickoutside:()=>a.showContextMenu=!1,onSelect:d.bind(this)},null)]),header:b?be(C,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":S(e),footer:()=>{var P;return(P=t.tableFooter)==null?void 0:P.call(t)},action:()=>{var P;return(P=t.tableAction)==null?void 0:P.call(t)}})}}),Er=()=>{const e=ee(),n=ee({}),t=(d,b)=>{d&&(e.value=d,n.value=b)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:d=>o().downloadCsv.call(null,d),filters:d=>o().filters.call(null,d),page:d=>o().page.call(null,d),scrollTo:d=>o().scrollTo(d),sort:(d,b)=>o().sort.call(null,d,b),print:d=>{const{uuidWrapper:b}=n.value??{};if(b){const v=document.getElementById(b);Bt(v,d)}},filter:d=>o().filter.call(null,d),getTableConfig:()=>n.value}]},Un=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Un(a.children,n,t);if(l)return l}}},rn=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},Mr=(e,n,t,o)=>{const a=Q(e);return a?n.reduce((l,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(Q(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},xi=(e,n,t)=>{const o=N([]),a=N([]),{rowKey:l="key",onChange:s}=t||{},i=O(()=>rn(n)),u=(d,b,v)=>{o.value=d,a.value=Q(Mr(e,d,a,l)),s==null||s(d,a.value,v),rn(n)},c=()=>o.value,p=()=>a.value,m=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},S=d=>{if(d==null)return;let b;o.value=o.value.filter(v=>v!==d),a.value=a.value.filter(v=>v[l]===d?(b=v,!1):!0),s==null||s(o.value,a.value,{row:b,action:"uncheck"})},_=d=>{if(o.value.includes(d))return;const b=!i.value&&o.value.length>=1,v=Un(Q(e)||[],l,d);b?o.value=[d]:o.value.push(d),v&&(b?a.value=[v]:a.value.push(v),s==null||s(o.value,a.value,{row:v,action:"check"}))};return Vt(()=>{m()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:p,clearAll:m,clearKey:S,selectKey:_}]},Dr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},zr=x({name:"RTransitionComponent",__name:"index",props:Yo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Dr),setup(e){const{getKeepAliveInclude:n}=Jr(),{getKeepAliveConfig:t}=Y();return(o,a)=>{const l=Xo("RouterView");return Ae(),Jo("div",null,[r(l,null,{default:bt(({Component:s,route:i})=>[s?(Ae(),Ve(Mn,{key:0,name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:bt(()=>[(Ae(),Ve(Qo,null,{default:bt(()=>[Q(t).setupKeepAlive?(Ae(),Ve(ea,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Ae(),Ve(Jt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Ve(Jt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Zo("",!0)]),_:1})])}}}),$n=x({name:"RForm",props:Bn,setup(e,{expose:n}){const t=se("formRef"),o=O(()=>e.onFinish??Promise.resolve),a=l=>{var i;l.code==="Enter"&&(l.stopPropagation(),l.preventDefault(),(i=t.value)==null||i.validate().then(o.value))};return e.submitWhenEnter&&ze(t,"keydown",a,{capture:!0}),Te(()=>{const{onRegister:l}=e;if(l&&t.value&&B(l,t.value),t.value){const s=ae(t.value);s&&(s.autocomplete=e.autocomplete)}}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this,{loading:o,loadingDescription:a,...l}=n;return r(Ke,{show:o,description:a,style:{height:"auto"}},{default:()=>[r(fe,j(e,l,{ref:"formRef"}),{...t})]})}}),Ir=(e,n)=>{const t=ee(),o=N(),a=d=>{d&&(t.value=d)},l=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value},s=()=>{typeof e=="function"?o.value=e()??{}:o.value=ye(e)??{}},i=(d,b)=>l().validate.call(null,d,b),u=()=>l().restoreValidation.call(null),c=()=>typeof e=="function"?e():ye(e)||{},p=()=>typeof n=="function"?n():ye(n)||{},m=d=>{o.value=Object.assign(o.value,c(),d),u()},S=d=>{if(!d||typeof d!="string")throw new Error(`[useForm-validateTargetField]: except key is string, but got ${typeof d}.`);return i(void 0,b=>(b==null?void 0:b.key)===d)},_=d=>{o.value=Object.assign(o.value,d)};return s(),[a,{getFormInstance:l,validate:i,restoreValidation:u,formModel:c,formRules:p,reset:m,validateTargetField:S,formConditionRef:o,updateFormCondition:_}]},Lr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Fr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Br=Se({...Oo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Lr);function Vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const xt=e=>{const{icon:n,label:t}=e;return n?r(L,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=be(n))==null?void 0:o(),r("div",null,[t])]}}):t},Nr=e=>{if(typeof e.popover=="string")return r(Ue,null,{trigger:()=>xt(e),default:()=>e.popover});if(ge(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ue,o,{trigger:()=>xt(e),default:()=>t})}},jr=x({name:"RSegment",props:Br,setup(e,{expose:n}){const t=O(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?$(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(bn,j(n,{style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Fr,a)}),Vr(e=t.map(l=>r(ko,{key:l.key,name:l.key,tab:l.popover?Nr(l):xt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),Ur={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},Ei=x({name:"RBarcode",props:Ur,setup(e){const n=se("barcodeRef"),t=O(()=>({"--r-barcode-width":$(e.width),"--r-barcode-height":$(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});na(n.value,s!=null?s.toString():"",c),u&&B(u,s,l,i)}catch(l){const{onError:s}=e;s&&B(s,l)}finally{const{onFinally:l}=e;l&&B(l)}};return de(()=>{e.watchText?o=We(()=>e.text,a):o==null||o()}),Te(()=>{a()}),It(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(Ke,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),$r={...Se(Fe,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0},paginationPrefix:{type:Function,default:e=>`共 ${e.itemCount} 条`},takeoverAutoHeight:{type:Boolean,default:!1}},Mi=x({name:"RTablePro",props:$r,setup(e,n){const{expose:t}=n,[o,a]=Er(),[l,{getPage:s,getPageSize:i,setCallback:u,setItemCount:c,resetPagination:p,getItemCount:m,setPage:S,setPageSize:_}]=Vs(void 0,{prefix:e.paginationPrefix}),d=O(()=>e.request),b=()=>{const g=s(),y=i(),h=m();return{page:g,pageSize:y,itemCount:h}},v=()=>{const{onTablePaginationUpdate:g}=e;g&&B(g,b())},w=g=>{const y=Object.assign({},e.requestConfig,g),{formatRangeTime:h,excludeParams:T}=y;let k=y.params||{};return h!=null&&h.length&&k&&h.forEach(A=>{const{key:P,target:M}=A,U=k[P];if(U&&(M!=null&&M.length)){const[X,re]=U;k[M[0]]=X,k[M[1]]=re}else k[P]=null,k[M[0]]=null,k[M[1]]=null}),k=ra(k),T&&(k=Se(k,T)),Object.assign({},k,{page:s(),pageSize:i()})},f=(g,y=!0)=>{var T;y&&p();const h=w(g);(T=d.value)==null||T.call(d,h)},C=(g,y=!0)=>new Promise((h,T)=>{try{f(g,y),h(void 0)}catch(k){T(k)}});return de(()=>{c(e.paginationCount),u(()=>{const{manual:g}=e;g||f(void 0,!1),v()})}),Te(()=>{const{onRegister:g}=e;g&&B(g,{...a,getTablePagination:b,runTableRequest:f,runAsyncTableRequest:C,getCurrentTableRequestParams:w,resetTablePagination:p,setPage:S,setPageSize:_,getPage:s,getPageSize:i})}),t(),{register:o,paginationRef:l}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,takeoverAutoHeight:s,flexAutoHeight:i,...u}=n,c={onRegister:e,pagination:l?t:void 0},{collapse:p,...m}=o;return s?r(L,{vertical:!0,class:"flex-vertical"},{default:()=>r(Lt,null,[p==null?void 0:p(),r(ln,j(c,u,{flexAutoHeight:!0}),{...m})])}):r(ln,j(c,u,{flexAutoHeight:i}),{...m})}}),Di=()=>{const e=N(),n=y=>{y&&(e.value=y)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:y=>t().downloadCsv.call(null,y),filters:y=>t().filters.call(null,y),page:y=>t().page.call(null,y),scrollTo:y=>t().scrollTo(y),sort:(y,h)=>t().sort.call(null,y,h),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:(y,h)=>t().runTableRequest.call(null,y,h),print:y=>{const{config:h}=t(),{uuidWrapper:T}=h??{};if(T){const k=document.getElementById(T);Bt(k,y)}},getCurrentTableRequestParams:y=>t().getCurrentTableRequestParams.call(null,y),resetTablePagination:()=>t().resetTablePagination.call(null),runAsyncTableRequest:(y,h)=>t().runAsyncTableRequest.call(null,y,h),getTableProConfig:()=>t().config,getPage:()=>t().getPage.call(null),getPageSize:()=>t().getPageSize.call(null),setPage:y=>t().setPage.call(null,y),setPageSize:y=>t().setPageSize.call(null,y)}]},Kr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Wr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:Kr()},onRegister:{type:[Function,Array],default:void 0}};let sn=!1;const zi=x({name:"RFlow",props:Wr,setup(e){const n=se("flowDomRef"),t=O(()=>{const{width:m,height:S}=e;return{"--r-flow-width":$(m),"--r-flow-height":$(S)}}),o=ee(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var m;sn||((m=e.use)==null||m.filter(Boolean).forEach(S=>Zt.use(S)),sn=!0)},c=m=>{if(!o.value)return;const S=Object.entries(a).reduce((_,[d])=>(_[d]=!m,_),{});Object.assign(a,S,{isSilentMode:m}),o.value.updateEditConfig(a)},p=m=>{if(u(),!n.value)return;const{options:S,readonly:_}=e;o.value=new Zt({container:Q(n.value),...Se(S,"container")}),o.value.render(m||s),c(_)};return de(()=>{e.watchData?l=We(()=>e.data,m=>{o.value?m&&o.value.renderRawData(m):p(m)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Te(()=>{p();const{onRegister:m}=e;m&&o.value&&B(m,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),Ii=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},qr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Kn=(e,n,t)=>{const o=[];if(qr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=Kn(a,n,t);l.length>0&&o.push(e,...l)}return o},Hr=(e,n,t)=>{const o=[];for(const a of e){const l=Kn(a,n,t);l.length>0&&o.push(...l)}return o},un=e=>{const{dynamicDocumentTitle:n}=Le();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Le(),a=o?o.title:"";document.title=t+" - "+a},Gr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(ge(n,"Object"))return()=>n;const{menuConfig:t}=Le(),{collapsed:o}=jt(),a=mt(E,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Wn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=He(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,p=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(ge(n,"Object"))return()=>mt(Ao,{...u,type:s||"primary",style:p()},{default:()=>c(),icon:()=>l})},cn=()=>{const{getRootPath:e}=Xe();return Ie(K.appMenuKey,"sessionStorage",{defaultValue:e.value})},Yr=()=>Ie(K.appMenuTagOptions,"sessionStorage",{defaultValue:[]}),qn=()=>ar(tr()),Xr=()=>or(qn()),Et=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let nt;const Hn=(e,n)=>{var t;if(nt&&Qt(nt.fullPath,n))return nt;for(const o of e){if(Qt(o.fullPath,n))return nt=o,o;if((t=o.children)!=null&&t.length){Hn(o.children,n);continue}}},jt=ft("menu",()=>{const{push:e,getRoutes:n}=qe(),t=_a(),{t:o}=He(),{setKeepAliveInclude:a}=Zr(),l=le({menuKey:cn(),options:[],collapsed:!1,menuTagOptions:Yr(),breadcrumbOptions:[],currentMenuOption:null}),s=N(!0),i=(f,C,g)=>{Ft(l,f,C,g)},u=f=>{const{meta:C}=f,{i18nKey:g,noLocalTitle:y}=C,h=O(()=>g?o(`${g}`):y),T={...f,key:f.fullPath,label:()=>mt(_n,null,{default:()=>h.value}),breadcrumbLabel:h.value},k=Object.assign({},T,{icon:Gr(f),extra:Wn(f)});return f.fullPath===cn()&&(l.currentMenuOption=k),k.show=Ln(k),k},c=f=>{l.breadcrumbOptions=Q(Hr(l.options,"fullPath",f))},p=(f,C=!0)=>{const y=Array.isArray(f)?[...f]:[f];C?l.menuTagOptions.push(...y):l.menuTagOptions=y,Re(K.appMenuTagOptions,l.menuTagOptions)},m=(f,C)=>{l.menuTagOptions.find(y=>y.fullPath===f)||l.menuTagOptions.push(C),l.menuTagOptions=l.menuTagOptions.filter(y=>{var h;return(h=y.fullPath)==null?void 0:h.startsWith("/")}),Re(K.appMenuTagOptions,l.menuTagOptions)},S=(f,C,g)=>{const{meta:y}=C;if(y.windowOpen)window.open(y.windowOpen);else{e({path:String(f),query:g});const{sameLevel:h}=y;if(a(C),un(C),!h)m(f,C),c(f),l.menuKey=f,l.currentMenuOption=C,Re(K.appMenuKey,f);else{const T=je(u(C),Et);l.breadcrumbOptions.find(F=>F.key===T.key)||l.breadcrumbOptions.push({...T,fullPath:String(T.key)})}}},_=async(f,C)=>{const[g]=f.split("?"),y=n().find(h=>h.path===g);if(!((y==null?void 0:y.path)==="/"||!(y!=null&&y.path)||(y==null?void 0:y.path)==="/login")&&y){const h=je(y,Et);S(g,u({...h,fullPath:h.path}),C)}},d=()=>new Promise(f=>{const C=(y,h)=>{var k;const T=[];for(const F of y){let A=`${h.endsWith("/")?h:h+"/"}${F.path}`;if(A=A.replace(/\/+/g,"/"),(k=F.children)!=null&&k.length)F.children=C(F.children,A);else if(!Zn(F.meta))continue;T.push(u({...F,fullPath:A}))}return T};l.options=C(qn(),"");const g=l.currentMenuOption||es(l.options);g&&(l.breadcrumbOptions.length||c(g.key),m(g.fullPath,g),un(g)),f()}),b=f=>l.collapsed=f,v=(f,C=1)=>{const g=l.menuTagOptions.splice(f,C);return Re(K.appMenuTagOptions,l.menuTagOptions),g},w=async()=>{s.value&&(await d(),s.value=!1)};return We(()=>t.fullPath,async(f,C)=>{await w(),f!==C&&await _(f,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:S,collapsedMenu:b,spliceMenTagOptions:v,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:d}},{persist:{key:K.appPiniaMenuStore,storage:window.localStorage,pick:["menuKey","collapsed"]}}),Gn=ft("signing",()=>{const{clearRoutes:e,replace:n}=qe(),t=le({signingCallback:{}}),o=s=>new Promise((i,u)=>{hn(s)?u({code:1,message:"登陆失败",data:null}):(t.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},i({code:0,message:"登陆成功",data:t.signingCallback}))}),a=s=>{const{closeAll:i}=oo(),{appPiniaMenuStore:u,appPiniaSigningStore:c,token:p,signing:m,appMenuKey:S}=K;window.$message.info("账号退出中..."),ce("__all_sessionStorage__","sessionStorage"),ce(c,"localStorage"),ce(u,"localStorage"),ce(p,"localStorage"),ce(m,"localStorage"),ce(S,"localStorage"),ce(K.isAppLockScreen,"localStorage"),i(),s&&(e(),n("/"),setTimeout(()=>{window.location.reload()},0))},l=()=>{a(!0)};return{...we(t),signing:o,logout:l,clearSigningCallback:a}},{persist:{key:K.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Yn=ft("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Le().keepAliveConfig;if(i){if(l=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:K.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ke=()=>{const e=jt(),n=O(()=>e.options),t=O(()=>e.breadcrumbOptions),o=O(()=>e.menuKey),a=O(()=>e.menuTagOptions),l=O(()=>e.currentMenuOption),s=O(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Be=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=jt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},Y=()=>{const e=Le(),n=O(()=>e.drawerPlacement),t=O(()=>e.primaryColorOverride),o=O(()=>e._appTheme),a=O(()=>e.appTheme),l=O(()=>e.menuTagSwitch),s=O(()=>e.breadcrumbSwitch),i=O(()=>e.localeLanguage),u=O(()=>e.lockScreenSwitch),c=O(()=>e.copyrightSwitch),p=O(()=>e.contentTransition),m=O(()=>e.watermarkSwitch),S=O(()=>e.watermarkConfig),_=O(()=>e.appRootRoute),d=O(()=>e.sideBarLogo),b=O(()=>e.keepAliveConfig),v=O(()=>e.menuConfig),w=O(()=>e.colorWeakness),f=O(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:p,getWatermarkSwitch:m,getWatermarkConfig:S,getAppRootRoute:_,getSideBarLogo:d,getKeepAliveConfig:b,getMenuConfig:v,getAppThemeStr:a,getColorWeakness:w,getDynamicDocumentTitle:f}},W=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Le();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Xn=()=>{const e=Gn();return{getSigningCallback:O(()=>e.signingCallback)}},Jn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Gn();return{signing:e,logout:n,clearSigningCallback:t}},Jr=()=>{const e=Yn();return{getKeepAliveInclude:O(()=>e.keepAliveInclude)}},Zr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Yn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Li=e=>{const n=ma();e.use(n),n.use(pa)},Zn=e=>{const{getSigningCallback:n}=Xn(),{role:t}=e;return tt!=null&&tt.length&&tt.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Qr=e=>{sr(e),lr(e)},es=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},ts=ee(),ns=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=qe(),{getSideBarLogo:n}=Y();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(E,{name:n.value.icon,size:"30",cursor:a},null);if(ge(n.value.icon,"Object"))return be(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:ts},[e!=null&&e.icon?n?r(ut,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(ut,{placement:"right"},{trigger:()=>r(Gt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(Gt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(_n,null,{default:()=>[e.title]})]})]):null}}),os=x({name:"AppMenu",setup(){const e=ee(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Be(),{getMenuConfig:a}=Y(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=ke(),u=O({get:()=>(setTimeout(()=>{m(),En()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=Ye({observer:_=>{_&&o("collapsed",!1)}}),p=O({get:()=>gt("globalDrawerValue").value,set:_=>{me("globalDrawerValue",_)}}),m=()=>{const _=u.value;_!=null&&ne(()=>{var d,b;return(b=(d=e.value)==null?void 0:d.showOption)==null?void 0:b.call(d,_)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Ro,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:zn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(ns,{collapsed:s.value},null):null,r(Po,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":_=>u.value=_,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(_,d)=>{n(_,d)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(Sn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class as{constructor(){Wt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const wt={requestInstance:null,responseInstance:null},ls={requestError:null,responseError:null},Ct={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},ot={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},rs=new as,Fi=()=>{const e=(i,u)=>{u==="requestInstance"?wt.requestInstance=i:wt.responseInstance=i},n=i=>wt[i],t=(i,u,c)=>{c==="ok"?Ct[i]=u:ot[i]=u},o=(i,u)=>u==="ok"?Ct[i]:ot[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const p=c==="ok"?Ct[u]:ot[u],m=n(i),{MODE:S}=Pt();m&&a(p,m,S)},fetchError:(i,u,c)=>{ls[i]=u;const p=ot[c],{MODE:m}=Pt();a(p,u,m)}}},ss=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){Sa(()=>{rs.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Qn=x({name:"LayoutContentWrapper",setup(){qe();const{maximize:e}=no(),{getContentTransition:n}=Y(),t=N(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=ol();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(Ke,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(E,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(ss,null,null),e?r(zr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),is=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"}));var us={layout:{copyright:"Copyright © 2022-present Ray"}};const cs=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=us;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),ds=x({name:"TooltipIcon",props:{...xo,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(E,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(ut,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),ps=x({name:"ThemeSegment",setup(){const{system:e}=Tn(),{getAppThemeStr:n,getAppTheme:t}=Y(),{updateSettingState:o}=W(),a=[{label:"深色",key:"dark",icon:()=>r(E,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(E,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(E,{name:"system_os",size:"16"},null)}],l=O({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return de(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(jr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ge=Symbol("segmentDrawer"),ms=x({name:"SegmentViewsAppearance",setup(){const e=Oe(Ge,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=W();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[q("系统主题")]}),r(ps,null,null),r(oe,null,{default:()=>[q("内置主题")]}),r(Eo,{showPreview:!0,swatches:_e.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(oe,null,{default:()=>[q("切换动画")]}),r(Yt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Ja,onUpdateValue:a=>{o("contentTransition",a)}},null),r(oe,null,{default:()=>[q("配置入口出现位置")]}),r(Yt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(oe,null,{default:()=>[q("其他设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"面包屑"},{default:()=>[r(te,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(I,{label:"标签页"},{default:()=>[r(te,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(I,{label:"页底信息"},{default:()=>[r(te,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(I,{label:"色弱模式"},{default:()=>[r(te,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),fs=x({name:"SegmentViewsCommon",setup(){const e=Oe(Ge,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[q("基础设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"页面缓存"},{default:()=>[r(te,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(I,{label:"动态浏览器标题"},{default:()=>[r(te,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(oe,null,{default:()=>[q("缓存设置")]}),r(fe,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(I,{label:"最大缓存数",feedback:O(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(G,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(I,{label:"排除缓存"},{default:()=>[r(Mo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),gs=x({name:"SegmentViewsWatermark",setup(){const e=Oe(Ge,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[q("基础设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"全屏水印"},{default:()=>[r(te,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(I,{label:"跨边界显示"},{default:()=>[r(te,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(oe,null,{default:()=>[q("个性化水印")]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"水印内容"},{default:()=>[r(zt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(I,{label:"字体尺寸"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(I,{label:"字体行高"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(I,{label:"字体宽度"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(I,{label:"字体高度"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(I,{label:"x轴偏移"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(I,{label:"x轴间隙"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(I,{label:"y轴偏移"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(I,{label:"y轴间隙"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(I,{label:"旋转角度"},{default:()=>[r(G,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),hs=x({name:"SegmentViewsCustomMenu",setup(){const e=Oe(Ge,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,{titlePlacement:"center"},{default:()=>[r(L,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(ut,{placement:"top",showArrow:!1},{trigger:()=>r(E,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(wn,null,{default:()=>[q("菜单样式")]})]})]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"每级菜单缩进"},{default:()=>[r(G,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(I,{label:"菜单图标尺寸"},{default:()=>[r(G,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(I,{label:"折叠菜单图标尺寸"},{default:()=>[r(G,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(I,{label:"菜单宽度"},{default:()=>[r(G,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(I,{label:"折叠菜单宽度"},{default:()=>[r(G,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(I,{showFeedback:!1,showLabel:!1},{default:()=>[r(J,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[q("更新菜单")]})]})]}),r(oe,null,{default:()=>[q("其他设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"反转色菜单"},{default:()=>[r(te,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(I,{label:"菜单标题"},{default:()=>[r(te,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(I,{label:"手风琴菜单"},{default:()=>[r(te,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(I,{label:"原生滚动条"},{default:()=>[r(te,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ys=x({name:"SettingDrawer",props:Do,setup(){const{create:e}=_r(),{changePrimaryColor:n,updateSettingState:t}=W(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:p,getMenuConfig:m,getDrawerPlacement:S,getColorWeakness:_,getWatermarkConfig:d,getDynamicDocumentTitle:b}=Y(),{setupAppMenu:v}=Be(),w=Mt(v,300),f=le({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:p.value,menuConfig:m.value,drawerPlacement:S.value,colorWeakness:_.value,primaryColorOverride:a.value,watermarkConfig:d.value,dynamicDocumentTitle:b.value,throttleSetupAppMenu:w}),C=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{mo(ye(Fn()),(g,y)=>{f[y]=g,t(y,g)}),w()}})};return kn(Ge,f),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:f,defaultSettingBtnClick:C}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(Sn,j(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(zo,{title:"个性化配置",closable:!0},{default:()=>r(bn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(et,{name:"appearance",tab:"外观"},{default:()=>[r(ms,null,null)]}),r(et,{name:"menu",tab:"菜单"},{default:()=>[r(hs,null,null)]}),r(et,{name:"watermark",tab:"水印"},{default:()=>[r(gs,null,null)]}),r(et,{name:"common",tab:"通用"},{default:()=>[r(fs,null,null)]})]}),footer:()=>r(L,{justify:"flex-start"},{default:()=>[r(J,{type:"warning",onClick:e},{icon:()=>r(E,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function vs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const bs=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Be(),{getBreadcrumbOptions:n}=ke(),{isTabletOrSmaller:t}=Ye();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Io,null,{default:()=>[r(Ta,{tag:"li",name:"breadcrumb",appear:!0},vs(e=t.map(l=>r(Lo,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(De,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const _s=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Be(),{getRoutes:a}=qe(),l=O({get:()=>e.show,set:h=>{n("update:show",h),h||_()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:p}=Ye({observer:h=>{h&&(l.value=!1)}}),m=N(!1),S="content-item--active",_=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},d=h=>{l.value||(h.ctrlKey||h.metaKey)&&h.key==="k"&&(h.preventDefault(),h.stopPropagation(),_(),l.value=!0)},b=h=>{if(h)m.value=!0;else{m.value=!1,s.searchOptions=[];return}const T=a().reduce((k,F)=>{var U;const A=je(F,["children","meta","path","name"]),P=o({...A,fullPath:F.path}),{breadcrumbLabel:M}=P;return(U=M==null?void 0:M.toLocaleLowerCase())!=null&&U.includes(h.toLocaleLowerCase())&&Ln(P)&&k.push(P),k},[]);setTimeout(()=>{s.searchOptions=T,ne().then(()=>{w()}),m.value=!1},300)},v=h=>{if(h){const{meta:T}=h;T.windowOpen?window.open(T.windowOpen):(l.value=!1,t(h.fullPath,h),setTimeout(En,300))}},w=()=>{const h=s.searchOptions[u],T=s.searchOptions[c];h&&ne().then(()=>{const k=$e(`attr:data_path="${h.path}"`),F=T?$e(`attr:data_path="${T==null?void 0:T.path}"`):null;if(F!=null&&F.length){const[A]=F;sa(A,S)}if(k!=null&&k.length){const[A]=k;xn(A,S)}})},f=h=>{const{icon:T}=h;return typeof T=="string"&&T?r(E,{name:T,size:"24"},null):typeof T=="function"?r(T,null,null):r(E,{name:"search",size:"24"},null)},C=h=>{h==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),h==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},g=h=>{const T=h.key;switch((T==="ArrowUp"||T==="ArrowDown"||T==="Enter")&&(h.preventDefault(),h.stopPropagation()),c=u<=0?0:u,T){case"ArrowUp":C("up");break;case"ArrowDown":C("down");break;case"Enter":const k=s.searchOptions[u];k&&v(k);break}w()},y=({menuOption:h})=>r(L,j({align:"center",class:"content-item"},{onClick:v.bind(this,h),data_path:h.path}),{default:()=>[r("div",{class:"content-item-icon"},[f(h.meta)]),r("div",{class:"content-item-label"},[h.breadcrumbLabel]),r(E,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ze(window,"keydown",d),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Mt(b,300),searchItemClick:v,RenderPreIcon:f,isTabletOrSmaller:p,SearchItem:y,loading:m,registerChangeSearchElementIndex:g}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a,registerChangeSearchElementIndex:l}=this;return e?r("div",{style:"display: none;"},null):r(yn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light",tabindex:"-1",onKeydown:l},[r("div",{class:"global-search__wrapper"},[r(Me,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(zt,{size:"large",value:this.searchValue,"onUpdate:value":s=>this.searchValue=s,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(E,{name:"search",size:"24"},null)}),default:()=>{let s;return r(Dt,null,{default:()=>[r(Ke,{show:t},{default:()=>[n.length?r(L,{vertical:!0,size:[0,6],class:"global-search__card-content"},Tt(s=n.map((i,u)=>r(o,{menuOption:i,key:i.fullPath},null)))?s:{default:()=>[s]}):r(Fo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(L,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(wn,null,{default:()=>[q("没有搜索结果")]})]})})]})]})},action:()=>{let s;return r(L,{justify:"flex-start",align:"center",size:[16,0]},Tt(s=this.helperTipOptions.map(i=>r(L,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(u=>r(L,{class:"item-icon",align:"center",justify:"center"},Tt(u)?u:{default:()=>[u]})),r(L,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?s:{default:()=>[s]})}})])])]})}}),Ss=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=ia();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&B(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(J,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(E,{name:"search",size:"16"},null),default:()=>r(L,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),eo=x({name:"AppAvatar",props:{...Bo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Xn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(L,{align:"center",size:t,vertical:a},{default:()=>[r(Vo,j(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),ws=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Cs={logout:()=>{const{logout:e}=Jn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=W();e("lockScreenSwitch",!0)}},Ts=e=>{const n=Cs[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Os=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},ks=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},As=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=W(),{t}=He(),[o,{toggleFullscreen:a,isEnabled:l}]=An(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=Y(),u=N(!1),c=N(!1),{isTabletOrSmaller:p}=Ye(),m=gt("globalDrawerValue"),S=O(()=>Os({isTabletOrSmaller:p})),_=O(()=>ks({isTabletOrSmaller:p})),d={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!m.value)}};return{leftIconOptions:S,rightTooltipIconOptions:_,toolIconClick:w=>{var f;(f=d[w])==null||f.call(d)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:w=>p.value?null:w}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(Cn,{class:"layout-header"},{default:()=>[r(_s,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(L,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(L,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(ds,{key:i.name,iconName:i.name,tooltipText:On(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(bs,null,null):null]}),r(L,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(Ss,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(E,{name:i.name,size:16,cursor:"pointer"},null)]})),r(De,{options:Dn,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(E,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(De,{options:ws(),onSelect:Ts.bind(this),trigger:"click"},{default:()=>[r(eo,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(ys,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),Ps=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(L,{size:[0,0]},{default:()=>[r(As,null,null)]})}});function Rs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}const xs=x({name:"AppMenuTag",setup(e,{expose:n}){const t=se("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=ke(),{changeMenuModelValue:l}=Be(),{getRootPath:s}=Xe(),{maximize:i}=no(),{reload:u}=Ns(),{close:c,closeAll:p,closeRight:m,closeLeft:S,closeOther:_,checkCloseLeft:d,checkCloseRight:b}=oo(),v=["closeAll","closeRight","closeLeft","closeOther"];let w=1/0;const f={size:16},C=N([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(E,{name:"close",size:f.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(E,{name:"fullscreen_fold",size:f.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(E,{name:"reload",size:f.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(E,{name:"shared",size:f.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(E,{name:"close_left",size:f.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(E,{name:"close_right",size:f.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(E,{name:"close_other",size:f.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(E,{name:"resize_h",size:f.size},null),disabled:!1}]),g=dt(16),y={closeCurrentPage:()=>{o.value!==s.value&&c(w)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{m(w)},closeLeft:()=>{S(w)},closeOther:()=>{_(w)},windowOpenTab:()=>{const R=a.value[w];if(!(R!=null&&R.fullPath))return;const D=R.fullPath.startsWith("#")?R.fullPath:`#${R.fullPath}`;window.open(D,"_blank")},maximizeLayoutContent:()=>{const R=a.value[w];i(!0),R&&X(R)}},h=le({x:0,y:0,actionDropdownShow:!1}),T="menu_tag_data",k=gt("globalMainLayoutLoad"),F="n-scrollbar-container";let A=o.value;const P=N(!1),M=R=>{c(R)},U=(R,D)=>{for(const Z of C.value)if(Z.key===R){Z.disabled=D;break}},X=R=>{h.actionDropdownShow=!1,l(R.fullPath,R)},re=()=>{const R=document.getElementById(g);if(R)return Array.from(R.childNodes).find(Qe=>ua(Qe,F).value)},Je=R=>{var Z;const D=re();if(D){const Qe=D.scrollLeft||0,Kt=R==="left"?Math.max(0,Qe-200):Qe+200;(Z=t.value)==null||Z.scrollTo({left:Kt,behavior:"smooth"})}},Ze=R=>{h.actionDropdownShow=!1;const D=y[R];D==null||D()},ue=(R,D)=>{D.preventDefault(),w=R,h.actionDropdownShow=!1,ne(()=>{h.x=D.clientX,h.y=D.clientY,h.actionDropdownShow=!0})},$t=()=>{b(w)?U("closeRight",!1):U("closeRight",!0),d(w)?U("closeLeft",!1):U("closeLeft",!0)},lo=()=>{w=a.value.findIndex(D=>D.fullPath===o.value),$t()},ro=R=>{a.value.length>1&&R.fullPath!==s.value&&(R.closeable=!0),P.value=!0},so=R=>{R.fullPath!==o.value&&(R.closeable=!1),P.value=!1},io=()=>{re()&&ne().then(()=>{var D;(D=t.value)==null||D.scrollTo({left:99999,behavior:"smooth"})})},ht=()=>{ne().then(()=>{const R=$e(`attr:${T}="${o.value}"`);if(R!=null&&R.length){const[D]=R;ne().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:D.offsetLeft,behavior:"smooth"})})}})},uo=()=>{i(!0)};return We(()=>a.value,(R,D)=>{C.value.forEach(Z=>{v.includes(Z.key)&&(R.length>1?Z.disabled=!1:Z.disabled=!0)}),D!=null&&D.length&&(R.length>(D==null?void 0:D.length)?io():R.length===(D==null?void 0:D.length)&&ht()),D===void 0&&ht()},{immediate:!0}),de(()=>{h.actionDropdownShow&&$t(),A!==o.value&&(A=o.value,ht())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:M,getMenuKey:o,menuTagClick:X,moreOptions:C,scrollX:Je,scrollRef:t,uuidScrollBar:g,actionDropdownSelect:Ze,actionState:h,menuTagContextMenu:ue,setCurrentContextmenuIndex:lo,menuTagMouseenter:ro,menuTagMouseleave:so,MENU_TAG_DATA:T,iconConfig:f,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:uo,isMouseInMenuTag:P}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:p,menuTagClick:m,menuTagContextMenu:S,menuTagMouseenter:_,menuTagMouseleave:d,actionDropdownSelect:b,reload:v}=this;return r(Cn,null,{default:()=>[r("div",{class:"menu-tag"},[r(De,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:b.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(L,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(E,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Dt,j({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(L,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Rs(e=o.map((w,f)=>r(J,j({key:w.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:w.fullPath===this.getMenuKey?"primary":"default"},{onClick:m.bind(this,w),onContextmenu:S.bind(this,f),onMouseenter:_.bind(this,w),onMouseleave:d.bind(this,w),[a]:w.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Lt,null,[r("span",null,{default:()=>{const{breadcrumbLabel:C,meta:{i18nKey:g}}=w;return g?p(g):C}})]),icon:()=>r(E,j({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,f)}),null)})))?e:{default:()=>[e]})]}),r(L,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(E,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(E,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{v()}},{icon:()=>r(E,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(jn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(E,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Es=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(xs,null,null)}}),Ms={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},dn=()=>({lockPassword:null}),pn=Ko(K.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),to=()=>({setLockAppScreen:t=>{pn.value=t},getLockAppScreen:()=>pn.value}),Ds=x({name:"UnlockScreen",setup(){const[e,{validate:n}]=Ir(),{logout:t}=Jn(),{updateSettingState:o}=W(),{setLockAppScreen:a}=to(),{isTabletOrSmaller:l}=Ye(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",p=le({lockCondition:dn(),HH_MM:H().format(s),AM_PM:H().format(i),YY_MM_DD:H().format(u),DDD:H().format(c)}),m=setInterval(()=>{p.HH_MM=H().format(s),p.AM_PM=H().format(i)},6e3),S=setInterval(()=>{p.YY_MM_DD=H().format(u),p.DDD=H().format(c)},864e5),_=()=>{ce(K.appLockScreenPasswordKey,"localStorage"),o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)},d=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页并且重新登录",positiveText:"确定",negativeText:"重新登录",onPositiveClick:_})},b=()=>{const v=Ie(K.appLockScreenPasswordKey,"localStorage");if(!v){window.$dialog.warning({title:"警告",content:()=>"检测到锁屏密码被修改,请重新登录",closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:"重新登录",onPositiveClick:_});return}const w=ca(v);n().then(()=>{w===p.lockCondition.lockPassword?(a(!1),o("lockScreenSwitch",!1),ce(K.appLockScreenPasswordKey,"localStorage"),p.lockCondition=dn()):window.$message.warning("密码错误,请重新输入")})};return It(()=>{clearInterval(m),clearInterval(S)}),{...we(p),backToSigning:d,unlockScreen:b,isTabletOrSmaller:l,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(eo,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r($n,{onRegister:u,model:this.lockCondition,rules:Ms},{default:()=>[r(I,{path:"lockPassword"},{default:()=>[r(zt,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(L,{justify:"space-between"},{default:()=>[r(J,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[q("返回登陆")]}),r(J,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[q("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,q(" "),r("span",null,[a]),q(" "),r("span",null,[t])])])])])])}}),zs=e=>{const n=vt(e[0]),t=vt(e[1]),o=vt(e[2]);return O(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Is=x({name:"RLayout",setup(){const e=ee(),n=ee(),t=ee(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=Y(),{getLockAppScreen:l}=to(),s=zs([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ds,null,null):r(No,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(os,null,null),r(Xt,{class:"r-layout-full__viewer"},{default:()=>[r(Ps,{ref:"layoutSiderBarRef"},null),e?r(Es,{ref:"layoutMenuTagRef"},null):null,r(Xt,{ref:xe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Qn,null,null)]}),t?r(cs,{ref:"layoutFooterRef"},null):null]})]})}}),Ls=[{path:"/",name:"RLogin",component:()=>z(()=>import("./index-BrBEr-DR.js"),__vite__mapDeps([97,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,46,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,80,81,82,38,39,57,41,42,43,44,45,47,48,49,50,51,52,53,54,98]))},{path:"/",name:"RLayout",component:Is,children:[...Xr(),{path:"/:catchAll(.*)",component:()=>z(()=>import("./index-B1QNREDs.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,46,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,48,49,50,51,52,53,54,100])),meta:{i18nKey:V("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],pt=wa({history:Ca(),routes:Ls,scrollBehavior:e=>{rr(e)}}),Bi=e=>{e.use(pt),Qr(pt)},Ut=()=>pt?{router:pt}:{router:{}},mn="YYYY-MM-DD HH:mm:ss",Fs=()=>({locale:s=>{const i=el[s];i?H.locale(i):H.locale(tl)},getStartAndEndOfDay:s=>{const{format:i=mn}=s??{},u=H(),c=u.startOf("day"),p=u.endOf("day"),m=u.format(i),S=c.format(i),_=p.format(i);return{today:u,startOfDay:c,endOfDay:p,formatToday:m,formatStartOfDay:S,formatEndOfDay:_}},format:(s,i)=>{const{format:u=mn}=i??{};return H(s).format(u)},isDayjs:s=>H.isDayjs(s),daysDiff:(s,i)=>{const u=H(s);return H(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,p=H(s);return p.isAfter(u)&&p.isBefore(c)}});function Ye(e){const{width:n,height:t}=Wo(e),o=N(!1),{observer:a}=e??{};return da(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ve(o)}}let at=999,Ot=!1;const he="ELEMENT-FULLSCREEN-RAY",fn=document.createElement("style"),Bs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const p={x:null,y:null},m=N(!1),S=()=>{const v=ae(e);if(!v)return;const{left:w,top:f}=v.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-w,p.y=-f),ct(document.body,{"--element-fullscreen-z-index":ge(i,"Null")||ge(i,"Undefined")?at:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const C=` - [${he}] { - position: fixed; - width: var(--element-fullscreen-width) !important; - height: var(--element-fullscreen-height) !important; - transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; - transition: var(--element-fullscreen-transition); - z-index: var(--element-fullscreen-z-index) !important; - background-color: var(--element-fullscreen-background-color); - } - `.trim();fn.innerHTML=C,Ot||document.head.appendChild(fn)},_=()=>{const v=ae(e);t==null||t(),v&&(v.getAttribute(he)||v.setAttribute(he,he),c||(c=!0,at+=1),Ot||(S(),Ot=!0),v.style.transition=u,m.value=!0,a==null||a())},d=()=>{o==null||o();const v=ae(e);v&&v.removeAttribute(he),m.value=!1,l==null||l()},b=()=>{const v=ae(e);v&&(v.getAttribute(he)?d():_())};return Vt(()=>{const v=ae(e);v&&v.removeAttribute(he),at=Math.max(999,at-1),m.value=!1}),{enter:_,exit:d,toggleFullscreen:b,isFullscreen:ve(m)}},kt={svg:ba,png:va,jpeg:ya,blob:ha,pixelData:ga,canvas:fa},Vi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n??{};return{create:u=>new Promise((c,p)=>{var _;const m=ae(e);if(t==null||t(m),!m)return a==null||a(),p("[useDomToImage]: target element is undefined.");(_=kt[u??s??"jpeg"])==null||_.call(kt,m,n).then(d=>(o==null||o(d,m),c(d))).catch(d=>(a==null||a(d),p(d))).finally(()=>{l==null||l(m)})})}},Ni=(e,n)=>({print:()=>{const o=ae(e)||e;ta({...Se(n,["printable"]),printable:o})}}),lt={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Vs=(e,n)=>{const t=O(()=>({...lt,...Se(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=ee(e),a={onUpdatePage:f=>{var g;const{pageChange:C}=t.value;l.value.page=f,(g=o.value)==null||g.call(o),C==null||C(f)},onUpdatePageSize:f=>{var g;const{pageSizeChange:C}=t.value;l.value.pageSize=f,l.value.page=lt.page,(g=o.value)==null||g.call(o),C==null||C(f)}},l=N(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=f=>{l.value.itemCount=f},p=()=>l.value.page,m=f=>{s(f)},S=()=>l.value.pageSize,_=f=>{i(f)},d=()=>l.value,b=o.value,v=f=>{o.value=f},w=()=>{var y;const{pageSizes:f,pageChange:C,pageSizeChange:g}=t.value;l.value.page=lt.page,l.value.pageSize=(f==null?void 0:f[0])||lt.pageSize,(y=o.value)==null||y.call(o),C==null||C(l.value.page),g==null||g(l.value.pageSize)};return Vt(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:p,setPage:m,getPageSize:S,setPageSize:_,getPagination:d,getCallback:b,setCallback:v,resetPagination:w}]},no=()=>({isLayoutContentMaximized:O(()=>gt("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=ae(xe),{toggleFullscreen:s}=Bs(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=xe==null?void 0:xe.value)==null||i.scrollTo(a))}}),Ns=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),ji=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=Y(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=W();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=W();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=W();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=Y(),{updateSettingState:l}=W();l("watermarkSwitch",!a.value)}}),rt=e=>{const{getPrimaryColorOverride:n}=Y(),{updateSettingState:t}=W();t("primaryColorOverride",e?it({},n.value,_e.appNaiveUIThemeOverrides.dark):it({},n.value,_e.appNaiveUIThemeOverrides.light))},Ui=()=>{const e=()=>{const{getAppTheme:l}=Y(),{t:s}=He();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=W();l("_appTheme",!0),l("appTheme","dark"),rt(!0)},lightTheme:()=>{const{updateSettingState:l}=W();l("_appTheme",!1),l("appTheme","light"),rt(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=W();s("_appTheme",!l),s("appTheme",l?"light":"dark"),rt(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=Y(),{updateSettingState:s}=W(),{system:i}=Tn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),rt(l.value)}}},Pe=(e,n)=>{const{getMenuTagOptions:t}=ke();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function oo(){const{getMenuTagOptions:e,getMenuKey:n}=ke(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Be(),s=()=>e.value.findIndex(d=>d.fullPath===n.value),i=d=>{const b=Pe(d,"checkCloseRight");if(b){const{index:v}=b,w=e.value.length-1;return!(v>=w)}return!1},u=d=>{const b=Pe(d,"checkCloseRight");if(b){const{index:v}=b,w=e.value.length-1;return v===0?!1:v>0&&w>0}return!1};return{close:d=>{const b=Pe(d,"close");if(e.value.length!==1&&b){const{index:v,option:w}=b;if(o(v),w.fullPath===n.value){let f=u(v)?v-1:i(v)?v:v-1;f<0&&(f=0);const C=e.value[f];C&&t(C.fullPath,C)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:d}=Xe(),{router:{getRoutes:b}}=Ut(),v=b().find(w=>w.path===d.value);if(v){const w=je(v,Et),f=l(w);t(f.path,l({...f,fullPath:f.path}))}},closeRight:d=>{const b=Pe(d,"closeRight");if(b){const{option:v,index:w}=b,f=e.value.length-w,C=s();o(w+1,f),w<=C&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeLeft:d=>{const b=Pe(d,"closeLeft");if(b){const{option:v,index:w}=b,f=s();o(0,w),f<=w&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeOther:d=>{const b=Pe(d,"closeOther");if(b){const{option:v}=b;n.value!==v.fullPath?(o(0,e.value.length),t(v.fullPath,v)):a(v,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function $i(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=Ut(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=ke();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=c.value[n],m=S=>{if(S.children&&S.children.length>0){const{children:[_]}=S;m(_);return}u(S.fullPath)};m(p)}else if(typeof n=="string"){const c=o().find(p=>p.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Xe(){const{getAppRootRoute:e}=Y(),{updateSettingState:n}=W(),t=e,o=O(()=>e.value.path),a=O(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const js=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Wn(e)},gn=(e,n,t)=>{const o=Hn(e,n);o&&js(o,t)},At=(e,n,t)=>{const{getMenuOptions:o}=ke();if(typeof e=="string")gn(o.value,e,t);else if(ge(e,"Object")){const{fullPath:a}=e;gn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ki(){return{hidden:o=>{At(o,"hidden",{show:!1})},show:(o,a)=>{At(o,"show",{...a,show:!0})},update:(o,a)=>{At(o,"update",a)}}}const Wi=()=>{const e=zn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},ao=()=>Ie(K.localeLanguage,"localStorage",{defaultValue:Za});export{xi as $,bi as A,Dn as B,_t as C,el as D,gi as E,Ei as F,Xa as G,wi as H,Oi as I,ki as J,Ai as K,zn as L,yi as M,Ii as N,zi as O,Pi as P,Vs as Q,$n as R,ts as S,Ti as T,ln as U,_r as V,jr as W,Mi as X,Fs as Y,Di as Z,z as _,Vi as a,rs as a0,Fi as a1,Si as a2,Er as a3,jn as a4,no as a5,Ki as a6,ji as a7,Ns as a8,$i as a9,Ni as b,Wi as c,_i as d,Y as e,K as f,hi as g,_e as h,eo as i,Ir as j,W as k,dn as l,to as m,Ri as n,gt as o,Jn as p,vi as q,Ms as r,tl as s,Li as t,Ui as u,Ci as v,Bi as w,He as x,Xe as y,E as z}; diff --git a/js/hooks-CkuihJ2J.js.gz b/js/hooks-CkuihJ2J.js.gz deleted file mode 100644 index 403c0873..00000000 Binary files a/js/hooks-CkuihJ2J.js.gz and /dev/null differ diff --git a/js/hooks-MEhk8snd.js b/js/hooks-MEhk8snd.js new file mode 100644 index 00000000..db77e2aa --- /dev/null +++ b/js/hooks-MEhk8snd.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-Dq6Dps7m.js","js/dayjs@1.11.13-DqFijdaO.js","js/classnames@2.5.1-CU_BXU7G.js","js/print-js@1.6.0-jNcZ-gME.js","js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js","js/@vue_reactivity@3.5.25-CWykDyL9.js","js/@vue_shared@3.5.25-ClSOc5xY.js","js/@vue_runtime-core@3.5.25-CyFcdXRD.js","js/lodash-es@4.17.21-CFdI1ypR.js","js/js-cookie@3.0.5-W_rRtFe1.js","js/screenfull@5.2.0-wmrknyQD.js","js/jsbarcode@3.11.6-DMXogPYv.js","js/@logicflow_core@2.0.10-BJ3yfRtr.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js","js/preact@10.25.4-HyjdtmFg.js","js/mobx@5.15.7-iy9XXgsZ.js","js/uuid@9.0.1-CtRu48qb.js","js/mousetrap@1.6.5-B3zpTV0k.js","js/mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js","css/@logicflow_core@2.0-BC0aJRlU.css","js/currency.js@2.0.4-BSkspdt3.js","js/crypto-js@4.2.0-Bv3pmx0c.js","js/@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js","js/@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js","js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js","js/date-fns@4.1.0-D7sOP3Nv.js","js/seemly@0.3.10-8_5gPa5q.js","js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js","js/evtd@0.2.4-w6UMCrcr.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js","js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js","js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js","js/@juggle_resize-observer@3.4.0-DB6f1vmu.js","js/css-render@0.15.14-DTtBB2Mk.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.25-qbdLeVMc.js","js/treemate@0.3.11-fnkdj-jo.js","js/date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js","js/async-validator@4.2.5-B7g11KvB.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js","js/utils-DJW6-rvp.js","js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js","js/destr@2.0.5-Ctyiwlcu.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js","js/html-to-image@1.11.13-DOj4Zvaj.js","js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js","js/@intlify_core-base@11.1.3-Cez6J5Vx.js","js/@intlify_shared@11.1.3-Byx4ULsF.js","js/@intlify_message-compiler@11.1.3-DphV8pYf.js","js/echarts@6.0.0-DFotDgc6.js","js/tslib@2.3.0-Cg4x8ZAA.js","js/zrender@6.0.0-Co73lGCa.js","js/interactjs@1.10.27-C3ZPOoID.js","js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js","js/zh-CN-HLgExb6j.js","js/index-nfCdj-8A.js","js/index-BQlPRast.js","css/index-BPwDcGFh.css","js/index-llSjcbyI.js","js/instance-Bux9_MkW.js","js/axios@1.10.0-CIcuZHni.js","css/index-C60eEB5E.css","js/barcode-demo-Co5GUWlj.js","js/index-Bt4vBrub.js","js/index-DZYpO7kn.js","js/index-DiIbgQo6.js","js/draggable-card-BA24M5Dj.js","js/index-BrcumBWX.js","css/index-D9y7XLpS.css","js/flow-demo-C04s4ly-.js","js/index-BJnstanh.js","js/index-BgBmu4a-.js","js/index-CIsp7w5g.js","js/index-Ibzn0E51.js","js/index-BUFGnh7y.js","js/index-TjBxxqB0.js","js/index-d93jGPsr.js","js/index-CzoSBfAh.js","js/index-C7mgCAXH.js","js/ray-dCjhX_JK.js","js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js","css/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9-B14JuMU_.css","js/index-CJpvt_SU.js","css/index-C7SBslZD.css","js/index-0rD7dKw8.js","js/index-CZ5DBchu.js","js/index-yS3d6kCX.js","css/index-CCBgYJcK.css","js/index-CVDGfTQ-.js","js/index--yA71HyB.js","css/index-Bit-kagu.css","js/table-auto-height-Bd5VtpfW.js","js/mockjs@1.1.0-Dou1YATw.js","js/table-pro-demo-Djhkc3wC.js","js/index-CM8XEO16.js","js/index-Dn4lWhUi.js","js/index-By2MYI7e.js","css/index-DQkqgkwV.css","js/index-gW2CZArc.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]); +import{o as so,u as Re,a as io,b as un,c as uo,d as ct,e as cn,f as co}from"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import{s as Q,k as B,n as me,a as dn,h as ne,y as be,u as Z,o as po}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{n as G,j as ie,m as A,d as l,T as fo,p as U,q as oe,f as O,l as _e,t as fe,w as Ue,v as mo,x as Tt,i as Se,h as lt,F as pn,y as fn,z as go,A as ho,C as vo,D as Oe,E as dt,G as Be,H as yo,S as bo,K as _o,I as It,J as W}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{s as pt,c as ge,m as tt,z as we,q as Ot,w as mn,p as xe,A as So}from"./lodash-es@4.17.21-CFdI1ypR.js";import{d as Lt,z as Ft,c as wo,N as Ee,g as Co,f as To,a as Oo,b as ko,e as z,h as Ke,u as Ao,S as kt,m as Po,i as gn,j as Ro,k as Me,l as xo,n as Eo,o as Ne,p as hn,q as Mo,r as de,t as Do,s as vn,v as zo,w as Io,x as yn,y as Lo,B as J,A as Fo,C as D,D as At,E as nt,F as Bt,G as bn,H as Bo,I as Vo,J as _n,K as No,L as Sn,M as jo,O as Uo,P as te,Q as Ko,R as Vt,T as ee,U as H,V as $o,W as Wo,X as qo,Y as Xe,Z as Ho,_ as Go,$ as Nt}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{d as q}from"./dayjs@1.11.13-DqFijdaO.js";import{p as Yo}from"./print-js@1.6.0-jNcZ-gME.js";import{u as wn}from"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import{b as Xo}from"./jsbarcode@3.11.6-DMXogPYv.js";import{L as jt}from"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{g as De,i as pe,s as Ae,a as bt,c as Jo,u as Pt,b as _t,d as j,e as ye,q as je,f as Cn,l as Tn,h as Zo,r as he,j as Qo,k as F,m as On,n as ot,o as Rt,p as kn,t as ea,v as Ut,w as se,x as ta,y as An,z as na,A as oa,B as aa,C as la}from"./utils-DJW6-rvp.js";import{i as ra}from"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import{d as rt,c as sa}from"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import{t as ia,a as ua,b as ca,c as da,d as pa,e as fa}from"./html-to-image@1.11.13-DOj4Zvaj.js";import{T as Pn,a as ma}from"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import{c as ga}from"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import{r as ha,u as Ve,i as va,a as ya,b as ba,c as _a,d as Sa,e as wa,f as Ca,g as Ta,h as Oa,j as ka,k as Aa,l as Pa,m as Ra,n as xa,o as Ea,p as Ma,q as Da,s as za}from"./echarts@6.0.0-DFotDgc6.js";import{j as Ia}from"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import{i as Kt}from"./interactjs@1.10.27-C3ZPOoID.js";import{u as $e,a as La,o as Fa,c as Ba,b as Va}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";const Na={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--r-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--r-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},ci={max:5,closable:!1},di="loading",pi="",K={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appMenuTagOptions:"appMenuTagOptions",appLockScreenPasswordKey:"appLockScreenPasswordKey"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ve={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgba(18, 18, 18, 1)"}},light:{common:{borderRadius:"4px",baseColor:"rgba(255, 255, 255, 1)"}}},echartTheme:"macarons"},Rn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Ua="zh-CN",Ka="zh-CN",$a={"zh-CN":"zh-cn","en-US":"en"},Wa="zh-cn",fi={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},mi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xt=Q(null),xn=Q(null),qa=["RLogin","ErrorPage","RayTemplateDoc"],$t=[],gi=(e,n)=>{const t=B(0),o=B(0),a=B(!1),{clickOutside:r}={},s=f=>{a.value=f},i=f=>{f.preventDefault(),s(!1),G().then(()=>{const{clientX:S,clientY:_}=f;t.value=S,o.value=_,s(!0)})};r&&so(e,f=>{r(f)});const u=Re(e,"contextmenu",i,n),c=Re(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:me(t),y:me(o),show:me(a),updateShow:s}},hi=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let r=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=r.lastIndexOf(".");r=r.substring(0,s);const i=r.split("/"),u=i.shift(),c=i.join(".");u&&(c?(pt(t,u,t[u]||{}),pt(t[u],c,a)):pt(t,u,a||{}))}),t},Ha="modulepreload",Ga=function(e){return"/ray-template/"+e},Wt={},E=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){let u=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=s?.nonce||s?.getAttribute("nonce");a=u(t.map(c=>{if(c=Ga(c),c in Wt)return;Wt[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const S=document.createElement("link");if(S.rel=d?"stylesheet":Ha,d||(S.as="script"),S.crossOrigin="",S.href=c,i&&S.setAttribute("nonce",i),document.head.appendChild(S),d)return new Promise((_,b)=>{S.addEventListener("load",_),S.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&r(i.reason);return n().catch(r)})},Ya=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Xa=async e=>{const n={};for(const t of e){const o=await Ya(Object.assign({"../lang/en-US.ts":()=>E(()=>import("./en-US-Dq6Dps7m.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),"../lang/zh-CN.ts":()=>E(()=>import("./zh-CN-HLgExb6j.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]))}),`../lang/${t.key}.ts`,3),a=t.key;a&&(n[a]=o?.default?.message??{})}return n},vi=e=>{switch(e){case"zh-CN":return{locale:Ft,dateLocal:Lt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Ft,dateLocal:Lt}}},En=()=>De(K.localeLanguage,"localStorage",{defaultValue:Ua});let ue;const Ja=async()=>{const e=En(),n=await Xa(Rn);return ga({locale:e,messages:n,missingWarn:!1,fallbackLocale:Ka})},yi=async e=>{const n=await Ja();e.use(n),ue=n},qt=(e,n)=>n,We=e=>{if(!ue)return{t:r=>qt(e,r),locale:r=>{}};const{t:n,...t}=ue.global;return{...t,t:(r,...s)=>r?!r.includes(".")&&!e?r:n(qt(e,r),...s):"",locale:r=>{ue.mode==="legacy"?ue.global.locale=r:dn(ue.global.locale)?ue.global.locale.value=r:ue.global.locale=r}}},V=e=>e,Za={path:"/dashboard",component:()=>E(()=>import("./index-nfCdj-8A.js"),__vite__mapDeps([56,57,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39,20,21,2,1,3,4,9,10,11,12,13,14,15,16,17,18,19,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,58])),meta:{i18nKey:V("menu.Dashboard"),icon:"dashboard",order:0}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/axios",name:"RAxios",component:()=>E(()=>import("./index-llSjcbyI.js"),__vite__mapDeps([59,60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,61,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54,62])),meta:{i18nKey:V("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"barcode",component:()=>E(()=>import("./barcode-demo-Co5GUWlj.js"),__vite__mapDeps([63,20,21,2,1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,11,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/cache-demo",component:()=>E(()=>import("./index-Bt4vBrub.js"),__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.CacheDemo"),icon:"other",order:3}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/context-menu",component:()=>E(()=>import("./index-DZYpO7kn.js"),__vite__mapDeps([65,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.ContextMenu"),icon:"other",order:2}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/directive",component:()=>E(()=>import("./index-DiIbgQo6.js"),__vite__mapDeps([66,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{i18nKey:V("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/draggable-card",component:()=>E(()=>import("./draggable-card-BA24M5Dj.js"),__vite__mapDeps([67,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/echart",component:()=>E(()=>import("./index-BrcumBWX.js"),__vite__mapDeps([68,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,69])),meta:{i18nKey:V("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),ml={path:"/flow",component:()=>E(()=>import("./flow-demo-C04s4ly-.js"),__vite__mapDeps([70,20,21,2,1,3,4,5,6,7,8,9,10,11,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,12,13,14,15,16,17,18,19,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Flow"),icon:"other",order:2}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),hl={path:"/form",component:()=>E(()=>import("./index-BJnstanh.js"),__vite__mapDeps([71,60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,61,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/iframe",component:()=>E(()=>import("./index-BgBmu4a-.js"),__vite__mapDeps([72,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"/mock-demo",component:()=>E(()=>import("./index-CIsp7w5g.js"),__vite__mapDeps([73,60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,61,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/modal-demo",component:()=>E(()=>import("./index-Ibzn0E51.js"),__vite__mapDeps([74,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Modal"),icon:"other",order:3}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),et=()=>E(()=>Promise.resolve().then(()=>as),void 0),Tl={path:"/multi",component:et,meta:{i18nKey:V("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>E(()=>import("./index-BUFGnh7y.js"),__vite__mapDeps([75,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:et,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>E(()=>import("./index-TjBxxqB0.js"),__vite__mapDeps([76,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:et,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>E(()=>import("./index-d93jGPsr.js"),__vite__mapDeps([77,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/precision",component:()=>E(()=>import("./index-CzoSBfAh.js"),__vite__mapDeps([78,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.CalculatePrecision"),icon:"other",order:2}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Pl={path:"/qrcode",component:()=>E(()=>import("./index-C7mgCAXH.js"),__vite__mapDeps([79,80,81,7,5,6,82,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{i18nKey:V("menu.QRCode"),icon:"other",order:2}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),xl={path:"rely-about",component:()=>E(()=>import("./index-CJpvt_SU.js"),__vite__mapDeps([83,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39,84])),meta:{i18nKey:V("menu.RelyAbout"),icon:"rely",order:999}},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),Ml={path:"/router-demo",component:et,meta:{i18nKey:V("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>E(()=>import("./index-0rD7dKw8.js"),__vite__mapDeps([85,20,21,2,1,3,54,7,5,6,11,12,13,14,15,8,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,4,9,10,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>E(()=>import("./index-CZ5DBchu.js"),__vite__mapDeps([86,54,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Dl=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),zl={path:"/scroll-reveal",component:()=>E(()=>import("./index-yS3d6kCX.js"),__vite__mapDeps([87,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39,88])),meta:{i18nKey:V("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/segment",component:()=>E(()=>import("./index-CVDGfTQ-.js"),__vite__mapDeps([89,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Bl={path:"/svg-icons",component:()=>E(()=>import("./index--yA71HyB.js"),__vite__mapDeps([90,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,91])),meta:{i18nKey:V("menu.SvgIcon"),icon:"other",order:3}},Vl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/table-auto-height",name:"RTableAutoHeight",component:()=>E(()=>import("./table-auto-height-Bd5VtpfW.js"),__vite__mapDeps([92,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,93,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TableAutoHeight"),icon:"other",order:3,extra:{label:"new"}}},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),Ul={path:"/table-pro",component:()=>E(()=>import("./table-pro-demo-Djhkc3wC.js"),__vite__mapDeps([94,60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,20,21,61,93,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),$l={path:"/table",component:()=>E(()=>import("./index-CM8XEO16.js"),__vite__mapDeps([95,40,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Wl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),ql={path:"/template-hooks",component:()=>E(()=>import("./index-Dn4lWhUi.js"),__vite__mapDeps([96,20,21,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),meta:{i18nKey:V("menu.TemplateHooks"),icon:"other",order:1}},Hl=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"})),Gl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Qa,"/src/router/modules/demo/axios.ts":tl,"/src/router/modules/demo/barcode.ts":ol,"/src/router/modules/demo/cache-demo.ts":ll,"/src/router/modules/demo/context-menu.ts":sl,"/src/router/modules/demo/directive.ts":ul,"/src/router/modules/demo/draggable-card.ts":dl,"/src/router/modules/demo/echart.ts":fl,"/src/router/modules/demo/flow.ts":gl,"/src/router/modules/demo/form.ts":vl,"/src/router/modules/demo/iframe.ts":bl,"/src/router/modules/demo/mock.ts":Sl,"/src/router/modules/demo/modal.ts":Cl,"/src/router/modules/demo/multi-menu.ts":Ol,"/src/router/modules/demo/precision.ts":Al,"/src/router/modules/demo/qrcode.ts":Rl,"/src/router/modules/demo/rely.ts":El,"/src/router/modules/demo/router-demo.ts":Dl,"/src/router/modules/demo/scroll-reveal.ts":Il,"/src/router/modules/demo/segment.ts":Fl,"/src/router/modules/demo/svg-icons.ts":Vl,"/src/router/modules/demo/table-auto-height.ts":jl,"/src/router/modules/demo/table-pro.ts":Kl,"/src/router/modules/demo/table.ts":Wl,"/src/router/modules/demo/template-hooks.ts":Hl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},Yl=e=>e[0]==="/",Mn=(e,n=[],t="")=>{if(!Array.isArray(e))return[];for(const o of e){const a=t+(Yl(o.path)?o.path:"/"+o.path);if(o.children?.length){Mn(o.children,n,a);continue}else n.push({...o,path:a})}return n},Xl=e=>Array.isArray(e)?Mn(ge(e)):[],Jl=e=>e.sort((n,t)=>{const o=n.meta?.order??1,a=t.meta?.order??0;return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),Zl=e=>{const{beforeEach:n}=e,{getRootPath:t}=Ge(),o=(a,r)=>a.path==="/"||r.path==="/login";n((a,r,s)=>{const i=De(K.token,"localStorage"),u=De(K.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:d}=a;i!==null?o(a,r)?ft(!0):!pe(d,"Symbol")&&d&&qa.includes(d)?s():Yn(c)?o(a,r)?u?s(u):ft(!0):s():ft(!0):o(a,r)?s():s("/")})},ft=(e=!0)=>{const{router:n}=Mt(),{push:t,replace:o}=n,{getRootPath:a}=Ge();Ae(K.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},Ql=e=>{const{meta:n}=e;n?.ignoreAutoResetScroll||xt.value?.scrollTo({top:0,left:0,behavior:"smooth"})},er=e=>{e.beforeEach(()=>{window.$loadingBar?.start()}),e.afterEach(()=>{window.$loadingBar?.finish()}),e.onError(()=>{window.$loadingBar?.error()})},Dn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:r}=bt();return!(o||t||a&&typeof a=="string"&&a!==r||a&&Array.isArray(a)&&!a.includes(r))},tr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},zn=()=>tr,ze=rt("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=ve,{locale:t}=We(),{locale:o}=xs(),a=ne({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:En(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...ge(zn())}),r=c=>{t(c),o(c),Ae(K.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,d=.85)=>{const f=Jo(c,d),S={primaryColor:c,primaryColorHover:f,primaryColorPressed:c,primaryColorSuppl:f},{rayTemplateThemePrimaryColor:_,rayTemplateThemePrimaryFadeColor:b}=Na,m=document.documentElement;a.primaryColorOverride.common=S,m.style.setProperty(_,c),m.style.setProperty(b,f)},i=(c,d,f)=>{Pt(a,c,d,f)},u=c=>{const d=document.documentElement;i("colorWeakness",c),_t(d,{filter:c?"invert(100%)":""})};return ie(()=>{a._appTheme?a.primaryColorOverride=tt({},a.primaryColorOverride,ve.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=tt({},a.primaryColorOverride,ve.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=a.sideBarLogo?.title||"Ray Template")}),{...be(a),updateLocale:r,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:K.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),In=()=>Jl(Gl()),nr=()=>Xl(In()),St=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"],or={...wo,restrictionElement:{type:[String,HTMLElement,Function,Object],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},bi=A({name:"RDraggableCard",props:or,setup(e,{expose:n}){const t=oe("cardRef");let o=null;const a={x:0,y:0},r="r-draggable-card-container",s=O(()=>({"--r-draggable-card-width":j(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;const u={defaultPosition:e.defaultPosition,dad:e.dad};(()=>{if(!document.getElementById(r)){const m=document.createElement("div");m.id=r,document.documentElement.appendChild(m)}})();const d=()=>{const m=ye(t),w=typeof e.restrictionElement=="string"?je(e.restrictionElement):e.restrictionElement;let g=null;return Array.isArray(w)?g=w[0]:g=ye(w),{card:m,restrictionElement:g}},f=(m,w)=>{const{defaultPosition:g,padding:p}=e,{x:y=0,y:C=0}=p??{},{x:h,y:v,width:T,height:k}=m,{width:I,height:P}=w;if(typeof g=="string")switch(g){case"top-center":{const M=(T-I)/2+h,L=C+v;return{x:y+M,y:L}}case"bottom-center":{const M=(T-I)/2+h,L=k-P-C+v;return{x:y+M,y:L}}case"center":{const M=(T-I)/2+h,L=(k-P)/2+v,X=y+M,ae=C+L;return{x:X,y:ae}}case"top-left":return{x:y+h,y:C+v};case"top-right":return{x:T-I-y+h,y:C+v};case"bottom-left":return{x:y+h,y:k-P-C+v};case"bottom-right":return{x:T-I-y+h,y:k-P-C+v};default:return{x:y+h,y:C+v}}else{const{x:M,y:L}=g;return{x:M+h+y,y:L+v+C}}},S=()=>{const{card:m,restrictionElement:w}=d();if(!m)return;const g=w?.getBoundingClientRect(),p=m.querySelector(".n-card-header"),y=Object.assign({},{restriction:w,endOnly:!0},e.restrictRectOptions);if(g&&!i){const C=f(g,m.getBoundingClientRect());m.style.transform=`translate(${C.x}px, ${C.y}px)`,a.x=C.x,a.y=C.y}e.dad&&(o=Kt(m).draggable({inertia:!0,autoScroll:!0,allowFrom:p?".n-card-header":".n-card__content",modifiers:[Kt.modifiers.restrictRect(y)],listeners:{move:C=>{m.setAttribute("can-drag","true"),a.x+=C.dx,a.y+=C.dy,m.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0)},_=()=>{o?.unset(),o=null},b=m=>{i=!1,m(),S()};return n(),ie(()=>{e.dad?S():_(),e.defaultPosition!==u.defaultPosition&&b(()=>{u.defaultPosition=e.defaultPosition})}),_e(()=>{G(()=>{S()})}),{cardRef:t,CONTAINER_ID:r,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:r}=this;return l(fo,{to:`#${o}`},{default:()=>[r?l(Pn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[l(Ee,U(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):l(Ee,U(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),Ln={actionSpan:{type:Number,default:1},actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...Co},Fn={...we(To,["onSubmit"]),loading:{type:Boolean,default:!1},loadingDescription:{type:String,default:void 0},autocomplete:{type:String,default:"off"},submitWhenEnter:{type:Boolean,default:!1},onFinish:{type:Function,default:null},onRegister:{type:[Function,Array],default:null}};function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const lr=Object.assign({},Fn,{...Ln,open:{type:Boolean,default:!0},cols:{type:[Number,String],default:"4 xs:1 s:2 m:2 l:4 xl:4 2xl:6"},bordered:{type:Boolean,default:!0},responsive:{type:String,default:"screen"}}),_i=A({name:"RCollapse",props:lr,render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return l(jn,U(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[l(ur,a,ar(e)?e:{default:()=>[e]})]})}}),rr=Symbol("USE_CHART_PROVIDER_KEY"),sr={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Tn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},watchDeep:{type:Boolean,default:!0},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Cn()},onRegister:{type:[Function,Array],default:null}},ir=Zo(),Ht="__R_CHART_DOWN_LOAD_CHART__";ir.forEach(e=>{ha(e.name,e.theme)});const Si=A({name:"RChart",props:sr,setup(e,{expose:n}){const{getAppTheme:t}=Y(),o=oe("chartRef"),a=oe("rayChartWrapperRef"),r=Q();let s,i;const{echartTheme:u}=ve;let c;const d=O(()=>[{label:"下载图片",key:Ht,disabled:!(r.value&&r.value.getDom())}]),f=O(()=>({"--r-chart-width":j(e.width),"--r-chart-height":j(e.height)})),S=B(!1);let _;const b={aria:e.showAria},m=Se(rr,{}),w=async()=>{Ve([ya,ba,_a,Sa,wa,Ca,Ta,Oa]),Ve([ka,Aa,Pa,Ra,xa,Ea]),Ve([Ma,Da]),Ve([za]);try{Ve(e.use?.filter(Boolean))}catch{}},g=()=>{const{theme:P}=m||{};if(r.value&&h(),P){y(P);return}if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const M=e.autoChangeTheme&&t.value?`${u}-dark`:u;y(M)}},p=P=>{let M=Z(P);return M=(X=>Object.assign({},M,X))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),M},y=(P=u)=>{const M=o.value,L=p(e.options),{height:X,width:ae}=M.getBoundingClientRect(),{onSuccess:Fe,onError:Ye}=e;try{r.value=va(M,P,{width:ae===0?200:void 0,height:X===0?200:void 0}),Fe&&F(Fe,r.value),e.nextTick?G(()=>{L&&r.value?.setOption(L)}):L&&r.value?.setOption(L)}catch(Te){throw Ye&&F(Ye),new Error(`[RChart render error]: ${Te}`)}finally{const{onFinally:Te}=e;Te&&F(Te)}},C=()=>!!r.value?.isDisposed(),h=()=>{C()||r.value?.dispose()},v=()=>{r.value&&r.value.resize()},T=(P,M)=>{if(P===Ht&&!C()){const{filename:X,...ae}=e.downloadOptions;Qo(r.value.getDataURL(ae),X??`${new Date().getTime()}`)}const{onDropdownSelect:L}=e;L&&F(L,P,M)},k=()=>{if(e.autoResize&&(s||(s=Ot(v,500)),i||(i=un(e.autoResizeObserverTarget||a,s))),r.value?.getDom()||!S.value&&e.intersectionObserver)return;g(),_?.stop();const{onRegister:P}=e;P&&r.value&&F(P,r.value,k,I)},I=()=>{h(),s?.cancel(),i?.stop(),_?.stop(),_=null,s=null,i=null};return Ue(()=>t.value,()=>{e.autoChangeTheme&&(h(),g())}),ie(()=>{e.intersectionObserver?(_?.stop(),_=io(e.intersectionObserverTarget||a,([P])=>{S.value=P.isIntersecting},e.intersectionOptions)):_?.stop(),e.watchOptions?(c?.(),c=Ia(()=>e.options,P=>{const M=p(P),L=Object.assign({},Cn(),e.setChartOptions);r.value?.setOption(M,L)},{deep:e.watchDeep,throttle:e.watchOptionsThrottleWait})):c?.(),e.loading?r.value?.showLoading(Tn(e.loadingOptions)):r.value?.hideLoading(),e.showAria!==b.aria&&r.value&&(r.value.setOption(p(e.options)),b.aria=e.showAria),S.value&&!C()&&k()}),n(),mo(async()=>{await w()}),_e(()=>{k()}),Tt(()=>{I(),c?.()}),{chartRef:o,cssVarsRef:f,rayChartWrapperRef:a,moreDropDownOptions:d,dropdownSelect:T}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:r,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?l(Ee,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:r,embedded:!0},{default:he(l("div",{class:"ray-chart__container",ref:"chartRef"},null)),header:he(e,{defaultElement:l("div",{style:"display: none;"},null)}),"header-extra":he(i,{defaultElement:l(Vn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):l("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[l("div",{class:"ray-chart__container",ref:"chartRef"},null)])}}),wi=()=>{let e,n,t;const o=(u,c,d)=>{u&&(e=u,n=d,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>!!a().echartInst?.isDisposed(),dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},ur=A({name:"RCollapseGrid",props:Ln,setup(e){const n=B(!e.open),t=O(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:r,"onUpdate:open":s}=e;n.value=!n.value,r&&F(r,n.value),s&&F(s,n.value)},a=r=>l("div",{class:"collapse-icon",onClick:o.bind(this)},[l("span",null,[r?e.collapseToggleText[0]:e.collapseToggleText[1]]),l(R,{customClassName:`collapse-icon--arrow ${r?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ie(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:r,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:d,bordered:f}=this;return l(Ee,{bordered:f,style:[c]},{default:()=>l(Oo,U({class:"ray-collapse-grid"},a,{collapsed:r,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t?.(),l(ko,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:d},{default:()=>[l(z,{justify:"end",align:"center"},{default:()=>[n?.(),e?e(r):o(r)]})]})]})})}}),cr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},R=A({name:"RIcon",props:cr,setup(e){const n=O(()=>`#${e.prefix}-${e.name}`),t=O(()=>({"--r-icon-width":e.width?j(e.width):j(e.size),"--r-icon-height":e.height?j(e.height):j(e.size),"--r-icon-depth":e.depth,"--r-icon-cursor":e.cursor,"--r-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:r}=e;r&&F(r,a)}}},render(){return l("span",{class:["r-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick},[l("svg",{RIconAttribute:"r-icon",ariaHidden:!0},[l("use",U({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),dr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Ci=A({name:"RIframe",props:dr,setup(e,{expose:n}){const t=O(()=>({"--r-iframe-frameborder":j(e.frameborder),"--r-iframe-width":j(e.width),"--r-iframe-height":j(e.height)})),o=oe("iframeRef"),a=B(!0),r=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return Re(o,"load",r),Re(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return l("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[l(Ke,U(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>l("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),pr="r-modal__preset-card--fullscreen",Bn="r-modal",Pe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},fr=()=>{const{create:e,destroyAll:n}=Ao();return{create:o=>{const{content:a,...r}=o;let s=a;r.preset==="card"&&r.fullscreen&&(s=()=>lt(kt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"hover",style:{width:"auto",maxHeight:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,fullscreen:u,width:c,cardWidth:d,dialogWidth:f}=o,S=e({...r,content:s}),{key:_}=S,b={[Pe.width]:j(c??600),[Pe.cardWidth]:j(d??600),[Pe.dialogWidth]:j(f??446)};return G(()=>{const[m]=je(`[internalkey="${_}"]`)||[];m&&(u&&i==="card"&&_t(m,{width:"100%",height:"100vh"}),_t(m,b),On(m,Bn))}),S},destroyAll:n}},mr={...Po,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},Ti=A({name:"RModal",props:mr,setup(e){const n=O(()=>({[Pe.width]:j(e.width??600),[Pe.cardWidth]:j(e.cardWidth??600),[Pe.dialogWidth]:j(e.dialogWidth??446)})),t=ot(),o=O(()=>e.preset==="card"&&e.fullscreen);return{cssVars:n,isFullscreenCardType:o,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:r,uuidEl:s,isFullscreenCardType:i}=this;return l(gn,U({class:[Bn,i?pr:""],style:[r,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),gr={...Ro,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function hr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const Vn=A({name:"RMoreDropdown",props:gr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return l(Me,U(this.$props,this.$attrs,{placement:"bottom-start"}),hr(e=he(a,{defaultElement:l(R,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Nn=(e,n,t)=>{if(e.length)for(const o of e){if(o[n]===t)return o;if(o?.children?.length){const a=Nn(o.children,n,t);if(a)return a}}},Gt=e=>{const n=Z(e);return n?n.findIndex(o=>{const{type:a,multiple:r}=o;if(a==="selection"&&(r==null||r===!0))return!0})!==-1:!0},vr=(e,n,t,o)=>{const a=Z(e);return a?n.reduce((r,s)=>{const i=Z(t).findIndex(c=>c[o]===s);if(i!==-1)return r.push(Z(t)[i]),r;const u=a.findIndex(c=>c[o]===s);return u!==-1&&r.push(a[u]),r},[]):t},Oi=(e,n,t)=>{const o=B([]),a=B([]),{rowKey:r="key",onChange:s}=t||{},i=O(()=>Gt(n)),u=(g,p,y)=>{o.value=g,a.value=Z(vr(e,g,a,r)),s?.(g,a.value,y),Gt(n)},c=()=>o.value,d=()=>a.value,f=()=>{o.value=[],a.value=[],s?.(o.value,a.value,{row:void 0,action:"uncheckAll"})},S=g=>{if(g==null)return;let p;o.value=o.value.filter(y=>y!==g),a.value=a.value.filter(y=>y[r]===g?(p=y,!1):!0),s?.(o.value,a.value,{row:p,action:"uncheck"})},_=g=>{if(o.value.includes(g))return;const p=!i.value&&o.value.length>=1,y=Nn(Z(e)||[],r,g);p?o.value=[g]:o.value.push(g),y&&(p?a.value=[y]:a.value.push(y),s?.(o.value,a.value,{row:y,action:"check"}))},b=g=>{g.forEach(p=>_(p))},m=g=>{o.value.includes(g)?S(g):_(g)},w=g=>o.value.includes(g);return Rt(()=>{f()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:d,clearAll:f,clearKey:S,selectKey:_,selectKeys:b,toggleKey:m,isKeySelected:w}]},yr=()=>{const e=Q(),n=Q({}),t=(b,m)=>{b&&(e.value=b,n.value=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:b=>o().downloadCsv.call(null,b),filters:b=>o().filters.call(null,b),page:b=>o().page.call(null,b),scrollTo:b=>o().scrollTo(b),sort:(b,m)=>o().sort.call(null,b,m),print:b=>{const{uuidWrapper:m}=n.value??{};if(m){const w=document.getElementById(m);kn(w,b)}},filter:b=>o().filter.call(null,b),getTableConfig:()=>n.value}]},Ie={...xo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null},flexAutoHeight:{type:Boolean,default:!1}},re={tableIconSize:"18",tableKey:Symbol("r-table")},br=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],_r=()=>l(R,{name:"draggable",size:14,cursor:"grab"},null),Yt=({icon:e,title:n,onClick:t,customClassName:o})=>l(Ne,{showArrow:!1},{trigger:()=>l(R,{name:e,size:re.tableIconSize,cursor:"pointer",customClassName:o,onClick:t?.bind(null)},null),default:()=>n}),wt=(e,n)=>{if(!n)return[null,null];for(let t=0;tge(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:d,title:f,children:S,fixed:_,isResizable:b,...m}=u,w=_==="left",g=_==="right",p={...m,title:f,key:d,fixed:_,isLeftFixedActivated:w,isRightFixedActivated:g,isResizable:b};return{...p,suffix:()=>l(z,{style:"padding-left: 32px;"},{default:()=>[l(Yt,{icon:"row_head",title:"固定在列首",customClassName:w?mt:"",onClick:r.bind(this,"left",p,c)},null),l(Ne,{showArrow:!1},{trigger:()=>l(R,{name:"resize_h",size:re.tableIconSize,cursor:"pointer",customClassName:b?mt:"",onClick:a.bind(this,p,c)},null),default:()=>"修改列宽"}),l(Yt,{icon:"row_end",title:"固定在列尾",customClassName:g?mt:"",onClick:r.bind(this,"right",p,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&G(()=>{F(u,i)})},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},r=(i,u,c)=>{const d=`${i}FixedActivated`,f=`${i==="left"?"right":"left"}FixedActivated`;u[f]=!1,u[d]=!u[d],u[d]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[d,f]=wt(u,t.value);if(d===null||f===null)return;d.splice(f,1);const[S,_]=wt(i,t.value);S===null||_===null||(c==="before"?S.splice(_,0,u):S.splice(_+1,0,u),mn(n)||S.unshift(n),o(S))}}},render(){return l(Ne,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>l(R,{name:"setting",size:re.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>l(Eo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:_r.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),wr=A({name:"TableFullscreen",setup(){const{wrapperRef:e}=Se(re.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=wn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return l(R,{name:"fullscreen",size:re.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),Cr=A({name:"TablePrint",props:Ie,setup(e){const{wrapperRef:n}=Se(re.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:r}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof r=="string"?r:""),kn(n,{printOptions:o,domToImageOptions:a})}}},render(){return l(R,{name:"print",size:re.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Tr=A({name:"TablePropsSelect",props:{...Ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=B(!1),t=B([]),o=r=>{const{onPopselectChange:s}=e;s&&F(s,r)};return(()=>{const{striped:r,bordered:s,onInitialed:i}=e;r&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return l(hn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:br,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[l(R,{name:"expanded",size:re.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}}),Or=A({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ie},setup(e){return{size:B(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:r}=e;r&&F(r,a)}}},render(){return l(hn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[l(R,{name:"adjustment",size:re.tableIconSize,cursor:"pointer"},null)]})}});function kr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const Xt=A({name:"RTable",inheritAttrs:!1,props:Ie,setup(e,n){const{expose:t}=n,o=oe("rTableInst"),a=oe("wrapperRef"),r=ot(16),s=ot(16),i=ne({x:0,y:0,showContextMenu:!1}),u=ne({size:e.size}),c=B(Object.assign({striped:!1,bordered:!1},xe(e,"striped","bordered"))),d=O(()=>{const{title:h,tool:v,cardProps:T}=e,{headerStyle:k={}}=T??{};return!h&&!v?Object.assign({},{paddingTop:"0px"},k):k}),f=O(()=>{const{flexAutoHeight:h}=e;return h?{height:"100%",flex:1}:null}),S=(h,v)=>{i.showContextMenu=!1;const{onContextMenuClick:T}=e;T&&F(T,h,v)},_=h=>{h.preventDefault(),i.showContextMenu=!1,G().then(()=>{i.showContextMenu=!0,i.x=h.clientX,i.y=h.clientY})},b=(h,v)=>{const T=e.rowProps?.(h,v)||{};return e.disabledContextMenu?T:{...T,onContextmenu:_}},m=h=>{u.size=h},w=h=>{const{onUpdateColumns:v,"onUpdate:columns":T}=e;v&&F(v,h),T&&F(T,h)},g=()=>{const{toolOptions:h}=e;return h?.filter(Boolean).map(v=>typeof v=="function"?v():v)},p=h=>{Object.keys(c.value).forEach(T=>{c.value[T]=h.includes(T)})},y=()=>{const{onUpdateColumns:h,"onUpdate:columns":v}=e,T=!!h||!!v;return l(z,{align:"center"},{default:()=>[l(Cr,e,null),l(Or,U(e,{onChangeSize:m}),null),l(wr,null,null),T?l(Sr,U(e,{onUpdateColumn:w}),null):null,l(Tr,U(e,{onPopselectChange:p,onInitialed:p}),null)]})},C=h=>{if(h.tool)return h.toolOptions?h.coverTool?()=>{let v;return l(z,{align:"center"},kr(v=g())?v:{default:()=>[v]})}:()=>l(z,{align:"center"},{default:()=>[y(),g()]}):y};return _e(()=>{const{onRegister:h}=e;h&&o.value&&F(h,o.value,{uuidTable:s,uuidWrapper:r,wrapperRef:a,tableRef:o})}),fn(re.tableKey,{uuidTable:s,uuidWrapper:r,wrapperRef:a}),t(),{uuidWrapper:r,uuidTable:s,contextMenuReactive:i,rTableInst:o,combineRowProps:b,contextMenuSelect:S,privateReactive:u,tool:C,wrapperRef:a,propsPopselectValue:c,cardHeaderStyle:d,flexAutoHeightStyle:f,tableContextMenu:_}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:r,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u,flexAutoHeightStyle:c}=this,{class:d,...f}=n,{tool:S,combineRowProps:_,contextMenuSelect:b}=this,{renderWrapperHeader:m,wrapperBordered:w,disabledContextMenu:g,contextMenuOptions:p,title:y,tableFlexHeight:C,cardProps:h,flexAutoHeight:v,flexHeight:T,...k}=e,{headerStyle:I,...P}=h??{};return l(Ee,U(P,{id:r},f,{ref:"wrapperRef",bordered:w,class:d,style:Object.assign({},u,c)}),{default:()=>l(pn,null,[l(Mo,U({id:o},k,i,{flexHeight:v?!0:T,rowProps:_.bind(this),size:s.size,ref:"rTableInst",style:{height:v?"100%":C!=null?j(C):null}}),{...t}),g?null:l(Me,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:p,onClickoutside:()=>a.showContextMenu=!1,onSelect:b.bind(this)},null)]),header:m?he(y,{defaultElement:l("div",{style:"display: none;"},null)}):null,"header-extra":S(e),footer:()=>t.tableFooter?.(),action:()=>t.tableAction?.()})}}),Ar={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Pr=A({name:"RTransitionComponent",__name:"TransitionComponent",props:go({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Ar),setup(e){const{getKeepAliveInclude:n}=$r(),{getKeepAliveConfig:t}=Y();return(o,a)=>{const r=ho("RouterView");return Oe(),vo("div",null,[l(r,null,{default:dt(({Component:s,route:i})=>[s?(Oe(),Be(Pn,{key:0,name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:dt(()=>[(Oe(),Be(bo,null,{default:dt(()=>[Z(t).setupKeepAlive?(Oe(),Be(_o,{key:0,max:Z(t).maxKeepAliveLength,include:Z(n),exclude:Z(t).keepAliveExclude},[(Oe(),Be(It(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Oe(),Be(It(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):yo("",!0)]),_:1})])}}}),jn=A({name:"RForm",props:Fn,setup(e,{expose:n}){const t=oe("formRef"),o=O(()=>e.onFinish??Promise.resolve),a=r=>{r.code==="Enter"&&(r.stopPropagation(),r.preventDefault(),t.value?.validate().then(o.value))};return e.submitWhenEnter&&Re(t,"keydown",a,{capture:!0}),_e(()=>{const{onRegister:r}=e;if(r&&t.value&&F(r,t.value),t.value){const s=ye(t.value);s&&(s.autocomplete=e.autocomplete)}}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this,{loading:o,loadingDescription:a,...r}=n;return l(Ke,{show:o,description:a,style:{height:"auto"}},{default:()=>[l(de,U(e,r,{ref:"formRef"}),{...t})]})}}),Rr=(e,n)=>{const t=Q(),o=B(),a=b=>{b&&(t.value=b)},r=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value},s=()=>{typeof e=="function"?o.value=e()??{}:o.value=ge(e)??{}},i=(b,m)=>r().validate.call(null,b,m),u=()=>r().restoreValidation.call(null),c=()=>typeof e=="function"?e():ge(e)||{},d=()=>typeof n=="function"?n():ge(n)||{},f=b=>{o.value=Object.assign(o.value,c(),b),u()},S=b=>{if(!b||typeof b!="string")throw new Error(`[useForm-validateTargetField]: except key is string, but got ${typeof b}.`);return i(void 0,m=>m?.key===b)},_=b=>{o.value=Object.assign(o.value,b)};return s(),[a,{getFormInstance:r,validate:i,restoreValidation:u,formModel:c,formRules:d,reset:f,validateTargetField:S,formConditionRef:o,updateFormCondition:_}]},xr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Er={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Mr=we({...Do,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...xr);function Dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const Ct=e=>{const{icon:n,label:t}=e;return n?l(z,{align:"center",wrap:!1,size:"small"},{default:()=>[he(n)?.(),l("div",null,[t])]}):t},zr=e=>{if(typeof e.popover=="string")return l(Ne,null,{trigger:()=>Ct(e),default:()=>e.popover});if(pe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return l(Ne,o,{trigger:()=>Ct(e),default:()=>t})}},Ir=A({name:"RSegment",props:Mr,setup(e,{expose:n}){const t=O(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?j(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return l(vn,U(n,{style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Er,a)}),Dr(e=t.map(r=>l(zo,{key:r.key,name:r.key,tab:r.popover?zr(r):Ct(r),disabled:r.disabled},{...r.slots})))?e:{default:()=>[e]})}}),Lr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]},responsive:{type:Boolean,default:!1}},ki=A({name:"RBarcode",props:Lr,setup(e){const n=oe("barcodeRef"),t=oe("containerRef"),o=B({width:0,height:0});let a;const r=O(()=>{let u=j(e.width),c=j(e.height);return e.width==="responsive"&&o.value.width>0&&(u=`${o.value.width}px`),e.height==="responsive"&&o.value.height>0&&(c=`${o.value.height}px`),{"--r-barcode-width":u,"--r-barcode-height":c}});let s;const i=()=>{if(n.value)try{const{format:u,text:c,options:d,onSuccess:f}=e,S=Object.assign({},d,{format:u});o.value.width>0&&(e.width==="responsive"&&(S.width=Math.max(1,o.value.width/100)),e.height==="responsive"&&(S.height=Math.max(20,o.value.height*.8))),Xo(n.value,c!=null?c.toString():"",S),f&&F(f,c,u,d)}catch(u){const{onError:c}=e;c&&F(c,u)}finally{const{onFinally:u}=e;u&&F(u)}};return ie(()=>{e.watchText?(s?.(),s=Ue(()=>e.text,i)):s?.(),e.responsive?(a?.stop(),a=un(t,u=>{const c=u[0];if(c){const{width:d,height:f}=c.contentRect;o.value={width:d,height:f},G(()=>{i()})}})):(a?.stop(),a=null)}),_e(()=>{if(t.value){const u=t.value.getBoundingClientRect();o.value={width:u.width,height:u.height}}G(()=>{i()})}),Tt(()=>{s?.()}),{barcodeRef:n,containerRef:t,cssVars:r}},render(){const{barcodeRender:e,loading:n,cssVars:t,responsive:o}=this,a=["r-barcode",{"r-barcode--loading":n}],r=e==="canvas"?l("canvas",{class:a,style:t,ref:"barcodeRef"},null):l("svg",{class:a,style:t,ref:"barcodeRef"},null);return l(Ke,{class:"r-barcode-spin",show:n},{default:()=>[o?l("div",{class:"r-barcode-container",ref:"containerRef"},[r]):r]})}}),Ai=()=>{const e=B(),n=h=>{h&&(e.value=h)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:h=>t().downloadCsv.call(null,h),filters:h=>t().filters.call(null,h),page:h=>t().page.call(null,h),scrollTo:h=>t().scrollTo(h),sort:(h,v)=>t().sort.call(null,h,v),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:(h,v)=>t().runTableRequest.call(null,h,v),print:h=>t().print.call(null,h),getCurrentTableRequestParams:h=>t().getCurrentTableRequestParams.call(null,h),resetTablePagination:()=>t().resetTablePagination.call(null),runAsyncTableRequest:(h,v)=>t().runAsyncTableRequest.call(null,h,v),getTableProConfig:()=>t().config,getPage:()=>t().getPage.call(null),getPageSize:()=>t().getPageSize.call(null),setPage:h=>t().setPage.call(null,h),setPageSize:h=>t().setPageSize.call(null,h)}]},Fr={...we(Ie,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0},paginationPrefix:{type:Function,default:e=>`共 ${e.itemCount} 条`},takeoverAutoHeight:{type:Boolean,default:!1}};function Jt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const Pi=A({name:"RTablePro",props:Fr,setup(e,n){const{expose:t}=n,[o,a]=yr(),[r,{getPage:s,getPageSize:i,setCallback:u,setItemCount:c,resetPagination:d,getItemCount:f,setPage:S,setPageSize:_}]=Ds(void 0,{prefix:e.paginationPrefix}),b=O(()=>({page:s(),pageSize:i(),itemCount:f()})),m=()=>{const{onTablePaginationUpdate:y}=e;y&&F(y,b.value)},w=y=>{const C=Object.assign({},e.requestConfig,y),{formatRangeTime:h,excludeParams:v,autoDeleteDuplicateKeys:T=!0}=C;let k=C.params||{};return h?.length&&k&&h.forEach(({key:P,target:M})=>{const L=k[P];L&&M?.length===2&&(k[M[0]]=L[0],k[M[1]]=L[1]),delete k[P]}),T&&(k=ea(k)),v&&(k=we(k,v)),Object.assign({},k,{page:s(),pageSize:i()})},g=(y,C=!0)=>{C&&d();const h=w(y);e.request?.(h)},p=async(y,C=!0)=>{C&&d();const h=w(y);await e.request?.(h)};return ie(()=>{c(e.paginationCount),u(()=>{const{manual:y}=e;y||g(void 0,!1),m()})}),_e(()=>{const{onRegister:y}=e;y&&F(y,{...a,getTablePagination:()=>b.value,runTableRequest:g,runAsyncTableRequest:p,getCurrentTableRequestParams:w,resetTablePagination:d,setPage:S,setPageSize:_,getPage:s,getPageSize:i})}),t(),{register:o,paginationRef:r}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:r,takeoverAutoHeight:s,flexAutoHeight:i,...u}=n,{collapse:c,...d}=o,f={onRegister:e,pagination:r?t:void 0,flexAutoHeight:s||i,...u};return s?l(z,{vertical:!0,class:"h-full"},{default:()=>[c?.(),l(Xt,f,Jt(d)?d:{default:()=>[d]})]}):l(Xt,f,Jt(d)?d:{default:()=>[d]})}}),Br=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Vr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:Br()},onRegister:{type:[Function,Array],default:void 0}};let Zt=!1;const Ri=A({name:"RFlow",props:Vr,setup(e){const n=oe("flowDomRef"),t=O(()=>{const{width:f,height:S}=e;return{"--r-flow-width":j(f),"--r-flow-height":j(S)}}),o=Q(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let r;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{Zt||(e.use?.filter(Boolean).forEach(f=>jt.use(f)),Zt=!0)},c=f=>{if(!o.value)return;const S=Object.entries(a).reduce((_,[b])=>(_[b]=!f,_),{});Object.assign(a,S,{isSilentMode:f}),o.value.updateEditConfig(a)},d=f=>{if(u(),!n.value)return;const{options:S,readonly:_}=e;o.value=new jt({container:Z(n.value),...we(S,"container")}),o.value.render(f||s),c(_)};return ie(()=>{e.watchData?r=Ue(()=>e.data,f=>{o.value?f&&o.value.renderRawData(f):d(f)}):r?.(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),_e(()=>{d();const{onRegister:f}=e;f&&o.value&&F(f,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return l("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),xi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Nr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Un=(e,n,t)=>{const o=[];if(Nr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const r=Un(a,n,t);r.length>0&&o.push(e,...r)}return o},jr=(e,n,t)=>{const o=[];for(const a of e){const r=Un(a,n,t);r.length>0&&o.push(...r)}return o},Qt=e=>{const{dynamicDocumentTitle:n}=ze();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=ze(),a=o?o.title:"";document.title=t+" - "+a},Ur=e=>{const{meta:{icon:n}}=e;if(!n)return;if(pe(n,"Object"))return()=>n;const{menuConfig:t}=ze(),{collapsed:o}=Et(),a=lt(R,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Kn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=We(),{label:a,icon:r,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,d=()=>r&&(i||a)||!r&&(i||a)?null:{"padding-right":"0"};if(pe(n,"Object"))return()=>lt(Io,{...u,type:s||"primary",style:d()},{default:()=>c(),icon:()=>r})},en=()=>{const{getRootPath:e}=Ge();return De(K.appMenuKey,"sessionStorage",{defaultValue:e.value})},Kr=()=>De(K.appMenuTagOptions,"sessionStorage",{defaultValue:[]});let Je;const $n=(e,n)=>{if(Je&&Ut(Je.fullPath,n))return Je;for(const t of e){if(Ut(t.fullPath,n))return Je=t,t;if(t.children?.length){$n(t.children,n);continue}}},Et=rt("menu",()=>{const{push:e,getRoutes:n}=$e(),t=La(),{t:o}=We(),{setKeepAliveInclude:a}=Wr(),r=ne({menuKey:en(),options:[],collapsed:!1,menuTagOptions:Kr(),breadcrumbOptions:[],currentMenuOption:null}),s=B(!0),i=(p,y,C)=>{Pt(r,p,y,C)},u=p=>{const{meta:y}=p,{i18nKey:C,noLocalTitle:h}=y,v=O(()=>C?o(`${C}`):h),T={...p,key:p.fullPath,label:()=>lt(yn,null,{default:()=>v.value}),breadcrumbLabel:v.value},k=Object.assign({},T,{icon:Ur(p),extra:Kn(p)});return p.fullPath===en()&&(r.currentMenuOption=k),k.show=Dn(k),k},c=p=>{r.breadcrumbOptions=Z(jr(r.options,"fullPath",p))},d=(p,y=!0)=>{const h=Array.isArray(p)?[...p]:[p];y?r.menuTagOptions.push(...h):r.menuTagOptions=h,Ae(K.appMenuTagOptions,r.menuTagOptions)},f=(p,y)=>{r.menuTagOptions.find(h=>h.fullPath===p)||r.menuTagOptions.push(y),r.menuTagOptions=r.menuTagOptions.filter(h=>h.fullPath?.startsWith("/")),Ae(K.appMenuTagOptions,r.menuTagOptions)},S=(p,y,C)=>{const{meta:h}=y;if(h.windowOpen)window.open(h.windowOpen);else{e({path:String(p),query:C});const{sameLevel:v}=h;if(a(y),Qt(y),!v)f(p,y),c(p),r.menuKey=p,r.currentMenuOption=y,Ae(K.appMenuKey,p);else{const T=xe(u(y),St);r.breadcrumbOptions.find(I=>I.key===T.key)||r.breadcrumbOptions.push({...T,fullPath:String(T.key)})}}},_=async(p,y)=>{const[C]=p.split("?"),h=n().find(v=>v.path===C);if(!(h?.path==="/"||!h?.path||h?.path==="/login")&&h){const v=xe(h,St);S(C,u({...v,fullPath:v.path}),y)}},b=()=>new Promise(p=>{const y=(h,v)=>{const T=[],k=/\/+/g;for(const I of h){let P=`${v.endsWith("/")?v:v+"/"}${I.path}`;if(P=P.replace(k,"/"),I.children?.length)I.children=y(I.children,P);else if(!Yn(I.meta))continue;T.push(u({...I,fullPath:P}))}return T};r.options=y(In(),"");const C=r.currentMenuOption||Hr(r.options);C&&(r.breadcrumbOptions.length||c(C.key),f(C.fullPath,C),Qt(C)),p()}),m=p=>r.collapsed=p,w=(p,y=1)=>{const C=r.menuTagOptions.splice(p,y);return Ae(K.appMenuTagOptions,r.menuTagOptions),C},g=async()=>{s.value&&(await b(),s.value=!1)};return Ue(()=>t.fullPath,async(p,y)=>{await g(),p!==y&&await _(p,t.query)},{immediate:!0}),{...be(r),changeMenuModelValue:S,collapsedMenu:m,spliceMenTagOptions:w,setMenuTagOptions:d,resolveOption:u,updateMenuState:i,setupAppMenu:b}},{persist:{key:K.appPiniaMenuStore,storage:window.localStorage,pick:["menuKey","collapsed"]}}),Wn=rt("signing",()=>{const{clearRoutes:e,replace:n}=$e(),t=ne({signingCallback:{}}),o=s=>new Promise((i,u)=>{mn(s)?u({code:1,message:"登陆失败",data:null}):(t.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},i({code:0,message:"登陆成功",data:t.signingCallback}))}),a=s=>{const{closeAll:i}=eo(),{appPiniaMenuStore:u,appPiniaSigningStore:c,token:d,signing:f,appMenuKey:S}=K;window.$message.info("账号退出中..."),se("__all_sessionStorage__","sessionStorage"),se(c,"localStorage"),se(u,"localStorage"),se(d,"localStorage"),se(f,"localStorage"),se(S,"localStorage"),se(K.isAppLockScreen,"localStorage"),i(),s&&(e(),n("/"),setTimeout(()=>{window.location.reload()},0))},r=()=>{a(!0)};return{...be(t),signing:o,logout:r,clearSigningCallback:a}},{persist:{key:K.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),qn=rt("keepAlive",()=>{const e=ne({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const r=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=ze().keepAliveConfig;if(i){if(r=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...be(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:K.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Ce=()=>{const e=Et(),n=O(()=>e.options),t=O(()=>e.breadcrumbOptions),o=O(()=>e.menuKey),a=O(()=>e.menuTagOptions),r=O(()=>e.currentMenuOption),s=O(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:r,getCollapsed:s}},Le=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:r,setupAppMenu:s}=Et();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:r,setupAppMenu:s}},Y=()=>{const e=ze(),n=O(()=>e.drawerPlacement),t=O(()=>e.primaryColorOverride),o=O(()=>e._appTheme),a=O(()=>e.appTheme),r=O(()=>e.menuTagSwitch),s=O(()=>e.breadcrumbSwitch),i=O(()=>e.localeLanguage),u=O(()=>e.lockScreenSwitch),c=O(()=>e.copyrightSwitch),d=O(()=>e.contentTransition),f=O(()=>e.watermarkSwitch),S=O(()=>e.watermarkConfig),_=O(()=>e.appRootRoute),b=O(()=>e.sideBarLogo),m=O(()=>e.keepAliveConfig),w=O(()=>e.menuConfig),g=O(()=>e.colorWeakness),p=O(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:r,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:d,getWatermarkSwitch:f,getWatermarkConfig:S,getAppRootRoute:_,getSideBarLogo:b,getKeepAliveConfig:m,getMenuConfig:w,getAppThemeStr:a,getColorWeakness:g,getDynamicDocumentTitle:p}},$=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=ze();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Hn=()=>{const e=Wn();return{getSigningCallback:O(()=>e.signingCallback)}},Gn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Wn();return{signing:e,logout:n,clearSigningCallback:t}},$r=()=>{const e=qn();return{getKeepAliveInclude:O(()=>e.keepAliveInclude)}},Wr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=qn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ei=e=>{const n=sa();e.use(n),n.use(ra)},Yn=e=>{const{getSigningCallback:n}=Hn(),{role:t}=e;return $t?.length&&$t.includes(n.value.role)||!t||!t?.length?!0:t?t.includes(n.value.role):!0},qr=e=>{er(e),Zl(e)},Hr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},tn=uo(K.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),Xn=()=>({setLockAppScreen:t=>{tn.value=t},getLockAppScreen:()=>tn.value}),Jn=A({name:"AppAvatar",props:{...Lo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Hn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return l(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[l(z,{align:"center",size:t,vertical:a},{default:()=>[l(Fo,U(o,{src:e?.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>e.avatar?null:e?.name?.[0]}),e?.name]})]})}}),Gr={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},nn=()=>({lockPassword:null}),Yr=A({name:"UnlockScreen",setup(){const[e,{validate:n}]=Rr(),{logout:t}=Gn(),{updateSettingState:o}=$(),{setLockAppScreen:a}=Xn(),{isTabletOrSmaller:r}=He(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",d=ne({lockCondition:nn(),HH_MM:q().format(s),AM_PM:q().format(i),YY_MM_DD:q().format(u),DDD:q().format(c)}),f=setInterval(()=>{d.HH_MM=q().format(s),d.AM_PM=q().format(i)},6e3),S=setInterval(()=>{d.YY_MM_DD=q().format(u),d.DDD=q().format(c)},864e5),_=()=>{se(K.appLockScreenPasswordKey,"localStorage"),o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)},b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页并且重新登录",positiveText:"确定",negativeText:"重新登录",onPositiveClick:_})},m=()=>{const w=De(K.appLockScreenPasswordKey,"localStorage");if(!w){window.$dialog.warning({title:"警告",content:()=>"检测到锁屏密码被修改,请重新登录",closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:"重新登录",onPositiveClick:_});return}const g=ta(w);n().then(()=>{g===d.lockCondition.lockPassword?(a(!1),o("lockScreenSwitch",!1),se(K.appLockScreenPasswordKey,"localStorage"),d.lockCondition=nn()):window.$message.warning("密码错误,请重新输入")})};return Tt(()=>{clearInterval(f),clearInterval(S)}),{...be(d),backToSigning:b,unlockScreen:m,isTabletOrSmaller:r,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,r=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return l("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[l("div",{class:"app-lock-screen__unlock"},[l("div",{class:"app-lock-screen__unlock__content"},[l("div",{class:"app-lock-screen__unlock__content-wrapper"},[l("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[l("div",{class:"left"},[r[0]]),l("div",{class:"right"},[r[1]])])]),l("div",{class:"app-lock-screen__unlock__content-avatar"},[l(Jn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),l("div",{class:"app-lock-screen__unlock__content-input"},[l(jn,{onRegister:u,model:this.lockCondition,rules:Gr},{default:()=>[l(D,{path:"lockPassword"},{default:()=>[l(At,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),l(z,{justify:"space-between"},{default:()=>[l(J,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[W("返回登陆")]}),l(J,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[W("进入系统")]})]})]})]),l("div",{class:"app-lock-screen__unlock__content-date"},[l("div",{class:"current-year"},[o,W(" "),l("span",null,[a]),W(" "),l("span",null,[t])])])])])])}}),Xr=e=>{const n=ct(e[0]),t=ct(e[1]),o=ct(e[2]);return O(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Jr=Q(),Zr=A({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=$e(),{getSideBarLogo:n}=Y();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return l(R,{name:n.value.icon,size:"30",cursor:a},null);if(pe(n.value.icon,"Object"))return he(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e?.title?l("div",{class:["ray-menu__logo",e?.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Jr},[e?.icon?n?l(nt,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?l(nt,{placement:"right"},{trigger:()=>l(Bt,{type:"primary",size:18},{default:()=>[e.title?.[0]||null]}),default:()=>e.title}):null,l(Bt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[l(yn,null,{default:()=>[e.title]})]})]):null}}),Qr=A({name:"AppMenu",setup(){const e=Q(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Le(),{getMenuConfig:a}=Y(),{getMenuOptions:r,getCollapsed:s,getMenuKey:i}=Ce(),u=O({get:()=>(setTimeout(()=>{f(),An()},300),i.value),set:()=>{c.value&&ce("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=He({observer:_=>{_&&o("collapsed",!1)}}),d=O({get:()=>st("globalDrawerValue").value,set:_=>{ce("globalDrawerValue",_)}}),f=()=>{const _=u.value;_!=null&&G(()=>e.value?.showOption?.(_))};return{isTabletOrSmaller:c,BasicMenu:()=>l(Vo,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:xn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?l(Zr,{collapsed:s.value},null):null,l(Bo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":_=>u.value=_,options:r.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(_,b)=>{n(_,b)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:d}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?l(bn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[l(n,null,null)]}):l(n,null,null)}});class es{pendingRequest=new Map;shouldAddCanceler(n){return n.cancelConfig?.cancel??!0}generateRequestKey(n){const{method:t="",url:o="",params:a,data:r}=n;return[o,t,JSON.stringify(a),JSON.stringify(r)].join("&")}addPendingRequest(n){if(!this.shouldAddCanceler(n))return;n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const t=this.generateRequestKey(n),o=this.pendingRequest.get(t);if(o)n.signal=o.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(t,a)}}removePendingRequest(n){const t=this.generateRequestKey(n),o=this.pendingRequest.get(t);o&&(o.abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()}),this.pendingRequest.clear()}getPendingCount(){return this.pendingRequest.size}hasPendingRequest(n){const t=this.generateRequestKey(n);return this.pendingRequest.has(t)}}const gt={requestInstance:null,responseInstance:null},ts={requestError:null,responseError:null},on={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},ht={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},ns=new es,Mi=()=>{const e=(i,u)=>{u==="requestInstance"?gt.requestInstance=i:gt.responseInstance=i},n=i=>gt[i],t=(i,u,c)=>{c==="ok"?on[i]=u:ht[i]=u},o=(i,u)=>u==="ok"?on[i]:ht[i],a=(i,...u)=>{i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const d=n(i);if(!d)return;const f=o(u,c),{MODE:S}=bt();a(f,d,S)},fetchError:(i,u,c)=>{ts[i]=u;const d=ht[c],{MODE:f}=bt();a(d,u,f)}}},os=A({name:"AppRequestCancelerProvider",setup(e,{expose:n}){Fa(()=>{ns.cancelAllRequest()}),n()},render(){return l("div",{class:"app-style-provider"},null)}}),Zn=A({name:"LayoutContentWrapper",setup(){$e();const{maximize:e}=Qn(),{getContentTransition:n}=Y(),t=B(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:r,layoutContentSpinning:s}=Ls();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:r,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:r,getContentTransition:s}=this;return l(Ke,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:r,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?l("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[l(R,{name:"out",size:"16",cursor:"pointer"},null)]):null,l(os,null,null),e?l(Pr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),as=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));function ls(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const rs=A({name:"AppMenuTag",setup(e,{expose:n}){const t=oe("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Ce(),{changeMenuModelValue:r}=Le(),{getRootPath:s}=Ge(),{maximize:i}=Qn(),{reload:u}=zs(),{close:c,closeAll:d,closeRight:f,closeLeft:S,closeOther:_,checkCloseLeft:b,checkCloseRight:m}=eo(),w=["closeAll","closeRight","closeLeft","closeOther"];let g=1/0;const p={size:16},y=B([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>l(R,{name:"close",size:p.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>l(R,{name:"fullscreen_fold",size:p.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>l(R,{name:"reload",size:p.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>l(R,{name:"shared",size:p.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>l(R,{name:"close_left",size:p.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>l(R,{name:"close_right",size:p.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>l(R,{name:"close_other",size:p.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>l(R,{name:"resize_h",size:p.size},null),disabled:!1}]),C=ot(16),h={closeCurrentPage:()=>{o.value!==s.value&&c(g)},reloadCurrentPage:()=>{u()},closeAll:()=>{d()},closeRight:()=>{f(g)},closeLeft:()=>{S(g)},closeOther:()=>{_(g)},windowOpenTab:()=>{const x=a.value[g];if(!x?.fullPath)return;const N=x.fullPath.startsWith("#")?x.fullPath:`#${x.fullPath}`;window.open(N,"_blank")},maximizeLayoutContent:()=>{const x=a.value[g];i(!0),x&&ae(x)}},v=ne({x:0,y:0,actionDropdownShow:!1}),T="menu_tag_data",k=st("globalMainLayoutLoad"),I="n-scrollbar-container";let P=o.value;const M=B(!1),L=x=>{c(x)},X=(x,N)=>{for(const le of y.value)if(le.key===x){le.disabled=N;break}},ae=x=>{v.actionDropdownShow=!1,r(x.fullPath,x)},Fe=()=>{const x=document.getElementById(C);if(x)return Array.from(x.childNodes).find(ut=>na(ut,I).value)},Ye=x=>{const N=Fe();if(N){const le=N.scrollLeft||0,ut=x==="left"?Math.max(0,le-200):le+200;t.value?.scrollTo({left:ut,behavior:"smooth"})}},Te=x=>{v.actionDropdownShow=!1;const N=h[x];N?.()},to=(x,N)=>{N.preventDefault(),g=x,v.actionDropdownShow=!1,G(()=>{v.x=N.clientX,v.y=N.clientY,v.actionDropdownShow=!0})},zt=()=>{m(g)?X("closeRight",!1):X("closeRight",!0),b(g)?X("closeLeft",!1):X("closeLeft",!0)},no=()=>{g=a.value.findIndex(N=>N.fullPath===o.value),zt()},oo=x=>{a.value.length>1&&x.fullPath!==s.value&&(x.closeable=!0),M.value=!0},ao=x=>{x.fullPath!==o.value&&(x.closeable=!1),M.value=!1},lo=()=>{Fe()&&G().then(()=>{t.value?.scrollTo({left:99999,behavior:"smooth"})})},it=()=>{G().then(()=>{const x=je(`attr:${T}="${o.value}"`);if(x?.length){const[N]=x;G().then(()=>{t.value?.scrollTo({left:N.offsetLeft,behavior:"smooth"})})}})},ro=()=>{i(!0)};return Ue(()=>a.value,(x,N)=>{y.value.forEach(le=>{w.includes(le.key)&&(x.length>1?le.disabled=!1:le.disabled=!0)}),N?.length&&(x.length>N?.length?lo():x.length===N?.length&&it()),N===void 0&&it()},{immediate:!0}),ie(()=>{v.actionDropdownShow&&zt(),P!==o.value&&(P=o.value,it())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:L,getMenuKey:o,menuTagClick:ae,moreOptions:y,scrollX:Ye,scrollRef:t,uuidScrollBar:C,actionDropdownSelect:Te,actionState:v,menuTagContextMenu:to,setCurrentContextmenuIndex:no,menuTagMouseenter:oo,menuTagMouseleave:ao,MENU_TAG_DATA:T,iconConfig:p,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:ro,isMouseInMenuTag:M}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:r,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:d,menuTagClick:f,menuTagContextMenu:S,menuTagMouseenter:_,menuTagMouseleave:b,actionDropdownSelect:m,reload:w}=this;return l(_n,null,{default:()=>[l("div",{class:"menu-tag"},[l(Me,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:m,onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),l(z,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[l(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>l(R,{name:"expanded",width:n.size,height:n.size,cursor:"pointer",customClassName:"menu-tag__left-arrow"},null)}),l(kt,U({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[l(z,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},ls(e=o.map((g,p)=>l(J,U({key:g.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:g.fullPath===this.getMenuKey?"primary":"default"},{onClick:f.bind(this,g),onContextmenu:S.bind(this,p),onMouseenter:_.bind(this,g),onMouseleave:b.bind(this,g),[a]:g.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>l(pn,null,[l("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:C}}=g;return C?d(C):y}})]),icon:()=>l(R,U({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,p)},{cursor:"pointer"}),null)})))?e:{default:()=>[e]})]}),l(z,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[l(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>l(R,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"},cursor:"pointer"},null)}),l(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>l(R,{name:"fullscreen_fold",width:n.size,height:n.size,cursor:"pointer"},null)}),l(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{w()}},{icon:()=>l(R,{name:"reload",width:n.size,height:n.size,customClassName:`${r?"":"menu-tag__right-setting--spinning"}`,cursor:"pointer"},null)}),l(Vn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1,cursor:"pointer"},{default:()=>[l(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>l(R,{name:"more",width:n.size,height:n.size,cursor:"pointer"},null)})]})]})]})])]})}}),ss=A({name:"LayoutFeatureWrapper",setup(){return{}},render(){return l(rs,null,null)}});var is={layout:{copyright:"Copyright © 2022-present Ray"}};const us=A({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=is;return{copyright:e}},render(){return this.copyright?l("div",{class:"layout-footer-wrapper"},[this.copyright]):""}});function vt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const cs=A({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Le(),{getRoutes:a}=$e(),r=O({get:()=>e.show,set:v=>{n("update:show",v),v||_()}}),s=ne({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:d}=He({observer:v=>{v&&(r.value=!1)}}),f=B(!1),S="content-item--active",_=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},b=v=>{r.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),_(),r.value=!0)},m=v=>{if(v)f.value=!0;else{f.value=!1,s.searchOptions=[];return}const T=a().reduce((k,I)=>{const P=xe(I,["children","meta","path","name"]),M=o({...P,fullPath:I.path}),{breadcrumbLabel:L}=M;return L?.toLocaleLowerCase()?.includes(v.toLocaleLowerCase())&&Dn(M)&&k.push(M),k},[]);setTimeout(()=>{s.searchOptions=T,G().then(()=>{g()}),f.value=!1},300)},w=v=>{if(v){const{meta:T}=v;T.windowOpen?window.open(T.windowOpen):(r.value=!1,t(v.fullPath,v),setTimeout(An,300))}},g=()=>{const v=s.searchOptions[u],T=s.searchOptions[c];v&&G().then(()=>{const k=je(`attr:data_path="${v.path}"`),I=T?je(`attr:data_path="${T?.path}"`):null;if(I?.length){const[P]=I;oa(P,S)}if(k?.length){const[P]=k;On(P,S)}})},p=v=>{const{icon:T}=v;return typeof T=="string"&&T?l(R,{name:T,size:"24"},null):typeof T=="function"?l(T,null,null):l(R,{name:"search",size:"24"},null)},y=v=>{v==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),v==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},C=v=>{const T=v.key;switch((T==="ArrowUp"||T==="ArrowDown"||T==="Enter")&&(v.preventDefault(),v.stopPropagation()),c=u<=0?0:u,T){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const k=s.searchOptions[u];k&&w(k);break}g()},h=({menuOption:v})=>l(z,U({align:"center",class:"content-item"},{onClick:w.bind(this,v),data_path:v.path}),{default:()=>[l("div",{class:"content-item-icon"},[p(v.meta)]),l("div",{class:"content-item-label"},[v.breadcrumbLabel]),l(R,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Re(window,"keydown",b),{...be(s),modelShow:r,helperTipOptions:i,fuzzySearchMenuOptions:Ot(m,300),searchItemClick:w,RenderPreIcon:p,isTabletOrSmaller:d,SearchItem:h,loading:f,registerChangeSearchElementIndex:C}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a,registerChangeSearchElementIndex:r}=this;return e?l("div",{style:"display: none;"},null):l(gn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,transformOrigin:"center",displayDirective:"if"},{default:()=>[l("div",{class:"global-search global-search--dark global-search--light",tabindex:"-1",onKeydown:r},[l("div",{class:"global-search__wrapper"},[l(Ee,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>l(At,{size:"large",value:this.searchValue,"onUpdate:value":s=>this.searchValue=s,clearable:!0,onInput:a.bind(this)},{prefix:()=>l(R,{name:"search",size:"24"},null)}),default:()=>{let s;return l(kt,null,{default:()=>[l(Ke,{show:t},{default:()=>[n.length?l(z,{vertical:!0,size:[0,6],class:"global-search__card-content"},vt(s=n.map((i,u)=>l(o,{menuOption:i,key:i.fullPath},null)))?s:{default:()=>[s]}):l(No,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>l(z,{justify:"center",class:"global-search__empty-content"},{default:()=>[l(Sn,null,{default:()=>[W("没有搜索结果")]})]})})]})]})},action:()=>{let s;return l(z,{justify:"flex-start",align:"center",size:[16,0]},vt(s=this.helperTipOptions.map(i=>l(z,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(u=>l(z,{class:"item-icon",align:"center",justify:"center"},vt(u)?u:{default:()=>[u]})),l(z,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?s:{default:()=>[s]})}})])])]})}}),ds=A({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=aa();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return l(J,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>l(R,{name:"search",size:"16"},null),default:()=>l(z,{align:"center"},{default:()=>[t("headerTooltip.Search"),l("div",{class:"global-search-btn__label"},[e()])]})})}});function ps(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const fs=A({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Le(),{getBreadcrumbOptions:n}=Ce(),{isTabletOrSmaller:t}=He();return{getBreadcrumbOptions:n,dropdownSelect:(r,s)=>{e(r,s)},breadcrumbItemClick:r=>{if(!r.children?.length){const{meta:s={}}=r;s.sameLevel||e(r.fullPath,r)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?l("div",{style:"display: none;"},null):l(jo,null,{default:()=>[l(ma,{tag:"li",name:"breadcrumb",appear:!0},ps(e=t.map(r=>l(Uo,{key:r.fullPath,onClick:a.bind(this,r)},{default:()=>[l(Me,{labelField:"breadcrumbLabel",keyField:"fullPath",options:r.children&&r.children?.length>1?r.children:[],onSelect:o.bind(this)},{default:()=>l("span",null,[r.label&&typeof r.label=="function"?r.label():r.breadcrumbLabel])})]})))?e:{default:()=>[e]})]})}}),qe=Symbol("segmentDrawer"),ms=A({name:"ThemeSegment",setup(){const{system:e}=cn(),{getAppThemeStr:n,getAppTheme:t}=Y(),{updateSettingState:o}=$(),a=[{label:"深色",key:"dark",icon:()=>l(R,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>l(R,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>l(R,{name:"system_os",size:"16"},null)}],r=O({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return ie(()=>{s(r.value,e.value)}),{options:a,modelAppTheme:r}},render(){const{options:e}=this;return l(Ir,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),gs=A({name:"SegmentViewsAppearance",setup(){const e=Se(qe,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=$();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return l(z,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[l(te,null,{default:()=>[W("系统主题")]}),l(ms,null,null),l(te,null,{default:()=>[W("内置主题")]}),l(Ko,{showPreview:!0,swatches:ve.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),l(te,null,{default:()=>[W("切换动画")]}),l(Vt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:ja,onUpdateValue:a=>{o("contentTransition",a)}},null),l(te,null,{default:()=>[W("配置入口出现位置")]}),l(Vt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),l(te,null,{default:()=>[W("其他设置")]}),l(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[l(D,{label:"面包屑"},{default:()=>[l(ee,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),l(D,{label:"标签页"},{default:()=>[l(ee,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),l(D,{label:"页底信息"},{default:()=>[l(ee,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),l(D,{label:"色弱模式"},{default:()=>[l(ee,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),hs=A({name:"SegmentViewsCommon",setup(){const e=Se(qe,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return l(z,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[l(te,null,{default:()=>[W("基础设置")]}),l(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[l(D,{label:"页面缓存"},{default:()=>[l(ee,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),l(D,{label:"动态浏览器标题"},{default:()=>[l(ee,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),l(te,null,{default:()=>[W("缓存设置")]}),l(de,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[l(D,{label:"最大缓存数",feedback:O(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[l(H,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),l(D,{label:"排除缓存"},{default:()=>[l($o,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),vs=A({name:"SegmentViewsCustomMenu",setup(){const e=Se(qe,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return l(z,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[l(te,{titlePlacement:"center"},{default:()=>[l(z,{wrap:!1,align:"center",size:[4,0]},{default:()=>[l(nt,{placement:"top",showArrow:!1},{trigger:()=>l(R,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),l(Sn,null,{default:()=>[W("菜单样式")]})]})]}),l(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[l(D,{label:"每级菜单缩进"},{default:()=>[l(H,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),l(D,{label:"菜单图标尺寸"},{default:()=>[l(H,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),l(D,{label:"折叠菜单图标尺寸"},{default:()=>[l(H,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),l(D,{label:"菜单宽度"},{default:()=>[l(H,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),l(D,{label:"折叠菜单宽度"},{default:()=>[l(H,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),l(D,{showFeedback:!1,showLabel:!1},{default:()=>[l(J,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[W("更新菜单")]})]})]}),l(te,null,{default:()=>[W("其他设置")]}),l(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[l(D,{label:"反转色菜单"},{default:()=>[l(ee,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),l(D,{label:"菜单标题"},{default:()=>[l(ee,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),l(D,{label:"手风琴菜单"},{default:()=>[l(ee,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),l(D,{label:"原生滚动条"},{default:()=>[l(ee,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ys=A({name:"SegmentViewsWatermark",setup(){const e=Se(qe,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return l(z,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[l(te,null,{default:()=>[W("基础设置")]}),l(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[l(D,{label:"全屏水印"},{default:()=>[l(ee,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),l(D,{label:"跨边界显示"},{default:()=>[l(ee,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),l(te,null,{default:()=>[W("个性化水印")]}),l(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[l(D,{label:"水印内容"},{default:()=>[l(At,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),l(D,{label:"字体尺寸"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),l(D,{label:"字体行高"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),l(D,{label:"字体宽度"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),l(D,{label:"字体高度"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),l(D,{label:"x轴偏移"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),l(D,{label:"x轴间隙"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),l(D,{label:"y轴偏移"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),l(D,{label:"y轴间隙"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),l(D,{label:"旋转角度"},{default:()=>[l(H,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),bs=A({name:"SettingDrawer",props:Wo,setup(){const{create:e}=fr(),{changePrimaryColor:n,updateSettingState:t}=$(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:r,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:d,getMenuConfig:f,getDrawerPlacement:S,getColorWeakness:_,getWatermarkConfig:b,getDynamicDocumentTitle:m}=Y(),{setupAppMenu:w}=Le(),g=Ot(w,300),p=ne({menuTagSwitch:r.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:d.value,menuConfig:f.value,drawerPlacement:S.value,colorWeakness:_.value,primaryColorOverride:a.value,watermarkConfig:b.value,dynamicDocumentTitle:m.value,throttleSetupAppMenu:g}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{So(ge(zn()),(C,h)=>{p[h]=C,t(h,C)}),g()}})};return fn(qe,p),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:p,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...r}=n;return l(bn,U(r,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[l(qo,{title:"个性化配置",closable:!0},{default:()=>l(vn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[l(Xe,{name:"appearance",tab:"外观"},{default:()=>[l(gs,null,null)]}),l(Xe,{name:"menu",tab:"菜单"},{default:()=>[l(vs,null,null)]}),l(Xe,{name:"watermark",tab:"水印"},{default:()=>[l(ys,null,null)]}),l(Xe,{name:"common",tab:"通用"},{default:()=>[l(hs,null,null)]})]}),footer:()=>l(z,{justify:"flex-start"},{default:()=>[l(J,{type:"warning",onClick:e},{icon:()=>l(R,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}}),_s=A({name:"TooltipIcon",props:{...Ho,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>l(R,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?l(nt,this.$props,{trigger:()=>l(e,null,null),default:()=>this.tooltipText}):l(e,null,null)}}),Ss=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ws={logout:()=>{const{logout:e}=Gn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=$();e("lockScreenSwitch",!0)}},Cs=e=>{const n=ws[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Ts=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},Os=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},ks=A({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=$(),{t}=We(),[o,{toggleFullscreen:a,isEnabled:r}]=wn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=Y(),u=B(!1),c=B(!1),{isTabletOrSmaller:d}=He(),f=st("globalDrawerValue"),S=O(()=>Ts({isTabletOrSmaller:d})),_=O(()=>Os({isTabletOrSmaller:d})),b={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{r||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{ce("globalDrawerValue",!f.value)}};return{leftIconOptions:S,rightTooltipIconOptions:_,toolIconClick:g=>{b[g]?.()},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:g=>d.value?null:g}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:r,isRenderVNode:s}=this;return l(_n,{class:"layout-header"},{default:()=>[l(cs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),l(z,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[l(z,{align:"center",wrap:!1},{default:()=>[n.map(i=>l(_s,{key:i.name,iconName:i.name,tooltipText:dn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?l(fs,null,null):null]}),l(z,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(l(ds,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>l(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[l(R,{name:i.name,size:16,cursor:"pointer"},null)]})),l(Me,{options:Rn,onSelect:i=>r(String(i)),trigger:"click"},{default:()=>[l(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[l(R,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),l(Me,{options:Ss(),onSelect:Cs.bind(this),trigger:"click"},{default:()=>[l(Jn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),l(bs,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),As=A({name:"LayoutHeaderWrapper",setup(){return{}},render(){return l(z,{size:[0,0]},{default:()=>[l(ks,null,null)]})}}),Ps=A({name:"RLayout",setup(){const e=Q(),n=Q(),t=Q(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=Y(),{getLockAppScreen:r}=Xn(),s=Xr([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:r,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?l(Yr,null,null):l(Go,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[l(Qr,null,null),l(Nt,{class:"r-layout-full__viewer"},{default:()=>[l(As,{ref:"layoutSiderBarRef"},null),e?l(ss,{ref:"layoutMenuTagRef"},null):null,l(Nt,{ref:xt,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[l(Zn,null,null)]}),t?l(us,{ref:"layoutFooterRef"},null):null]})]})}}),Rs=[{path:"/",name:"RLogin",component:()=>E(()=>import("./index-By2MYI7e.js"),__vite__mapDeps([97,57,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,8,36,37,38,39,22,23,20,21,2,1,3,4,9,10,11,12,13,14,15,16,17,18,19,80,81,82,40,54,41,42,43,44,45,46,47,48,49,50,51,52,53,98]))},{path:"/",name:"RLayout",component:Ps,children:[...nr(),{path:"/:catchAll(.*)",component:()=>E(()=>import("./index-gW2CZArc.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,54,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,22,23,40,41,42,43,44,45,46,47,48,49,50,51,52,53,100])),meta:{i18nKey:V("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],at=Ba({history:Va(),routes:Rs,scrollBehavior:e=>{Ql(e)}}),Di=e=>{e.use(at),qr(at)},Mt=()=>at?{router:at}:{router:{}},an="YYYY-MM-DD HH:mm:ss",xs=()=>({locale:s=>{const i=$a[s];i?q.locale(i):q.locale(Wa)},getStartAndEndOfDay:s=>{const{format:i=an}=s??{},u=q(),c=u.startOf("day"),d=u.endOf("day"),f=u.format(i),S=c.format(i),_=d.format(i);return{today:u,startOfDay:c,endOfDay:d,formatToday:f,formatStartOfDay:S,formatEndOfDay:_}},format:(s,i)=>{const{format:u=an}=i??{};return q(s).format(u)},isDayjs:s=>q.isDayjs(s),daysDiff:(s,i)=>{const u=q(s);return q(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,d=q(s);return d.isAfter(u)&&d.isBefore(c)}});function He(e){const{width:n,height:t}=co(e),o=B(!1),{observer:a}=e??{};return la(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a?.(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:me(o)}}let ln=999;const rn="data-element-fullscreen",Es=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:r,backgroundColor:s,zIndex:i,transition:u="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}={},c=B(!1),d=B(0),f={position:"",width:"",height:"",top:"",left:"",transform:"",transition:"",zIndex:"",backgroundColor:""},S=()=>{const m=ye(e);if(!m)return;if(t?.(),!c.value){const C=xe(m.style,["position","width","height","top","left","transform","transition","zIndex","backgroundColor"]);Object.assign(f,C)}const{top:w,left:g,width:p,height:y}=m.getBoundingClientRect();d.value===0&&(pe(i,"Null")||pe(i,"Undefined")?(ln+=1,d.value=ln):d.value=i),m.setAttribute(rn,"true"),m.style.position="fixed",m.style.top=`${w}px`,m.style.left=`${g}px`,m.style.width=`${p}px`,m.style.height=`${y}px`,m.style.transform="translate(0, 0)",m.style.zIndex=String(d.value),s&&(m.style.backgroundColor=s),m.offsetHeight,m.style.transition=u,requestAnimationFrame(()=>{m.style.top="0px",m.style.left="0px",m.style.width="100vw",m.style.height="100vh"}),c.value=!0,a?.()},_=()=>{const m=ye(e);if(!m)return;o?.(),c.value=!1,m.removeAttribute(rn);const w={position:"position",width:"width",height:"height",top:"top",left:"left",transform:"transform",transition:"transition",zIndex:"z-index",backgroundColor:"background-color"};Object.entries(f).forEach(([g,p])=>{const y=w[g];p?m.style.setProperty(y,p):m.style.removeProperty(y)}),r?.()},b=()=>{c.value?_():S()};return Rt(()=>{c.value&&_()}),{enter:S,exit:_,toggleFullscreen:b,isFullscreen:me(c)}},Ms={svg:fa,png:pa,jpeg:da,blob:ca,pixelData:ua,canvas:ia},zi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:r,imageType:s}=n??{};return{create:u=>new Promise((c,d)=>{const f=ye(e);if(t?.(f),!f)return a?.(),d("[useDomToImage]: target element is undefined.");Ms[u??s??"jpeg"]?.(f,n).then(_=>(o?.(_,f),c(_))).catch(_=>(a?.(_),d(_))).finally(()=>{r?.(f)})})}},Ii=(e,n)=>({print:()=>{const o=ye(e)||e;Yo({...we(n,["printable"]),printable:o})}}),Ze={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Ds=(e,n)=>{const t=Q(e),o={onUpdatePage:p=>{const{pageChange:y}=a.value;r.value.page=p,t.value?.(),y?.(p)},onUpdatePageSize:p=>{const{pageSizeChange:y}=a.value;r.value.pageSize=p,r.value.page=Ze.page,t.value?.(),y?.(p)}},a=O(()=>({...Ze,...we(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...o})),r=B(a.value),s=r.value.onUpdatePage,i=r.value.onUpdatePageSize,u=()=>r.value.itemCount,c=p=>{r.value.itemCount=p},d=()=>r.value.page,f=p=>{s(p)},S=()=>r.value.pageSize,_=p=>{i(p)},b=()=>r.value,m=()=>t.value,w=p=>{t.value=p},g=()=>{const{pageSizes:p,pageChange:y,pageSizeChange:C}=a.value;r.value.page=Ze.page,r.value.pageSize=p?.[0]||Ze.pageSize,t.value?.(),y?.(r.value.page),C?.(r.value.pageSize)};return Rt(()=>{t.value=void 0}),[r,{getItemCount:u,setItemCount:c,getPage:d,setPage:f,getPageSize:S,setPageSize:_,getPagination:b,getCallback:m,setCallback:w,resetPagination:g}]},Qn=e=>{const n=xt,{enter:t,exit:o,toggleFullscreen:a,isFullscreen:r}=Es(n);return{isLayoutContentMaximized:O(()=>st("layoutContentMaximize").value),isFullscreen:r,maximize:(u,c)=>{const{scrollToOptions:d}=c??{};ce("layoutContentMaximize",u),u?t():o(),d&&u&&n?.value?.scrollTo(d)},toggleFullscreen:a}},zs=()=>({reload:(o=800)=>{ce("globalMainLayoutLoad",!1),setTimeout(()=>ce("globalMainLayoutLoad",!0),o)},openSpin:()=>{ce("layoutContentSpinning",!0)},closeSpin:()=>{ce("layoutContentSpinning",!1)}}),Li=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:r}=Y(),s=Object.assign({},r.value,{content:a}),{updateSettingState:i}=$();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=Y(),{updateSettingState:r}=$();r("watermarkSwitch",!a.value)}}),Qe=e=>{const{getPrimaryColorOverride:n}=Y(),{updateSettingState:t}=$();t("primaryColorOverride",e?tt({},n.value,ve.appNaiveUIThemeOverrides.dark):tt({},n.value,ve.appNaiveUIThemeOverrides.light))},Fi=()=>{const e=()=>{const{getAppTheme:r}=Y(),{t:s}=We();return{theme:r.value,themeI18nLabel:r.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:r.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:r}=$();r("_appTheme",!0),r("appTheme","dark"),Qe(!0)},lightTheme:()=>{const{updateSettingState:r}=$();r("_appTheme",!1),r("appTheme","light"),Qe(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:s}=$();s("_appTheme",!r),s("appTheme",r?"light":"dark"),Qe(!r)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:r}=Y(),{updateSettingState:s}=$(),{system:i}=cn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),Qe(r.value)}}},ke=(e,n)=>{const{getMenuTagOptions:t}=Ce();if(typeof e=="number")return isNaN(e)||e>t.value.length||e<-1?void 0:{option:t.value[e],index:e};if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:void 0}else{const{fullPath:o}=e,a=t.value.findIndex(r=>r.fullPath===o);return a===-1?void 0:{option:e,index:a}}};function eo(){const{getMenuTagOptions:e,getMenuKey:n}=Ce(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:r}=Le(),s=()=>e.value.findIndex(b=>b.fullPath===n.value),i=b=>{const m=ke(b);if(m){const{index:w}=m,g=e.value.length-1;return!(w>=g)}return!1},u=b=>{const m=ke(b);if(m){const{index:w}=m,g=e.value.length-1;return w===0?!1:w>0&&g>0}return!1};return{close:b=>{const m=ke(b);if(e.value.length!==1&&m){const{index:w,option:g}=m;if(o(w),g.fullPath===n.value){let p=u(w)?w-1:i(w)?w:w-1;p<0&&(p=0);const y=e.value[p];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:b}=Ge(),{router:{getRoutes:m}}=Mt(),w=m().find(g=>g.path===b.value);if(w){const g=xe(w,St),p=r(g);t(p.path,r({...p,fullPath:p.path}))}},closeRight:b=>{const m=ke(b);if(m){const{option:w,index:g}=m,p=e.value.length-g,y=s();o(g+1,p),g<=y&&n.value!==w.fullPath&&t(w.fullPath,w)}},closeLeft:b=>{const m=ke(b);if(m){const{option:w,index:g}=m,p=s();o(0,g),p<=g&&n.value!==w.fullPath&&t(w.fullPath,w)}},closeOther:b=>{const m=ke(b);if(m){const{option:w}=m;n.value!==w.fullPath?(o(0,e.value.length),t(w.fullPath,w)):a(w,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function Bi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:r}}=Mt(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):r({path:c,query:i});if(typeof n=="number"){if(isNaN(n))return;const{getMenuOptions:c}=Ce();if(n>c.value.length)return;const d=c.value[n],f=S=>{if(S.children&&S.children.length>0){const{children:[_]}=S;f(_);return}u(S.fullPath)};f(d)}else if(typeof n=="string"){const c=o().find(d=>d.path===n);c&&u(c.path)}else u(n.fullPath)}}}function Ge(){const{getAppRootRoute:e}=Y(),{updateSettingState:n}=$(),t=e,o=O(()=>e.value.path),a=O(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Is=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Kn(e)},sn=(e,n,t)=>{const o=$n(e,n);o&&Is(o,t)},yt=(e,n,t)=>{const{getMenuOptions:o}=Ce();if(typeof e=="string")sn(o.value,e,t);else if(pe(e,"Object")){const{fullPath:a}=e;sn(o.value,a,t)}};function Vi(){return{hidden:o=>{yt(o,"hidden",{show:!1})},show:(o,a)=>{yt(o,"show",{...a,show:!0})},update:(o,a)=>{yt(o,"update",a)}}}const Ni=()=>{const e=xn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Dt=ne({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function ce(e,n,t){Pt(Dt,e,n,t)}function st(e){return me(po(Dt,e))}function Ls(){return{...be(me(Dt))}}export{Oi as $,pi as A,Ge as B,Rn as C,$a as D,ft as E,ki as F,Na as G,gi as H,bi as I,Si as J,wi as K,xn as L,ci as M,xi as N,Ri as O,Ci as P,Ds as Q,jn as R,Jr as S,_i as T,Xt as U,fr as V,Ir as W,Pi as X,xs as Y,Ai as Z,E as _,zi as a,ns as a0,Mi as a1,mi as a2,yr as a3,Vn as a4,Qn as a5,Vi as a6,Li as a7,zs as a8,Bi as a9,Ii as b,Ni as c,fi as d,Jn as e,Rr as f,st as g,$ as h,nn as i,Xn as j,K as k,Ti as l,Y as m,vi as n,ve as o,Gn as p,di as q,Gr as r,Wa as s,Ei as t,Fi as u,yi as v,Di as w,hi as x,R as y,We as z}; diff --git a/js/hooks-MEhk8snd.js.gz b/js/hooks-MEhk8snd.js.gz new file mode 100644 index 00000000..050610fe Binary files /dev/null and b/js/hooks-MEhk8snd.js.gz differ diff --git a/js/html-to-image@1.11.13-C6a6vdc2.js b/js/html-to-image@1.11.13-C6a6vdc2.js deleted file mode 100644 index 3ad4b744..00000000 --- a/js/html-to-image@1.11.13-C6a6vdc2.js +++ /dev/null @@ -1,2 +0,0 @@ -function W(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(s),e&&(r.href=e),s.href=t,s.href}const B=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function m(t){const e=[];for(let n=0,r=t.length;nu||t.height>u)&&(t.width>u&&t.height>u?t.width>t.height?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u):t.width>u?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u))}function J(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),s=r.length,i=new Uint8Array(s);for(let a=0;a{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function K(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Q(t,e,n){const r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return s.setAttribute("width",`${e}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),s.appendChild(i),i.appendChild(t),K(s)}const l=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||l(n,e)};function Y(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function Z(t,e){return v(e).map(n=>{const r=t.getPropertyValue(n),s=t.getPropertyPriority(n);return`${n}: ${r}${s?" !important":""};`}).join(" ")}function N(t,e,n,r){const s=`.${t}:${e}`,i=n.cssText?Y(n):Z(n,r);return document.createTextNode(`${s}{${i}}`)}function $(t,e,n,r){const s=window.getComputedStyle(t,n),i=s.getPropertyValue("content");if(i===""||i==="none")return;const a=B();try{e.className=`${e.className} ${a}`}catch{return}const c=document.createElement("style");c.appendChild(N(a,n,s,r)),e.appendChild(c)}function tt(t,e,n){$(t,e,":before",n),$(t,e,":after",n)}const T="application/font-woff",L="image/jpeg",et={woff:T,woff2:T,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:L,jpeg:L,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function nt(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function C(t){const e=nt(t).toLowerCase();return et[e]||""}function rt(t){return t.split(/,/)[1]}function x(t){return t.search(/^(data:)/)!==-1}function it(t,e){return`data:${e};base64,${t}`}async function U(t,e,n){const r=await fetch(t,e);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const s=await r.blob();return new Promise((i,a)=>{const c=new FileReader;c.onerror=a,c.onloadend=()=>{try{i(n({res:r,result:c.result}))}catch(o){a(o)}},c.readAsDataURL(s)})}const E={};function st(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function P(t,e,n){const r=st(t,e,n.includeQueryParams);if(E[r]!=null)return E[r];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let s;try{const i=await U(t,n.fetchRequestInit,({res:a,result:c})=>(e||(e=a.headers.get("Content-Type")||""),rt(c)));s=it(i,e)}catch(i){s=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${t}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return E[r]=s,s}async function at(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):w(e)}async function ct(t,e){if(t.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=t.clientWidth,i.height=t.clientHeight,a==null||a.drawImage(t,0,0,i.width,i.height);const c=i.toDataURL();return w(c)}const n=t.poster,r=C(n),s=await P(n,r,e);return w(s)}async function ot(t,e){var n;try{if(!((n=t==null?void 0:t.contentDocument)===null||n===void 0)&&n.body)return await p(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function lt(t,e){return l(t,HTMLCanvasElement)?at(t):l(t,HTMLVideoElement)?ct(t,e):l(t,HTMLIFrameElement)?ot(t,e):t.cloneNode(k(t))}const ut=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",k=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function ft(t,e,n){var r,s;if(k(e))return e;let i=[];return ut(t)&&t.assignedNodes?i=m(t.assignedNodes()):l(t,HTMLIFrameElement)&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?i=m(t.contentDocument.body.childNodes):i=m(((s=t.shadowRoot)!==null&&s!==void 0?s:t).childNodes),i.length===0||l(t,HTMLVideoElement)||await i.reduce((a,c)=>a.then(()=>p(c,n)).then(o=>{o&&e.appendChild(o)}),Promise.resolve()),e}function ht(t,e,n){const r=e.style;if(!r)return;const s=window.getComputedStyle(t);s.cssText?(r.cssText=s.cssText,r.transformOrigin=s.transformOrigin):v(n).forEach(i=>{let a=s.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),l(t,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),r.setProperty(i,a,s.getPropertyPriority(i))})}function mt(t,e){l(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),l(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function gt(t,e){if(l(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find(s=>t.value===s.getAttribute("value"));r&&r.setAttribute("selected","")}}function dt(t,e,n){return l(e,Element)&&(ht(t,e,n),tt(t,e,n),mt(t,e),gt(t,e)),e}async function yt(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const r={};for(let i=0;ilt(r,e)).then(r=>ft(t,r,e)).then(r=>dt(t,r,e)).then(r=>yt(r,e))}const H=/url\((['"]?)([^'"]+?)\1\)/g,wt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,pt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function bt(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function St(t){const e=[];return t.replace(H,(n,r,s)=>(e.push(s),n)),e.filter(n=>!x(n))}async function Et(t,e,n,r,s){try{const i=n?W(e,n):e,a=C(e);let c;return s||(c=await P(i,a,r)),t.replace(bt(e),`$1${c}$3`)}catch{}return t}function xt(t,{preferredFontFormat:e}){return e?t.replace(pt,n=>{for(;;){const[r,,s]=wt.exec(n)||[];if(!s)return"";if(s===e)return`src: ${r};`}}):t}function V(t){return t.search(H)!==-1}async function M(t,e,n){if(!V(t))return t;const r=xt(t,n);return St(r).reduce((i,a)=>i.then(c=>Et(c,a,e,n)),Promise.resolve(r))}async function d(t,e,n){var r;const s=(r=e.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(s){const i=await M(s,null,n);return e.style.setProperty(t,i,e.style.getPropertyPriority(t)),!0}return!1}async function Rt(t,e){await d("background",t,e)||await d("background-image",t,e),await d("mask",t,e)||await d("-webkit-mask",t,e)||await d("mask-image",t,e)||await d("-webkit-mask-image",t,e)}async function Ct(t,e){const n=l(t,HTMLImageElement);if(!(n&&!x(t.src))&&!(l(t,SVGImageElement)&&!x(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,s=await P(r,C(r),e);await new Promise((i,a)=>{t.onload=i,t.onerror=e.onImageErrorHandler?(...o)=>{try{i(e.onImageErrorHandler(...o))}catch(f){a(f)}}:a;const c=t;c.decode&&(c.decode=i),c.loading==="lazy"&&(c.loading="eager"),n?(t.srcset="",t.src=s):t.href.baseVal=s})}async function Pt(t,e){const r=m(t.childNodes).map(s=>O(s,e));await Promise.all(r).then(()=>t)}async function O(t,e){l(t,Element)&&(await Rt(t,e),await Ct(t,e),await Pt(t,e))}function $t(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return r!=null&&Object.keys(r).forEach(s=>{n[s]=r[s]}),t}const F={};async function I(t){let e=F[t];if(e!=null)return e;const r=await(await fetch(t)).text();return e={url:t,cssText:r},F[t]=e,e}async function A(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let c=a.replace(r,"$1");return c.startsWith("https://")||(c=new URL(c,t.url).href),U(c,e.fetchRequestInit,({result:o})=>(n=n.replace(a,`url(${o})`),[a,o]))});return Promise.all(i).then(()=>n)}function D(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=s.exec(r);if(o===null)break;e.push(o[0])}r=r.replace(s,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",c=new RegExp(a,"gi");for(;;){let o=i.exec(r);if(o===null){if(o=c.exec(r),o===null)break;i.lastIndex=c.lastIndex}else c.lastIndex=i.lastIndex;e.push(o[0])}return e}async function Tt(t,e){const n=[],r=[];return t.forEach(s=>{if("cssRules"in s)try{m(s.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let c=a+1;const o=i.href,f=I(o).then(h=>A(h,e)).then(h=>D(h).forEach(S=>{try{s.insertRule(S,S.startsWith("@import")?c+=1:s.cssRules.length)}catch(q){console.error("Error inserting rule from remote css",{rule:S,error:q})}})).catch(h=>{console.error("Error loading remote css",h.toString())});r.push(f)}})}catch(i){const a=t.find(c=>c.href==null)||document.styleSheets[0];s.href!=null&&r.push(I(s.href).then(c=>A(c,e)).then(c=>D(c).forEach(o=>{a.insertRule(o,a.cssRules.length)})).catch(c=>{console.error("Error loading remote stylesheet",c)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(t.forEach(s=>{if("cssRules"in s)try{m(s.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${s.href}`,i)}}),n))}function Lt(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>V(e.style.getPropertyValue("src")))}async function Ft(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=m(t.ownerDocument.styleSheets),r=await Tt(n,e);return Lt(r)}function _(t){return t.trim().replace(/["']/g,"")}function It(t){const e=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(i=>{e.add(_(i))}),Array.from(r.children).forEach(i=>{i instanceof HTMLElement&&n(i)})}return n(t),e}async function At(t,e){const n=await Ft(t,e),r=It(t);return(await Promise.all(n.filter(i=>r.has(_(i.style.fontFamily))).map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return M(i.cssText,a,e)}))).join(` -`)}async function Dt(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await At(t,e);if(n){const r=document.createElement("style"),s=document.createTextNode(n);r.appendChild(s),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function vt(t,e={}){const{width:n,height:r}=R(t,e),s=await p(t,e,!0);return await Dt(s,e),await O(s,e),$t(s,e),await Q(s,n,r)}async function b(t,e={}){const{width:n,height:r}=R(t,e),s=await vt(t,e),i=await w(s),a=document.createElement("canvas"),c=a.getContext("2d"),o=e.pixelRatio||G(),f=e.canvasWidth||n,h=e.canvasHeight||r;return a.width=f*o,a.height=h*o,e.skipAutoScale||X(a),a.style.width=`${f}`,a.style.height=`${h}`,e.backgroundColor&&(c.fillStyle=e.backgroundColor,c.fillRect(0,0,a.width,a.height)),c.drawImage(i,0,0,a.width,a.height),a}async function Ut(t,e={}){const{width:n,height:r}=R(t,e);return(await b(t,e)).getContext("2d").getImageData(0,0,n,r).data}async function kt(t,e={}){return(await b(t,e)).toDataURL()}async function Ht(t,e={}){return(await b(t,e)).toDataURL("image/jpeg",e.quality||1)}async function Vt(t,e={}){const n=await b(t,e);return await J(n)}export{Ut as a,Vt as b,Ht as c,kt as d,vt as e,b as t}; diff --git a/js/html-to-image@1.11.13-C6a6vdc2.js.gz b/js/html-to-image@1.11.13-C6a6vdc2.js.gz deleted file mode 100644 index 18b67348..00000000 Binary files a/js/html-to-image@1.11.13-C6a6vdc2.js.gz and /dev/null differ diff --git a/js/html-to-image@1.11.13-DOj4Zvaj.js b/js/html-to-image@1.11.13-DOj4Zvaj.js new file mode 100644 index 00000000..969ee5b2 --- /dev/null +++ b/js/html-to-image@1.11.13-DOj4Zvaj.js @@ -0,0 +1,2 @@ +function q(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(s),e&&(r.href=e),s.href=t,s.href}const W=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function h(t){const e=[];for(let n=0,r=t.length;nu||t.height>u)&&(t.width>u&&t.height>u?t.width>t.height?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u):t.width>u?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u))}function X(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),s=r.length,i=new Uint8Array(s);for(let a=0;a{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function J(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function K(t,e,n){const r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return s.setAttribute("width",`${e}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),s.appendChild(i),i.appendChild(t),J(s)}const l=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||l(n,e)};function Q(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function Y(t,e){return v(e).map(n=>{const r=t.getPropertyValue(n),s=t.getPropertyPriority(n);return`${n}: ${r}${s?" !important":""};`}).join(" ")}function Z(t,e,n,r){const s=`.${t}:${e}`,i=n.cssText?Q(n):Y(n,r);return document.createTextNode(`${s}{${i}}`)}function $(t,e,n,r){const s=window.getComputedStyle(t,n),i=s.getPropertyValue("content");if(i===""||i==="none")return;const a=W();try{e.className=`${e.className} ${a}`}catch{return}const c=document.createElement("style");c.appendChild(Z(a,n,s,r)),e.appendChild(c)}function N(t,e,n){$(t,e,":before",n),$(t,e,":after",n)}const T="application/font-woff",L="image/jpeg",tt={woff:T,woff2:T,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:L,jpeg:L,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function et(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function R(t){const e=et(t).toLowerCase();return tt[e]||""}function nt(t){return t.split(/,/)[1]}function E(t){return t.search(/^(data:)/)!==-1}function rt(t,e){return`data:${e};base64,${t}`}async function U(t,e,n){const r=await fetch(t,e);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const s=await r.blob();return new Promise((i,a)=>{const c=new FileReader;c.onerror=a,c.onloadend=()=>{try{i(n({res:r,result:c.result}))}catch(o){a(o)}},c.readAsDataURL(s)})}const S={};function it(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function C(t,e,n){const r=it(t,e,n.includeQueryParams);if(S[r]!=null)return S[r];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let s;try{const i=await U(t,n.fetchRequestInit,({res:a,result:c})=>(e||(e=a.headers.get("Content-Type")||""),nt(c)));s=rt(i,e)}catch(i){s=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${t}`;i&&(a=typeof i=="string"?i:i.message)}return S[r]=s,s}async function st(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):w(e)}async function at(t,e){if(t.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=t.clientWidth,i.height=t.clientHeight,a?.drawImage(t,0,0,i.width,i.height);const c=i.toDataURL();return w(c)}const n=t.poster,r=R(n),s=await C(n,r,e);return w(s)}async function ct(t,e){var n;try{if(!((n=t?.contentDocument)===null||n===void 0)&&n.body)return await p(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function ot(t,e){return l(t,HTMLCanvasElement)?st(t):l(t,HTMLVideoElement)?at(t,e):l(t,HTMLIFrameElement)?ct(t,e):t.cloneNode(k(t))}const lt=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",k=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function ut(t,e,n){var r,s;if(k(e))return e;let i=[];return lt(t)&&t.assignedNodes?i=h(t.assignedNodes()):l(t,HTMLIFrameElement)&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?i=h(t.contentDocument.body.childNodes):i=h(((s=t.shadowRoot)!==null&&s!==void 0?s:t).childNodes),i.length===0||l(t,HTMLVideoElement)||await i.reduce((a,c)=>a.then(()=>p(c,n)).then(o=>{o&&e.appendChild(o)}),Promise.resolve()),e}function ft(t,e,n){const r=e.style;if(!r)return;const s=window.getComputedStyle(t);s.cssText?(r.cssText=s.cssText,r.transformOrigin=s.transformOrigin):v(n).forEach(i=>{let a=s.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),l(t,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),r.setProperty(i,a,s.getPropertyPriority(i))})}function ht(t,e){l(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),l(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function mt(t,e){if(l(t,HTMLSelectElement)){const r=Array.from(e.children).find(s=>t.value===s.getAttribute("value"));r&&r.setAttribute("selected","")}}function gt(t,e,n){return l(e,Element)&&(ft(t,e,n),N(t,e,n),ht(t,e),mt(t,e)),e}async function dt(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const r={};for(let i=0;iot(r,e)).then(r=>ut(t,r,e)).then(r=>gt(t,r,e)).then(r=>dt(r,e))}const H=/url\((['"]?)([^'"]+?)\1\)/g,yt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,wt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pt(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function bt(t){const e=[];return t.replace(H,(n,r,s)=>(e.push(s),n)),e.filter(n=>!E(n))}async function St(t,e,n,r,s){try{const i=n?q(e,n):e,a=R(e);let c;return s||(c=await C(i,a,r)),t.replace(pt(e),`$1${c}$3`)}catch{}return t}function Et(t,{preferredFontFormat:e}){return e?t.replace(wt,n=>{for(;;){const[r,,s]=yt.exec(n)||[];if(!s)return"";if(s===e)return`src: ${r};`}}):t}function V(t){return t.search(H)!==-1}async function M(t,e,n){if(!V(t))return t;const r=Et(t,n);return bt(r).reduce((i,a)=>i.then(c=>St(c,a,e,n)),Promise.resolve(r))}async function d(t,e,n){var r;const s=(r=e.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(s){const i=await M(s,null,n);return e.style.setProperty(t,i,e.style.getPropertyPriority(t)),!0}return!1}async function xt(t,e){await d("background",t,e)||await d("background-image",t,e),await d("mask",t,e)||await d("-webkit-mask",t,e)||await d("mask-image",t,e)||await d("-webkit-mask-image",t,e)}async function Rt(t,e){const n=l(t,HTMLImageElement);if(!(n&&!E(t.src))&&!(l(t,SVGImageElement)&&!E(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,s=await C(r,R(r),e);await new Promise((i,a)=>{t.onload=i,t.onerror=e.onImageErrorHandler?(...o)=>{try{i(e.onImageErrorHandler(...o))}catch(f){a(f)}}:a;const c=t;c.decode&&(c.decode=i),c.loading==="lazy"&&(c.loading="eager"),n?(t.srcset="",t.src=s):t.href.baseVal=s})}async function Ct(t,e){const r=h(t.childNodes).map(s=>O(s,e));await Promise.all(r).then(()=>t)}async function O(t,e){l(t,Element)&&(await xt(t,e),await Rt(t,e),await Ct(t,e))}function Pt(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return r!=null&&Object.keys(r).forEach(s=>{n[s]=r[s]}),t}const F={};async function I(t){let e=F[t];if(e!=null)return e;const r=await(await fetch(t)).text();return e={url:t,cssText:r},F[t]=e,e}async function A(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let c=a.replace(r,"$1");return c.startsWith("https://")||(c=new URL(c,t.url).href),U(c,e.fetchRequestInit,({result:o})=>(n=n.replace(a,`url(${o})`),[a,o]))});return Promise.all(i).then(()=>n)}function D(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=s.exec(r);if(o===null)break;e.push(o[0])}r=r.replace(s,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",c=new RegExp(a,"gi");for(;;){let o=i.exec(r);if(o===null){if(o=c.exec(r),o===null)break;i.lastIndex=c.lastIndex}else c.lastIndex=i.lastIndex;e.push(o[0])}return e}async function $t(t,e){const n=[],r=[];return t.forEach(s=>{if("cssRules"in s)try{h(s.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let c=a+1;const o=i.href,f=I(o).then(m=>A(m,e)).then(m=>D(m).forEach(P=>{try{s.insertRule(P,P.startsWith("@import")?c+=1:s.cssRules.length)}catch{}})).catch(m=>{});r.push(f)}})}catch{const a=t.find(c=>c.href==null)||document.styleSheets[0];s.href!=null&&r.push(I(s.href).then(c=>A(c,e)).then(c=>D(c).forEach(o=>{a.insertRule(o,a.cssRules.length)})).catch(c=>{}))}}),Promise.all(r).then(()=>(t.forEach(s=>{if("cssRules"in s)try{h(s.cssRules||[]).forEach(i=>{n.push(i)})}catch{}}),n))}function Tt(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>V(e.style.getPropertyValue("src")))}async function Lt(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=h(t.ownerDocument.styleSheets),r=await $t(n,e);return Tt(r)}function _(t){return t.trim().replace(/["']/g,"")}function Ft(t){const e=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(i=>{e.add(_(i))}),Array.from(r.children).forEach(i=>{i instanceof HTMLElement&&n(i)})}return n(t),e}async function It(t,e){const n=await Lt(t,e),r=Ft(t);return(await Promise.all(n.filter(i=>r.has(_(i.style.fontFamily))).map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return M(i.cssText,a,e)}))).join(` +`)}async function At(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await It(t,e);if(n){const r=document.createElement("style"),s=document.createTextNode(n);r.appendChild(s),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function Dt(t,e={}){const{width:n,height:r}=x(t,e),s=await p(t,e,!0);return await At(s,e),await O(s,e),Pt(s,e),await K(s,n,r)}async function b(t,e={}){const{width:n,height:r}=x(t,e),s=await Dt(t,e),i=await w(s),a=document.createElement("canvas"),c=a.getContext("2d"),o=e.pixelRatio||z(),f=e.canvasWidth||n,m=e.canvasHeight||r;return a.width=f*o,a.height=m*o,e.skipAutoScale||G(a),a.style.width=`${f}`,a.style.height=`${m}`,e.backgroundColor&&(c.fillStyle=e.backgroundColor,c.fillRect(0,0,a.width,a.height)),c.drawImage(i,0,0,a.width,a.height),a}async function Ut(t,e={}){const{width:n,height:r}=x(t,e);return(await b(t,e)).getContext("2d").getImageData(0,0,n,r).data}async function kt(t,e={}){return(await b(t,e)).toDataURL()}async function Ht(t,e={}){return(await b(t,e)).toDataURL("image/jpeg",e.quality||1)}async function Vt(t,e={}){const n=await b(t,e);return await X(n)}export{Ut as a,Vt as b,Ht as c,kt as d,Dt as e,b as t}; diff --git a/js/html-to-image@1.11.13-DOj4Zvaj.js.gz b/js/html-to-image@1.11.13-DOj4Zvaj.js.gz new file mode 100644 index 00000000..e9b0ebad Binary files /dev/null and b/js/html-to-image@1.11.13-DOj4Zvaj.js.gz differ diff --git a/js/index--yA71HyB.js b/js/index--yA71HyB.js new file mode 100644 index 00000000..5bcdadd0 --- /dev/null +++ b/js/index--yA71HyB.js @@ -0,0 +1 @@ +import{_ as o,y as e}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{m as c,d as t,O as p,V as m,t as n}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{N as v,e as E,o as d}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as a}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";function u(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!n(i)}const lo=c({name:"PreviewSVGIcons",setup(){const i=a([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(s=>{const _=s.match(/\/(\w+)\.svg/)?.[1];_&&i.value.push(_)}),{icons:i}},render(){return t(v,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(E,null,u(i=this.icons.map(r=>p(t("div",{class:"pre-view-icons__card",key:r},[t(d,null,{trigger:()=>t(e,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[m("copy"),``]])))?i:{default:()=>[i]})}})}});export{lo as default}; diff --git a/js/index--yA71HyB.js.gz b/js/index--yA71HyB.js.gz new file mode 100644 index 00000000..df2f45bd Binary files /dev/null and b/js/index--yA71HyB.js.gz differ diff --git a/js/index-0rD7dKw8.js b/js/index-0rD7dKw8.js new file mode 100644 index 00000000..25463f67 --- /dev/null +++ b/js/index-0rD7dKw8.js @@ -0,0 +1 @@ +import{U as p}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import{u as a}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e,B as n}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as u,d as o,J as s}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as l}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const dt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{dt as default}; diff --git a/js/index-0rD7dKw8.js.gz b/js/index-0rD7dKw8.js.gz new file mode 100644 index 00000000..c5f55c3b Binary files /dev/null and b/js/index-0rD7dKw8.js.gz differ diff --git a/js/index-1NlsmODW.js b/js/index-1NlsmODW.js new file mode 100644 index 00000000..0d8b499b --- /dev/null +++ b/js/index-1NlsmODW.js @@ -0,0 +1 @@ +import{g as J,e as Y,R as K,r as X,f as Q,h as E,i as S,j as l1,k as m,l as T,m as g,M as e1,n as t1,G as _,o as o1,p as i1,q as c1,D as a1,s as n1,t as r1,v as s1,w as d1}from"./hooks-MEhk8snd.js";import{a0 as p1,h as h1,C as f1,D as u1,B as m1,a1 as v1,a2 as V,a3 as _1,a4 as b1,a5 as g1,a6 as M1,a7 as y1,a8 as w1,a9 as C1,aa as Z1}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as u,d as n,p as O,J as z1,q as k1,l as S1,n as V1,f as M,j as H1}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{d as x1}from"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{s as y,D as A1,b,g as C,c as P1,A as w,m as R,d as H,i as L1}from"./utils-DJW6-rvp.js";import{h as B1,y as E1,k as T1}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{f as O1,u as $}from"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import{g as R1,o as $1,q as N1,A as j1}from"./lodash-es@4.17.21-CFdI1ypR.js";import{R as D1}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js";import{C as F1}from"./clipboard@2.0.11-CaPAHPlj.js";import{c as N}from"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function t(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=t(o);fetch(o.href,c)}})();const I1=u({name:"GlobalSpin",props:{...p1},setup(){const l={opacitySpinning:"0.3"};return{spinValue:J("globalSpinning"),overrides:l}},render(){return n(h1,O(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}}),W1=u({name:"LockScreen",setup(){const[l,{validate:e}]=Q(),t=k1("inputInstRef"),{setLockAppScreen:i}=l1(),{updateSettingState:o}=E(),c=B1({lockCondition:S()}),a=()=>{e().then(()=>{i(!0),o("lockScreenSwitch",!1),y(m.appLockScreenPasswordKey,A1(c.lockCondition.lockPassword),"localStorage"),c.lockCondition=S()})};return S1(()=>{V1(()=>{t.value?.focus()})}),{...E1(c),lockScreen:a,register:l,inputInstRef:t}},render(){const{register:l}=this;return n("div",{class:"app-lock-screen__content"},[n("div",{class:"app-lock-screen__input"},[n(Y,{avatarSize:52,style:"pointer-events: none;margin: 24px 0;",vertical:!0},null),n(K,{ref:"formInstRef",model:this.lockCondition,rules:X,labelPlacement:"left",onRegister:l},{default:()=>[n(f1,{path:"lockPassword"},{default:()=>[n(u1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()},autofocus:!0},null)]}),n(m1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[z1("锁屏")]})]})])])}}),q1=u({name:"AppLockScreen",setup(){const{updateSettingState:l}=E(),{getLockScreenSwitch:e}=g();return{lockScreenSwitchRef:M({get:()=>e.value,set:i=>{l("lockScreenSwitch",i)}})}},render(){return n(T,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[n(W1,null,null)]})}}),U1=u({name:"GlobalProvider",setup(l,{expose:e}){const{getPrimaryColorOverride:t,getAppTheme:i,getLocaleLanguage:o}=g(),c=M(()=>{const r=o.value;return t1(r)}),a=()=>{const{message:r,notification:s,dialog:d,loadingBar:p}=C1(["message","dialog","notification","loadingBar"],{configProviderProps:M(()=>({theme:i.value?V:null}))});window.$dialog=d,window.$message=r,window.$loadingBar=p,window.$notification=s};return e(),{getPrimaryColorOverride:t,localePackage:c,getAppTheme:i,discreteApi:a}},render(){const{$slots:{default:l},discreteApi:e}=this,{getPrimaryColorOverride:t,getAppTheme:i,localePackage:o}=this;return n(v1,{themeOverrides:t,theme:i?V:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[n(_1,null,{default:()=>[n(b1,e1,{default:()=>[n(g1,null,{default:()=>[n(M1,null,{default:()=>[n(y1,null,{default:()=>[n(w1,null,null),l?.(),e()]})]})]})]})]})]})}}),G1=u({name:"AppStyleProvider",setup(l,{expose:e}){const{getAppTheme:t}=g(),{height:i,width:o}=O1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:d}}=o1,{rayTemplateThemePrimaryColor:p,rayTemplateThemePrimaryFadeColor:h}=_,v=document.documentElement,z=C(m.appPiniaSettingStore,"localStorage");if(z){const k=R1(z,"primaryColorOverride.common.primaryColor",s),G=P1(k,.85);v.style.setProperty(p,k),v.style.setProperty(h,G||d)}},a=()=>{const s=document.getElementById(_.preLoadingAnimation);s&&b(s,{display:"none"})},r=s=>{const d=document.documentElement,{darkClassName:p,lightClassName:h}=_;s?w(d,h):w(d,p),R(d,s?p:h)};c(),a(),H1(()=>{r(t.value),b(document.documentElement,{[_.htmlHeight]:`${i.value}px`,[_.htmlWidth]:`${o.value}px`})}),e()},render(){return n("div",{class:"app-style-provider"},null)}});var J1={pkg:{version:"5.2.5"}};const Y1=u({name:"AppVersionProvider",setup(){const{pkg:{version:l}}=J1,e=C(m.appVersionProvider,"localStorage"),t=T1(!1),{logout:i}=i1();return e!==null?l!==e&&(t.value=!0,y(m.appVersionProvider,l,"localStorage")):y(m.appVersionProvider,l,"localStorage"),{modalShow:t,logout:i}},render(){const{logout:l}=this;return n("div",{class:"app-style-provider"},[n(T,{show:this.modalShow,"onUpdate:show":e=>this.modalShow=e,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,draggable:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:l,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),K1=u({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:l,getWatermarkConfig:e}=g();return{getWatermarkSwitch:l,getWatermarkConfig:e}},render(){const{getWatermarkConfig:l,getWatermarkSwitch:e}=this;return e?n(Z1,O(l,{fullscreen:!0}),null):null}}),j=u({name:"App",render(){return n(U1,null,{default:()=>[n(Y1,null,null),n(q1,null,null),n(G1,null,null),n(K1,null,null),n(I1,null,{default:()=>n(D1,null,null),description:()=>c1})]})}});if(typeof window<"u"){let l=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',e.insertBefore(t,e.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()}const D=async()=>{},X1=()=>{const{localeLanguage:l}=C(m.appPiniaSettingStore,"localStorage",{defaultValue:{}}),e=a1[l]||n1;x1.locale(e)},x=(l,e)=>{const t=new F1(l,{text:()=>e});l.$$clipboard=t,l.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),l.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},Q1=()=>({mounted:(l,{value:e})=>{x(l,e)},updated:(l,{value:e,oldValue:t})=>{e!==t&&(l.$$clipboard?.destroy(),x(l,e))},beforeUnmount:l=>{l.$$clipboard&&(l.$$clipboard?.destroy(),l.$$clipboard=null)}}),l2=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let l,e;return{beforeMount:(t,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:r}=i;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");l=$1(o,a,Object.assign({},r)),e=$(t,c,l)},beforeUnmount:(t,{value:i})=>{const{trigger:o="click"}=i;l&&(l.cancel(),e?.()),l=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),A=(l,e)=>{if(l){const t="ray-template__directive--disabled";e?(l.setAttribute("disabled","disabled"),R(l,t)):(l.removeAttribute("disabled"),w(l,t)),l?.setAttribute("disabled",e?"disabled":"")}},o2=()=>({mounted:(l,{value:e})=>{A(l,e)},updated:(l,{value:e,oldValue:t})=>{e!==t&&A(l,e)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),P=(l,e)=>{const{line:t=1,type:i="block",width:o,popoverText:c}=e;o!=null&&(c&&l.textContent&&l.setAttribute("title",l.textContent),i==="line"?b(l,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:H(o)}):b(l,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:H(o)}))},c2=()=>({mounted:(l,{value:e})=>{P(l,e)},updated:(l,{value:e})=>{P(l,e)}}),a2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function L(l,e){l.style.transform=e}function F(l){const e={},t=l.currentTarget;!t?.__d_ripple__||t.__d_ripple__.touched||(e.center=t.__d_ripple__.centered,t.__d_ripple__.class&&(e.class=t.__d_ripple__.class),Z.show(l,t,e))}function I(l){const e=l.currentTarget;e?.__d_ripple__&&(setTimeout(()=>{e.__d_ripple__&&(e.__d_ripple__.touched=!1)}),Z.hide(e))}const r2=(l,e,t={})=>{const i=e.getBoundingClientRect(),o=l.clientX-i.left,c=l.clientY-i.top;let a=0,r=.3;e.__d_ripple__?.circle?(r=.15,a=e.clientWidth/2,a=t.center?a:a+Math.sqrt((o-a)**2+(c-a)**2)/4):a=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const s=`${(e.clientWidth-a*2)/2}px`,d=`${(e.clientHeight-a*2)/2}px`,p=t.center?s:`${o-a}px`,h=t.center?d:`${c-a}px`;return{radius:a,scale:r,x:p,y:h,centerX:s,centerY:d}},Z={show(l,e,t={}){if(!e?.__d_ripple__?.enabled)return;const i=document.createElement("span"),o=document.createElement("span");i.appendChild(o),i.className=n2,t.class&&(i.className+=` ${t.class}`);const{radius:c,scale:a,x:r,y:s,centerX:d,centerY:p}=r2(l,e,t),h=`${c*2}px`;o.className=f.vRippleAnimation,o.style.width=h,o.style.height=h,e.appendChild(i);const v=window.getComputedStyle(e);v&&v.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),o.classList.add(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationVisible),L(o,`translate(${r}, ${s}) scale3d(${a},${a},${a})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationIn),L(o,`translate(${d}, ${p}) scale3d(1,1,1)`)},0)},hide(l){if(!l?.__d_ripple__?.enabled)return;const e=l.getElementsByClassName(f.vRippleAnimation);if(e.length===0)return;const t=e[e.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const i=performance.now()-Number(t.dataset.activated),o=Math.max(250-i,0);setTimeout(()=>{t.classList.remove(f.vRippleAnimationIn),t.classList.add(f.vRippleAnimationOut),setTimeout(()=>{l.getElementsByClassName(f.vRippleAnimation).length===1&&l.dataset.previousPosition&&(l.style.position=l.dataset.previousPosition,delete l.dataset.previousPosition),t.parentNode?.parentNode===l&&l.removeChild(t.parentNode)},300)},o)}};function W(l){return typeof l>"u"||!!l}function q(l){l.removeEventListener("pointerdown",F),l.removeEventListener("pointerup",I)}function B(l,e,t){const{value:i,modifiers:o}=e,c=W(i);c||Z.hide(l),l.__d_ripple__=l.__d_ripple__??{},l.__d_ripple__.enabled=c,l.__d_ripple__.centered=o.center,l.__d_ripple__.circle=o.circle,L1(i,"Object")&&i.class&&(l.__d_ripple__.class=i.class),c&&!t?(l.addEventListener("pointerdown",F),l.addEventListener("pointerup",I)):!c&&t&&q(l)}const s2=()=>({mounted:(l,e)=>{B(l,e,!1)},beforeUnmount:l=>{delete l.__d_ripple__,q(l)},updated:(l,e)=>{if(e.value===e.oldValue)return;const t=W(e.oldValue);B(l,e,t)}}),d2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),p2=()=>{let l,e;return{beforeMount:(t,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:r}=i;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");l=N1(o,a,Object.assign({},r)),e=$(t,c,l)},beforeUnmount:()=>{l&&l.cancel(),l=null,e?.()}}},h2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),f2=l=>Object.keys(l).reduce((t,i)=>{const o=l[i]?.default;if(typeof o=="function")return t[i]=o,t;throw new TypeError(`directiveModules: ${i} is not function`)},{}),u2=l=>{const t=f2(Object.assign({"/src/directives/modules/copy/index.ts":l2,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":a2,"/src/directives/modules/ripple/index.ts":d2,"/src/directives/modules/throttle/index.ts":h2})),i=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;j1(t,(c,a)=>{const r=a.match(i)?.[0];typeof r=="string"&&o.test(r)&&l.directive(r,c())})},U=async l=>{r1(l),await s1(l),d1(l),X1(),u2(l)},m2=async()=>{const l=N(j);await U(l),l.mount("#app"),await D()},v2=async()=>{let l;window.__WUJIE_MOUNT=async()=>{l=N(j),await U(l),l.mount("#app"),await D()},window.__WUJIE_UNMOUNT=()=>{l.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?v2():m2(); diff --git a/js/index-1NlsmODW.js.gz b/js/index-1NlsmODW.js.gz new file mode 100644 index 00000000..1f1d9463 Binary files /dev/null and b/js/index-1NlsmODW.js.gz differ diff --git a/js/index-B1QNREDs.js b/js/index-B1QNREDs.js deleted file mode 100644 index 94cd29dc..00000000 --- a/js/index-B1QNREDs.js +++ /dev/null @@ -1 +0,0 @@ -import{C as u,e as s}from"./hooks-CkuihJ2J.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{u as a}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import{ab as n,W as l,e as c,P as p}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m,d as t,p as d,J as e}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const f=m({name:"PageResult",props:{...n},setup(){const{replace:r}=a();return{goBack:()=>{var i;const{getAppRootRoute:o}=s();(i=o.value)!=null&&i.path&&r(o.value.path)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,d(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(c,{align:"center",justify:"center"},{default:()=>[t(p,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(p,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),Et=m({name:"ErrorPage404",setup(){return{}},render(){return t(f,{status:"404"},null)}});export{Et as default}; diff --git a/js/index-B1QNREDs.js.gz b/js/index-B1QNREDs.js.gz deleted file mode 100644 index 71d38c01..00000000 Binary files a/js/index-B1QNREDs.js.gz and /dev/null differ diff --git a/js/index-BCkJ9CaF.js b/js/index-BCkJ9CaF.js deleted file mode 100644 index 41522a42..00000000 --- a/js/index-BCkJ9CaF.js +++ /dev/null @@ -1 +0,0 @@ -import{H as d}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{m as c,d as t,J as n}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as s,N as f,k as h}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as u}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const kt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{kt as default}; diff --git a/js/index-BCkJ9CaF.js.gz b/js/index-BCkJ9CaF.js.gz deleted file mode 100644 index 6f1f0f1c..00000000 Binary files a/js/index-BCkJ9CaF.js.gz and /dev/null differ diff --git a/js/index-BJnstanh.js b/js/index-BJnstanh.js new file mode 100644 index 00000000..30c82617 --- /dev/null +++ b/js/index-BJnstanh.js @@ -0,0 +1 @@ +import"./instance-Bux9_MkW.js";import{a as F}from"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import{f as C,R as N}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{N as k,a as R,al as u,D as d,U as b,am as y,aj as B,ak as f,e as g,B as i,L as D,T as E}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as w,d as e,J as a}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as x}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./utils-DJW6-rvp.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./axios@1.10.0-CIcuZHni.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const Ae=w({name:"RFormDemo",setup(){const[r,{validate:o,restoreValidation:m,formRules:l,reset:n,validateTargetField:p,formConditionRef:s}]=C({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"],key:"name"},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),t=x(!1),{run:c}=F(()=>new Promise((h,v)=>{o().then(()=>{t.value=!0,setTimeout(()=>{window.$message.success("校验成功"),h(!0)},500)}).catch(v).finally(()=>{t.value=!1})}),{manual:!0});return{register:r,formConditionRef:s,restoreValidation:m,validate:o,formRules:l,validateTargetField:p,reset:n,formLoading:t,runHookPlusRequest:c}},render(){const{formConditionRef:r}=this,{register:o,restoreValidation:m,formRules:l,validateTargetField:n,reset:p,runHookPlusRequest:s}=this;return e(k,{title:()=>e(g,{align:"center"},{default:()=>[e(D,null,{default:()=>[a("useForm 表单校验")]}),e(E,{value:this.formLoading,"onUpdate:value":t=>this.formLoading=t},null)]})},{default:()=>e(N,{onRegister:o,rules:l(),model:r,submitWhenEnter:!0,onFinish:()=>{window.$message.success("表单提交成功")},loading:this.formLoading},{default:()=>[e(R,{cols:24,xGap:24},{default:()=>[e(u,{label:"姓名",path:"name",span:12},{default:()=>[e(d,{value:r.name,"onUpdate:value":t=>r.name=t},null)]}),e(u,{label:"年龄",path:"age",span:12},{default:()=>[e(b,{value:r.age,"onUpdate:value":t=>r.age=t,showButton:!1},null)]}),e(u,{label:"出生日期",path:"date",span:12},{default:()=>[e(y,{value:r.date,"onUpdate:value":t=>r.date=t},null)]}),e(u,{label:"性别",path:"gender",span:12},{default:()=>[e(B,{value:r.gender,"onUpdate:value":t=>r.gender=t},{default:()=>[e(f,{value:"girl"},{default:()=>[a("女")]}),e(f,{value:"man"},{default:()=>[a("男")]})]})]}),e(u,{label:"备注信息",span:24},{default:()=>[e(d,{type:"textarea",value:r.remark,"onUpdate:value":t=>r.remark=t},null)]}),e(u,{span:24},{default:()=>[e(g,null,{default:()=>[e(i,{type:"info",onClick:()=>p()},{default:()=>[a("重置表单为初始状态")]}),e(i,{type:"warning",onClick:m},{default:()=>[a("移除校验状态")]}),e(i,{type:"primary",onClick:()=>n("name")},{default:()=>[a("仅校验姓名字段")]}),e(i,{type:"primary",onClick:s},{default:()=>[a("校验")]})]})]})]})]}),"header-extra":()=>"输入表单的时候,试试按下 Enter 键"})}});export{Ae as default}; diff --git a/js/index-BJnstanh.js.gz b/js/index-BJnstanh.js.gz new file mode 100644 index 00000000..472bad9e Binary files /dev/null and b/js/index-BJnstanh.js.gz differ diff --git a/js/index-DhKYIZ2t.js b/js/index-BQlPRast.js similarity index 85% rename from js/index-DhKYIZ2t.js rename to js/index-BQlPRast.js index 5f1342f6..7d690de9 100644 --- a/js/index-DhKYIZ2t.js +++ b/js/index-BQlPRast.js @@ -1 +1 @@ -import{m as n,d as e,p as s,q as i}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as r,y as c,Y as p}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(r,null,l(t=this.avatarOptions.map(o=>e(c,{key:o.key},{trigger:()=>e(p,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; +import{m as n,d as e,p as s,t as i}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as r,E as c,A as p}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(r,null,l(t=this.avatarOptions.map(o=>e(c,{key:o.key},{trigger:()=>e(p,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; diff --git a/js/index-BQlPRast.js.gz b/js/index-BQlPRast.js.gz new file mode 100644 index 00000000..d108160a Binary files /dev/null and b/js/index-BQlPRast.js.gz differ diff --git a/js/index-BUFGnh7y.js b/js/index-BUFGnh7y.js new file mode 100644 index 00000000..7bc15fd4 --- /dev/null +++ b/js/index-BUFGnh7y.js @@ -0,0 +1 @@ +import{m as r,d as o,J as e}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{D as i}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as p}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const E=r({name:"MultiMenuOne",setup(){return{inputValue:p(null)}},render(){return o("div",null,[e("多级菜单-1"),o(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{E as default}; diff --git a/js/index-BUFGnh7y.js.gz b/js/index-BUFGnh7y.js.gz new file mode 100644 index 00000000..04078ac2 Binary files /dev/null and b/js/index-BUFGnh7y.js.gz differ diff --git a/js/index-BVCgCb1q.js b/js/index-BVCgCb1q.js deleted file mode 100644 index 936facdc..00000000 --- a/js/index-BVCgCb1q.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as C,T as f,U as k}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{a as A}from"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import{s as y}from"./instance-DHBzlXKU.js";import{e as p,N as l,r as B,P as i,al as h,M as D}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as w,d as t,J as o,F as P}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{h as b,y as N}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./axios@1.10.0-Dq7h7Pqt.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>y({url:"/api/list",method:"get",params:e}),zt=w({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(p,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=b({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:d,loading:c,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:d,personLoading:c,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>{var e;return[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(B,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(P,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{zt as default}; diff --git a/js/index-BVCgCb1q.js.gz b/js/index-BVCgCb1q.js.gz deleted file mode 100644 index 72158ae6..00000000 Binary files a/js/index-BVCgCb1q.js.gz and /dev/null differ diff --git a/js/index-BgBmu4a-.js b/js/index-BgBmu4a-.js new file mode 100644 index 00000000..107571a8 --- /dev/null +++ b/js/index-BgBmu4a-.js @@ -0,0 +1 @@ +import{P as r}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{m as i,d as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as m,N as o}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const pt=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{pt as default}; diff --git a/js/index-BgBmu4a-.js.gz b/js/index-BgBmu4a-.js.gz new file mode 100644 index 00000000..34594d46 Binary files /dev/null and b/js/index-BgBmu4a-.js.gz differ diff --git a/js/index-BgiN69QR.js b/js/index-BgiN69QR.js deleted file mode 100644 index 9ca882af..00000000 --- a/js/index-BgiN69QR.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as t}from"./vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js";import{L as l}from"./ray-dCjhX_JK.js";import{e,N as r,P as d}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as n,d as u,J as o}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as i}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const L=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{L as default}; diff --git a/js/index-BgiN69QR.js.gz b/js/index-BgiN69QR.js.gz deleted file mode 100644 index 69261c38..00000000 Binary files a/js/index-BgiN69QR.js.gz and /dev/null differ diff --git a/js/index-Bgiz3EGp.js b/js/index-Bgiz3EGp.js deleted file mode 100644 index 1a481884..00000000 --- a/js/index-Bgiz3EGp.js +++ /dev/null @@ -1 +0,0 @@ -import{o as S,e as W,a5 as V,u as w,a6 as y,a7 as M,a8 as N,a9 as L,z as R}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{e as a,N as i,M as T,P as t}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as U,d as u,J as e}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as b}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Hu=U({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=L(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=M(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=w(),{hidden:v,show:x,update:z}=y();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(R,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Hu as default}; diff --git a/js/index-Bgiz3EGp.js.gz b/js/index-Bgiz3EGp.js.gz deleted file mode 100644 index 94c1ab12..00000000 Binary files a/js/index-Bgiz3EGp.js.gz and /dev/null differ diff --git a/js/index-BnMsYwPn.js b/js/index-BnMsYwPn.js deleted file mode 100644 index 287b9f60..00000000 --- a/js/index-BnMsYwPn.js +++ /dev/null @@ -1 +0,0 @@ -import{m as e,d as o,J as r}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{M as i}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:p(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; diff --git a/js/index-BnMsYwPn.js.gz b/js/index-BnMsYwPn.js.gz deleted file mode 100644 index 04b6bb1a..00000000 Binary files a/js/index-BnMsYwPn.js.gz and /dev/null differ diff --git a/js/index-BrBEr-DR.js b/js/index-BrBEr-DR.js deleted file mode 100644 index d788b895..00000000 --- a/js/index-BrBEr-DR.js +++ /dev/null @@ -1 +0,0 @@ -import{R as O,j as L,x as C,p as A,y as F,f,z as r,e as P,u as j,B as $,k as z}from"./hooks-CkuihJ2J.js";import{s as w}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import{u as G}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{I as S,M as y,P as V,W as I,p as q,e as l,y as D,J as E,A as b,k as Q,a as U,b as v,N as H,s as W,T as u,F as _}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as s,d as e,q as c,J as d,F as B}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as m,h as k,y as R}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{Q as J}from"./vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js";import{L as K}from"./ray-dCjhX_JK.js";import{f as M}from"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import{A as X}from"./index-DhKYIZ2t.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function Y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const Z=s({name:"RSigning",setup(){const[t,{validate:i}]=L(),{t:n}=C(),{signing:a}=A(),{getRootPath:o}=F(),g=m(!1),T=()=>({name:"Ray Admin",pwd:"123456"}),x=G(),p=m(T()),N={name:{required:!0,message:n("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:n("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:p,register:t,handleLogin:()=>{i().then(()=>{g.value=!0,a(p.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${p.value.name}登陆~`),w(f.token,"tokenValue","localStorage"),w(f.signing,h.data,"localStorage"),x.push(o.value),g.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")})})},rules:N,loading:g}},render(){let t;const{$t:i,loading:n,register:a}=this;return e(O,{model:this.signingForm,onRegister:a,rules:this.rules},{default:()=>[e(S,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(y,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(S,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(y,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(V,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},Y(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=s({name:"RRegister",render(){return e(I,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=s({name:"QRCodeSigning",setup(){const t=k({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...R(t)}},render(){return e("div",{class:"qrcode-signing"},[e(J,{text:"ray template yes",size:200,logoImage:K},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const ne=s({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(q,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=s({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=j(),{getAppTheme:n}=P(),a=m(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:g})=>g?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:a}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:a}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(E,{value:this.modelAppThemeRef,"onUpdate:value":o=>this.modelAppThemeRef=o,railStyle:a.bind(this),onUpdateValue:o=>o?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var ae={layout:{copyright:"Copyright © 2022-present Ray"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const ut=s({name:"RLogin",setup(){const{layout:{copyright:t}}=ae,i=k({tabsValue:"signing"}),{height:n,width:a}=M(),{updateLocale:o}=z();return{...R(i),windowHeight:n,updateLocale:o,copyright:t,windowWidth:a}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(b,{class:"login-title",type:"info",size:28},{default:()=>[d("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(Q,{options:$,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(U,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(v,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(b,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(v,{span:1,class:"login__right-wrapper"},{default:()=>[e(H,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(W,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(B,null,[e(u,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(u,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(u,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(_,null,{default:()=>[d("其他登陆方式")]}),e(ne,null,null),e(_,null,{default:()=>[d("友情链接")]}),e(X,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ut as default}; diff --git a/js/index-BrBEr-DR.js.gz b/js/index-BrBEr-DR.js.gz deleted file mode 100644 index 98f7bf70..00000000 Binary files a/js/index-BrBEr-DR.js.gz and /dev/null differ diff --git a/js/index-BrcumBWX.js b/js/index-BrcumBWX.js new file mode 100644 index 00000000..340bd216 --- /dev/null +++ b/js/index-BrcumBWX.js @@ -0,0 +1 @@ +import{J as r,K as A}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{N as u,e as c,B as i,T as C}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as O,d as t,J as e}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as g,h as V,y as L}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const Ut=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:B,isDisposed:y}]=A(),D=g(!1),E=g(!1),s=V({loading:!1,loading1:!1}),b={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},h=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"4%",right:"4%",top:"2%",outerBounds:{bottom:"10%"},outerBoundsMode:"auto"},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:b,chartLoading:D,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:h,...L(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:B,isDisposed2:y}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(c,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(c,{vertical:!0},{default:()=>[t(c,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Ut as default}; diff --git a/js/index-BrcumBWX.js.gz b/js/index-BrcumBWX.js.gz new file mode 100644 index 00000000..99277168 Binary files /dev/null and b/js/index-BrcumBWX.js.gz differ diff --git a/js/index-Bt4vBrub.js b/js/index-Bt4vBrub.js new file mode 100644 index 00000000..55fc1337 --- /dev/null +++ b/js/index-Bt4vBrub.js @@ -0,0 +1 @@ +import"./hooks-MEhk8snd.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{s as n,g as l,w as c,E as f}from"./utils-DJW6-rvp.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{N as d,e as i,B as o,ah as u,ai as a,D as m}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as g,d as e,J as r}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as p}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const xe=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{xe as default}; diff --git a/js/index-Bt4vBrub.js.gz b/js/index-Bt4vBrub.js.gz new file mode 100644 index 00000000..2bef31bf Binary files /dev/null and b/js/index-Bt4vBrub.js.gz differ diff --git a/js/index-By2MYI7e.js b/js/index-By2MYI7e.js new file mode 100644 index 00000000..6352f8f0 --- /dev/null +++ b/js/index-By2MYI7e.js @@ -0,0 +1 @@ +import{A as O}from"./index-BQlPRast.js";import{y as r,m as C,u as L,R as F,f as P,z as A,p as $,B as j,k as f,C as z,h as G}from"./hooks-MEhk8snd.js";import{f as V}from"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{m as s,d as e,t as c,J as u,F as D}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as l,E as I,T as q,K as E,C as w,D as S,B as Q,o as U,F as y,k as B,a as H,b,N as K,s as W,Y as d,P as v}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as m,h as k,y as R}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{L as Y}from"./ray-dCjhX_JK.js";import{Q as J}from"./vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js";import{s as _}from"./utils-DJW6-rvp.js";import{u as X}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const M=s({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=L(),{getAppTheme:n}=C(),a=m(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:g})=>g?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:a}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:a}=this;return e(l,{justify:"center"},{default:()=>[e(I,null,{trigger:()=>e(q,{value:this.modelAppThemeRef,"onUpdate:value":o=>this.modelAppThemeRef=o,railStyle:a.bind(this),onUpdateValue:o=>o?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}}),Z=s({name:"QRCodeSigning",setup(){const t=k({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...R(t)}},render(){return e("div",{class:"qrcode-signing"},[e(J,{text:"ray template yes",size:200,logoImage:Y},null)])}}),ee=s({name:"RRegister",render(){return e(E,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}});function te(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const ie=s({name:"RSigning",setup(){const[t,{validate:i}]=P(),{t:n}=A(),{signing:a}=$(),{getRootPath:o}=j(),g=m(!1),T=()=>({name:"Ray Admin",pwd:"123456"}),x=X(),p=m(T()),N={name:{required:!0,message:n("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:n("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:p,register:t,handleLogin:()=>{i().then(()=>{g.value=!0,a(p.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${p.value.name}登陆~`),_(f.token,"tokenValue","localStorage"),_(f.signing,h.data,"localStorage"),x.push(o.value),g.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")})})},rules:N,loading:g}},render(){let t;const{$t:i,loading:n,register:a}=this;return e(F,{model:this.signingForm,onRegister:a,rules:this.rules},{default:()=>[e(w,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(S,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(w,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(S,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(Q,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},te(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}});function ne(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const oe=s({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ne(t=this.ssoSigningOptions.map(i=>e(U,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}});var ae={layout:{copyright:"Copyright © 2022-present Ray"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const ut=s({name:"RLogin",setup(){const{layout:{copyright:t}}=ae,i=k({tabsValue:"signing"}),{height:n,width:a}=V(),{updateLocale:o}=G();return{...R(i),windowHeight:n,updateLocale:o,copyright:t,windowWidth:a}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(y,{class:"login-title",type:"info",size:28},{default:()=>[u("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(M,null,null),e(B,{options:z,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(H,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(b,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(y,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(b,{span:1,class:"login__right-wrapper"},{default:()=>[e(K,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(W,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(D,null,[e(d,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(ie,null,null)]}),e(d,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(d,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(Z,null,null)]})])}),e(v,null,{default:()=>[u("其他登陆方式")]}),e(oe,null,null),e(v,null,{default:()=>[u("友情链接")]}),e(O,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ut as default}; diff --git a/js/index-By2MYI7e.js.gz b/js/index-By2MYI7e.js.gz new file mode 100644 index 00000000..da7eb80c Binary files /dev/null and b/js/index-By2MYI7e.js.gz differ diff --git a/js/index-C-wONugf.js b/js/index-C-wONugf.js deleted file mode 100644 index 55956efa..00000000 --- a/js/index-C-wONugf.js +++ /dev/null @@ -1 +0,0 @@ -import{z as m,W as o}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{m as h,d as u,J as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as d,ag as F,N as i,a as b,b as l,aj as f,ak as a}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as B}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const vu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=B("this is three"),e=B("medium"),C=B("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(d,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(d,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(d,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{vu as default}; diff --git a/js/index-C-wONugf.js.gz b/js/index-C-wONugf.js.gz deleted file mode 100644 index 7b88a710..00000000 Binary files a/js/index-C-wONugf.js.gz and /dev/null differ diff --git a/js/index-C7ZPiBNs.js b/js/index-C7ZPiBNs.js deleted file mode 100644 index bc74cd9e..00000000 --- a/js/index-C7ZPiBNs.js +++ /dev/null @@ -1 +0,0 @@ -import{U as p}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import{u as a}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{e,P as n}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as u,d as o,J as s}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as l}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const dt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{dt as default}; diff --git a/js/index-C7ZPiBNs.js.gz b/js/index-C7ZPiBNs.js.gz deleted file mode 100644 index 075b7b9b..00000000 Binary files a/js/index-C7ZPiBNs.js.gz and /dev/null differ diff --git a/js/index-C7mgCAXH.js b/js/index-C7mgCAXH.js new file mode 100644 index 00000000..cb159801 --- /dev/null +++ b/js/index-C7mgCAXH.js @@ -0,0 +1 @@ +import{L as a}from"./ray-dCjhX_JK.js";import{Q as t}from"./vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js";import{e,N as l,B as i}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as n,d as u,J as o}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as r}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const L=n({name:"RQRCodeDemo",setup(){const d=r("ray template yes"),m=r(),s=r();return{qrcodeText:d,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(l,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(l,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:a},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(l,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:a,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:a,status:"loading"},null)]})]}),u(l,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(i,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(i,{onClick:()=>{this.rayQRCodeRef?.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:a,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{L as default}; diff --git a/js/index-C7mgCAXH.js.gz b/js/index-C7mgCAXH.js.gz new file mode 100644 index 00000000..d51e892f Binary files /dev/null and b/js/index-C7mgCAXH.js.gz differ diff --git a/js/index-C8zhCGKn.js b/js/index-C8zhCGKn.js deleted file mode 100644 index a76490e1..00000000 --- a/js/index-C8zhCGKn.js +++ /dev/null @@ -1 +0,0 @@ -import{R as J}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import{M as Y,e as M,g as K,G as b,f as v,h as X,i as Q,R as l1,r as e1,j as t1,k as E,l as S,m as o1,n as T,o as i1,p as c1,q as a1,D as r1,s as n1,t as s1,v as d1,w as p1}from"./hooks-CkuihJ2J.js";import{d as h1}from"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import{a0 as f1,a1 as V,a2 as u1,a3 as m1,a4 as v1,a5 as _1,a6 as b1,a7 as g1,a8 as M1,I as y1,M as w1,P as C1,a9 as Z1,aa as z1,h as k1}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m,d as r,f as y,j as S1,J as V1,t as H1,l as x1,n as P1,p as O}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{f as A1,u as R}from"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import{b as g,g as Z,c as L1,y as w,n as $,s as C,D as B1,d as H,i as E1}from"./utils-BPTDWjJB.js";import{g as T1,o as O1,q as R1,A as $1}from"./lodash-es@4.17.21-UVJw7vmf.js";import{h as N1,y as j1,k as F1}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js";import{C as D1}from"./clipboard@2.0.11-DSy8---1.js";import{c as N}from"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function t(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=t(o);fetch(o.href,c)}})();const I1=m({name:"GlobalProvider",setup(l,{expose:e}){const{getPrimaryColorOverride:t,getAppTheme:i,getLocaleLanguage:o}=M(),c=y(()=>{const n=o.value;return K(n)}),a=()=>{const{message:n,notification:s,dialog:d,loadingBar:p}=M1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:i.value?V:null}))});window.$dialog=d,window.$message=n,window.$loadingBar=p,window.$notification=s};return e(),{getPrimaryColorOverride:t,localePackage:c,getAppTheme:i,discreteApi:a}},render(){const{$slots:{default:l},discreteApi:e}=this,{getPrimaryColorOverride:t,getAppTheme:i,localePackage:o}=this;return r(f1,{themeOverrides:t,theme:i?V:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[r(u1,null,{default:()=>[r(m1,Y,{default:()=>[r(v1,null,{default:()=>[r(_1,null,{default:()=>[r(b1,null,{default:()=>[r(g1,null,null),l==null?void 0:l(),e()]})]})]})]})]})]})}}),W1=m({name:"AppStyleProvider",setup(l,{expose:e}){const{getAppTheme:t}=M(),{height:i,width:o}=A1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:d}}=X,{rayTemplateThemePrimaryColor:p,rayTemplateThemePrimaryFadeColor:h}=b,u=document.documentElement,_=Z(v.appPiniaSettingStore,"localStorage");if(_){const k=T1(_,"primaryColorOverride.common.primaryColor",s),G=L1(k,.85);u.style.setProperty(p,k),u.style.setProperty(h,G||d)}},a=()=>{const s=document.getElementById(b.preLoadingAnimation);s&&g(s,{display:"none"})},n=s=>{const d=document.documentElement,{darkClassName:p,lightClassName:h}=b;s?w(d,h):w(d,p),$(d,s?p:h)};c(),a(),S1(()=>{n(t.value),g(document.documentElement,{[b.htmlHeight]:`${i.value}px`,[b.htmlWidth]:`${o.value}px`})}),e()},render(){return r("div",{class:"app-style-provider"},null)}}),q1=m({name:"LockScreen",setup(){const[l,{validate:e}]=t1(),t=H1("inputInstRef"),{setLockAppScreen:i}=o1(),{updateSettingState:o}=E(),c=N1({lockCondition:S()}),a=()=>{e().then(()=>{i(!0),o("lockScreenSwitch",!1),C(v.appLockScreenPasswordKey,B1(c.lockCondition.lockPassword),"localStorage"),c.lockCondition=S()})};return x1(()=>{P1(()=>{var n;(n=t.value)==null||n.focus()})}),{...j1(c),lockScreen:a,register:l,inputInstRef:t}},render(){const{register:l}=this;return r("div",{class:"app-lock-screen__content"},[r("div",{class:"app-lock-screen__input"},[r(Q,{avatarSize:52,style:"pointer-events: none;margin: 24px 0;",vertical:!0},null),r(l1,{ref:"formInstRef",model:this.lockCondition,rules:e1,labelPlacement:"left",onRegister:l},{default:()=>[r(y1,{path:"lockPassword"},{default:()=>[r(w1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()},autofocus:!0},null)]}),r(C1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[V1("锁屏")]})]})])])}}),U1=m({name:"AppLockScreen",setup(){const{updateSettingState:l}=E(),{getLockScreenSwitch:e}=M();return{lockScreenSwitchRef:y({get:()=>e.value,set:i=>{l("lockScreenSwitch",i)}})}},render(){return r(T,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[r(q1,null,null)]})}}),G1=m({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:l,getWatermarkConfig:e}=M();return{getWatermarkSwitch:l,getWatermarkConfig:e}},render(){const{getWatermarkConfig:l,getWatermarkSwitch:e}=this;return e?r(Z1,O(l,{fullscreen:!0}),null):null}}),J1=m({name:"GlobalSpin",props:{...z1},setup(){const l={opacitySpinning:"0.3"};return{spinValue:i1("globalSpinning"),overrides:l}},render(){return r(k1,O(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}});var Y1={pkg:{version:"5.2.3"}};const K1=m({name:"AppVersionProvider",setup(){const{pkg:{version:l}}=Y1,e=Z(v.appVersionProvider,"localStorage"),t=F1(!1),{logout:i}=c1();return e!==null?l!==e&&(t.value=!0,C(v.appVersionProvider,l,"localStorage")):C(v.appVersionProvider,l,"localStorage"),{modalShow:t,logout:i}},render(){const{logout:l}=this;return r("div",{class:"app-style-provider"},[r(T,{show:this.modalShow,"onUpdate:show":e=>this.modalShow=e,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,draggable:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:l,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),j=m({name:"App",render(){return r(I1,null,{default:()=>[r(K1,null,null),r(U1,null,null),r(W1,null,null),r(G1,null,null),r(J1,null,{default:()=>r(J,null,null),description:()=>a1})]})}});if(typeof window<"u"){let l=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',e.insertBefore(t,e.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()}const X1=()=>{const{localeLanguage:l}=Z(v.appPiniaSettingStore,"localStorage",{defaultValue:{}}),e=r1[l]||n1;h1.locale(e)},x=(l,e)=>{const t=new D1(l,{text:()=>e});l.$$clipboard=t,l.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),l.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},Q1=()=>({mounted:(l,{value:e})=>{x(l,e)},updated:(l,{value:e,oldValue:t})=>{var i;e!==t&&((i=l.$$clipboard)==null||i.destroy(),x(l,e))},beforeUnmount:l=>{var e;l.$$clipboard&&((e=l.$$clipboard)==null||e.destroy(),l.$$clipboard=null)}}),l2=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let l,e;return{beforeMount:(t,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:n}=i;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");l=O1(o,a,Object.assign({},n)),e=R(t,c,l)},beforeUnmount:(t,{value:i})=>{const{trigger:o="click"}=i;l&&(l.cancel(),e==null||e()),l=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),P=(l,e)=>{if(l){const t="ray-template__directive--disabled";e?(l.setAttribute("disabled","disabled"),$(l,t)):(l.removeAttribute("disabled"),w(l,t)),l==null||l.setAttribute("disabled",e?"disabled":"")}},o2=()=>({mounted:(l,{value:e})=>{P(l,e)},updated:(l,{value:e,oldValue:t})=>{e!==t&&P(l,e)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),A=(l,e)=>{const{line:t=1,type:i="block",width:o,popoverText:c}=e;if(o==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${o}!`);return}c&&l.textContent&&l.setAttribute("title",l.textContent),i==="line"?g(l,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:H(o)}):g(l,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:H(o)})},c2=()=>({mounted:(l,{value:e})=>{A(l,e)},updated:(l,{value:e})=>{A(l,e)}}),a2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},r2="v-ripple__container";function L(l,e){l.style.transform=e}function F(l){const e={},t=l.currentTarget;!(t!=null&&t.__d_ripple__)||t.__d_ripple__.touched||(e.center=t.__d_ripple__.centered,t.__d_ripple__.class&&(e.class=t.__d_ripple__.class),z.show(l,t,e))}function D(l){const e=l.currentTarget;e!=null&&e.__d_ripple__&&(setTimeout(()=>{e.__d_ripple__&&(e.__d_ripple__.touched=!1)}),z.hide(e))}const n2=(l,e,t={})=>{var u;const i=e.getBoundingClientRect(),o=l.clientX-i.left,c=l.clientY-i.top;let a=0,n=.3;(u=e.__d_ripple__)!=null&&u.circle?(n=.15,a=e.clientWidth/2,a=t.center?a:a+Math.sqrt((o-a)**2+(c-a)**2)/4):a=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const s=`${(e.clientWidth-a*2)/2}px`,d=`${(e.clientHeight-a*2)/2}px`,p=t.center?s:`${o-a}px`,h=t.center?d:`${c-a}px`;return{radius:a,scale:n,x:p,y:h,centerX:s,centerY:d}},z={show(l,e,t={}){var _;if(!((_=e==null?void 0:e.__d_ripple__)!=null&&_.enabled))return;const i=document.createElement("span"),o=document.createElement("span");i.appendChild(o),i.className=r2,t.class&&(i.className+=` ${t.class}`);const{radius:c,scale:a,x:n,y:s,centerX:d,centerY:p}=n2(l,e,t),h=`${c*2}px`;o.className=f.vRippleAnimation,o.style.width=h,o.style.height=h,e.appendChild(i);const u=window.getComputedStyle(e);u&&u.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),o.classList.add(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationVisible),L(o,`translate(${n}, ${s}) scale3d(${a},${a},${a})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationIn),L(o,`translate(${d}, ${p}) scale3d(1,1,1)`)},0)},hide(l){var c;if(!((c=l==null?void 0:l.__d_ripple__)!=null&&c.enabled))return;const e=l.getElementsByClassName(f.vRippleAnimation);if(e.length===0)return;const t=e[e.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const i=performance.now()-Number(t.dataset.activated),o=Math.max(250-i,0);setTimeout(()=>{t.classList.remove(f.vRippleAnimationIn),t.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var n;l.getElementsByClassName(f.vRippleAnimation).length===1&&l.dataset.previousPosition&&(l.style.position=l.dataset.previousPosition,delete l.dataset.previousPosition),((n=t.parentNode)==null?void 0:n.parentNode)===l&&l.removeChild(t.parentNode)},300)},o)}};function I(l){return typeof l>"u"||!!l}function W(l){l.removeEventListener("pointerdown",F),l.removeEventListener("pointerup",D)}function B(l,e,t){const{value:i,modifiers:o}=e,c=I(i);c||z.hide(l),l.__d_ripple__=l.__d_ripple__??{},l.__d_ripple__.enabled=c,l.__d_ripple__.centered=o.center,l.__d_ripple__.circle=o.circle,E1(i,"Object")&&i.class&&(l.__d_ripple__.class=i.class),c&&!t?(l.addEventListener("pointerdown",F),l.addEventListener("pointerup",D)):!c&&t&&W(l)}const s2=()=>({mounted:(l,e)=>{B(l,e,!1)},beforeUnmount:l=>{delete l.__d_ripple__,W(l)},updated:(l,e)=>{if(e.value===e.oldValue)return;const t=I(e.oldValue);B(l,e,t)}}),d2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),p2=()=>{let l,e;return{beforeMount:(t,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:n}=i;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");l=R1(o,a,Object.assign({},n)),e=R(t,c,l)},beforeUnmount:()=>{l&&l.cancel(),l=null,e==null||e()}}},h2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),f2=l=>Object.keys(l).reduce((t,i)=>{var c;const o=(c=l[i])==null?void 0:c.default;if(typeof o=="function")return t[i]=o,t;throw new TypeError(`directiveModules: ${i} is not function`)},{}),u2=l=>{const t=f2(Object.assign({"/src/directives/modules/copy/index.ts":l2,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":a2,"/src/directives/modules/ripple/index.ts":d2,"/src/directives/modules/throttle/index.ts":h2})),i=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;$1(t,(c,a)=>{var s;const n=(s=a.match(i))==null?void 0:s[0];typeof n=="string"&&o.test(n)?l.directive(n,c()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},q=async()=>{},U=async l=>{s1(l),await d1(l),p1(l),X1(),u2(l)},m2=async()=>{const l=N(j);await U(l),l.mount("#app"),await q()},v2=async()=>{let l;window.__WUJIE_MOUNT=async()=>{l=N(j),await U(l),l.mount("#app"),await q()},window.__WUJIE_UNMOUNT=()=>{l.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?v2():m2(); diff --git a/js/index-C8zhCGKn.js.gz b/js/index-C8zhCGKn.js.gz deleted file mode 100644 index 4b46deb3..00000000 Binary files a/js/index-C8zhCGKn.js.gz and /dev/null differ diff --git a/js/index-CEtXx0V-.js b/js/index-CEtXx0V-.js deleted file mode 100644 index 3080f395..00000000 --- a/js/index-CEtXx0V-.js +++ /dev/null @@ -1 +0,0 @@ -import{a as o}from"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import{m,d as u,J as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as i,N as r}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const V=m({name:"RouterDemoDetail",setup(){return{route:o()}},render(){const{route:e}=this;return u(i,null,{default:()=>[u(r,{title:e.query.name||"hello"},{default:()=>[t("你好 "),e.query.name]}),u(r,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(r,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{V as default}; diff --git a/js/index-CEtXx0V-.js.gz b/js/index-CEtXx0V-.js.gz deleted file mode 100644 index e734c51e..00000000 Binary files a/js/index-CEtXx0V-.js.gz and /dev/null differ diff --git a/js/index-CIsp7w5g.js b/js/index-CIsp7w5g.js new file mode 100644 index 00000000..81089b95 --- /dev/null +++ b/js/index-CIsp7w5g.js @@ -0,0 +1 @@ +import{s as C}from"./instance-Bux9_MkW.js";import{a as f}from"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import{Q as k,T as A,U as B}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e as p,N as l,r as y,B as o,al as h,D}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as w,d as t,J as e,F as b}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{h as N,y as P}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./utils-DJW6-rvp.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./axios@1.10.0-CIcuZHni.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const R=u=>C({url:"/api/list",method:"get",params:u}),Mt=w({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(p,{align:"center"},{default:()=>[t(o,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[e("查看")]}),t(o,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[e("编辑")]}),t(o,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[e("删除")]})]})}],i=N({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=k(()=>{E({page:r(),pageSize:a(),email:i.email})}),{data:d,loading:c,run:E}=f(R,{defaultParams:[{page:r(),pageSize:a(),email:i.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:d,personLoading:c,columns:u,...P(i),getCallback:F,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[e("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{title:"提示"},{default:()=>[t("h2",null,[e("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(A,{cols:3},{default:()=>t(b,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>t(o,{type:"primary",onClick:this.getCallback?.bind(this)},{default:()=>[e("搜索")]})})]}),t(B,{title:"Mock数据表格",data:this.personData?.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]})}});export{Mt as default}; diff --git a/js/index-CIsp7w5g.js.gz b/js/index-CIsp7w5g.js.gz new file mode 100644 index 00000000..eb646605 Binary files /dev/null and b/js/index-CIsp7w5g.js.gz differ diff --git a/js/index-CJpvt_SU.js b/js/index-CJpvt_SU.js new file mode 100644 index 00000000..efaaa574 --- /dev/null +++ b/js/index-CJpvt_SU.js @@ -0,0 +1 @@ +import{m as k,d as t,J as x,p as O,v as D,t as N}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{N as o,ac as a,ad as p,w as _}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as y}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";var w={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^13.1.0",axios:"^1.10.0",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^6.0.0","html-to-image":"1.11.13",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.43.2",pinia:"^3.0.3","pinia-plugin-persistedstate":"^4.4.1","print-js":"^1.6.0",vue:"^3.5.25","vue-demi":"0.14.10","vue-hooks-plus":"2.4.1","vue-i18n":"^11.1.3","vue-router":"^4.6.3","vue3-next-qrcode":"3.0.2"},devDependencies:{"@commitlint/cli":"19.7.1","@commitlint/config-conventional":"19.7.1","@eslint/eslintrc":"3.3.1","@eslint/js":"9.39.1","@ianvs/prettier-plugin-sort-imports":"4.7.0","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"11.0.1","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@typescript-eslint/eslint-plugin":"8.47.0","@typescript-eslint/parser":"8.47.0","@vitejs/plugin-vue":"6.0.2","@vitejs/plugin-vue-jsx":"5.1.2","@vitest/ui":"4.0.12","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.21",depcheck:"1.4.7",eslint:"9.39.1","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.4","eslint-plugin-vue":"10.6.0",globals:"16.5.0","happy-dom":"17.1.0",husky:"8.0.3","lint-staged":"15.4.3",postcss:"8.5.6","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.6.2","rollup-plugin-gzip":"4.0.1",sass:"1.94.2","svg-sprite-loader":"6.0.11",typescript:"5.9.3",unocss:"66.5.9","unplugin-auto-import":"20.2.0","unplugin-vue-components":"0.28.0",vite:"7.2.6","vite-bundle-analyzer":"1.2.3","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"11.3.3","vite-plugin-mock-dev-server":"2.0.4","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"4.0.12","vue-eslint-parser":"10.2.0","vue-tsc":"2.2.8"},name:"ray-template",version:"5.2.5"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!N(i)}const Q=k({name:"RelyAbout",setup(){const{pkg:i}=w,{dependencies:s,devDependencies:n,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=y([]),d=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const l=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);u.value=l(s),d.value=l(n)},j=l=>{l.url&&window.open(l.url)};return D(()=>{h()}),{columns:f,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:j}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(o,{title:"关于项目"},{default:()=>[x("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(o,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(_,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(o,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(o,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-CJpvt_SU.js.gz b/js/index-CJpvt_SU.js.gz new file mode 100644 index 00000000..983b68a1 Binary files /dev/null and b/js/index-CJpvt_SU.js.gz differ diff --git a/js/index-CKWrGOHG.js b/js/index-CKWrGOHG.js deleted file mode 100644 index 4f6553f0..00000000 --- a/js/index-CKWrGOHG.js +++ /dev/null @@ -1 +0,0 @@ -import{m as o,d as r,J as e}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{M as p}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as i}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const v=o({name:"SubMenuOther",setup(){return{inputValue:i(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; diff --git a/js/index-CKWrGOHG.js.gz b/js/index-CKWrGOHG.js.gz deleted file mode 100644 index cf8b52a9..00000000 Binary files a/js/index-CKWrGOHG.js.gz and /dev/null differ diff --git a/js/index-CM8XEO16.js b/js/index-CM8XEO16.js new file mode 100644 index 00000000..9711e441 --- /dev/null +++ b/js/index-CM8XEO16.js @@ -0,0 +1 @@ +import{a3 as V,$ as z,T as G,U as L,y as j,a4 as P}from"./hooks-MEhk8snd.js";import{n as _}from"./utils-DJW6-rvp.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e as n,w as K,N as D,ag as X,B as u,b as r,R as Y,D as F,am as q,o as H,T as Q}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as W,d as e,J as o,t as Z,F as I}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as x,h as ee,y as te}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";function T(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const ot=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,print:h}]=V(),w=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(K,{type:"info",bordered:!1,style:"margin-right: 6px"},T(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(P,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],b=x([...w].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[N,{checkedRowKeysBind:B,getKeys:R,getRows:l,clearKey:v,clearAll:A,selectKey:S}]=z(s,b,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:_(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},$=t=>{window.$message.info(`${t}`)},J=()=>{const{key:t}=s.value[1];v(t)},M=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},U=()=>{const{key:t}=s.value[1];S(t)};return O(),{...te(E),tableData:s,actionColumns:b,baseColumns:w,tableMenuOptions:g,menuSelect:$,register:i,getKeys:R,getRows:l,clearKey:v,clearAll:A,checkedRowKeysBind:B,checkedRowKeys:N,clearSecondIndexRow:J,selectAll:M,selectSecondIndexRow:U,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,getTableInstance:c,print:h}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:C,selectSecondIndexRow:k,clearFilters:y,clearSorter:h,scrollTo:w,filters:b,sort:s,downloadCsv:g,getTableInstance:E,getRows:N,getKeys:B,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(X,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:C.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:k.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,T(i=this.checkedRowKeys.map(l=>e(K,{type:"success",key:l},T(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(G,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(Y,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(q,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(Q,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(H,null,{trigger:()=>e(j,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{ot as default}; diff --git a/js/index-CM8XEO16.js.gz b/js/index-CM8XEO16.js.gz new file mode 100644 index 00000000..b5747ef4 Binary files /dev/null and b/js/index-CM8XEO16.js.gz differ diff --git a/js/index-CNjGdIq4.js b/js/index-CNjGdIq4.js deleted file mode 100644 index 1525aa70..00000000 --- a/js/index-CNjGdIq4.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-CkuihJ2J.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{s as n,g as l,w as c,E as f}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import{N as d,e as i,P as o,ah as u,ai as a,M as m}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as g,d as e,J as r}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const xe=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{xe as default}; diff --git a/js/index-CNjGdIq4.js.gz b/js/index-CNjGdIq4.js.gz deleted file mode 100644 index c3ab9066..00000000 Binary files a/js/index-CNjGdIq4.js.gz and /dev/null differ diff --git a/js/index-CPot1G4P.js b/js/index-CPot1G4P.js deleted file mode 100644 index e27075cb..00000000 --- a/js/index-CPot1G4P.js +++ /dev/null @@ -1 +0,0 @@ -import{m as k,d as t,J as x,p as O,v as D,q as N}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{N as o,ac as a,ad as p,w as _}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as y}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";var w={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^13.1.0",axios:"^1.10.0",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^6.0.0","html-to-image":"1.11.13",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.42.0",pinia:"^3.0.3","pinia-plugin-persistedstate":"^4.4.1","print-js":"^1.6.0",vue:"^3.5.22","vue-demi":"0.14.10","vue-hooks-plus":"2.4.1","vue-i18n":"^9.13.1","vue-router":"^4.6.3","vue3-next-qrcode":"3.0.2"},devDependencies:{"@commitlint/cli":"19.7.1","@commitlint/config-conventional":"19.7.1","@eslint/eslintrc":"3.3.1","@eslint/js":"9.30.1","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@typescript-eslint/eslint-plugin":"8.36.0","@typescript-eslint/parser":"8.36.0","@vitejs/plugin-vue":"6.0.1","@vitejs/plugin-vue-jsx":"5.1.1","@vitest/ui":"3.0.5","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.21",depcheck:"1.4.7",eslint:"9.31.0","eslint-config-prettier":"10.1.5","eslint-plugin-prettier":"5.5.1","eslint-plugin-vue":"9.32.0",globals:"16.3.0","happy-dom":"17.1.0",husky:"8.0.3","lint-staged":"15.4.3",postcss:"8.5.6","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.6.2","rollup-plugin-gzip":"4.0.1",sass:"1.86.3","svg-sprite-loader":"6.0.11",typescript:"5.8.3",unocss:"66.3.3","unplugin-auto-import":"19.1.2","unplugin-vue-components":"0.28.0",vite:"6.3.5","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.10.6","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-eslint-parser":"9.4.3","vue-tsc":"2.2.8"},name:"ray-template",version:"5.2.3"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!N(i)}const Q=k({name:"RelyAbout",setup(){const{pkg:i}=w,{dependencies:s,devDependencies:n,name:e,version:f}=i,g=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=y([]),d=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:f},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const l=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);u.value=l(s),d.value=l(n)},j=l=>{l.url&&window.open(l.url)};return D(()=>{h()}),{columns:g,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:j}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(o,{title:"关于项目"},{default:()=>[x("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(o,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(_,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(o,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(o,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-CPot1G4P.js.gz b/js/index-CPot1G4P.js.gz deleted file mode 100644 index 8aecd6e1..00000000 Binary files a/js/index-CPot1G4P.js.gz and /dev/null differ diff --git a/js/index-CVDGfTQ-.js b/js/index-CVDGfTQ-.js new file mode 100644 index 00000000..adb8d691 --- /dev/null +++ b/js/index-CVDGfTQ-.js @@ -0,0 +1 @@ +import{y as m,W as o}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{m as h,d as u,J as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as d,ag as F,N as i,a as b,b as l,aj as f,ak as a}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as B}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const vu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=B("this is three"),e=B("medium"),C=B("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(d,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(d,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(d,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{vu as default}; diff --git a/js/index-CVDGfTQ-.js.gz b/js/index-CVDGfTQ-.js.gz new file mode 100644 index 00000000..6792322f Binary files /dev/null and b/js/index-CVDGfTQ-.js.gz differ diff --git a/js/index-CZ5DBchu.js b/js/index-CZ5DBchu.js new file mode 100644 index 00000000..214a2bf3 --- /dev/null +++ b/js/index-CZ5DBchu.js @@ -0,0 +1 @@ +import{a as o}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import{m,d as u,J as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as i,N as r}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const V=m({name:"RouterDemoDetail",setup(){return{route:o()}},render(){const{route:e}=this;return u(i,null,{default:()=>[u(r,{title:e.query.name||"hello"},{default:()=>[t("你好 "),e.query.name]}),u(r,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(r,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{V as default}; diff --git a/js/index-CZ5DBchu.js.gz b/js/index-CZ5DBchu.js.gz new file mode 100644 index 00000000..f94807aa Binary files /dev/null and b/js/index-CZ5DBchu.js.gz differ diff --git a/js/index-CibMIKN_.js b/js/index-CibMIKN_.js deleted file mode 100644 index b7270f13..00000000 --- a/js/index-CibMIKN_.js +++ /dev/null @@ -1 +0,0 @@ -import{V as m,n as l}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{e as d,N as e,P as o}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as p,d as u,J as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{h as s,y as E}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const nu=p({name:"ModalDemo",setup(){const a=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=m(),r=()=>{i({title:"卡片模态框",draggable:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},F=()=>{i({title:"模态框",content:"内容",preset:"dialog",draggable:!0})};return{...E(a),createCardModal:r,createDialogModal:F}},render(){const{createCardModal:a,createDialogModal:i}=this;return u(d,{vertical:!0},{default:()=>[u(e,{title:"props"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h3",null,[t("fullscreen: 全屏模态框。")])]})]}),u(l,{show:this.modal1,"onUpdate:show":r=>this.modal1=r,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(l,{show:this.modal2,"onUpdate:show":r=>this.modal2=r,preset:"card",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(l,{show:this.modal3,"onUpdate:show":r=>this.modal3=r,preset:"dialog",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(e,{title:"可拖拽模态框"},{default:()=>[u(o,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(o,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(e,{title:"全屏模态框"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(o,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(e,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(e,{title:"重写 useModal"},{default:()=>[u(o,{onClick:a.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(o,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{nu as default}; diff --git a/js/index-CibMIKN_.js.gz b/js/index-CibMIKN_.js.gz deleted file mode 100644 index edb81534..00000000 Binary files a/js/index-CibMIKN_.js.gz and /dev/null differ diff --git a/js/index-CxsLSYpq.js b/js/index-CxsLSYpq.js deleted file mode 100644 index 33367a03..00000000 --- a/js/index-CxsLSYpq.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,z as c}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{m as p,d as t,O as m,V as n,q as v}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{N as E,e as d,p as a}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as u}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const Oo=p({name:"PreviewSVGIcons",setup(){const i=u([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(E,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{Oo as default}; diff --git a/js/index-CxsLSYpq.js.gz b/js/index-CxsLSYpq.js.gz deleted file mode 100644 index 26ab2a19..00000000 Binary files a/js/index-CxsLSYpq.js.gz and /dev/null differ diff --git a/js/index-CyqiW0jN.js b/js/index-CyqiW0jN.js deleted file mode 100644 index 320a75bd..00000000 --- a/js/index-CyqiW0jN.js +++ /dev/null @@ -1 +0,0 @@ -import{m as o,d as r,J as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{N as u}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; diff --git a/js/index-CyqiW0jN.js.gz b/js/index-CyqiW0jN.js.gz deleted file mode 100644 index 4365d9cc..00000000 Binary files a/js/index-CyqiW0jN.js.gz and /dev/null differ diff --git a/js/index-CzoSBfAh.js b/js/index-CzoSBfAh.js new file mode 100644 index 00000000..994e7b17 --- /dev/null +++ b/js/index-CzoSBfAh.js @@ -0,0 +1 @@ +import"./hooks-MEhk8snd.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{F as h,G as F,H as O,I as C,J as E,K as b}from"./utils-DJW6-rvp.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{m as D,d as u,n as B,J as p}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{_ as f,e as r,N as i,V as o,U as s}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{h as v,y as V}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const yt=D({name:"CalculatePrecision",setup(){const t=v({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:C,subtractOptions:O,multiplyOptions:F,divideOptions:h},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+E(c)},e=()=>{B().then(()=>{t.distributeOutputValue=b(t.distributeValue,t.distributeLength)})};return e(),{...V(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(f,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{yt as default}; diff --git a/js/index-CzoSBfAh.js.gz b/js/index-CzoSBfAh.js.gz new file mode 100644 index 00000000..8771f748 Binary files /dev/null and b/js/index-CzoSBfAh.js.gz differ diff --git a/js/index-D59wuniw.js b/js/index-D59wuniw.js deleted file mode 100644 index e3d34792..00000000 --- a/js/index-D59wuniw.js +++ /dev/null @@ -1 +0,0 @@ -import{J as r,K as A}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{N as u,e as c,P as i,J as C}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as O,d as t,J as e}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as g,h as V,y as L}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ut=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:y,isDisposed:B}]=A(),D=g(!1),E=g(!1),s=V({loading:!1,loading1:!1}),b={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},h=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"4%",right:"4%",top:"2%",outerBounds:{bottom:"10%"},outerBoundsMode:"auto"},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:b,chartLoading:D,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:h,...L(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(c,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(c,{vertical:!0},{default:()=>[t(c,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Ut as default}; diff --git a/js/index-D59wuniw.js.gz b/js/index-D59wuniw.js.gz deleted file mode 100644 index 9561d12e..00000000 Binary files a/js/index-D59wuniw.js.gz and /dev/null differ diff --git a/js/index-DS8LyikS.js b/js/index-DS8LyikS.js deleted file mode 100644 index ed2ad730..00000000 --- a/js/index-DS8LyikS.js +++ /dev/null @@ -1 +0,0 @@ -import{m as r,d as o,J as e}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{M as i}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const E=r({name:"MultiMenuOne",setup(){return{inputValue:p(null)}},render(){return o("div",null,[e("多级菜单-1"),o(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{E as default}; diff --git a/js/index-DS8LyikS.js.gz b/js/index-DS8LyikS.js.gz deleted file mode 100644 index c12b766c..00000000 Binary files a/js/index-DS8LyikS.js.gz and /dev/null differ diff --git a/js/index-DX3k6HIU.js b/js/index-DX3k6HIU.js deleted file mode 100644 index 653e3749..00000000 --- a/js/index-DX3k6HIU.js +++ /dev/null @@ -1 +0,0 @@ -import{a as l}from"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import{s as n}from"./instance-DHBzlXKU.js";import{_ as A,e as r,N as o,P as g,M as i}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as V,d as u,J as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{h as R,y as v}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./axios@1.10.0-Dq7h7Pqt.js";import"./hooks-CkuihJ2J.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function w(e,a){return l(()=>n(e),Object.assign({},a))}const b=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Lu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(b,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=w({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(A,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>{var e;return[u(g,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Lu as default}; diff --git a/js/index-DX3k6HIU.js.gz b/js/index-DX3k6HIU.js.gz deleted file mode 100644 index a11581dc..00000000 Binary files a/js/index-DX3k6HIU.js.gz and /dev/null differ diff --git a/js/index-DZYpO7kn.js b/js/index-DZYpO7kn.js new file mode 100644 index 00000000..32ad2249 --- /dev/null +++ b/js/index-DZYpO7kn.js @@ -0,0 +1 @@ +import{H as d}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{m as c,d as t,J as n}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as s,N as f,k as h}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as u}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const kt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{kt as default}; diff --git a/js/index-DZYpO7kn.js.gz b/js/index-DZYpO7kn.js.gz new file mode 100644 index 00000000..9aa3f873 Binary files /dev/null and b/js/index-DZYpO7kn.js.gz differ diff --git a/js/index-Db0GGVvm.js b/js/index-Db0GGVvm.js deleted file mode 100644 index 5a7273cb..00000000 --- a/js/index-Db0GGVvm.js +++ /dev/null @@ -1 +0,0 @@ -import{P as r}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{m as i,d as t}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as m,N as o}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const pt=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{pt as default}; diff --git a/js/index-Db0GGVvm.js.gz b/js/index-Db0GGVvm.js.gz deleted file mode 100644 index a7f15d81..00000000 Binary files a/js/index-Db0GGVvm.js.gz and /dev/null differ diff --git a/js/index-DhKYIZ2t.js.gz b/js/index-DhKYIZ2t.js.gz deleted file mode 100644 index 32e9bd24..00000000 Binary files a/js/index-DhKYIZ2t.js.gz and /dev/null differ diff --git a/js/index-DiIbgQo6.js b/js/index-DiIbgQo6.js new file mode 100644 index 00000000..a519e5e2 --- /dev/null +++ b/js/index-DiIbgQo6.js @@ -0,0 +1 @@ +import{m as f,d as u,J as e,O as t,V as l}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as a,N as i,ag as n,w as s,B as r,U as B,ah as p,D as d,T as E,r as m,C as h}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{h as v,k as A,y as D}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const H=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...D(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(n,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(n,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(n,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(r,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(n,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(r,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{H as default}; diff --git a/js/index-DiIbgQo6.js.gz b/js/index-DiIbgQo6.js.gz new file mode 100644 index 00000000..c76d5591 Binary files /dev/null and b/js/index-DiIbgQo6.js.gz differ diff --git a/js/index-Dn4lWhUi.js b/js/index-Dn4lWhUi.js new file mode 100644 index 00000000..812e079d --- /dev/null +++ b/js/index-Dn4lWhUi.js @@ -0,0 +1 @@ +import{g as S,m as W,a5 as V,u as w,a6 as y,a7 as N,a8 as M,a9 as L,y as R}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e as a,N as i,D as T,B as t}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as U,d as u,J as e}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as b}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const Hu=U({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=L(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=M(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=N(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=w(),{hidden:v,show:x,update:z}=y();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(R,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:-9999}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Hu as default}; diff --git a/js/index-Dn4lWhUi.js.gz b/js/index-Dn4lWhUi.js.gz new file mode 100644 index 00000000..5c9cab8b Binary files /dev/null and b/js/index-Dn4lWhUi.js.gz differ diff --git a/js/index-Doj_j7n-.js b/js/index-Doj_j7n-.js deleted file mode 100644 index 5c00bb8f..00000000 --- a/js/index-Doj_j7n-.js +++ /dev/null @@ -1 +0,0 @@ -import{z as s}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{A as E}from"./index-DhKYIZ2t.js";import{e as a,N as i,ac as f,ad as c,ae as n,af as d,w as p,O as b}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as F,d as t,J as u,p as C,q as A}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!A(o)}const Dt=F({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("Vue3.x")]}),t(p,{type:"info"},{default:()=>[u("React")]})]})},{label:"从事搬砖时长",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>t(a,{align:"center"},{default:()=>[t(s,{name:"ray",size:"22"},null),u("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>t(a,{align:"center"},{default:()=>[u("如果有希望补充的功能可以在"),t(b,C({tag:"a",class:"dashboard-link",type:"primary"},{href:"https://github.com/XiaoDaiGua-Ray/ray-template/issues"}),{default:()=>[u("GitHub")]}),u("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let o,l;return t(a,{vertical:!0},{default:()=>[t(i,null,{header:()=>t(s,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),t(i,{title:"个人介绍"},{default:()=>[t(f,{bordered:!0,labelPlacement:"left",column:2},m(o=this.coverLetterOptions.map(e=>{let r;return t(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?o:{default:()=>[o]})]}),t(i,{title:"项目介绍"},{default:()=>[t(n,null,{default:()=>[u("技术栈")]}),t(d,null,{default:()=>[t(a,null,m(l=this.technologyTagOptions.map(e=>t(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?l:{default:()=>[l]})]}),t(n,null,{default:()=>[u("项目介绍")]}),t(d,null,{default:()=>[u("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),t(i,{title:"友情链接"},{default:()=>[t(E,null,null)]})]})}});export{Dt as default}; diff --git a/js/index-Doj_j7n-.js.gz b/js/index-Doj_j7n-.js.gz deleted file mode 100644 index b393bdb2..00000000 Binary files a/js/index-Doj_j7n-.js.gz and /dev/null differ diff --git a/js/index-Dr3r3fQI.js b/js/index-Dr3r3fQI.js deleted file mode 100644 index 844ce307..00000000 --- a/js/index-Dr3r3fQI.js +++ /dev/null @@ -1 +0,0 @@ -import{m as f,d as u,J as e,O as t,V as l}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as a,N as i,ag as n,w as s,P as r,K as B,ah as p,M as d,J as E,r as m,I as h}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{h as v,k as A,y as D}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const M=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...D(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(n,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(n,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(n,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(r,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(n,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(r,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{M as default}; diff --git a/js/index-Dr3r3fQI.js.gz b/js/index-Dr3r3fQI.js.gz deleted file mode 100644 index 5abdf04d..00000000 Binary files a/js/index-Dr3r3fQI.js.gz and /dev/null differ diff --git a/js/index-DzPBaQ_Z.js b/js/index-DzPBaQ_Z.js deleted file mode 100644 index ea1ea60d..00000000 --- a/js/index-DzPBaQ_Z.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-CkuihJ2J.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{F as h,G as F,H as O,I as C,J as E,K as b}from"./utils-BPTDWjJB.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import{m as D,d as u,n as B,J as p}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{_ as f,e as r,N as i,L as o,K as s}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{h as v,y as V}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const yt=D({name:"CalculatePrecision",setup(){const t=v({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:C,subtractOptions:O,multiplyOptions:F,divideOptions:h},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+E(c)},e=()=>{B().then(()=>{t.distributeOutputValue=b(t.distributeValue,t.distributeLength)})};return e(),{...V(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(f,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{yt as default}; diff --git a/js/index-DzPBaQ_Z.js.gz b/js/index-DzPBaQ_Z.js.gz deleted file mode 100644 index f251de38..00000000 Binary files a/js/index-DzPBaQ_Z.js.gz and /dev/null differ diff --git a/js/index-Ibzn0E51.js b/js/index-Ibzn0E51.js new file mode 100644 index 00000000..63096956 --- /dev/null +++ b/js/index-Ibzn0E51.js @@ -0,0 +1 @@ +import{V as m,l as a}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e as d,N as e,B as o}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as p,d as u,J as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{h as s,y as E}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const nu=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=m(),r=()=>{i({title:"卡片模态框",draggable:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},F=()=>{i({title:"模态框",content:"内容",preset:"dialog",draggable:!0})};return{...E(l),createCardModal:r,createDialogModal:F}},render(){const{createCardModal:l,createDialogModal:i}=this;return u(d,{vertical:!0},{default:()=>[u(e,{title:"props"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h3",null,[t("fullscreen: 全屏模态框。")])]})]}),u(a,{show:this.modal1,"onUpdate:show":r=>this.modal1=r,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(a,{show:this.modal2,"onUpdate:show":r=>this.modal2=r,preset:"card",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(a,{show:this.modal3,"onUpdate:show":r=>this.modal3=r,preset:"dialog",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(e,{title:"可拖拽模态框"},{default:()=>[u(o,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(o,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(e,{title:"全屏模态框"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(o,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(e,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(e,{title:"重写 useModal"},{default:()=>[u(o,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(o,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{nu as default}; diff --git a/js/index-Ibzn0E51.js.gz b/js/index-Ibzn0E51.js.gz new file mode 100644 index 00000000..4c310242 Binary files /dev/null and b/js/index-Ibzn0E51.js.gz differ diff --git a/js/index-TjBxxqB0.js b/js/index-TjBxxqB0.js new file mode 100644 index 00000000..e2c74fd5 --- /dev/null +++ b/js/index-TjBxxqB0.js @@ -0,0 +1 @@ +import{m as o,d as r,J as e}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{D as p}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as i}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const k=o({name:"SubMenuOther",setup(){return{inputValue:i(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{k as default}; diff --git a/js/index-TjBxxqB0.js.gz b/js/index-TjBxxqB0.js.gz new file mode 100644 index 00000000..18cf0c79 Binary files /dev/null and b/js/index-TjBxxqB0.js.gz differ diff --git a/js/index-d93jGPsr.js b/js/index-d93jGPsr.js new file mode 100644 index 00000000..217da199 --- /dev/null +++ b/js/index-d93jGPsr.js @@ -0,0 +1 @@ +import{m as e,d as o,J as r}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{D as i}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{k as p}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:p(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; diff --git a/js/index-d93jGPsr.js.gz b/js/index-d93jGPsr.js.gz new file mode 100644 index 00000000..a03dfa02 Binary files /dev/null and b/js/index-d93jGPsr.js.gz differ diff --git a/js/index-gW2CZArc.js b/js/index-gW2CZArc.js new file mode 100644 index 00000000..6704362d --- /dev/null +++ b/js/index-gW2CZArc.js @@ -0,0 +1 @@ +import{E as m,m as u}from"./hooks-MEhk8snd.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{u as s}from"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{ab as a,K as n,e as l,B as i}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as e,d as t,p as c,J as p}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const d=e({name:"PageResult",props:{...a},setup(){const{replace:r}=s();return{goBack:()=>{const{getAppRootRoute:o}=u();o.value?.path&&r(o.value.path)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(n,c(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(l,{align:"center",justify:"center"},{default:()=>[t(i,{onClick:m.bind(this,!0)},{default:()=>[p("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[p("返回上一页面")]})]})})])}}),gt=e({name:"ErrorPage404",setup(){return{}},render(){return t(d,{status:"404"},null)}});export{gt as default}; diff --git a/js/index-gW2CZArc.js.gz b/js/index-gW2CZArc.js.gz new file mode 100644 index 00000000..1b437c12 Binary files /dev/null and b/js/index-gW2CZArc.js.gz differ diff --git a/js/index-llSjcbyI.js b/js/index-llSjcbyI.js new file mode 100644 index 00000000..28f4bc23 --- /dev/null +++ b/js/index-llSjcbyI.js @@ -0,0 +1 @@ +import{s as n}from"./instance-Bux9_MkW.js";import{a as l}from"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import{_ as A,e as r,N as o,B as g,D as i}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as V,d as u,J as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{h as R,y as v}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./hooks-MEhk8snd.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./axios@1.10.0-CIcuZHni.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";function w(e,a){return l(()=>n(e),Object.assign({},a))}const b=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Lu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(b,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=w({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(A,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(g,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":this.demoData?.title])]})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Lu as default}; diff --git a/js/index-llSjcbyI.js.gz b/js/index-llSjcbyI.js.gz new file mode 100644 index 00000000..96b5d382 Binary files /dev/null and b/js/index-llSjcbyI.js.gz differ diff --git a/js/index-nfCdj-8A.js b/js/index-nfCdj-8A.js new file mode 100644 index 00000000..f8aff819 --- /dev/null +++ b/js/index-nfCdj-8A.js @@ -0,0 +1 @@ +import{A as E}from"./index-BQlPRast.js";import{y as s}from"./hooks-MEhk8snd.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{e as a,N as i,ac as f,ad as c,ae as n,af as d,w as r,L as b}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as F,d as u,J as t,p as C,t as y}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";function m(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!y(e)}const Bu=F({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>u(a,null,{default:()=>[u(r,{type:"success"},{default:()=>[t("Vue3.x")]}),u(r,{type:"info"},{default:()=>[t("React")]})]})},{label:"从事搬砖时长",des:()=>u(a,null,{default:()=>[u(r,{type:"success"},{default:()=>[t("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>u(a,{align:"center"},{default:()=>[u(s,{name:"ray",size:"22"},null),t("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>u(a,{align:"center"},{default:()=>[t("如果有希望补充的功能可以在"),u(b,C({tag:"a",class:"dashboard-link",type:"primary"},{href:"https://github.com/XiaoDaiGua-Ray/ray-template/issues"}),{default:()=>[t("GitHub")]}),t("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let e,l;return u(a,{vertical:!0},{default:()=>[u(i,null,{header:()=>u(s,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),u(i,{title:"个人介绍"},{default:()=>[u(f,{bordered:!0,labelPlacement:"left",column:2},m(e=this.coverLetterOptions.map(o=>{let p;return u(c,{key:o.label,label:o.label,span:o?.span},m(p=o.des())?p:{default:()=>[p]})}))?e:{default:()=>[e]})]}),u(i,{title:"项目介绍"},{default:()=>[u(n,null,{default:()=>[t("技术栈")]}),u(d,null,{default:()=>[u(a,null,m(l=this.technologyTagOptions.map(o=>u(r,{key:o.value,type:"info"},{default:()=>[o.label]})))?l:{default:()=>[l]})]}),u(n,null,{default:()=>[t("项目介绍")]}),u(d,null,{default:()=>[t("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),u(i,{title:"友情链接"},{default:()=>[u(E,null,null)]})]})}});export{Bu as default}; diff --git a/js/index-nfCdj-8A.js.gz b/js/index-nfCdj-8A.js.gz new file mode 100644 index 00000000..55f2bdae Binary files /dev/null and b/js/index-nfCdj-8A.js.gz differ diff --git a/js/index-qE3vedkr.js b/js/index-qE3vedkr.js deleted file mode 100644 index f253fa55..00000000 --- a/js/index-qE3vedkr.js +++ /dev/null @@ -1 +0,0 @@ -import{a3 as V,$ as z,T as G,U as L,z as P,a4 as j}from"./hooks-CkuihJ2J.js";import{m as _}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{e as n,w as K,N as D,ag as q,P as u,b as r,H,M as F,am as X,p as Y,J as Q}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as W,d as e,J as o,q as Z,F as I}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as x,h as ee,y as te}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const ot=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,print:h}]=V(),w=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(K,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(j,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],b=x([...w].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:B,getKeys:R,getRows:l,clearKey:v,clearAll:A,selectKey:S}]=z(s,b,{rowKey:"key",onChange:(t,a,d)=>{}}),J=()=>{for(let t=0;t<10;t++)s.value.push({key:_(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},M=t=>{window.$message.info(`${t}`)},O=()=>{const{key:t}=s.value[1];v(t)},$=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},U=()=>{const{key:t}=s.value[1];S(t)};return J(),{...te(E),tableData:s,actionColumns:b,baseColumns:w,tableMenuOptions:g,menuSelect:M,register:i,getKeys:R,getRows:l,clearKey:v,clearAll:A,checkedRowKeysBind:B,checkedRowKeys:T,clearSecondIndexRow:O,selectAll:$,selectSecondIndexRow:U,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,getTableInstance:c,print:h}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:C,selectSecondIndexRow:k,clearFilters:y,clearSorter:h,scrollTo:w,filters:b,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:B,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(q,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:C.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:k.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(l=>e(K,{type:"success",key:l},N(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(G,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(H,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(X,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(Q,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(Y,null,{trigger:()=>e(P,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{ot as default}; diff --git a/js/index-qE3vedkr.js.gz b/js/index-qE3vedkr.js.gz deleted file mode 100644 index 5af00cc7..00000000 Binary files a/js/index-qE3vedkr.js.gz and /dev/null differ diff --git a/js/index-uwe6HViu.js b/js/index-uwe6HViu.js deleted file mode 100644 index f32ec403..00000000 --- a/js/index-uwe6HViu.js +++ /dev/null @@ -1 +0,0 @@ -import{j as F,R as C}from"./hooks-CkuihJ2J.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import{a as N}from"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./instance-DHBzlXKU.js";import{N as k,a as R,al as u,M as d,K as b,am as y,aj as B,ak as f,e as g,P as i,O as E,J as w}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as x,d as e,J as a}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as D}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./axios@1.10.0-Dq7h7Pqt.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ue=x({name:"RFormDemo",setup(){const[r,{validate:o,restoreValidation:m,formRules:l,reset:n,validateTargetField:p,formConditionRef:s}]=F({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"],key:"name"},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),t=D(!1),{run:c}=N(()=>new Promise((h,v)=>{o().then(()=>{t.value=!0,setTimeout(()=>{window.$message.success("校验成功"),h(!0)},500)}).catch(v).finally(()=>{t.value=!1})}),{manual:!0});return{register:r,formConditionRef:s,restoreValidation:m,validate:o,formRules:l,validateTargetField:p,reset:n,formLoading:t,runHookPlusRequest:c}},render(){const{formConditionRef:r}=this,{register:o,restoreValidation:m,formRules:l,validateTargetField:n,reset:p,runHookPlusRequest:s}=this;return e(k,{title:()=>e(g,{align:"center"},{default:()=>[e(E,null,{default:()=>[a("useForm 表单校验")]}),e(w,{value:this.formLoading,"onUpdate:value":t=>this.formLoading=t},null)]})},{default:()=>e(C,{onRegister:o,rules:l(),model:r,submitWhenEnter:!0,onFinish:()=>{window.$message.success("表单提交成功")},loading:this.formLoading},{default:()=>[e(R,{cols:24,xGap:24},{default:()=>[e(u,{label:"姓名",path:"name",span:12},{default:()=>[e(d,{value:r.name,"onUpdate:value":t=>r.name=t},null)]}),e(u,{label:"年龄",path:"age",span:12},{default:()=>[e(b,{value:r.age,"onUpdate:value":t=>r.age=t,showButton:!1},null)]}),e(u,{label:"出生日期",path:"date",span:12},{default:()=>[e(y,{value:r.date,"onUpdate:value":t=>r.date=t},null)]}),e(u,{label:"性别",path:"gender",span:12},{default:()=>[e(B,{value:r.gender,"onUpdate:value":t=>r.gender=t},{default:()=>[e(f,{value:"girl"},{default:()=>[a("女")]}),e(f,{value:"man"},{default:()=>[a("男")]})]})]}),e(u,{label:"备注信息",span:24},{default:()=>[e(d,{type:"textarea",value:r.remark,"onUpdate:value":t=>r.remark=t},null)]}),e(u,{span:24},{default:()=>[e(g,null,{default:()=>[e(i,{type:"info",onClick:()=>p()},{default:()=>[a("重置表单为初始状态")]}),e(i,{type:"warning",onClick:m},{default:()=>[a("移除校验状态")]}),e(i,{type:"primary",onClick:()=>n("name")},{default:()=>[a("仅校验姓名字段")]}),e(i,{type:"primary",onClick:s},{default:()=>[a("校验")]})]})]})]})]}),"header-extra":()=>"输入表单的时候,试试按下 Enter 键"})}});export{Ue as default}; diff --git a/js/index-uwe6HViu.js.gz b/js/index-uwe6HViu.js.gz deleted file mode 100644 index d448f1be..00000000 Binary files a/js/index-uwe6HViu.js.gz and /dev/null differ diff --git a/js/index-yS3d6kCX.js b/js/index-yS3d6kCX.js new file mode 100644 index 00000000..3d57722a --- /dev/null +++ b/js/index-yS3d6kCX.js @@ -0,0 +1 @@ +import{m as o,d as r,J as t}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{N as u}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; diff --git a/js/index-yS3d6kCX.js.gz b/js/index-yS3d6kCX.js.gz new file mode 100644 index 00000000..081347e6 Binary files /dev/null and b/js/index-yS3d6kCX.js.gz differ diff --git a/js/instance-Bux9_MkW.js b/js/instance-Bux9_MkW.js new file mode 100644 index 00000000..4a05fd64 --- /dev/null +++ b/js/instance-Bux9_MkW.js @@ -0,0 +1 @@ +import{a0 as t,k as R,a1 as n,a2 as q}from"./hooks-MEhk8snd.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{g as d}from"./utils-DJW6-rvp.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import{a as y}from"./axios@1.10.0-CIcuZHni.js";const A=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},k=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},P=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},g=(e,r)=>{k(e,[P(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},p={implementRequestInterceptorArray:[g,A],implementRequestInterceptorErrorArray:[E]},{setImplement:m}=n(),v=()=>{const{implementRequestInterceptorArray:e}=p;m("implementRequestInterceptorArray",e,"ok")},f=()=>{const{implementRequestInterceptorErrorArray:e}=p;m("implementRequestInterceptorErrorArray",e,"error")},C=(e,r)=>{t.removePendingRequest(e)},H=(e,r)=>{t.removePendingRequest(e)},c={implementResponseInterceptorArray:[C],implementResponseInterceptorErrorArray:[H]},{setImplement:a}=n(),j=()=>{const{implementResponseInterceptorArray:e}=c;a("implementResponseInterceptorArray",e,"ok")},x=()=>{const{implementResponseInterceptorErrorArray:e}=c;a("implementResponseInterceptorErrorArray",e,"error")},i=y.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),v(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(f(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),j(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(x(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-Bux9_MkW.js.gz b/js/instance-Bux9_MkW.js.gz new file mode 100644 index 00000000..8d4b8a8d Binary files /dev/null and b/js/instance-Bux9_MkW.js.gz differ diff --git a/js/instance-DHBzlXKU.js b/js/instance-DHBzlXKU.js deleted file mode 100644 index 8788a912..00000000 --- a/js/instance-DHBzlXKU.js +++ /dev/null @@ -1 +0,0 @@ -import{a as R}from"./axios@1.10.0-Dq7h7Pqt.js";import{a0 as t,a1 as n,f as q,a2 as d}from"./hooks-CkuihJ2J.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{g as A}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-DHBzlXKU.js.gz b/js/instance-DHBzlXKU.js.gz deleted file mode 100644 index 9d14c765..00000000 Binary files a/js/instance-DHBzlXKU.js.gz and /dev/null differ diff --git a/js/interactjs@1.10.27-BJB5VkCx.js b/js/interactjs@1.10.27-BJB5VkCx.js deleted file mode 100644 index b823183a..00000000 --- a/js/interactjs@1.10.27-BJB5VkCx.js +++ /dev/null @@ -1 +0,0 @@ -import{g as Cr}from"./classnames@2.5.1-Dfc4g_b4.js";var ye={exports:{}},jr=ye.exports,bn;function Fr(){return bn||(bn=1,function(be,Yr){(function(Ye,re){be.exports=re()})(jr,function(){function Ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function re(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xe(o)}(this,n)}}function we(){return we=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=U(o))!==null;);return o}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},we.apply(this,arguments)}function ht(t){var e=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return typeof e=="symbol"?e:e+""}var gt=function(t){return!(!t||!t.Window)&&t instanceof t.Window},mt=void 0,H=void 0;function yt(t){mt=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(e)===e&&(t=t.wrap(t)),H=t}function F(t){return gt(t)?t:(t.ownerDocument||t).defaultView||H.window}typeof window<"u"&&window&&yt(window);var Ee=function(t){return!!t&&Z(t)==="object"},bt=function(t){return typeof t=="function"},d={window:function(t){return t===H||gt(t)},docFrag:function(t){return Ee(t)&&t.nodeType===11},object:Ee,func:bt,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||Z(t)!=="object")return!1;var e=F(t)||H;return/object|function/.test(typeof Element>"u"?"undefined":Z(Element))?t instanceof Element||t instanceof e.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return Ee(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return Ee(t)&&t.length!==void 0&&bt(t.splice)}};function qe(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.prepared.axis;n==="x"?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):n==="y"&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function xt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="drag"){var r=n.prepared.axis;if(r==="x"||r==="y"){var i=r==="x"?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}var Te={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=Te.draggable,e.map.drag=Te,e.methodDict.drag="draggable",r.actions.drag=Te.defaults},listeners:{"interactions:before-action-move":qe,"interactions:action-resume":qe,"interactions:action-move":xt,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(r&n.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis},!1}},draggable:function(t){return d.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):d.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:qe,move:xt,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},wt=Te,A={init:function(t){var e=t;A.document=e.document,A.DocumentFragment=e.DocumentFragment||ee,A.SVGElement=e.SVGElement||ee,A.SVGSVGElement=e.SVGSVGElement||ee,A.SVGElementInstance=e.SVGElementInstance||ee,A.Element=e.Element||ee,A.HTMLElement=e.HTMLElement||A.Element,A.Event=e.Event,A.Touch=e.Touch||ee,A.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ee(){}var O=A,R={init:function(t){var e=O.Element,n=t.navigator||{};R.supportsTouch="ontouchstart"in t||d.func(t.DocumentTouch)&&O.document instanceof t.DocumentTouch,R.supportsPointerEvent=n.pointerEnabled!==!1&&!!O.PointerEvent,R.isIOS=/iP(hone|od|ad)/.test(n.platform),R.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),R.isIe9=/MSIE 9/.test(n.userAgent),R.isOperaMobile=n.appName==="Opera"&&R.supportsTouch&&/Presto/.test(n.userAgent),R.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",R.pEventTypes=R.supportsPointerEvent?O.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,R.wheelEvent=O.document&&"onmousewheel"in O.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},C=R;function K(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Et(t,e){for(;d.element(t);){if(B(t,e))return t;t=X(t)}return null}function X(t){var e=t.parentNode;if(d.docFrag(e)){for(;(e=e.host)&&d.docFrag(e););return e}return e}function B(t,e){return H!==mt&&(e=e.replace(/\/deep\//g," ")),t[C.prefixedMatchesSelector](e)}var Be=function(t){return t.parentNode||t.host};function Tt(t,e){for(var n,r=[],i=t;(n=Be(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function Ve(t,e,n){for(;d.element(t);){if(B(t,e))return!0;if((t=X(t))===n)return B(t,e)}return!1}function St(t){return t.correspondingUseElement||t}function We(t){var e=t instanceof O.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function Ge(t){var e,n=We(t);if(!C.isIOS7&&n){var r={x:(e=(e=F(t))||H).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function _t(t){for(var e=[];t;)e.push(t),t=X(t);return e}function Pt(t){return!!d.string(t)&&(O.document.querySelector(t),!0)}function x(t,e){for(var n in e)t[n]=e[n];return t}function Ot(t,e,n){return t==="parent"?X(n):t==="self"?e.getRect(n):Et(n,t)}function ae(t,e,n,r){var i=t;return d.string(i)?i=Ot(i,e,n):d.func(i)&&(i=i.apply(void 0,r)),d.element(i)&&(i=Ge(i)),i}function Se(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Ne(t){return!t||"x"in t&&"y"in t||((t=x({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function _e(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function se(t,e,n){var r=n&&t.options[n];return Se(ae(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function $(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(c){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},d.string(t)&&t.search(" ")!==-1&&(t=kt(t)),d.array(t))return t.forEach(function(c){return $(c,e,n,r)}),r;if(d.object(t)&&(e=t,t=""),d.func(e)&&n(t))r[t]=r[t]||[],r[t].push(e);else if(d.array(e))for(var i=0,o=e;i1?zt(e):e[0];Mt(r,t.page),function(i,o){o=o||{},C.isOperaMobile&&It(i)?ke("screen",i,o):ke("client",i,o)}(r,t.client),t.timeStamp=n}function Ue(t){var e=[];return d.array(t)?(e[0]=t[0],e[1]=t[1]):t.type==="touchend"?t.touches.length===1?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):t.touches.length===0&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function zt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n=(parseInt(F(b).getComputedStyle(b).zIndex,10)||0)&&(y=_);else y=_}else y=_}return y}(a);return r.activeDrops[v]||null}function Qe(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type==="dragstart"&&(i.activate=new te(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),n.type==="dragend"&&(i.deactivate=new te(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new te(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new te(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type==="dragend"&&r.cur.dropzone&&(i.drop=new te(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type==="dragmove"&&r.cur.dropzone&&(i.move=new te(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function Ze(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&Ft(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Yt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if(r.type==="dragmove"||r.type==="dragend"){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Je(e,n.element));var a=r,s=Xt(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Qe(n,0,a)}}var Lt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(wt),r.prototype.dropzone=function(o){return function(a,s){if(d.object(s)){if(a.options.drop.enabled=s.enabled!==!1,s.listeners){var c=$(s.listeners),u=Object.keys(c).reduce(function(p,f){return p[/^(enter|leave)/.test(f)?"drag".concat(f):/^(activate|deactivate|move)/.test(f)?"drop".concat(f):f]=c[f],p},{}),l=a.options.drop.listeners;l&&a.off(l),a.on(u),a.options.drop.listeners=u}return d.func(s.ondrop)&&a.on("drop",s.ondrop),d.func(s.ondropactivate)&&a.on("dropactivate",s.ondropactivate),d.func(s.ondropdeactivate)&&a.on("dropdeactivate",s.ondropdeactivate),d.func(s.ondragenter)&&a.on("dragenter",s.ondragenter),d.func(s.ondragleave)&&a.on("dragleave",s.ondragleave),d.func(s.ondropmove)&&a.on("dropmove",s.ondropmove),/^(pointer|center)$/.test(s.overlap)?a.options.drop.overlap=s.overlap:d.number(s.overlap)&&(a.options.drop.overlap=Math.max(Math.min(1,s.overlap),0)),"accept"in s&&(a.options.drop.accept=s.accept),"checker"in s&&(a.options.drop.checker=s.checker),a}return d.bool(s)?(a.options.drop.enabled=s,a):a.options.drop}(this,o)},r.prototype.dropCheck=function(o,a,s,c,u,l){return function(p,f,h,v,g,y,m){var b=!1;if(!(m=m||p.getRect(y)))return!!p.options.drop.checker&&p.options.drop.checker(f,h,b,p,y,v,g);var T=p.options.drop.overlap;if(T==="pointer"){var _=se(v,g,"drag"),w=Mt(f);w.x+=_.x,w.y+=_.y;var S=w.x>m.left&&w.xm.top&&w.y=m.left&&z<=m.right&&j>=m.top&&j<=m.bottom}return P&&d.number(T)&&(b=Math.max(0,Math.min(m.right,P.right)-Math.max(m.left,P.left))*Math.max(0,Math.min(m.bottom,P.bottom)-Math.max(m.top,P.top))/(P.width*P.height)>=T),p.options.drop.checker&&(b=p.options.drop.checker(f,h,b,p,y,v,g)),b}(this,o,a,s,c,u,l)},n.dynamicDrop=function(o){return d.bool(o)?(t.dynamicDrop=o,n):t.dynamicDrop},x(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=Lt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;e.prepared.name==="drag"&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if(n.prepared.name==="drag"){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=Je(e,n.element),i.events=Qe(n,0,r),i.events.activate&&(Ft(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":Yt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;if(n.prepared.name==="drag"){var i=n.dropState;Ze(n,i.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(t,e){if(t.interaction.prepared.name==="drag"){var n=t.interaction,r=t.iEvent;Yt(t,e),Ze(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Je,getDrop:Xt,getDropEvents:Qe,fireDropEvents:Ze,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Sn=Lt;function et(t){var e=t.interaction,n=t.iEvent,r=t.phase;if(e.prepared.name==="gesture"){var i=e.pointers.map(function(u){return u.pointer}),o=r==="start",a=r==="end",s=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=Ke(i,s),n.box=He(i),n.scale=1,n.ds=0,n.angle=$e(i,s),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(a||e.pointers.length<2){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=Ke(i,s),n.box=He(i),n.scale=n.distance/e.gesture.startDistance,n.angle=$e(i,s),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,d.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var tt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(i){return d.object(i)?(this.options.gesture.enabled=i.enabled!==!1,this.setPerAction("gesture",i),this.setOnEvents("gesture",i),this):d.bool(i)?(this.options.gesture.enabled=i,this):this.options.gesture},e.map.gesture=tt,e.methodDict.gesture="gesturable",r.actions.gesture=tt.defaults},listeners:{"interactions:action-start":et,"interactions:action-move":et,"interactions:action-end":et,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},_n=tt;function Pn(t,e,n,r,i,o,a){if(!e)return!1;if(e===!0){var s=d.number(o.width)?o.width:o.right-o.left,c=d.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs((t==="left"||t==="right"?s:c)/2)),s<0&&(t==="left"?t="right":t==="right"&&(t="left")),c<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var u=s>=0?o.left:o.right;return n.x=0?o.top:o.bottom;return n.y(s>=0?o.right:o.left)-a;if(t==="bottom")return n.y>(c>=0?o.bottom:o.top)-a}return!!d.element(r)&&(d.element(e)?e===r:Ve(r,e,i))}function qt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.resizeAxes){var r=e;n.interactable.options.resize.square?(n.resizeAxes==="y"?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,n.resizeAxes==="x"?r.delta.y=0:n.resizeAxes==="y"&&(r.delta.x=0))}}var Y,J,L={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;L.cursors=function(o){return o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),L.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(o){return function(a,s,c){return d.object(s)?(a.options.resize.enabled=s.enabled!==!1,a.setPerAction("resize",s),a.setOnEvents("resize",s),d.string(s.axis)&&/^x$|^y$|^xy$/.test(s.axis)?a.options.resize.axis=s.axis:s.axis===null&&(a.options.resize.axis=c.defaults.actions.resize.axis),d.bool(s.preserveAspectRatio)?a.options.resize.preserveAspectRatio=s.preserveAspectRatio:d.bool(s.square)&&(a.options.resize.square=s.square),a):d.bool(s)?(a.options.resize.enabled=s,a):a.options.resize}(this,o,t)},e.map.resize=L,e.methodDict.resize="resizable",i.actions.resize=L.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.rect;r._rects={start:x({},o),corrected:x({},o),previous:x({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=r.prepared.edges,i.rect=r._rects.corrected,i.deltaRect=r._rects.delta}})(t),qt(t)},"interactions:action-move":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.interactable.options.resize.invert,a=o==="reposition"||o==="negate",s=r.rect,c=r._rects,u=c.start,l=c.corrected,p=c.delta,f=c.previous;if(x(f,l),a){if(x(l,s),o==="reposition"){if(l.top>l.bottom){var h=l.top;l.top=l.bottom,l.bottom=h}if(l.left>l.right){var v=l.left;l.left=l.right,l.right=v}}}else l.top=Math.min(s.top,u.bottom),l.bottom=Math.max(s.bottom,u.top),l.left=Math.min(s.left,u.right),l.right=Math.max(s.right,u.left);for(var g in l.width=l.right-l.left,l.height=l.bottom-l.top,l)p[g]=l[g]-f[g];i.edges=r.prepared.edges,i.rect=l,i.deltaRect=p}})(t),qt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,o=t.buttons;if(i){var a=x({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(o&s.mouseButtons)!=0)){if(d.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Pn(u,s.edges[u],a,e._latestPointer.eventTarget,r,i,s.margin||L.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l=s.axis!=="y"&&a.x>i.right-L.defaultMargin,p=s.axis!=="x"&&a.y>i.bottom-L.defaultMargin;(l||p)&&(t.action={name:"resize",axes:(l?"x":"")+(p?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=L.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=0,c=["top","bottom","left","right"];s=1){var u={x:E.x*c,y:E.y*c};if(u.x||u.y){var l=Wt(o);d.window(o)?o.scrollBy(u.x,u.y):o&&(o.scrollLeft+=u.x,o.scrollTop+=u.y);var p=Wt(o),f={x:p.x-l.x,y:p.y-l.y};(f.x||f.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:f,interaction:t,container:o})}E.prevTime=a}E.isScrolling&&(V.cancel(E.i),E.i=V.request(E.scroll))},check:function(t,e){var n;return(n=t.options[e].autoScroll)==null?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&E.check(e.interactable,e.prepared.name))if(e.simulation)E.x=E.y=0;else{var r,i,o,a,s=e.interactable,c=e.element,u=e.prepared.name,l=s.options[u].autoScroll,p=Vt(l.container,s,c);if(d.window(p))a=n.clientXp.innerWidth-E.margin,o=n.clientY>p.innerHeight-E.margin;else{var f=We(p);a=n.clientXf.right-E.margin,o=n.clientY>f.bottom-E.margin}E.x=i?1:a?-1:0,E.y=o?1:r?-1:0,E.isScrolling||(E.margin=l.margin,E.speed=l.speed,E.start(e))}}};function Vt(t,e,n){return(d.string(t)?Ot(t,e,n):t)||F(n)}function Wt(t){return d.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var Dn={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=E,E.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=E.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,E.stop(),E.interaction&&(E.interaction=null)},"interactions:stop":E.stop,"interactions:action-move":function(t){return E.onInteractionMove(t)}}},In=Dn;function fe(t,e){var n=!1;return function(){return n||(H.console.warn(e),n=!0),t.apply(this,arguments)}}function nt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function Mn(t){return d.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function zn(t){return d.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var An={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(n,r,i,o){var a=function(s,c,u,l,p){var f=s.getRect(l),h=c.buttons||{0:1,1:4,3:8,4:16}[c.button],v={action:null,interactable:s,interaction:u,element:l,rect:f,buttons:h};return p.fire("auto-start:check",v),v.action}(this,r,i,o,t);return this.options.actionChecker?this.options.actionChecker(n,r,a,this,o,i):a},e.prototype.ignoreFrom=fe(function(n){return this._backCompatOption("ignoreFrom",n)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=fe(function(n){return this._backCompatOption("allowFrom",n)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=zn,e.prototype.styleCursor=Mn}};function Gt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Ie(e,n,t,i)?t:null}function Rn(t,e,n,r,i,o,a){for(var s=0,c=r.length;s=s||h.interactable===t&&((u+=v===n.name?1:0)>=o||h.element===e&&(l++,v===n.name&&l>=a))))return!1}return s>0}function Ht(t,e){return d.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function rt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Kt(t,e){var n=t.interactable,r=t.element,i=t.prepared;if(t.pointerType==="mouse"&&n&&n.options.styleCursor){var o="";if(i.name){var a=n.options[i.name].cursorChecker;o=d.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}rt(t.element,o||"",e)}else e.autoStart.cursorElement&&rt(e.autoStart.cursorElement,"",e)}var Cn={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(An),n.base.actionChecker=null,n.base.styleCursor=!0,x(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(r){return Ht(r,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Ie,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Ut(n,Nt(n,r,i,o,e),e)},"interactions:move":function(t,e){(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerType!=="mouse"||i.pointerIsDown||i.interacting()||Ut(i,Nt(i,o,a,s,r),r)})(t,e),function(n,r){var i=n.interaction;if(i.pointerIsDown&&!i.interacting()&&i.pointerWasMoved&&i.prepared.name){r.fire("autoStart:before-start",n);var o=i.interactable,a=i.prepared.name;a&&o&&(o.options[a].manualStart||!Ie(o,i.element,i.prepared,r)?i.stop():(i.start(i.prepared,o,i.element),Kt(i,r)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&rt(n.element,"",e)}},maxInteractions:Ht,withinInteractionLimit:Ie,validateAction:Gt},it=Cn,jn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,o=t.dy;if(n.prepared.name==="drag"){var a=Math.abs(i),s=Math.abs(o),c=n.interactable.options.drag,u=c.startAxis,l=a>s?"x":a0&&(e.autoStartHoldTimer=setTimeout(function(){e.start(e.prepared,e.interactable,e.element)},n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;ot(e)>0&&(e.prepared.name=null)}},getHoldDuration:ot},Xn=Fn,Yn={id:"auto-start",install:function(t){t.usePlugin(it),t.usePlugin(Xn),t.usePlugin(jn)}},Ln=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):d.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function qn(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var $t={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Ln,e.prototype.checkAndPreventDefault=function(n){return function(r,i,o){var a=r.options.preventDefault;if(a!=="never")if(a!=="always"){if(i.events.supportsPassive&&/^touch(start|move)$/.test(o.type)){var s=F(o.target).document,c=i.getDocOptions(s);if(!c||!c.events||c.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(o.type)||d.element(o.target)&&B(o.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||o.preventDefault()}else o.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var r=0,i=t.interactions.list;r150)return null;var i=180*Math.atan2(r.prevEvent.velocityY,r.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var o=112.5<=i&&i<247.5,a=202.5<=i&&i<337.5;return{up:a,down:!a&&22.5<=i&&i<157.5,left:o,right:!o&&(292.5<=i||i<67.5),angle:i,speed:r.prevEvent.speed,velocity:{x:r.prevEvent.velocityX,y:r.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(De);Object.defineProperties(st.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Vn=D(function t(e,n,r,i,o){k(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o}),Wn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Zt=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Gn=0,Nn=function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;k(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=fe(function(l){this.move(l)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Gn++,this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(l){Object.defineProperty(n._proxy,l,{get:function(){return o[l]}})};for(var s in Wn)a(s);var c=function(l){Object.defineProperty(n._proxy,l,{value:function(){return o[l].apply(o,arguments)}})};for(var u in Zt)c(u);this._scopeFire("interactions:new",{interaction:this})}return D(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,n,r){var i=this.updatePointer(e,n,r,!0),o=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:n,eventTarget:r,pointerIndex:i,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,n,r){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name==="gesture"?2:1)||!n.options[e.name].enabled)&&(nt(this.prepared,e),this.interactable=n,this.element=r,this.rect=n.getRect(r),this.edges=this.prepared.edges?x({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,n,r){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,n,r,!1);var i,o,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ce(i,o)>this.pointerMoveTolerance);var s,c,u,l=this.getPointerIndex(e),p={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:r,dx:i,dy:o,duplicate:a,interaction:this};a||(s=this.coords.velocity,c=this.coords.delta,u=Math.max(c.timeStamp/1e3,.001),s.page.x=c.page.x/u,s.page.y=c.page.y/u,s.client.x=c.client.x/u,s.client.y=c.client.y/u,s.timeStamp=u),this._scopeFire("interactions:move",p),a||this.simulation||(this.interacting()&&(p.type=null,this.move(p)),this.pointerWasMoved&&Oe(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||Dt(this.coords.delta),(e=x({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,n,r,i){var o=this.getPointerIndex(e);o===-1&&(o=this.updatePointer(e,n,r,!1));var a=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(a),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:n,eventTarget:r,type:a,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(e,n)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var n;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var n=le(e);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ue(this.pointers,function(r){return r.id===n})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,n,r,i){var o,a,s,c=le(e),u=this.getPointerIndex(e),l=this.pointers[u];return i=i!==!1&&(i||/(down|start)$/i.test(n.type)),l?l.pointer=e:(l=new Vn(c,e,n,null,null),u=this.pointers.length,this.pointers.push(l)),Tn(this.coords.cur,this.pointers.map(function(p){return p.pointer}),this._now()),o=this.coords.delta,a=this.coords.prev,s=this.coords.cur,o.page.x=s.page.x-a.page.x,o.page.y=s.page.y-a.page.y,o.client.x=s.client.x-a.client.x,o.client.y=s.client.y-a.client.y,o.timeStamp=s.timeStamp-a.timeStamp,i&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=r,Pe(this.downPointer,e),this.interacting()||(Oe(this.coords.start,this.coords.cur),Oe(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,n,r),this._scopeFire("interactions:update-pointer",{pointer:e,event:n,eventTarget:r,down:i,pointerInfo:l,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(e,n){var r=this.getPointerIndex(e);if(r!==-1){var i=this.pointers[r];this._scopeFire("interactions:remove-pointer",{pointer:e,event:n,eventTarget:null,pointerIndex:r,pointerInfo:i,interaction:this}),this.pointers.splice(r,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,n,r){this._latestPointer.pointer=e,this._latestPointer.event=n,this._latestPointer.eventTarget=r}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,n,r,i){return new st(this,e,this.prepared.name,n,this.element,r,i)}},{key:"_fireEvent",value:function(e){var n;(n=this.interactable)==null||n.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var n=e.event,r=e.phase,i=e.preEnd,o=e.type,a=this.rect;if(a&&r==="move"&&(_e(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),this._scopeFire("interactions:before-action-".concat(r),e)===!1)return!1;var s=e.iEvent=this._createPreparedEvent(n,r,i,o);return this._scopeFire("interactions:action-".concat(r),e),r==="start"&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(r),e),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function en(t){tn(t.interaction)}function tn(t){if(!function(n){return!(!n.offset.pending.x&&!n.offset.pending.y)}(t))return!1;var e=t.offset.pending;return ct(t.coords.cur,e),ct(t.coords.delta,e),_e(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Un(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function ct(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}Zt.offsetBy="";var Hn={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Un},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(e){e.pointerIsDown&&(ct(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":en,"interactions:before-action-move":en,"interactions:before-action-end":function(t){var e=t.interaction;if(tn(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},nn=Hn,Kn=function(){function t(e){k(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return D(t,[{key:"start",value:function(e){var n=this.interaction,r=Ae(n);if(!r||!r.enabled)return!1;var i=n.coords.velocity.client,o=ce(i.x,i.y),a=this.modification||(this.modification=new at(n));if(a.copyFrom(n.modification),this.t0=n._now(),this.allowResume=r.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&o>r.minSpeed&&o>r.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:e,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,n=this.interaction.coords.velocity.client,r=Ae(this.interaction),i=r.resistance,o=-Math.log(r.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-o)/i,y:(n.y-o)/i},this.te=o,this.lambda_v0=i/this.v0,this.one_ve_v0=1-r.endSpeed/this.v0;var a=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(s),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var n=this;this.timeout=V.request(function(){n.active&&e()})}},{key:"inertiaTick",value:function(){var e,n,r,i,o,a,s,c=this,u=this.interaction,l=Ae(u).resistance,p=(u._now()-this.t0)/1e3;if(p=0;g--){var T=m[g];if(T.selector===l&&T.context===p){for(var _=T.listeners,w=_.length-1;w>=0;w--){var S=_[w];if(S.func===h&&Re(S.options,y)){_.splice(w,1),_.length||(m.splice(g,1),s(p,f,c),s(p,f,u,!0)),b=!0;break}}if(b)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function a(l,p,f,h){if(l.addEventListener){var v=ve(h),g=pe(n,function(y){return y.eventTarget===l});g||(g={eventTarget:l,events:{}},n.push(g)),g.events[p]||(g.events[p]=[]),pe(g.events[p],function(y){return y.func===f&&Re(y.options,v)})||(l.addEventListener(p,f,o.supportsOptions?v:v.capture),g.events[p].push({func:f,options:v}))}}function s(l,p,f,h){if(l.addEventListener&&l.removeEventListener){var v=ue(n,function(M){return M.eventTarget===l}),g=n[v];if(g&&g.events)if(p!=="all"){var y=!1,m=g.events[p];if(m){if(f==="all"){for(var b=m.length-1;b>=0;b--){var T=m[b];s(l,p,T.func,T.options)}return}for(var _=ve(h),w=0;w=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function cn(t,e){return t.pointers.some(function(n){return n.id===e})}var er=lt,ut=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ln(t,e){return function(n){var r=e.interactions.list,i=At(n),o=Rt(n),a=o[0],s=o[1],c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var u=0,l=n.changedTouches;u=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:pt,doOnInteractions:ln,methodNames:ut},nr=tr,G=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(G||{}),rr=function(){function t(e,n,r,i){k(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new sn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||r,this._win=F(Pt(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=i,this.set(n)}return D(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,n){return d.func(n.onstart)&&this.on("".concat(e,"start"),n.onstart),d.func(n.onmove)&&this.on("".concat(e,"move"),n.onmove),d.func(n.onend)&&this.on("".concat(e,"end"),n.onend),d.func(n.oninertiastart)&&this.on("".concat(e,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,n,r){var i,o=this,a=(i=this._actions.map[e])==null?void 0:i.filterEventType,s=function(c){return(a==null||a(c))&&Me(c,o._actions)};(d.array(n)||d.object(n))&&this._onOff(G.Off,e,n,void 0,s),(d.array(r)||d.object(r))&&this._onOff(G.On,e,r,void 0,s)}},{key:"setPerAction",value:function(e,n){var r=this._defaults;for(var i in n){var o=i,a=this.options[e],s=n[o];o==="listeners"&&this.updatePerActionListeners(e,a.listeners,s),d.array(s)?a[o]=jt(s):d.plainObject(s)?(a[o]=x(a[o]||{},ne(s)),d.object(r.perAction[o])&&"enabled"in r.perAction[o]&&(a[o].enabled=s.enabled!==!1)):d.bool(s)&&d.object(r.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(d.element(this.target)?this.target:null),d.string(this.target)&&(e=e||this._context.querySelector(this.target)),Ge(e)}},{key:"rectChecker",value:function(e){var n=this;return d.func(e)?(this.getRect=function(r){var i=x({},e.apply(n,r));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):e===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,n){if(Pt(n)||d.object(n)){for(var r in this.options[e]=n,this._actions.map)this.options[r][e]=n;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return e==="page"||e==="client"?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return d.string(e)?Array.from(this._context.querySelectorAll(e)):d.func(e)&&e.getAllElements?e.getAllElements():d.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||K(this._context,e)}},{key:"testIgnoreAllow",value:function(e,n,r){return!this.testIgnore(e.ignoreFrom,n,r)&&this.testAllow(e.allowFrom,n,r)}},{key:"testAllow",value:function(e,n,r){return!e||!!d.element(r)&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"testIgnore",value:function(e,n,r){return!(!e||!d.element(r))&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,n,r,i,o){d.object(n)&&!d.array(n)&&(i=r,r=null);var a=$(n,r,o);for(var s in a){s==="wheel"&&(s=C.wheelEvent);for(var c=0,u=a[s];c=0;r--){var i=n[r],o=i.selector,a=i.context,s=i.listeners;o===this.target&&a===this._context&&n.splice(r,1);for(var c=s.length-1;c>=0;c--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[c][0],s[c][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),ir=function(){function t(e){var n=this;k(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(r){var i=r.interactable,o=i.target,a=d.string(o)?n.selectorMap[o]:o[n.scope.id],s=ue(a,function(c){return c===i});a.splice(s,1)}})}return D(t,[{key:"new",value:function(e,n){n=x(n||{},{actions:this.scope.actions});var r=new this.scope.Interactable(e,n,this.scope.document,this.scope.events);return this.scope.addDocument(r._doc),this.list.push(r),d.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(r.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:n,interactable:r,win:this.scope._win}),r}},{key:"getExisting",value:function(e,n){var r=n&&n.context||this.scope.document,i=d.string(e),o=i?this.selectorMap[e]:e[this.scope.id];if(o)return pe(o,function(a){return a._context===r&&(i||a.inContext(e))})}},{key:"forEachMatch",value:function(e,n){for(var r=0,i=this.list;rMath.abs(u.y),c.coords,c.rect),x(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function pr(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function fr(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var c=r.width/a;n.y=o.y+(c-i.height)*s.y}else{var u=r.height*a;n.x=o.x+(u-i.width)*s.x}}var dr=W(ur,"aspectRatio"),dn=function(){};dn._defaults={};var Ce=dn;function Q(t,e,n){return d.func(t)?ae(t,e.interactable,e.element,[n.x,n.y,e]):ae(t,e.interactable,e.element)}var je={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,c=x({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var u=Q(a.restriction,i,o);if(u){var l=u.right-u.left-e.width,p=u.bottom-u.top-e.height;l<0&&(c.left+=l,c.right+=l),p<0&&(c.top+=p,c.bottom+=p)}c.left+=n.left-e.width*s.left,c.top+=n.top-e.height*s.top,c.right+=n.right-e.width*(1-s.right),c.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=c},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=Q(i.restriction,n,e);if(a){var s=function(c){return!c||"left"in c&&"top"in c||((c=x({},c)).left=c.x||0,c.top=c.y||0,c.right=c.right||c.left+c.width,c.bottom=c.bottom||c.top+c.height),c}(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},vr=W(je,"restrict"),vn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},hn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function gn(t,e){for(var n=0,r=["top","left","bottom","right"];n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xe(o)})(this,n)}}function we(){return we=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=(function(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=U(o))!==null;);return o})(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},we.apply(this,arguments)}function ht(t){var e=(function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(t,"string");return typeof e=="symbol"?e:e+""}var gt=function(t){return!(!t||!t.Window)&&t instanceof t.Window},mt=void 0,H=void 0;function yt(t){mt=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(e)===e&&(t=t.wrap(t)),H=t}function F(t){return gt(t)?t:(t.ownerDocument||t).defaultView||H.window}typeof window<"u"&&window&&yt(window);var Ee=function(t){return!!t&&Z(t)==="object"},bt=function(t){return typeof t=="function"},d={window:function(t){return t===H||gt(t)},docFrag:function(t){return Ee(t)&&t.nodeType===11},object:Ee,func:bt,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||Z(t)!=="object")return!1;var e=F(t)||H;return/object|function/.test(typeof Element>"u"?"undefined":Z(Element))?t instanceof Element||t instanceof e.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return Ee(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return Ee(t)&&t.length!==void 0&&bt(t.splice)}};function qe(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.prepared.axis;n==="x"?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):n==="y"&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function xt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="drag"){var r=n.prepared.axis;if(r==="x"||r==="y"){var i=r==="x"?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}var Te={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=Te.draggable,e.map.drag=Te,e.methodDict.drag="draggable",r.actions.drag=Te.defaults},listeners:{"interactions:before-action-move":qe,"interactions:action-resume":qe,"interactions:action-move":xt,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(r&n.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis},!1}},draggable:function(t){return d.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):d.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:qe,move:xt,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},wt=Te,A={init:function(t){var e=t;A.document=e.document,A.DocumentFragment=e.DocumentFragment||ee,A.SVGElement=e.SVGElement||ee,A.SVGSVGElement=e.SVGSVGElement||ee,A.SVGElementInstance=e.SVGElementInstance||ee,A.Element=e.Element||ee,A.HTMLElement=e.HTMLElement||A.Element,A.Event=e.Event,A.Touch=e.Touch||ee,A.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ee(){}var O=A,R={init:function(t){var e=O.Element,n=t.navigator||{};R.supportsTouch="ontouchstart"in t||d.func(t.DocumentTouch)&&O.document instanceof t.DocumentTouch,R.supportsPointerEvent=n.pointerEnabled!==!1&&!!O.PointerEvent,R.isIOS=/iP(hone|od|ad)/.test(n.platform),R.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),R.isIe9=/MSIE 9/.test(n.userAgent),R.isOperaMobile=n.appName==="Opera"&&R.supportsTouch&&/Presto/.test(n.userAgent),R.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",R.pEventTypes=R.supportsPointerEvent?O.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,R.wheelEvent=O.document&&"onmousewheel"in O.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},C=R;function $(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Et(t,e){for(;d.element(t);){if(B(t,e))return t;t=X(t)}return null}function X(t){var e=t.parentNode;if(d.docFrag(e)){for(;(e=e.host)&&d.docFrag(e););return e}return e}function B(t,e){return H!==mt&&(e=e.replace(/\/deep\//g," ")),t[C.prefixedMatchesSelector](e)}var Be=function(t){return t.parentNode||t.host};function Tt(t,e){for(var n,r=[],i=t;(n=Be(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function Ve(t,e,n){for(;d.element(t);){if(B(t,e))return!0;if((t=X(t))===n)return B(t,e)}return!1}function St(t){return t.correspondingUseElement||t}function We(t){var e=t instanceof O.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function Ge(t){var e,n=We(t);if(!C.isIOS7&&n){var r={x:(e=(e=F(t))||H).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function _t(t){for(var e=[];t;)e.push(t),t=X(t);return e}function Pt(t){return!!d.string(t)&&(O.document.querySelector(t),!0)}function x(t,e){for(var n in e)t[n]=e[n];return t}function Ot(t,e,n){return t==="parent"?X(n):t==="self"?e.getRect(n):Et(n,t)}function ae(t,e,n,r){var i=t;return d.string(i)?i=Ot(i,e,n):d.func(i)&&(i=i.apply(void 0,r)),d.element(i)&&(i=Ge(i)),i}function Se(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Ne(t){return!t||"x"in t&&"y"in t||((t=x({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function _e(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function se(t,e,n){var r=n&&t.options[n];return Se(ae(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function K(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(c){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},d.string(t)&&t.search(" ")!==-1&&(t=kt(t)),d.array(t))return t.forEach((function(c){return K(c,e,n,r)})),r;if(d.object(t)&&(e=t,t=""),d.func(e)&&n(t))r[t]=r[t]||[],r[t].push(e);else if(d.array(e))for(var i=0,o=e;i1?zt(e):e[0];Mt(r,t.page),(function(i,o){o=o||{},C.isOperaMobile&&It(i)?ke("screen",i,o):ke("client",i,o)})(r,t.client),t.timeStamp=n}function Ue(t){var e=[];return d.array(t)?(e[0]=t[0],e[1]=t[1]):t.type==="touchend"?t.touches.length===1?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):t.touches.length===0&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function zt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n=(parseInt(F(b).getComputedStyle(b).zIndex,10)||0)&&(y=_);else y=_}else y=_}return y})(a);return r.activeDrops[v]||null}function Qe(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type==="dragstart"&&(i.activate=new te(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),n.type==="dragend"&&(i.deactivate=new te(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new te(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new te(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type==="dragend"&&r.cur.dropzone&&(i.drop=new te(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type==="dragmove"&&r.cur.dropzone&&(i.move=new te(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function Ze(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&Ft(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Yt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if(r.type==="dragmove"||r.type==="dragend"){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Je(e,n.element));var a=r,s=Xt(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Qe(n,0,a)}}var Lt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(wt),r.prototype.dropzone=function(o){return(function(a,s){if(d.object(s)){if(a.options.drop.enabled=s.enabled!==!1,s.listeners){var c=K(s.listeners),u=Object.keys(c).reduce((function(p,f){return p[/^(enter|leave)/.test(f)?"drag".concat(f):/^(activate|deactivate|move)/.test(f)?"drop".concat(f):f]=c[f],p}),{}),l=a.options.drop.listeners;l&&a.off(l),a.on(u),a.options.drop.listeners=u}return d.func(s.ondrop)&&a.on("drop",s.ondrop),d.func(s.ondropactivate)&&a.on("dropactivate",s.ondropactivate),d.func(s.ondropdeactivate)&&a.on("dropdeactivate",s.ondropdeactivate),d.func(s.ondragenter)&&a.on("dragenter",s.ondragenter),d.func(s.ondragleave)&&a.on("dragleave",s.ondragleave),d.func(s.ondropmove)&&a.on("dropmove",s.ondropmove),/^(pointer|center)$/.test(s.overlap)?a.options.drop.overlap=s.overlap:d.number(s.overlap)&&(a.options.drop.overlap=Math.max(Math.min(1,s.overlap),0)),"accept"in s&&(a.options.drop.accept=s.accept),"checker"in s&&(a.options.drop.checker=s.checker),a}return d.bool(s)?(a.options.drop.enabled=s,a):a.options.drop})(this,o)},r.prototype.dropCheck=function(o,a,s,c,u,l){return(function(p,f,h,v,g,y,m){var b=!1;if(!(m=m||p.getRect(y)))return!!p.options.drop.checker&&p.options.drop.checker(f,h,b,p,y,v,g);var T=p.options.drop.overlap;if(T==="pointer"){var _=se(v,g,"drag"),w=Mt(f);w.x+=_.x,w.y+=_.y;var S=w.x>m.left&&w.xm.top&&w.y=m.left&&z<=m.right&&j>=m.top&&j<=m.bottom}return P&&d.number(T)&&(b=Math.max(0,Math.min(m.right,P.right)-Math.max(m.left,P.left))*Math.max(0,Math.min(m.bottom,P.bottom)-Math.max(m.top,P.top))/(P.width*P.height)>=T),p.options.drop.checker&&(b=p.options.drop.checker(f,h,b,p,y,v,g)),b})(this,o,a,s,c,u,l)},n.dynamicDrop=function(o){return d.bool(o)?(t.dynamicDrop=o,n):t.dynamicDrop},x(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=Lt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;e.prepared.name==="drag"&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if(n.prepared.name==="drag"){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=Je(e,n.element),i.events=Qe(n,0,r),i.events.activate&&(Ft(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":Yt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;if(n.prepared.name==="drag"){var i=n.dropState;Ze(n,i.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(t,e){if(t.interaction.prepared.name==="drag"){var n=t.interaction,r=t.iEvent;Yt(t,e),Ze(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Je,getDrop:Xt,getDropEvents:Qe,fireDropEvents:Ze,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Sn=Lt;function et(t){var e=t.interaction,n=t.iEvent,r=t.phase;if(e.prepared.name==="gesture"){var i=e.pointers.map((function(u){return u.pointer})),o=r==="start",a=r==="end",s=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=$e(i,s),n.box=He(i),n.scale=1,n.ds=0,n.angle=Ke(i,s),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(a||e.pointers.length<2){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=$e(i,s),n.box=He(i),n.scale=n.distance/e.gesture.startDistance,n.angle=Ke(i,s),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,d.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var tt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(i){return d.object(i)?(this.options.gesture.enabled=i.enabled!==!1,this.setPerAction("gesture",i),this.setOnEvents("gesture",i),this):d.bool(i)?(this.options.gesture.enabled=i,this):this.options.gesture},e.map.gesture=tt,e.methodDict.gesture="gesturable",r.actions.gesture=tt.defaults},listeners:{"interactions:action-start":et,"interactions:action-move":et,"interactions:action-end":et,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},_n=tt;function Pn(t,e,n,r,i,o,a){if(!e)return!1;if(e===!0){var s=d.number(o.width)?o.width:o.right-o.left,c=d.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs((t==="left"||t==="right"?s:c)/2)),s<0&&(t==="left"?t="right":t==="right"&&(t="left")),c<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var u=s>=0?o.left:o.right;return n.x=0?o.top:o.bottom;return n.y(s>=0?o.right:o.left)-a;if(t==="bottom")return n.y>(c>=0?o.bottom:o.top)-a}return!!d.element(r)&&(d.element(e)?e===r:Ve(r,e,i))}function qt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.resizeAxes){var r=e;n.interactable.options.resize.square?(n.resizeAxes==="y"?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,n.resizeAxes==="x"?r.delta.y=0:n.resizeAxes==="y"&&(r.delta.x=0))}}var Y,J,L={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;L.cursors=(function(o){return o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}})(n),L.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(o){return(function(a,s,c){return d.object(s)?(a.options.resize.enabled=s.enabled!==!1,a.setPerAction("resize",s),a.setOnEvents("resize",s),d.string(s.axis)&&/^x$|^y$|^xy$/.test(s.axis)?a.options.resize.axis=s.axis:s.axis===null&&(a.options.resize.axis=c.defaults.actions.resize.axis),d.bool(s.preserveAspectRatio)?a.options.resize.preserveAspectRatio=s.preserveAspectRatio:d.bool(s.square)&&(a.options.resize.square=s.square),a):d.bool(s)?(a.options.resize.enabled=s,a):a.options.resize})(this,o,t)},e.map.resize=L,e.methodDict.resize="resizable",i.actions.resize=L.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.rect;r._rects={start:x({},o),corrected:x({},o),previous:x({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=r.prepared.edges,i.rect=r._rects.corrected,i.deltaRect=r._rects.delta}})(t),qt(t)},"interactions:action-move":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.interactable.options.resize.invert,a=o==="reposition"||o==="negate",s=r.rect,c=r._rects,u=c.start,l=c.corrected,p=c.delta,f=c.previous;if(x(f,l),a){if(x(l,s),o==="reposition"){if(l.top>l.bottom){var h=l.top;l.top=l.bottom,l.bottom=h}if(l.left>l.right){var v=l.left;l.left=l.right,l.right=v}}}else l.top=Math.min(s.top,u.bottom),l.bottom=Math.max(s.bottom,u.top),l.left=Math.min(s.left,u.right),l.right=Math.max(s.right,u.left);for(var g in l.width=l.right-l.left,l.height=l.bottom-l.top,l)p[g]=l[g]-f[g];i.edges=r.prepared.edges,i.rect=l,i.deltaRect=p}})(t),qt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,o=t.buttons;if(i){var a=x({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(o&s.mouseButtons)!=0)){if(d.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Pn(u,s.edges[u],a,e._latestPointer.eventTarget,r,i,s.margin||L.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l=s.axis!=="y"&&a.x>i.right-L.defaultMargin,p=s.axis!=="x"&&a.y>i.bottom-L.defaultMargin;(l||p)&&(t.action={name:"resize",axes:(l?"x":"")+(p?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=L.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=0,c=["top","bottom","left","right"];s=1){var u={x:E.x*c,y:E.y*c};if(u.x||u.y){var l=Wt(o);d.window(o)?o.scrollBy(u.x,u.y):o&&(o.scrollLeft+=u.x,o.scrollTop+=u.y);var p=Wt(o),f={x:p.x-l.x,y:p.y-l.y};(f.x||f.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:f,interaction:t,container:o})}E.prevTime=a}E.isScrolling&&(V.cancel(E.i),E.i=V.request(E.scroll))},check:function(t,e){var n;return(n=t.options[e].autoScroll)==null?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&E.check(e.interactable,e.prepared.name))if(e.simulation)E.x=E.y=0;else{var r,i,o,a,s=e.interactable,c=e.element,u=e.prepared.name,l=s.options[u].autoScroll,p=Vt(l.container,s,c);if(d.window(p))a=n.clientXp.innerWidth-E.margin,o=n.clientY>p.innerHeight-E.margin;else{var f=We(p);a=n.clientXf.right-E.margin,o=n.clientY>f.bottom-E.margin}E.x=i?1:a?-1:0,E.y=o?1:r?-1:0,E.isScrolling||(E.margin=l.margin,E.speed=l.speed,E.start(e))}}};function Vt(t,e,n){return(d.string(t)?Ot(t,e,n):t)||F(n)}function Wt(t){return d.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var Dn={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=E,E.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=E.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,E.stop(),E.interaction&&(E.interaction=null)},"interactions:stop":E.stop,"interactions:action-move":function(t){return E.onInteractionMove(t)}}},In=Dn;function fe(t,e){var n=!1;return function(){return n||(H.console.warn(e),n=!0),t.apply(this,arguments)}}function nt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function Mn(t){return d.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function zn(t){return d.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var An={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(n,r,i,o){var a=(function(s,c,u,l,p){var f=s.getRect(l),h=c.buttons||{0:1,1:4,3:8,4:16}[c.button],v={action:null,interactable:s,interaction:u,element:l,rect:f,buttons:h};return p.fire("auto-start:check",v),v.action})(this,r,i,o,t);return this.options.actionChecker?this.options.actionChecker(n,r,a,this,o,i):a},e.prototype.ignoreFrom=fe((function(n){return this._backCompatOption("ignoreFrom",n)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=fe((function(n){return this._backCompatOption("allowFrom",n)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=zn,e.prototype.styleCursor=Mn}};function Gt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Ie(e,n,t,i)?t:null}function Rn(t,e,n,r,i,o,a){for(var s=0,c=r.length;s=s||h.interactable===t&&((u+=v===n.name?1:0)>=o||h.element===e&&(l++,v===n.name&&l>=a))))return!1}return s>0}function Ht(t,e){return d.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function rt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function $t(t,e){var n=t.interactable,r=t.element,i=t.prepared;if(t.pointerType==="mouse"&&n&&n.options.styleCursor){var o="";if(i.name){var a=n.options[i.name].cursorChecker;o=d.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}rt(t.element,o||"",e)}else e.autoStart.cursorElement&&rt(e.autoStart.cursorElement,"",e)}var Cn={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(An),n.base.actionChecker=null,n.base.styleCursor=!0,x(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(r){return Ht(r,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Ie,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Ut(n,Nt(n,r,i,o,e),e)},"interactions:move":function(t,e){(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerType!=="mouse"||i.pointerIsDown||i.interacting()||Ut(i,Nt(i,o,a,s,r),r)})(t,e),(function(n,r){var i=n.interaction;if(i.pointerIsDown&&!i.interacting()&&i.pointerWasMoved&&i.prepared.name){r.fire("autoStart:before-start",n);var o=i.interactable,a=i.prepared.name;a&&o&&(o.options[a].manualStart||!Ie(o,i.element,i.prepared,r)?i.stop():(i.start(i.prepared,o,i.element),$t(i,r)))}})(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&rt(n.element,"",e)}},maxInteractions:Ht,withinInteractionLimit:Ie,validateAction:Gt},it=Cn,jn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,o=t.dy;if(n.prepared.name==="drag"){var a=Math.abs(i),s=Math.abs(o),c=n.interactable.options.drag,u=c.startAxis,l=a>s?"x":a0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;ot(e)>0&&(e.prepared.name=null)}},getHoldDuration:ot},Xn=Fn,Yn={id:"auto-start",install:function(t){t.usePlugin(it),t.usePlugin(Xn),t.usePlugin(jn)}},Ln=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):d.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function qn(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Kt={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Ln,e.prototype.checkAndPreventDefault=function(n){return(function(r,i,o){var a=r.options.preventDefault;if(a!=="never")if(a!=="always"){if(i.events.supportsPassive&&/^touch(start|move)$/.test(o.type)){var s=F(o.target).document,c=i.getDocOptions(s);if(!c||!c.events||c.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(o.type)||d.element(o.target)&&B(o.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||o.preventDefault()}else o.preventDefault()})(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var r=0,i=t.interactions.list;r150)return null;var i=180*Math.atan2(r.prevEvent.velocityY,r.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var o=112.5<=i&&i<247.5,a=202.5<=i&&i<337.5;return{up:a,down:!a&&22.5<=i&&i<157.5,left:o,right:!o&&(292.5<=i||i<67.5),angle:i,speed:r.prevEvent.speed,velocity:{x:r.prevEvent.velocityX,y:r.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n})(De);Object.defineProperties(st.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Vn=D((function t(e,n,r,i,o){k(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o})),Wn=(function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t})({}),Zt=(function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t})({}),Gn=0,Nn=(function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;k(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=fe((function(l){this.move(l)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Gn++,this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(l){Object.defineProperty(n._proxy,l,{get:function(){return o[l]}})};for(var s in Wn)a(s);var c=function(l){Object.defineProperty(n._proxy,l,{value:function(){return o[l].apply(o,arguments)}})};for(var u in Zt)c(u);this._scopeFire("interactions:new",{interaction:this})}return D(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,n,r){var i=this.updatePointer(e,n,r,!0),o=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:n,eventTarget:r,pointerIndex:i,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,n,r){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name==="gesture"?2:1)||!n.options[e.name].enabled)&&(nt(this.prepared,e),this.interactable=n,this.element=r,this.rect=n.getRect(r),this.edges=this.prepared.edges?x({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,n,r){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,n,r,!1);var i,o,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ce(i,o)>this.pointerMoveTolerance);var s,c,u,l=this.getPointerIndex(e),p={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:r,dx:i,dy:o,duplicate:a,interaction:this};a||(s=this.coords.velocity,c=this.coords.delta,u=Math.max(c.timeStamp/1e3,.001),s.page.x=c.page.x/u,s.page.y=c.page.y/u,s.client.x=c.client.x/u,s.client.y=c.client.y/u,s.timeStamp=u),this._scopeFire("interactions:move",p),a||this.simulation||(this.interacting()&&(p.type=null,this.move(p)),this.pointerWasMoved&&Oe(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||Dt(this.coords.delta),(e=x({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,n,r,i){var o=this.getPointerIndex(e);o===-1&&(o=this.updatePointer(e,n,r,!1));var a=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(a),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:n,eventTarget:r,type:a,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(e,n)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var n;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var n=le(e);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ue(this.pointers,(function(r){return r.id===n}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,n,r,i){var o,a,s,c=le(e),u=this.getPointerIndex(e),l=this.pointers[u];return i=i!==!1&&(i||/(down|start)$/i.test(n.type)),l?l.pointer=e:(l=new Vn(c,e,n,null,null),u=this.pointers.length,this.pointers.push(l)),Tn(this.coords.cur,this.pointers.map((function(p){return p.pointer})),this._now()),o=this.coords.delta,a=this.coords.prev,s=this.coords.cur,o.page.x=s.page.x-a.page.x,o.page.y=s.page.y-a.page.y,o.client.x=s.client.x-a.client.x,o.client.y=s.client.y-a.client.y,o.timeStamp=s.timeStamp-a.timeStamp,i&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=r,Pe(this.downPointer,e),this.interacting()||(Oe(this.coords.start,this.coords.cur),Oe(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,n,r),this._scopeFire("interactions:update-pointer",{pointer:e,event:n,eventTarget:r,down:i,pointerInfo:l,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(e,n){var r=this.getPointerIndex(e);if(r!==-1){var i=this.pointers[r];this._scopeFire("interactions:remove-pointer",{pointer:e,event:n,eventTarget:null,pointerIndex:r,pointerInfo:i,interaction:this}),this.pointers.splice(r,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,n,r){this._latestPointer.pointer=e,this._latestPointer.event=n,this._latestPointer.eventTarget=r}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,n,r,i){return new st(this,e,this.prepared.name,n,this.element,r,i)}},{key:"_fireEvent",value:function(e){var n;(n=this.interactable)==null||n.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var n=e.event,r=e.phase,i=e.preEnd,o=e.type,a=this.rect;if(a&&r==="move"&&(_e(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),this._scopeFire("interactions:before-action-".concat(r),e)===!1)return!1;var s=e.iEvent=this._createPreparedEvent(n,r,i,o);return this._scopeFire("interactions:action-".concat(r),e),r==="start"&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(r),e),!0}},{key:"_now",value:function(){return Date.now()}}]),t})();function en(t){tn(t.interaction)}function tn(t){if(!(function(n){return!(!n.offset.pending.x&&!n.offset.pending.y)})(t))return!1;var e=t.offset.pending;return ct(t.coords.cur,e),ct(t.coords.delta,e),_e(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Un(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function ct(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}Zt.offsetBy="";var Hn={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Un},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return(function(e){e.pointerIsDown&&(ct(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)})(t.interaction)},"interactions:before-action-start":en,"interactions:before-action-move":en,"interactions:before-action-end":function(t){var e=t.interaction;if(tn(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},nn=Hn,$n=(function(){function t(e){k(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return D(t,[{key:"start",value:function(e){var n=this.interaction,r=Ae(n);if(!r||!r.enabled)return!1;var i=n.coords.velocity.client,o=ce(i.x,i.y),a=this.modification||(this.modification=new at(n));if(a.copyFrom(n.modification),this.t0=n._now(),this.allowResume=r.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&o>r.minSpeed&&o>r.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:e,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,n=this.interaction.coords.velocity.client,r=Ae(this.interaction),i=r.resistance,o=-Math.log(r.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-o)/i,y:(n.y-o)/i},this.te=o,this.lambda_v0=i/this.v0,this.one_ve_v0=1-r.endSpeed/this.v0;var a=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(s),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var n=this;this.timeout=V.request((function(){n.active&&e()}))}},{key:"inertiaTick",value:function(){var e,n,r,i,o,a,s,c=this,u=this.interaction,l=Ae(u).resistance,p=(u._now()-this.t0)/1e3;if(p=0;g--){var T=m[g];if(T.selector===l&&T.context===p){for(var _=T.listeners,w=_.length-1;w>=0;w--){var S=_[w];if(S.func===h&&Re(S.options,y)){_.splice(w,1),_.length||(m.splice(g,1),s(p,f,c),s(p,f,u,!0)),b=!0;break}}if(b)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function a(l,p,f,h){if(l.addEventListener){var v=ve(h),g=pe(n,(function(y){return y.eventTarget===l}));g||(g={eventTarget:l,events:{}},n.push(g)),g.events[p]||(g.events[p]=[]),pe(g.events[p],(function(y){return y.func===f&&Re(y.options,v)}))||(l.addEventListener(p,f,o.supportsOptions?v:v.capture),g.events[p].push({func:f,options:v}))}}function s(l,p,f,h){if(l.addEventListener&&l.removeEventListener){var v=ue(n,(function(M){return M.eventTarget===l})),g=n[v];if(g&&g.events)if(p!=="all"){var y=!1,m=g.events[p];if(m){if(f==="all"){for(var b=m.length-1;b>=0;b--){var T=m[b];s(l,p,T.func,T.options)}return}for(var _=ve(h),w=0;w=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function cn(t,e){return t.pointers.some((function(n){return n.id===e}))}var er=lt,ut=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ln(t,e){return function(n){var r=e.interactions.list,i=At(n),o=Rt(n),a=o[0],s=o[1],c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var u=0,l=n.changedTouches;u=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:pt,doOnInteractions:ln,methodNames:ut},nr=tr,G=(function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t})(G||{}),rr=(function(){function t(e,n,r,i){k(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new sn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||r,this._win=F(Pt(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=i,this.set(n)}return D(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,n){return d.func(n.onstart)&&this.on("".concat(e,"start"),n.onstart),d.func(n.onmove)&&this.on("".concat(e,"move"),n.onmove),d.func(n.onend)&&this.on("".concat(e,"end"),n.onend),d.func(n.oninertiastart)&&this.on("".concat(e,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,n,r){var i,o=this,a=(i=this._actions.map[e])==null?void 0:i.filterEventType,s=function(c){return(a==null||a(c))&&Me(c,o._actions)};(d.array(n)||d.object(n))&&this._onOff(G.Off,e,n,void 0,s),(d.array(r)||d.object(r))&&this._onOff(G.On,e,r,void 0,s)}},{key:"setPerAction",value:function(e,n){var r=this._defaults;for(var i in n){var o=i,a=this.options[e],s=n[o];o==="listeners"&&this.updatePerActionListeners(e,a.listeners,s),d.array(s)?a[o]=jt(s):d.plainObject(s)?(a[o]=x(a[o]||{},ne(s)),d.object(r.perAction[o])&&"enabled"in r.perAction[o]&&(a[o].enabled=s.enabled!==!1)):d.bool(s)&&d.object(r.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(d.element(this.target)?this.target:null),d.string(this.target)&&(e=e||this._context.querySelector(this.target)),Ge(e)}},{key:"rectChecker",value:function(e){var n=this;return d.func(e)?(this.getRect=function(r){var i=x({},e.apply(n,r));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):e===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,n){if(Pt(n)||d.object(n)){for(var r in this.options[e]=n,this._actions.map)this.options[r][e]=n;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return e==="page"||e==="client"?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return d.string(e)?Array.from(this._context.querySelectorAll(e)):d.func(e)&&e.getAllElements?e.getAllElements():d.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||$(this._context,e)}},{key:"testIgnoreAllow",value:function(e,n,r){return!this.testIgnore(e.ignoreFrom,n,r)&&this.testAllow(e.allowFrom,n,r)}},{key:"testAllow",value:function(e,n,r){return!e||!!d.element(r)&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&$(e,r))}},{key:"testIgnore",value:function(e,n,r){return!(!e||!d.element(r))&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&$(e,r))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,n,r,i,o){d.object(n)&&!d.array(n)&&(i=r,r=null);var a=K(n,r,o);for(var s in a){s==="wheel"&&(s=C.wheelEvent);for(var c=0,u=a[s];c=0;r--){var i=n[r],o=i.selector,a=i.context,s=i.listeners;o===this.target&&a===this._context&&n.splice(r,1);for(var c=s.length-1;c>=0;c--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[c][0],s[c][1])}else this._scopeEvents.remove(this.target,"all")}}]),t})(),ir=(function(){function t(e){var n=this;k(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(r){var i=r.interactable,o=i.target,a=d.string(o)?n.selectorMap[o]:o[n.scope.id],s=ue(a,(function(c){return c===i}));a.splice(s,1)}})}return D(t,[{key:"new",value:function(e,n){n=x(n||{},{actions:this.scope.actions});var r=new this.scope.Interactable(e,n,this.scope.document,this.scope.events);return this.scope.addDocument(r._doc),this.list.push(r),d.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(r.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:n,interactable:r,win:this.scope._win}),r}},{key:"getExisting",value:function(e,n){var r=n&&n.context||this.scope.document,i=d.string(e),o=i?this.selectorMap[e]:e[this.scope.id];if(o)return pe(o,(function(a){return a._context===r&&(i||a.inContext(e))}))}},{key:"forEachMatch",value:function(e,n){for(var r=0,i=this.list;rMath.abs(u.y),c.coords,c.rect),x(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function pr(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function fr(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var c=r.width/a;n.y=o.y+(c-i.height)*s.y}else{var u=r.height*a;n.x=o.x+(u-i.width)*s.x}}var dr=W(ur,"aspectRatio"),dn=function(){};dn._defaults={};var Ce=dn;function Q(t,e,n){return d.func(t)?ae(t,e.interactable,e.element,[n.x,n.y,e]):ae(t,e.interactable,e.element)}var je={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,c=x({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var u=Q(a.restriction,i,o);if(u){var l=u.right-u.left-e.width,p=u.bottom-u.top-e.height;l<0&&(c.left+=l,c.right+=l),p<0&&(c.top+=p,c.bottom+=p)}c.left+=n.left-e.width*s.left,c.top+=n.top-e.height*s.top,c.right+=n.right-e.width*(1-s.right),c.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=c},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=Q(i.restriction,n,e);if(a){var s=(function(c){return!c||"left"in c&&"top"in c||((c=x({},c)).left=c.x||0,c.top=c.y||0,c.right=c.right||c.left+c.width,c.bottom=c.bottom||c.top+c.height),c})(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},vr=W(je,"restrict"),vn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},hn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function gn(t,e){for(var n=0,r=["top","left","bottom","right"];n"u")){e=d({},c,e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires&&(e.expires=e.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in e)e[i]&&(o+="; "+i,e[i]!==!0&&(o+="="+e[i].split(";")[0]));return document.cookie=n+"="+r.write(t,n)+o}}function p(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var t=document.cookie?document.cookie.split("; "):[],e={},o=0;o"u")){e=d({},c,e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires&&(e.expires=e.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in e)e[i]&&(o+="; "+i,e[i]!==!0&&(o+="="+e[i].split(";")[0]));return document.cookie=n+"="+r.write(t,n)+o}}function p(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var t=document.cookie?document.cookie.split("; "):[],e={},o=0;o=200){y=r.shift()-105;var p=l.SWAP[y];p!==void 0?o=t.next(r,i+1,p):((u===l.SET_A||u===l.SET_B)&&y===l.SHIFT&&(r[0]=u===l.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),o=t.next(r,i+1,u))}else y=t.correctIndex(r,u),o=t.next(r,i+1,u);var g=t.getBar(y),m=y*i;return{result:g+o.result,checksum:m+o.checksum}}}]),t})(v.default);return Y.default=a,Y}var Z={},Ne;function Ft(){if(Ne)return Z;Ne=1,Object.defineProperty(Z,"__esModule",{value:!0});var s=H(),d=function(f){return f.match(new RegExp("^"+s.A_CHARS+"*"))[0].length},v=function(f){return f.match(new RegExp("^"+s.B_CHARS+"*"))[0].length},l=function(f){return f.match(new RegExp("^"+s.C_CHARS+"*"))[0]};function h(c,f){var a=f?s.A_CHARS:s.B_CHARS,e=c.match(new RegExp("^("+a+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(e)return e[1]+"Ì"+_(c.substring(e[1].length));var t=c.match(new RegExp("^"+a+"+"))[0];return t.length===c.length?c:t+String.fromCharCode(f?205:206)+h(c.substring(t.length),!f)}function _(c){var f=l(c),a=f.length;if(a===c.length)return c;c=c.substring(a);var e=d(c)>=v(c);return f+String.fromCharCode(e?206:205)+h(c,e)}return Z.default=function(c){var f=void 0,a=l(c).length;if(a>=2)f=s.C_START_CHAR+_(c);else{var e=d(c)>v(c);f=(e?s.A_START_CHAR:s.B_START_CHAR)+h(c,e)}return f.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,n){return"Ë"+n})},Z}var Ge;function Ht(){if(Ge)return W;Ge=1,Object.defineProperty(W,"__esModule",{value:!0});var s=Pe(),d=h(s),v=Ft(),l=h(v);function h(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=(function(e){f(t,e);function t(n,r){if(_(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,l.default)(n),r));else var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return c(i)}return t})(d.default);return W.default=a,W}var K={},$e;function Ut(){if($e)return K;$e=1,Object.defineProperty(K,"__esModule",{value:!0});var s=(function(){function e(t,n){for(var r=0;ru.width*10?u.width*10:u.fontSize,o.guardHeight=u.height+o.fontSize/2+u.textMargin,o}return s(r,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(u,o){return this.text.substr(u,o)}},{key:"leftEncode",value:function(u,o){return(0,l.default)(u,o)}},{key:"rightText",value:function(u,o){return this.text.substr(u,o)}},{key:"rightEncode",value:function(u,o){return(0,l.default)(u,o)}},{key:"encodeGuarded",value:function(){var u={fontSize:this.fontSize},o={height:this.guardHeight};return[{data:d.SIDE_BIN,options:o},{data:this.leftEncode(),text:this.leftText(),options:u},{data:d.MIDDLE_BIN,options:o},{data:this.rightEncode(),text:this.rightText(),options:u},{data:d.SIDE_BIN,options:o}]}},{key:"encodeFlat",value:function(){var u=[d.SIDE_BIN,this.leftEncode(),d.MIDDLE_BIN,this.rightEncode(),d.SIDE_BIN];return{data:u.join(""),text:this.text}}}]),r})(_.default);return ne.default=t,ne}var Je;function Jt(){if(Je)return re;Je=1,Object.defineProperty(re,"__esModule",{value:!0});var s=(function(){function n(r,i){for(var u=0;uu.width*10?o.fontSize=u.width*10:o.fontSize=u.fontSize,o.guardHeight=u.height+o.fontSize/2+u.textMargin,o}return s(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var u="";return u+="101",u+=(0,v.default)(this.data.substr(0,6),"LLLLLL"),u+="01010",u+=(0,v.default)(this.data.substr(6,6),"RRRRRR"),u+="101",{data:u,text:this.text}}},{key:"guardedEncoding",value:function(){var u=[];return this.displayValue&&u.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),u.push({data:"101"+(0,v.default)(this.data[0],"L"),options:{height:this.guardHeight}}),u.push({data:(0,v.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),u.push({data:"01010",options:{height:this.guardHeight}}),u.push({data:(0,v.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),u.push({data:(0,v.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&u.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),u}}]),r})(h.default);function t(n){var r=0,i;for(i=1;i<11;i+=2)r+=parseInt(n[i]);for(i=0;i<11;i+=2)r+=parseInt(n[i])*3;return(10-r%10)%10}return C.default=e,C}var fe={},Ke;function Zt(){if(Ke)return fe;Ke=1,Object.defineProperty(fe,"__esModule",{value:!0});var s=(function(){function u(o,y){for(var p=0;pp.width*10?g.fontSize=p.width*10:g.fontSize=p.fontSize,g.guardHeight=p.height+g.fontSize/2+p.textMargin,g}return s(o,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=this.encodeMiddleDigits(),p+="010101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101",options:{height:this.guardHeight}}),p.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),p.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),p}},{key:"encodeMiddleDigits",value:function(){var p=this.upcA[0],g=this.upcA[this.upcA.length-1],m=n[parseInt(g)][parseInt(p)];return(0,v.default)(this.middleDigits,m)}}]),o})(h.default);function i(u,o){for(var y=parseInt(u[u.length-1]),p=t[y],g="",m=0,q=0;q=3&&this.number<=131070}}]),e})(v.default);return G.pharmacode=f,G}var $={},vt;function cr(){if(vt)return $;vt=1,Object.defineProperty($,"__esModule",{value:!0}),$.codabar=void 0;var s=(function(){function a(e,t){for(var n=0;n0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function h(e,t,n){if(n.displayValue&&tt&&(t=e[n].height);return t}function a(e,t,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=r.measureText(e);if(!i)return 0;var u=i.width;return u}return P.getMaximumHeightOfEncodings=f,P.getEncodingHeight=l,P.getBarcodePadding=h,P.calculateEncodingAttributes=_,P.getTotalWidthOfEncodings=c,P}var mt;function sr(){if(mt)return Se;mt=1,Object.defineProperty(Se,"__esModule",{value:!0});var s=(function(){function f(a,e){for(var t=0;t0?(i=0,n.textAlign="left"):e.textAlign=="right"?(i=t.width-1,n.textAlign="right"):(i=t.width/2,n.textAlign="center"),n.fillText(t.text,i,u)}}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),f})();return Se.default=c,Se}var Re={},St;function yr(){if(St)return Re;St=1,Object.defineProperty(Re,"__esModule",{value:!0});var s=(function(){function a(e,t){for(var n=0;n0&&(this.drawRect(y-n.width*o,u,n.width*o,n.height,t),o=0);o>0&&this.drawRect(y-n.width*(o-1),u,n.width*o,n.height,t)}},{key:"drawSVGText",value:function(t,n,r){var i=this.document.createElementNS(c,"text");if(n.displayValue){var u,o;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?o=n.fontSize-n.textMargin:o=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||r.barcodePadding>0?(u=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(u=r.width-1,i.setAttribute("text-anchor","end")):(u=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",u),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),t.appendChild(i)}}},{key:"setSvgAttributes",value:function(t,n){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",n+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+n),r.setAttribute("xmlns",c),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,n,r){var i=this.document.createElementNS(c,"g");return i.setAttribute("transform","translate("+t+", "+n+")"),r.appendChild(i),i}},{key:"setGroupOptions",value:function(t,n){t.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(t,n,r,i,u){var o=this.document.createElementNS(c,"rect");return o.setAttribute("x",t),o.setAttribute("y",n),o.setAttribute("width",r),o.setAttribute("height",i),u.appendChild(o),o}}]),a})();return Re.default=f,Re}var xe={},Rt;function pr(){if(Rt)return xe;Rt=1,Object.defineProperty(xe,"__esModule",{value:!0});var s=(function(){function l(h,_){for(var c=0;c<_.length;c++){var f=_[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,_,c){return _&&l(h.prototype,_),c&&l(h,c),h}})();function d(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var v=(function(){function l(h,_,c){d(this,l),this.object=h,this.encodings=_,this.options=c}return s(l,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),l})();return xe.default=v,xe}var xt;function gr(){if(xt)return me;xt=1,Object.defineProperty(me,"__esModule",{value:!0});var s=sr(),d=c(s),v=yr(),l=c(v),h=pr(),_=c(h);function c(f){return f&&f.__esModule?f:{default:f}}return me.default={CanvasRenderer:d.default,SVGRenderer:l.default,ObjectRenderer:_.default},me}var j={},At;function Lt(){if(At)return j;At=1,Object.defineProperty(j,"__esModule",{value:!0});function s(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}function d(c,f){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:c}function v(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(c,f):c.__proto__=f)}var l=(function(c){v(f,c);function f(a,e){s(this,f);var t=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return t.name="InvalidInputException",t.symbology=a,t.input=e,t.message='"'+t.input+'" is not a valid input for '+t.symbology,t}return f})(Error),h=(function(c){v(f,c);function f(){s(this,f);var a=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return a.name="InvalidElementException",a.message="Not supported type to render on",a}return f})(Error),_=(function(c){v(f,c);function f(){s(this,f);var a=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return a.name="NoElementException",a.message="No element to render on.",a}return f})(Error);return j.InvalidInputException=l,j.InvalidElementException=h,j.NoElementException=_,j}var Pt;function Er(){if(Pt)return Ee;Pt=1,Object.defineProperty(Ee,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=_r(),v=c(d),l=gr(),h=c(l),_=Lt();function c(t){return t&&t.__esModule?t:{default:t}}function f(t){if(typeof t=="string")return a(t);if(Array.isArray(t)){for(var n=[],r=0;r"u"?"undefined":s(t))==="object"&&!t.nodeName)return{element:t,renderer:h.default.ObjectRenderer};throw new _.InvalidElementException}}function a(t){var n=document.querySelectorAll(t);if(n.length!==0){for(var r=[],i=0;i"u")throw Error("No element to render on was provided.");return w._renderProperties=(0,e.default)(b),w._encodings=[],w._options=y.default,w._errorHandler=new i.default(w),typeof R<"u"&&(O=O||{},O.format||(O.format=qe()),w.options(O)[O.format](R,O).render()),w};m.getModule=function(E){return d.default[E]};for(var q in d.default)d.default.hasOwnProperty(q)&&V(d.default,q);function V(E,b){g.prototype[b]=g.prototype[b.toUpperCase()]=g.prototype[b.toLowerCase()]=function(R,O){var w=this;return w._errorHandler.wrapBarcodeCall(function(){O.text=typeof O.text>"u"?void 0:""+O.text;var T=(0,l.default)(w._options,O);T=(0,n.default)(T);var Ct=E[b],Nt=De(R,Ct,T);return w._encodings.push(Nt),w})}}function De(E,b,R){E=""+E;var O=new b(E,R);if(!O.valid())throw new u.InvalidInputException(O.constructor.name,E);var w=O.encode();w=(0,_.default)(w);for(var T=0;T=200){y=r.shift()-105;var p=l.SWAP[y];p!==void 0?o=t.next(r,i+1,p):((u===l.SET_A||u===l.SET_B)&&y===l.SHIFT&&(r[0]=u===l.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),o=t.next(r,i+1,u))}else y=t.correctIndex(r,u),o=t.next(r,i+1,u);var g=t.getBar(y),m=y*i;return{result:g+o.result,checksum:m+o.checksum}}}]),t}(v.default);return Y.default=a,Y}var Z={},Ne;function Ft(){if(Ne)return Z;Ne=1,Object.defineProperty(Z,"__esModule",{value:!0});var s=H(),d=function(f){return f.match(new RegExp("^"+s.A_CHARS+"*"))[0].length},v=function(f){return f.match(new RegExp("^"+s.B_CHARS+"*"))[0].length},l=function(f){return f.match(new RegExp("^"+s.C_CHARS+"*"))[0]};function h(c,f){var a=f?s.A_CHARS:s.B_CHARS,e=c.match(new RegExp("^("+a+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(e)return e[1]+"Ì"+_(c.substring(e[1].length));var t=c.match(new RegExp("^"+a+"+"))[0];return t.length===c.length?c:t+String.fromCharCode(f?205:206)+h(c.substring(t.length),!f)}function _(c){var f=l(c),a=f.length;if(a===c.length)return c;c=c.substring(a);var e=d(c)>=v(c);return f+String.fromCharCode(e?206:205)+h(c,e)}return Z.default=function(c){var f=void 0,a=l(c).length;if(a>=2)f=s.C_START_CHAR+_(c);else{var e=d(c)>v(c);f=(e?s.A_START_CHAR:s.B_START_CHAR)+h(c,e)}return f.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,n){return"Ë"+n})},Z}var Ge;function Ht(){if(Ge)return W;Ge=1,Object.defineProperty(W,"__esModule",{value:!0});var s=Pe(),d=h(s),v=Ft(),l=h(v);function h(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){f(t,e);function t(n,r){if(_(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,l.default)(n),r));else var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return c(i)}return t}(d.default);return W.default=a,W}var K={},$e;function Ut(){if($e)return K;$e=1,Object.defineProperty(K,"__esModule",{value:!0});var s=function(){function e(t,n){for(var r=0;ru.width*10?u.width*10:u.fontSize,o.guardHeight=u.height+o.fontSize/2+u.textMargin,o}return s(r,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(u,o){return this.text.substr(u,o)}},{key:"leftEncode",value:function(u,o){return(0,l.default)(u,o)}},{key:"rightText",value:function(u,o){return this.text.substr(u,o)}},{key:"rightEncode",value:function(u,o){return(0,l.default)(u,o)}},{key:"encodeGuarded",value:function(){var u={fontSize:this.fontSize},o={height:this.guardHeight};return[{data:d.SIDE_BIN,options:o},{data:this.leftEncode(),text:this.leftText(),options:u},{data:d.MIDDLE_BIN,options:o},{data:this.rightEncode(),text:this.rightText(),options:u},{data:d.SIDE_BIN,options:o}]}},{key:"encodeFlat",value:function(){var u=[d.SIDE_BIN,this.leftEncode(),d.MIDDLE_BIN,this.rightEncode(),d.SIDE_BIN];return{data:u.join(""),text:this.text}}}]),r}(_.default);return ne.default=t,ne}var Je;function Jt(){if(Je)return re;Je=1,Object.defineProperty(re,"__esModule",{value:!0});var s=function(){function n(r,i){for(var u=0;uu.width*10?o.fontSize=u.width*10:o.fontSize=u.fontSize,o.guardHeight=u.height+o.fontSize/2+u.textMargin,o}return s(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var u="";return u+="101",u+=(0,v.default)(this.data.substr(0,6),"LLLLLL"),u+="01010",u+=(0,v.default)(this.data.substr(6,6),"RRRRRR"),u+="101",{data:u,text:this.text}}},{key:"guardedEncoding",value:function(){var u=[];return this.displayValue&&u.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),u.push({data:"101"+(0,v.default)(this.data[0],"L"),options:{height:this.guardHeight}}),u.push({data:(0,v.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),u.push({data:"01010",options:{height:this.guardHeight}}),u.push({data:(0,v.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),u.push({data:(0,v.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&u.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),u}}]),r}(h.default);function t(n){var r=0,i;for(i=1;i<11;i+=2)r+=parseInt(n[i]);for(i=0;i<11;i+=2)r+=parseInt(n[i])*3;return(10-r%10)%10}return C.default=e,C}var fe={},Ke;function Zt(){if(Ke)return fe;Ke=1,Object.defineProperty(fe,"__esModule",{value:!0});var s=function(){function u(o,y){for(var p=0;pp.width*10?g.fontSize=p.width*10:g.fontSize=p.fontSize,g.guardHeight=p.height+g.fontSize/2+p.textMargin,g}return s(o,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=this.encodeMiddleDigits(),p+="010101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101",options:{height:this.guardHeight}}),p.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),p.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),p}},{key:"encodeMiddleDigits",value:function(){var p=this.upcA[0],g=this.upcA[this.upcA.length-1],m=n[parseInt(g)][parseInt(p)];return(0,v.default)(this.middleDigits,m)}}]),o}(h.default);function i(u,o){for(var y=parseInt(u[u.length-1]),p=t[y],g="",m=0,q=0;q=3&&this.number<=131070}}]),e}(v.default);return G.pharmacode=f,G}var $={},vt;function cr(){if(vt)return $;vt=1,Object.defineProperty($,"__esModule",{value:!0}),$.codabar=void 0;var s=function(){function a(e,t){for(var n=0;n0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function h(e,t,n){if(n.displayValue&&tt&&(t=e[n].height);return t}function a(e,t,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=r.measureText(e);if(!i)return 0;var u=i.width;return u}return P.getMaximumHeightOfEncodings=f,P.getEncodingHeight=l,P.getBarcodePadding=h,P.calculateEncodingAttributes=_,P.getTotalWidthOfEncodings=c,P}var mt;function sr(){if(mt)return Se;mt=1,Object.defineProperty(Se,"__esModule",{value:!0});var s=function(){function f(a,e){for(var t=0;t0?(i=0,n.textAlign="left"):e.textAlign=="right"?(i=t.width-1,n.textAlign="right"):(i=t.width/2,n.textAlign="center"),n.fillText(t.text,i,u)}}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),f}();return Se.default=c,Se}var Re={},St;function yr(){if(St)return Re;St=1,Object.defineProperty(Re,"__esModule",{value:!0});var s=function(){function a(e,t){for(var n=0;n0&&(this.drawRect(y-n.width*o,u,n.width*o,n.height,t),o=0);o>0&&this.drawRect(y-n.width*(o-1),u,n.width*o,n.height,t)}},{key:"drawSVGText",value:function(t,n,r){var i=this.document.createElementNS(c,"text");if(n.displayValue){var u,o;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?o=n.fontSize-n.textMargin:o=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||r.barcodePadding>0?(u=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(u=r.width-1,i.setAttribute("text-anchor","end")):(u=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",u),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),t.appendChild(i)}}},{key:"setSvgAttributes",value:function(t,n){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",n+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+n),r.setAttribute("xmlns",c),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,n,r){var i=this.document.createElementNS(c,"g");return i.setAttribute("transform","translate("+t+", "+n+")"),r.appendChild(i),i}},{key:"setGroupOptions",value:function(t,n){t.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(t,n,r,i,u){var o=this.document.createElementNS(c,"rect");return o.setAttribute("x",t),o.setAttribute("y",n),o.setAttribute("width",r),o.setAttribute("height",i),u.appendChild(o),o}}]),a}();return Re.default=f,Re}var xe={},Rt;function pr(){if(Rt)return xe;Rt=1,Object.defineProperty(xe,"__esModule",{value:!0});var s=function(){function l(h,_){for(var c=0;c<_.length;c++){var f=_[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,_,c){return _&&l(h.prototype,_),c&&l(h,c),h}}();function d(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var v=function(){function l(h,_,c){d(this,l),this.object=h,this.encodings=_,this.options=c}return s(l,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),l}();return xe.default=v,xe}var xt;function gr(){if(xt)return me;xt=1,Object.defineProperty(me,"__esModule",{value:!0});var s=sr(),d=c(s),v=yr(),l=c(v),h=pr(),_=c(h);function c(f){return f&&f.__esModule?f:{default:f}}return me.default={CanvasRenderer:d.default,SVGRenderer:l.default,ObjectRenderer:_.default},me}var j={},At;function Lt(){if(At)return j;At=1,Object.defineProperty(j,"__esModule",{value:!0});function s(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}function d(c,f){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:c}function v(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(c,f):c.__proto__=f)}var l=function(c){v(f,c);function f(a,e){s(this,f);var t=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return t.name="InvalidInputException",t.symbology=a,t.input=e,t.message='"'+t.input+'" is not a valid input for '+t.symbology,t}return f}(Error),h=function(c){v(f,c);function f(){s(this,f);var a=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return a.name="InvalidElementException",a.message="Not supported type to render on",a}return f}(Error),_=function(c){v(f,c);function f(){s(this,f);var a=d(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return a.name="NoElementException",a.message="No element to render on.",a}return f}(Error);return j.InvalidInputException=l,j.InvalidElementException=h,j.NoElementException=_,j}var Pt;function Er(){if(Pt)return Ee;Pt=1,Object.defineProperty(Ee,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=_r(),v=c(d),l=gr(),h=c(l),_=Lt();function c(t){return t&&t.__esModule?t:{default:t}}function f(t){if(typeof t=="string")return a(t);if(Array.isArray(t)){for(var n=[],r=0;r"u"?"undefined":s(t))==="object"&&!t.nodeName)return{element:t,renderer:h.default.ObjectRenderer};throw new _.InvalidElementException}}function a(t){var n=document.querySelectorAll(t);if(n.length!==0){for(var r=[],i=0;i"u")throw Error("No element to render on was provided.");return w._renderProperties=(0,e.default)(b),w._encodings=[],w._options=y.default,w._errorHandler=new i.default(w),typeof R<"u"&&(O=O||{},O.format||(O.format=qe()),w.options(O)[O.format](R,O).render()),w};m.getModule=function(E){return d.default[E]};for(var q in d.default)d.default.hasOwnProperty(q)&&V(d.default,q);function V(E,b){g.prototype[b]=g.prototype[b.toUpperCase()]=g.prototype[b.toLowerCase()]=function(R,O){var w=this;return w._errorHandler.wrapBarcodeCall(function(){O.text=typeof O.text>"u"?void 0:""+O.text;var T=(0,l.default)(w._options,O);T=(0,n.default)(T);var Ct=E[b],Nt=De(R,Ct,T);return w._encodings.push(Nt),w})}}function De(E,b,R){E=""+E;var O=new b(E,R);if(!O.valid())throw new u.InvalidInputException(O.constructor.name,E);var w=O.encode();w=(0,_.default)(w);for(var T=0;T0){if(++r>=nt)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function it(n){return function(){return n}}var an=(function(){try{var n=D(Object,"defineProperty");return n({},"",{}),n}catch{}})(),at=an?function(n,r){return an(n,"toString",{configurable:!0,enumerable:!1,value:it(r),writable:!0})}:cn,wr=tt(at);function Pr(n,r){for(var e=-1,t=n==null?0:n.length;++e-1&&n%1==0&&n-1&&n%1==0&&n<=pt}function E(n){return n!=null&&jn(n.length)&&!Rn(n)}function ht(n,r,e){if(!O(e))return!1;var t=typeof r;return(t=="number"?E(e)&&ln(r,e.length):t=="string"&&r in e)?k(e[r],n):!1}function Er(n){return dt(function(r,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,f=i>2?e[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,f&&ht(e[0],e[1],f)&&(a=i<3?void 0:a,i=1),r=Object(r);++t-1}function Pi(n,r){var e=this.__data__,t=hn(e,n);return t<0?(++this.size,e.push([n,r])):e[t][1]=r,this}function I(n){var r=-1,e=n==null?0:n.length;for(this.clear();++ri?0:i+r),e=e>i?i:e,e<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(i);++t=t?n:Gr(n,r,e)}var Zi="\\ud800-\\udfff",Ji="\\u0300-\\u036f",Qi="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",ki=Ji+Qi+Vi,na="\\ufe0e\\ufe0f",ra="\\u200d",ea=RegExp("["+ra+Zi+ki+na+"]");function Br(n){return ea.test(n)}function ta(n){return n.split("")}var Hr="\\ud800-\\udfff",ia="\\u0300-\\u036f",aa="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",oa=ia+aa+fa,ua="\\ufe0e\\ufe0f",sa="["+Hr+"]",wn="["+oa+"]",Pn="\\ud83c[\\udffb-\\udfff]",ca="(?:"+wn+"|"+Pn+")",zr="[^"+Hr+"]",Kr="(?:\\ud83c[\\udde6-\\uddff]){2}",Wr="[\\ud800-\\udbff][\\udc00-\\udfff]",la="\\u200d",Xr=ca+"?",qr="["+ua+"]?",ga="(?:"+la+"(?:"+[zr,Kr,Wr].join("|")+")"+qr+Xr+")*",da=qr+Xr+ga,pa="(?:"+[zr+wn+"?",wn,Kr,Wr,sa].join("|")+")",ha=RegExp(Pn+"(?="+Pn+")|"+pa+da,"g");function ba(n){return n.match(ha)||[]}function va(n){return Br(n)?ba(n):ta(n)}function ya(n){return function(r){r=Lr(r);var e=Br(r)?va(r):void 0,t=e?e[0]:r.charAt(0),i=e?Yi(e,1).join(""):r.slice(1);return t[n]()+i}}var Ou=ya("toUpperCase");function _a(n,r,e,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(e=n[++i]);++io))return!1;var s=a.get(n),c=a.get(r);if(s&&c)return s==r&&c==n;var l=-1,g=!0,h=e&ro?new on:void 0;for(a.set(n,r),a.set(r,n);++l=r||R<0||l&&q>=a}function v(){var _=On();if(b(_))return x(_);o=setTimeout(v,$(_))}function x(_){return o=void 0,g&&t?h(_):(t=i=void 0,f)}function en(){o!==void 0&&clearTimeout(o),s=0,t=u=i=o=void 0}function G(){return o===void 0?f:x(On())}function M(){var _=On(),R=b(_);if(t=arguments,i=this,u=_,R){if(o===void 0)return y(u);if(l)return clearTimeout(o),o=setTimeout(v,r),h(u)}return o===void 0&&(o=setTimeout(v,r)),f}return M.cancel=en,M.flush=G,M}function Cn(n,r,e){(e!==void 0&&!k(n[r],e)||e===void 0&&!(r in n))&&gn(n,r,e)}function zo(n){return P(n)&&E(n)}function Mn(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}function Ko(n){return U(n,K(n))}function Wo(n,r,e,t,i,a,f){var o=Mn(n,e),u=Mn(r,e),s=f.get(u);if(s){Cn(n,e,s);return}var c=a?a(o,u,e+"",n,r,f):void 0,l=c===void 0;if(l){var g=T(u),h=!g&&H(u),y=!g&&!h&&pn(u);c=u,g||h||y?T(o)?c=o:zo(o)?c=mr(o):h?(l=!1,c=Zr(u,!0)):y?(l=!1,c=ne(u,!0)):c=[]:Ur(u)||B(u)?(c=o,B(o)?c=Ko(o):(!O(o)||Rn(o))&&(c=re(u))):l=!1}l&&(f.set(u,c),i(c,u,t,a,f),f.delete(u)),Cn(n,e,c)}function ge(n,r,e,t,i){n!==r&&Hn(r,function(a,f){if(i||(i=new w),O(a))Wo(n,r,f,e,ge,t,i);else{var o=t?t(Mn(n,f),a,f+"",n,r,i):void 0;o===void 0&&(o=a),Cn(n,f,o)}},K)}function Xo(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function de(n){return typeof n=="function"?n:cn}function mu(n,r){var e=T(n)?Pr:zn;return e(n,de(r))}function qo(n,r){return sn(r,function(e){return[e,n[e]]})}function Yo(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=[t,t]}),e}var Zo="[object Map]",Jo="[object Set]";function Qo(n){return function(r){var e=A(r);return e==Zo?fe(r):e==Jo?Yo(r):qo(r,n(r))}}var wu=Qo(F);function Vo(n){return function(r,e,t){var i=Object(r);if(!E(r)){var a=rn(e);r=F(r),e=function(o){return a(i[o],o,i)}}var f=n(r,e,t);return f>-1?i[a?r[f]:f]:void 0}}var ko=Math.max;function nu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=e==null?0:Fe(e);return i<0&&(i=ko(t+i,0)),Sr(n,rn(r),i)}var Pu=Vo(nu);function ru(n,r){var e=-1,t=E(n)?Array(n.length):[];return zn(n,function(i,a,f){t[++e]=r(i,a,f)}),t}function Su(n,r){var e=T(n)?sn:ru;return e(n,rn(r))}function xu(n,r){return n==null?n:Hn(n,de(r),K)}var eu=Object.prototype,tu=eu.hasOwnProperty;function iu(n,r){return n!=null&&tu.call(n,r)}function Eu(n,r){return n!=null&&se(n,r,iu)}function Iu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=0;return ut(n,r,i)}function au(n,r){return r.length<2?n:vn(n,Gr(r,0,-1))}var fu="[object Boolean]";function Cu(n){return n===!0||n===!1||P(n)&&j(n)==fu}var ou="[object Map]",uu="[object Set]",su=Object.prototype,cu=su.hasOwnProperty;function Mu(n){if(n==null)return!0;if(E(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||H(n)||pn(n)||B(n)))return!n.length;var r=A(n);if(r==ou||r==uu)return!n.size;if(nn(n))return!Fr(n).length;for(var e in n)if(cu.call(n,e))return!1;return!0}function Ru(n,r){return yn(n,r)}function ju(n){return n==null}function Fu(n){return n===void 0}function Lu(n,r){var e={};return r=rn(r),le(n,function(t,i,a){gn(e,r(t,i,a),t)}),e}var Nu=Er(function(n,r,e){ge(n,r,e)});function lu(n,r){return r=W(r,n),n=au(n,r),n==null||delete n[X(Xo(r))]}function gu(n){return Ur(n)?void 0:n}var du=1,pu=2,hu=4,Du=Nr(function(n,r){var e={};if(n==null)return e;var t=!1;r=sn(r,function(a){return a=W(a,n),t||(t=a.length>1),a}),U(n,kr(n),e),t&&(e=J(e,du|pu|hu,gu));for(var i=r.length;i--;)lu(e,r[i]);return e});function pe(n,r,e,t){if(!O(n))return n;r=W(r,n);for(var i=-1,a=r.length,f=a-1,o=n;o!=null&&++i0){if(++r>=nt)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function it(n){return function(){return n}}var an=function(){try{var n=D(Object,"defineProperty");return n({},"",{}),n}catch{}}(),at=an?function(n,r){return an(n,"toString",{configurable:!0,enumerable:!1,value:it(r),writable:!0})}:cn,mr=tt(at);function wr(n,r){for(var e=-1,t=n==null?0:n.length;++e-1&&n%1==0&&n-1&&n%1==0&&n<=pt}function E(n){return n!=null&&jn(n.length)&&!Rn(n)}function ht(n,r,e){if(!O(e))return!1;var t=typeof r;return(t=="number"?E(e)&&ln(r,e.length):t=="string"&&r in e)?k(e[r],n):!1}function xr(n){return dt(function(r,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,f=i>2?e[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,f&&ht(e[0],e[1],f)&&(a=i<3?void 0:a,i=1),r=Object(r);++t-1}function Pi(n,r){var e=this.__data__,t=hn(e,n);return t<0?(++this.size,e.push([n,r])):e[t][1]=r,this}function I(n){var r=-1,e=n==null?0:n.length;for(this.clear();++ri?0:i+r),e=e>i?i:e,e<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(i);++to))return!1;var s=a.get(n),c=a.get(r);if(s&&c)return s==r&&c==n;var l=-1,g=!0,h=e&ro?new on:void 0;for(a.set(n,r),a.set(r,n);++l=r||R<0||l&&q>=a}function b(){var _=On();if(y(_))return x(_);o=setTimeout(b,$(_))}function x(_){return o=void 0,g&&t?h(_):(t=i=void 0,f)}function en(){o!==void 0&&clearTimeout(o),s=0,t=u=i=o=void 0}function G(){return o===void 0?f:x(On())}function M(){var _=On(),R=y(_);if(t=arguments,i=this,u=_,R){if(o===void 0)return v(u);if(l)return clearTimeout(o),o=setTimeout(b,r),h(u)}return o===void 0&&(o=setTimeout(b,r)),f}return M.cancel=en,M.flush=G,M}function Cn(n,r,e){(e!==void 0&&!k(n[r],e)||e===void 0&&!(r in n))&&gn(n,r,e)}function zo(n){return P(n)&&E(n)}function Mn(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}function Ko(n){return U(n,K(n))}function Wo(n,r,e,t,i,a,f){var o=Mn(n,e),u=Mn(r,e),s=f.get(u);if(s){Cn(n,e,s);return}var c=a?a(o,u,e+"",n,r,f):void 0,l=c===void 0;if(l){var g=T(u),h=!g&&H(u),v=!g&&!h&&pn(u);c=u,g||h||v?T(o)?c=o:zo(o)?c=Ar(o):h?(l=!1,c=Yr(u,!0)):v?(l=!1,c=kr(u,!0)):c=[]:Dr(u)||B(u)?(c=o,B(o)?c=Ko(o):(!O(o)||Rn(o))&&(c=ne(u))):l=!1}l&&(f.set(u,c),i(c,u,t,a,f),f.delete(u)),Cn(n,e,c)}function le(n,r,e,t,i){n!==r&&Hn(r,function(a,f){if(i||(i=new w),O(a))Wo(n,r,f,e,le,t,i);else{var o=t?t(Mn(n,f),a,f+"",n,r,i):void 0;o===void 0&&(o=a),Cn(n,f,o)}},K)}function Xo(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function ge(n){return typeof n=="function"?n:cn}function mu(n,r){var e=T(n)?wr:zn;return e(n,ge(r))}function qo(n,r){return sn(r,function(e){return[e,n[e]]})}function Yo(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=[t,t]}),e}var Zo="[object Map]",Jo="[object Set]";function Qo(n){return function(r){var e=A(r);return e==Zo?ae(r):e==Jo?Yo(r):qo(r,n(r))}}var wu=Qo(F);function Vo(n){return function(r,e,t){var i=Object(r);if(!E(r)){var a=rn(e);r=F(r),e=function(o){return a(i[o],o,i)}}var f=n(r,e,t);return f>-1?i[a?r[f]:f]:void 0}}var ko=Math.max;function nu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=e==null?0:Fe(e);return i<0&&(i=ko(t+i,0)),Pr(n,rn(r),i)}var Pu=Vo(nu);function ru(n,r){var e=-1,t=E(n)?Array(n.length):[];return zn(n,function(i,a,f){t[++e]=r(i,a,f)}),t}function Su(n,r){var e=T(n)?sn:ru;return e(n,rn(r))}function xu(n,r){return n==null?n:Hn(n,ge(r),K)}var eu=Object.prototype,tu=eu.hasOwnProperty;function iu(n,r){return n!=null&&tu.call(n,r)}function Eu(n,r){return n!=null&&ue(n,r,iu)}function Iu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=0;return ut(n,r,i)}function au(n,r){return r.length<2?n:bn(n,Ur(r,0,-1))}var fu="[object Boolean]";function Cu(n){return n===!0||n===!1||P(n)&&j(n)==fu}var ou="[object Map]",uu="[object Set]",su=Object.prototype,cu=su.hasOwnProperty;function Mu(n){if(n==null)return!0;if(E(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||H(n)||pn(n)||B(n)))return!n.length;var r=A(n);if(r==ou||r==uu)return!n.size;if(nn(n))return!jr(n).length;for(var e in n)if(cu.call(n,e))return!1;return!0}function Ru(n,r){return vn(n,r)}function ju(n){return n==null}function Fu(n){return n===void 0}function Lu(n,r){var e={};return r=rn(r),ce(n,function(t,i,a){gn(e,r(t,i,a),t)}),e}var Nu=xr(function(n,r,e){le(n,r,e)});function lu(n,r){return r=W(r,n),n=au(n,r),n==null||delete n[X(Xo(r))]}function gu(n){return Dr(n)?void 0:n}var du=1,pu=2,hu=4,Du=Lr(function(n,r){var e={};if(n==null)return e;var t=!1;r=sn(r,function(a){return a=W(a,n),t||(t=a.length>1),a}),U(n,Vr(n),e),t&&(e=J(e,du|pu|hu,gu));for(var i=r.length;i--;)lu(e,r[i]);return e});function de(n,r,e,t){if(!O(n))return n;r=W(r,n);for(var i=-1,a=r.length,f=a-1,o=n;o!=null&&++i1&&arguments[1]!==void 0?arguments[1]:{},o=t.prefix,n=o===void 0?"":o,r=t.suffix,i=r===void 0?"":r,a=e.displayName||e.name||e.constructor&&e.constructor.name||"";return n+a+i}var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=(function(){function e(t,o){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=e[t],r=W[t],i=n?o===!0?function(){r.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=i}function P(e,t){if(e==null||t==null||(typeof e>"u"?"undefined":O(e))!=="object"||(typeof t>"u"?"undefined":O(t))!=="object")return e!==t;var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(var n=void 0,r=o.length-1;n=o[r];r--)if(t[n]!==e[n])return!0;return!1}var W={componentWillMount:function(){var t=this,o=R(this),n=!1,r=!1;function i(f){var u=this[f],l=E("reactive "+f);Object.defineProperty(this,f,{configurable:!0,enumerable:!0,get:function(){return l.reportObserved(),u},set:function(s){!r&&P(u,s)?(u=s,n=!0,l.reportChanged(),n=!1):u=s}})}i.call(this,"props"),i.call(this,"state");var a=this.render.bind(this),c=null,p=!1,b=function(){return c=new C(o+".render()",function(){if(!p&&(p=!0,typeof t.componentWillReact=="function"&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var u=!0;try{r=!0,n||g.prototype.forceUpdate.call(t),u=!1}finally{r=!1,u&&c.dispose()}}}),c.reactComponent=t,y.$mobx=c,t.render=y,y(t.props,t.state,t.context)},y=function(u,l,d){p=!1;var s=void 0,v=void 0;if(c.track(function(){try{v=X(!1,a,u,l,d)}catch(h){s=h}}),s)throw s;return v};this.render=b},componentWillUnmount:function(){this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(t,o){return this.state!==o?!0:P(this.props,t)}};function T(e){if(arguments.length>1&&w.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&w.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I(e)){var t,o;return T((o=t=(function(r){U(i,r);function i(){return _(this,i),$(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return M(i,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),i})(g),t.displayName=R(e),o))}if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return G(n),e.isMobXReactObserver=!0,e}function G(e){x(e,"componentWillMount",!0),x(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=W.shouldComponentUpdate)}var K=T(function(e){var t=e.children;return t[0]()});K.displayName="Observer";var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e,t){return t={exports:{}},e(t,t.exports),t.exports}q(function(e,t){(function(o,n){e.exports=n()})(k,(function(){var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=p&&p(Object);return function y(f,u,l){if(typeof u!="string"){if(b){var d=p(u);d&&d!==b&&y(f,d,l)}var s=i(u);a&&(s=s.concat(a(u)));for(var v=0;v1?N("div",null," ",r," "):r[0]}},{key:"getChildContext",value:function(){var n={},r=this.context.mobxStores;if(r)for(var i in r)n[i]=r[i];for(var a in this.props)!S[a]&&a!=="suppressChangedStoreWarning"&&(n[a]=this.props[a]);return{mobxStores:n}}},{key:"componentWillReceiveProps",value:function(n){if(Object.keys(n).length!==Object.keys(this.props).length&&j.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!n.suppressChangedStoreWarning)for(var r in n)!S[r]&&this.props[r]!==n[r]&&j.warn("MobX Provider: Provided store '"+r+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t})(g);if(!g)throw new Error("mobx-preact requires Preact to be available");export{T as o}; diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js.gz b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js.gz new file mode 100644 index 00000000..3b1b7a94 Binary files /dev/null and b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js.gz differ diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js deleted file mode 100644 index 7c0f7c1d..00000000 --- a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js +++ /dev/null @@ -1 +0,0 @@ -import{g as N,x as g}from"./preact@10.25.4-CrjB-ZC0.js";import{d as E,R as C,g as m}from"./mobx@5.15.7-DLDjekon.js";function I(e){return!(e.prototype&&e.prototype.render)&&!g.isPrototypeOf(e)}function R(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.prefix,n=o===void 0?"":o,r=t.suffix,i=r===void 0?"":r,a=e.displayName||e.name||e.constructor&&e.constructor.name||"";return n+a+i}var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(t,o){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=e[t],r=$[t],i=n?o===!0?function(){r.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=i}function P(e,t){if(e==null||t==null||(typeof e>"u"?"undefined":O(e))!=="object"||(typeof t>"u"?"undefined":O(t))!=="object")return e!==t;var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(var n=void 0,r=o.length-1;n=o[r];r--)if(t[n]!==e[n])return!0;return!1}var $={componentWillMount:function(){var t=this,o=R(this),n=!1,r=!1;function i(f){var u=this[f],l=E("reactive "+f);Object.defineProperty(this,f,{configurable:!0,enumerable:!0,get:function(){return l.reportObserved(),u},set:function(s){!r&&P(u,s)?(u=s,n=!0,l.reportChanged(),n=!1):u=s}})}i.call(this,"props"),i.call(this,"state");var a=this.render.bind(this),c=null,p=!1,b=function(){return c=new C(o+".render()",function(){if(!p&&(p=!0,typeof t.componentWillReact=="function"&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var u=!0;try{r=!0,n||g.prototype.forceUpdate.call(t),u=!1}finally{r=!1,u&&c.dispose()}}}),c.reactComponent=t,y.$mobx=c,t.render=y,y(t.props,t.state,t.context)},y=function(u,l,d){p=!1;var s=void 0,v=void 0;if(c.track(function(){try{v=X(!1,a,u,l,d)}catch(h){s=h}}),s)throw s;return v};this.render=b},componentWillUnmount:function(){this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(t,o){return this.state!==o?!0:P(this.props,t)}};function T(e){if(arguments.length>1&&w.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&w.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I(e)){var t,o;return T((o=t=function(r){U(i,r);function i(){return _(this,i),W(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return M(i,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),i}(g),t.displayName=R(e),o))}if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return G(n),e.isMobXReactObserver=!0,e}function G(e){x(e,"componentWillMount",!0),x(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=$.shouldComponentUpdate)}var K=T(function(e){var t=e.children;return t[0]()});K.displayName="Observer";var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e,t){return t={exports:{}},e(t,t.exports),t.exports}q(function(e,t){(function(o,n){e.exports=n()})(k,function(){var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=p&&p(Object);return function y(f,u,l){if(typeof u!="string"){if(b){var d=p(u);d&&d!==b&&y(f,d,l)}var s=i(u);a&&(s=s.concat(a(u)));for(var v=0;v1?N("div",null," ",r," "):r[0]}},{key:"getChildContext",value:function(){var n={},r=this.context.mobxStores;if(r)for(var i in r)n[i]=r[i];for(var a in this.props)!S[a]&&a!=="suppressChangedStoreWarning"&&(n[a]=this.props[a]);return{mobxStores:n}}},{key:"componentWillReceiveProps",value:function(n){if(Object.keys(n).length!==Object.keys(this.props).length&&j.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!n.suppressChangedStoreWarning)for(var r in n)!S[r]&&this.props[r]!==n[r]&&j.warn("MobX Provider: Provided store '"+r+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t})(g);if(!g)throw new Error("mobx-preact requires Preact to be available");export{T as o}; diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js.gz b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js.gz deleted file mode 100644 index 8918e53b..00000000 Binary files a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js.gz and /dev/null differ diff --git a/js/mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js b/js/mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js similarity index 69% rename from js/mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js rename to js/mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js index c8791c29..5b41386a 100644 --- a/js/mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js +++ b/js/mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js @@ -1 +1 @@ -import{e as R,f as N,v as S,h as B,j as F,k as M,b as f,o as h,l as L,m as $,a as w,n as E,r as z,O as q,p as J,q as U,$ as W,u as x,w as H}from"./mobx@5.15.7-DLDjekon.js";function Q(e){throw new Error("[mobx-utils] "+e)}function _(e,o){o===void 0&&(o="Illegal state"),e||Q(o)}var G=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(G(Object.getPrototypeOf(e))||[])},X=function(e){var o=G(e),t=o.filter(function(r,n){return o.indexOf(r)===n});return t},Y=function(e){return X(e).filter(function(o){return o!=="constructor"&&!~o.indexOf("__")})},T="pending",O="fulfilled",P="rejected";function Z(e){switch(this.state){case T:return e.pending&&e.pending(this.value);case P:return e.rejected&&e.rejected(this.value);case O:return e.fulfilled?e.fulfilled(this.value):this.value}}function D(e,o){if(_(arguments.length<=2,"fromPromise expects up to two arguments"),_(typeof e=="function"||typeof e=="object"&&e&&typeof e.then=="function","Please pass a promise or function to fromPromise"),e.isPromiseBasedObservable===!0)return e;typeof e=="function"&&(e=new Promise(e));var t=e;e.then(f("observableFromPromise-resolve",function(n){t.value=n,t.state=O}),f("observableFromPromise-reject",function(n){t.value=n,t.state=P})),t.isPromiseBasedObservable=!0,t.case=Z;var r=o&&o.state===O?o.value:void 0;return J(t,{value:r,state:T},{},{deep:!1}),t}(function(e){e.reject=f("fromPromise.reject",function(t){var r=e(Promise.reject(t));return r.state=P,r.value=t,r});function o(t){t===void 0&&(t=void 0);var r=e(Promise.resolve(t));return r.state=O,r.value=t,r}e.resolve=f("fromPromise.resolve",o)})(D||(D={}));var y=function(e,o,t,r){var n=arguments.length,i=n<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i};(function(){function e(o,t){var r=this;U(function(){r.current=t,r.subscription=o.subscribe(r)})}return e.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.next=function(o){this.current=o},e.prototype.complete=function(){this.dispose()},e.prototype.error=function(o){this.current=o,this.dispose()},y([h.ref],e.prototype,"current",void 0),y([f.bound],e.prototype,"next",null),y([f.bound],e.prototype,"complete",null),y([f.bound],e.prototype,"error",null),e})();var g=function(){return g=Object.assign||function(e){for(var o,t=1,r=arguments.length;t=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i},k=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function e(o){var t=this;this.model=o,this.localValues=h.map({}),this.localComputedValues=h.map({}),this.isPropertyDirty=function(r){return t.localValues.has(r)},_(B(o),"createViewModel expects an observable object"),Y(o).forEach(function(r){if(!(r===W||r==="__mobxDidRunLazyInitializers")){if(_(k.indexOf(r)===-1,"The propertyname "+r+" is reserved and cannot be used with viewModels"),x(o,r)){var n=H(o,r).derivation;t.localComputedValues.set(r,w(n.bind(t)))}var i=Object.getOwnPropertyDescriptor(o,r),a=i?{enumerable:i.enumerable}:{};Object.defineProperty(t,r,g(g({},a),{configurable:!0,get:function(){return x(o,r)?t.localComputedValues.get(r).get():t.isPropertyDirty(r)?t.localValues.get(r):t.model[r]},set:f(function(s){s!==t.model[r]?t.localValues.set(r,s):t.localValues.delete(r)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),e.prototype.submit=function(){var o=this;L(this.localValues).forEach(function(t){var r=o.localValues.get(t),n=o.model[t];F(n)?n.replace(r):M(n)?(n.clear(),n.merge(r)):$(r)||(o.model[t]=r)}),this.localValues.clear()},e.prototype.reset=function(){this.localValues.clear()},e.prototype.resetProperty=function(o){this.localValues.delete(o)},b([w],e.prototype,"isDirty",null),b([w],e.prototype,"changedValues",null),b([f.bound],e.prototype,"submit",null),b([f.bound],e.prototype,"reset",null),b([f.bound],e.prototype,"resetProperty",null),e})();function I(e){if(!e)return"ROOT";for(var o=[];e.parent;)o.push(e.path),e=e.parent;return o.reverse().join("/")}function V(e){return B(e)||F(e)||M(e)}function re(e,o){var t=new WeakMap;function r(s){var l=t.get(s.object);n(s,l),o(s,I(l),e)}function n(s,l){switch(s.type){case"add":i(s.newValue,l,s.name);break;case"update":a(s.oldValue),i(s.newValue,l,s.name||""+s.index);break;case"remove":case"delete":a(s.oldValue);break;case"splice":s.removed.map(a),s.added.forEach(function(d,c){return i(d,l,""+(s.index+c))});for(var p=s.index+s.addedCount;p=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i};(function(){function e(o,t){var r=this;U(function(){r.current=t,r.subscription=o.subscribe(r)})}return e.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.next=function(o){this.current=o},e.prototype.complete=function(){this.dispose()},e.prototype.error=function(o){this.current=o,this.dispose()},y([h.ref],e.prototype,"current",void 0),y([f.bound],e.prototype,"next",null),y([f.bound],e.prototype,"complete",null),y([f.bound],e.prototype,"error",null),e})();var g=function(){return g=Object.assign||function(e){for(var o,t=1,r=arguments.length;t=0;s--)(a=e[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i},k=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function e(o){var t=this;this.model=o,this.localValues=h.map({}),this.localComputedValues=h.map({}),this.isPropertyDirty=function(r){return t.localValues.has(r)},_(B(o),"createViewModel expects an observable object"),Y(o).forEach(function(r){if(!(r===W||r==="__mobxDidRunLazyInitializers")){if(_(k.indexOf(r)===-1,"The propertyname "+r+" is reserved and cannot be used with viewModels"),x(o,r)){var n=H(o,r).derivation;t.localComputedValues.set(r,w(n.bind(t)))}var i=Object.getOwnPropertyDescriptor(o,r),a=i?{enumerable:i.enumerable}:{};Object.defineProperty(t,r,g(g({},a),{configurable:!0,get:function(){return x(o,r)?t.localComputedValues.get(r).get():t.isPropertyDirty(r)?t.localValues.get(r):t.model[r]},set:f(function(s){s!==t.model[r]?t.localValues.set(r,s):t.localValues.delete(r)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),e.prototype.submit=function(){var o=this;L(this.localValues).forEach(function(t){var r=o.localValues.get(t),n=o.model[t];F(n)?n.replace(r):M(n)?(n.clear(),n.merge(r)):$(r)||(o.model[t]=r)}),this.localValues.clear()},e.prototype.reset=function(){this.localValues.clear()},e.prototype.resetProperty=function(o){this.localValues.delete(o)},b([w],e.prototype,"isDirty",null),b([w],e.prototype,"changedValues",null),b([f.bound],e.prototype,"submit",null),b([f.bound],e.prototype,"reset",null),b([f.bound],e.prototype,"resetProperty",null),e})();function I(e){if(!e)return"ROOT";for(var o=[];e.parent;)o.push(e.path),e=e.parent;return o.reverse().join("/")}function V(e){return B(e)||F(e)||M(e)}function re(e,o){var t=new WeakMap;function r(s){var l=t.get(s.object);n(s,l),o(s,I(l),e)}function n(s,l){switch(s.type){case"add":i(s.newValue,l,s.name);break;case"update":a(s.oldValue),i(s.newValue,l,s.name||""+s.index);break;case"remove":case"delete":a(s.oldValue);break;case"splice":s.removed.map(a),s.added.forEach(function(d,c){return i(d,l,""+(s.index+c))});for(var p=s.index+s.addedCount;p=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function X(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Je(){for(var e=[],t=0;t2&&ie("box");var r=W(t);return new H(e,de(r),r.name,!0,r.equals)},array:function(e,t){arguments.length>2&&ie("array");var r=W(t);return Hr(e,de(r),r.name)},map:function(e,t){arguments.length>2&&ie("map");var r=W(t);return new Kt(e,de(r),r.name)},set:function(e,t){arguments.length>2&&ie("set");var r=W(t);return new qt(e,de(r),r.name)},object:function(e,t,r){typeof arguments[1]=="string"&&ie("object");var n=W(r);if(n.proxy===!1)return ot({},e,t,n);var i=Nt(n),a=ot({},void 0,void 0,n),o=Kr(a);return Lt(o,e,t,i),o},ref:Ot,shallow:ur,deep:We,struct:fr},O=cr;Object.keys(rt).forEach(function(e){return O[e]=rt[e]});function ie(e){h("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}var we=gt(!1,function(e,t,r,n,i){var a=r.get,o=r.set,s=i[0]||{};Ye(e).addComputedProp(e,t,Ae({get:a,set:o,context:e},s))}),lr=we({equals:k.structural}),hr=function(t,r,n){if(typeof r=="string"||t!==null&&typeof t=="object"&&arguments.length===1)return we.apply(null,arguments);var i=typeof r=="object"?r:{};return i.get=t,i.set=typeof r=="function"?r:i.set,i.name=i.name||t.name||"",new $(i)};hr.struct=lr;var v;(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"})(v||(v={}));var T;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(T||(T={}));var Ee=function(){function e(t){this.cause=t}return e}();function oe(e){return e instanceof Ee}function Ue(e){switch(e.dependenciesState){case v.UP_TO_DATE:return!1;case v.NOT_TRACKING:case v.STALE:return!0;case v.POSSIBLY_STALE:{for(var t=Xe(!0),r=ne(),n=e.observing,i=n.length,a=0;a0;u.computationDepth>0&&t&&h(!1),!u.allowStateChanges&&(t||u.enforceActions==="strict")&&h(!1)}function At(e,t,r){var n=Xe(!0);wt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++u.runId;var i=u.trackingDerivation;u.trackingDerivation=e;var a;if(u.disableErrorBoundaries===!0)a=t.call(r);else try{a=t.call(r)}catch(o){a=new Ee(o)}return u.trackingDerivation=i,vr(e),se(n),a}function vr(e){for(var t=e.observing,r=e.observing=e.newObserving,n=v.UP_TO_DATE,i=0,a=e.unboundDepsCount,o=0;on&&(n=s.dependenciesState)}for(r.length=i,e.newObserving=null,a=t.length;a--;){var s=t[a];s.diffValue===0&&xt(s,e),s.diffValue=0}for(;i--;){var s=r[i];s.diffValue===1&&(s.diffValue=0,Or(s,e))}n!==v.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}function Ve(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)xt(t[r],e);e.dependenciesState=v.NOT_TRACKING}function St(e){var t=ne();try{return e()}finally{I(t)}}function ne(){var e=u.trackingDerivation;return u.trackingDerivation=null,e}function I(e){u.trackingDerivation=e}function Xe(e){var t=u.allowStateReads;return u.allowStateReads=e,t}function se(e){u.allowStateReads=e}function wt(e){if(e.dependenciesState!==v.UP_TO_DATE){e.dependenciesState=v.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=v.UP_TO_DATE}}var _e=0,pr=1,nt=Object.getOwnPropertyDescriptor(function(){},"name");nt&&nt.configurable;function z(e,t,r){var n=function(){return Et(e,t,r||this,arguments)};return n.isMobxAction=!0,n}function Et(e,t,r,n){var i=dr();try{return t.apply(r,n)}catch(a){throw i.error=a,a}finally{yr(i)}}function dr(e,t,r){var n=A(),i=0,a=ne();E();var o=je(!0),s=Xe(!0),f={prevDerivation:a,prevAllowStateChanges:o,prevAllowStateReads:s,notifySpy:n,startTime:i,actionId:pr++,parentActionId:_e};return _e=f.actionId,f}function yr(e){_e!==e.actionId&&h("invalid action stack. did you forget to finish an action?"),_e=e.parentActionId,e.error!==void 0&&(u.suppressReactionErrors=!0),Me(e.prevAllowStateChanges),se(e.prevAllowStateReads),_(),I(e.prevDerivation),e.notifySpy,u.suppressReactionErrors=!1}function je(e){var t=u.allowStateChanges;return u.allowStateChanges=e,t}function Me(e){u.allowStateChanges=e}var H=function(e){tr(t,e);function t(r,n,i,a,o){i===void 0&&(i="ObservableValue@"+g()),o===void 0&&(o=k.default);var s=e.call(this,i)||this;return s.enhancer=n,s.name=i,s.equals=o,s.hasUnreportedChange=!1,s.value=n(r,void 0,i),s}return t.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.prototype.set=function(r){this.value,r=this.prepareNewValue(r),r!==u.UNCHANGED&&this.setNewValue(r)},t.prototype.prepareNewValue=function(r){if(Y(this),D(this)){var n=P(this,{object:this,type:"update",newValue:r});if(!n)return u.UNCHANGED;r=n.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?u.UNCHANGED:r},t.prototype.setNewValue=function(r){var n=this.value;this.value=r,this.reportChanged(),x(this)&&R(this,{type:"update",object:this,newValue:r,oldValue:n})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(r){return le(this,r)},t.prototype.observe=function(r,n){return n&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),he(this,r)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return yt(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(re),br=V("ObservableValue",H),$=function(){function e(t){this.dependenciesState=v.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=v.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+g(),this.value=new Ee(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=T.NONE,q(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+g(),t.set&&(this.setter=z(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?k.structural:k.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return e.prototype.onBecomeStale=function(){wr(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},e.prototype.get=function(){this.isComputing&&h("Cycle detected in computation "+this.name+": "+this.derivation),u.inBatch===0&&this.observers.size===0&&!this.keepAlive?Ue(this)&&(this.warnAboutUntrackedRead(),E(),this.value=this.computeValue(!1),_()):(Ct(this),Ue(this)&&this.trackAndCompute()&&Sr(this));var t=this.value;if(oe(t))throw t.cause;return t},e.prototype.peek=function(){var t=this.computeValue(!1);if(oe(t))throw t.cause;return t},e.prototype.set=function(t){if(this.setter){q(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else q(!1,!1)},e.prototype.trackAndCompute=function(){var t=this.value,r=this.dependenciesState===v.NOT_TRACKING,n=this.computeValue(!0),i=r||oe(t)||oe(n)||!this.equals(t,n);return i&&(this.value=n),i},e.prototype.computeValue=function(t){this.isComputing=!0,u.computationDepth++;var r;if(t)r=At(this,this.derivation,this.scope);else if(u.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(n){r=new Ee(n)}return u.computationDepth--,this.isComputing=!1,r},e.prototype.suspend=function(){this.keepAlive||(Ve(this),this.value=void 0)},e.prototype.observe=function(t,r){var n=this,i=!0,a=void 0;return Dr(function(){var o=n.get();if(!i||r){var s=ne();t({type:"update",object:n,newValue:o,oldValue:a}),I(s)}i=!1,a=o})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return yt(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Z=V("ComputedValue",$),ge=function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e}(),gr={};function Ge(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:gr}var me=!0,_t=!1,u=function(){var e=Ge();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(me=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new ge().version&&(me=!1),me?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ge):(setTimeout(function(){_t||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ge)}();function mr(){(u.pendingReactions.length||u.inBatch||u.isRunningReactions)&&h("isolateGlobalState should be called before MobX is running any reactions"),_t=!0,me&&(--Ge().__mobxInstanceCount===0&&(Ge().__mobxGlobals=void 0),u=new ge)}function en(){return u}function Or(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function xt(e,t){e.observers.delete(t),e.observers.size===0&&Rt(e)}function Rt(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,u.pendingUnobservations.push(e))}function E(){u.inBatch++}function _(){if(--u.inBatch===0){Pt();for(var e=u.pendingUnobservations,t=0;t0&&Rt(e),!1)}function Ar(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.isTracing!==T.NONE&&Tt(t,e),t.onBecomeStale()),t.dependenciesState=v.STALE}))}function Sr(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.POSSIBLY_STALE?t.dependenciesState=v.STALE:t.dependenciesState===v.UP_TO_DATE&&(e.lowestObserverState=v.UP_TO_DATE)}))}function wr(e){e.lowestObserverState===v.UP_TO_DATE&&(e.lowestObserverState=v.POSSIBLY_STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.dependenciesState=v.POSSIBLY_STALE,t.isTracing!==T.NONE&&Tt(t,e),t.onBecomeStale())}))}function Tt(e,t){if(""+e.name+t.name,e.isTracing===T.BREAK){var r=[];Dt(Br(e),r,1),new Function(`debugger; -/* -Tracing '`+e.name+`' - -You are entering this break point because derivation '`+e.name+"' is being traced and '"+t.name+`' is now forcing it to update. -Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update -The stackframe you are looking for is at least ~6-8 stack-frames up. - -`+(e instanceof $?e.derivation.toString().replace(/[*]\//g,"/"):"")+` - -The dependencies for this derivation are: - -`+r.join(` -`)+` -*/ - `)()}}function Dt(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+new Array(r).join(" ")+e.name),e.dependencies&&e.dependencies.forEach(function(n){return Dt(n,t,r+1)})}var xe=function(){function e(t,r,n,i){t===void 0&&(t="Reaction@"+g()),i===void 0&&(i=!1),this.name=t,this.onInvalidate=r,this.errorHandler=n,this.requiresObservable=i,this.observing=[],this.newObserving=[],this.dependenciesState=v.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+g(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=T.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,u.pendingReactions.push(this),Pt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(E(),this._isScheduled=!1,Ue(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&A()}catch(t){this.reportExceptionInDerivation(t)}}_()}},e.prototype.track=function(t){if(!this.isDisposed){E(),this._isRunning=!0;var r=At(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ve(this),oe(r)&&this.reportExceptionInDerivation(r.cause),_()}},e.prototype.reportExceptionInDerivation=function(t){var r=this;if(this.errorHandler){this.errorHandler(t,this);return}if(u.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";u.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),u.globalReactionErrorHandlers.forEach(function(i){return i(t,r)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(E(),Ve(this),_()))},e.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[c]=this,t},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(t){t===void 0&&(t=!1),Ur(this,t)},e}(),it=100,Ke=function(e){return e()};function Pt(){u.inBatch>0||u.isRunningReactions||Ke(Er)}function Er(){u.isRunningReactions=!0;for(var e=u.pendingReactions,t=0;e.length>0;){++t===it&&(console.error("Reaction doesn't converge to a stable state after "+it+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0])),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n",t);if(arguments.length===2&&typeof r=="function")return z(t,r);if(arguments.length===1&&typeof t=="string")return at(t);if(i===!0)ee(t,r,z(t.name||r,n.value,this));else return at(r).apply(null,arguments)};ke.bound=Tr;function tn(e,t){var r=typeof e=="string"?e:e.name||"",n=typeof e=="function"?e:t;return Et(r,n,this,void 0)}function Le(e,t,r){ee(e,t,z(t,r.bind(e)))}function Dr(e,t){t===void 0&&(t=ze);var r=t&&t.name||e.name||"Autorun@"+g(),n=!t.scheduler&&!t.delay,i;if(n)i=new xe(r,function(){this.track(s)},t.onError,t.requiresObservable);else{var a=jt(t),o=!1;i=new xe(r,function(){o||(o=!0,a(function(){o=!1,i.isDisposed||i.track(s)}))},t.onError,t.requiresObservable)}function s(){e(i)}return i.schedule(),i.getDisposer()}var Pr=function(e){return e()};function jt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pr}function rn(e,t,r){r===void 0&&(r=ze);var n=r.name||"Reaction@"+g(),i=ke(n,r.onError?jr(r.onError,t):t),a=!r.scheduler&&!r.delay,o=jt(r),s=!0,f=!1,l,p=r.compareStructural?k.structural:r.equals||k.default,d=new xe(n,function(){s||a?y():f||(f=!0,o(y))},r.onError,r.requiresObservable);function y(){if(f=!1,!d.isDisposed){var b=!1;d.track(function(){var m=e(d);b=s||!p(l,m),l=m}),s&&r.fireImmediately&&i(l,d),!s&&b===!0&&i(l,d),s&&(s=!1)}}return d.schedule(),d.getDisposer()}function jr(e,t){return function(){try{return t.apply(this,arguments)}catch(r){e.call(this,r)}}}function Mr(e,t,r){return Bt("onBecomeObserved",e,t)}function Mt(e,t,r){return Bt("onBecomeUnobserved",e,t)}function Bt(e,t,r,n){var i=U(t),a=r,o=e+"Listeners";i[o]?i[o].add(a):i[o]=new Set([a]);var s=i[e];return typeof s!="function"?h(!1):function(){var f=i[o];f&&(f.delete(a),f.size===0&&delete i[o])}}function nn(e){var t=e.enforceActions,r=e.computedRequiresReaction,n=e.computedConfigurable,i=e.disableErrorBoundaries,a=e.reactionScheduler,o=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(mr(),t!==void 0){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:h("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}u.enforceActions=f,u.allowStateChanges=!(f===!0||f==="strict")}r!==void 0&&(u.computedRequiresReaction=!!r),o!==void 0&&(u.reactionRequiresObservable=!!o),s!==void 0&&(u.observableRequiresReaction=!!s,u.allowStateReads=!u.observableRequiresReaction),n!==void 0&&(u.computedConfigurable=!!n),i!==void 0&&(i===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),u.disableErrorBoundaries=!!i),a&&_r(a)}function ot(e,t,r,n){n=W(n);var i=Nt(n);return F(e),Ye(e,n.name,i.enhancer),t&&Lt(e,t,r,i),e}function Nt(e){return e.defaultDecorator||(e.deep===!1?Ot:We)}function Lt(e,t,r,n){var i,a,o,s,f,l;E();try{var o=Zt(t);try{for(var p=C(o),d=p.next();!d.done;d=p.next()){var l=d.value,y=Object.getOwnPropertyDescriptor(t,l),b=r&&l in r?r[l]:y.get?we:n,m=b(e,l,y,!0);m&&Object.defineProperty(e,l,m)}}catch(K){i={error:K}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}finally{_()}}function Br(e,t){return It(U(e,t))}function It(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=Xt(e.observing).map(It)),t}function Ut(e,t){if(e==null)return!1;if(t!==void 0){if(B(e)===!1||!e[c].values.has(t))return!1;var r=U(e,t);return Z(r)}return Z(e)}function an(e){return arguments.length>1?h(!1):Ut(e)}function on(e,t){return typeof t!="string"?h(!1):Ut(e,t)}function Nr(e,t){return e==null?!1:B(e)||!!e[c]||Fe(e)||Re(e)||Z(e)}function Ce(e){return arguments.length!==1&&h(!1),Nr(e)}function ue(e){return B(e)?e[c].getKeys():w(e)||S(e)?Array.from(e.keys()):G(e)?e.map(function(t,r){return r}):h(!1)}function sn(e){return B(e)?ue(e).map(function(t){return e[t]}):w(e)?ue(e).map(function(t){return e.get(t)}):S(e)?Array.from(e.values()):G(e)?e.slice():h(!1)}function un(e){return B(e)?ue(e).map(function(t){return[t,e[t]]}):w(e)?ue(e).map(function(t){return[t,e.get(t)]}):S(e)?Array.from(e.entries()):G(e)?e.map(function(t,r){return[r,t]}):h(!1)}function Vt(e,t,r){if(arguments.length===2&&!S(e)){E();var n=t;try{for(var i in n)Vt(e,i,n[i])}finally{_()}return}if(B(e)){var a=e[c],o=a.values.get(t);o?a.write(t,r):a.addObservableProp(t,r,a.defaultEnhancer)}else if(w(e))e.set(t,r);else if(S(e))e.add(t);else if(G(e))typeof t!="number"&&(t=parseInt(t,10)),q(t>=0,"Not a valid index: '"+t+"'"),E(),t>=e.length&&(e.length=t+1),e[t]=r,_();else return h(!1)}function fn(e,t,r,n){return Lr(e,t,r)}function Lr(e,t,r){return $e(e).observe(t,r)}var Ir={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function J(e,t,r,n){return n.detectCycles&&e.set(t,r),r}function N(e,t,r){if(!t.recurseEverything&&!Ce(e)||typeof e!="object")return e;if(e===null)return null;if(e instanceof Date)return e;if(br(e))return N(e.get(),t,r);Ce(e)&&ue(e);var n=t.detectCycles===!0;if(n&&e!==null&&r.has(e))return r.get(e);if(G(e)||Array.isArray(e)){var i=J(r,e,[],t),a=e.map(function(b){return N(b,t,r)});i.length=a.length;for(var o=0,s=a.length;o0}function le(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),pt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function P(e,t){var r=ne();try{for(var n=Je(e.interceptors||[]),i=0,a=n.length;i0}function he(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),pt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function R(e,t){var r=ne(),n=e.changeListeners;if(n){n=n.slice();for(var i=0,a=n.length;i0?t.map(this.dehancer):t},e.prototype.intercept=function(t){return le(this,t)},e.prototype.observe=function(t,r){return r===void 0&&(r=!1),r&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),he(this,t)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(t){if(typeof t!="number"||t<0)throw new Error("[mobx.array] Out of range: "+t);var r=this.values.length;if(t!==r)if(t>r){for(var n=new Array(t-r),i=0;ia?t=a:t<0&&(t=Math.max(0,a+t)),arguments.length===1?r=a-t:r==null?r=0:r=Math.max(0,Math.min(r,a-t)),n===void 0&&(n=Oe),D(this)){var o=P(this,{object:this.proxy,type:"splice",index:t,removedCount:r,added:n});if(!o)return Oe;r=o.removedCount,n=o.added}n=n.length===0?n:n.map(function(f){return i.enhancer(f,void 0)});var s=this.spliceItemsIntoValues(t,r,n);return(r!==0||n.length!==0)&&this.notifyArraySplice(t,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(t,r,n){var i;if(n.length-1?(this.splice(r,1),!0):!1},get:function(e){var t=this[c];if(t){if(e=0&&r++;break}e=vt(e),t=vt(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var f=e.constructor,l=t.constructor;if(f!==l&&!(typeof f=="function"&&f instanceof f&&typeof l=="function"&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var p=n.length;p--;)if(n[p]===e)return i[p]===t;if(n.push(e),i.push(t),s){if(p=e.length,p!==t.length)return!1;for(;p--;)if(!qe(e[p],t[p],r-1,n,i))return!1}else{var d=Object.keys(e),y=void 0;if(p=d.length,Object.keys(t).length!==p)return!1;for(;p--;)if(y=d[p],!(Zr(t,y)&&qe(e[y],t[y],r-1,n,i)))return!1}return n.pop(),i.pop(),!0}function vt(e){return G(e)?e.slice():te(e)||w(e)||fe(e)||S(e)?Array.from(e.entries()):e}function Zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Te(e){return e[Symbol.iterator]=Qr,e}function Qr(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:xr,extras:{getDebugName:$r},$mobx:c});export{c as $,Kt as O,xe as R,hr as a,ke as b,nn as c,bt as d,fn as e,un as f,en as g,B as h,Ce as i,G as j,w as k,ue as l,an as m,M as n,O as o,ot as p,tn as q,rn as r,Vt as s,cn as t,on as u,sn as v,$e as w}; diff --git a/js/mobx@5.15.7-DLDjekon.js.gz b/js/mobx@5.15.7-DLDjekon.js.gz deleted file mode 100644 index 27bccac5..00000000 Binary files a/js/mobx@5.15.7-DLDjekon.js.gz and /dev/null differ diff --git a/js/mobx@5.15.7-iy9XXgsZ.js b/js/mobx@5.15.7-iy9XXgsZ.js new file mode 100644 index 00000000..7a263502 --- /dev/null +++ b/js/mobx@5.15.7-iy9XXgsZ.js @@ -0,0 +1,16 @@ +var Jt="An invariant failed, however the error is obfuscated because this is a production build.",Oe=[];Object.freeze(Oe);var ze={};Object.freeze(ze);function g(){return++u.mobxGuid}function h(e){throw q(!1,e),"X"}function q(e,t){if(!e)throw new Error("[mobx] "+(t||Jt))}function vt(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var pe=function(){};function Xt(e){var t=[];return e.forEach(function(r){t.indexOf(r)===-1&&t.push(r)}),t}function He(e){return e!==null&&typeof e=="object"}function Q(e){if(e===null||typeof e!="object")return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Wt(e){if(te(e)||w(e))return e;if(Array.isArray(e))return new Map(e);if(Q(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return h("Cannot convert to map from '"+e+"'")}function ee(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function kt(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Yt(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!r||r.configurable!==!1&&r.writable!==!1}function V(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return He(n)&&n[r]===!0}}function te(e){return e instanceof Map}function fe(e){return e instanceof Set}function pt(e){var t=new Set;for(var r in e)t.add(r);return Object.getOwnPropertySymbols(e).forEach(function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)}),Array.from(t)}function L(e){return e&&e.toString?e.toString():new String(e).toString()}function dt(e){return e===null?null:typeof e=="object"?""+e:e}var $t=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,c=Symbol("mobx administration"),re=(function(){function e(t){t===void 0&&(t="Atom@"+g()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=v.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},e.prototype.reportObserved=function(){return Rt(this)},e.prototype.reportChanged=function(){E(),Or(this),_()},e.prototype.toString=function(){return this.name},e})(),Fe=V("Atom",re);function yt(e,t,r){t===void 0&&(t=pe),r===void 0&&(r=pe);var n=new re(e);return t!==pe&&Mr(n,t),r!==pe&&jt(n,r),n}function Zt(e,t){return zt(e,t)}function Qt(e,t){return Object.is(e,t)}var k={structural:Zt,default:Qt};var Ie=function(e,t){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ie(e,t)};function er(e,t){Ie(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ae=function(){return Ae=Object.assign||function(t){for(var r,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Je(){for(var e=[],t=0;t2&&ie("box");var r=X(t);return new H(e,de(r),r.name,!0,r.equals)},array:function(e,t){arguments.length>2&&ie("array");var r=X(t);return Hr(e,de(r),r.name)},map:function(e,t){arguments.length>2&&ie("map");var r=X(t);return new Gt(e,de(r),r.name)},set:function(e,t){arguments.length>2&&ie("set");var r=X(t);return new Kt(e,de(r),r.name)},object:function(e,t,r){typeof arguments[1]=="string"&&ie("object");var n=X(r);if(n.proxy===!1)return at({},e,t,n);var i=Bt(n),a=at({},void 0,void 0,n),o=Kr(a);return Nt(o,e,t,i),o},ref:mt,shallow:sr,deep:Xe,struct:ur},O=fr;Object.keys(rt).forEach(function(e){return O[e]=rt[e]});function ie(e){h("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}var we=bt(!1,function(e,t,r,n,i){var a=r.get,o=r.set,s=i[0]||{};Ye(e).addComputedProp(e,t,Ae({get:a,set:o,context:e},s))}),cr=we({equals:k.structural}),lr=function(t,r,n){if(typeof r=="string"||t!==null&&typeof t=="object"&&arguments.length===1)return we.apply(null,arguments);var i=typeof r=="object"?r:{};return i.get=t,i.set=typeof r=="function"?r:i.set,i.name=i.name||t.name||"",new $(i)};lr.struct=cr;var v;(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"})(v||(v={}));var T;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(T||(T={}));var Ee=(function(){function e(t){this.cause=t}return e})();function oe(e){return e instanceof Ee}function Ue(e){switch(e.dependenciesState){case v.UP_TO_DATE:return!1;case v.NOT_TRACKING:case v.STALE:return!0;case v.POSSIBLY_STALE:{for(var t=We(!0),r=ne(),n=e.observing,i=n.length,a=0;a0;u.computationDepth>0&&t&&h(!1),!u.allowStateChanges&&(t||u.enforceActions==="strict")&&h(!1)}function Ot(e,t,r){var n=We(!0);St(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++u.runId;var i=u.trackingDerivation;u.trackingDerivation=e;var a;if(u.disableErrorBoundaries===!0)a=t.call(r);else try{a=t.call(r)}catch(o){a=new Ee(o)}return u.trackingDerivation=i,hr(e),se(n),a}function hr(e){for(var t=e.observing,r=e.observing=e.newObserving,n=v.UP_TO_DATE,i=0,a=e.unboundDepsCount,o=0;on&&(n=s.dependenciesState)}for(r.length=i,e.newObserving=null,a=t.length;a--;){var s=t[a];s.diffValue===0&&_t(s,e),s.diffValue=0}for(;i--;){var s=r[i];s.diffValue===1&&(s.diffValue=0,mr(s,e))}n!==v.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}function Ve(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)_t(t[r],e);e.dependenciesState=v.NOT_TRACKING}function At(e){var t=ne();try{return e()}finally{I(t)}}function ne(){var e=u.trackingDerivation;return u.trackingDerivation=null,e}function I(e){u.trackingDerivation=e}function We(e){var t=u.allowStateReads;return u.allowStateReads=e,t}function se(e){u.allowStateReads=e}function St(e){if(e.dependenciesState!==v.UP_TO_DATE){e.dependenciesState=v.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=v.UP_TO_DATE}}var _e=0,vr=1,nt=Object.getOwnPropertyDescriptor(function(){},"name");nt&&nt.configurable;function z(e,t,r){var n=function(){return wt(e,t,r||this,arguments)};return n.isMobxAction=!0,n}function wt(e,t,r,n){var i=pr();try{return t.apply(r,n)}catch(a){throw i.error=a,a}finally{dr(i)}}function pr(e,t,r){var n=A(),i=0,a=ne();E();var o=je(!0),s=We(!0),f={prevDerivation:a,prevAllowStateChanges:o,prevAllowStateReads:s,notifySpy:n,startTime:i,actionId:vr++,parentActionId:_e};return _e=f.actionId,f}function dr(e){_e!==e.actionId&&h("invalid action stack. did you forget to finish an action?"),_e=e.parentActionId,e.error!==void 0&&(u.suppressReactionErrors=!0),Me(e.prevAllowStateChanges),se(e.prevAllowStateReads),_(),I(e.prevDerivation),e.notifySpy,u.suppressReactionErrors=!1}function je(e){var t=u.allowStateChanges;return u.allowStateChanges=e,t}function Me(e){u.allowStateChanges=e}var H=(function(e){er(t,e);function t(r,n,i,a,o){i===void 0&&(i="ObservableValue@"+g()),o===void 0&&(o=k.default);var s=e.call(this,i)||this;return s.enhancer=n,s.name=i,s.equals=o,s.hasUnreportedChange=!1,s.value=n(r,void 0,i),s}return t.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.prototype.set=function(r){this.value,r=this.prepareNewValue(r),r!==u.UNCHANGED&&this.setNewValue(r)},t.prototype.prepareNewValue=function(r){if(Y(this),D(this)){var n=P(this,{object:this,type:"update",newValue:r});if(!n)return u.UNCHANGED;r=n.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?u.UNCHANGED:r},t.prototype.setNewValue=function(r){var n=this.value;this.value=r,this.reportChanged(),x(this)&&R(this,{type:"update",object:this,newValue:r,oldValue:n})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(r){return le(this,r)},t.prototype.observe=function(r,n){return n&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),he(this,r)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return dt(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t})(re),yr=V("ObservableValue",H),$=(function(){function e(t){this.dependenciesState=v.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=v.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+g(),this.value=new Ee(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=T.NONE,q(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+g(),t.set&&(this.setter=z(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?k.structural:k.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return e.prototype.onBecomeStale=function(){Sr(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},e.prototype.get=function(){this.isComputing&&h("Cycle detected in computation "+this.name+": "+this.derivation),u.inBatch===0&&this.observers.size===0&&!this.keepAlive?Ue(this)&&(this.warnAboutUntrackedRead(),E(),this.value=this.computeValue(!1),_()):(Rt(this),Ue(this)&&this.trackAndCompute()&&Ar(this));var t=this.value;if(oe(t))throw t.cause;return t},e.prototype.peek=function(){var t=this.computeValue(!1);if(oe(t))throw t.cause;return t},e.prototype.set=function(t){if(this.setter){q(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else q(!1,!1)},e.prototype.trackAndCompute=function(){var t=this.value,r=this.dependenciesState===v.NOT_TRACKING,n=this.computeValue(!0),i=r||oe(t)||oe(n)||!this.equals(t,n);return i&&(this.value=n),i},e.prototype.computeValue=function(t){this.isComputing=!0,u.computationDepth++;var r;if(t)r=Ot(this,this.derivation,this.scope);else if(u.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(n){r=new Ee(n)}return u.computationDepth--,this.isComputing=!1,r},e.prototype.suspend=function(){this.keepAlive||(Ve(this),this.value=void 0)},e.prototype.observe=function(t,r){var n=this,i=!0,a=void 0;return Dr(function(){var o=n.get();if(!i||r){var s=ne();t({type:"update",object:n,newValue:o,oldValue:a}),I(s)}i=!1,a=o})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return dt(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e})(),Z=V("ComputedValue",$),ge=(function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e})(),br={};function Ge(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:br}var me=!0,Et=!1,u=(function(){var e=Ge();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(me=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new ge().version&&(me=!1),me?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ge):(setTimeout(function(){Et||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ge)})();function gr(){(u.pendingReactions.length||u.inBatch||u.isRunningReactions)&&h("isolateGlobalState should be called before MobX is running any reactions"),Et=!0,me&&(--Ge().__mobxInstanceCount===0&&(Ge().__mobxGlobals=void 0),u=new ge)}function en(){return u}function mr(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function _t(e,t){e.observers.delete(t),e.observers.size===0&&xt(e)}function xt(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,u.pendingUnobservations.push(e))}function E(){u.inBatch++}function _(){if(--u.inBatch===0){Dt();for(var e=u.pendingUnobservations,t=0;t0&&xt(e),!1)}function Or(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.isTracing!==T.NONE&&Ct(t,e),t.onBecomeStale()),t.dependenciesState=v.STALE}))}function Ar(e){e.lowestObserverState!==v.STALE&&(e.lowestObserverState=v.STALE,e.observers.forEach(function(t){t.dependenciesState===v.POSSIBLY_STALE?t.dependenciesState=v.STALE:t.dependenciesState===v.UP_TO_DATE&&(e.lowestObserverState=v.UP_TO_DATE)}))}function Sr(e){e.lowestObserverState===v.UP_TO_DATE&&(e.lowestObserverState=v.POSSIBLY_STALE,e.observers.forEach(function(t){t.dependenciesState===v.UP_TO_DATE&&(t.dependenciesState=v.POSSIBLY_STALE,t.isTracing!==T.NONE&&Ct(t,e),t.onBecomeStale())}))}function Ct(e,t){if(e.isTracing===T.BREAK){var r=[];Tt(Br(e),r,1),new Function(`debugger; +/* +Tracing '`+e.name+`' + +You are entering this break point because derivation '`+e.name+"' is being traced and '"+t.name+`' is now forcing it to update. +Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update +The stackframe you are looking for is at least ~6-8 stack-frames up. + +`+(e instanceof $?e.derivation.toString().replace(/[*]\//g,"/"):"")+` + +The dependencies for this derivation are: + +`+r.join(` +`)+` +*/ + `)()}}function Tt(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+new Array(r).join(" ")+e.name),e.dependencies&&e.dependencies.forEach(function(n){return Tt(n,t,r+1)})}var xe=(function(){function e(t,r,n,i){t===void 0&&(t="Reaction@"+g()),i===void 0&&(i=!1),this.name=t,this.onInvalidate=r,this.errorHandler=n,this.requiresObservable=i,this.observing=[],this.newObserving=[],this.dependenciesState=v.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+g(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=T.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,u.pendingReactions.push(this),Dt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(E(),this._isScheduled=!1,Ue(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&A()}catch(t){this.reportExceptionInDerivation(t)}}_()}},e.prototype.track=function(t){if(!this.isDisposed){E(),this._isRunning=!0;var r=Ot(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ve(this),oe(r)&&this.reportExceptionInDerivation(r.cause),_()}},e.prototype.reportExceptionInDerivation=function(t){var r=this;if(this.errorHandler){this.errorHandler(t,this);return}if(u.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";u.suppressReactionErrors,u.globalReactionErrorHandlers.forEach(function(i){return i(t,r)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(E(),Ve(this),_()))},e.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[c]=this,t},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(t){t===void 0&&(t=!1),Ur(this,t)},e})(),wr=100,Ke=function(e){return e()};function Dt(){u.inBatch>0||u.isRunningReactions||Ke(Er)}function Er(){u.isRunningReactions=!0;for(var e=u.pendingReactions,t=0;e.length>0;){++t===wr&&e.splice(0);for(var r=e.splice(0),n=0,i=r.length;n",t);if(arguments.length===2&&typeof r=="function")return z(t,r);if(arguments.length===1&&typeof t=="string")return it(t);if(i===!0)ee(t,r,z(t.name||r,n.value,this));else return it(r).apply(null,arguments)};ke.bound=Tr;function tn(e,t){var r=typeof e=="string"?e:e.name||"",n=typeof e=="function"?e:t;return wt(r,n,this,void 0)}function Le(e,t,r){ee(e,t,z(t,r.bind(e)))}function Dr(e,t){t===void 0&&(t=ze);var r=t&&t.name||e.name||"Autorun@"+g(),n=!t.scheduler&&!t.delay,i;if(n)i=new xe(r,function(){this.track(s)},t.onError,t.requiresObservable);else{var a=Pt(t),o=!1;i=new xe(r,function(){o||(o=!0,a(function(){o=!1,i.isDisposed||i.track(s)}))},t.onError,t.requiresObservable)}function s(){e(i)}return i.schedule(),i.getDisposer()}var Pr=function(e){return e()};function Pt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pr}function rn(e,t,r){r===void 0&&(r=ze);var n=r.name||"Reaction@"+g(),i=ke(n,r.onError?jr(r.onError,t):t),a=!r.scheduler&&!r.delay,o=Pt(r),s=!0,f=!1,l,p=r.compareStructural?k.structural:r.equals||k.default,d=new xe(n,function(){s||a?y():f||(f=!0,o(y))},r.onError,r.requiresObservable);function y(){if(f=!1,!d.isDisposed){var b=!1;d.track(function(){var m=e(d);b=s||!p(l,m),l=m}),s&&r.fireImmediately&&i(l,d),!s&&b===!0&&i(l,d),s&&(s=!1)}}return d.schedule(),d.getDisposer()}function jr(e,t){return function(){try{return t.apply(this,arguments)}catch(r){e.call(this,r)}}}function Mr(e,t,r){return Mt("onBecomeObserved",e,t)}function jt(e,t,r){return Mt("onBecomeUnobserved",e,t)}function Mt(e,t,r,n){var i=U(t),a=r,o=e+"Listeners";i[o]?i[o].add(a):i[o]=new Set([a]);var s=i[e];return typeof s!="function"?h(!1):function(){var f=i[o];f&&(f.delete(a),f.size===0&&delete i[o])}}function nn(e){var t=e.enforceActions,r=e.computedRequiresReaction,n=e.computedConfigurable,i=e.disableErrorBoundaries,a=e.reactionScheduler,o=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(gr(),t!==void 0){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:h("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}u.enforceActions=f,u.allowStateChanges=!(f===!0||f==="strict")}r!==void 0&&(u.computedRequiresReaction=!!r),o!==void 0&&(u.reactionRequiresObservable=!!o),s!==void 0&&(u.observableRequiresReaction=!!s,u.allowStateReads=!u.observableRequiresReaction),n!==void 0&&(u.computedConfigurable=!!n),i!==void 0&&(u.disableErrorBoundaries=!!i),a&&_r(a)}function at(e,t,r,n){n=X(n);var i=Bt(n);return F(e),Ye(e,n.name,i.enhancer),t&&Nt(e,t,r,i),e}function Bt(e){return e.defaultDecorator||(e.deep===!1?mt:Xe)}function Nt(e,t,r,n){var i,a,o,s,f,l;E();try{var o=$t(t);try{for(var p=C(o),d=p.next();!d.done;d=p.next()){var l=d.value,y=Object.getOwnPropertyDescriptor(t,l),b=r&&l in r?r[l]:y.get?we:n,m=b(e,l,y,!0);m&&Object.defineProperty(e,l,m)}}catch(K){i={error:K}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}finally{_()}}function Br(e,t){return Lt(U(e,t))}function Lt(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=Xt(e.observing).map(Lt)),t}function It(e,t){if(e==null)return!1;if(t!==void 0){if(B(e)===!1||!e[c].values.has(t))return!1;var r=U(e,t);return Z(r)}return Z(e)}function an(e){return arguments.length>1?h(!1):It(e)}function on(e,t){return typeof t!="string"?h(!1):It(e,t)}function Nr(e,t){return e==null?!1:B(e)||!!e[c]||Fe(e)||Re(e)||Z(e)}function Ce(e){return arguments.length!==1&&h(!1),Nr(e)}function ue(e){return B(e)?e[c].getKeys():w(e)||S(e)?Array.from(e.keys()):G(e)?e.map(function(t,r){return r}):h(!1)}function sn(e){return B(e)?ue(e).map(function(t){return e[t]}):w(e)?ue(e).map(function(t){return e.get(t)}):S(e)?Array.from(e.values()):G(e)?e.slice():h(!1)}function un(e){return B(e)?ue(e).map(function(t){return[t,e[t]]}):w(e)?ue(e).map(function(t){return[t,e.get(t)]}):S(e)?Array.from(e.entries()):G(e)?e.map(function(t,r){return[r,t]}):h(!1)}function Ut(e,t,r){if(arguments.length===2&&!S(e)){E();var n=t;try{for(var i in n)Ut(e,i,n[i])}finally{_()}return}if(B(e)){var a=e[c],o=a.values.get(t);o?a.write(t,r):a.addObservableProp(t,r,a.defaultEnhancer)}else if(w(e))e.set(t,r);else if(S(e))e.add(t);else if(G(e))typeof t!="number"&&(t=parseInt(t,10)),q(t>=0,"Not a valid index: '"+t+"'"),E(),t>=e.length&&(e.length=t+1),e[t]=r,_();else return h(!1)}function fn(e,t,r,n){return Lr(e,t,r)}function Lr(e,t,r){return $e(e).observe(t,r)}var Ir={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function J(e,t,r,n){return n.detectCycles&&e.set(t,r),r}function N(e,t,r){if(!t.recurseEverything&&!Ce(e)||typeof e!="object")return e;if(e===null)return null;if(e instanceof Date)return e;if(yr(e))return N(e.get(),t,r);Ce(e)&&ue(e);var n=t.detectCycles===!0;if(n&&e!==null&&r.has(e))return r.get(e);if(G(e)||Array.isArray(e)){var i=J(r,e,[],t),a=e.map(function(b){return N(b,t,r)});i.length=a.length;for(var o=0,s=a.length;o0}function le(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),vt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function P(e,t){var r=ne();try{for(var n=Je(e.interceptors||[]),i=0,a=n.length;i0}function he(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),vt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function R(e,t){var r=ne(),n=e.changeListeners;if(n){n=n.slice();for(var i=0,a=n.length;i0?t.map(this.dehancer):t},e.prototype.intercept=function(t){return le(this,t)},e.prototype.observe=function(t,r){return r===void 0&&(r=!1),r&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),he(this,t)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(t){if(typeof t!="number"||t<0)throw new Error("[mobx.array] Out of range: "+t);var r=this.values.length;if(t!==r)if(t>r){for(var n=new Array(t-r),i=0;ia?t=a:t<0&&(t=Math.max(0,a+t)),arguments.length===1?r=a-t:r==null?r=0:r=Math.max(0,Math.min(r,a-t)),n===void 0&&(n=Oe),D(this)){var o=P(this,{object:this.proxy,type:"splice",index:t,removedCount:r,added:n});if(!o)return Oe;r=o.removedCount,n=o.added}n=n.length===0?n:n.map(function(f){return i.enhancer(f,void 0)});var s=this.spliceItemsIntoValues(t,r,n);return(r!==0||n.length!==0)&&this.notifyArraySplice(t,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(t,r,n){var i;if(n.length-1?(this.splice(r,1),!0):!1},get:function(e){var t=this[c];if(t&&e=0&&r++;break}e=ht(e),t=ht(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var f=e.constructor,l=t.constructor;if(f!==l&&!(typeof f=="function"&&f instanceof f&&typeof l=="function"&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var p=n.length;p--;)if(n[p]===e)return i[p]===t;if(n.push(e),i.push(t),s){if(p=e.length,p!==t.length)return!1;for(;p--;)if(!qe(e[p],t[p],r-1,n,i))return!1}else{var d=Object.keys(e),y=void 0;if(p=d.length,Object.keys(t).length!==p)return!1;for(;p--;)if(y=d[p],!(Zr(t,y)&&qe(e[y],t[y],r-1,n,i)))return!1}return n.pop(),i.pop(),!0}function ht(e){return G(e)?e.slice():te(e)||w(e)||fe(e)||S(e)?Array.from(e.entries()):e}function Zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Te(e){return e[Symbol.iterator]=Qr,e}function Qr(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:xr,extras:{getDebugName:$r},$mobx:c});export{c as $,Gt as O,xe as R,lr as a,ke as b,nn as c,yt as d,fn as e,un as f,en as g,B as h,Ce as i,G as j,w as k,ue as l,an as m,M as n,O as o,at as p,tn as q,rn as r,Ut as s,cn as t,on as u,sn as v,$e as w}; diff --git a/js/mobx@5.15.7-iy9XXgsZ.js.gz b/js/mobx@5.15.7-iy9XXgsZ.js.gz new file mode 100644 index 00000000..a89a2ec5 Binary files /dev/null and b/js/mobx@5.15.7-iy9XXgsZ.js.gz differ diff --git a/js/mockjs@1.1.0-Dou1YATw.js b/js/mockjs@1.1.0-Dou1YATw.js new file mode 100644 index 00000000..7a3aec46 --- /dev/null +++ b/js/mockjs@1.1.0-Dou1YATw.js @@ -0,0 +1,5 @@ +import{g as getDefaultExportFromCjs}from"./classnames@2.5.1-CU_BXU7G.js";var mock$1={exports:{}},mock=mock$1.exports,hasRequiredMock;function requireMock(){return hasRequiredMock||(hasRequiredMock=1,(function(module,exports$1){(function(x,n){module.exports=n()})(mock,function(){return(function(l){var x={};function n(u){if(x[u])return x[u].exports;var a=x[u]={exports:{},id:u,loaded:!1};return l[u].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=l,n.c=x,n.p="",n(0)})([(function(l,x,n){var u=n(1),a=n(3),s=n(5),c=n(20),p=n(23),f=n(25),o;typeof window<"u"&&(o=n(27));var v={Handler:u,Random:s,Util:a,XHR:o,RE:c,toJSONSchema:p,valid:f,heredoc:a.heredoc,setup:function(y){return o.setup(y)},_mocked:{}};v.version="1.0.1-beta3",o&&(o.Mock=v),v.mock=function(y,m,C){return arguments.length===1?u.gen(y):(arguments.length===2&&(C=m,m=void 0),o&&(window.XMLHttpRequest=o),v._mocked[y+(m||"")]={rurl:y,rtype:m,template:C},v)},l.exports=v}),(function(module,exports$1,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(l,x,n){x=x==null?"":x+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||l,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||l};var u=Parser.parse(x),a=Util.type(l),s;return Handler[a]?(s=Handler[a]({type:a,template:l,name:x,parsedName:x&&x.replace(Constant.RE_KEY,"$1"),rule:u,context:n}),n.root||(n.root=s),s):l},Handler.extend({array:function(l){var x=[],n,u;if(l.template.length===0)return x;if(l.rule.parameters)if(l.rule.min===1&&l.rule.max===void 0)l.context.path.push(l.name),l.context.templatePath.push(l.name),x=Random.pick(Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:x,templateCurrentContext:l.template,root:l.context.root||x,templateRoot:l.context.templateRoot||l.template})),l.context.path.pop(),l.context.templatePath.pop();else if(l.rule.parameters[2])l.template.__order_index=l.template.__order_index||0,l.context.path.push(l.name),l.context.templatePath.push(l.name),x=Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:x,templateCurrentContext:l.template,root:l.context.root||x,templateRoot:l.context.templateRoot||l.template})[l.template.__order_index%l.template.length],l.template.__order_index+=+l.rule.parameters[2],l.context.path.pop(),l.context.templatePath.pop();else for(n=0;n1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(a=x.context.path.slice(0),a.pop(),a=this.normalizePath(a.concat(u)));try{l=u[u.length-1];for(var s=x.context.root,c=x.context.templateRoot,p=1;p1/(n+u)*n?!a:a):Math.random()>=.5},bool:function(n,u,a){return this.boolean(n,u,a)},natural:function(n,u){return n=typeof n<"u"?parseInt(n,10):0,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},integer:function(n,u){return n=typeof n<"u"?parseInt(n,10):-9007199254740992,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},int:function(n,u){return this.integer(n,u)},float:function(n,u,a,s){a=a===void 0?0:a,a=Math.max(Math.min(a,17),0),s=s===void 0?17:s,s=Math.max(Math.min(s,17),0);for(var c=this.integer(n,u)+".",p=0,f=this.natural(a,s);p1&&o--,6*o<1?y=p+(f-p)*6*o:2*o<1?y=f:3*o<2?y=p+(f-p)*(2/3-o)*6:y=p,v[m]=y*255;return v},hsl2hsv:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return c*=2,s*=c<=1?c:2-c,f=(c+s)/2,p=2*s/(c+s),[a,p*100,f*100]},hsv2rgb:function(u){var a=u[0]/60,s=u[1]/100,c=u[2]/100,p=Math.floor(a)%6,f=a-Math.floor(a),o=255*c*(1-s),v=255*c*(1-s*f),y=255*c*(1-s*(1-f));switch(c=255*c,p){case 0:return[c,y,o];case 1:return[v,c,o];case 2:return[o,c,y];case 3:return[o,v,c];case 4:return[y,o,c];case 5:return[c,o,v]}},hsv2hsl:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return f=(2-s)*c,p=s*c,p/=f<=1?f:2-f,f/=2,[a,p*100,f*100]},rgb2hex:function(n,u,a){return"#"+((256+n<<8|u)<<8|a).toString(16).slice(1)},hex2rgb:function(n){return n="0x"+n.slice(1).replace(n.length>4?n:/./g,"$&$&")|0,[n>>16,n>>8&255,n&255]}}}),(function(l,x){l.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}}),(function(l,x,n){var u=n(6),a=n(14);function s(c,p,f,o){return f===void 0?u.natural(c,p):o===void 0?f:u.natural(parseInt(f,10),parseInt(o,10))}l.exports={paragraph:function(c,p){for(var f=s(3,7,c,p),o=[],v=0;v1&&(s=[].slice.call(arguments,0));var c=a.options,p=c.context.templatePath.join("."),f=a.cache[p]=a.cache[p]||{index:0,array:s};return f.array[f.index++%f.array.length]}}}),(function(l,x){l.exports={first:function(){var n=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(n)},last:function(){var n=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(n)},name:function(n){return this.first()+" "+(n?this.first()+" ":"")+this.last()},cfirst:function(){var n="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(n)},clast:function(){var n="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(n)},cname:function(){return this.cfirst()+this.clast()}}}),(function(l,x){l.exports={url:function(n,u){return(n||this.protocol())+"://"+(u||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(n){return this.word()+"."+(n||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(n){return this.character("lower")+"."+this.word()+"@"+(n||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}}),(function(l,x,n){var u=n(18),a=["东北","华北","华东","华中","华南","西南","西北"];l.exports={region:function(){return this.pick(a)},province:function(){return this.pick(u).name},city:function(s){var c=this.pick(u),p=this.pick(c.children);return s?[c.name,p.name].join(" "):p.name},county:function(s){var c=this.pick(u),p=this.pick(c.children),f=this.pick(p.children)||{name:"-"};return s?[c.name,p.name,f.name].join(" "):f.name},zip:function(s){for(var c="",p=0;p<(s||6);p++)c+=this.natural(0,9);return c}}}),(function(l,x){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function u(s){for(var c={},p=0,f;pU;U++)K=E.charAt(U),K===` +`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):K==="\r"||K==="\u2028"||K==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return X!==e&&(X>e&&(X=0,s0={line:1,column:1,seenCR:!1}),t(s0,X,e),X=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();tr?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,z="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},P0="^",D0='"^"',N2=function(){return new n("start")},$2="$",U2='"$"',j2=function(){return new n("end")},B2=function(e,t){return new p(e,t)},z2="Quantifier",G2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',X2=",",K2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,$0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},U0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},j0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},B0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",P1='"."',D1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",z0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},G0="\\B",N1='"\\\\B"',$1=function(){return new n("non-word-boundary")},X0="\\d",U1='"\\\\d"',j1=function(){return new n("digit")},K0="\\D",B1='"\\\\D"',z1=function(){return new n("non-digit")},W0="\\f",G1='"\\\\f"',X1=function(){return new n("form-feed")},J0="\\n",K1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,X=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new D(a0,Hm)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c}),(function(l,x,n){l.exports=n(28)}),(function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(h,d,b,A){var P=document.createEvent("CustomEvent");return P.initCustomEvent(h,d,b,A),P}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var P=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=(function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),$=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-$))+$}})(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(a=x.context.path.slice(0),a.pop(),a=this.normalizePath(a.concat(u)));try{l=u[u.length-1];for(var s=x.context.root,c=x.context.templateRoot,p=1;p1/(n+u)*n?!a:a):Math.random()>=.5},bool:function(n,u,a){return this.boolean(n,u,a)},natural:function(n,u){return n=typeof n<"u"?parseInt(n,10):0,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},integer:function(n,u){return n=typeof n<"u"?parseInt(n,10):-9007199254740992,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},int:function(n,u){return this.integer(n,u)},float:function(n,u,a,s){a=a===void 0?0:a,a=Math.max(Math.min(a,17),0),s=s===void 0?17:s,s=Math.max(Math.min(s,17),0);for(var c=this.integer(n,u)+".",p=0,f=this.natural(a,s);p1&&o--,6*o<1?y=p+(f-p)*6*o:2*o<1?y=f:3*o<2?y=p+(f-p)*(2/3-o)*6:y=p,v[m]=y*255;return v},hsl2hsv:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return c*=2,s*=c<=1?c:2-c,f=(c+s)/2,p=2*s/(c+s),[a,p*100,f*100]},hsv2rgb:function(u){var a=u[0]/60,s=u[1]/100,c=u[2]/100,p=Math.floor(a)%6,f=a-Math.floor(a),o=255*c*(1-s),v=255*c*(1-s*f),y=255*c*(1-s*(1-f));switch(c=255*c,p){case 0:return[c,y,o];case 1:return[v,c,o];case 2:return[o,c,y];case 3:return[o,v,c];case 4:return[y,o,c];case 5:return[c,o,v]}},hsv2hsl:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return f=(2-s)*c,p=s*c,p/=f<=1?f:2-f,f/=2,[a,p*100,f*100]},rgb2hex:function(n,u,a){return"#"+((256+n<<8|u)<<8|a).toString(16).slice(1)},hex2rgb:function(n){return n="0x"+n.slice(1).replace(n.length>4?n:/./g,"$&$&")|0,[n>>16,n>>8&255,n&255]}}},function(l,x){l.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(l,x,n){var u=n(6),a=n(14);function s(c,p,f,o){return f===void 0?u.natural(c,p):o===void 0?f:u.natural(parseInt(f,10),parseInt(o,10))}l.exports={paragraph:function(c,p){for(var f=s(3,7,c,p),o=[],v=0;v1&&(s=[].slice.call(arguments,0));var c=a.options,p=c.context.templatePath.join("."),f=a.cache[p]=a.cache[p]||{index:0,array:s};return f.array[f.index++%f.array.length]}}},function(l,x){l.exports={first:function(){var n=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(n)},last:function(){var n=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(n)},name:function(n){return this.first()+" "+(n?this.first()+" ":"")+this.last()},cfirst:function(){var n="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(n)},clast:function(){var n="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(n)},cname:function(){return this.cfirst()+this.clast()}}},function(l,x){l.exports={url:function(n,u){return(n||this.protocol())+"://"+(u||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(n){return this.word()+"."+(n||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(n){return this.character("lower")+"."+this.word()+"@"+(n||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(l,x,n){var u=n(18),a=["东北","华北","华东","华中","华南","西南","西北"];l.exports={region:function(){return this.pick(a)},province:function(){return this.pick(u).name},city:function(s){var c=this.pick(u),p=this.pick(c.children);return s?[c.name,p.name].join(" "):p.name},county:function(s){var c=this.pick(u),p=this.pick(c.children),f=this.pick(p.children)||{name:"-"};return s?[c.name,p.name,f.name].join(" "):f.name},zip:function(s){for(var c="",p=0;p<(s||6);p++)c+=this.natural(0,9);return c}}},function(l,x){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function u(s){for(var c={},p=0,f;pj;j++)$=E.charAt(j),$===` -`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):$==="\r"||$==="\u2028"||$==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();tr?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,G="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},P0="^",D0='"^"',N2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},z2=function(e,t){return new p(e,t)},G2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",$2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},z0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",P1='"."',D1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",G0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},X0="\\B",N1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},$0="\\D",z1='"\\\\D"',G1=function(){return new n("non-digit")},W0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},J0="\\n",$1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new D(a0,Hm)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c},function(l,x,n){l.exports=n(28)},function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(h,d,b,A){var P=document.createEvent("CustomEvent");return P.initCustomEvent(h,d,b,A),P}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var P=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),U=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-U))+U}}(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F":".","?":"/","|":"\\"},T={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k,c=1;c<20;++c)d[111+c]="f"+c;for(c=0;c<=9;++c)d[c+96]=c.toString();function w(r,e,n){if(r.addEventListener){r.addEventListener(e,n,!1);return}r.attachEvent("on"+e,n)}function L(r){if(r.type=="keypress"){var e=String.fromCharCode(r.which);return r.shiftKey||(e=e.toLowerCase()),e}return d[r.which]?d[r.which]:A[r.which]?A[r.which]:String.fromCharCode(r.which).toLowerCase()}function B(r,e){return r.sort().join(",")===e.sort().join(",")}function N(r){var e=[];return r.shiftKey&&e.push("shift"),r.altKey&&e.push("alt"),r.ctrlKey&&e.push("ctrl"),r.metaKey&&e.push("meta"),e}function V(r){if(r.preventDefault){r.preventDefault();return}r.returnValue=!1}function $(r){if(r.stopPropagation){r.stopPropagation();return}r.cancelBubble=!0}function K(r){return r=="shift"||r=="ctrl"||r=="alt"||r=="meta"}function H(){if(!k){k={};for(var r in d)r>95&&r<112||d.hasOwnProperty(r)&&(k[d[r]]=r)}return k}function U(r,e,n){return n||(n=H()[r]?"keydown":"keypress"),n=="keypress"&&e.length&&(n="keydown"),n}function X(r){return r==="+"?["+"]:(r=r.replace(/\+{2}/g,"+plus"),r.split("+"))}function D(r,e){var n,o,h,y=[];for(n=X(r),h=0;h1){z(t,v,a,s);return}f=D(t,s),e._callbacks[f.key]=e._callbacks[f.key]||[],R(f.key,f.modifiers,{type:f.action},i,t,u),e._callbacks[f.key][i?"unshift":"push"]({callback:a,modifiers:f.modifiers,action:f.action,seq:i,level:u,combo:t})}e._bindMultiple=function(t,a,s){for(var i=0;i-1||I(e,n.target))return!1;if("composedPath"in r&&typeof r.composedPath=="function"){var o=r.composedPath()[0];o!==r.target&&(e=o)}return e.tagName=="INPUT"||e.tagName=="SELECT"||e.tagName=="TEXTAREA"||e.isContentEditable},p.prototype.handleKey=function(){var r=this;return r._handleKey.apply(r,arguments)},p.addKeycodes=function(r){for(var e in r)r.hasOwnProperty(e)&&(d[e]=r[e]);k=null},p.init=function(){var r=p(M);for(var e in r)e.charAt(0)!=="_"&&(p[e]=(function(n){return function(){return r[n].apply(r,arguments)}})(e))},p.init(),E.Mousetrap=p,x.exports&&(x.exports=p)})(typeof window<"u"?window:null,typeof window<"u"?document:null)})(b)),b.exports}var Z=W();const er=Q(Z);export{er as M}; diff --git a/js/mousetrap@1.6.5-B3zpTV0k.js.gz b/js/mousetrap@1.6.5-B3zpTV0k.js.gz new file mode 100644 index 00000000..95246b4c Binary files /dev/null and b/js/mousetrap@1.6.5-B3zpTV0k.js.gz differ diff --git a/js/mousetrap@1.6.5-OHXNXF9n.js b/js/mousetrap@1.6.5-OHXNXF9n.js deleted file mode 100644 index 031cd496..00000000 --- a/js/mousetrap@1.6.5-OHXNXF9n.js +++ /dev/null @@ -1 +0,0 @@ -import{g as Q}from"./classnames@2.5.1-Dfc4g_b4.js";var b={exports:{}},O;function W(){return O||(O=1,function(x){(function(E,M,j){if(!E)return;for(var d={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},A={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},T={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k,c=1;c<20;++c)d[111+c]="f"+c;for(c=0;c<=9;++c)d[c+96]=c.toString();function w(r,e,n){if(r.addEventListener){r.addEventListener(e,n,!1);return}r.attachEvent("on"+e,n)}function L(r){if(r.type=="keypress"){var e=String.fromCharCode(r.which);return r.shiftKey||(e=e.toLowerCase()),e}return d[r.which]?d[r.which]:A[r.which]?A[r.which]:String.fromCharCode(r.which).toLowerCase()}function B(r,e){return r.sort().join(",")===e.sort().join(",")}function N(r){var e=[];return r.shiftKey&&e.push("shift"),r.altKey&&e.push("alt"),r.ctrlKey&&e.push("ctrl"),r.metaKey&&e.push("meta"),e}function V(r){if(r.preventDefault){r.preventDefault();return}r.returnValue=!1}function $(r){if(r.stopPropagation){r.stopPropagation();return}r.cancelBubble=!0}function K(r){return r=="shift"||r=="ctrl"||r=="alt"||r=="meta"}function H(){if(!k){k={};for(var r in d)r>95&&r<112||d.hasOwnProperty(r)&&(k[d[r]]=r)}return k}function U(r,e,n){return n||(n=H()[r]?"keydown":"keypress"),n=="keypress"&&e.length&&(n="keydown"),n}function X(r){return r==="+"?["+"]:(r=r.replace(/\+{2}/g,"+plus"),r.split("+"))}function D(r,e){var n,o,h,y=[];for(n=X(r),h=0;h1){z(t,v,a,s);return}f=D(t,s),e._callbacks[f.key]=e._callbacks[f.key]||[],R(f.key,f.modifiers,{type:f.action},i,t,u),e._callbacks[f.key][i?"unshift":"push"]({callback:a,modifiers:f.modifiers,action:f.action,seq:i,level:u,combo:t})}e._bindMultiple=function(t,a,s){for(var i=0;i-1||I(e,n.target))return!1;if("composedPath"in r&&typeof r.composedPath=="function"){var o=r.composedPath()[0];o!==r.target&&(e=o)}return e.tagName=="INPUT"||e.tagName=="SELECT"||e.tagName=="TEXTAREA"||e.isContentEditable},p.prototype.handleKey=function(){var r=this;return r._handleKey.apply(r,arguments)},p.addKeycodes=function(r){for(var e in r)r.hasOwnProperty(e)&&(d[e]=r[e]);k=null},p.init=function(){var r=p(M);for(var e in r)e.charAt(0)!=="_"&&(p[e]=function(n){return function(){return r[n].apply(r,arguments)}}(e))},p.init(),E.Mousetrap=p,x.exports&&(x.exports=p)})(typeof window<"u"?window:null,typeof window<"u"?document:null)}(b)),b.exports}var Z=W();const er=Q(Z);export{er as M}; diff --git a/js/mousetrap@1.6.5-OHXNXF9n.js.gz b/js/mousetrap@1.6.5-OHXNXF9n.js.gz deleted file mode 100644 index 33714937..00000000 Binary files a/js/mousetrap@1.6.5-OHXNXF9n.js.gz and /dev/null differ diff --git a/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js b/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js deleted file mode 100644 index a0f11ba2..00000000 --- a/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js +++ /dev/null @@ -1,4575 +0,0 @@ -import{e as bu,z as xu,p as Cu,i as Oo,f as Bt,a as Dt,b as Ve,s as Vo,c as Tn,d as yu,h as Qn,j as no,k as Ba,l as Oa,m as wu,n as fn,o as Ht,q as Zl,r as Ql,t as Su,u as Ro,v as ku,w as Ru,x as zu,y as eo,A as Pu,B as li,C as Da,D as $u,E as Jl,F as er,G as gr,H as Tu,I as da,J as Fu,K as ca,L as Iu,M as Wn,N as Un}from"./date-fns@3.6.0-BMcLdxE-.js";import{g as Nt,s as Kt,r as co,c as qe,d as Mt,a as Ko,h as Jt,b as Se,e as qo,f as yr,t as or,i as Nn,j as Wo,k as tr,l as rr,m as Ar,n as wr,o as es,p as Ma,q as Aa,u as _a,v as rn,w as Ha,x as Ea,y as La,z as Et,A as si,B as Na,C as ts,D as Ir}from"./seemly@0.3.9-DfXeAbNj.js";import{l as to,x as bo,i as Ee,g as di,w as gt,v as hn,L as Bu,M as os,J as ja,F as Gt,N as ci,q as Ou,m as re,f as C,j as Ft,y as Je,h as a,p as lo,n as Tt,O as so,P as an,Q as Du,R as Jn,T as ui}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as B,s as rs,o as fe,m as Ji,h as ea,u as el}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{r as ua,V as _o,a as Sr,b as Rr,F as fi,B as zr,c as Pr,d as Va,L as ns,e as Mu}from"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import{v as Eo,T as qt,a as as,c as Au}from"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import{o as Lt,a as Yt}from"./evtd@0.2.4-CI_DDEu_.js";import{c as Lo,m as _u,z as hi}from"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import{u as tt,i as Yo,a as Hu,b as $t,c as nr,d as vi,e as pi,f as gi,g as Eu,o as is}from"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import{m as Mr,B as Lu,b as Nu,g as Kn,q as fa}from"./lodash-es@4.17.21-UVJw7vmf.js";import{c as ls,a as Uo,f as tl}from"./treemate@0.3.11-DKekKYbv.js";import{f as ju}from"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import{p as Wa}from"./@vue_shared@3.5.22-Dikn8ojA.js";import{m as qn}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{S as ol}from"./async-validator@4.2.5-9PlIezaS.js";import{u as ta}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import{C as Vu,e as Wu}from"./css-render@0.15.14-C5toWlUr.js";import{p as Uu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ku="n",ln=`.${Ku}-`,qu="__",Yu="--",ss=Vu(),ds=Uu({blockPrefix:ln,elementPrefix:qu,modifierPrefix:Yu});ss.use(ds);const{c:k,find:ry}=ss,{cB:m,cE:P,cM:z,cNotM:at}=ds;function jr(e){return k(({props:{bPrefix:t}})=>`${t||ln}modal, ${t||ln}drawer`,[e])}function vn(e){return k(({props:{bPrefix:t}})=>`${t||ln}popover`,[e])}function cs(e){return k(({props:{bPrefix:t}})=>`&${t||ln}modal`,e)}const Gu=(...e)=>k(">",[m(...e)]);function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}const mi="n-internal-select-menu",us="n-internal-select-menu-body",pn="n-drawer-body",bi="n-drawer",gn="n-modal-body",Xu="n-modal-provider",fs="n-modal",Vr="n-popover-body",hs="__disabled__";function Zt(e){const t=Ee(gn,null),o=Ee(pn,null),r=Ee(Vr,null),n=Ee(us,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const s=()=>{i.value=document.fullscreenElement};to(()=>{Lt("fullscreenchange",document,s)}),bo(()=>{Yt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?hs:l===!0?i.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}Zt.tdkey=hs;Zt.propTo={type:[String,Object,Boolean],default:void 0};function Zu(e,t,o){var r;const n=Ee(e,null);if(n===null)return;const i=(r=di())===null||r===void 0?void 0:r.proxy;gt(o,s),s(o.value),bo(()=>{s(void 0,o.value)});function s(c,u){if(!n)return;const f=n[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function Qu(e,t,o){const r=B(e.value);let n=null;return gt(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const xo=typeof document<"u"&&typeof window<"u";let rl=!1;function Ju(){if(xo&&window.CSS&&!rl&&(rl=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const xi=B(!1);function nl(){xi.value=!0}function al(){xi.value=!1}let Qr=0;function vs(){return xo&&(hn(()=>{Qr||(window.addEventListener("compositionstart",nl),window.addEventListener("compositionend",al)),Qr++}),bo(()=>{Qr<=1?(window.removeEventListener("compositionstart",nl),window.removeEventListener("compositionend",al),Qr=0):Qr--})),xi}let Br=0,il="",ll="",sl="",dl="";const cl=B("0px");function ps(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=il,t.style.overflow=ll,t.style.overflowX=sl,t.style.overflowY=dl,cl.value="0px"};to(()=>{o=gt(e,i=>{if(i){if(!Br){const s=window.innerWidth-t.offsetWidth;s>0&&(il=t.style.marginRight,t.style.marginRight=`${s}px`,cl.value=`${s}px`),ll=t.style.overflow,sl=t.style.overflowX,dl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Br++}else Br--,Br||n(),r=!1},{immediate:!0})}),bo(()=>{o==null||o(),r&&(Br--,Br||n(),r=!1)})}function Ci(e){const t={isDeactivated:!1};let o=!1;return Bu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),os(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function gs(e,t){t&&(to(()=>{const{value:o}=e;o&&ua.registerHandler(o,t)}),gt(e,(o,r)=>{r&&ua.unregisterHandler(r)},{deep:!1}),bo(()=>{const{value:o}=e;o&&ua.unregisterHandler(o)}))}function sn(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const ef=/^(\d|\.)+$/,ul=/(\d|\.)+/;function _t(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(ef.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=ul.exec(e);return n?e.replace(ul,String((Number(n[0])+o)*t)):e}return e}function fl(e){const{left:t,right:o,top:r,bottom:n}=Nt(e);return`${r} ${t} ${n} ${o}`}function tf(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}let ha;function of(){return ha===void 0&&(ha=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ha}const ms=new WeakSet;function dn(e){ms.add(e)}function bs(e){return!ms.has(e)}function hl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ua(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}const vl=new Set;function rf(e,t){const o=`[naive/${e}]: ${t}`;vl.has(o)||(vl.add(o),console.error(o))}function ho(e,t){console.error(`[naive/${e}]: ${t}`)}function Go(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ae(e,...t){if(Array.isArray(e))e.forEach(o=>ae(o,...t));else return e(...t)}function xs(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Cs(e){return t=>{t?e.value=t.$el:e.value=null}}function zo(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(ja(String(r)));return}if(Array.isArray(r)){zo(r,t,o);return}if(r.type===Gt){if(r.children===null)return;Array.isArray(r.children)&&zo(r.children,t,o)}else{if(r.type===ci&&t)return;o.push(r)}}}),o}function nf(e,t="default",o=void 0){const r=e[t];if(!r)return ho("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=zo(r(o));return n.length===1?n[0]:(ho("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function af(e,t,o){if(!t)return null;const r=zo(t(o));return r.length===1?r[0]:(ho("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function mn(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function pl(e,t="default",o=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const n=r[t];if(typeof n=="function")return n()}return o}function lf(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===Eo);return!!(o&&o.value===!1)}function mo(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function Po(e){return Object.keys(e)}function nn(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function $r(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,o)}function kt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ja(e):typeof e=="number"?ja(String(e)):null}function Bo(e){return e.some(t=>Ou(t)?!(t.type===ci||t.type===Gt&&!Bo(t.children)):!0)?e:null}function vt(e,t){return e&&Bo(e())||t()}function io(e,t,o){return e&&Bo(e(t))||o(t)}function mt(e,t){const o=e&&Bo(e());return t(o||null)}function _r(e){return!(e&&Bo(e()))}const Ka=re({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),$o="n-config-provider",Yn="n";function Qe(e={},t={defaultBordered:!0}){const o=Ee($o,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:C(()=>{var r,n;const{bordered:i}=e;return i!==void 0?i:(n=(r=o==null?void 0:o.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:rs(Yn),namespaceRef:C(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function ys(){const e=Ee($o,null);return e?e.mergedClsPrefixRef:rs(Yn)}function it(e,t,o,r){o||Go("useThemeClass","cssVarsRef is not passed");const n=Ee($o,null),i=n==null?void 0:n.mergedThemeHashRef,s=n==null?void 0:n.styleMountTarget,l=B(""),d=ta();let c;const u=`__${e}`,f=()=>{let v=u;const p=t?t.value:void 0,h=i==null?void 0:i.value;h&&(v+=`-${h}`),p&&(v+=`-${p}`);const{themeOverrides:g,builtinThemeOverrides:x}=r;g&&(v+=`-${qn(JSON.stringify(g))}`),x&&(v+=`-${qn(JSON.stringify(x))}`),l.value=v,c=()=>{const y=o.value;let b="";for(const T in y)b+=`${T}: ${y[T]};`;k(`.${v}`,b).mount({id:v,ssr:d,parent:s}),c=void 0}};return Ft(()=>{f()}),{themeClass:l,onRender:()=>{c==null||c()}}}const qa="n-form-item";function Co(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Ee(qa,null);Je(qa,null);const i=C(o?()=>o(n):()=>{const{size:d}=e;if(d)return d;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),s=C(r?()=>r(n):()=>{const{disabled:d}=e;return d!==void 0?d:n?n.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(n==null?void 0:n.mergedValidationStatus.value)});return bo(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}const sf={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},ny={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},df={name:"en-US",locale:bu},ay={name:"zh-CN",locale:xu};function To(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Ee($o,null)||{},r=C(()=>{var i,s;return(s=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&s!==void 0?s:sf[e]});return{dateLocaleRef:C(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:df}),localeRef:r}}const Hr="naive-ui-style";function Wt(e,t,o){if(!t)return;const r=ta(),n=C(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),i=Ee($o,null),s=()=>{Ft(()=>{const{value:l}=o,d=`${l}${e}Rtl`;if(Wu(d,r))return;const{value:c}=n;c&&c.style.mount({id:d,head:!0,anchorMetaName:Hr,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:i==null?void 0:i.styleMountTarget})})};return r?s():hn(s),n}const yo={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:cf,fontFamily:uf,lineHeight:ff}=yo,ws=k("body",` - margin: 0; - font-size: ${cf}; - font-family: ${uf}; - line-height: ${ff}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[k("input",` - font-family: inherit; - font-size: inherit; - `)]);function dr(e,t,o){if(!t)return;const r=ta(),n=Ee($o,null),i=()=>{const s=o.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Hr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:n==null?void 0:n.styleMountTarget}),n!=null&&n.preflightStyleDisabled||ws.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:r,parent:n==null?void 0:n.styleMountTarget})};r?i():hn(i)}function Re(e,t,o,r,n,i){const s=ta(),l=Ee($o,null);if(o){const c=()=>{const u=i==null?void 0:i.value;o.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Hr,ssr:s,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||ws.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:s,parent:l==null?void 0:l.styleMountTarget})};s?c():hn(c)}return C(()=>{var c;const{theme:{common:u,self:f,peers:v={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:g,peers:x}=p,{common:y=void 0,[e]:{common:b=void 0,self:T=void 0,peers:$={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:R=void 0,[e]:S={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:w,peers:O={}}=S,F=Mr({},u||b||y||r.common,R,w,g),A=Mr((c=f||T||r.self)===null||c===void 0?void 0:c(F),h,S,p);return{common:F,self:A,peers:Mr({},r.peers,$,v),peerOverrides:Mr({},h.peers,O,x)}})}Re.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const hf=m("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; -`,[k("svg",` - height: 1em; - width: 1em; - `)]),Rt=re({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){dr("-base-icon",hf,fe(e,"clsPrefix"))},render(){return a("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),cr=re({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Yo();return()=>a(qt,{name:"icon-switch-transition",appear:o.value},t)}}),yi=re({name:"Add",render(){return a("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),vf=re({name:"ArrowDown",render(){return a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Xo(e,t){const o=re({render(){return t()}});return re({name:Lu(e),setup(){var r;const n=(r=Ee($o,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const s=(i=n==null?void 0:n.value)===null||i===void 0?void 0:i[e];return s?s():a(o,null)}}})}const ar=re({name:"Backward",render(){return a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),pf=re({name:"Checkmark",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},a("g",{fill:"none"},a("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Ss=re({name:"ChevronDown",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),gf=re({name:"ChevronDownFilled",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),wi=re({name:"ChevronRight",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),mf=Xo("clear",()=>a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),bf=Xo("close",()=>a("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),gl=Xo("date",()=>a("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),xf=re({name:"Empty",render(){return a("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),a("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),bn=Xo("error",()=>a("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Cf=re({name:"Eye",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),a("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),yf=re({name:"EyeOff",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),a("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),a("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),a("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),a("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),ir=re({name:"FastBackward",render(){return a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),lr=re({name:"FastForward",render(){return a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),wf=re({name:"Filter",render(){return a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),sr=re({name:"Forward",render(){return a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Er=Xo("info",()=>a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),ml=re({name:"More",render(){return a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Sf=re({name:"Remove",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),xn=Xo("success",()=>a("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),kf=re({name:"Switcher",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},a("path",{d:"M12 8l10 8l-10 8z"}))}}),Rf=Xo("time",()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),a("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),zf=Xo("to",()=>a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),Cn=Xo("warning",()=>a("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),{cubicBezierEaseInOut:Pf}=yo;function fo({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${Pf} !important`}={}){return[k("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),k("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),k("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}const $f=m("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[k(">",[P("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[k("&:hover",` - color: var(--n-clear-color-hover)!important; - `),k("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),P("placeholder",` - display: flex; - `),P("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[fo({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Ya=re({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return dr("-base-clear",$f,fe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-base-clear`},a(cr,null,{default:()=>{var t,o;return this.show?a("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[a(Rt,{clsPrefix:e},{default:()=>a(mf,null)})])):a("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),Tf=m("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[z("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),k("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),at("disabled",[k("&:hover",` - color: var(--n-close-icon-color-hover); - `),k("&:hover::before",` - background-color: var(--n-close-color-hover); - `),k("&:focus::before",` - background-color: var(--n-close-color-hover); - `),k("&:active",` - color: var(--n-close-icon-color-pressed); - `),k("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),z("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),z("round",[k("&::before",` - border-radius: 50%; - `)])]),ur=re({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return dr("-base-close",Tf,fe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e;return a(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},a(Rt,{clsPrefix:t},{default:()=>a(bf,null)}))}}}),yn=re({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:d}=e;d&&d()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:d}=e;d&&d()}function i(l){if(l.style.transition="none",e.width){const d=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${d}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const d=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${d}px`}l.offsetWidth}function s(l){var d;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(d=e.onAfterEnter)===null||d===void 0||d.call(e)}return()=>{const{group:l,width:d,appear:c,mode:u}=e,f=l?as:qt,v={name:d?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return l||(v.mode=u),a(f,v,t)}}}),fr=re({props:{onFocus:Function,onBlur:Function},setup(e){return()=>a("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Ff=k([k("@keyframes rotator",` - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - }`),m("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[P("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[fo()]),P("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[fo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),P("container",` - animation: rotator 3s linear infinite both; - `,[P("icon",` - height: 1em; - width: 1em; - `)])])]),va="1.6s",If={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Zo=re({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},If),setup(e){dr("-base-loading",Ff,fe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return a("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},a(cr,null,{default:()=>this.show?a("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},a("div",{class:`${e}-base-loading__container`},a("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},a("g",null,a("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:va,fill:"freeze",repeatCount:"indefinite"}),a("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},a("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:va,fill:"freeze",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:va,fill:"freeze",repeatCount:"indefinite"})))))):a("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:bl}=yo;function wn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=bl,leaveCubicBezier:n=bl}={}){return[k(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),k(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),k(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),k(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Ye={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Bf=co(Ye.neutralBase),ks=co(Ye.neutralInvertBase),Of=`rgba(${ks.slice(0,3).join(", ")}, `;function St(e){return`${Of+String(e)})`}function Df(e){const t=Array.from(ks);return t[3]=Number(e),qe(Bf,t)}const Ae=Object.assign(Object.assign({name:"common"},yo),{baseColor:Ye.neutralBase,primaryColor:Ye.primaryDefault,primaryColorHover:Ye.primaryHover,primaryColorPressed:Ye.primaryActive,primaryColorSuppl:Ye.primarySuppl,infoColor:Ye.infoDefault,infoColorHover:Ye.infoHover,infoColorPressed:Ye.infoActive,infoColorSuppl:Ye.infoSuppl,successColor:Ye.successDefault,successColorHover:Ye.successHover,successColorPressed:Ye.successActive,successColorSuppl:Ye.successSuppl,warningColor:Ye.warningDefault,warningColorHover:Ye.warningHover,warningColorPressed:Ye.warningActive,warningColorSuppl:Ye.warningSuppl,errorColor:Ye.errorDefault,errorColorHover:Ye.errorHover,errorColorPressed:Ye.errorActive,errorColorSuppl:Ye.errorSuppl,textColorBase:Ye.neutralTextBase,textColor1:St(Ye.alpha1),textColor2:St(Ye.alpha2),textColor3:St(Ye.alpha3),textColorDisabled:St(Ye.alpha4),placeholderColor:St(Ye.alpha4),placeholderColorDisabled:St(Ye.alpha5),iconColor:St(Ye.alpha4),iconColorDisabled:St(Ye.alpha5),iconColorHover:St(Number(Ye.alpha4)*1.25),iconColorPressed:St(Number(Ye.alpha4)*.8),opacity1:Ye.alpha1,opacity2:Ye.alpha2,opacity3:Ye.alpha3,opacity4:Ye.alpha4,opacity5:Ye.alpha5,dividerColor:St(Ye.alphaDivider),borderColor:St(Ye.alphaBorder),closeIconColorHover:St(Number(Ye.alphaClose)),closeIconColor:St(Number(Ye.alphaClose)),closeIconColorPressed:St(Number(Ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:St(Ye.alpha4),clearColorHover:Kt(St(Ye.alpha4),{alpha:1.25}),clearColorPressed:Kt(St(Ye.alpha4),{alpha:.8}),scrollbarColor:St(Ye.alphaScrollbar),scrollbarColorHover:St(Ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:St(Ye.alphaProgressRail),railColor:St(Ye.alphaRail),popoverColor:Ye.neutralPopover,tableColor:Ye.neutralCard,cardColor:Ye.neutralCard,modalColor:Ye.neutralModal,bodyColor:Ye.neutralBody,tagColor:Df(Ye.alphaTag),avatarColor:St(Ye.alphaAvatar),invertedColor:Ye.neutralBase,inputColor:St(Ye.alphaInput),codeColor:St(Ye.alphaCode),tabColor:St(Ye.alphaTab),actionColor:St(Ye.alphaAction),tableHeaderColor:St(Ye.alphaAction),hoverColor:St(Ye.alphaPending),tableColorHover:St(Ye.alphaTablePending),tableColorStriped:St(Ye.alphaTableStriped),pressedColor:St(Ye.alphaPressed),opacityDisabled:Ye.alphaDisabled,inputColorDisabled:St(Ye.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),nt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Mf=co(nt.neutralBase),Rs=co(nt.neutralInvertBase),Af=`rgba(${Rs.slice(0,3).join(", ")}, `;function xl(e){return`${Af+String(e)})`}function ro(e){const t=Array.from(Rs);return t[3]=Number(e),qe(Mf,t)}const dt=Object.assign(Object.assign({name:"common"},yo),{baseColor:nt.neutralBase,primaryColor:nt.primaryDefault,primaryColorHover:nt.primaryHover,primaryColorPressed:nt.primaryActive,primaryColorSuppl:nt.primarySuppl,infoColor:nt.infoDefault,infoColorHover:nt.infoHover,infoColorPressed:nt.infoActive,infoColorSuppl:nt.infoSuppl,successColor:nt.successDefault,successColorHover:nt.successHover,successColorPressed:nt.successActive,successColorSuppl:nt.successSuppl,warningColor:nt.warningDefault,warningColorHover:nt.warningHover,warningColorPressed:nt.warningActive,warningColorSuppl:nt.warningSuppl,errorColor:nt.errorDefault,errorColorHover:nt.errorHover,errorColorPressed:nt.errorActive,errorColorSuppl:nt.errorSuppl,textColorBase:nt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ro(nt.alpha4),placeholderColor:ro(nt.alpha4),placeholderColorDisabled:ro(nt.alpha5),iconColor:ro(nt.alpha4),iconColorHover:Kt(ro(nt.alpha4),{lightness:.75}),iconColorPressed:Kt(ro(nt.alpha4),{lightness:.9}),iconColorDisabled:ro(nt.alpha5),opacity1:nt.alpha1,opacity2:nt.alpha2,opacity3:nt.alpha3,opacity4:nt.alpha4,opacity5:nt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ro(Number(nt.alphaClose)),closeIconColorHover:ro(Number(nt.alphaClose)),closeIconColorPressed:ro(Number(nt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ro(nt.alpha4),clearColorHover:Kt(ro(nt.alpha4),{lightness:.75}),clearColorPressed:Kt(ro(nt.alpha4),{lightness:.9}),scrollbarColor:xl(nt.alphaScrollbar),scrollbarColorHover:xl(nt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ro(nt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:nt.neutralPopover,tableColor:nt.neutralCard,cardColor:nt.neutralCard,modalColor:nt.neutralModal,bodyColor:nt.neutralBody,tagColor:"#eee",avatarColor:ro(nt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ro(nt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:nt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),_f={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function zs(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},_f),{height:r,width:n,borderRadius:i,color:t,colorHover:o})}const No={name:"Scrollbar",common:dt,self:zs},vo={name:"Scrollbar",common:Ae,self:zs},Hf=m("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[k(">",[m("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - min-height: inherit; - max-height: inherit; - scrollbar-width: none; - `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),k(">",[m("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),k(">, +",[m("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - background: var(--n-scrollbar-rail-color); - -webkit-user-select: none; - `,[z("horizontal",` - height: var(--n-scrollbar-height); - `,[k(">",[P("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),z("horizontal--top",` - top: var(--n-scrollbar-rail-top-horizontal-top); - right: var(--n-scrollbar-rail-right-horizontal-top); - bottom: var(--n-scrollbar-rail-bottom-horizontal-top); - left: var(--n-scrollbar-rail-left-horizontal-top); - `),z("horizontal--bottom",` - top: var(--n-scrollbar-rail-top-horizontal-bottom); - right: var(--n-scrollbar-rail-right-horizontal-bottom); - bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); - left: var(--n-scrollbar-rail-left-horizontal-bottom); - `),z("vertical",` - width: var(--n-scrollbar-width); - `,[k(">",[P("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),z("vertical--left",` - top: var(--n-scrollbar-rail-top-vertical-left); - right: var(--n-scrollbar-rail-right-vertical-left); - bottom: var(--n-scrollbar-rail-bottom-vertical-left); - left: var(--n-scrollbar-rail-left-vertical-left); - `),z("vertical--right",` - top: var(--n-scrollbar-rail-top-vertical-right); - right: var(--n-scrollbar-rail-right-vertical-right); - bottom: var(--n-scrollbar-rail-bottom-vertical-right); - left: var(--n-scrollbar-rail-left-vertical-right); - `),z("disabled",[k(">",[P("scrollbar","pointer-events: none;")])]),k(">",[P("scrollbar",` - z-index: 1; - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[wn(),k("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Ef=Object.assign(Object.assign({},Re.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Vt=re({name:"Scrollbar",props:Ef,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Qe(e),n=Wt("Scrollbar",r,t),i=B(null),s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(null),g=B(null),x=B(0),y=B(0),b=B(!1),T=B(!1);let $=!1,R=!1,S,w,O=0,F=0,A=0,j=0;const M=Hu(),H=Re("Scrollbar","-scrollbar",Hf,No,e,t),U=C(()=>{const{value:D}=v,{value:G}=u,{value:ve}=h;return D===null||G===null||ve===null?0:Math.min(D,ve*D/G+Mt(H.value.self.width)*1.5)}),L=C(()=>`${U.value}px`),te=C(()=>{const{value:D}=p,{value:G}=f,{value:ve}=g;return D===null||G===null||ve===null?0:ve*D/G+Mt(H.value.self.height)*1.5}),K=C(()=>`${te.value}px`),le=C(()=>{const{value:D}=v,{value:G}=x,{value:ve}=u,{value:Fe}=h;if(D===null||ve===null||Fe===null)return 0;{const Be=ve-D;return Be?G/Be*(Fe-U.value):0}}),be=C(()=>`${le.value}px`),ce=C(()=>{const{value:D}=p,{value:G}=y,{value:ve}=f,{value:Fe}=g;if(D===null||ve===null||Fe===null)return 0;{const Be=ve-D;return Be?G/Be*(Fe-te.value):0}}),V=C(()=>`${ce.value}px`),E=C(()=>{const{value:D}=v,{value:G}=u;return D!==null&&G!==null&&G>D}),I=C(()=>{const{value:D}=p,{value:G}=f;return D!==null&&G!==null&&G>D}),N=C(()=>{const{trigger:D}=e;return D==="none"||b.value}),J=C(()=>{const{trigger:D}=e;return D==="none"||T.value}),se=C(()=>{const{container:D}=e;return D?D():s.value}),xe=C(()=>{const{content:D}=e;return D?D():l.value}),Ie=(D,G)=>{if(!e.scrollable)return;if(typeof D=="number"){Ge(D,G??0,0,!1,"auto");return}const{left:ve,top:Fe,index:Be,elSize:W,position:ge,behavior:$e,el:We,debounce:ft=!0}=D;(ve!==void 0||Fe!==void 0)&&Ge(ve??0,Fe??0,0,!1,$e),We!==void 0?Ge(0,We.offsetTop,We.offsetHeight,ft,$e):Be!==void 0&&W!==void 0?Ge(0,Be*W,W,ft,$e):ge==="bottom"?Ge(0,Number.MAX_SAFE_INTEGER,0,!1,$e):ge==="top"&&Ge(0,0,0,!1,$e)},_=Ci(()=>{e.container||Ie({top:x.value,left:y.value})}),Pe=()=>{_.isDeactivated||me()},He=D=>{if(_.isDeactivated)return;const{onResize:G}=e;G&&G(D),me()},_e=(D,G)=>{if(!e.scrollable)return;const{value:ve}=se;ve&&(typeof D=="object"?ve.scrollBy(D):ve.scrollBy(D,G||0))};function Ge(D,G,ve,Fe,Be){const{value:W}=se;if(W){if(Fe){const{scrollTop:ge,offsetHeight:$e}=W;if(G>ge){G+ve<=ge+$e||W.scrollTo({left:D,top:G+ve-$e,behavior:Be});return}}W.scrollTo({left:D,top:G,behavior:Be})}}function Xe(){ue(),q(),me()}function ct(){ot()}function ot(){Ce(),ee()}function Ce(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{T.value=!1},e.duration)}function ee(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{b.value=!1},e.duration)}function ue(){S!==void 0&&window.clearTimeout(S),b.value=!0}function q(){w!==void 0&&window.clearTimeout(w),T.value=!0}function Q(D){const{onScroll:G}=e;G&&G(D),pe()}function pe(){const{value:D}=se;D&&(x.value=D.scrollTop,y.value=D.scrollLeft*(n!=null&&n.value?-1:1))}function we(){const{value:D}=xe;D&&(u.value=D.offsetHeight,f.value=D.offsetWidth);const{value:G}=se;G&&(v.value=G.offsetHeight,p.value=G.offsetWidth);const{value:ve}=c,{value:Fe}=d;ve&&(g.value=ve.offsetWidth),Fe&&(h.value=Fe.offsetHeight)}function de(){const{value:D}=se;D&&(x.value=D.scrollTop,y.value=D.scrollLeft*(n!=null&&n.value?-1:1),v.value=D.offsetHeight,p.value=D.offsetWidth,u.value=D.scrollHeight,f.value=D.scrollWidth);const{value:G}=c,{value:ve}=d;G&&(g.value=G.offsetWidth),ve&&(h.value=ve.offsetHeight)}function me(){e.scrollable&&(e.useUnifiedContainer?de():(we(),pe()))}function je(D){var G;return!(!((G=i.value)===null||G===void 0)&&G.contains(Ko(D)))}function oe(D){D.preventDefault(),D.stopPropagation(),R=!0,Lt("mousemove",window,Ue,!0),Lt("mouseup",window,lt,!0),F=y.value,A=n!=null&&n.value?window.innerWidth-D.clientX:D.clientX}function Ue(D){if(!R)return;S!==void 0&&window.clearTimeout(S),w!==void 0&&window.clearTimeout(w);const{value:G}=p,{value:ve}=f,{value:Fe}=te;if(G===null||ve===null)return;const W=(n!=null&&n.value?window.innerWidth-D.clientX-A:D.clientX-A)*(ve-G)/(G-Fe),ge=ve-G;let $e=F+W;$e=Math.min(ge,$e),$e=Math.max($e,0);const{value:We}=se;if(We){We.scrollLeft=$e*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:ft}=e;ft&&ft($e)}}function lt(D){D.preventDefault(),D.stopPropagation(),Yt("mousemove",window,Ue,!0),Yt("mouseup",window,lt,!0),R=!1,me(),je(D)&&ot()}function zt(D){D.preventDefault(),D.stopPropagation(),$=!0,Lt("mousemove",window,xt,!0),Lt("mouseup",window,pt,!0),O=x.value,j=D.clientY}function xt(D){if(!$)return;S!==void 0&&window.clearTimeout(S),w!==void 0&&window.clearTimeout(w);const{value:G}=v,{value:ve}=u,{value:Fe}=U;if(G===null||ve===null)return;const W=(D.clientY-j)*(ve-G)/(G-Fe),ge=ve-G;let $e=O+W;$e=Math.min(ge,$e),$e=Math.max($e,0);const{value:We}=se;We&&(We.scrollTop=$e)}function pt(D){D.preventDefault(),D.stopPropagation(),Yt("mousemove",window,xt,!0),Yt("mouseup",window,pt,!0),$=!1,me(),je(D)&&ot()}Ft(()=>{const{value:D}=I,{value:G}=E,{value:ve}=t,{value:Fe}=c,{value:Be}=d;Fe&&(D?Fe.classList.remove(`${ve}-scrollbar-rail--disabled`):Fe.classList.add(`${ve}-scrollbar-rail--disabled`)),Be&&(G?Be.classList.remove(`${ve}-scrollbar-rail--disabled`):Be.classList.add(`${ve}-scrollbar-rail--disabled`))}),to(()=>{e.container||me()}),bo(()=>{S!==void 0&&window.clearTimeout(S),w!==void 0&&window.clearTimeout(w),Yt("mousemove",window,xt,!0),Yt("mouseup",window,pt,!0)});const ut=C(()=>{const{common:{cubicBezierEaseInOut:D},self:{color:G,colorHover:ve,height:Fe,width:Be,borderRadius:W,railInsetHorizontalTop:ge,railInsetHorizontalBottom:$e,railInsetVerticalRight:We,railInsetVerticalLeft:ft,railColor:rt}}=H.value,{top:ne,right:ze,bottom:Le,left:et}=Nt(ge),{top:yt,right:bt,bottom:Ct,left:X}=Nt($e),{top:ye,right:Ke,bottom:Y,left:he}=Nt(n!=null&&n.value?fl(We):We),{top:ke,right:Me,bottom:Ne,left:st}=Nt(n!=null&&n.value?fl(ft):ft);return{"--n-scrollbar-bezier":D,"--n-scrollbar-color":G,"--n-scrollbar-color-hover":ve,"--n-scrollbar-border-radius":W,"--n-scrollbar-width":Be,"--n-scrollbar-height":Fe,"--n-scrollbar-rail-top-horizontal-top":ne,"--n-scrollbar-rail-right-horizontal-top":ze,"--n-scrollbar-rail-bottom-horizontal-top":Le,"--n-scrollbar-rail-left-horizontal-top":et,"--n-scrollbar-rail-top-horizontal-bottom":yt,"--n-scrollbar-rail-right-horizontal-bottom":bt,"--n-scrollbar-rail-bottom-horizontal-bottom":Ct,"--n-scrollbar-rail-left-horizontal-bottom":X,"--n-scrollbar-rail-top-vertical-right":ye,"--n-scrollbar-rail-right-vertical-right":Ke,"--n-scrollbar-rail-bottom-vertical-right":Y,"--n-scrollbar-rail-left-vertical-right":he,"--n-scrollbar-rail-top-vertical-left":ke,"--n-scrollbar-rail-right-vertical-left":Me,"--n-scrollbar-rail-bottom-vertical-left":Ne,"--n-scrollbar-rail-left-vertical-left":st,"--n-scrollbar-rail-color":rt}}),De=o?it("scrollbar",void 0,ut,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ie,scrollBy:_e,sync:me,syncUnifiedContainer:de,handleMouseEnterWrapper:Xe,handleMouseLeaveWrapper:ct}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:x,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:d,xRailRef:c,needYBar:E,needXBar:I,yBarSizePx:L,xBarSizePx:K,yBarTopPx:be,xBarLeftPx:V,isShowXBar:N,isShowYBar:J,isIos:M,handleScroll:Q,handleContentResize:Pe,handleContainerResize:He,handleYScrollMouseDown:zt,handleXScrollMouseDown:oe,cssVars:o?void 0:ut,themeClass:De==null?void 0:De.themeClass,onRender:De==null?void 0:De.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:r,rtlEnabled:n,internalHoistYRail:i,yPlacement:s,xPlacement:l,xScrollable:d}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(p,h)=>a("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${s}`,p],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},a(c?Ka:qt,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?a("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var p,h;return(p=this.onRender)===null||p===void 0||p.call(this),a("div",lo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):a("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},a(_o,{onResize:this.handleContentResize},{default:()=>a("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),d&&a("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},a(c?Ka:qt,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?a("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},v=this.container?f():a(_o,{onResize:this.handleContainerResize},{default:f});return i?a(Gt,null,v,u(this.themeClass,this.cssVars)):v}}),Gn=Vt,Lf={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Ps(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},Lf),{fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:o,extraTextColor:r})}const Sn={name:"Empty",common:dt,self:Ps},Tr={name:"Empty",common:Ae,self:Ps},Nf=m("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[P("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[k("+",[P("description",` - margin-top: 8px; - `)])]),P("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),P("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),jf=Object.assign(Object.assign({},Re.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Xn=re({name:"Empty",props:jf,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:r}=Qe(e),n=Re("Empty","-empty",Nf,Sn,e,t),{localeRef:i}=To("Empty"),s=C(()=>{var u,f,v;return(u=e.description)!==null&&u!==void 0?u:(v=(f=r==null?void 0:r.value)===null||f===void 0?void 0:f.Empty)===null||v===void 0?void 0:v.description}),l=C(()=>{var u,f;return((f=(u=r==null?void 0:r.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>a(xf,null))}),d=C(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:f},self:{[ie("iconSize",u)]:v,[ie("fontSize",u)]:p,textColor:h,iconColor:g,extraTextColor:x}}=n.value;return{"--n-icon-size":v,"--n-font-size":p,"--n-bezier":f,"--n-text-color":h,"--n-icon-color":g,"--n-extra-text-color":x}}),c=o?it("empty",C(()=>{let u="";const{size:f}=e;return u+=f[0],u}),d,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:C(()=>s.value||i.value.description),cssVars:o?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),a("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?a("div",{class:`${t}-empty__icon`},e.icon?e.icon():a(Rt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?a("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?a("div",{class:`${t}-empty__extra`},e.extra()):null)}}),Vf={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function $s(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:s,textColorDisabled:l,primaryColor:d,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,fontSizeHuge:g,heightTiny:x,heightSmall:y,heightMedium:b,heightLarge:T,heightHuge:$}=e;return Object.assign(Object.assign({},Vf),{optionFontSizeTiny:f,optionFontSizeSmall:v,optionFontSizeMedium:p,optionFontSizeLarge:h,optionFontSizeHuge:g,optionHeightTiny:x,optionHeightSmall:y,optionHeightMedium:b,optionHeightLarge:T,optionHeightHuge:$,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:s,optionTextColorDisabled:l,optionTextColorActive:d,optionOpacityDisabled:c,optionCheckColor:d,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:d})}const Si={name:"InternalSelectMenu",common:dt,peers:{Scrollbar:No,Empty:Sn},self:$s},kn={name:"InternalSelectMenu",common:Ae,peers:{Scrollbar:vo,Empty:Tr},self:$s},Cl=re({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:r}=Ee(mi);return{labelField:o,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:r,tmNode:{rawNode:n}}=this,i=r==null?void 0:r(n),s=t?t(n,!1):kt(n[this.labelField],n,!1),l=a("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),s);return n.render?n.render({node:l,option:n}):o?o({node:l,option:n,selected:!1}):l}});function Wf(e,t){return a(qt,{name:"fade-in-scale-up-transition"},{default:()=>e?a(Rt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>a(pf)}):null})}const yl=re({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:r,valueSetRef:n,renderLabelRef:i,renderOptionRef:s,labelFieldRef:l,valueFieldRef:d,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:f,handleOptionMouseEnter:v}=Ee(mi),p=tt(()=>{const{value:y}=o;return y?e.tmNode.key===y.key:!1});function h(y){const{tmNode:b}=e;b.disabled||f(y,b)}function g(y){const{tmNode:b}=e;b.disabled||v(y,b)}function x(y){const{tmNode:b}=e,{value:T}=p;b.disabled||T||v(y,b)}return{multiple:r,isGrouped:tt(()=>{const{tmNode:y}=e,{parent:b}=y;return b&&b.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:p,isSelected:tt(()=>{const{value:y}=t,{value:b}=r;if(y===null)return!1;const T=e.tmNode.rawNode[d.value];if(b){const{value:$}=n;return $.has(T)}else return y===T}),labelField:l,renderLabel:i,renderOption:s,handleMouseMove:x,handleMouseEnter:g,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:r,isGrouped:n,showCheckmark:i,nodeProps:s,renderOption:l,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:f}=this,v=Wf(o,e),p=d?[d(t,o),i&&v]:[kt(t[this.labelField],t,o),i&&v],h=s==null?void 0:s(t),g=a("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h==null?void 0:h.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(h==null?void 0:h.style)||"",t.style||""],onClick:nn([c,h==null?void 0:h.onClick]),onMouseenter:nn([u,h==null?void 0:h.onMouseenter]),onMousemove:nn([f,h==null?void 0:h.onMousemove])}),a("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),{cubicBezierEaseIn:wl,cubicBezierEaseOut:Sl}=yo;function hr({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[k("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${wl}, transform ${t} ${wl} ${n&&`,${n}`}`}),k("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Sl}, transform ${t} ${Sl} ${n&&`,${n}`}`}),k("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),k("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Uf=m("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[m("scrollbar",` - max-height: var(--n-height); - `),m("virtual-list",` - max-height: var(--n-height); - `),m("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[P("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),m("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),m("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),P("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),P("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),P("header",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),P("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),m("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),m("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[z("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),k("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),k("&:active",` - color: var(--n-option-text-color-pressed); - `),z("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),z("pending",[k("&::before",` - background-color: var(--n-option-color-pending); - `)]),z("selected",` - color: var(--n-option-text-color-active); - `,[k("&::before",` - background-color: var(--n-option-color-active); - `),z("pending",[k("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),z("disabled",` - cursor: not-allowed; - `,[at("selected",` - color: var(--n-option-text-color-disabled); - `),z("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),P("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[hr({enterScale:"0.5"})])])]),Ts=re({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Wt("InternalSelectMenu",o,t),n=Re("InternalSelectMenu","-internal-select-menu",Uf,Si,e,fe(e,"clsPrefix")),i=B(null),s=B(null),l=B(null),d=C(()=>e.treeMate.getFlattenedNodes()),c=C(()=>ls(d.value)),u=B(null);function f(){const{treeMate:E}=e;let I=null;const{value:N}=e;N===null?I=E.getFirstAvailableNode():(e.multiple?I=E.getNode((N||[])[(N||[]).length-1]):I=E.getNode(N),(!I||I.disabled)&&(I=E.getFirstAvailableNode())),U(I||null)}function v(){const{value:E}=u;E&&!e.treeMate.getNode(E.key)&&(u.value=null)}let p;gt(()=>e.show,E=>{E?p=gt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?f():v(),Tt(L)):v()},{immediate:!0}):p==null||p()},{immediate:!0}),bo(()=>{p==null||p()});const h=C(()=>Mt(n.value.self[ie("optionHeight",e.size)])),g=C(()=>Nt(n.value.self[ie("padding",e.size)])),x=C(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),y=C(()=>{const E=d.value;return E&&E.length===0});function b(E){const{onToggle:I}=e;I&&I(E)}function T(E){const{onScroll:I}=e;I&&I(E)}function $(E){var I;(I=l.value)===null||I===void 0||I.sync(),T(E)}function R(){var E;(E=l.value)===null||E===void 0||E.sync()}function S(){const{value:E}=u;return E||null}function w(E,I){I.disabled||U(I,!1)}function O(E,I){I.disabled||b(I)}function F(E){var I;Jt(E,"action")||(I=e.onKeyup)===null||I===void 0||I.call(e,E)}function A(E){var I;Jt(E,"action")||(I=e.onKeydown)===null||I===void 0||I.call(e,E)}function j(E){var I;(I=e.onMousedown)===null||I===void 0||I.call(e,E),!e.focusable&&E.preventDefault()}function M(){const{value:E}=u;E&&U(E.getNext({loop:!0}),!0)}function H(){const{value:E}=u;E&&U(E.getPrev({loop:!0}),!0)}function U(E,I=!1){u.value=E,I&&L()}function L(){var E,I;const N=u.value;if(!N)return;const J=c.value(N.key);J!==null&&(e.virtualScroll?(E=s.value)===null||E===void 0||E.scrollTo({index:J}):(I=l.value)===null||I===void 0||I.scrollTo({index:J,elSize:h.value}))}function te(E){var I,N;!((I=i.value)===null||I===void 0)&&I.contains(E.target)&&((N=e.onFocus)===null||N===void 0||N.call(e,E))}function K(E){var I,N;!((I=i.value)===null||I===void 0)&&I.contains(E.relatedTarget)||(N=e.onBlur)===null||N===void 0||N.call(e,E)}Je(mi,{handleOptionMouseEnter:w,handleOptionClick:O,valueSetRef:x,pendingTmNodeRef:u,nodePropsRef:fe(e,"nodeProps"),showCheckmarkRef:fe(e,"showCheckmark"),multipleRef:fe(e,"multiple"),valueRef:fe(e,"value"),renderLabelRef:fe(e,"renderLabel"),renderOptionRef:fe(e,"renderOption"),labelFieldRef:fe(e,"labelField"),valueFieldRef:fe(e,"valueField")}),Je(us,i),to(()=>{const{value:E}=l;E&&E.sync()});const le=C(()=>{const{size:E}=e,{common:{cubicBezierEaseInOut:I},self:{height:N,borderRadius:J,color:se,groupHeaderTextColor:xe,actionDividerColor:Ie,optionTextColorPressed:_,optionTextColor:Pe,optionTextColorDisabled:He,optionTextColorActive:_e,optionOpacityDisabled:Ge,optionCheckColor:Xe,actionTextColor:ct,optionColorPending:ot,optionColorActive:Ce,loadingColor:ee,loadingSize:ue,optionColorActivePending:q,[ie("optionFontSize",E)]:Q,[ie("optionHeight",E)]:pe,[ie("optionPadding",E)]:we}}=n.value;return{"--n-height":N,"--n-action-divider-color":Ie,"--n-action-text-color":ct,"--n-bezier":I,"--n-border-radius":J,"--n-color":se,"--n-option-font-size":Q,"--n-group-header-text-color":xe,"--n-option-check-color":Xe,"--n-option-color-pending":ot,"--n-option-color-active":Ce,"--n-option-color-active-pending":q,"--n-option-height":pe,"--n-option-opacity-disabled":Ge,"--n-option-text-color":Pe,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":He,"--n-option-text-color-pressed":_,"--n-option-padding":we,"--n-option-padding-left":Nt(we,"left"),"--n-option-padding-right":Nt(we,"right"),"--n-loading-color":ee,"--n-loading-size":ue}}),{inlineThemeDisabled:be}=e,ce=be?it("internal-select-menu",C(()=>e.size[0]),le,e):void 0,V={selfRef:i,next:M,prev:H,getPendingTmNode:S};return gs(i,e.onResize),Object.assign({mergedTheme:n,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:s,scrollbarRef:l,itemSize:h,padding:g,flattenedNodes:d,empty:y,virtualListContainer(){const{value:E}=s;return E==null?void 0:E.listElRef},virtualListContent(){const{value:E}=s;return E==null?void 0:E.itemsElRef},doScroll:T,handleFocusin:te,handleFocusout:K,handleKeyUp:F,handleKeyDown:A,handleMouseDown:j,handleVirtualListResize:R,handleVirtualListScroll:$,cssVars:be?void 0:le,themeClass:ce==null?void 0:ce.themeClass,onRender:ce==null?void 0:ce.onRender},V)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:r,themeClass:n,onRender:i}=this;return i==null||i(),a("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,n,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},mt(e.header,s=>s&&a("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},s)),this.loading?a("div",{class:`${o}-base-select-menu__loading`},a(Zo,{clsPrefix:o,strokeWidth:20})):this.empty?a("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[a(Xn,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty,size:this.size})])):a(Vt,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?a(Sr,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:s})=>s.isGroup?a(Cl,{key:s.key,clsPrefix:o,tmNode:s}):s.ignored?null:a(yl,{clsPrefix:o,key:s.key,tmNode:s})}):a("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(s=>s.isGroup?a(Cl,{key:s.key,clsPrefix:o,tmNode:s}):a(yl,{clsPrefix:o,key:s.key,tmNode:s})))}),mt(e.action,s=>s&&[a("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},s),a(fr,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Kf={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Fs(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:s}=e;return Object.assign(Object.assign({},Kf),{fontSize:i,borderRadius:n,color:o,dividerColor:s,textColor:r,boxShadow:t})}const Wr={name:"Popover",common:dt,self:Fs},Fr={name:"Popover",common:Ae,self:Fs},pa={top:"bottom",bottom:"top",left:"right",right:"left"},Xt="var(--n-arrow-height) * 1.414",qf=k([m("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[k(">",[m("scrollbar",` - height: inherit; - max-height: inherit; - `)]),at("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[at("scrollable",[at("show-header-or-footer","padding: var(--n-padding);")])]),P("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),P("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),z("scrollable, show-header-or-footer",[P("content",` - padding: var(--n-padding); - `)])]),m("popover-shared",` - transform-origin: inherit; - `,[m("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[m("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Xt}); - height: calc(${Xt}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),k("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),k("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),k("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),k("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),ko("top-start",` - top: calc(${Xt} / -2); - left: calc(${jo("top-start")} - var(--v-offset-left)); - `),ko("top",` - top: calc(${Xt} / -2); - transform: translateX(calc(${Xt} / -2)) rotate(45deg); - left: 50%; - `),ko("top-end",` - top: calc(${Xt} / -2); - right: calc(${jo("top-end")} + var(--v-offset-left)); - `),ko("bottom-start",` - bottom: calc(${Xt} / -2); - left: calc(${jo("bottom-start")} - var(--v-offset-left)); - `),ko("bottom",` - bottom: calc(${Xt} / -2); - transform: translateX(calc(${Xt} / -2)) rotate(45deg); - left: 50%; - `),ko("bottom-end",` - bottom: calc(${Xt} / -2); - right: calc(${jo("bottom-end")} + var(--v-offset-left)); - `),ko("left-start",` - left: calc(${Xt} / -2); - top: calc(${jo("left-start")} - var(--v-offset-top)); - `),ko("left",` - left: calc(${Xt} / -2); - transform: translateY(calc(${Xt} / -2)) rotate(45deg); - top: 50%; - `),ko("left-end",` - left: calc(${Xt} / -2); - bottom: calc(${jo("left-end")} + var(--v-offset-top)); - `),ko("right-start",` - right: calc(${Xt} / -2); - top: calc(${jo("right-start")} - var(--v-offset-top)); - `),ko("right",` - right: calc(${Xt} / -2); - transform: translateY(calc(${Xt} / -2)) rotate(45deg); - top: 50%; - `),ko("right-end",` - right: calc(${Xt} / -2); - bottom: calc(${jo("right-end")} + var(--v-offset-top)); - `),...Nu({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Xt}) / 2)`,d=jo(n);return k(`[v-placement="${n}"] >`,[m("popover-shared",[z("center-arrow",[m("popover-arrow",`${t}: calc(max(${l}, ${d}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function jo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function ko(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return k(`[v-placement="${e}"] >`,[m("popover-shared",` - margin-${pa[o]}: var(--n-space); - `,[z("show-arrow",` - margin-${pa[o]}: var(--n-space-arrow); - `),z("overlap",` - margin: 0; - `),Gu("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${o}: 100%; - ${pa[o]}: auto; - ${r} - `,[m("popover-arrow",t)])])])}const Is=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Bs({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return a("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},a("div",{class:[`${n}-popover-arrow`,e],style:t}))}const Yf=re({name:"PopoverBody",inheritAttrs:!1,props:Is,setup(e,{slots:t,attrs:o}){const{namespaceRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:i}=Qe(e),s=Re("Popover","-popover",qf,Wr,e,n),l=B(null),d=Ee("NPopover"),c=B(null),u=B(e.show),f=B(!1);Ft(()=>{const{show:w}=e;w&&!of()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=C(()=>{const{trigger:w,onClickoutside:O}=e,F=[],{positionManuallyRef:{value:A}}=d;return A||(w==="click"&&!O&&F.push([Lo,$,void 0,{capture:!0}]),w==="hover"&&F.push([_u,T])),O&&F.push([Lo,$,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&F.push([Eo,e.show]),F}),p=C(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:O,cubicBezierEaseOut:F},self:{space:A,spaceArrow:j,padding:M,fontSize:H,textColor:U,dividerColor:L,color:te,boxShadow:K,borderRadius:le,arrowHeight:be,arrowOffset:ce,arrowOffsetVertical:V}}=s.value;return{"--n-box-shadow":K,"--n-bezier":w,"--n-bezier-ease-in":O,"--n-bezier-ease-out":F,"--n-font-size":H,"--n-text-color":U,"--n-color":te,"--n-divider-color":L,"--n-border-radius":le,"--n-arrow-height":be,"--n-arrow-offset":ce,"--n-arrow-offset-vertical":V,"--n-padding":M,"--n-space":A,"--n-space-arrow":j}}),h=C(()=>{const w=e.width==="trigger"?void 0:_t(e.width),O=[];w&&O.push({width:w});const{maxWidth:F,minWidth:A}=e;return F&&O.push({maxWidth:_t(F)}),A&&O.push({maxWidth:_t(A)}),i||O.push(p.value),O}),g=i?it("popover",void 0,p,e):void 0;d.setBodyInstance({syncPosition:x}),bo(()=>{d.setBodyInstance(null)}),gt(fe(e,"show"),w=>{e.animated||(w?u.value=!0:u.value=!1)});function x(){var w;(w=l.value)===null||w===void 0||w.syncPosition()}function y(w){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&d.handleMouseEnter(w)}function b(w){e.trigger==="hover"&&e.keepAliveOnHover&&d.handleMouseLeave(w)}function T(w){e.trigger==="hover"&&!R().contains(Ko(w))&&d.handleMouseMoveOutside(w)}function $(w){(e.trigger==="click"&&!R().contains(Ko(w))||e.onClickoutside)&&d.handleClickOutside(w)}function R(){return d.getTriggerElement()}Je(Vr,c),Je(pn,null),Je(gn,null);function S(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let O;const F=d.internalRenderBodyRef.value,{value:A}=n;if(F)O=F([`${A}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${A}-popover-shared--overlap`,e.showArrow&&`${A}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${A}-popover-shared--center-arrow`],c,h.value,y,b);else{const{value:j}=d.extraClassRef,{internalTrapFocus:M}=e,H=!_r(t.header)||!_r(t.footer),U=()=>{var L,te;const K=H?a(Gt,null,mt(t.header,ce=>ce?a("div",{class:[`${A}-popover__header`,e.headerClass],style:e.headerStyle},ce):null),mt(t.default,ce=>ce?a("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t):null),mt(t.footer,ce=>ce?a("div",{class:[`${A}-popover__footer`,e.footerClass],style:e.footerStyle},ce):null)):e.scrollable?(L=t.default)===null||L===void 0?void 0:L.call(t):a("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t),le=e.scrollable?a(Gn,{contentClass:H?void 0:`${A}-popover__content ${(te=e.contentClass)!==null&&te!==void 0?te:""}`,contentStyle:H?void 0:e.contentStyle},{default:()=>K}):K,be=e.showArrow?Bs({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:A}):null;return[le,be]};O=a("div",lo({class:[`${A}-popover`,`${A}-popover-shared`,g==null?void 0:g.themeClass.value,j.map(L=>`${A}-${L}`),{[`${A}-popover--scrollable`]:e.scrollable,[`${A}-popover--show-header-or-footer`]:H,[`${A}-popover--raw`]:e.raw,[`${A}-popover-shared--overlap`]:e.overlap,[`${A}-popover-shared--show-arrow`]:e.showArrow,[`${A}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:h.value,onKeydown:d.handleKeydown,onMouseenter:y,onMouseleave:b},o),M?a(fi,{active:e.show,autoFocus:!0},{default:U}):U())}return so(O,v.value)}return{displayed:f,namespace:r,isMounted:d.isMountedRef,zIndex:d.zIndexRef,followerRef:l,adjustedTo:Zt(e),followerEnabled:u,renderContentNode:S}},render(){return a(Rr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Zt.tdkey},{default:()=>this.animated?a(qt,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Gf=Object.keys(Is),Xf={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Zf(e,t,o){Xf[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[r],i=o[r];n?e.props[r]=(...s)=>{n(...s),i(...s)}:e.props[r]=i})}const Lr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Zt.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Qf=Object.assign(Object.assign(Object.assign({},Re.props),Lr),{internalOnAfterLeave:Function,internalRenderBody:Function}),Rn=re({name:"Popover",inheritAttrs:!1,props:Qf,slots:Object,__popover__:!0,setup(e){const t=Yo(),o=B(null),r=C(()=>e.show),n=B(e.defaultShow),i=$t(r,n),s=tt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},d=()=>l()?!1:i.value,c=nr(e,["arrow","showArrow"]),u=C(()=>e.overlap?!1:c.value);let f=null;const v=B(null),p=B(null),h=tt(()=>e.x!==void 0&&e.y!==void 0);function g(L){const{"onUpdate:show":te,onUpdateShow:K,onShow:le,onHide:be}=e;n.value=L,te&&ae(te,L),K&&ae(K,L),L&&le&&ae(le,!0),L&&be&&ae(be,!1)}function x(){f&&f.syncPosition()}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function b(){const{value:L}=p;L&&(window.clearTimeout(L),p.value=null)}function T(){const L=l();if(e.trigger==="focus"&&!L){if(d())return;g(!0)}}function $(){const L=l();if(e.trigger==="focus"&&!L){if(!d())return;g(!1)}}function R(){const L=l();if(e.trigger==="hover"&&!L){if(b(),v.value!==null||d())return;const te=()=>{g(!0),v.value=null},{delay:K}=e;K===0?te():v.value=window.setTimeout(te,K)}}function S(){const L=l();if(e.trigger==="hover"&&!L){if(y(),p.value!==null||!d())return;const te=()=>{g(!1),p.value=null},{duration:K}=e;K===0?te():p.value=window.setTimeout(te,K)}}function w(){S()}function O(L){var te;d()&&(e.trigger==="click"&&(y(),b(),g(!1)),(te=e.onClickoutside)===null||te===void 0||te.call(e,L))}function F(){if(e.trigger==="click"&&!l()){y(),b();const L=!d();g(L)}}function A(L){e.internalTrapFocus&&L.key==="Escape"&&(y(),b(),g(!1))}function j(L){n.value=L}function M(){var L;return(L=o.value)===null||L===void 0?void 0:L.targetRef}function H(L){f=L}return Je("NPopover",{getTriggerElement:M,handleKeydown:A,handleMouseEnter:R,handleMouseLeave:S,handleClickOutside:O,handleMouseMoveOutside:w,setBodyInstance:H,positionManuallyRef:h,isMountedRef:t,zIndexRef:fe(e,"zIndex"),extraClassRef:fe(e,"internalExtraClass"),internalRenderBodyRef:fe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:h,mergedShowConsideringDisabledProp:s,uncontrolledShow:n,mergedShowArrow:u,getMergedShow:d,setShow:j,handleClick:F,handleMouseEnter:R,handleMouseLeave:S,handleFocus:T,handleBlur:$,syncPosition:x}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(r=nf(o,"trigger"),r)){r=an(r),r=r.type===Du?a("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:s}=this,l=[i,...s],d={onBlur:c=>{l.forEach(u=>{u.onBlur(c)})},onFocus:c=>{l.forEach(u=>{u.onFocus(c)})},onClick:c=>{l.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{l.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{l.forEach(u=>{u.onMouseleave(c)})}};Zf(r,s?"nested":t?"manual":this.trigger,d)}}return a(zr,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?so(a("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[hi,{enabled:i,zIndex:this.zIndex}]]):null,t?null:a(Pr,null,{default:()=>r}),a(Yf,mo(this.$props,Gf,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var s,l;return(l=(s=this.$slots).default)===null||l===void 0?void 0:l.call(s)},header:()=>{var s,l;return(l=(s=this.$slots).header)===null||l===void 0?void 0:l.call(s)},footer:()=>{var s,l;return(l=(s=this.$slots).footer)===null||l===void 0?void 0:l.call(s)}})]}})}}),Os={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Ds={name:"Tag",common:Ae,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:x,closeColorPressed:y,borderRadiusSmall:b,fontSizeMini:T,fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:S,heightMini:w,heightTiny:O,heightSmall:F,heightMedium:A,buttonColor2Hover:j,buttonColor2Pressed:M,fontWeightStrong:H}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:b,heightTiny:w,heightSmall:O,heightMedium:F,heightLarge:A,borderRadius:b,opacityDisabled:v,fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:S,fontWeightStrong:H,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:M,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:x,closeColorPressed:y,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Kt(n,{lightness:.7}),closeIconColorHoverPrimary:Kt(n,{lightness:.7}),closeIconColorPressedPrimary:Kt(n,{lightness:.7}),closeColorHoverPrimary:Se(n,{alpha:.16}),closeColorPressedPrimary:Se(n,{alpha:.12}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Kt(i,{alpha:.7}),closeIconColorHoverInfo:Kt(i,{alpha:.7}),closeIconColorPressedInfo:Kt(i,{alpha:.7}),closeColorHoverInfo:Se(i,{alpha:.16}),closeColorPressedInfo:Se(i,{alpha:.12}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Kt(s,{alpha:.7}),closeIconColorHoverSuccess:Kt(s,{alpha:.7}),closeIconColorPressedSuccess:Kt(s,{alpha:.7}),closeColorHoverSuccess:Se(s,{alpha:.16}),closeColorPressedSuccess:Se(s,{alpha:.12}),borderWarning:`1px solid ${Se(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Kt(l,{alpha:.7}),closeIconColorHoverWarning:Kt(l,{alpha:.7}),closeIconColorPressedWarning:Kt(l,{alpha:.7}),closeColorHoverWarning:Se(l,{alpha:.16}),closeColorPressedWarning:Se(l,{alpha:.11}),borderError:`1px solid ${Se(d,{alpha:.3})}`,textColorError:d,colorError:Se(d,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Kt(d,{alpha:.7}),closeIconColorHoverError:Kt(d,{alpha:.7}),closeIconColorPressedError:Kt(d,{alpha:.7}),closeColorHoverError:Se(d,{alpha:.16}),closeColorPressedError:Se(d,{alpha:.12})})}};function Jf(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,opacityDisabled:f,tagColor:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:x,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:T,fontSizeMedium:$,heightMini:R,heightTiny:S,heightSmall:w,heightMedium:O,closeColorHover:F,closeColorPressed:A,buttonColor2Hover:j,buttonColor2Pressed:M,fontWeightStrong:H}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:x,heightTiny:R,heightSmall:S,heightMedium:w,heightLarge:O,borderRadius:x,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:T,fontSizeLarge:$,fontWeightStrong:H,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:M,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:v,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:F,closeColorPressed:A,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.12}),colorBorderedPrimary:Se(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:Se(n,{alpha:.12}),closeColorPressedPrimary:Se(n,{alpha:.18}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.12}),colorBorderedInfo:Se(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Se(i,{alpha:.12}),closeColorPressedInfo:Se(i,{alpha:.18}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.12}),colorBorderedSuccess:Se(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:Se(s,{alpha:.12}),closeColorPressedSuccess:Se(s,{alpha:.18}),borderWarning:`1px solid ${Se(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.15}),colorBorderedWarning:Se(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Se(l,{alpha:.12}),closeColorPressedWarning:Se(l,{alpha:.18}),borderError:`1px solid ${Se(d,{alpha:.23})}`,textColorError:d,colorError:Se(d,{alpha:.1}),colorBorderedError:Se(d,{alpha:.08}),closeIconColorError:d,closeIconColorHoverError:d,closeIconColorPressedError:d,closeColorHoverError:Se(d,{alpha:.12}),closeColorPressedError:Se(d,{alpha:.18})})}const Ms={name:"Tag",common:dt,self:Jf},As={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},eh=m("tag",` - --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[z("strong",` - font-weight: var(--n-font-weight-strong); - `),P("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),P("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),P("avatar",` - display: flex; - margin: 0 6px 0 0; - `),P("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),z("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[P("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),P("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),z("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),z("icon, avatar",[z("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),z("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),z("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[at("disabled",[k("&:hover","background-color: var(--n-color-hover-checkable);",[at("checked","color: var(--n-text-color-hover-checkable);")]),k("&:active","background-color: var(--n-color-pressed-checkable);",[at("checked","color: var(--n-text-color-pressed-checkable);")])]),z("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[at("disabled",[k("&:hover","background-color: var(--n-color-checked-hover);"),k("&:active","background-color: var(--n-color-checked-pressed);")])])])]),th=Object.assign(Object.assign(Object.assign({},Re.props),As),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),_s="n-tag",jn=re({name:"Tag",props:th,slots:Object,setup(e){const t=B(null),{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=Re("Tag","-tag",eh,Ms,e,r);Je(_s,{roundRef:fe(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:h,onUpdateChecked:g,"onUpdate:checked":x}=e;g&&g(!p),x&&x(!p),h&&h(!p)}}function d(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&ae(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},u=Wt("Tag",i,r),f=C(()=>{const{type:p,size:h,color:{color:g,textColor:x}={}}=e,{common:{cubicBezierEaseInOut:y},self:{padding:b,closeMargin:T,borderRadius:$,opacityDisabled:R,textColorCheckable:S,textColorHoverCheckable:w,textColorPressedCheckable:O,textColorChecked:F,colorCheckable:A,colorHoverCheckable:j,colorPressedCheckable:M,colorChecked:H,colorCheckedHover:U,colorCheckedPressed:L,closeBorderRadius:te,fontWeightStrong:K,[ie("colorBordered",p)]:le,[ie("closeSize",h)]:be,[ie("closeIconSize",h)]:ce,[ie("fontSize",h)]:V,[ie("height",h)]:E,[ie("color",p)]:I,[ie("textColor",p)]:N,[ie("border",p)]:J,[ie("closeIconColor",p)]:se,[ie("closeIconColorHover",p)]:xe,[ie("closeIconColorPressed",p)]:Ie,[ie("closeColorHover",p)]:_,[ie("closeColorPressed",p)]:Pe}}=s.value,He=Nt(T);return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${E} - 8px)`,"--n-bezier":y,"--n-border-radius":$,"--n-border":J,"--n-close-icon-size":ce,"--n-close-color-pressed":Pe,"--n-close-color-hover":_,"--n-close-border-radius":te,"--n-close-icon-color":se,"--n-close-icon-color-hover":xe,"--n-close-icon-color-pressed":Ie,"--n-close-icon-color-disabled":se,"--n-close-margin-top":He.top,"--n-close-margin-right":He.right,"--n-close-margin-bottom":He.bottom,"--n-close-margin-left":He.left,"--n-close-size":be,"--n-color":g||(o.value?le:I),"--n-color-checkable":A,"--n-color-checked":H,"--n-color-checked-hover":U,"--n-color-checked-pressed":L,"--n-color-hover-checkable":j,"--n-color-pressed-checkable":M,"--n-font-size":V,"--n-height":E,"--n-opacity-disabled":R,"--n-padding":b,"--n-text-color":x||N,"--n-text-color-checkable":S,"--n-text-color-checked":F,"--n-text-color-hover-checkable":w,"--n-text-color-pressed-checkable":O}}),v=n?it("tag",C(()=>{let p="";const{type:h,size:g,color:{color:x,textColor:y}={}}=e;return p+=h[0],p+=g[0],x&&(p+=`a${sn(x)}`),y&&(p+=`b${sn(y)}`),o.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:r,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:d,cssVars:n?void 0:f,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:r,closable:n,color:{borderColor:i}={},round:s,onRender:l,$slots:d}=this;l==null||l();const c=mt(d.avatar,f=>f&&a("div",{class:`${o}-tag__avatar`},f)),u=mt(d.icon,f=>f&&a("div",{class:`${o}-tag__icon`},f));return a("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:r,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:s,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:u,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,a("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?a(ur,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?a("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),Hs=re({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return a(Zo,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?a(Ya,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>a(Rt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[a(Ss,null)])})}):null})}}}),Es={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},ki={name:"InternalSelection",common:Ae,peers:{Popover:Fr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:v,iconColorDisabled:p,clearColor:h,clearColorHover:g,clearColorPressed:x,placeholderColor:y,placeholderColorDisabled:b,fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:S,heightTiny:w,heightSmall:O,heightMedium:F,heightLarge:A,fontWeight:j}=e;return Object.assign(Object.assign({},Es),{fontWeight:j,fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:S,heightTiny:w,heightSmall:O,heightMedium:F,heightLarge:A,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:b,color:n,colorDisabled:i,colorActive:Se(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Se(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Se(s,{alpha:.4})}`,caretColor:s,arrowColor:v,arrowColorDisabled:p,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,colorActiveWarning:Se(d,{alpha:.1}),caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,colorActiveError:Se(u,{alpha:.1}),caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:x})}};function oh(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderColor:v,iconColor:p,iconColorDisabled:h,clearColor:g,clearColorHover:x,clearColorPressed:y,placeholderColor:b,placeholderColorDisabled:T,fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:S,fontSizeLarge:w,heightTiny:O,heightSmall:F,heightMedium:A,heightLarge:j,fontWeight:M}=e;return Object.assign(Object.assign({},Es),{fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:S,fontSizeLarge:w,heightTiny:O,heightSmall:F,heightMedium:A,heightLarge:j,borderRadius:t,fontWeight:M,textColor:o,textColorDisabled:r,placeholderColor:b,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${v}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Se(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Se(s,{alpha:.2})}`,caretColor:s,arrowColor:p,arrowColorDisabled:h,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Se(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Se(u,{alpha:.2})}`,colorActiveError:n,caretColorError:u,clearColor:g,clearColorHover:x,clearColorPressed:y})}const Ls={name:"InternalSelection",common:dt,peers:{Popover:Wr},self:oh},rh=k([m("base-selection",` - --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); - --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[m("base-loading",` - color: var(--n-loading-color); - `),m("base-selection-tags","min-height: var(--n-height);"),P("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),P("state-border",` - z-index: 1; - border-color: #0000; - `),m("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[P("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),m("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[P("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),m("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[P("inner",` - max-width: 100%; - overflow: hidden; - `)]),m("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),m("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[m("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[P("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),P("render-label",` - color: var(--n-text-color); - `)]),at("disabled",[k("&:hover",[P("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),z("focus",[P("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),z("active",[P("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),m("base-selection-label","background-color: var(--n-color-active);"),m("base-selection-tags","background-color: var(--n-color-active);")])]),z("disabled","cursor: not-allowed;",[P("arrow",` - color: var(--n-arrow-color-disabled); - `),m("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[m("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),P("render-label",` - color: var(--n-text-color-disabled); - `)]),m("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),m("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),m("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[P("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),P("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>z(`${e}-status`,[P("state-border",`border: var(--n-border-${e});`),at("disabled",[k("&:hover",[P("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),z("active",[P("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),m("base-selection-label",`background-color: var(--n-color-active-${e});`),m("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),z("focus",[P("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),m("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),m("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[k("&:last-child","padding-right: 0;"),m("tag",` - font-size: 14px; - max-width: 100%; - `,[P("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),nh=re({name:"InternalSelection",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Wt("InternalSelection",o,t),n=B(null),i=B(null),s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(!1),g=B(!1),x=B(!1),y=Re("InternalSelection","-internal-selection",rh,Ls,e,fe(e,"clsPrefix")),b=C(()=>e.clearable&&!e.disabled&&(x.value||e.active)),T=C(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):kt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),$=C(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),R=C(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function S(){var de;const{value:me}=n;if(me){const{value:je}=i;je&&(je.style.width=`${me.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=v.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function w(){const{value:de}=p;de&&(de.style.display="none")}function O(){const{value:de}=p;de&&(de.style.display="inline-block")}gt(fe(e,"active"),de=>{de||w()}),gt(fe(e,"pattern"),()=>{e.multiple&&Tt(S)});function F(de){const{onFocus:me}=e;me&&me(de)}function A(de){const{onBlur:me}=e;me&&me(de)}function j(de){const{onDeleteOption:me}=e;me&&me(de)}function M(de){const{onClear:me}=e;me&&me(de)}function H(de){const{onPatternInput:me}=e;me&&me(de)}function U(de){var me;(!de.relatedTarget||!(!((me=s.value)===null||me===void 0)&&me.contains(de.relatedTarget)))&&F(de)}function L(de){var me;!((me=s.value)===null||me===void 0)&&me.contains(de.relatedTarget)||A(de)}function te(de){M(de)}function K(){x.value=!0}function le(){x.value=!1}function be(de){!e.active||!e.filterable||de.target!==i.value&&de.preventDefault()}function ce(de){j(de)}const V=B(!1);function E(de){if(de.key==="Backspace"&&!V.value&&!e.pattern.length){const{selectedOptions:me}=e;me!=null&&me.length&&ce(me[me.length-1])}}let I=null;function N(de){const{value:me}=n;if(me){const je=de.target.value;me.textContent=je,S()}e.ignoreComposition&&V.value?I=de:H(de)}function J(){V.value=!0}function se(){V.value=!1,e.ignoreComposition&&H(I),I=null}function xe(de){var me;g.value=!0,(me=e.onPatternFocus)===null||me===void 0||me.call(e,de)}function Ie(de){var me;g.value=!1,(me=e.onPatternBlur)===null||me===void 0||me.call(e,de)}function _(){var de,me;if(e.filterable)g.value=!1,(de=c.value)===null||de===void 0||de.blur(),(me=i.value)===null||me===void 0||me.blur();else if(e.multiple){const{value:je}=l;je==null||je.blur()}else{const{value:je}=d;je==null||je.blur()}}function Pe(){var de,me,je;e.filterable?(g.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(me=l.value)===null||me===void 0||me.focus():(je=d.value)===null||je===void 0||je.focus()}function He(){const{value:de}=i;de&&(O(),de.focus())}function _e(){const{value:de}=i;de&&de.blur()}function Ge(de){const{value:me}=u;me&&me.setTextContent(`+${de}`)}function Xe(){const{value:de}=f;return de}function ct(){return i.value}let ot=null;function Ce(){ot!==null&&window.clearTimeout(ot)}function ee(){e.active||(Ce(),ot=window.setTimeout(()=>{R.value&&(h.value=!0)},100))}function ue(){Ce()}function q(de){de||(Ce(),h.value=!1)}gt(R,de=>{de||(h.value=!1)}),to(()=>{Ft(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=g.value?-1:0)})}),gs(s,e.onResize);const{inlineThemeDisabled:Q}=e,pe=C(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:me},self:{fontWeight:je,borderRadius:oe,color:Ue,placeholderColor:lt,textColor:zt,paddingSingle:xt,paddingMultiple:pt,caretColor:ut,colorDisabled:De,textColorDisabled:Ze,placeholderColorDisabled:D,colorActive:G,boxShadowFocus:ve,boxShadowActive:Fe,boxShadowHover:Be,border:W,borderFocus:ge,borderHover:$e,borderActive:We,arrowColor:ft,arrowColorDisabled:rt,loadingColor:ne,colorActiveWarning:ze,boxShadowFocusWarning:Le,boxShadowActiveWarning:et,boxShadowHoverWarning:yt,borderWarning:bt,borderFocusWarning:Ct,borderHoverWarning:X,borderActiveWarning:ye,colorActiveError:Ke,boxShadowFocusError:Y,boxShadowActiveError:he,boxShadowHoverError:ke,borderError:Me,borderFocusError:Ne,borderHoverError:st,borderActiveError:It,clearColor:Ot,clearColorHover:Qt,clearColorPressed:oo,clearSize:jt,arrowSize:wt,[ie("height",de)]:Z,[ie("fontSize",de)]:Te}}=y.value,Oe=Nt(xt),ht=Nt(pt);return{"--n-bezier":me,"--n-border":W,"--n-border-active":We,"--n-border-focus":ge,"--n-border-hover":$e,"--n-border-radius":oe,"--n-box-shadow-active":Fe,"--n-box-shadow-focus":ve,"--n-box-shadow-hover":Be,"--n-caret-color":ut,"--n-color":Ue,"--n-color-active":G,"--n-color-disabled":De,"--n-font-size":Te,"--n-height":Z,"--n-padding-single-top":Oe.top,"--n-padding-multiple-top":ht.top,"--n-padding-single-right":Oe.right,"--n-padding-multiple-right":ht.right,"--n-padding-single-left":Oe.left,"--n-padding-multiple-left":ht.left,"--n-padding-single-bottom":Oe.bottom,"--n-padding-multiple-bottom":ht.bottom,"--n-placeholder-color":lt,"--n-placeholder-color-disabled":D,"--n-text-color":zt,"--n-text-color-disabled":Ze,"--n-arrow-color":ft,"--n-arrow-color-disabled":rt,"--n-loading-color":ne,"--n-color-active-warning":ze,"--n-box-shadow-focus-warning":Le,"--n-box-shadow-active-warning":et,"--n-box-shadow-hover-warning":yt,"--n-border-warning":bt,"--n-border-focus-warning":Ct,"--n-border-hover-warning":X,"--n-border-active-warning":ye,"--n-color-active-error":Ke,"--n-box-shadow-focus-error":Y,"--n-box-shadow-active-error":he,"--n-box-shadow-hover-error":ke,"--n-border-error":Me,"--n-border-focus-error":Ne,"--n-border-hover-error":st,"--n-border-active-error":It,"--n-clear-size":jt,"--n-clear-color":Ot,"--n-clear-color-hover":Qt,"--n-clear-color-pressed":oo,"--n-arrow-size":wt,"--n-font-weight":je}}),we=Q?it("internal-selection",C(()=>e.size[0]),pe,e):void 0;return{mergedTheme:y,mergedClearable:b,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:g,filterablePlaceholder:T,label:$,selected:R,showTagsPanel:h,isComposing:V,counterRef:u,counterWrapperRef:f,patternInputMirrorRef:n,patternInputRef:i,selfRef:s,multipleElRef:l,singleElRef:d,patternInputWrapperRef:c,overflowRef:v,inputTagElRef:p,handleMouseDown:be,handleFocusin:U,handleClear:te,handleMouseEnter:K,handleMouseLeave:le,handleDeleteOption:ce,handlePatternKeyDown:E,handlePatternInputInput:N,handlePatternInputBlur:Ie,handlePatternInputFocus:xe,handleMouseEnterCounter:ee,handleMouseLeaveCounter:ue,handleFocusout:L,handleCompositionEnd:se,handleCompositionStart:J,onPopoverUpdateShow:q,focus:Pe,focusInput:He,blur:_,blurInput:_e,updateCounter:Ge,getCounter:Xe,getTail:ct,renderLabel:e.renderLabel,cssVars:Q?void 0:pe,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{status:e,multiple:t,size:o,disabled:r,filterable:n,maxTagCount:i,bordered:s,clsPrefix:l,ellipsisTagPopoverProps:d,onRender:c,renderTag:u,renderLabel:f}=this;c==null||c();const v=i==="responsive",p=typeof i=="number",h=v||p,g=a(Ka,null,{default:()=>a(Hs,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var y,b;return(b=(y=this.$slots).arrow)===null||b===void 0?void 0:b.call(y)}})});let x;if(t){const{labelField:y}=this,b=H=>a("div",{class:`${l}-base-selection-tag-wrapper`,key:H.value},u?u({option:H,handleClose:()=>{this.handleDeleteOption(H)}}):a(jn,{size:o,closable:!H.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(H)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>f?f(H,!0):kt(H[y],H,!0)})),T=()=>(p?this.selectedOptions.slice(0,i):this.selectedOptions).map(b),$=n?a("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),a("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,R=v?()=>a("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},a(jn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let S;if(p){const H=this.selectedOptions.length-i;H>0&&(S=a("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},a(jn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${H}`})))}const w=v?n?a(Va,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:R,tail:()=>$}):a(Va,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:R}):p&&S?T().concat(S):T(),O=h?()=>a("div",{class:`${l}-base-selection-popover`},v?T():this.selectedOptions.map(b)):void 0,F=h?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},d):null,j=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},a("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,M=n?a("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},w,v?null:$,g):a("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},w,g);x=a(Gt,null,h?a(Rn,Object.assign({},F,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>M,default:O}):M,j)}else if(n){const y=this.pattern||this.isComposing,b=this.active?!y:!this.selected,T=this.active?!1:this.selected;x=a("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:hl(this.label)},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),T?a("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},a("div",{class:`${l}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):kt(this.label,this.selectedOption,!0))):null,b?a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else x=a("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?a("div",{class:`${l}-base-selection-input`,title:hl(this.label),key:"input"},a("div",{class:`${l}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):kt(this.label,this.selectedOption,!0))):a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return a("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},x,s?a("div",{class:`${l}-base-selection__border`}):null,s?a("div",{class:`${l}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Qo}=yo;function ah({duration:e=".2s",delay:t=".1s"}={}){return[k("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),k("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),k("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${Qo}, - max-width ${e} ${Qo} ${t}, - margin-left ${e} ${Qo} ${t}, - margin-right ${e} ${Qo} ${t}; - `),k("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${Qo} ${t}, - max-width ${e} ${Qo}, - margin-left ${e} ${Qo}, - margin-right ${e} ${Qo}; - `)]}const ih=m("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),lh=re({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){dr("-base-wave",ih,fe(e,"clsPrefix"));const t=B(null),o=B(!1);let r=null;return bo(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),Tt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return a("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Ns={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},sh={name:"Alert",common:Ae,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:s,textColor2:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:g,errorColorSuppl:x,fontSize:y}=e;return Object.assign(Object.assign({},Ns),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderInfo:`1px solid ${Se(p,{alpha:.35})}`,colorInfo:Se(p,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:d,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${Se(h,{alpha:.35})}`,colorSuccess:Se(h,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:l,closeColorHoverSuccess:d,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${Se(g,{alpha:.35})}`,colorWarning:Se(g,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:d,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:v,borderError:`1px solid ${Se(x,{alpha:.35})}`,colorError:Se(x,{alpha:.25}),titleTextColorError:s,iconColorError:x,contentTextColorError:l,closeColorHoverError:d,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:v})}};function dh(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,baseColor:n,dividerColor:i,actionColor:s,textColor1:l,textColor2:d,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,infoColor:h,successColor:g,warningColor:x,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},Ns),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${i}`,color:s,titleTextColor:l,iconColor:d,contentTextColor:d,closeBorderRadius:o,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,borderInfo:`1px solid ${qe(n,Se(h,{alpha:.25}))}`,colorInfo:qe(n,Se(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:d,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:f,closeIconColorHoverInfo:v,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${qe(n,Se(g,{alpha:.25}))}`,colorSuccess:qe(n,Se(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:d,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:f,closeIconColorHoverSuccess:v,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${qe(n,Se(x,{alpha:.33}))}`,colorWarning:qe(n,Se(x,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:x,contentTextColorWarning:d,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:f,closeIconColorHoverWarning:v,closeIconColorPressedWarning:p,borderError:`1px solid ${qe(n,Se(y,{alpha:.25}))}`,colorError:qe(n,Se(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:d,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:f,closeIconColorHoverError:v,closeIconColorPressedError:p})}const ch={common:dt,self:dh},{cubicBezierEaseInOut:Ao,cubicBezierEaseOut:uh,cubicBezierEaseIn:fh}=yo;function cn({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const d=l?"leave":"enter",c=l?"enter":"leave";return[k(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${d}-to`,Object.assign(Object.assign({},i),{opacity:1})),k(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${d}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),k(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Ao} ${r}, - opacity ${t} ${uh} ${r}, - margin-top ${t} ${Ao} ${r}, - margin-bottom ${t} ${Ao} ${r}, - padding-top ${t} ${Ao} ${r}, - padding-bottom ${t} ${Ao} ${r} - ${o?`,${o}`:""} - `),k(`&.fade-in-height-expand-transition-${d}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Ao}, - opacity ${t} ${fh}, - margin-top ${t} ${Ao}, - margin-bottom ${t} ${Ao}, - padding-top ${t} ${Ao}, - padding-bottom ${t} ${Ao} - ${o?`,${o}`:""} - `)]}const hh=m("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[P("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),z("closable",[m("alert-body",[P("title",` - padding-right: 24px; - `)])]),P("icon",{color:"var(--n-icon-color)"}),m("alert-body",{padding:"var(--n-padding)"},[P("title",{color:"var(--n-title-text-color)"}),P("content",{color:"var(--n-content-text-color)"})]),cn({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),P("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),P("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),z("show-icon",[m("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),z("right-adjust",[m("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),m("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[P("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[k("& +",[P("content",{marginTop:"9px"})])]),P("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),P("icon",{transition:"color .3s var(--n-bezier)"})]),vh=Object.assign(Object.assign({},Re.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),iy=re({name:"Alert",inheritAttrs:!1,props:vh,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Alert","-alert",hh,ch,e,t),s=Wt("Alert",n,t),l=C(()=>{const{common:{cubicBezierEaseInOut:p},self:h}=i.value,{fontSize:g,borderRadius:x,titleFontWeight:y,lineHeight:b,iconSize:T,iconMargin:$,iconMarginRtl:R,closeIconSize:S,closeBorderRadius:w,closeSize:O,closeMargin:F,closeMarginRtl:A,padding:j}=h,{type:M}=e,{left:H,right:U}=Nt($);return{"--n-bezier":p,"--n-color":h[ie("color",M)],"--n-close-icon-size":S,"--n-close-border-radius":w,"--n-close-color-hover":h[ie("closeColorHover",M)],"--n-close-color-pressed":h[ie("closeColorPressed",M)],"--n-close-icon-color":h[ie("closeIconColor",M)],"--n-close-icon-color-hover":h[ie("closeIconColorHover",M)],"--n-close-icon-color-pressed":h[ie("closeIconColorPressed",M)],"--n-icon-color":h[ie("iconColor",M)],"--n-border":h[ie("border",M)],"--n-title-text-color":h[ie("titleTextColor",M)],"--n-content-text-color":h[ie("contentTextColor",M)],"--n-line-height":b,"--n-border-radius":x,"--n-font-size":g,"--n-title-font-weight":y,"--n-icon-size":T,"--n-icon-margin":$,"--n-icon-margin-rtl":R,"--n-close-size":O,"--n-close-margin":F,"--n-close-margin-rtl":A,"--n-padding":j,"--n-icon-margin-left":H,"--n-icon-margin-right":U}}),d=r?it("alert",C(()=>e.type[0]),l,e):void 0,c=B(!0),u=()=>{const{onAfterLeave:p,onAfterHide:h}=e;p&&p(),h&&h()};return{rtlEnabled:s,mergedClsPrefix:t,mergedBordered:o,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(h=>{h!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:r?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a(yn,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?a("div",Object.assign({},lo(this.$attrs,r)),this.closable&&a(ur,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&a("div",{class:`${t}-alert__border`}),this.showIcon&&a("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(o.icon,()=>[a(Rt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return a(xn,null);case"info":return a(Er,null);case"warning":return a(Cn,null);case"error":return a(bn,null);default:return null}}})])),a("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},mt(o.header,n=>{const i=n||this.title;return i?a("div",{class:`${t}-alert-body__title`},i):null}),o.default&&a("div",{class:`${t}-alert-body__content`},o))):null}})}}),ph={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function gh(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:s}=e;return Object.assign(Object.assign({},ph),{borderRadius:t,railColor:o,railColorActive:r,linkColor:Se(r,{alpha:.15}),linkTextColor:s,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r})}const mh={name:"Anchor",common:Ae,self:gh},bh=xo&&"chrome"in window;xo&&navigator.userAgent.includes("Firefox");const js=xo&&navigator.userAgent.includes("Safari")&&!bh,Vs={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},wo={name:"Input",common:Ae,self(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:v,lineHeight:p,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:x,fontSizeLarge:y,heightTiny:b,heightSmall:T,heightMedium:$,heightLarge:R,clearColor:S,clearColorHover:w,clearColorPressed:O,placeholderColor:F,placeholderColorDisabled:A,iconColor:j,iconColorDisabled:M,iconColorHover:H,iconColorPressed:U,fontWeight:L}=e;return Object.assign(Object.assign({},Vs),{fontWeight:L,countTextColorDisabled:r,countTextColor:o,heightTiny:b,heightSmall:T,heightMedium:$,heightLarge:R,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:x,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:F,placeholderColorDisabled:A,color:s,colorDisabled:l,colorFocus:Se(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Se(d,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.3})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:Se(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:w,clearColorPressed:O,iconColor:j,iconColorDisabled:M,iconColorHover:H,iconColorPressed:U,suffixTextColor:t})}};function xh(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:l,borderColor:d,warningColor:c,warningColorHover:u,errorColor:f,errorColorHover:v,borderRadius:p,lineHeight:h,fontSizeTiny:g,fontSizeSmall:x,fontSizeMedium:y,fontSizeLarge:b,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:S,actionColor:w,clearColor:O,clearColorHover:F,clearColorPressed:A,placeholderColor:j,placeholderColorDisabled:M,iconColor:H,iconColorDisabled:U,iconColorHover:L,iconColorPressed:te,fontWeight:K}=e;return Object.assign(Object.assign({},Vs),{fontWeight:K,countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:S,fontSizeTiny:g,fontSizeSmall:x,fontSizeMedium:y,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:w,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:j,placeholderColorDisabled:M,color:s,colorDisabled:l,colorFocus:s,groupLabelBorder:`1px solid ${d}`,border:`1px solid ${d}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${d}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Se(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Se(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${v}`,colorFocusError:s,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${Se(f,{alpha:.2})}`,caretColorError:f,clearColor:O,clearColorHover:F,clearColorPressed:A,iconColor:H,iconColorDisabled:U,iconColorHover:L,iconColorPressed:te,suffixTextColor:t})}const vr={name:"Input",common:dt,self:xh},Ws="n-input",Ch=m("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[P("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),P("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),P("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),k("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),k("&:-webkit-autofill ~",[P("placeholder","display: none;")])]),z("round",[at("textarea","border-radius: calc(var(--n-height) / 2);")]),P("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[k("span",` - width: 100%; - display: inline-block; - `)]),z("textarea",[P("placeholder","overflow: visible;")]),at("autosize","width: 100%;"),z("autosize",[P("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),m("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),P("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),P("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[k("&[type=password]::-ms-reveal","display: none;"),k("+",[P("placeholder",` - display: flex; - align-items: center; - `)])]),at("textarea",[P("placeholder","white-space: nowrap;")]),P("eye",` - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `),z("textarea","width: 100%;",[m("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),z("resizable",[m("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),P("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - scroll-padding-block-end: var(--n-padding-vertical); - `),P("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),z("pair",[P("input-el, placeholder","text-align: center;"),P("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[m("icon",` - color: var(--n-icon-color); - `),m("base-icon",` - color: var(--n-icon-color); - `)])]),z("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[P("border","border: var(--n-border-disabled);"),P("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),P("placeholder","color: var(--n-placeholder-color-disabled);"),P("separator","color: var(--n-text-color-disabled);",[m("icon",` - color: var(--n-icon-color-disabled); - `),m("base-icon",` - color: var(--n-icon-color-disabled); - `)]),m("input-word-count",` - color: var(--n-count-text-color-disabled); - `),P("suffix, prefix","color: var(--n-text-color-disabled);",[m("icon",` - color: var(--n-icon-color-disabled); - `),m("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),at("disabled",[P("eye",` - color: var(--n-icon-color); - cursor: pointer; - `,[k("&:hover",` - color: var(--n-icon-color-hover); - `),k("&:active",` - color: var(--n-icon-color-pressed); - `)]),k("&:hover",[P("state-border","border: var(--n-border-hover);")]),z("focus","background-color: var(--n-color-focus);",[P("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),P("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),P("state-border",` - border-color: #0000; - z-index: 1; - `),P("prefix","margin-right: 4px;"),P("suffix",` - margin-left: 4px; - `),P("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[m("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),m("base-clear",` - font-size: var(--n-icon-size); - `,[P("placeholder",[m("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),k(">",[m("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),m("base-icon",` - font-size: var(--n-icon-size); - `)]),m("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>z(`${e}-status`,[at("disabled",[m("base-loading",` - color: var(--n-loading-color-${e}) - `),P("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),P("state-border",` - border: var(--n-border-${e}); - `),k("&:hover",[P("state-border",` - border: var(--n-border-hover-${e}); - `)]),k("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[P("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),z("focus",` - background-color: var(--n-color-focus-${e}); - `,[P("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),yh=m("input",[z("disabled",[P("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]);function wh(e){let t=0;for(const o of e)t++;return t}function Fn(e){return e===""||e==null}function Sh(e){const t=B(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:s,selectionEnd:l,value:d}=i;if(s==null||l==null){n();return}t.value={start:s,end:l,beforeText:d.slice(0,s),afterText:d.slice(l)}}function r(){var i;const{value:s}=t,{value:l}=e;if(!s||!l)return;const{value:d}=l,{start:c,beforeText:u,afterText:f}=s;let v=d.length;if(d.endsWith(f))v=d.length-f.length;else if(d.startsWith(u))v=u.length;else{const p=u[c-1],h=d.indexOf(p,c-1);h!==-1&&(v=h+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,v,v)}function n(){t.value=null}return gt(e,n),{recordCursor:o,restoreCursor:r}}const kl=re({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:n,countGraphemesRef:i}=Ee(Ws),s=C(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||wh)(l)});return()=>{const{value:l}=r,{value:d}=o;return a("span",{class:`${n.value}-input-word-count`},io(t.default,{value:d===null||Array.isArray(d)?"":d},()=>[l===void 0?s.value:`${s.value} / ${l}`]))}}}),kh=Object.assign(Object.assign({},Re.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Do=re({name:"Input",props:kh,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Input","-input",Ch,vr,e,t);js&&dr("-input-safari",yh,t);const s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=Sh(v),h=B(null),{localeRef:g}=To("Input"),x=B(e.defaultValue),y=fe(e,"value"),b=$t(y,x),T=Co(e),{mergedSizeRef:$,mergedDisabledRef:R,mergedStatusRef:S}=T,w=B(!1),O=B(!1),F=B(!1),A=B(!1);let j=null;const M=C(()=>{const{placeholder:X,pair:ye}=e;return ye?Array.isArray(X)?X:X===void 0?["",""]:[X,X]:X===void 0?[g.value.placeholder]:[X]}),H=C(()=>{const{value:X}=F,{value:ye}=b,{value:Ke}=M;return!X&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[0]))&&Ke[0]}),U=C(()=>{const{value:X}=F,{value:ye}=b,{value:Ke}=M;return!X&&Ke[1]&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[1]))}),L=tt(()=>e.internalForceFocus||w.value),te=tt(()=>{if(R.value||e.readonly||!e.clearable||!L.value&&!O.value)return!1;const{value:X}=b,{value:ye}=L;return e.pair?!!(Array.isArray(X)&&(X[0]||X[1]))&&(O.value||ye):!!X&&(O.value||ye)}),K=C(()=>{const{showPasswordOn:X}=e;if(X)return X;if(e.showPasswordToggle)return"click"}),le=B(!1),be=C(()=>{const{textDecoration:X}=e;return X?Array.isArray(X)?X.map(ye=>({textDecoration:ye})):[{textDecoration:X}]:["",""]}),ce=B(void 0),V=()=>{var X,ye;if(e.type==="textarea"){const{autosize:Ke}=e;if(Ke&&(ce.value=(ye=(X=h.value)===null||X===void 0?void 0:X.$el)===null||ye===void 0?void 0:ye.offsetWidth),!l.value||typeof Ke=="boolean")return;const{paddingTop:Y,paddingBottom:he,lineHeight:ke}=window.getComputedStyle(l.value),Me=Number(Y.slice(0,-2)),Ne=Number(he.slice(0,-2)),st=Number(ke.slice(0,-2)),{value:It}=d;if(!It)return;if(Ke.minRows){const Ot=Math.max(Ke.minRows,1),Qt=`${Me+Ne+st*Ot}px`;It.style.minHeight=Qt}if(Ke.maxRows){const Ot=`${Me+Ne+st*Ke.maxRows}px`;It.style.maxHeight=Ot}}},E=C(()=>{const{maxlength:X}=e;return X===void 0?void 0:Number(X)});to(()=>{const{value:X}=b;Array.isArray(X)||We(X)});const I=di().proxy;function N(X,ye){const{onUpdateValue:Ke,"onUpdate:value":Y,onInput:he}=e,{nTriggerFormInput:ke}=T;Ke&&ae(Ke,X,ye),Y&&ae(Y,X,ye),he&&ae(he,X,ye),x.value=X,ke()}function J(X,ye){const{onChange:Ke}=e,{nTriggerFormChange:Y}=T;Ke&&ae(Ke,X,ye),x.value=X,Y()}function se(X){const{onBlur:ye}=e,{nTriggerFormBlur:Ke}=T;ye&&ae(ye,X),Ke()}function xe(X){const{onFocus:ye}=e,{nTriggerFormFocus:Ke}=T;ye&&ae(ye,X),Ke()}function Ie(X){const{onClear:ye}=e;ye&&ae(ye,X)}function _(X){const{onInputBlur:ye}=e;ye&&ae(ye,X)}function Pe(X){const{onInputFocus:ye}=e;ye&&ae(ye,X)}function He(){const{onDeactivate:X}=e;X&&ae(X)}function _e(){const{onActivate:X}=e;X&&ae(X)}function Ge(X){const{onClick:ye}=e;ye&&ae(ye,X)}function Xe(X){const{onWrapperFocus:ye}=e;ye&&ae(ye,X)}function ct(X){const{onWrapperBlur:ye}=e;ye&&ae(ye,X)}function ot(){F.value=!0}function Ce(X){F.value=!1,X.target===f.value?ee(X,1):ee(X,0)}function ee(X,ye=0,Ke="input"){const Y=X.target.value;if(We(Y),X instanceof InputEvent&&!X.isComposing&&(F.value=!1),e.type==="textarea"){const{value:ke}=h;ke&&ke.syncUnifiedContainer()}if(j=Y,F.value)return;p.recordCursor();const he=ue(Y);if(he)if(!e.pair)Ke==="input"?N(Y,{source:ye}):J(Y,{source:ye});else{let{value:ke}=b;Array.isArray(ke)?ke=[ke[0],ke[1]]:ke=["",""],ke[ye]=Y,Ke==="input"?N(ke,{source:ye}):J(ke,{source:ye})}I.$forceUpdate(),he||Tt(p.restoreCursor)}function ue(X){const{countGraphemes:ye,maxlength:Ke,minlength:Y}=e;if(ye){let ke;if(Ke!==void 0&&(ke===void 0&&(ke=ye(X)),ke>Number(Ke))||Y!==void 0&&(ke===void 0&&(ke=ye(X)),ke{Y.preventDefault(),Yt("mouseup",document,ye)};if(Lt("mouseup",document,ye),K.value!=="mousedown")return;le.value=!0;const Ke=()=>{le.value=!1,Yt("mouseup",document,Ke)};Lt("mouseup",document,Ke)}function De(X){e.onKeyup&&ae(e.onKeyup,X)}function Ze(X){switch(e.onKeydown&&ae(e.onKeydown,X),X.key){case"Escape":G();break;case"Enter":D(X);break}}function D(X){var ye,Ke;if(e.passivelyActivated){const{value:Y}=A;if(Y){e.internalDeactivateOnEnter&&G();return}X.preventDefault(),e.type==="textarea"?(ye=l.value)===null||ye===void 0||ye.focus():(Ke=u.value)===null||Ke===void 0||Ke.focus()}}function G(){e.passivelyActivated&&(A.value=!1,Tt(()=>{var X;(X=s.value)===null||X===void 0||X.focus()}))}function ve(){var X,ye,Ke;R.value||(e.passivelyActivated?(X=s.value)===null||X===void 0||X.focus():((ye=l.value)===null||ye===void 0||ye.focus(),(Ke=u.value)===null||Ke===void 0||Ke.focus()))}function Fe(){var X;!((X=s.value)===null||X===void 0)&&X.contains(document.activeElement)&&document.activeElement.blur()}function Be(){var X,ye;(X=l.value)===null||X===void 0||X.select(),(ye=u.value)===null||ye===void 0||ye.select()}function W(){R.value||(l.value?l.value.focus():u.value&&u.value.focus())}function ge(){const{value:X}=s;X!=null&&X.contains(document.activeElement)&&X!==document.activeElement&&G()}function $e(X){if(e.type==="textarea"){const{value:ye}=l;ye==null||ye.scrollTo(X)}else{const{value:ye}=u;ye==null||ye.scrollTo(X)}}function We(X){const{type:ye,pair:Ke,autosize:Y}=e;if(!Ke&&Y)if(ye==="textarea"){const{value:he}=d;he&&(he.textContent=`${X??""}\r -`)}else{const{value:he}=c;he&&(X?he.textContent=X:he.innerHTML=" ")}}function ft(){V()}const rt=B({top:"0"});function ne(X){var ye;const{scrollTop:Ke}=X.target;rt.value.top=`${-Ke}px`,(ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer()}let ze=null;Ft(()=>{const{autosize:X,type:ye}=e;X&&ye==="textarea"?ze=gt(b,Ke=>{!Array.isArray(Ke)&&Ke!==j&&We(Ke)}):ze==null||ze()});let Le=null;Ft(()=>{e.type==="textarea"?Le=gt(b,X=>{var ye;!Array.isArray(X)&&X!==j&&((ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer())}):Le==null||Le()}),Je(Ws,{mergedValueRef:b,maxlengthRef:E,mergedClsPrefixRef:t,countGraphemesRef:fe(e,"countGraphemes")});const et={wrapperElRef:s,inputElRef:u,textareaElRef:l,isCompositing:F,clear:Ue,focus:ve,blur:Fe,select:Be,deactivate:ge,activate:W,scrollTo:$e},yt=Wt("Input",n,t),bt=C(()=>{const{value:X}=$,{common:{cubicBezierEaseInOut:ye},self:{color:Ke,borderRadius:Y,textColor:he,caretColor:ke,caretColorError:Me,caretColorWarning:Ne,textDecorationColor:st,border:It,borderDisabled:Ot,borderHover:Qt,borderFocus:oo,placeholderColor:jt,placeholderColorDisabled:wt,lineHeightTextarea:Z,colorDisabled:Te,colorFocus:Oe,textColorDisabled:ht,boxShadowFocus:Ut,iconSize:Pt,colorFocusWarning:So,boxShadowFocusWarning:Fo,borderWarning:go,borderFocusWarning:Kr,borderHoverWarning:qr,colorFocusError:Yr,boxShadowFocusError:Gr,borderError:Xr,borderFocusError:Zr,borderHoverError:sa,clearSize:Qc,clearColor:Jc,clearColorHover:eu,clearColorPressed:tu,iconColor:ou,iconColorDisabled:ru,suffixTextColor:nu,countTextColor:au,countTextColorDisabled:iu,iconColorHover:lu,iconColorPressed:su,loadingColor:du,loadingColorError:cu,loadingColorWarning:uu,fontWeight:fu,[ie("padding",X)]:hu,[ie("fontSize",X)]:vu,[ie("height",X)]:pu}}=i.value,{left:gu,right:mu}=Nt(hu);return{"--n-bezier":ye,"--n-count-text-color":au,"--n-count-text-color-disabled":iu,"--n-color":Ke,"--n-font-size":vu,"--n-font-weight":fu,"--n-border-radius":Y,"--n-height":pu,"--n-padding-left":gu,"--n-padding-right":mu,"--n-text-color":he,"--n-caret-color":ke,"--n-text-decoration-color":st,"--n-border":It,"--n-border-disabled":Ot,"--n-border-hover":Qt,"--n-border-focus":oo,"--n-placeholder-color":jt,"--n-placeholder-color-disabled":wt,"--n-icon-size":Pt,"--n-line-height-textarea":Z,"--n-color-disabled":Te,"--n-color-focus":Oe,"--n-text-color-disabled":ht,"--n-box-shadow-focus":Ut,"--n-loading-color":du,"--n-caret-color-warning":Ne,"--n-color-focus-warning":So,"--n-box-shadow-focus-warning":Fo,"--n-border-warning":go,"--n-border-focus-warning":Kr,"--n-border-hover-warning":qr,"--n-loading-color-warning":uu,"--n-caret-color-error":Me,"--n-color-focus-error":Yr,"--n-box-shadow-focus-error":Gr,"--n-border-error":Xr,"--n-border-focus-error":Zr,"--n-border-hover-error":sa,"--n-loading-color-error":cu,"--n-clear-color":Jc,"--n-clear-size":Qc,"--n-clear-color-hover":eu,"--n-clear-color-pressed":tu,"--n-icon-color":ou,"--n-icon-color-hover":lu,"--n-icon-color-pressed":su,"--n-icon-color-disabled":ru,"--n-suffix-text-color":nu}}),Ct=r?it("input",C(()=>{const{value:X}=$;return X[0]}),bt,e):void 0;return Object.assign(Object.assign({},et),{wrapperElRef:s,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:yt,uncontrolledValue:x,mergedValue:b,passwordVisible:le,mergedPlaceholder:M,showPlaceholder1:H,showPlaceholder2:U,mergedFocus:L,isComposing:F,activated:A,showClearButton:te,mergedSize:$,mergedDisabled:R,textDecorationStyle:be,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:K,placeholderStyle:rt,mergedStatus:S,textAreaScrollContainerWidth:ce,handleTextAreaScroll:ne,handleCompositionStart:ot,handleCompositionEnd:Ce,handleInput:ee,handleInputBlur:q,handleInputFocus:Q,handleWrapperBlur:pe,handleWrapperFocus:we,handleMouseEnter:zt,handleMouseLeave:xt,handleMouseDown:lt,handleChange:me,handleClick:je,handleClear:oe,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:ut,handleWrapperKeydown:Ze,handleWrapperKeyup:De,handleTextAreaMirrorResize:ft,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:bt,themeClass:Ct==null?void 0:Ct.themeClass,onRender:Ct==null?void 0:Ct.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:r,themeClass:n,type:i,countGraphemes:s,onRender:l}=this,d=this.$slots;return l==null||l(),a("div",{ref:"wrapperElRef",class:[`${o}-input`,n,r&&`${o}-input--${r}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},a("div",{class:`${o}-input-wrapper`},mt(d.prefix,c=>c&&a("div",{class:`${o}-input__prefix`},c)),i==="textarea"?a(Vt,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:f}=this,v={width:this.autosize&&f&&`${f}px`};return a(Gt,null,a("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,v],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?a("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,v],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?a(_o,{onResize:this.handleTextAreaMirrorResize},{default:()=>a("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):a("div",{class:`${o}-input__input`},a("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?a("div",{class:`${o}-input__placeholder`},a("span",null,this.mergedPlaceholder[0])):null,this.autosize?a("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&mt(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?a("div",{class:`${o}-input__suffix`},[mt(d["clear-icon-placeholder"],u=>(this.clearable||u)&&a(Ya,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var f,v;return(v=(f=this.$slots)["clear-icon"])===null||v===void 0?void 0:v.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?a(Hs,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?a(kl,null,{default:u=>{var f;const{renderCount:v}=this;return v?v(u):(f=d.count)===null||f===void 0?void 0:f.call(d,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?a("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(d["password-visible-icon"],()=>[a(Rt,{clsPrefix:o},{default:()=>a(Cf,null)})]):vt(d["password-invisible-icon"],()=>[a(Rt,{clsPrefix:o},{default:()=>a(yf,null)})])):null]):null)),this.pair?a("span",{class:`${o}-input__separator`},vt(d.separator,()=>[this.separator])):null,this.pair?a("div",{class:`${o}-input-wrapper`},a("div",{class:`${o}-input__input`},a("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?a("div",{class:`${o}-input__placeholder`},a("span",null,this.mergedPlaceholder[1])):null),mt(d.suffix,c=>(this.clearable||c)&&a("div",{class:`${o}-input__suffix`},[this.clearable&&a(Ya,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=d["clear-icon"])===null||u===void 0?void 0:u.call(d)},placeholder:()=>{var u;return(u=d["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(d)}}),c]))):null,this.mergedBordered?a("div",{class:`${o}-input__border`}):null,this.mergedBordered?a("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?a(kl,null,{default:c=>{var u;const{renderCount:f}=this;return f?f(c):(u=d.count)===null||u===void 0?void 0:u.call(d,c)}}):null)}}),Rh=m("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[k(">",[m("input",[k("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),k("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),m("button",[k("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[P("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),k("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[P("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),k("*",[k("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[k(">",[m("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),m("base-selection",[m("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),m("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),P("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),k("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[k(">",[m("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),m("base-selection",[m("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),m("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),P("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),zh={},Ph=re({name:"InputGroup",props:zh,setup(e){const{mergedClsPrefixRef:t}=Qe(e);return dr("-input-group",Rh,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return a("div",{class:`${e}-input-group`},this.$slots)}}),$h=m("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[P("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),Th=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),ly=re({name:"InputGroupLabel",props:Th,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(e),n=Re("Input","-input-group-label",$h,vr,e,o),i=C(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:d},self:{groupLabelColor:c,borderRadius:u,groupLabelTextColor:f,lineHeight:v,groupLabelBorder:p,[ie("fontSize",l)]:h,[ie("height",l)]:g}}=n.value;return{"--n-bezier":d,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":u,"--n-group-label-text-color":f,"--n-font-size":h,"--n-line-height":v,"--n-height":g}}),s=r?it("input-group-label",C(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:r?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?a("div",{class:`${r}-input-group-label__border`}):null)}});function Zn(e){return e.type==="group"}function Us(e){return e.type==="ignored"}function ga(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ks(e,t){return{getIsGroup:Zn,getIgnored:Us,getKey(r){return Zn(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function Fh(e,t,o,r){if(!t)return e;function n(i){if(!Array.isArray(i))return[];const s=[];for(const l of i)if(Zn(l)){const d=n(l[r]);d.length&&s.push(Object.assign({},l,{[r]:d}))}else{if(Us(l))continue;t(o,l)&&s.push(l)}return s}return n(e)}function Ih(e,t,o){const r=new Map;return e.forEach(n=>{Zn(n)?n[o].forEach(i=>{r.set(i[t],i)}):r.set(n[t],n)}),r}function Bh(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Oh={name:"AutoComplete",common:Ae,peers:{InternalSelectMenu:kn,Input:wo},self:Bh},Dh=xo&&"loading"in document.createElement("img");function Mh(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const ma=new WeakMap,ba=new WeakMap,xa=new WeakMap,Ah=(e,t,o)=>{if(!e)return()=>{};const r=Mh(t),{root:n}=r.options;let i;const s=ma.get(n);s?i=s:(i=new Map,ma.set(n,i));let l,d;i.has(r.hash)?(d=i.get(r.hash),d[1].has(e)||(l=d[0],d[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(v=>{if(v.isIntersecting){const p=ba.get(v.target),h=xa.get(v.target);p&&p(),h&&(h.value=!0)}})},r.options),l.observe(e),d=[l,new Set([e])],i.set(r.hash,d));let c=!1;const u=()=>{c||(ba.delete(e),xa.delete(e),c=!0,d[1].has(e)&&(d[0].unobserve(e),d[1].delete(e)),d[1].size<=0&&i.delete(r.hash),i.size||ma.delete(n))};return ba.set(e,u),xa.set(e,o),u};function qs(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,color:qe(r,o),colorModal:qe(u,o),colorPopover:qe(f,o)}}const _h={common:dt,self:qs},Ys={name:"Avatar",common:Ae,self:qs},Hh="n-avatar-group",Eh=m("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[jr(k("&","--n-merged-color: var(--n-color-modal);")),vn(k("&","--n-merged-color: var(--n-color-popover);")),k("img",` - width: 100%; - height: 100%; - `),P("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),m("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),P("text","line-height: 1.25")]),Lh=Object.assign(Object.assign({},Re.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),sy=re({name:"Avatar",props:Lh,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=B(!1);let n=null;const i=B(null),s=B(null),l=()=>{const{value:b}=i;if(b&&(n===null||n!==b.innerHTML)){n=b.innerHTML;const{value:T}=s;if(T){const{offsetWidth:$,offsetHeight:R}=T,{offsetWidth:S,offsetHeight:w}=b,O=.9,F=Math.min($/S*O,R/w*O,1);b.style.transform=`translateX(-50%) translateY(-50%) scale(${F})`}}},d=Ee(Hh,null),c=C(()=>{const{size:b}=e;if(b)return b;const{size:T}=d||{};return T||"medium"}),u=Re("Avatar","-avatar",Eh,_h,e,t),f=Ee(_s,null),v=C(()=>{if(d)return!0;const{round:b,circle:T}=e;return b!==void 0||T!==void 0?b||T:f?f.roundRef.value:!1}),p=C(()=>d?!0:e.bordered||!1),h=C(()=>{const b=c.value,T=v.value,$=p.value,{color:R}=e,{self:{borderRadius:S,fontSize:w,color:O,border:F,colorModal:A,colorPopover:j},common:{cubicBezierEaseInOut:M}}=u.value;let H;return typeof b=="number"?H=`${b}px`:H=u.value.self[ie("height",b)],{"--n-font-size":w,"--n-border":$?F:"none","--n-border-radius":T?"50%":S,"--n-color":R||O,"--n-color-modal":R||A,"--n-color-popover":R||j,"--n-bezier":M,"--n-merged-size":`var(--n-avatar-size-override, ${H})`}}),g=o?it("avatar",C(()=>{const b=c.value,T=v.value,$=p.value,{color:R}=e;let S="";return b&&(typeof b=="number"?S+=`a${b}`:S+=b[0]),T&&(S+="b"),$&&(S+="c"),R&&(S+=sn(R)),S}),h,e):void 0,x=B(!e.lazy);to(()=>{if(e.lazy&&e.intersectionObserverOptions){let b;const T=Ft(()=>{b==null||b(),b=void 0,e.lazy&&(b=Ah(s.value,e.intersectionObserverOptions,x))});bo(()=>{T(),b==null||b()})}}),gt(()=>{var b;return e.src||((b=e.imgProps)===null||b===void 0?void 0:b.src)},()=>{r.value=!1});const y=B(!e.lazy);return{textRef:i,selfRef:s,mergedRoundRef:v,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:h,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:r,shouldStartLoading:x,loaded:y,mergedOnError:b=>{if(!x.value)return;r.value=!0;const{onError:T,imgProps:{onError:$}={}}=e;T==null||T(b),$==null||$(b)},mergedOnLoad:b=>{const{onLoad:T,imgProps:{onLoad:$}={}}=e;T==null||T(b),$==null||$(b),y.value=!0}}},render(){var e,t;const{$slots:o,src:r,mergedClsPrefix:n,lazy:i,onRender:s,loaded:l,hasLoadError:d,imgProps:c={}}=this;s==null||s();let u;const f=!l&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():vt(o.fallback,()=>[a("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=mt(o.default,v=>{if(v)return a(_o,{onResize:this.fitTextTransform},{default:()=>a("span",{ref:"textRef",class:`${n}-avatar__text`},v)});if(r||c.src){const p=this.src||c.src;return a("img",Object.assign(Object.assign({},c),{loading:Dh&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?p:void 0:p,"data-image-src":p,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),a("span",{ref:"selfRef",class:[`${n}-avatar`,this.themeClass],style:this.cssVars},u,i&&f)}});function Nh(){return{gap:"-12px"}}const jh={name:"AvatarGroup",common:Ae,peers:{Avatar:Ys},self:Nh},Vh={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Wh={name:"BackTop",common:Ae,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},Vh),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Uh={name:"Badge",common:Ae,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},Kh={fontWeightActive:"400"};function Gs(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:s}=e;return Object.assign(Object.assign({},Kh),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:s,separatorColor:o})}const qh={common:dt,self:Gs},Yh={name:"Breadcrumb",common:Ae,self:Gs},Gh=m("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[k("ul",` - list-style: none; - padding: 0; - margin: 0; - `),k("a",` - color: inherit; - text-decoration: inherit; - `),m("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[m("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),k("&:not(:last-child)",[z("clickable",[P("link",` - cursor: pointer; - `,[k("&:hover",` - background-color: var(--n-item-color-hover); - `),k("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),P("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[k("&:hover",` - color: var(--n-item-text-color-hover); - `,[m("icon",` - color: var(--n-item-text-color-hover); - `)]),k("&:active",` - color: var(--n-item-text-color-pressed); - `,[m("icon",` - color: var(--n-item-text-color-pressed); - `)])]),P("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),k("&:last-child",[P("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[m("icon",` - color: var(--n-item-text-color-active); - `)]),P("separator",` - display: none; - `)])])]),Xs="n-breadcrumb",Xh=Object.assign(Object.assign({},Re.props),{separator:{type:String,default:"/"}}),dy=re({name:"Breadcrumb",props:Xh,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Breadcrumb","-breadcrumb",Gh,qh,e,t);Je(Xs,{separatorRef:fe(e,"separator"),mergedClsPrefixRef:t});const n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{separatorColor:l,itemTextColor:d,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:f,fontSize:v,fontWeightActive:p,itemBorderRadius:h,itemColorHover:g,itemColorPressed:x,itemLineHeight:y}}=r.value;return{"--n-font-size":v,"--n-bezier":s,"--n-item-text-color":d,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":x,"--n-item-border-radius":h,"--n-font-weight-active":p,"--n-item-line-height":y}}),i=o?it("breadcrumb",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},a("ul",null,this.$slots))}});function Zh(e=xo?window:null){const t=()=>{const{hash:n,host:i,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}=(e==null?void 0:e.location)||{};return{hash:n,host:i,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}},o=B(t()),r=()=>{o.value=t()};return to(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),Jn(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),o}const Qh={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},cy=re({name:"BreadcrumbItem",props:Qh,slots:Object,setup(e,{slots:t}){const o=Ee(Xs,null);if(!o)return()=>null;const{separatorRef:r,mergedClsPrefixRef:n}=o,i=Zh(),s=C(()=>e.href?"a":"span"),l=C(()=>i.value.href===e.href?"location":null);return()=>{const{value:d}=n;return a("li",{class:[`${d}-breadcrumb-item`,e.clickable&&`${d}-breadcrumb-item--clickable`]},a(s.value,{class:`${d}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),a("span",{class:`${d}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function mr(e){return qe(e,[255,255,255,.16])}function In(e){return qe(e,[0,0,0,.12])}const Jh="n-button-group",ev={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function Zs(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:v,primaryColorHover:p,primaryColorPressed:h,borderColor:g,primaryColor:x,baseColor:y,infoColor:b,infoColorHover:T,infoColorPressed:$,successColor:R,successColorHover:S,successColorPressed:w,warningColor:O,warningColorHover:F,warningColorPressed:A,errorColor:j,errorColorHover:M,errorColorPressed:H,fontWeight:U,buttonColor2:L,buttonColor2Hover:te,buttonColor2Pressed:K,fontWeightStrong:le}=e;return Object.assign(Object.assign({},ev),{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:L,colorSecondaryHover:te,colorSecondaryPressed:K,colorTertiary:L,colorTertiaryHover:te,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:te,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:v,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${g}`,rippleColor:x,colorPrimary:x,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:x,textColorPrimary:y,textColorHoverPrimary:y,textColorPressedPrimary:y,textColorFocusPrimary:y,textColorDisabledPrimary:y,textColorTextPrimary:x,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:x,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:x,borderPrimary:`1px solid ${x}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${x}`,rippleColorPrimary:x,colorInfo:b,colorHoverInfo:T,colorPressedInfo:$,colorFocusInfo:T,colorDisabledInfo:b,textColorInfo:y,textColorHoverInfo:y,textColorPressedInfo:y,textColorFocusInfo:y,textColorDisabledInfo:y,textColorTextInfo:b,textColorTextHoverInfo:T,textColorTextPressedInfo:$,textColorTextFocusInfo:T,textColorTextDisabledInfo:f,textColorGhostInfo:b,textColorGhostHoverInfo:T,textColorGhostPressedInfo:$,textColorGhostFocusInfo:T,textColorGhostDisabledInfo:b,borderInfo:`1px solid ${b}`,borderHoverInfo:`1px solid ${T}`,borderPressedInfo:`1px solid ${$}`,borderFocusInfo:`1px solid ${T}`,borderDisabledInfo:`1px solid ${b}`,rippleColorInfo:b,colorSuccess:R,colorHoverSuccess:S,colorPressedSuccess:w,colorFocusSuccess:S,colorDisabledSuccess:R,textColorSuccess:y,textColorHoverSuccess:y,textColorPressedSuccess:y,textColorFocusSuccess:y,textColorDisabledSuccess:y,textColorTextSuccess:R,textColorTextHoverSuccess:S,textColorTextPressedSuccess:w,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:f,textColorGhostSuccess:R,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:w,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:R,borderSuccess:`1px solid ${R}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${w}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${R}`,rippleColorSuccess:R,colorWarning:O,colorHoverWarning:F,colorPressedWarning:A,colorFocusWarning:F,colorDisabledWarning:O,textColorWarning:y,textColorHoverWarning:y,textColorPressedWarning:y,textColorFocusWarning:y,textColorDisabledWarning:y,textColorTextWarning:O,textColorTextHoverWarning:F,textColorTextPressedWarning:A,textColorTextFocusWarning:F,textColorTextDisabledWarning:f,textColorGhostWarning:O,textColorGhostHoverWarning:F,textColorGhostPressedWarning:A,textColorGhostFocusWarning:F,textColorGhostDisabledWarning:O,borderWarning:`1px solid ${O}`,borderHoverWarning:`1px solid ${F}`,borderPressedWarning:`1px solid ${A}`,borderFocusWarning:`1px solid ${F}`,borderDisabledWarning:`1px solid ${O}`,rippleColorWarning:O,colorError:j,colorHoverError:M,colorPressedError:H,colorFocusError:M,colorDisabledError:j,textColorError:y,textColorHoverError:y,textColorPressedError:y,textColorFocusError:y,textColorDisabledError:y,textColorTextError:j,textColorTextHoverError:M,textColorTextPressedError:H,textColorTextFocusError:M,textColorTextDisabledError:f,textColorGhostError:j,textColorGhostHoverError:M,textColorGhostPressedError:H,textColorGhostFocusError:M,textColorGhostDisabledError:j,borderError:`1px solid ${j}`,borderHoverError:`1px solid ${M}`,borderPressedError:`1px solid ${H}`,borderFocusError:`1px solid ${M}`,borderDisabledError:`1px solid ${j}`,rippleColorError:j,waveOpacity:"0.6",fontWeight:U,fontWeightStrong:le})}const pr={name:"Button",common:dt,self:Zs},po={name:"Button",common:Ae,self(e){const t=Zs(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},tv=k([m("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[z("color",[P("border",{borderColor:"var(--n-border-color)"}),z("disabled",[P("border",{borderColor:"var(--n-border-color-disabled)"})]),at("disabled",[k("&:focus",[P("state-border",{borderColor:"var(--n-border-color-focus)"})]),k("&:hover",[P("state-border",{borderColor:"var(--n-border-color-hover)"})]),k("&:active",[P("state-border",{borderColor:"var(--n-border-color-pressed)"})]),z("pressed",[P("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),z("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[P("border",{border:"var(--n-border-disabled)"})]),at("disabled",[k("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[P("state-border",{border:"var(--n-border-focus)"})]),k("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[P("state-border",{border:"var(--n-border-hover)"})]),k("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[P("state-border",{border:"var(--n-border-pressed)"})]),z("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[P("state-border",{border:"var(--n-border-pressed)"})])]),z("loading","cursor: wait;"),m("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[z("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),xo&&"MozBoxSizing"in document.createElement("div").style?k("&::moz-focus-inner",{border:0}):null,P("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),P("border",{border:"var(--n-border)"}),P("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),P("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[m("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[fo({top:"50%",originalTransform:"translateY(-50%)"})]),ah()]),P("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[k("~",[P("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),z("block",` - display: flex; - width: 100%; - `),z("dashed",[P("border, state-border",{borderStyle:"dashed !important"})]),z("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),k("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),k("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),ov=Object.assign(Object.assign({},Re.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!js}}),At=re({name:"Button",props:ov,slots:Object,setup(e){const t=B(null),o=B(null),r=B(!1),n=tt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ee(Jh,{}),{mergedSizeRef:s}=Co({},{defaultSize:"medium",mergedSize:$=>{const{size:R}=e;if(R)return R;const{size:S}=i;if(S)return S;const{mergedSize:w}=$||{};return w?w.value:"medium"}}),l=C(()=>e.focusable&&!e.disabled),d=$=>{var R;l.value||$.preventDefault(),!e.nativeFocusBehavior&&($.preventDefault(),!e.disabled&&l.value&&((R=t.value)===null||R===void 0||R.focus({preventScroll:!0})))},c=$=>{var R;if(!e.disabled&&!e.loading){const{onClick:S}=e;S&&ae(S,$),e.text||(R=o.value)===null||R===void 0||R.play()}},u=$=>{switch($.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=$=>{switch($.key){case"Enter":if(!e.keyboard||e.loading){$.preventDefault();return}r.value=!0}},v=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:g}=Qe(e),x=Re("Button","-button",tv,pr,e,h),y=Wt("Button",g,h),b=C(()=>{const $=x.value,{common:{cubicBezierEaseInOut:R,cubicBezierEaseOut:S},self:w}=$,{rippleDuration:O,opacityDisabled:F,fontWeight:A,fontWeightStrong:j}=w,M=s.value,{dashed:H,type:U,ghost:L,text:te,color:K,round:le,circle:be,textColor:ce,secondary:V,tertiary:E,quaternary:I,strong:N}=e,J={"--n-font-weight":N?j:A};let se={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const xe=U==="tertiary",Ie=U==="default",_=xe?"default":U;if(te){const q=ce||K;se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":q||w[ie("textColorText",_)],"--n-text-color-hover":q?mr(q):w[ie("textColorTextHover",_)],"--n-text-color-pressed":q?In(q):w[ie("textColorTextPressed",_)],"--n-text-color-focus":q?mr(q):w[ie("textColorTextHover",_)],"--n-text-color-disabled":q||w[ie("textColorTextDisabled",_)]}}else if(L||H){const q=ce||K;se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||w[ie("rippleColor",_)],"--n-text-color":q||w[ie("textColorGhost",_)],"--n-text-color-hover":q?mr(q):w[ie("textColorGhostHover",_)],"--n-text-color-pressed":q?In(q):w[ie("textColorGhostPressed",_)],"--n-text-color-focus":q?mr(q):w[ie("textColorGhostHover",_)],"--n-text-color-disabled":q||w[ie("textColorGhostDisabled",_)]}}else if(V){const q=Ie?w.textColor:xe?w.textColorTertiary:w[ie("color",_)],Q=K||q,pe=U!=="default"&&U!=="tertiary";se={"--n-color":pe?Se(Q,{alpha:Number(w.colorOpacitySecondary)}):w.colorSecondary,"--n-color-hover":pe?Se(Q,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-pressed":pe?Se(Q,{alpha:Number(w.colorOpacitySecondaryPressed)}):w.colorSecondaryPressed,"--n-color-focus":pe?Se(Q,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-disabled":w.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Q,"--n-text-color-hover":Q,"--n-text-color-pressed":Q,"--n-text-color-focus":Q,"--n-text-color-disabled":Q}}else if(E||I){const q=Ie?w.textColor:xe?w.textColorTertiary:w[ie("color",_)],Q=K||q;E?(se["--n-color"]=w.colorTertiary,se["--n-color-hover"]=w.colorTertiaryHover,se["--n-color-pressed"]=w.colorTertiaryPressed,se["--n-color-focus"]=w.colorSecondaryHover,se["--n-color-disabled"]=w.colorTertiary):(se["--n-color"]=w.colorQuaternary,se["--n-color-hover"]=w.colorQuaternaryHover,se["--n-color-pressed"]=w.colorQuaternaryPressed,se["--n-color-focus"]=w.colorQuaternaryHover,se["--n-color-disabled"]=w.colorQuaternary),se["--n-ripple-color"]="#0000",se["--n-text-color"]=Q,se["--n-text-color-hover"]=Q,se["--n-text-color-pressed"]=Q,se["--n-text-color-focus"]=Q,se["--n-text-color-disabled"]=Q}else se={"--n-color":K||w[ie("color",_)],"--n-color-hover":K?mr(K):w[ie("colorHover",_)],"--n-color-pressed":K?In(K):w[ie("colorPressed",_)],"--n-color-focus":K?mr(K):w[ie("colorFocus",_)],"--n-color-disabled":K||w[ie("colorDisabled",_)],"--n-ripple-color":K||w[ie("rippleColor",_)],"--n-text-color":ce||(K?w.textColorPrimary:xe?w.textColorTertiary:w[ie("textColor",_)]),"--n-text-color-hover":ce||(K?w.textColorHoverPrimary:w[ie("textColorHover",_)]),"--n-text-color-pressed":ce||(K?w.textColorPressedPrimary:w[ie("textColorPressed",_)]),"--n-text-color-focus":ce||(K?w.textColorFocusPrimary:w[ie("textColorFocus",_)]),"--n-text-color-disabled":ce||(K?w.textColorDisabledPrimary:w[ie("textColorDisabled",_)])};let Pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};te?Pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Pe={"--n-border":w[ie("border",_)],"--n-border-hover":w[ie("borderHover",_)],"--n-border-pressed":w[ie("borderPressed",_)],"--n-border-focus":w[ie("borderFocus",_)],"--n-border-disabled":w[ie("borderDisabled",_)]};const{[ie("height",M)]:He,[ie("fontSize",M)]:_e,[ie("padding",M)]:Ge,[ie("paddingRound",M)]:Xe,[ie("iconSize",M)]:ct,[ie("borderRadius",M)]:ot,[ie("iconMargin",M)]:Ce,waveOpacity:ee}=w,ue={"--n-width":be&&!te?He:"initial","--n-height":te?"initial":He,"--n-font-size":_e,"--n-padding":be||te?"initial":le?Xe:Ge,"--n-icon-size":ct,"--n-icon-margin":Ce,"--n-border-radius":te?"initial":be||le?He:ot};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":R,"--n-bezier-ease-out":S,"--n-ripple-duration":O,"--n-opacity-disabled":F,"--n-wave-opacity":ee},J),se),Pe),ue)}),T=p?it("button",C(()=>{let $="";const{dashed:R,type:S,ghost:w,text:O,color:F,round:A,circle:j,textColor:M,secondary:H,tertiary:U,quaternary:L,strong:te}=e;R&&($+="a"),w&&($+="b"),O&&($+="c"),A&&($+="d"),j&&($+="e"),H&&($+="f"),U&&($+="g"),L&&($+="h"),te&&($+="i"),F&&($+=`j${sn(F)}`),M&&($+=`k${sn(M)}`);const{value:K}=s;return $+=`l${K[0]}`,$+=`m${S[0]}`,$}),b,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:h,mergedFocusable:l,mergedSize:s,showBorder:n,enterPressed:r,rtlEnabled:y,handleMousedown:d,handleKeydown:f,handleBlur:v,handleKeyup:u,handleClick:c,customColorCssVars:C(()=>{const{color:$}=e;if(!$)return null;const R=mr($);return{"--n-border-color":$,"--n-border-color-hover":R,"--n-border-color-pressed":In($),"--n-border-color-focus":R,"--n-border-color-disabled":$}}),cssVars:p?void 0:b,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const r=mt(this.$slots.default,n=>n&&a("span",{class:`${e}-button__content`},n));return a(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,a(yn,{width:!0},{default:()=>mt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&a("span",{class:`${e}-button__icon`,style:{margin:_r(this.$slots.default)?"0":""}},a(cr,null,{default:()=>this.loading?a(Zo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):a("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&r,this.text?null:a(lh,{ref:"waveElRef",clsPrefix:e}),this.showBorder?a("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?a("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Ho=At,rv={date:ku,month:fn,year:Zl,quarter:Ql};function nv(e){return(t,o)=>{const r=(e+1)%7;return Ru(t,o,{weekStartsOn:r})}}function ao(e,t,o,r=0){return(o==="week"?nv(r):rv[o])(e,t)}function Ca(e,t,o,r,n,i){return n==="date"?av(e,t,o,r):iv(e,t,o,r,i)}function av(e,t,o,r){let n=!1,i=!1,s=!1;Array.isArray(o)&&(o[0]",[P("content",{paddingTop:"var(--n-padding-bottom)"})])]),z("content-soft-segmented",[k(">",[P("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),z("footer-segmented",[k(">",[P("footer",{paddingTop:"var(--n-padding-bottom)"})])]),z("footer-soft-segmented",[k(">",[P("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),k(">",[m("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[P("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),P("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),P("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),P("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),P("content","flex: 1; min-width: 0;"),P("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[k("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),P("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),m("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[k("img",` - display: block; - width: 100%; - `)]),z("bordered",` - border: 1px solid var(--n-border-color); - `,[k("&:target","border-color: var(--n-color-target);")]),z("action-segmented",[k(">",[P("action",[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("content-segmented, content-soft-segmented",[k(">",[P("content",{transition:"border-color 0.3s var(--n-bezier)"},[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("footer-segmented, footer-soft-segmented",[k(">",[P("footer",{transition:"border-color 0.3s var(--n-bezier)"},[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("embedded",` - background-color: var(--n-color-embedded); - `)]),jr(m("card",` - background: var(--n-color-modal); - `,[z("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),vn(m("card",` - background: var(--n-color-popover); - `,[z("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),Ri={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},pv=Po(Ri),gv=Object.assign(Object.assign({},Re.props),Ri),mv=re({name:"Card",props:gv,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&ae(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n}=Qe(e),i=Re("Card","-card",vv,od,e,r),s=Wt("Card",n,r),l=C(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:v,textColor:p,titleTextColor:h,titleFontWeight:g,borderColor:x,actionColor:y,borderRadius:b,lineHeight:T,closeIconColor:$,closeIconColorHover:R,closeIconColorPressed:S,closeColorHover:w,closeColorPressed:O,closeBorderRadius:F,closeIconSize:A,closeSize:j,boxShadow:M,colorPopover:H,colorEmbedded:U,colorEmbeddedModal:L,colorEmbeddedPopover:te,[ie("padding",c)]:K,[ie("fontSize",c)]:le,[ie("titleFontSize",c)]:be},common:{cubicBezierEaseInOut:ce}}=i.value,{top:V,left:E,bottom:I}=Nt(K);return{"--n-bezier":ce,"--n-border-radius":b,"--n-color":u,"--n-color-modal":f,"--n-color-popover":H,"--n-color-embedded":U,"--n-color-embedded-modal":L,"--n-color-embedded-popover":te,"--n-color-target":v,"--n-text-color":p,"--n-line-height":T,"--n-action-color":y,"--n-title-text-color":h,"--n-title-font-weight":g,"--n-close-icon-color":$,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":S,"--n-close-color-hover":w,"--n-close-color-pressed":O,"--n-border-color":x,"--n-box-shadow":M,"--n-padding-top":V,"--n-padding-bottom":I,"--n-padding-left":E,"--n-font-size":le,"--n-title-font-size":be,"--n-close-size":j,"--n-close-icon-size":A,"--n-close-border-radius":F}}),d=o?it("card",C(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:s,tag:l,$slots:d}=this;return i==null||i(),a(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:o}],style:this.cssVars,role:this.role},mt(d.cover,c=>{const u=this.cover?Bo([this.cover()]):c;return u&&a("div",{class:`${r}-card-cover`,role:"none"},u)}),mt(d.header,c=>{const{title:u}=this,f=u?Bo(typeof u=="function"?[u()]:[u]):c;return f||this.closable?a("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},a("div",{class:`${r}-card-header__main`,role:"heading"},f),mt(d["header-extra"],v=>{const p=this.headerExtra?Bo([this.headerExtra()]):v;return p&&a("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},p)}),this.closable&&a(ur,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),mt(d.default,c=>{const{content:u}=this,f=u?Bo(typeof u=="function"?[u()]:[u]):c;return f&&a("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),mt(d.footer,c=>{const u=this.footer?Bo([this.footer()]):c;return u&&a("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),mt(d.action,c=>{const u=this.action?Bo([this.action()]):c;return u&&a("div",{class:`${r}-card__action`,role:"none"},u)}))}});function bv(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const xv={name:"Carousel",common:Ae,self:bv},Cv={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function nd(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:s,borderColor:l,primaryColor:d,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},Cv),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadius:p,color:t,colorChecked:d,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${d}`,borderFocus:`1px solid ${d}`,boxShadowFocus:`0 0 0 2px ${Se(d,{alpha:.3})}`,textColor:c,textColorDisabled:s})}const zi={name:"Checkbox",common:dt,self:nd},Ur={name:"Checkbox",common:Ae,self(e){const{cardColor:t}=e,o=nd(e);return o.color="#0000",o.checkMarkColor=t,o}};function yv(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:s,textColorDisabled:l,dividerColor:d,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:d,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:s,optionTextColorDisabled:l,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}}const wv={name:"Cascader",common:Ae,peers:{InternalSelectMenu:kn,InternalSelection:ki,Scrollbar:vo,Checkbox:Ur,Empty:Sn},self:yv},ad="n-checkbox-group",Sv={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},kv=re({name:"CheckboxGroup",props:Sv,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=Co(e),{mergedSizeRef:r,mergedDisabledRef:n}=o,i=B(e.defaultValue),s=C(()=>e.value),l=$t(s,i),d=C(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=C(()=>Array.isArray(l.value)?new Set(l.value):new Set);function u(f,v){const{nTriggerFormInput:p,nTriggerFormChange:h}=o,{onChange:g,"onUpdate:value":x,onUpdateValue:y}=e;if(Array.isArray(l.value)){const b=Array.from(l.value),T=b.findIndex($=>$===v);f?~T||(b.push(v),y&&ae(y,b,{actionType:"check",value:v}),x&&ae(x,b,{actionType:"check",value:v}),p(),h(),i.value=b,g&&ae(g,b)):~T&&(b.splice(T,1),y&&ae(y,b,{actionType:"uncheck",value:v}),x&&ae(x,b,{actionType:"uncheck",value:v}),g&&ae(g,b),i.value=b,p(),h())}else f?(y&&ae(y,[v],{actionType:"check",value:v}),x&&ae(x,[v],{actionType:"check",value:v}),g&&ae(g,[v]),i.value=[v],p(),h()):(y&&ae(y,[],{actionType:"uncheck",value:v}),x&&ae(x,[],{actionType:"uncheck",value:v}),g&&ae(g,[]),i.value=[],p(),h())}return Je(ad,{checkedCountRef:d,maxRef:fe(e,"max"),minRef:fe(e,"min"),valueSetRef:c,disabledRef:n,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return a("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Rv=()=>a("svg",{viewBox:"0 0 64 64",class:"check-icon"},a("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),zv=()=>a("svg",{viewBox:"0 0 100 100",class:"line-icon"},a("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),Pv=k([m("checkbox",` - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - line-height: var(--n-size); - --n-merged-color-table: var(--n-color-table); - `,[z("show-label","line-height: var(--n-label-line-height);"),k("&:hover",[m("checkbox-box",[P("border","border: var(--n-border-checked);")])]),k("&:focus:not(:active)",[m("checkbox-box",[P("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),z("inside-table",[m("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),z("checked",[m("checkbox-box",` - background-color: var(--n-color-checked); - `,[m("checkbox-icon",[k(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),z("indeterminate",[m("checkbox-box",[m("checkbox-icon",[k(".check-icon",` - opacity: 0; - transform: scale(.5); - `),k(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),z("checked, indeterminate",[k("&:focus:not(:active)",[m("checkbox-box",[P("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),m("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[P("border",{border:"var(--n-border-checked)"})])]),z("disabled",{cursor:"not-allowed"},[z("checked",[m("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[P("border",{border:"var(--n-border-disabled-checked)"}),m("checkbox-icon",[k(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),m("checkbox-box",` - background-color: var(--n-color-disabled); - `,[P("border",` - border: var(--n-border-disabled); - `),m("checkbox-icon",[k(".check-icon, .line-icon",` - fill: var(--n-check-mark-color-disabled); - `)])]),P("label",` - color: var(--n-text-color-disabled); - `)]),m("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),m("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[P("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),m("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[k(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),fo({left:"1px",top:"1px"})])]),P("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[k("&:empty",{display:"none"})])]),jr(m("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),vn(m("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),$v=Object.assign(Object.assign({},Re.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),oa=re({name:"Checkbox",props:$v,setup(e){const t=Ee(ad,null),o=B(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=B(e.defaultChecked),l=fe(e,"checked"),d=$t(l,s),c=tt(()=>{if(t){const S=t.valueSetRef.value;return S&&e.value!==void 0?S.has(e.value):!1}else return d.value===e.checkedValue}),u=Co(e,{mergedSize(S){const{size:w}=e;if(w!==void 0)return w;if(t){const{value:O}=t.mergedSizeRef;if(O!==void 0)return O}if(S){const{mergedSize:O}=S;if(O!==void 0)return O.value}return"medium"},mergedDisabled(S){const{disabled:w}=e;if(w!==void 0)return w;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:O},checkedCountRef:F}=t;if(O!==void 0&&F.value>=O&&!c.value)return!0;const{minRef:{value:A}}=t;if(A!==void 0&&F.value<=A&&c.value)return!0}return S?S.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:v}=u,p=Re("Checkbox","-checkbox",Pv,zi,e,r);function h(S){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:w,"onUpdate:checked":O,onUpdateChecked:F}=e,{nTriggerFormInput:A,nTriggerFormChange:j}=u,M=c.value?e.uncheckedValue:e.checkedValue;O&&ae(O,M,S),F&&ae(F,M,S),w&&ae(w,M,S),A(),j(),s.value=M}}function g(S){f.value||h(S)}function x(S){if(!f.value)switch(S.key){case" ":case"Enter":h(S)}}function y(S){switch(S.key){case" ":S.preventDefault()}}const b={focus:()=>{var S;(S=o.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=o.value)===null||S===void 0||S.blur()}},T=Wt("Checkbox",i,r),$=C(()=>{const{value:S}=v,{common:{cubicBezierEaseInOut:w},self:{borderRadius:O,color:F,colorChecked:A,colorDisabled:j,colorTableHeader:M,colorTableHeaderModal:H,colorTableHeaderPopover:U,checkMarkColor:L,checkMarkColorDisabled:te,border:K,borderFocus:le,borderDisabled:be,borderChecked:ce,boxShadowFocus:V,textColor:E,textColorDisabled:I,checkMarkColorDisabledChecked:N,colorDisabledChecked:J,borderDisabledChecked:se,labelPadding:xe,labelLineHeight:Ie,labelFontWeight:_,[ie("fontSize",S)]:Pe,[ie("size",S)]:He}}=p.value;return{"--n-label-line-height":Ie,"--n-label-font-weight":_,"--n-size":He,"--n-bezier":w,"--n-border-radius":O,"--n-border":K,"--n-border-checked":ce,"--n-border-focus":le,"--n-border-disabled":be,"--n-border-disabled-checked":se,"--n-box-shadow-focus":V,"--n-color":F,"--n-color-checked":A,"--n-color-table":M,"--n-color-table-modal":H,"--n-color-table-popover":U,"--n-color-disabled":j,"--n-color-disabled-checked":J,"--n-text-color":E,"--n-text-color-disabled":I,"--n-check-mark-color":L,"--n-check-mark-color-disabled":te,"--n-check-mark-color-disabled-checked":N,"--n-font-size":Pe,"--n-label-padding":xe}}),R=n?it("checkbox",C(()=>v.value[0]),$,e):void 0;return Object.assign(u,b,{rtlEnabled:T,selfRef:o,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:c,mergedTheme:p,labelId:qo(),handleClick:g,handleKeyUp:x,handleKeyDown:y,cssVars:n?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:r,indeterminate:n,privateInsideTable:i,cssVars:s,labelId:l,label:d,mergedClsPrefix:c,focusable:u,handleKeyUp:f,handleKeyDown:v,handleClick:p}=this;(e=this.onRender)===null||e===void 0||e.call(this);const h=mt(t.default,g=>d||g?a("span",{class:`${c}-checkbox__label`,id:l},d||g):null);return a("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,o&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,n&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,h&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":n?"mixed":o,"aria-labelledby":l,style:s,onKeyup:f,onKeydown:v,onClick:p,onMousedown:()=>{Lt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},a("div",{class:`${c}-checkbox-box-wrapper`}," ",a("div",{class:`${c}-checkbox-box`},a(cr,null,{default:()=>this.indeterminate?a("div",{key:"indeterminate",class:`${c}-checkbox-icon`},zv()):a("div",{key:"check",class:`${c}-checkbox-icon`},Rv())}),a("div",{class:`${c}-checkbox-box__border`}))),h)}}),id={name:"Code",common:Ae,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function Tv(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Fv={name:"Collapse",common:Ae,self:Tv};function Iv(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Bv={name:"CollapseTransition",common:Ae,self:Iv};function ld(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:s,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${s}`,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:p}}const Ov={name:"ColorPicker",common:dt,peers:{Input:vr,Button:pr},self:ld},Dv={name:"ColorPicker",common:Ae,peers:{Input:wo,Button:po},self:ld};function Mv(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function un(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function Av(e){return e=Math.round(e),e>=360?359:e<0?0:e}function _v(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const Hv={rgb:{hex(e){return rr(co(e))},hsl(e){const[t,o,r,n]=co(e);return or([..._a(t,o,r),n])},hsv(e){const[t,o,r,n]=co(e);return wr([...Aa(t,o,r),n])}},hex:{rgb(e){return Wo(co(e))},hsl(e){const[t,o,r,n]=co(e);return or([..._a(t,o,r),n])},hsv(e){const[t,o,r,n]=co(e);return wr([...Aa(t,o,r),n])}},hsl:{hex(e){const[t,o,r,n]=Ar(e);return rr([...Ma(t,o,r),n])},rgb(e){const[t,o,r,n]=Ar(e);return Wo([...Ma(t,o,r),n])},hsv(e){const[t,o,r,n]=Ar(e);return wr([...es(t,o,r),n])}},hsv:{hex(e){const[t,o,r,n]=yr(e);return rr([...tr(t,o,r),n])},rgb(e){const[t,o,r,n]=yr(e);return Wo([...tr(t,o,r),n])},hsl(e){const[t,o,r,n]=yr(e);return or([...Nn(t,o,r),n])}}};function sd(e,t,o){return o=o||un(e),o?o===t?e:Hv[o][t](e):null}const Jr="12px",Ev=12,br="6px",Lv=re({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(i){!t.value||!e.rgba||(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=(i.clientX-d)/(l-Ev);e.onUpdateAlpha(_v(c))}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:C(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Jr,borderRadius:br},onMousedown:this.handleMouseDown},a("div",{style:{borderRadius:br,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},a("div",{class:`${e}-color-picker-checkboard`}),a("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&a("div",{style:{position:"absolute",left:br,right:br,top:0,bottom:0}},a("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${br})`,borderRadius:br,width:Jr,height:Jr}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Wo(this.rgba),borderRadius:br,width:Jr,height:Jr}}))))}}),Pi="n-color-picker";function Nv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function jv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function Vv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function Wv(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function Uv(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const Kv={paddingSmall:"0 4px"},Rl=re({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=B(""),{themeRef:o}=Ee(Pi,null);Ft(()=>{t.value=r()});function r(){const{value:s}=e;if(s===null)return"";const{label:l}=e;return l==="HEX"?s:l==="A"?`${Math.floor(s*100)}%`:String(Math.floor(s))}function n(s){t.value=s}function i(s){let l,d;switch(e.label){case"HEX":d=Wv(s),d&&e.onUpdateValue(s),t.value=r();break;case"H":l=jv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=Vv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=Uv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=Nv(s),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:n}},render(){const{mergedTheme:e}=this;return a(Do,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:Kv,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),qv=re({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?rr:rn)(o));return}let n;switch(e.valueArr===null?n=[0,0,0,0]:n=Array.from(e.valueArr),e.mode){case"hsv":n[t]=o,e.onUpdateValue((r?wr:La)(n));break;case"rgb":n[t]=o,e.onUpdateValue((r?Wo:Ea)(n));break;case"hsl":n[t]=o,e.onUpdateValue((r?or:Ha)(n));break}}}},render(){const{clsPrefix:e,modes:t}=this;return a("div",{class:`${e}-color-picker-input`},a("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),a(Ph,null,{default:()=>{const{mode:o,valueArr:r,showAlpha:n}=this;if(o==="hex"){let i=null;try{i=r===null?null:(n?rr:rn)(r)}catch{}return a(Rl,{label:"HEX",showAlpha:n,value:i,onUpdateValue:s=>{this.handleUnitUpdateValue(0,s)}})}return(o+(n?"a":"")).split("").map((i,s)=>a(Rl,{label:i.toUpperCase(),value:r===null?null:r[s],onUpdateValue:l=>{this.handleUnitUpdateValue(s,l)}}))}}))}});function Yv(e,t){if(t==="hsv"){const[o,r,n,i]=yr(e);return Wo([...tr(o,r,n),i])}return e}function Gv(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const Xv=re({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=C(()=>e.swatches.map(i=>{const s=un(i);return{value:i,mode:s,legalValue:Yv(i,s)}}));function o(i){const{mode:s}=e;let{value:l,mode:d}=i;return d||(d="hex",/^[a-zA-Z]+$/.test(l)?l=Gv(l):(ho("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),d===s?l:sd(l,s,d)}function r(i){e.onUpdateColor(o(i))}function n(i,s){i.key==="Enter"&&r(s)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:n}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>a("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},a("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),Zv=re({name:"ColorPickerTrigger",slots:Object,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Ee(Pi,null);return()=>{const{hsla:r,value:n,clsPrefix:i,onClick:s,disabled:l}=e,d=t.label||o.value;return a("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:s},a("div",{class:`${i}-color-picker-trigger__fill`},a("div",{class:`${i}-color-picker-checkboard`}),a("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?or(r):""}}),n&&r?a("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},d?d(n):n):null))}}}),Qv=re({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=un(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var r;const n=o.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,sd(n.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-preview__preview`},a("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),a("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),Dr="12px",Jv=12,xr="6px",ep=6,tp="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",op=re({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(i){t.value&&(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=Av((i.clientX-d-ep)/(l-Jv)*360);e.onUpdateHue(c)}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-slider`,style:{height:Dr,borderRadius:xr}},a("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:tp,height:Dr,borderRadius:xr,position:"relative"},onMousedown:this.handleMouseDown},a("div",{style:{position:"absolute",left:xr,right:xr,top:0,bottom:0}},a("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${xr})`,borderRadius:xr,width:Dr,height:Dr}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:xr,width:Dr,height:Dr}})))))}}),Bn="12px",On="6px",rp=re({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(i){t.value&&(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,height:d,left:c,bottom:u}=s.getBoundingClientRect(),f=(u-i.clientY)/d,v=(i.clientX-c)/l,p=100*(v>1?1:v<0?0:v),h=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,h)}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:C(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},a("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),a("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&a("div",{class:`${e}-color-picker-handle`,style:{width:Bn,height:Bn,borderRadius:On,left:`calc(${this.displayedSv[0]}% - ${On})`,bottom:`calc(${this.displayedSv[1]}% - ${On})`}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:On,width:Bn,height:Bn}})))}}),np=k([m("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),m("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[hr(),m("input",` - text-align: center; - `)]),m("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[k("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),m("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[P("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),k("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),m("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[P("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),m("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[P("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[z("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),m("color-picker-preview",` - display: flex; - `,[P("sliders",` - flex: 1 0 auto; - `),P("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),P("fill",` - display: block; - width: 30px; - height: 30px; - `),P("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),m("color-picker-input",` - display: flex; - align-items: center; - `,[m("input",` - flex-grow: 1; - flex-basis: 0; - `),P("mode",` - width: 72px; - text-align: center; - `)]),m("color-picker-control",` - padding: 12px; - `),m("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[m("button","margin-left: 8px;")]),m("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[P("value",` - white-space: nowrap; - position: relative; - `),P("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),z("disabled","cursor: not-allowed"),m("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[k("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),m("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[m("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[P("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),k("&:focus",` - outline: none; - `,[P("fill",[k("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),ap=Object.assign(Object.assign({},Re.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Zt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),uy=re({name:"ColorPicker",props:ap,slots:Object,setup(e,{slots:t}){const o=B(null);let r=null;const n=Co(e),{mergedSizeRef:i,mergedDisabledRef:s}=n,{localeRef:l}=To("global"),{mergedClsPrefixRef:d,namespaceRef:c,inlineThemeDisabled:u}=Qe(e),f=Re("ColorPicker","-color-picker",np,Ov,e,d);Je(Pi,{themeRef:f,renderLabelRef:fe(e,"renderLabel"),colorPickerSlots:t});const v=B(e.defaultShow),p=$t(fe(e,"show"),v);function h(ee){const{onUpdateShow:ue,"onUpdate:show":q}=e;ue&&ae(ue,ee),q&&ae(q,ee),v.value=ee}const{defaultValue:g}=e,x=B(g===void 0?Mv(e.modes,e.showAlpha):g),y=$t(fe(e,"value"),x),b=B([y.value]),T=B(0),$=C(()=>un(y.value)),{modes:R}=e,S=B(un(y.value)||R[0]||"rgb");function w(){const{modes:ee}=e,{value:ue}=S,q=ee.findIndex(Q=>Q===ue);~q?S.value=ee[(q+1)%ee.length]:S.value="rgb"}let O,F,A,j,M,H,U,L;const te=C(()=>{const{value:ee}=y;if(!ee)return null;switch($.value){case"hsv":return yr(ee);case"hsl":return[O,F,A,L]=Ar(ee),[...es(O,F,A),L];case"rgb":case"hex":return[M,H,U,L]=co(ee),[...Aa(M,H,U),L]}}),K=C(()=>{const{value:ee}=y;if(!ee)return null;switch($.value){case"rgb":case"hex":return co(ee);case"hsv":return[O,F,j,L]=yr(ee),[...tr(O,F,j),L];case"hsl":return[O,F,A,L]=Ar(ee),[...Ma(O,F,A),L]}}),le=C(()=>{const{value:ee}=y;if(!ee)return null;switch($.value){case"hsl":return Ar(ee);case"hsv":return[O,F,j,L]=yr(ee),[...Nn(O,F,j),L];case"rgb":case"hex":return[M,H,U,L]=co(ee),[..._a(M,H,U),L]}}),be=C(()=>{switch(S.value){case"rgb":case"hex":return K.value;case"hsv":return te.value;case"hsl":return le.value}}),ce=B(0),V=B(1),E=B([0,0]);function I(ee,ue){const{value:q}=te,Q=ce.value,pe=q?q[3]:1;E.value=[ee,ue];const{showAlpha:we}=e;switch(S.value){case"hsv":se((we?wr:La)([Q,ee,ue,pe]),"cursor");break;case"hsl":se((we?or:Ha)([...Nn(Q,ee,ue),pe]),"cursor");break;case"rgb":se((we?Wo:Ea)([...tr(Q,ee,ue),pe]),"cursor");break;case"hex":se((we?rr:rn)([...tr(Q,ee,ue),pe]),"cursor");break}}function N(ee){ce.value=ee;const{value:ue}=te;if(!ue)return;const[,q,Q,pe]=ue,{showAlpha:we}=e;switch(S.value){case"hsv":se((we?wr:La)([ee,q,Q,pe]),"cursor");break;case"rgb":se((we?Wo:Ea)([...tr(ee,q,Q),pe]),"cursor");break;case"hex":se((we?rr:rn)([...tr(ee,q,Q),pe]),"cursor");break;case"hsl":se((we?or:Ha)([...Nn(ee,q,Q),pe]),"cursor");break}}function J(ee){switch(S.value){case"hsv":[O,F,j]=te.value,se(wr([O,F,j,ee]),"cursor");break;case"rgb":[M,H,U]=K.value,se(Wo([M,H,U,ee]),"cursor");break;case"hex":[M,H,U]=K.value,se(rr([M,H,U,ee]),"cursor");break;case"hsl":[O,F,A]=le.value,se(or([O,F,A,ee]),"cursor");break}V.value=ee}function se(ee,ue){ue==="cursor"?r=ee:r=null;const{nTriggerFormChange:q,nTriggerFormInput:Q}=n,{onUpdateValue:pe,"onUpdate:value":we}=e;pe&&ae(pe,ee),we&&ae(we,ee),q(),Q(),x.value=ee}function xe(ee){se(ee,"input"),Tt(Ie)}function Ie(ee=!0){const{value:ue}=y;if(ue){const{nTriggerFormChange:q,nTriggerFormInput:Q}=n,{onComplete:pe}=e;pe&&pe(ue);const{value:we}=b,{value:de}=T;ee&&(we.splice(de+1,we.length,ue),T.value=de+1),q(),Q()}}function _(){const{value:ee}=T;ee-1<0||(se(b.value[ee-1],"input"),Ie(!1),T.value=ee-1)}function Pe(){const{value:ee}=T;ee<0||ee+1>=b.value.length||(se(b.value[ee+1],"input"),Ie(!1),T.value=ee+1)}function He(){se(null,"input");const{onClear:ee}=e;ee&&ee(),h(!1)}function _e(){const{value:ee}=y,{onConfirm:ue}=e;ue&&ue(ee),h(!1)}const Ge=C(()=>T.value>=1),Xe=C(()=>{const{value:ee}=b;return ee.length>1&&T.value{ee||(b.value=[y.value],T.value=0)}),Ft(()=>{if(!(r&&r===y.value)){const{value:ee}=te;ee&&(ce.value=ee[0],V.value=ee[3],E.value=[ee[1],ee[2]])}r=null});const ct=C(()=>{const{value:ee}=i,{common:{cubicBezierEaseInOut:ue},self:{textColor:q,color:Q,panelFontSize:pe,boxShadow:we,border:de,borderRadius:me,dividerColor:je,[ie("height",ee)]:oe,[ie("fontSize",ee)]:Ue}}=f.value;return{"--n-bezier":ue,"--n-text-color":q,"--n-color":Q,"--n-panel-font-size":pe,"--n-font-size":Ue,"--n-box-shadow":we,"--n-border":de,"--n-border-radius":me,"--n-height":oe,"--n-divider-color":je}}),ot=u?it("color-picker",C(()=>i.value[0]),ct,e):void 0;function Ce(){var ee;const{value:ue}=K,{value:q}=ce,{internalActions:Q,modes:pe,actions:we}=e,{value:de}=f,{value:me}=d;return a("div",{class:[`${me}-color-picker-panel`,ot==null?void 0:ot.themeClass.value],onDragstart:je=>{je.preventDefault()},style:u?void 0:ct.value},a("div",{class:`${me}-color-picker-control`},a(rp,{clsPrefix:me,rgba:ue,displayedHue:q,displayedSv:E.value,onUpdateSV:I,onComplete:Ie}),a("div",{class:`${me}-color-picker-preview`},a("div",{class:`${me}-color-picker-preview__sliders`},a(op,{clsPrefix:me,hue:q,onUpdateHue:N,onComplete:Ie}),e.showAlpha?a(Lv,{clsPrefix:me,rgba:ue,alpha:V.value,onUpdateAlpha:J,onComplete:Ie}):null),e.showPreview?a(Qv,{clsPrefix:me,mode:S.value,color:K.value&&rn(K.value),onUpdateColor:je=>{se(je,"input")}}):null),a(qv,{clsPrefix:me,showAlpha:e.showAlpha,mode:S.value,modes:pe,onUpdateMode:w,value:y.value,valueArr:be.value,onUpdateValue:xe}),((ee=e.swatches)===null||ee===void 0?void 0:ee.length)&&a(Xv,{clsPrefix:me,mode:S.value,swatches:e.swatches,onUpdateColor:je=>{se(je,"input")}})),we!=null&&we.length?a("div",{class:`${me}-color-picker-action`},we.includes("confirm")&&a(At,{size:"small",onClick:_e,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.confirm}),we.includes("clear")&&a(At,{size:"small",onClick:He,disabled:!y.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?a("div",{class:`${me}-color-picker-action`},{default:t.action}):Q?a("div",{class:`${me}-color-picker-action`},Q.includes("undo")&&a(At,{size:"small",onClick:_,disabled:!Ge.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.undo}),Q.includes("redo")&&a(At,{size:"small",onClick:Pe,disabled:!Xe.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:d,namespace:c,selfRef:o,hsla:le,rgba:K,mergedShow:p,mergedDisabled:s,isMounted:Yo(),adjustedTo:Zt(e),mergedValue:y,handleTriggerClick(){h(!0)},handleClickOutside(ee){var ue;!((ue=o.value)===null||ue===void 0)&&ue.contains(Ko(ee))||h(!1)},renderPanel:Ce,cssVars:u?void 0:ct,themeClass:ot==null?void 0:ot.themeClass,onRender:ot==null?void 0:ot.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),a("div",{class:[this.themeClass,`${e}-color-picker`],ref:"selfRef",style:this.cssVars},a(zr,null,{default:()=>[a(Pr,null,{default:()=>a(Zv,{clsPrefix:e,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick})}),a(Rr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Zt.tdkey,to:this.adjustedTo},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?so(this.renderPanel(),[[Lo,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),ip={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ho("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},lp=re({name:"ConfigProvider",alias:["App"],props:ip,setup(e){const t=Ee($o,null),o=C(()=>{const{theme:g}=e;if(g===null)return;const x=t==null?void 0:t.mergedThemeRef.value;return g===void 0?x:x===void 0?g:Object.assign({},x,g)}),r=C(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const x=t==null?void 0:t.mergedThemeOverridesRef.value;return x===void 0?g:Mr({},x,g)}}}),n=tt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=tt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),s=C(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=C(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),d=C(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:Yn}),c=C(()=>{var g;const{rtl:x}=e;if(x===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const b of x)y[b.name]=Ji(b),(g=b.peers)===null||g===void 0||g.forEach(T=>{T.name in y||(y[T.name]=Ji(T))});return y}),u=C(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),v=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),h=C(()=>{const{value:g}=o,{value:x}=r,y=x&&Object.keys(x).length!==0,b=g==null?void 0:g.name;return b?y?`${b}-${qn(JSON.stringify(r.value))}`:b:y?qn(JSON.stringify(r.value)):""});return Je($o,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:d,mergedLocaleRef:C(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:C(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:C(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:C(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:v||!1,styleMountTarget:p}),{mergedClsPrefix:d,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){var e,t,o,r;return this.abstract?(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o):a(this.as||this.tag,{class:`${this.mergedClsPrefix||Yn}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),dd={name:"Popselect",common:Ae,peers:{Popover:Fr,InternalSelectMenu:kn}};function sp(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const $i={name:"Popselect",common:dt,peers:{Popover:Wr,InternalSelectMenu:Si},self:sp},cd="n-popselect",dp=m("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),Ti={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},zl=Po(Ti),cp=re({name:"PopselectPanel",props:Ti,setup(e){const t=Ee(cd),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(e),n=Re("Popselect","-pop-select",dp,$i,t.props,o),i=C(()=>Uo(e.options,Ks("value","children")));function s(v,p){const{onUpdateValue:h,"onUpdate:value":g,onChange:x}=e;h&&ae(h,v,p),g&&ae(g,v,p),x&&ae(x,v,p)}function l(v){c(v.key)}function d(v){!Jt(v,"action")&&!Jt(v,"empty")&&!Jt(v,"header")&&v.preventDefault()}function c(v){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const h=[],g=[];let x=!0;e.value.forEach(y=>{if(y===v){x=!1;return}const b=p(y);b&&(h.push(b.key),g.push(b.rawNode))}),x&&(h.push(v),g.push(p(v).rawNode)),s(h,g)}else{const h=p(v);h&&s([v],[h.rawNode])}else if(e.value===v&&e.cancelable)s(null,null);else{const h=p(v);h&&s(v,h.rawNode);const{"onUpdate:show":g,onUpdateShow:x}=t.props;g&&ae(g,!1),x&&ae(x,!1),t.setShow(!1)}Tt(()=>{t.syncPosition()})}gt(fe(e,"options"),()=>{Tt(()=>{t.syncPosition()})});const u=C(()=>{const{self:{menuBoxShadow:v}}=n.value;return{"--n-menu-box-shadow":v}}),f=r?it("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:d,cssVars:r?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a(Ts,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),up=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),$r(Lr,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Lr.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Ti),fp=re({name:"Popselect",props:up,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=Re("Popselect","-popselect",void 0,$i,e,t),r=B(null);function n(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}function i(l){var d;(d=r.value)===null||d===void 0||d.setShow(l)}return Je(cd,{props:e,mergedThemeRef:o,syncPosition:n,setShow:i}),Object.assign(Object.assign({},{syncPosition:n,setShow:i}),{popoverInstRef:r,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,r,n,i,s)=>{const{$attrs:l}=this;return a(cp,Object.assign({},l,{class:[l.class,o],style:[l.style,...n]},mo(this.$props,zl),{ref:Cs(r),onMouseenter:nn([i,l.onMouseenter]),onMouseleave:nn([s,l.onMouseleave])}),{header:()=>{var d,c;return(c=(d=this.$slots).header)===null||c===void 0?void 0:c.call(d)},action:()=>{var d,c;return(c=(d=this.$slots).action)===null||c===void 0?void 0:c.call(d)},empty:()=>{var d,c;return(c=(d=this.$slots).empty)===null||c===void 0?void 0:c.call(d)}})}};return a(Rn,Object.assign({},$r(this.$props,zl),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}});function ud(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fd={name:"Select",common:dt,peers:{InternalSelection:Ls,InternalSelectMenu:Si},self:ud},hd={name:"Select",common:Ae,peers:{InternalSelection:ki,InternalSelectMenu:kn},self:ud},hp=k([m("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - font-weight: var(--n-font-weight); - `),m("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[hr({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),vp=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),pp=re({name:"Select",props:vp,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),i=Re("Select","-select",hp,fd,e,t),s=B(e.defaultValue),l=fe(e,"value"),d=$t(l,s),c=B(!1),u=B(""),f=nr(e,["items","options"]),v=B([]),p=B([]),h=C(()=>p.value.concat(v.value).concat(f.value)),g=C(()=>{const{filter:D}=e;if(D)return D;const{labelField:G,valueField:ve}=e;return(Fe,Be)=>{if(!Be)return!1;const W=Be[G];if(typeof W=="string")return ga(Fe,W);const ge=Be[ve];return typeof ge=="string"?ga(Fe,ge):typeof ge=="number"?ga(Fe,String(ge)):!1}}),x=C(()=>{if(e.remote)return f.value;{const{value:D}=h,{value:G}=u;return!G.length||!e.filterable?D:Fh(D,g.value,G,e.childrenField)}}),y=C(()=>{const{valueField:D,childrenField:G}=e,ve=Ks(D,G);return Uo(x.value,ve)}),b=C(()=>Ih(h.value,e.valueField,e.childrenField)),T=B(!1),$=$t(fe(e,"show"),T),R=B(null),S=B(null),w=B(null),{localeRef:O}=To("Select"),F=C(()=>{var D;return(D=e.placeholder)!==null&&D!==void 0?D:O.value.placeholder}),A=[],j=B(new Map),M=C(()=>{const{fallbackOption:D}=e;if(D===void 0){const{labelField:G,valueField:ve}=e;return Fe=>({[G]:String(Fe),[ve]:Fe})}return D===!1?!1:G=>Object.assign(D(G),{value:G})});function H(D){const G=e.remote,{value:ve}=j,{value:Fe}=b,{value:Be}=M,W=[];return D.forEach(ge=>{if(Fe.has(ge))W.push(Fe.get(ge));else if(G&&ve.has(ge))W.push(ve.get(ge));else if(Be){const $e=Be(ge);$e&&W.push($e)}}),W}const U=C(()=>{if(e.multiple){const{value:D}=d;return Array.isArray(D)?H(D):[]}return null}),L=C(()=>{const{value:D}=d;return!e.multiple&&!Array.isArray(D)?D===null?null:H([D])[0]||null:null}),te=Co(e),{mergedSizeRef:K,mergedDisabledRef:le,mergedStatusRef:be}=te;function ce(D,G){const{onChange:ve,"onUpdate:value":Fe,onUpdateValue:Be}=e,{nTriggerFormChange:W,nTriggerFormInput:ge}=te;ve&&ae(ve,D,G),Be&&ae(Be,D,G),Fe&&ae(Fe,D,G),s.value=D,W(),ge()}function V(D){const{onBlur:G}=e,{nTriggerFormBlur:ve}=te;G&&ae(G,D),ve()}function E(){const{onClear:D}=e;D&&ae(D)}function I(D){const{onFocus:G,showOnFocus:ve}=e,{nTriggerFormFocus:Fe}=te;G&&ae(G,D),Fe(),ve&&Ie()}function N(D){const{onSearch:G}=e;G&&ae(G,D)}function J(D){const{onScroll:G}=e;G&&ae(G,D)}function se(){var D;const{remote:G,multiple:ve}=e;if(G){const{value:Fe}=j;if(ve){const{valueField:Be}=e;(D=U.value)===null||D===void 0||D.forEach(W=>{Fe.set(W[Be],W)})}else{const Be=L.value;Be&&Fe.set(Be[e.valueField],Be)}}}function xe(D){const{onUpdateShow:G,"onUpdate:show":ve}=e;G&&ae(G,D),ve&&ae(ve,D),T.value=D}function Ie(){le.value||(xe(!0),T.value=!0,e.filterable&&xt())}function _(){xe(!1)}function Pe(){u.value="",p.value=A}const He=B(!1);function _e(){e.filterable&&(He.value=!0)}function Ge(){e.filterable&&(He.value=!1,$.value||Pe())}function Xe(){le.value||($.value?e.filterable?xt():_():Ie())}function ct(D){var G,ve;!((ve=(G=w.value)===null||G===void 0?void 0:G.selfRef)===null||ve===void 0)&&ve.contains(D.relatedTarget)||(c.value=!1,V(D),_())}function ot(D){I(D),c.value=!0}function Ce(){c.value=!0}function ee(D){var G;!((G=R.value)===null||G===void 0)&&G.$el.contains(D.relatedTarget)||(c.value=!1,V(D),_())}function ue(){var D;(D=R.value)===null||D===void 0||D.focus(),_()}function q(D){var G;$.value&&(!((G=R.value)===null||G===void 0)&&G.$el.contains(Ko(D))||_())}function Q(D){if(!Array.isArray(D))return[];if(M.value)return Array.from(D);{const{remote:G}=e,{value:ve}=b;if(G){const{value:Fe}=j;return D.filter(Be=>ve.has(Be)||Fe.has(Be))}else return D.filter(Fe=>ve.has(Fe))}}function pe(D){we(D.rawNode)}function we(D){if(le.value)return;const{tag:G,remote:ve,clearFilterAfterSelect:Fe,valueField:Be}=e;if(G&&!ve){const{value:W}=p,ge=W[0]||null;if(ge){const $e=v.value;$e.length?$e.push(ge):v.value=[ge],p.value=A}}if(ve&&j.value.set(D[Be],D),e.multiple){const W=Q(d.value),ge=W.findIndex($e=>$e===D[Be]);if(~ge){if(W.splice(ge,1),G&&!ve){const $e=de(D[Be]);~$e&&(v.value.splice($e,1),Fe&&(u.value=""))}}else W.push(D[Be]),Fe&&(u.value="");ce(W,H(W))}else{if(G&&!ve){const W=de(D[Be]);~W?v.value=[v.value[W]]:v.value=A}zt(),_(),ce(D[Be],D)}}function de(D){return v.value.findIndex(ve=>ve[e.valueField]===D)}function me(D){$.value||Ie();const{value:G}=D.target;u.value=G;const{tag:ve,remote:Fe}=e;if(N(G),ve&&!Fe){if(!G){p.value=A;return}const{onCreate:Be}=e,W=Be?Be(G):{[e.labelField]:G,[e.valueField]:G},{valueField:ge,labelField:$e}=e;f.value.some(We=>We[ge]===W[ge]||We[$e]===W[$e])||v.value.some(We=>We[ge]===W[ge]||We[$e]===W[$e])?p.value=A:p.value=[W]}}function je(D){D.stopPropagation();const{multiple:G}=e;!G&&e.filterable&&_(),E(),G?ce([],[]):ce(null,null)}function oe(D){!Jt(D,"action")&&!Jt(D,"empty")&&!Jt(D,"header")&&D.preventDefault()}function Ue(D){J(D)}function lt(D){var G,ve,Fe,Be,W;if(!e.keyboard){D.preventDefault();return}switch(D.key){case" ":if(e.filterable)break;D.preventDefault();case"Enter":if(!(!((G=R.value)===null||G===void 0)&&G.isComposing)){if($.value){const ge=(ve=w.value)===null||ve===void 0?void 0:ve.getPendingTmNode();ge?pe(ge):e.filterable||(_(),zt())}else if(Ie(),e.tag&&He.value){const ge=p.value[0];if(ge){const $e=ge[e.valueField],{value:We}=d;e.multiple&&Array.isArray(We)&&We.includes($e)||we(ge)}}}D.preventDefault();break;case"ArrowUp":if(D.preventDefault(),e.loading)return;$.value&&((Fe=w.value)===null||Fe===void 0||Fe.prev());break;case"ArrowDown":if(D.preventDefault(),e.loading)return;$.value?(Be=w.value)===null||Be===void 0||Be.next():Ie();break;case"Escape":$.value&&(dn(D),_()),(W=R.value)===null||W===void 0||W.focus();break}}function zt(){var D;(D=R.value)===null||D===void 0||D.focus()}function xt(){var D;(D=R.value)===null||D===void 0||D.focusInput()}function pt(){var D;$.value&&((D=S.value)===null||D===void 0||D.syncPosition())}se(),gt(fe(e,"options"),se);const ut={focus:()=>{var D;(D=R.value)===null||D===void 0||D.focus()},focusInput:()=>{var D;(D=R.value)===null||D===void 0||D.focusInput()},blur:()=>{var D;(D=R.value)===null||D===void 0||D.blur()},blurInput:()=>{var D;(D=R.value)===null||D===void 0||D.blurInput()}},De=C(()=>{const{self:{menuBoxShadow:D}}=i.value;return{"--n-menu-box-shadow":D}}),Ze=n?it("select",void 0,De,e):void 0;return Object.assign(Object.assign({},ut),{mergedStatus:be,mergedClsPrefix:t,mergedBordered:o,namespace:r,treeMate:y,isMounted:Yo(),triggerRef:R,menuRef:w,pattern:u,uncontrolledShow:T,mergedShow:$,adjustedTo:Zt(e),uncontrolledValue:s,mergedValue:d,followerRef:S,localizedPlaceholder:F,selectedOption:L,selectedOptions:U,mergedSize:K,mergedDisabled:le,focused:c,activeWithoutMenuOpen:He,inlineThemeDisabled:n,onTriggerInputFocus:_e,onTriggerInputBlur:Ge,handleTriggerOrMenuResize:pt,handleMenuFocus:Ce,handleMenuBlur:ee,handleMenuTabOut:ue,handleTriggerClick:Xe,handleToggle:pe,handleDeleteOption:we,handlePatternInput:me,handleClear:je,handleTriggerBlur:ct,handleTriggerFocus:ot,handleKeydown:lt,handleMenuAfterLeave:Pe,handleMenuClickOutside:q,handleMenuScroll:Ue,handleMenuKeydown:lt,handleMenuMousedown:oe,mergedTheme:i,cssVars:n?void 0:De,themeClass:Ze==null?void 0:Ze.themeClass,onRender:Ze==null?void 0:Ze.onRender})},render(){return a("div",{class:`${this.mergedClsPrefix}-select`},a(zr,null,{default:()=>[a(Pr,null,{default:()=>a(nh,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),a(Rr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Zt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),so(a(Ts,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,n;return[(n=(r=this.$slots).empty)===null||n===void 0?void 0:n.call(r)]},header:()=>{var r,n;return[(n=(r=this.$slots).header)===null||n===void 0?void 0:n.call(r)]},action:()=>{var r,n;return[(n=(r=this.$slots).action)===null||n===void 0?void 0:n.call(r)]}}),this.displayDirective==="show"?[[Eo,this.mergedShow],[Lo,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Lo,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),gp={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function vd(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:s,borderColor:l,borderRadius:d,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:v,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},gp),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:s,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:d,itemSizeSmall:v,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:s})}const pd={name:"Pagination",common:dt,peers:{Select:fd,Input:vr,Popselect:$i},self:vd},gd={name:"Pagination",common:Ae,peers:{Select:hd,Input:wo,Popselect:dd},self(e){const{primaryColor:t,opacity3:o}=e,r=Se(t,{alpha:Number(o)}),n=vd(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}},Pl=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,$l=[z("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],mp=m("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[m("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),m("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),k("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),m("select",` - width: var(--n-select-width); - `),k("&.transition-disabled",[m("pagination-item","transition: none!important;")]),m("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[m("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),m("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[z("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[m("base-icon",` - font-size: var(--n-button-icon-size); - `)]),at("disabled",[z("hover",Pl,$l),k("&:hover",Pl,$l),k("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[z("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),z("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[k("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),z("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[z("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),z("disabled",` - cursor: not-allowed; - `,[m("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),z("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[m("pagination-quick-jumper",[m("input",` - margin: 0; - `)])])]);function md(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const r=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof r=="number"?r:(r==null?void 0:r.value)||10}function bp(e,t,o,r){let n=!1,i=!1,s=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const d=1,c=t;let u=e,f=e;const v=(o-5)/2;f+=Math.ceil(v),f=Math.min(Math.max(f,d+o-3),c-2),u-=Math.floor(v),u=Math.max(Math.min(u,c-o+3),d+2);let p=!1,h=!1;u>d+2&&(p=!0),f=d+1&&g.push({type:"page",label:d+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===d+1});for(let x=u;x<=f;++x)g.push({type:"page",label:x,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===x});return h?(i=!0,l=f+1,g.push({type:"fast-forward",active:!1,label:void 0,options:r?Tl(f+1,c-1):null})):f===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:n,hasFastForward:i,fastBackwardTo:s,fastForwardTo:l,items:g}}function Tl(e,t){const o=[];for(let r=e;r<=t;++r)o.push({label:`${r}`,value:r});return o}const xp=Object.assign(Object.assign({},Re.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Zt.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),Cp=re({name:"Pagination",props:xp,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Pagination","-pagination",mp,pd,e,o),{localeRef:s}=To("Pagination"),l=B(null),d=B(e.defaultPage),c=B(md(e)),u=$t(fe(e,"page"),d),f=$t(fe(e,"pageSize"),c),v=C(()=>{const{itemCount:_}=e;if(_!==void 0)return Math.max(1,Math.ceil(_/f.value));const{pageCount:Pe}=e;return Pe!==void 0?Math.max(Pe,1):1}),p=B("");Ft(()=>{e.simple,p.value=String(u.value)});const h=B(!1),g=B(!1),x=B(!1),y=B(!1),b=()=>{e.disabled||(h.value=!0,L())},T=()=>{e.disabled||(h.value=!1,L())},$=()=>{g.value=!0,L()},R=()=>{g.value=!1,L()},S=_=>{te(_)},w=C(()=>bp(u.value,v.value,e.pageSlot,e.showQuickJumpDropdown));Ft(()=>{w.value.hasFastBackward?w.value.hasFastForward||(h.value=!1,x.value=!1):(g.value=!1,y.value=!1)});const O=C(()=>{const _=s.value.selectionSuffix;return e.pageSizes.map(Pe=>typeof Pe=="number"?{label:`${Pe} / ${_}`,value:Pe}:Pe)}),F=C(()=>{var _,Pe;return((Pe=(_=t==null?void 0:t.value)===null||_===void 0?void 0:_.Pagination)===null||Pe===void 0?void 0:Pe.inputSize)||Ua(e.size)}),A=C(()=>{var _,Pe;return((Pe=(_=t==null?void 0:t.value)===null||_===void 0?void 0:_.Pagination)===null||Pe===void 0?void 0:Pe.selectSize)||Ua(e.size)}),j=C(()=>(u.value-1)*f.value),M=C(()=>{const _=u.value*f.value-1,{itemCount:Pe}=e;return Pe!==void 0&&_>Pe-1?Pe-1:_}),H=C(()=>{const{itemCount:_}=e;return _!==void 0?_:(e.pageCount||1)*f.value}),U=Wt("Pagination",n,o);function L(){Tt(()=>{var _;const{value:Pe}=l;Pe&&(Pe.classList.add("transition-disabled"),(_=l.value)===null||_===void 0||_.offsetWidth,Pe.classList.remove("transition-disabled"))})}function te(_){if(_===u.value)return;const{"onUpdate:page":Pe,onUpdatePage:He,onChange:_e,simple:Ge}=e;Pe&&ae(Pe,_),He&&ae(He,_),_e&&ae(_e,_),d.value=_,Ge&&(p.value=String(_))}function K(_){if(_===f.value)return;const{"onUpdate:pageSize":Pe,onUpdatePageSize:He,onPageSizeChange:_e}=e;Pe&&ae(Pe,_),He&&ae(He,_),_e&&ae(_e,_),c.value=_,v.value{u.value,f.value,L()});const xe=C(()=>{const{size:_}=e,{self:{buttonBorder:Pe,buttonBorderHover:He,buttonBorderPressed:_e,buttonIconColor:Ge,buttonIconColorHover:Xe,buttonIconColorPressed:ct,itemTextColor:ot,itemTextColorHover:Ce,itemTextColorPressed:ee,itemTextColorActive:ue,itemTextColorDisabled:q,itemColor:Q,itemColorHover:pe,itemColorPressed:we,itemColorActive:de,itemColorActiveHover:me,itemColorDisabled:je,itemBorder:oe,itemBorderHover:Ue,itemBorderPressed:lt,itemBorderActive:zt,itemBorderDisabled:xt,itemBorderRadius:pt,jumperTextColor:ut,jumperTextColorDisabled:De,buttonColor:Ze,buttonColorHover:D,buttonColorPressed:G,[ie("itemPadding",_)]:ve,[ie("itemMargin",_)]:Fe,[ie("inputWidth",_)]:Be,[ie("selectWidth",_)]:W,[ie("inputMargin",_)]:ge,[ie("selectMargin",_)]:$e,[ie("jumperFontSize",_)]:We,[ie("prefixMargin",_)]:ft,[ie("suffixMargin",_)]:rt,[ie("itemSize",_)]:ne,[ie("buttonIconSize",_)]:ze,[ie("itemFontSize",_)]:Le,[`${ie("itemMargin",_)}Rtl`]:et,[`${ie("inputMargin",_)}Rtl`]:yt},common:{cubicBezierEaseInOut:bt}}=i.value;return{"--n-prefix-margin":ft,"--n-suffix-margin":rt,"--n-item-font-size":Le,"--n-select-width":W,"--n-select-margin":$e,"--n-input-width":Be,"--n-input-margin":ge,"--n-input-margin-rtl":yt,"--n-item-size":ne,"--n-item-text-color":ot,"--n-item-text-color-disabled":q,"--n-item-text-color-hover":Ce,"--n-item-text-color-active":ue,"--n-item-text-color-pressed":ee,"--n-item-color":Q,"--n-item-color-hover":pe,"--n-item-color-disabled":je,"--n-item-color-active":de,"--n-item-color-active-hover":me,"--n-item-color-pressed":we,"--n-item-border":oe,"--n-item-border-hover":Ue,"--n-item-border-disabled":xt,"--n-item-border-active":zt,"--n-item-border-pressed":lt,"--n-item-padding":ve,"--n-item-border-radius":pt,"--n-bezier":bt,"--n-jumper-font-size":We,"--n-jumper-text-color":ut,"--n-jumper-text-color-disabled":De,"--n-item-margin":Fe,"--n-item-margin-rtl":et,"--n-button-icon-size":ze,"--n-button-icon-color":Ge,"--n-button-icon-color-hover":Xe,"--n-button-icon-color-pressed":ct,"--n-button-color-hover":D,"--n-button-color":Ze,"--n-button-color-pressed":G,"--n-button-border":Pe,"--n-button-border-hover":He,"--n-button-border-pressed":_e}}),Ie=r?it("pagination",C(()=>{let _="";const{size:Pe}=e;return _+=Pe[0],_}),xe,e):void 0;return{rtlEnabled:U,mergedClsPrefix:o,locale:s,selfRef:l,mergedPage:u,pageItems:C(()=>w.value.items),mergedItemCount:H,jumperValue:p,pageSizeOptions:O,mergedPageSize:f,inputSize:F,selectSize:A,mergedTheme:i,mergedPageCount:v,startIndex:j,endIndex:M,showFastForwardMenu:x,showFastBackwardMenu:y,fastForwardActive:h,fastBackwardActive:g,handleMenuSelect:S,handleFastForwardMouseenter:b,handleFastForwardMouseleave:T,handleFastBackwardMouseenter:$,handleFastBackwardMouseleave:R,handleJumperInput:se,handleBackwardClick:be,handleForwardClick:le,handlePageItemClick:J,handleSizePickerChange:E,handleQuickJumperChange:N,cssVars:r?void 0:xe,themeClass:Ie==null?void 0:Ie.themeClass,onRender:Ie==null?void 0:Ie.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:r,mergedPage:n,mergedPageCount:i,pageItems:s,showSizePicker:l,showQuickJumper:d,mergedTheme:c,locale:u,inputSize:f,selectSize:v,mergedPageSize:p,pageSizeOptions:h,jumperValue:g,simple:x,prev:y,next:b,prefix:T,suffix:$,label:R,goto:S,handleJumperInput:w,handleSizePickerChange:O,handleBackwardClick:F,handlePageItemClick:A,handleForwardClick:j,handleQuickJumperChange:M,onRender:H}=this;H==null||H();const U=T||e.prefix,L=$||e.suffix,te=y||e.prev,K=b||e.next,le=R||e.label;return a("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,x&&`${t}-pagination--simple`],style:r},U?a("div",{class:`${t}-pagination-prefix`},U({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(be=>{switch(be){case"pages":return a(Gt,null,a("div",{class:[`${t}-pagination-item`,!te&&`${t}-pagination-item--button`,(n<=1||n>i||o)&&`${t}-pagination-item--disabled`],onClick:F},te?te({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):a(Rt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(sr,null):a(ar,null)})),x?a(Gt,null,a("div",{class:`${t}-pagination-quick-jumper`},a(Do,{value:g,onUpdateValue:w,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:M}))," /"," ",i):s.map((ce,V)=>{let E,I,N;const{type:J}=ce;switch(J){case"page":const xe=ce.label;le?E=le({type:"page",node:xe,active:ce.active}):E=xe;break;case"fast-forward":const Ie=this.fastForwardActive?a(Rt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(ir,null):a(lr,null)}):a(Rt,{clsPrefix:t},{default:()=>a(ml,null)});le?E=le({type:"fast-forward",node:Ie,active:this.fastForwardActive||this.showFastForwardMenu}):E=Ie,I=this.handleFastForwardMouseenter,N=this.handleFastForwardMouseleave;break;case"fast-backward":const _=this.fastBackwardActive?a(Rt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(lr,null):a(ir,null)}):a(Rt,{clsPrefix:t},{default:()=>a(ml,null)});le?E=le({type:"fast-backward",node:_,active:this.fastBackwardActive||this.showFastBackwardMenu}):E=_,I=this.handleFastBackwardMouseenter,N=this.handleFastBackwardMouseleave;break}const se=a("div",{key:V,class:[`${t}-pagination-item`,ce.active&&`${t}-pagination-item--active`,J!=="page"&&(J==="fast-backward"&&this.showFastBackwardMenu||J==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,J==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{A(ce)},onMouseenter:I,onMouseleave:N},E);if(J==="page"&&!ce.mayBeFastBackward&&!ce.mayBeFastForward)return se;{const xe=ce.type==="page"?ce.mayBeFastBackward?"fast-backward":"fast-forward":ce.type;return ce.type!=="page"&&!ce.options?se:a(fp,{to:this.to,key:xe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:J==="page"?!1:J==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ie=>{J!=="page"&&(Ie?J==="fast-backward"?this.showFastBackwardMenu=Ie:this.showFastForwardMenu=Ie:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ce.type!=="page"&&ce.options?ce.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>se})}}),a("div",{class:[`${t}-pagination-item`,!K&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:n<1||n>=i||o}],onClick:j},K?K({page:n,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):a(Rt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(ar,null):a(sr,null)})));case"size-picker":return!x&&l?a(pp,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:v,options:h,value:p,disabled:o,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:O})):null;case"quick-jumper":return!x&&d?a("div",{class:`${t}-pagination-quick-jumper`},S?S():vt(this.$slots.goto,()=>[u.goto]),a(Do,{value:g,onUpdateValue:w,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:M})):null;default:return null}}),L?a("div",{class:`${t}-pagination-suffix`},L({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),yp={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function bd(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:s,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:v,heightMedium:p,heightLarge:h,heightHuge:g,textColor3:x,opacityDisabled:y}=e;return Object.assign(Object.assign({},yp),{optionHeightSmall:v,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:g,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:Se(t,{alpha:.1}),groupHeaderTextColor:x,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:y})}const Fi={name:"Dropdown",common:dt,peers:{Popover:Wr},self:bd},Ii={name:"Dropdown",common:Ae,peers:{Popover:Fr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=bd(e);return n.colorInverted=r,n.optionColorActive=Se(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},xd={padding:"8px 14px"},ra={name:"Tooltip",common:Ae,peers:{Popover:Fr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return Object.assign(Object.assign({},xd),{borderRadius:t,boxShadow:o,color:r,textColor:n})}};function wp(e){const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return Object.assign(Object.assign({},xd),{borderRadius:t,boxShadow:o,color:qe(r,"rgba(0, 0, 0, .85)"),textColor:r})}const Bi={name:"Tooltip",common:dt,peers:{Popover:Wr},self:wp},Cd={name:"Ellipsis",common:Ae,peers:{Tooltip:ra}},yd={name:"Ellipsis",common:dt,peers:{Tooltip:Bi}},wd={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Sd={name:"Radio",common:Ae,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},wd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}};function Sp(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},wd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}const Oi={name:"Radio",common:dt,self:Sp},kp={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function kd(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:s,tableColorHover:l,iconColor:d,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:v,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,dividerColor:x,heightSmall:y,opacityDisabled:b,tableColorStriped:T}=e;return Object.assign(Object.assign({},kp),{actionDividerColor:x,lineHeight:v,borderRadius:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,borderColor:qe(t,x),tdColorHover:qe(t,l),tdColorSorting:qe(t,l),tdColorStriped:qe(t,T),thColor:qe(t,s),thColorHover:qe(qe(t,s),l),thColorSorting:qe(qe(t,s),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:l,thIconColor:d,thIconColorActive:c,borderColorModal:qe(o,x),tdColorHoverModal:qe(o,l),tdColorSortingModal:qe(o,l),tdColorStripedModal:qe(o,T),thColorModal:qe(o,s),thColorHoverModal:qe(qe(o,s),l),thColorSortingModal:qe(qe(o,s),l),tdColorModal:o,borderColorPopover:qe(r,x),tdColorHoverPopover:qe(r,l),tdColorSortingPopover:qe(r,l),tdColorStripedPopover:qe(r,T),thColorPopover:qe(r,s),thColorHoverPopover:qe(qe(r,s),l),thColorSortingPopover:qe(qe(r,s),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:y,opacityLoading:b})}const Rp={name:"DataTable",common:dt,peers:{Button:pr,Checkbox:zi,Radio:Oi,Pagination:pd,Scrollbar:No,Empty:Sn,Popover:Wr,Ellipsis:yd,Dropdown:Fi},self:kd},zp={name:"DataTable",common:Ae,peers:{Button:po,Checkbox:Ur,Radio:Sd,Pagination:gd,Scrollbar:vo,Empty:Tr,Popover:Fr,Ellipsis:Cd,Dropdown:Ii},self(e){const t=kd(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},Pp=Object.assign(Object.assign({},Re.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Mo="n-data-table",Rd=40,zd=40;function Fl(e){if(e.type==="selection")return e.width===void 0?Rd:Mt(e.width);if(e.type==="expand")return e.width===void 0?zd:Mt(e.width);if(!("children"in e))return typeof e.width=="string"?Mt(e.width):e.width}function $p(e){var t,o;if(e.type==="selection")return _t((t=e.width)!==null&&t!==void 0?t:Rd);if(e.type==="expand")return _t((o=e.width)!==null&&o!==void 0?o:zd);if(!("children"in e))return _t(e.width)}function Io(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Il(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function Tp(e){return e==="ascend"?1:e==="descend"?-1:0}function Fp(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function Ip(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=$p(e),{minWidth:r,maxWidth:n}=e;return{width:o,minWidth:_t(r)||o,maxWidth:_t(n)}}function Bp(e,t,o){return typeof o=="function"?o(e,t):o||""}function ya(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function wa(e){return"children"in e?!1:!!e.sorter}function Pd(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Bl(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Ol(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function Op(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Ol(!1)}:Object.assign(Object.assign({},t),{order:Ol(t.order)})}function $d(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function Dp(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function Mp(e,t,o,r){const n=e.filter(l=>l.type!=="expand"&&l.type!=="selection"&&l.allowExport!==!1),i=n.map(l=>r?r(l):l.title).join(","),s=t.map(l=>n.map(d=>o?o(l[d.key],l,d):Dp(l[d.key])).join(","));return[i,...s].join(` -`)}const Ap=re({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Ee(Mo);return()=>{const{rowKey:r}=e;return a(oa,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),_p=m("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[z("checked",[P("dot",` - background-color: var(--n-color-active); - `)]),P("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),m("radio-input",` - position: absolute; - border: 0; - width: 0; - height: 0; - opacity: 0; - margin: 0; - `),P("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[k("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),z("checked",{boxShadow:"var(--n-box-shadow-active)"},[k("&::before",` - opacity: 1; - transform: scale(1); - `)])]),P("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),at("disabled",` - cursor: pointer; - `,[k("&:hover",[P("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),z("focus",[k("&:not(:active)",[P("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),z("disabled",` - cursor: not-allowed; - `,[P("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[k("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),z("checked",` - opacity: 1; - `)]),P("label",{color:"var(--n-text-color-disabled)"}),m("radio-input",` - cursor: not-allowed; - `)])]),Td={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Fd="n-radio-group";function Id(e){const t=Ee(Fd,null),o=Co(e,{mergedSize(b){const{size:T}=e;if(T!==void 0)return T;if(t){const{mergedSizeRef:{value:$}}=t;if($!==void 0)return $}return b?b.mergedSize.value:"medium"},mergedDisabled(b){return!!(e.disabled||t!=null&&t.disabledRef.value||b!=null&&b.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=o,i=B(null),s=B(null),l=B(e.defaultChecked),d=fe(e,"checked"),c=$t(d,l),u=tt(()=>t?t.valueRef.value===e.value:c.value),f=tt(()=>{const{name:b}=e;if(b!==void 0)return b;if(t)return t.nameRef.value}),v=B(!1);function p(){if(t){const{doUpdateValue:b}=t,{value:T}=e;ae(b,T)}else{const{onUpdateChecked:b,"onUpdate:checked":T}=e,{nTriggerFormInput:$,nTriggerFormChange:R}=o;b&&ae(b,!0),T&&ae(T,!0),$(),R(),l.value=!0}}function h(){n.value||u.value||p()}function g(){h(),i.value&&(i.value.checked=u.value)}function x(){v.value=!1}function y(){v.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Qe(e).mergedClsPrefixRef,inputRef:i,labelRef:s,mergedName:f,mergedDisabled:n,renderSafeChecked:u,focus:v,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:x,handleRadioInputFocus:y}}const Hp=Object.assign(Object.assign({},Re.props),Td),Bd=re({name:"Radio",props:Hp,setup(e){const t=Id(e),o=Re("Radio","-radio",_p,Oi,e,t.mergedClsPrefix),r=C(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:f,boxShadowActive:v,boxShadowDisabled:p,boxShadowFocus:h,boxShadowHover:g,color:x,colorDisabled:y,colorActive:b,textColor:T,textColorDisabled:$,dotColorActive:R,dotColorDisabled:S,labelPadding:w,labelLineHeight:O,labelFontWeight:F,[ie("fontSize",c)]:A,[ie("radioSize",c)]:j}}=o.value;return{"--n-bezier":u,"--n-label-line-height":O,"--n-label-font-weight":F,"--n-box-shadow":f,"--n-box-shadow-active":v,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":h,"--n-box-shadow-hover":g,"--n-color":x,"--n-color-active":b,"--n-color-disabled":y,"--n-dot-color-active":R,"--n-dot-color-disabled":S,"--n-font-size":A,"--n-radio-size":j,"--n-text-color":T,"--n-text-color-disabled":$,"--n-label-padding":w}}),{inlineThemeDisabled:n,mergedClsPrefixRef:i,mergedRtlRef:s}=Qe(e),l=Wt("Radio",s,i),d=n?it("radio",C(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:n?void 0:r,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:r}=this;return o==null||o(),a("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},a("div",{class:`${t}-radio__dot-wrapper`}," ",a("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),a("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),mt(e.default,n=>!n&&!r?null:a("div",{ref:"labelRef",class:`${t}-radio__label`},n||r)))}}),fy=re({name:"RadioButton",props:Td,setup:Id,render(){const{mergedClsPrefix:e}=this;return a("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},a("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),a("div",{class:`${e}-radio-button__state-border`}),mt(this.$slots.default,t=>!t&&!this.label?null:a("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Ep=m("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[P("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[z("checked",{backgroundColor:"var(--n-button-border-color-active)"}),z("disabled",{opacity:"var(--n-opacity-disabled)"})]),z("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[m("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),P("splitor",{height:"var(--n-height)"})]),m("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background: var(--n-button-color); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[m("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),P("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),k("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[P("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),k("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[P("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),at("disabled",` - cursor: pointer; - `,[k("&:hover",[P("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),at("checked",{color:"var(--n-button-text-color-hover)"})]),z("focus",[k("&:not(:active)",[P("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),z("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),z("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function Lp(e,t,o){var r;const n=[];let i=!1;for(let s=0;s{const{value:R}=o,{common:{cubicBezierEaseInOut:S},self:{buttonBorderColor:w,buttonBorderColorActive:O,buttonBorderRadius:F,buttonBoxShadow:A,buttonBoxShadowFocus:j,buttonBoxShadowHover:M,buttonColor:H,buttonColorActive:U,buttonTextColor:L,buttonTextColorActive:te,buttonTextColorHover:K,opacityDisabled:le,[ie("buttonHeight",R)]:be,[ie("fontSize",R)]:ce}}=f.value;return{"--n-font-size":ce,"--n-bezier":S,"--n-button-border-color":w,"--n-button-border-color-active":O,"--n-button-border-radius":F,"--n-button-box-shadow":A,"--n-button-box-shadow-focus":j,"--n-button-box-shadow-hover":M,"--n-button-color":H,"--n-button-color-active":U,"--n-button-text-color":L,"--n-button-text-color-hover":K,"--n-button-text-color-active":te,"--n-height":be,"--n-opacity-disabled":le}}),$=c?it("radio-group",C(()=>o.value[0]),T,e):void 0;return{selfElRef:t,rtlEnabled:b,mergedClsPrefix:d,mergedValue:h,handleFocusout:y,handleFocusin:x,cssVars:c?void 0:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:r,handleFocusout:n}=this,{children:i,isButtonGroup:s}=Lp(zo(mn(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{onFocusin:r,onFocusout:n,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,s&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),Vp=re({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Ee(Mo);return()=>{const{rowKey:r}=e;return a(Bd,{name:o,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),Wp=Object.assign(Object.assign({},Lr),Re.props),Od=re({name:"Tooltip",props:Wp,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=Re("Tooltip","-tooltip",void 0,Bi,e,t),r=B(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:o,popoverThemeOverrides:C(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return a(Rn,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Dd=m("ellipsis",{overflow:"hidden"},[at("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),z("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),z("cursor-pointer",` - cursor: pointer; - `)]);function Ja(e){return`${e}-ellipsis--line-clamp`}function ei(e,t){return`${e}-ellipsis--cursor-${t}`}const Md=Object.assign(Object.assign({},Re.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Di=re({name:"Ellipsis",inheritAttrs:!1,props:Md,slots:Object,setup(e,{slots:t,attrs:o}){const r=ys(),n=Re("Ellipsis","-ellipsis",Dd,yd,e,r),i=B(null),s=B(null),l=B(null),d=B(!1),c=C(()=>{const{lineClamp:x}=e,{value:y}=d;return x!==void 0?{textOverflow:"","-webkit-line-clamp":y?"":x}:{textOverflow:y?"":"ellipsis","-webkit-line-clamp":""}});function u(){let x=!1;const{value:y}=d;if(y)return!0;const{value:b}=i;if(b){const{lineClamp:T}=e;if(p(b),T!==void 0)x=b.scrollHeight<=b.offsetHeight;else{const{value:$}=s;$&&(x=$.getBoundingClientRect().width<=b.getBoundingClientRect().width)}h(b,x)}return x}const f=C(()=>e.expandTrigger==="click"?()=>{var x;const{value:y}=d;y&&((x=l.value)===null||x===void 0||x.setShow(!1)),d.value=!y}:void 0);os(()=>{var x;e.tooltip&&((x=l.value)===null||x===void 0||x.setShow(!1))});const v=()=>a("span",Object.assign({},lo(o,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?Ja(r.value):void 0,e.expandTrigger==="click"?ei(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:a("span",{ref:"triggerInnerRef"},t));function p(x){if(!x)return;const y=c.value,b=Ja(r.value);e.lineClamp!==void 0?g(x,b,"add"):g(x,b,"remove");for(const T in y)x.style[T]!==y[T]&&(x.style[T]=y[T])}function h(x,y){const b=ei(r.value,"pointer");e.expandTrigger==="click"&&!y?g(x,b,"add"):g(x,b,"remove")}function g(x,y,b){b==="add"?x.classList.contains(y)||x.classList.add(y):x.classList.contains(y)&&x.classList.remove(y)}return{mergedTheme:n,triggerRef:i,triggerInnerRef:s,tooltipRef:l,handleClick:f,renderTrigger:v,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:r}=this;if(t){const{mergedTheme:n}=this;return a(Od,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:o,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return o()}}),Up=re({name:"PerformantEllipsis",props:Md,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const r=B(!1),n=ys();return dr("-ellipsis",Dd,n),{mouseEntered:r,renderTrigger:()=>{const{lineClamp:s}=e,l=n.value;return a("span",Object.assign({},lo(t,{class:[`${l}-ellipsis`,s!==void 0?Ja(l):void 0,e.expandTrigger==="click"?ei(l,"pointer"):void 0],style:s===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":s}}),{onMouseenter:()=>{r.value=!0}}),s?o:a("span",null,o))}}},render(){return this.mouseEntered?a(Di,lo({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),Kp=re({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:r,renderCell:n}=this;let i;const{render:s,key:l,ellipsis:d}=o;if(s&&!t?i=s(r,this.index):t?i=(e=r[l])===null||e===void 0?void 0:e.value:i=n?n(Kn(r,l),r,o):Kn(r,l),d)if(typeof d=="object"){const{mergedTheme:c}=this;return o.ellipsisComponent==="performant-ellipsis"?a(Up,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):a(Di,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return a("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),Dl=re({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return a("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},a(cr,null,{default:()=>this.loading?a(Zo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):a(Rt,{clsPrefix:e,key:"base-icon"},{default:()=>a(wi,null)})}))}}),qp=re({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Wt("DataTable",o,t),{mergedClsPrefixRef:n,mergedThemeRef:i,localeRef:s}=Ee(Mo),l=B(e.value),d=C(()=>{const{value:h}=l;return Array.isArray(h)?h:null}),c=C(()=>{const{value:h}=l;return ya(e.column)?Array.isArray(h)&&h.length&&h[0]||null:Array.isArray(h)?null:h});function u(h){e.onChange(h)}function f(h){e.multiple&&Array.isArray(h)?l.value=h:ya(e.column)&&!Array.isArray(h)?l.value=[h]:l.value=h}function v(){u(l.value),e.onConfirm()}function p(){e.multiple||ya(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:n,rtlEnabled:r,mergedTheme:i,locale:s,checkboxGroupValue:d,radioGroupValue:c,handleChange:f,handleConfirmClick:v,handleClearClick:p}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return a("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},a(Vt,null,{default:()=>{const{checkboxGroupValue:r,handleChange:n}=this;return this.multiple?a(kv,{value:r,class:`${o}-data-table-filter-menu__group`,onUpdateValue:n},{default:()=>this.options.map(i=>a(oa,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):a(jp,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>a(Bd,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),a("div",{class:`${o}-data-table-filter-menu__action`},a(At,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),a(At,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),Yp=re({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function Gp(e,t,o){const r=Object.assign({},e);return r[t]=o,r}const Xp=re({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Qe(),{mergedThemeRef:o,mergedClsPrefixRef:r,mergedFilterStateRef:n,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:s,doUpdatePage:l,doUpdateFilters:d,filterIconPopoverPropsRef:c}=Ee(Mo),u=B(!1),f=n,v=C(()=>e.column.filterMultiple!==!1),p=C(()=>{const T=f.value[e.column.key];if(T===void 0){const{value:$}=v;return $?[]:null}return T}),h=C(()=>{const{value:T}=p;return Array.isArray(T)?T.length>0:T!==null}),g=C(()=>{var T,$;return(($=(T=t==null?void 0:t.value)===null||T===void 0?void 0:T.DataTable)===null||$===void 0?void 0:$.renderFilter)||e.column.renderFilter});function x(T){const $=Gp(f.value,e.column.key,T);d($,e.column),s.value==="first"&&l(1)}function y(){u.value=!1}function b(){u.value=!1}return{mergedTheme:o,mergedClsPrefix:r,active:h,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:v,mergedFilterValue:p,filterMenuCssVars:i,handleFilterChange:x,handleFilterMenuConfirm:b,handleFilterMenuCancel:y}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:r}=this;return a(Rn,Object.assign({show:this.showPopover,onUpdateShow:n=>this.showPopover=n,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},r,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:n}=this;if(n)return a(Yp,{"data-data-table-filter":!0,render:n,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return a("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):a(Rt,{clsPrefix:t},{default:()=>a(wf,null)}))},default:()=>{const{renderFilterMenu:n}=this.column;return n?n({hide:o}):a(qp,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),Zp=re({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ee(Mo),o=B(!1);let r=0;function n(d){return d.clientX}function i(d){var c;d.preventDefault();const u=o.value;r=n(d),o.value=!0,u||(Lt("mousemove",window,s),Lt("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function s(d){var c;(c=e.onResize)===null||c===void 0||c.call(e,n(d)-r)}function l(){var d;o.value=!1,(d=e.onResizeEnd)===null||d===void 0||d.call(e),Yt("mousemove",window,s),Yt("mouseup",window,l)}return bo(()=>{Yt("mousemove",window,s),Yt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return a("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Qp=re({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),Jp=re({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Qe(),{mergedSortStateRef:o,mergedClsPrefixRef:r}=Ee(Mo),n=C(()=>o.value.find(d=>d.columnKey===e.column.key)),i=C(()=>n.value!==void 0),s=C(()=>{const{value:d}=n;return d&&i.value?d.order:!1}),l=C(()=>{var d,c;return((c=(d=t==null?void 0:t.value)===null||d===void 0?void 0:d.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:s,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:r}=this.column;return e?a(Qp,{render:e,order:t}):a("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},r?r({order:t}):a(Rt,{clsPrefix:o},{default:()=>a(vf,null)}))}}),Mi="n-dropdown-menu",na="n-dropdown",Ml="n-dropdown-option",Ad=re({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return a("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),eg=re({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ee(Mi),{renderLabelRef:o,labelFieldRef:r,nodePropsRef:n,renderOptionRef:i}=Ee(na);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:r,nodeProps:n,renderLabel:i,renderOption:s}=this,{rawNode:l}=this.tmNode,d=a("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(l)),a("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},a("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},kt(l.icon)),a("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):kt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),a("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return s?s({node:d,option:l}):d}});function _d(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:s}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:s}}const tg={common:dt,self:_d},og={name:"Icon",common:Ae,self:_d},rg=m("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; -`,[z("color-transition",{transition:"color .3s var(--n-bezier)"}),z("depth",{color:"var(--n-color)"},[k("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),k("svg",{height:"1em",width:"1em"})]),ng=Object.assign(Object.assign({},Re.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),ag=re({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:ng,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Icon","-icon",rg,tg,e,t),n=C(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:l},self:d}=r.value;if(s!==void 0){const{color:c,[`opacity${s}Depth`]:u}=d;return{"--n-bezier":l,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?it("icon",C(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:C(()=>{const{size:s,color:l}=e;return{fontSize:_t(s),color:l}}),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:r,component:n,onRender:i,themeClass:s}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&ho("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),a("i",lo(this.$attrs,{role:"img",class:[`${r}-icon`,s,{[`${r}-icon--depth`]:o,[`${r}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?a(n):this.$slots)}});function ti(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function ig(e){return e.type==="group"}function Hd(e){return e.type==="divider"}function lg(e){return e.type==="render"}const Ed=re({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ee(na),{hoverKeyRef:o,keyboardKeyRef:r,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:s,animatedRef:l,mergedShowRef:d,renderLabelRef:c,renderIconRef:u,labelFieldRef:f,childrenFieldRef:v,renderOptionRef:p,nodePropsRef:h,menuPropsRef:g}=t,x=Ee(Ml,null),y=Ee(Mi),b=Ee(Vr),T=C(()=>e.tmNode.rawNode),$=C(()=>{const{value:K}=v;return ti(e.tmNode.rawNode,K)}),R=C(()=>{const{disabled:K}=e.tmNode;return K}),S=C(()=>{if(!$.value)return!1;const{key:K,disabled:le}=e.tmNode;if(le)return!1;const{value:be}=o,{value:ce}=r,{value:V}=n,{value:E}=i;return be!==null?E.includes(K):ce!==null?E.includes(K)&&E[E.length-1]!==K:V!==null?E.includes(K):!1}),w=C(()=>r.value===null&&!l.value),O=Qu(S,300,w),F=C(()=>!!(x!=null&&x.enteringSubmenuRef.value)),A=B(!1);Je(Ml,{enteringSubmenuRef:A});function j(){A.value=!0}function M(){A.value=!1}function H(){const{parentKey:K,tmNode:le}=e;le.disabled||d.value&&(n.value=K,r.value=null,o.value=le.key)}function U(){const{tmNode:K}=e;K.disabled||d.value&&o.value!==K.key&&H()}function L(K){if(e.tmNode.disabled||!d.value)return;const{relatedTarget:le}=K;le&&!Jt({target:le},"dropdownOption")&&!Jt({target:le},"scrollbarRail")&&(o.value=null)}function te(){const{value:K}=$,{tmNode:le}=e;d.value&&!K&&!le.disabled&&(t.doSelect(le.key,le.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:u,siblingHasIcon:y.showIconRef,siblingHasSubmenu:y.hasSubmenuRef,menuProps:g,popoverBody:b,animated:l,mergedShowSubmenu:C(()=>O.value&&!F.value),rawNode:T,hasSubmenu:$,pending:tt(()=>{const{value:K}=i,{key:le}=e.tmNode;return K.includes(le)}),childActive:tt(()=>{const{value:K}=s,{key:le}=e.tmNode,be=K.findIndex(ce=>le===ce);return be===-1?!1:be{const{value:K}=s,{key:le}=e.tmNode,be=K.findIndex(ce=>le===ce);return be===-1?!1:be===K.length-1}),mergedDisabled:R,renderOption:p,nodeProps:h,handleClick:te,handleMouseMove:U,handleMouseEnter:H,handleMouseLeave:L,handleSubmenuBeforeEnter:j,handleSubmenuAfterEnter:M}},render(){var e,t;const{animated:o,rawNode:r,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:s,siblingHasSubmenu:l,renderLabel:d,renderIcon:c,renderOption:u,nodeProps:f,props:v,scrollable:p}=this;let h=null;if(n){const b=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);h=a(Ld,Object.assign({},b,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},x=f==null?void 0:f(r),y=a("div",Object.assign({class:[`${i}-dropdown-option`,x==null?void 0:x.class],"data-dropdown-option":!0},x),a("div",lo(g,v),[a("div",{class:[`${i}-dropdown-option-body__prefix`,s&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):kt(r.icon)]),a("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},d?d(r):kt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),a("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?a(ag,null,{default:()=>a(wi,null)}):null)]),this.hasSubmenu?a(zr,null,{default:()=>[a(Pr,null,{default:()=>a("div",{class:`${i}-dropdown-offset-container`},a(Rr,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>a("div",{class:`${i}-dropdown-menu-wrapper`},o?a(qt,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return u?u({node:y,option:r}):y}}),sg=re({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:r}=e;return a(Gt,null,a(eg,{clsPrefix:o,tmNode:e,key:e.key}),r==null?void 0:r.map(n=>{const{rawNode:i}=n;return i.show===!1?null:Hd(i)?a(Ad,{clsPrefix:o,key:n.key}):n.isGroup?(ho("dropdown","`group` node is not allowed to be put in `group` node."),null):a(Ed,{clsPrefix:o,tmNode:n,parentKey:t,key:n.key})}))}}),dg=re({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return a("div",t,[e==null?void 0:e()])}}),Ld=re({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Ee(na);Je(Mi,{showIconRef:C(()=>{const n=t.value;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>n?n(d):d.icon);const{rawNode:l}=i;return n?n(l):l.icon})}),hasSubmenuRef:C(()=>{const{value:n}=o;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>ti(d,n));const{rawNode:l}=i;return ti(l,n)})})});const r=B(null);return Je(gn,null),Je(pn,null),Je(Vr,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,r=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:lg(i)?a(dg,{tmNode:n,key:n.key}):Hd(i)?a(Ad,{clsPrefix:t,key:n.key}):ig(i)?a(sg,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):a(Ed,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:o})});return a("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?a(Gn,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Bs({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),cg=m("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[hr(),m("dropdown-option",` - position: relative; - `,[k("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[k("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),m("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[k("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),at("disabled",[z("pending",` - color: var(--n-option-text-color-hover); - `,[P("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),k("&::before","background-color: var(--n-option-color-hover);")]),z("active",` - color: var(--n-option-text-color-active); - `,[P("prefix, suffix",` - color: var(--n-option-text-color-active); - `),k("&::before","background-color: var(--n-option-color-active);")]),z("child-active",` - color: var(--n-option-text-color-child-active); - `,[P("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),z("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),z("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[P("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[z("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),P("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[z("show-icon",` - width: var(--n-option-icon-prefix-width); - `),m("icon",` - font-size: var(--n-option-icon-size); - `)]),P("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),P("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[z("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),m("icon",` - font-size: var(--n-option-icon-size); - `)]),m("dropdown-menu","pointer-events: all;")]),m("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),m("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),m("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),k(">",[m("scrollbar",` - height: inherit; - max-height: inherit; - `)]),at("scrollable",` - padding: var(--n-padding); - `),z("scrollable",[P("content",` - padding: var(--n-padding); - `)])]),ug={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},fg=Object.keys(Lr),hg=Object.assign(Object.assign(Object.assign({},Lr),ug),Re.props),Nd=re({name:"Dropdown",inheritAttrs:!1,props:hg,setup(e){const t=B(!1),o=$t(fe(e,"show"),t),r=C(()=>{const{keyField:M,childrenField:H}=e;return Uo(e.options,{getKey(U){return U[M]},getDisabled(U){return U.disabled===!0},getIgnored(U){return U.type==="divider"||U.type==="render"},getChildren(U){return U[H]}})}),n=C(()=>r.value.treeNodes),i=B(null),s=B(null),l=B(null),d=C(()=>{var M,H,U;return(U=(H=(M=i.value)!==null&&M!==void 0?M:s.value)!==null&&H!==void 0?H:l.value)!==null&&U!==void 0?U:null}),c=C(()=>r.value.getPath(d.value).keyPath),u=C(()=>r.value.getPath(e.value).keyPath),f=tt(()=>e.keyboard&&o.value);vi({keydown:{ArrowUp:{prevent:!0,handler:R},ArrowRight:{prevent:!0,handler:$},ArrowDown:{prevent:!0,handler:S},ArrowLeft:{prevent:!0,handler:T},Enter:{prevent:!0,handler:w},Escape:b}},f);const{mergedClsPrefixRef:v,inlineThemeDisabled:p}=Qe(e),h=Re("Dropdown","-dropdown",cg,Fi,e,v);Je(na,{labelFieldRef:fe(e,"labelField"),childrenFieldRef:fe(e,"childrenField"),renderLabelRef:fe(e,"renderLabel"),renderIconRef:fe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:s,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:fe(e,"animated"),mergedShowRef:o,nodePropsRef:fe(e,"nodeProps"),renderOptionRef:fe(e,"renderOption"),menuPropsRef:fe(e,"menuProps"),doSelect:g,doUpdateShow:x}),gt(o,M=>{!e.animated&&!M&&y()});function g(M,H){const{onSelect:U}=e;U&&ae(U,M,H)}function x(M){const{"onUpdate:show":H,onUpdateShow:U}=e;H&&ae(H,M),U&&ae(U,M),t.value=M}function y(){i.value=null,s.value=null,l.value=null}function b(){x(!1)}function T(){F("left")}function $(){F("right")}function R(){F("up")}function S(){F("down")}function w(){const M=O();M!=null&&M.isLeaf&&o.value&&(g(M.key,M.rawNode),x(!1))}function O(){var M;const{value:H}=r,{value:U}=d;return!H||U===null?null:(M=H.getNode(U))!==null&&M!==void 0?M:null}function F(M){const{value:H}=d,{value:{getFirstAvailableNode:U}}=r;let L=null;if(H===null){const te=U();te!==null&&(L=te.key)}else{const te=O();if(te){let K;switch(M){case"down":K=te.getNext();break;case"up":K=te.getPrev();break;case"right":K=te.getChild();break;case"left":K=te.getParent();break}K&&(L=K.key)}}L!==null&&(i.value=null,s.value=L)}const A=C(()=>{const{size:M,inverted:H}=e,{common:{cubicBezierEaseInOut:U},self:L}=h.value,{padding:te,dividerColor:K,borderRadius:le,optionOpacityDisabled:be,[ie("optionIconSuffixWidth",M)]:ce,[ie("optionSuffixWidth",M)]:V,[ie("optionIconPrefixWidth",M)]:E,[ie("optionPrefixWidth",M)]:I,[ie("fontSize",M)]:N,[ie("optionHeight",M)]:J,[ie("optionIconSize",M)]:se}=L,xe={"--n-bezier":U,"--n-font-size":N,"--n-padding":te,"--n-border-radius":le,"--n-option-height":J,"--n-option-prefix-width":I,"--n-option-icon-prefix-width":E,"--n-option-suffix-width":V,"--n-option-icon-suffix-width":ce,"--n-option-icon-size":se,"--n-divider-color":K,"--n-option-opacity-disabled":be};return H?(xe["--n-color"]=L.colorInverted,xe["--n-option-color-hover"]=L.optionColorHoverInverted,xe["--n-option-color-active"]=L.optionColorActiveInverted,xe["--n-option-text-color"]=L.optionTextColorInverted,xe["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,xe["--n-option-text-color-active"]=L.optionTextColorActiveInverted,xe["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,xe["--n-prefix-color"]=L.prefixColorInverted,xe["--n-suffix-color"]=L.suffixColorInverted,xe["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(xe["--n-color"]=L.color,xe["--n-option-color-hover"]=L.optionColorHover,xe["--n-option-color-active"]=L.optionColorActive,xe["--n-option-text-color"]=L.optionTextColor,xe["--n-option-text-color-hover"]=L.optionTextColorHover,xe["--n-option-text-color-active"]=L.optionTextColorActive,xe["--n-option-text-color-child-active"]=L.optionTextColorChildActive,xe["--n-prefix-color"]=L.prefixColor,xe["--n-suffix-color"]=L.suffixColor,xe["--n-group-header-text-color"]=L.groupHeaderTextColor),xe}),j=p?it("dropdown",C(()=>`${e.size[0]}${e.inverted?"i":""}`),A,e):void 0;return{mergedClsPrefix:v,mergedTheme:h,tmNodes:n,mergedShow:o,handleAfterLeave:()=>{e.animated&&y()},doUpdateShow:x,cssVars:p?void 0:A,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender}},render(){const e=(r,n,i,s,l)=>{var d;const{mergedClsPrefix:c,menuProps:u}=this;(d=this.onRender)===null||d===void 0||d.call(this);const f=(u==null?void 0:u(void 0,this.tmNodes.map(p=>p.rawNode)))||{},v={ref:Cs(n),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:s,onMouseleave:l};return a(Ld,lo(this.$attrs,v,f))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return a(Rn,Object.assign({},mo(this.$props,fg),o),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}}),jd="_n_all__",Vd="_n_none__";function vg(e,t,o,r){return e?n=>{for(const i of e)switch(n){case jd:o(!0);return;case Vd:r(!0);return;default:if(typeof i=="object"&&i.key===n){i.onSelect(t.value);return}}}:()=>{}}function pg(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:jd};case"none":return{label:t.uncheckTableAll,key:Vd};default:return o}}):[]}const gg=re({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:r,rawPaginatedDataRef:n,doCheckAll:i,doUncheckAll:s}=Ee(Mo),l=C(()=>vg(r.value,n,i,s)),d=C(()=>pg(r.value,o.value));return()=>{var c,u,f,v;const{clsPrefix:p}=e;return a(Nd,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(v=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||v===void 0?void 0:v.Dropdown,options:d.value,onSelect:l.value},{default:()=>a(Rt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>a(Ss,null)})})}}});function Sa(e){return typeof e.title=="function"?e.title(e):e.title}const mg=re({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:r}=this;return a("table",{style:{tableLayout:"fixed",width:r},class:`${e}-data-table-table`},a("colgroup",null,o.map(n=>a("col",{key:n.key,style:n.style}))),a("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),Wd=re({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:r,mergedCurrentPageRef:n,allRowsCheckedRef:i,someRowsCheckedRef:s,rowsRef:l,colsRef:d,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:f,componentId:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:h,virtualScrollHeaderRef:g,headerHeightRef:x,onUnstableColumnResize:y,doUpdateResizableWidth:b,handleTableHeaderScroll:T,deriveNextSorter:$,doUncheckAll:R,doCheckAll:S}=Ee(Mo),w=B(),O=B({});function F(L){const te=O.value[L];return te==null?void 0:te.getBoundingClientRect().width}function A(){i.value?R():S()}function j(L,te){if(Jt(L,"dataTableFilter")||Jt(L,"dataTableResizable")||!wa(te))return;const K=f.value.find(be=>be.columnKey===te.key)||null,le=Op(te,K);$(le)}const M=new Map;function H(L){M.set(L.key,F(L.key))}function U(L,te){const K=M.get(L.key);if(K===void 0)return;const le=K+te,be=Fp(le,L.minWidth,L.maxWidth);y(le,be,L,F),b(L,be)}return{cellElsRef:O,componentId:v,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:i,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,mergedTableLayout:p,headerCheckboxDisabled:h,headerHeight:x,virtualScrollHeader:g,virtualListRef:w,handleCheckboxUpdateChecked:A,handleColHeaderClick:j,handleTableHeaderScroll:T,handleColumnResizeStart:H,handleColumnResize:U}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:i,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,componentId:f,discrete:v,mergedTableLayout:p,headerCheckboxDisabled:h,mergedSortState:g,virtualScrollHeader:x,handleColHeaderClick:y,handleCheckboxUpdateChecked:b,handleColumnResizeStart:T,handleColumnResize:$}=this,R=(F,A,j)=>F.map(({column:M,colIndex:H,colSpan:U,rowSpan:L,isLast:te})=>{var K,le;const be=Io(M),{ellipsis:ce}=M,V=()=>M.type==="selection"?M.multiple!==!1?a(Gt,null,a(oa,{key:n,privateInsideTable:!0,checked:i,indeterminate:s,disabled:h,onUpdateChecked:b}),u?a(gg,{clsPrefix:t}):null):null:a(Gt,null,a("div",{class:`${t}-data-table-th__title-wrapper`},a("div",{class:`${t}-data-table-th__title`},ce===!0||ce&&!ce.tooltip?a("div",{class:`${t}-data-table-th__ellipsis`},Sa(M)):ce&&typeof ce=="object"?a(Di,Object.assign({},ce,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Sa(M)}):Sa(M)),wa(M)?a(Jp,{column:M}):null),Bl(M)?a(Xp,{column:M,options:M.filterOptions}):null,Pd(M)?a(Zp,{onResizeStart:()=>{T(M)},onResize:J=>{$(M,J)}}):null),E=be in o,I=be in r,N=A&&!M.fixed?"div":"th";return a(N,{ref:J=>e[be]=J,key:be,style:[A&&!M.fixed?{position:"absolute",left:Et(A(H)),top:0,bottom:0}:{left:Et((K=o[be])===null||K===void 0?void 0:K.start),right:Et((le=r[be])===null||le===void 0?void 0:le.start)},{width:Et(M.width),textAlign:M.titleAlign||M.align,height:j}],colspan:U,rowspan:L,"data-col-key":be,class:[`${t}-data-table-th`,(E||I)&&`${t}-data-table-th--fixed-${E?"left":"right"}`,{[`${t}-data-table-th--sorting`]:$d(M,g),[`${t}-data-table-th--filterable`]:Bl(M),[`${t}-data-table-th--sortable`]:wa(M),[`${t}-data-table-th--selection`]:M.type==="selection",[`${t}-data-table-th--last`]:te},M.className],onClick:M.type!=="selection"&&M.type!=="expand"&&!("children"in M)?J=>{y(J,M)}:void 0},V())});if(x){const{headerHeight:F}=this;let A=0,j=0;return d.forEach(M=>{M.column.fixed==="left"?A++:M.column.fixed==="right"&&j++}),a(Sr,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Et(F)},onScroll:this.handleTableHeaderScroll,columns:d,itemSize:F,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:mg,visibleItemsProps:{clsPrefix:t,id:f,cols:d,width:_t(this.scrollX)},renderItemWithCols:({startColIndex:M,endColIndex:H,getLeft:U})=>{const L=d.map((K,le)=>({column:K.column,isLast:le===d.length-1,colIndex:K.index,colSpan:1,rowSpan:1})).filter(({column:K},le)=>!!(M<=le&&le<=H||K.fixed)),te=R(L,U,Et(F));return te.splice(A,0,a("th",{colspan:d.length-A-j,style:{pointerEvents:"none",visibility:"hidden",height:0}})),a("tr",{style:{position:"relative"}},te)}},{default:({renderedItemWithCols:M})=>M})}const S=a("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map(F=>a("tr",{class:`${t}-data-table-tr`},R(F,null,void 0))));if(!v)return S;const{handleTableHeaderScroll:w,scrollX:O}=this;return a("div",{class:`${t}-data-table-base-table-header`,onScroll:w},a("table",{class:`${t}-data-table-table`,style:{minWidth:_t(O),tableLayout:p}},a("colgroup",null,d.map(F=>a("col",{key:F.key,style:F.style}))),S))}});function bg(e,t){const o=[];function r(n,i){n.forEach(s=>{s.children&&t.has(s.key)?(o.push({tmNode:s,striped:!1,key:s.key,index:i}),r(s.children,i)):o.push({key:s.key,tmNode:s,striped:!1,index:i})})}return e.forEach(n=>{o.push(n);const{children:i}=n.tmNode;i&&t.has(n.key)&&r(i,n.index)}),o}const xg=re({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:r,onMouseleave:n}=this;return a("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:n},a("colgroup",null,o.map(i=>a("col",{key:i.key,style:i.style}))),a("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),Cg=re({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:n,mergedThemeRef:i,scrollXRef:s,colsRef:l,paginatedDataRef:d,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:f,mergedCurrentPageRef:v,rowClassNameRef:p,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:x,rightActiveFixedChildrenColKeysRef:y,renderExpandRef:b,hoverKeyRef:T,summaryRef:$,mergedSortStateRef:R,virtualScrollRef:S,virtualScrollXRef:w,heightForRowRef:O,minRowHeightRef:F,componentId:A,mergedTableLayoutRef:j,childTriggerColIndexRef:M,indentRef:H,rowPropsRef:U,maxHeightRef:L,stripedRef:te,loadingRef:K,onLoadRef:le,loadingKeySetRef:be,expandableRef:ce,stickyExpandedRowsRef:V,renderExpandIconRef:E,summaryPlacementRef:I,treeMateRef:N,scrollbarPropsRef:J,setHeaderScrollLeft:se,doUpdateExpandedRowKeys:xe,handleTableBodyScroll:Ie,doCheck:_,doUncheck:Pe,renderCell:He}=Ee(Mo),_e=Ee($o),Ge=B(null),Xe=B(null),ct=B(null),ot=tt(()=>d.value.length===0),Ce=tt(()=>e.showHeader||!ot.value),ee=tt(()=>e.showHeader||ot.value);let ue="";const q=C(()=>new Set(r.value));function Q(De){var Ze;return(Ze=N.value.getNode(De))===null||Ze===void 0?void 0:Ze.rawNode}function pe(De,Ze,D){const G=Q(De.key);if(!G){ho("data-table",`fail to get row data with key ${De.key}`);return}if(D){const ve=d.value.findIndex(Fe=>Fe.key===ue);if(ve!==-1){const Fe=d.value.findIndex($e=>$e.key===De.key),Be=Math.min(ve,Fe),W=Math.max(ve,Fe),ge=[];d.value.slice(Be,W+1).forEach($e=>{$e.disabled||ge.push($e.key)}),Ze?_(ge,!1,G):Pe(ge,G),ue=De.key;return}}Ze?_(De.key,!1,G):Pe(De.key,G),ue=De.key}function we(De){const Ze=Q(De.key);if(!Ze){ho("data-table",`fail to get row data with key ${De.key}`);return}_(De.key,!0,Ze)}function de(){if(!Ce.value){const{value:Ze}=ct;return Ze||null}if(S.value)return oe();const{value:De}=Ge;return De?De.containerRef:null}function me(De,Ze){var D;if(be.value.has(De))return;const{value:G}=r,ve=G.indexOf(De),Fe=Array.from(G);~ve?(Fe.splice(ve,1),xe(Fe)):Ze&&!Ze.isLeaf&&!Ze.shallowLoaded?(be.value.add(De),(D=le.value)===null||D===void 0||D.call(le,Ze.rawNode).then(()=>{const{value:Be}=r,W=Array.from(Be);~W.indexOf(De)||W.push(De),xe(W)}).finally(()=>{be.value.delete(De)})):(Fe.push(De),xe(Fe))}function je(){T.value=null}function oe(){const{value:De}=Xe;return(De==null?void 0:De.listElRef)||null}function Ue(){const{value:De}=Xe;return(De==null?void 0:De.itemsElRef)||null}function lt(De){var Ze;Ie(De),(Ze=Ge.value)===null||Ze===void 0||Ze.sync()}function zt(De){var Ze;const{onResize:D}=e;D&&D(De),(Ze=Ge.value)===null||Ze===void 0||Ze.sync()}const xt={getScrollContainer:de,scrollTo(De,Ze){var D,G;S.value?(D=Xe.value)===null||D===void 0||D.scrollTo(De,Ze):(G=Ge.value)===null||G===void 0||G.scrollTo(De,Ze)}},pt=k([({props:De})=>{const Ze=G=>G===null?null:k(`[data-n-id="${De.componentId}"] [data-col-key="${G}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),D=G=>G===null?null:k(`[data-n-id="${De.componentId}"] [data-col-key="${G}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return k([Ze(De.leftActiveFixedColKey),D(De.rightActiveFixedColKey),De.leftActiveFixedChildrenColKeys.map(G=>Ze(G)),De.rightActiveFixedChildrenColKeys.map(G=>D(G))])}]);let ut=!1;return Ft(()=>{const{value:De}=h,{value:Ze}=g,{value:D}=x,{value:G}=y;if(!ut&&De===null&&D===null)return;const ve={leftActiveFixedColKey:De,leftActiveFixedChildrenColKeys:Ze,rightActiveFixedColKey:D,rightActiveFixedChildrenColKeys:G,componentId:A};pt.mount({id:`n-${A}`,force:!0,props:ve,anchorMetaName:Hr,parent:_e==null?void 0:_e.styleMountTarget}),ut=!0}),Jn(()=>{pt.unmount({id:`n-${A}`,parent:_e==null?void 0:_e.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:I,dataTableSlots:t,componentId:A,scrollbarInstRef:Ge,virtualListRef:Xe,emptyElRef:ct,summary:$,mergedClsPrefix:n,mergedTheme:i,scrollX:s,cols:l,loading:K,bodyShowHeaderOnly:ee,shouldDisplaySomeTablePart:Ce,empty:ot,paginatedDataAndInfo:C(()=>{const{value:De}=te;let Ze=!1;return{data:d.value.map(De?(G,ve)=>(G.isLeaf||(Ze=!0),{tmNode:G,key:G.key,striped:ve%2===1,index:ve}):(G,ve)=>(G.isLeaf||(Ze=!0),{tmNode:G,key:G.key,striped:!1,index:ve})),hasChildren:Ze}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:f,currentPage:v,rowClassName:p,renderExpand:b,mergedExpandedRowKeySet:q,hoverKey:T,mergedSortState:R,virtualScroll:S,virtualScrollX:w,heightForRow:O,minRowHeight:F,mergedTableLayout:j,childTriggerColIndex:M,indent:H,rowProps:U,maxHeight:L,loadingKeySet:be,expandable:ce,stickyExpandedRows:V,renderExpandIcon:E,scrollbarProps:J,setHeaderScrollLeft:se,handleVirtualListScroll:lt,handleVirtualListResize:zt,handleMouseleaveTable:je,virtualListContainer:oe,virtualListContent:Ue,handleTableBodyScroll:Ie,handleCheckboxUpdateChecked:pe,handleRadioUpdateChecked:we,handleUpdateExpanded:me,renderCell:He},xt)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:r,maxHeight:n,mergedTableLayout:i,flexHeight:s,loadingKeySet:l,onResize:d,setHeaderScrollLeft:c}=this,u=t!==void 0||n!==void 0||s,f=!u&&i==="auto",v=t!==void 0||f,p={minWidth:_t(t)||"100%"};t&&(p.width="100%");const h=a(Vt,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||f,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:v,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:d}),{default:()=>{const g={},x={},{cols:y,paginatedDataAndInfo:b,mergedTheme:T,fixedColumnLeftMap:$,fixedColumnRightMap:R,currentPage:S,rowClassName:w,mergedSortState:O,mergedExpandedRowKeySet:F,stickyExpandedRows:A,componentId:j,childTriggerColIndex:M,expandable:H,rowProps:U,handleMouseleaveTable:L,renderExpand:te,summary:K,handleCheckboxUpdateChecked:le,handleRadioUpdateChecked:be,handleUpdateExpanded:ce,heightForRow:V,minRowHeight:E,virtualScrollX:I}=this,{length:N}=y;let J;const{data:se,hasChildren:xe}=b,Ie=xe?bg(se,F):se;if(K){const ue=K(this.rawPaginatedData);if(Array.isArray(ue)){const q=ue.map((Q,pe)=>({isSummaryRow:!0,key:`__n_summary__${pe}`,tmNode:{rawNode:Q,disabled:!0},index:-1}));J=this.summaryPlacement==="top"?[...q,...Ie]:[...Ie,...q]}else{const q={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ue,disabled:!0},index:-1};J=this.summaryPlacement==="top"?[q,...Ie]:[...Ie,q]}}else J=Ie;const _=xe?{width:Et(this.indent)}:void 0,Pe=[];J.forEach(ue=>{te&&F.has(ue.key)&&(!H||H(ue.tmNode.rawNode))?Pe.push(ue,{isExpandedRow:!0,key:`${ue.key}-expand`,tmNode:ue.tmNode,index:ue.index}):Pe.push(ue)});const{length:He}=Pe,_e={};se.forEach(({tmNode:ue},q)=>{_e[q]=ue.key});const Ge=A?this.bodyWidth:null,Xe=Ge===null?void 0:`${Ge}px`,ct=this.virtualScrollX?"div":"td";let ot=0,Ce=0;I&&y.forEach(ue=>{ue.column.fixed==="left"?ot++:ue.column.fixed==="right"&&Ce++});const ee=({rowInfo:ue,displayedRowIndex:q,isVirtual:Q,isVirtualX:pe,startColIndex:we,endColIndex:de,getLeft:me})=>{const{index:je}=ue;if("isExpandedRow"in ue){const{tmNode:{key:Fe,rawNode:Be}}=ue;return a("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Fe}__expand`},a("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,q+1===He&&`${o}-data-table-td--last-row`],colspan:N},A?a("div",{class:`${o}-data-table-expand`,style:{width:Xe}},te(Be,je)):te(Be,je)))}const oe="isSummaryRow"in ue,Ue=!oe&&ue.striped,{tmNode:lt,key:zt}=ue,{rawNode:xt}=lt,pt=F.has(zt),ut=U?U(xt,je):void 0,De=typeof w=="string"?w:Bp(xt,je,w),Ze=pe?y.filter((Fe,Be)=>!!(we<=Be&&Be<=de||Fe.column.fixed)):y,D=pe?Et((V==null?void 0:V(xt,je))||E):void 0,G=Ze.map(Fe=>{var Be,W,ge,$e,We;const ft=Fe.index;if(q in g){const Me=g[q],Ne=Me.indexOf(ft);if(~Ne)return Me.splice(Ne,1),null}const{column:rt}=Fe,ne=Io(Fe),{rowSpan:ze,colSpan:Le}=rt,et=oe?((Be=ue.tmNode.rawNode[ne])===null||Be===void 0?void 0:Be.colSpan)||1:Le?Le(xt,je):1,yt=oe?((W=ue.tmNode.rawNode[ne])===null||W===void 0?void 0:W.rowSpan)||1:ze?ze(xt,je):1,bt=ft+et===N,Ct=q+yt===He,X=yt>1;if(X&&(x[q]={[ft]:[]}),et>1||X)for(let Me=q;Me{ce(zt,ue.tmNode)}})]:null,rt.type==="selection"?oe?null:rt.multiple===!1?a(Vp,{key:S,rowKey:zt,disabled:ue.tmNode.disabled,onUpdateChecked:()=>{be(ue.tmNode)}}):a(Ap,{key:S,rowKey:zt,disabled:ue.tmNode.disabled,onUpdateChecked:(Me,Ne)=>{le(ue.tmNode,Me,Ne.shiftKey)}}):rt.type==="expand"?oe?null:!rt.expandable||!((We=rt.expandable)===null||We===void 0)&&We.call(rt,xt)?a(Dl,{clsPrefix:o,rowData:xt,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ce(zt,null)}}):null:a(Kp,{clsPrefix:o,index:je,row:xt,column:rt,isSummary:oe,mergedTheme:T,renderCell:this.renderCell}))});return pe&&ot&&Ce&&G.splice(ot,0,a("td",{colspan:y.length-ot-Ce,style:{pointerEvents:"none",visibility:"hidden",height:0}})),a("tr",Object.assign({},ut,{onMouseenter:Fe=>{var Be;this.hoverKey=zt,(Be=ut==null?void 0:ut.onMouseenter)===null||Be===void 0||Be.call(ut,Fe)},key:zt,class:[`${o}-data-table-tr`,oe&&`${o}-data-table-tr--summary`,Ue&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,De,ut==null?void 0:ut.class],style:[ut==null?void 0:ut.style,pe&&{height:D}]}),G)};return r?a(Sr,{ref:"virtualListRef",items:Pe,itemSize:this.minRowHeight,visibleItemsTag:xg,visibleItemsProps:{clsPrefix:o,id:j,cols:y,onMouseleave:L},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!I,columns:y,renderItemWithCols:I?({itemIndex:ue,item:q,startColIndex:Q,endColIndex:pe,getLeft:we})=>ee({displayedRowIndex:ue,isVirtual:!0,isVirtualX:!0,rowInfo:q,startColIndex:Q,endColIndex:pe,getLeft:we}):void 0},{default:({item:ue,index:q,renderedItemWithCols:Q})=>Q||ee({rowInfo:ue,displayedRowIndex:q,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(pe){return 0}})}):a("table",{class:`${o}-data-table-table`,onMouseleave:L,style:{tableLayout:this.mergedTableLayout}},a("colgroup",null,y.map(ue=>a("col",{key:ue.key,style:ue.style}))),this.showHeader?a(Wd,{discrete:!1}):null,this.empty?null:a("tbody",{"data-n-id":j,class:`${o}-data-table-tbody`},Pe.map((ue,q)=>ee({rowInfo:ue,displayedRowIndex:q,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(Q){return-1}}))))}});if(this.empty){const g=()=>a("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[a(Xn,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?a(Gt,null,h,g()):a(_o,{onResize:this.onResize},{default:g})}return h}}),yg=re({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:r,maxHeightRef:n,minHeightRef:i,flexHeightRef:s,virtualScrollHeaderRef:l,syncScrollState:d}=Ee(Mo),c=B(null),u=B(null),f=B(null),v=B(!(o.value.length||t.value.length)),p=C(()=>({maxHeight:_t(n.value),minHeight:_t(i.value)}));function h(b){r.value=b.contentRect.width,d(),v.value||(v.value=!0)}function g(){var b;const{value:T}=c;return T?l.value?((b=T.virtualListRef)===null||b===void 0?void 0:b.listElRef)||null:T.$el:null}function x(){const{value:b}=u;return b?b.getScrollContainer():null}const y={getBodyElement:x,getHeaderElement:g,scrollTo(b,T){var $;($=u.value)===null||$===void 0||$.scrollTo(b,T)}};return Ft(()=>{const{value:b}=f;if(!b)return;const T=`${e.value}-data-table-base-table--transition-disabled`;v.value?setTimeout(()=>{b.classList.remove(T)},0):b.classList.add(T)}),Object.assign({maxHeight:n,mergedClsPrefix:e,selfElRef:f,headerInstRef:c,bodyInstRef:u,bodyStyle:p,flexHeight:s,handleBodyResize:h},y)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,r=t===void 0&&!o;return a("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:a(Wd,{ref:"headerInstRef"}),a(Cg,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:o,onResize:this.handleBodyResize}))}}),Al=Sg(),wg=k([m("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-th-color-sorting: var(--n-th-color-sorting); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-sorting: var(--n-td-color-sorting); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[m("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),z("flex-height",[k(">",[m("data-table-wrapper",[k(">",[m("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[k(">",[m("data-table-base-table-body","flex-basis: 0;",[k("&:last-child","flex-grow: 1;")])])])])])])]),k(">",[m("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[hr({originalTransform:"translateX(-50%) translateY(-50%)"})])]),m("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),m("data-table-indent",` - display: inline-block; - height: 1px; - `),m("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[z("expanded",[m("icon","transform: rotate(90deg);",[fo({originalTransform:"rotate(90deg)"})]),m("base-icon","transform: rotate(90deg);",[fo({originalTransform:"rotate(90deg)"})])]),m("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[fo()]),m("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[fo()]),m("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[fo()])]),m("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),m("data-table-tr",` - position: relative; - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[m("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),z("striped","background-color: var(--n-merged-td-color-striped);",[m("data-table-td","background-color: var(--n-merged-td-color-striped);")]),at("summary",[k("&:hover","background-color: var(--n-merged-td-color-hover);",[k(">",[m("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),m("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[z("filterable",` - padding-right: 36px; - `,[z("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),Al,z("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),P("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[P("title",` - flex: 1; - min-width: 0; - `)]),P("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),z("hover",` - background-color: var(--n-merged-th-color-hover); - `),z("sorting",` - background-color: var(--n-merged-th-color-sorting); - `),z("sortable",` - cursor: pointer; - `,[P("ellipsis",` - max-width: calc(100% - 18px); - `),k("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),m("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[m("base-icon","transition: transform .3s var(--n-bezier)"),z("desc",[m("base-icon",` - transform: rotate(0deg); - `)]),z("asc",[m("base-icon",` - transform: rotate(-180deg); - `)]),z("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),m("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[k("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),z("active",[k("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),k("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),m("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[k("&:hover",` - background-color: var(--n-th-button-color-hover); - `),z("show",` - background-color: var(--n-th-button-color-hover); - `),z("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),m("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[z("expand",[m("data-table-expand-trigger",` - margin-right: 0; - `)]),z("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[k("&::after",` - bottom: 0 !important; - `),k("&::before",` - bottom: 0 !important; - `)]),z("summary",` - background-color: var(--n-merged-th-color); - `),z("hover",` - background-color: var(--n-merged-td-color-hover); - `),z("sorting",` - background-color: var(--n-merged-td-color-sorting); - `),P("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); - `),z("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),Al]),m("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[z("hide",` - opacity: 0; - `)]),P("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),m("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),z("loading",[m("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),z("single-column",[m("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[k("&::after, &::before",` - bottom: 0 !important; - `)])]),at("single-line",[m("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[z("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),m("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[z("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),z("bordered",[m("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),m("data-table-base-table",[z("transition-disabled",[m("data-table-th",[k("&::after, &::before","transition: none;")]),m("data-table-td",[k("&::after, &::before","transition: none;")])])]),z("bottom-bordered",[m("data-table-td",[z("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),m("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),m("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - display: none; - width: 0; - height: 0; - `)]),m("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),m("data-table-filter-menu",[m("scrollbar",` - max-height: 240px; - `),P("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[m("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),m("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),P("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[m("button",[k("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),k("&:last-child",` - margin-right: 0; - `)])]),m("divider",` - margin: 0 !important; - `)]),jr(m("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-th-color-sorting: var(--n-th-color-hover-modal); - --n-merged-td-color-sorting: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),vn(m("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-th-color-sorting: var(--n-th-color-hover-popover); - --n-merged-td-color-sorting: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function Sg(){return[z("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[k("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),z("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[k("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}function kg(e,t){const{paginatedDataRef:o,treeMateRef:r,selectionColumnRef:n}=t,i=B(e.defaultCheckedRowKeys),s=C(()=>{var R;const{checkedRowKeys:S}=e,w=S===void 0?i.value:S;return((R=n.value)===null||R===void 0?void 0:R.multiple)===!1?{checkedKeys:w.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(w,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=C(()=>s.value.checkedKeys),d=C(()=>s.value.indeterminateKeys),c=C(()=>new Set(l.value)),u=C(()=>new Set(d.value)),f=C(()=>{const{value:R}=c;return o.value.reduce((S,w)=>{const{key:O,disabled:F}=w;return S+(!F&&R.has(O)?1:0)},0)}),v=C(()=>o.value.filter(R=>R.disabled).length),p=C(()=>{const{length:R}=o.value,{value:S}=u;return f.value>0&&f.valueS.has(w.key))}),h=C(()=>{const{length:R}=o.value;return f.value!==0&&f.value===R-v.value}),g=C(()=>o.value.length===0);function x(R,S,w){const{"onUpdate:checkedRowKeys":O,onUpdateCheckedRowKeys:F,onCheckedRowKeysChange:A}=e,j=[],{value:{getNode:M}}=r;R.forEach(H=>{var U;const L=(U=M(H))===null||U===void 0?void 0:U.rawNode;j.push(L)}),O&&ae(O,R,j,{row:S,action:w}),F&&ae(F,R,j,{row:S,action:w}),A&&ae(A,R,j,{row:S,action:w}),i.value=R}function y(R,S=!1,w){if(!e.loading){if(S){x(Array.isArray(R)?R.slice(0,1):[R],w,"check");return}x(r.value.check(R,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,w,"check")}}function b(R,S){e.loading||x(r.value.uncheck(R,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,S,"uncheck")}function T(R=!1){const{value:S}=n;if(!S||e.loading)return;const w=[];(R?r.value.treeNodes:o.value).forEach(O=>{O.disabled||w.push(O.key)}),x(r.value.check(w,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function $(R=!1){const{value:S}=n;if(!S||e.loading)return;const w=[];(R?r.value.treeNodes:o.value).forEach(O=>{O.disabled||w.push(O.key)}),x(r.value.uncheck(w,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:p,allRowsCheckedRef:h,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:x,doCheckAll:T,doUncheckAll:$,doCheck:y,doUncheck:b}}function Rg(e,t){const o=tt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=tt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),n=B(e.defaultExpandAll?o!=null&&o.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=fe(e,"expandedRowKeys"),s=fe(e,"stickyExpandedRows"),l=$t(i,n);function d(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":f}=e;u&&ae(u,c),f&&ae(f,c),n.value=c}return{stickyExpandedRowsRef:s,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:r,doUpdateExpandedRowKeys:d}}function zg(e,t){const o=[],r=[],n=[],i=new WeakMap;let s=-1,l=0,d=!1,c=0;function u(v,p){p>s&&(o[p]=[],s=p),v.forEach(h=>{if("children"in h)u(h.children,p+1);else{const g="key"in h?h.key:void 0;r.push({key:Io(h),style:Ip(h,g!==void 0?_t(t(g)):void 0),column:h,index:c++,width:h.width===void 0?128:Number(h.width)}),l+=1,d||(d=!!h.ellipsis),n.push(h)}})}u(e,0),c=0;function f(v,p){let h=0;v.forEach(g=>{var x;if("children"in g){const y=c,b={column:g,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};f(g.children,p+1),g.children.forEach(T=>{var $,R;b.colSpan+=(R=($=i.get(T))===null||$===void 0?void 0:$.colSpan)!==null&&R!==void 0?R:0}),y+b.colSpan===l&&(b.isLast=!0),i.set(g,b),o[p].push(b)}else{if(c1&&(h=c+y);const b=c+y===l,T={column:g,colSpan:y,colIndex:c,rowSpan:s-p+1,isLast:b};i.set(g,T),o[p].push(T),c+=1}})}return f(e,0),{hasEllipsis:d,rows:o,cols:r,dataRelatedCols:n}}function Pg(e,t){const o=C(()=>zg(e.columns,t));return{rowsRef:C(()=>o.value.rows),colsRef:C(()=>o.value.cols),hasEllipsisRef:C(()=>o.value.hasEllipsis),dataRelatedColsRef:C(()=>o.value.dataRelatedCols)}}function $g(){const e=B({});function t(n){return e.value[n]}function o(n,i){Pd(n)&&"key"in n&&(e.value[n.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:r}}function Tg(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:r}){let n=0;const i=B(),s=B(null),l=B([]),d=B(null),c=B([]),u=C(()=>_t(e.scrollX)),f=C(()=>e.columns.filter(F=>F.fixed==="left")),v=C(()=>e.columns.filter(F=>F.fixed==="right")),p=C(()=>{const F={};let A=0;function j(M){M.forEach(H=>{const U={start:A,end:0};F[Io(H)]=U,"children"in H?(j(H.children),U.end=A):(A+=Fl(H)||0,U.end=A)})}return j(f.value),F}),h=C(()=>{const F={};let A=0;function j(M){for(let H=M.length-1;H>=0;--H){const U=M[H],L={start:A,end:0};F[Io(U)]=L,"children"in U?(j(U.children),L.end=A):(A+=Fl(U)||0,L.end=A)}}return j(v.value),F});function g(){var F,A;const{value:j}=f;let M=0;const{value:H}=p;let U=null;for(let L=0;L(((F=H[te])===null||F===void 0?void 0:F.start)||0)-M)U=te,M=((A=H[te])===null||A===void 0?void 0:A.end)||0;else break}s.value=U}function x(){l.value=[];let F=e.columns.find(A=>Io(A)===s.value);for(;F&&"children"in F;){const A=F.children.length;if(A===0)break;const j=F.children[A-1];l.value.push(Io(j)),F=j}}function y(){var F,A;const{value:j}=v,M=Number(e.scrollX),{value:H}=r;if(H===null)return;let U=0,L=null;const{value:te}=h;for(let K=j.length-1;K>=0;--K){const le=Io(j[K]);if(Math.round(n+(((F=te[le])===null||F===void 0?void 0:F.start)||0)+H-U)Io(A)===d.value);for(;F&&"children"in F&&F.children.length;){const A=F.children[0];c.value.push(Io(A)),F=A}}function T(){const F=t.value?t.value.getHeaderElement():null,A=t.value?t.value.getBodyElement():null;return{header:F,body:A}}function $(){const{body:F}=T();F&&(F.scrollTop=0)}function R(){i.value!=="body"?Na(w):i.value=void 0}function S(F){var A;(A=e.onScroll)===null||A===void 0||A.call(e,F),i.value!=="head"?Na(w):i.value=void 0}function w(){const{header:F,body:A}=T();if(!A)return;const{value:j}=r;if(j!==null){if(e.maxHeight||e.flexHeight){if(!F)return;const M=n-F.scrollLeft;i.value=M!==0?"head":"body",i.value==="head"?(n=F.scrollLeft,A.scrollLeft=n):(n=A.scrollLeft,F.scrollLeft=n)}else n=A.scrollLeft;g(),x(),y(),b()}}function O(F){const{header:A}=T();A&&(A.scrollLeft=F,w())}return gt(o,()=>{$()}),{styleScrollXRef:u,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:h,leftFixedColumnsRef:f,rightFixedColumnsRef:v,leftActiveFixedColKeyRef:s,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:d,rightActiveFixedChildrenColKeysRef:c,syncScrollState:w,handleTableBodyScroll:S,handleTableHeaderScroll:R,setHeaderScrollLeft:O}}function Dn(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function Fg(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?Ig(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function Ig(e){return(t,o)=>{const r=t[e],n=o[e];return r==null?n==null?0:-1:n==null?1:typeof r=="number"&&typeof n=="number"?r-n:typeof r=="string"&&typeof n=="string"?r.localeCompare(n):0}}function Bg(e,{dataRelatedColsRef:t,filteredDataRef:o}){const r=[];t.value.forEach(p=>{var h;p.sorter!==void 0&&v(r,{columnKey:p.key,sorter:p.sorter,order:(h=p.defaultSortOrder)!==null&&h!==void 0?h:!1})});const n=B(r),i=C(()=>{const p=t.value.filter(x=>x.type!=="selection"&&x.sorter!==void 0&&(x.sortOrder==="ascend"||x.sortOrder==="descend"||x.sortOrder===!1)),h=p.filter(x=>x.sortOrder!==!1);if(h.length)return h.map(x=>({columnKey:x.key,order:x.sortOrder,sorter:x.sorter}));if(p.length)return[];const{value:g}=n;return Array.isArray(g)?g:g?[g]:[]}),s=C(()=>{const p=i.value.slice().sort((h,g)=>{const x=Dn(h.sorter)||0;return(Dn(g.sorter)||0)-x});return p.length?o.value.slice().sort((g,x)=>{let y=0;return p.some(b=>{const{columnKey:T,sorter:$,order:R}=b,S=Fg($,T);return S&&R&&(y=S(g.rawNode,x.rawNode),y!==0)?(y=y*Tp(R),!0):!1}),y}):o.value});function l(p){let h=i.value.slice();return p&&Dn(p.sorter)!==!1?(h=h.filter(g=>Dn(g.sorter)!==!1),v(h,p),h):p||null}function d(p){const h=l(p);c(h)}function c(p){const{"onUpdate:sorter":h,onUpdateSorter:g,onSorterChange:x}=e;h&&ae(h,p),g&&ae(g,p),x&&ae(x,p),n.value=p}function u(p,h="ascend"){if(!p)f();else{const g=t.value.find(y=>y.type!=="selection"&&y.type!=="expand"&&y.key===p);if(!(g!=null&&g.sorter))return;const x=g.sorter;d({columnKey:p,sorter:x,order:h})}}function f(){c(null)}function v(p,h){const g=p.findIndex(x=>(h==null?void 0:h.columnKey)&&x.columnKey===h.columnKey);g!==void 0&&g>=0?p[g]=h:p.push(h)}return{clearSorter:f,sort:u,sortedDataRef:s,mergedSortStateRef:i,deriveNextSorter:d}}function Og(e,{dataRelatedColsRef:t}){const o=C(()=>{const V=E=>{for(let I=0;I{const{childrenKey:V}=e;return Uo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:E=>E[V],getDisabled:E=>{var I,N;return!!(!((N=(I=o.value)===null||I===void 0?void 0:I.disabled)===null||N===void 0)&&N.call(I,E))}})}),n=tt(()=>{const{columns:V}=e,{length:E}=V;let I=null;for(let N=0;N{const V=t.value.filter(N=>N.filterOptionValues!==void 0||N.filterOptionValue!==void 0),E={};return V.forEach(N=>{var J;N.type==="selection"||N.type==="expand"||(N.filterOptionValues===void 0?E[N.key]=(J=N.filterOptionValue)!==null&&J!==void 0?J:null:E[N.key]=N.filterOptionValues)}),Object.assign(Il(i.value),E)}),u=C(()=>{const V=c.value,{columns:E}=e;function I(se){return(xe,Ie)=>!!~String(Ie[se]).indexOf(String(xe))}const{value:{treeNodes:N}}=r,J=[];return E.forEach(se=>{se.type==="selection"||se.type==="expand"||"children"in se||J.push([se.key,se])}),N?N.filter(se=>{const{rawNode:xe}=se;for(const[Ie,_]of J){let Pe=V[Ie];if(Pe==null||(Array.isArray(Pe)||(Pe=[Pe]),!Pe.length))continue;const He=_.filter==="default"?I(Ie):_.filter;if(_&&typeof He=="function")if(_.filterMode==="and"){if(Pe.some(_e=>!He(_e,xe)))return!1}else{if(Pe.some(_e=>He(_e,xe)))continue;return!1}}return!0}):[]}),{sortedDataRef:f,deriveNextSorter:v,mergedSortStateRef:p,sort:h,clearSorter:g}=Bg(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(V=>{var E;if(V.filter){const I=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=I||[]:I!==void 0?i.value[V.key]=I===null?[]:I:i.value[V.key]=(E=V.defaultFilterOptionValue)!==null&&E!==void 0?E:null}});const x=C(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),y=C(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),b=$t(x,l),T=$t(y,d),$=tt(()=>{const V=b.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(u.value.length/T.value),V))}),R=C(()=>{const{pagination:V}=e;if(V){const{pageCount:E}=V;if(E!==void 0)return E}}),S=C(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return f.value;const V=T.value,E=($.value-1)*V;return f.value.slice(E,E+V)}),w=C(()=>S.value.map(V=>V.rawNode));function O(V){const{pagination:E}=e;if(E){const{onChange:I,"onUpdate:page":N,onUpdatePage:J}=E;I&&ae(I,V),J&&ae(J,V),N&&ae(N,V),M(V)}}function F(V){const{pagination:E}=e;if(E){const{onPageSizeChange:I,"onUpdate:pageSize":N,onUpdatePageSize:J}=E;I&&ae(I,V),J&&ae(J,V),N&&ae(N,V),H(V)}}const A=C(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:E}=V;if(E!==void 0)return E}return}return u.value.length}),j=C(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":O,"onUpdate:pageSize":F,page:$.value,pageSize:T.value,pageCount:A.value===void 0?R.value:void 0,itemCount:A.value}));function M(V){const{"onUpdate:page":E,onPageChange:I,onUpdatePage:N}=e;N&&ae(N,V),E&&ae(E,V),I&&ae(I,V),l.value=V}function H(V){const{"onUpdate:pageSize":E,onPageSizeChange:I,onUpdatePageSize:N}=e;I&&ae(I,V),N&&ae(N,V),E&&ae(E,V),d.value=V}function U(V,E){const{onUpdateFilters:I,"onUpdate:filters":N,onFiltersChange:J}=e;I&&ae(I,V,E),N&&ae(N,V,E),J&&ae(J,V,E),i.value=V}function L(V,E,I,N){var J;(J=e.onUnstableColumnResize)===null||J===void 0||J.call(e,V,E,I,N)}function te(V){M(V)}function K(){le()}function le(){be({})}function be(V){ce(V)}function ce(V){V?V&&(i.value=Il(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:$,mergedPaginationRef:j,paginatedDataRef:S,rawPaginatedDataRef:w,mergedFilterStateRef:c,mergedSortStateRef:p,hoverKeyRef:B(null),selectionColumnRef:o,childTriggerColIndexRef:n,doUpdateFilters:U,deriveNextSorter:v,doUpdatePageSize:H,doUpdatePage:M,onUnstableColumnResize:L,filter:ce,filters:be,clearFilter:K,clearFilters:le,clearSorter:g,page:te,sort:h}}const hy=re({name:"DataTable",alias:["AdvancedTable"],props:Pp,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=Wt("DataTable",i,r),l=C(()=>{const{bottomBordered:D}=e;return o.value?!1:D!==void 0?D:!0}),d=Re("DataTable","-data-table",wg,Rp,e,r),c=B(null),u=B(null),{getResizableWidth:f,clearResizableWidth:v,doUpdateResizableWidth:p}=$g(),{rowsRef:h,colsRef:g,dataRelatedColsRef:x,hasEllipsisRef:y}=Pg(e,f),{treeMateRef:b,mergedCurrentPageRef:T,paginatedDataRef:$,rawPaginatedDataRef:R,selectionColumnRef:S,hoverKeyRef:w,mergedPaginationRef:O,mergedFilterStateRef:F,mergedSortStateRef:A,childTriggerColIndexRef:j,doUpdatePage:M,doUpdateFilters:H,onUnstableColumnResize:U,deriveNextSorter:L,filter:te,filters:K,clearFilter:le,clearFilters:be,clearSorter:ce,page:V,sort:E}=Og(e,{dataRelatedColsRef:x}),I=D=>{const{fileName:G="data.csv",keepOriginalData:ve=!1}=D||{},Fe=ve?e.data:R.value,Be=Mp(e.columns,Fe,e.getCsvCell,e.getCsvHeader),W=new Blob([Be],{type:"text/csv;charset=utf-8"}),ge=URL.createObjectURL(W);tf(ge,G.endsWith(".csv")?G:`${G}.csv`),URL.revokeObjectURL(ge)},{doCheckAll:N,doUncheckAll:J,doCheck:se,doUncheck:xe,headerCheckboxDisabledRef:Ie,someRowsCheckedRef:_,allRowsCheckedRef:Pe,mergedCheckedRowKeySetRef:He,mergedInderminateRowKeySetRef:_e}=kg(e,{selectionColumnRef:S,treeMateRef:b,paginatedDataRef:$}),{stickyExpandedRowsRef:Ge,mergedExpandedRowKeysRef:Xe,renderExpandRef:ct,expandableRef:ot,doUpdateExpandedRowKeys:Ce}=Rg(e,b),{handleTableBodyScroll:ee,handleTableHeaderScroll:ue,syncScrollState:q,setHeaderScrollLeft:Q,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:me,leftFixedColumnsRef:je,rightFixedColumnsRef:oe,fixedColumnLeftMapRef:Ue,fixedColumnRightMapRef:lt}=Tg(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:T}),{localeRef:zt}=To("DataTable"),xt=C(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||y.value?"fixed":e.tableLayout);Je(Mo,{props:e,treeMateRef:b,renderExpandIconRef:fe(e,"renderExpandIcon"),loadingKeySetRef:B(new Set),slots:t,indentRef:fe(e,"indent"),childTriggerColIndexRef:j,bodyWidthRef:c,componentId:qo(),hoverKeyRef:w,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:C(()=>e.scrollX),rowsRef:h,colsRef:g,paginatedDataRef:$,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:me,leftFixedColumnsRef:je,rightFixedColumnsRef:oe,fixedColumnLeftMapRef:Ue,fixedColumnRightMapRef:lt,mergedCurrentPageRef:T,someRowsCheckedRef:_,allRowsCheckedRef:Pe,mergedSortStateRef:A,mergedFilterStateRef:F,loadingRef:fe(e,"loading"),rowClassNameRef:fe(e,"rowClassName"),mergedCheckedRowKeySetRef:He,mergedExpandedRowKeysRef:Xe,mergedInderminateRowKeySetRef:_e,localeRef:zt,expandableRef:ot,stickyExpandedRowsRef:Ge,rowKeyRef:fe(e,"rowKey"),renderExpandRef:ct,summaryRef:fe(e,"summary"),virtualScrollRef:fe(e,"virtualScroll"),virtualScrollXRef:fe(e,"virtualScrollX"),heightForRowRef:fe(e,"heightForRow"),minRowHeightRef:fe(e,"minRowHeight"),virtualScrollHeaderRef:fe(e,"virtualScrollHeader"),headerHeightRef:fe(e,"headerHeight"),rowPropsRef:fe(e,"rowProps"),stripedRef:fe(e,"striped"),checkOptionsRef:C(()=>{const{value:D}=S;return D==null?void 0:D.options}),rawPaginatedDataRef:R,filterMenuCssVarsRef:C(()=>{const{self:{actionDividerColor:D,actionPadding:G,actionButtonMargin:ve}}=d.value;return{"--n-action-padding":G,"--n-action-button-margin":ve,"--n-action-divider-color":D}}),onLoadRef:fe(e,"onLoad"),mergedTableLayoutRef:xt,maxHeightRef:fe(e,"maxHeight"),minHeightRef:fe(e,"minHeight"),flexHeightRef:fe(e,"flexHeight"),headerCheckboxDisabledRef:Ie,paginationBehaviorOnFilterRef:fe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:fe(e,"summaryPlacement"),filterIconPopoverPropsRef:fe(e,"filterIconPopoverProps"),scrollbarPropsRef:fe(e,"scrollbarProps"),syncScrollState:q,doUpdatePage:M,doUpdateFilters:H,getResizableWidth:f,onUnstableColumnResize:U,clearResizableWidth:v,doUpdateResizableWidth:p,deriveNextSorter:L,doCheck:se,doUncheck:xe,doCheckAll:N,doUncheckAll:J,doUpdateExpandedRowKeys:Ce,handleTableHeaderScroll:ue,handleTableBodyScroll:ee,setHeaderScrollLeft:Q,renderCell:fe(e,"renderCell")});const pt={filter:te,filters:K,clearFilters:be,clearSorter:ce,page:V,sort:E,clearFilter:le,downloadCsv:I,scrollTo:(D,G)=>{var ve;(ve=u.value)===null||ve===void 0||ve.scrollTo(D,G)}},ut=C(()=>{const{size:D}=e,{common:{cubicBezierEaseInOut:G},self:{borderColor:ve,tdColorHover:Fe,tdColorSorting:Be,tdColorSortingModal:W,tdColorSortingPopover:ge,thColorSorting:$e,thColorSortingModal:We,thColorSortingPopover:ft,thColor:rt,thColorHover:ne,tdColor:ze,tdTextColor:Le,thTextColor:et,thFontWeight:yt,thButtonColorHover:bt,thIconColor:Ct,thIconColorActive:X,filterSize:ye,borderRadius:Ke,lineHeight:Y,tdColorModal:he,thColorModal:ke,borderColorModal:Me,thColorHoverModal:Ne,tdColorHoverModal:st,borderColorPopover:It,thColorPopover:Ot,tdColorPopover:Qt,tdColorHoverPopover:oo,thColorHoverPopover:jt,paginationMargin:wt,emptyPadding:Z,boxShadowAfter:Te,boxShadowBefore:Oe,sorterSize:ht,resizableContainerSize:Ut,resizableSize:Pt,loadingColor:So,loadingSize:Fo,opacityLoading:go,tdColorStriped:Kr,tdColorStripedModal:qr,tdColorStripedPopover:Yr,[ie("fontSize",D)]:Gr,[ie("thPadding",D)]:Xr,[ie("tdPadding",D)]:Zr}}=d.value;return{"--n-font-size":Gr,"--n-th-padding":Xr,"--n-td-padding":Zr,"--n-bezier":G,"--n-border-radius":Ke,"--n-line-height":Y,"--n-border-color":ve,"--n-border-color-modal":Me,"--n-border-color-popover":It,"--n-th-color":rt,"--n-th-color-hover":ne,"--n-th-color-modal":ke,"--n-th-color-hover-modal":Ne,"--n-th-color-popover":Ot,"--n-th-color-hover-popover":jt,"--n-td-color":ze,"--n-td-color-hover":Fe,"--n-td-color-modal":he,"--n-td-color-hover-modal":st,"--n-td-color-popover":Qt,"--n-td-color-hover-popover":oo,"--n-th-text-color":et,"--n-td-text-color":Le,"--n-th-font-weight":yt,"--n-th-button-color-hover":bt,"--n-th-icon-color":Ct,"--n-th-icon-color-active":X,"--n-filter-size":ye,"--n-pagination-margin":wt,"--n-empty-padding":Z,"--n-box-shadow-before":Oe,"--n-box-shadow-after":Te,"--n-sorter-size":ht,"--n-resizable-container-size":Ut,"--n-resizable-size":Pt,"--n-loading-size":Fo,"--n-loading-color":So,"--n-opacity-loading":go,"--n-td-color-striped":Kr,"--n-td-color-striped-modal":qr,"--n-td-color-striped-popover":Yr,"--n-td-color-sorting":Be,"--n-td-color-sorting-modal":W,"--n-td-color-sorting-popover":ge,"--n-th-color-sorting":$e,"--n-th-color-sorting-modal":We,"--n-th-color-sorting-popover":ft}}),De=n?it("data-table",C(()=>e.size[0]),ut,e):void 0,Ze=C(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const D=O.value,{pageCount:G}=D;return G!==void 0?G>1:D.itemCount&&D.pageSize&&D.itemCount>D.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:r,rtlEnabled:s,mergedTheme:d,paginatedData:$,mergedBordered:o,mergedBottomBordered:l,mergedPagination:O,mergedShowPagination:Ze,cssVars:n?void 0:ut,themeClass:De==null?void 0:De.themeClass,onRender:De==null?void 0:De.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:r,spinProps:n}=this;return o==null||o(),a("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},a("div",{class:`${e}-data-table-wrapper`},a(yg,{ref:"mainTableInstRef"})),this.mergedShowPagination?a("div",{class:`${e}-data-table__pagination`},a(Cp,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,a(qt,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?a("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[a(Zo,Object.assign({clsPrefix:e,strokeWidth:20},n))])):null}))}}),Dg={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Ud(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:s,boxShadow2:l,borderRadius:d,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Dg),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:s,itemBorderRadius:d,borderRadius:d,iconColor:c,iconColorDisabled:u})}const Kd={name:"TimePicker",common:dt,peers:{Scrollbar:No,Button:pr,Input:vr},self:Ud},qd={name:"TimePicker",common:Ae,peers:{Scrollbar:vo,Button:po,Input:wo},self:Ud},Mg={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Yd(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:s,borderRadiusSmall:l,iconColor:d,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:v,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},Mg),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:s,itemColorIncluded:Se(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:d,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:v,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:d,iconColorDisabled:c})}const Ag={name:"DatePicker",common:dt,peers:{Input:vr,Button:pr,TimePicker:Kd,Scrollbar:No},self:Yd},_g={name:"DatePicker",common:Ae,peers:{Input:wo,Button:po,TimePicker:qd,Scrollbar:vo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=Yd(e);return n.itemColorDisabled=qe(t,o),n.itemColorIncluded=Se(r,{alpha:.15}),n.itemColorHover=qe(t,o),n}},aa="n-date-picker",kr=40,Hg="HH:mm:ss",Gd={active:Boolean,dateFormat:String,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,required:!0},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},timePickerFormat:{type:String,value:Hg},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onKeydown:Function,actions:Array,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Xd(e){const{dateLocaleRef:t,timePickerSizeRef:o,timePickerPropsRef:r,localeRef:n,mergedClsPrefixRef:i,mergedThemeRef:s}=Ee(aa),l=C(()=>({locale:t.value.locale})),d=B(null),c=vi();function u(){const{onClear:M}=e;M&&M()}function f(){const{onConfirm:M,value:H}=e;M&&M(H)}function v(M,H){const{onUpdateValue:U}=e;U(M,H)}function p(M=!1){const{onClose:H}=e;H&&H(M)}function h(){const{onTabOut:M}=e;M&&M()}function g(){v(null,!0),p(!0),u()}function x(){h()}function y(){(e.active||e.panel)&&Tt(()=>{const{value:M}=d;if(!M)return;const H=M.querySelectorAll("[data-n-date]");H.forEach(U=>{U.classList.add("transition-disabled")}),M.offsetWidth,H.forEach(U=>{U.classList.remove("transition-disabled")})})}function b(M){M.key==="Tab"&&M.target===d.value&&c.shift&&(M.preventDefault(),h())}function T(M){const{value:H}=d;c.tab&&M.target===H&&(H!=null&&H.contains(M.relatedTarget))&&h()}let $=null,R=!1;function S(){$=e.value,R=!0}function w(){R=!1}function O(){R&&(v($,!1),R=!1)}function F(M){return typeof M=="function"?M():M}const A=B(!1);function j(){A.value=!A.value}return{mergedTheme:s,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:o,timePickerProps:r,selfRef:d,locale:n,doConfirm:f,doClose:p,doUpdateValue:v,doTabOut:h,handleClearClick:g,handleFocusDetectorFocus:x,disableTransitionOneTick:y,handlePanelKeyDown:b,handlePanelFocus:T,cachePendingValue:S,clearPendingValue:w,restorePendingValue:O,getShortcutValue:F,handleShortcutMouseleave:O,showMonthYearPanel:A,handleOpenQuickSelectMonthPanel:j}}const Ai=Object.assign(Object.assign({},Gd),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function _i(e,t){var o;const r=Xd(e),{isValueInvalidRef:n,isDateDisabledRef:i,isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:c,isMinuteDisabledRef:u,isSecondDisabledRef:f,localeRef:v,firstDayOfWeekRef:p,datePickerSlots:h,yearFormatRef:g,monthFormatRef:x,quarterFormatRef:y,yearRangeRef:b}=Ee(aa),T={isValueInvalid:n,isDateDisabled:i,isDateInvalid:s,isTimeInvalid:l,isDateTimeInvalid:d,isHourDisabled:c,isMinuteDisabled:u,isSecondDisabled:f},$=C(()=>e.dateFormat||v.value.dateFormat),R=C(()=>e.calendarDayFormat||v.value.dayFormat),S=B(e.value===null||Array.isArray(e.value)?"":Bt(e.value,$.value)),w=B(e.value===null||Array.isArray(e.value)?(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Date.now():e.value),O=B(null),F=B(null),A=B(null),j=B(Date.now()),M=C(()=>{var oe;return Ga(w.value,e.value,j.value,(oe=p.value)!==null&&oe!==void 0?oe:v.value.firstDayOfWeek,!1,t==="week")}),H=C(()=>{const{value:oe}=e;return Xa(w.value,Array.isArray(oe)?null:oe,j.value,{monthFormat:x.value})}),U=C(()=>{const{value:oe}=e;return Qa(Array.isArray(oe)?null:oe,j.value,{yearFormat:g.value},b)}),L=C(()=>{const{value:oe}=e;return Za(w.value,Array.isArray(oe)?null:oe,j.value,{quarterFormat:y.value})}),te=C(()=>M.value.slice(0,7).map(oe=>{const{ts:Ue}=oe;return Bt(Ue,R.value,r.dateFnsOptions.value)})),K=C(()=>Bt(w.value,e.calendarHeaderMonthFormat||v.value.monthFormat,r.dateFnsOptions.value)),le=C(()=>Bt(w.value,e.calendarHeaderYearFormat||v.value.yearFormat,r.dateFnsOptions.value)),be=C(()=>{var oe;return(oe=e.calendarHeaderMonthBeforeYear)!==null&&oe!==void 0?oe:v.value.monthBeforeYear});gt(w,(oe,Ue)=>{(t==="date"||t==="datetime")&&(fn(oe,Ue)||r.disableTransitionOneTick())}),gt(C(()=>e.value),oe=>{oe!==null&&!Array.isArray(oe)?(S.value=Bt(oe,$.value,r.dateFnsOptions.value),w.value=oe):S.value=""});function ce(oe){var Ue;if(t==="datetime")return Ve(li(oe));if(t==="month")return Ve(Vo(oe));if(t==="year")return Ve(Qn(oe));if(t==="quarter")return Ve(Da(oe));if(t==="week"){const lt=(((Ue=p.value)!==null&&Ue!==void 0?Ue:v.value.firstDayOfWeek)+1)%7;return Ve($u(oe,{weekStartsOn:lt}))}return Ve(Jl(oe))}function V(oe,Ue){const{isDateDisabled:{value:lt}}=T;return lt?lt(oe,Ue):!1}function E(oe){const Ue=uo(oe,$.value,new Date,r.dateFnsOptions.value);if(Oo(Ue)){if(e.value===null)r.doUpdateValue(Ve(ce(Date.now())),e.panel);else if(!Array.isArray(e.value)){const lt=eo(e.value,{year:Ht(Ue),month:Dt(Ue),date:Ro(Ue)});r.doUpdateValue(Ve(ce(Ve(lt))),e.panel)}}else S.value=oe}function I(){const oe=uo(S.value,$.value,new Date,r.dateFnsOptions.value);if(Oo(oe)){if(e.value===null)r.doUpdateValue(Ve(ce(Date.now())),!1);else if(!Array.isArray(e.value)){const Ue=eo(e.value,{year:Ht(oe),month:Dt(oe),date:Ro(oe)});r.doUpdateValue(Ve(ce(Ve(Ue))),!1)}}else _e()}function N(){r.doUpdateValue(null,!0),S.value="",r.doClose(!0),r.handleClearClick()}function J(){r.doUpdateValue(Ve(ce(Date.now())),!0);const oe=Date.now();w.value=oe,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),me(oe))}const se=B(null);function xe(oe){oe.type==="date"&&t==="week"&&(se.value=ce(Ve(oe.ts)))}function Ie(oe){return oe.type==="date"&&t==="week"?ce(Ve(oe.ts))===se.value:!1}function _(oe){if(V(oe.ts,oe.type==="date"?{type:"date",year:oe.dateObject.year,month:oe.dateObject.month,date:oe.dateObject.date}:oe.type==="month"?{type:"month",year:oe.dateObject.year,month:oe.dateObject.month}:oe.type==="year"?{type:"year",year:oe.dateObject.year}:{type:"quarter",year:oe.dateObject.year,quarter:oe.dateObject.quarter}))return;let Ue;if(e.value!==null&&!Array.isArray(e.value)?Ue=e.value:Ue=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const lt=Vn(e.defaultTime);lt&&(Ue=Ve(eo(Ue,lt)))}switch(Ue=Ve(oe.type==="quarter"&&oe.dateObject.quarter?Pu(Ba(Ue,oe.dateObject.year),oe.dateObject.quarter):eo(Ue,oe.dateObject)),r.doUpdateValue(ce(Ue),e.panel||t==="date"||t==="week"||t==="year"),t){case"date":case"week":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),me(Ue);break;case"quarter":r.disableTransitionOneTick(),me(Ue);break}}function Pe(oe,Ue){let lt;e.value!==null&&!Array.isArray(e.value)?lt=e.value:lt=Date.now(),lt=Ve(oe.type==="month"?zu(lt,oe.dateObject.month):Ba(lt,oe.dateObject.year)),Ue(lt),me(lt)}function He(oe){w.value=oe}function _e(oe){if(e.value===null||Array.isArray(e.value)){S.value="";return}oe===void 0&&(oe=e.value),S.value=Bt(oe,$.value,r.dateFnsOptions.value)}function Ge(){T.isDateInvalid.value||T.isTimeInvalid.value||(r.doConfirm(),Xe())}function Xe(){e.active&&r.doClose()}function ct(){var oe;w.value=Ve(Oa(w.value,1)),(oe=e.onNextYear)===null||oe===void 0||oe.call(e)}function ot(){var oe;w.value=Ve(Oa(w.value,-1)),(oe=e.onPrevYear)===null||oe===void 0||oe.call(e)}function Ce(){var oe;w.value=Ve(no(w.value,1)),(oe=e.onNextMonth)===null||oe===void 0||oe.call(e)}function ee(){var oe;w.value=Ve(no(w.value,-1)),(oe=e.onPrevMonth)===null||oe===void 0||oe.call(e)}function ue(){const{value:oe}=O;return(oe==null?void 0:oe.listElRef)||null}function q(){const{value:oe}=O;return(oe==null?void 0:oe.itemsElRef)||null}function Q(){var oe;(oe=F.value)===null||oe===void 0||oe.sync()}function pe(oe){oe!==null&&r.doUpdateValue(oe,e.panel)}function we(oe){r.cachePendingValue();const Ue=r.getShortcutValue(oe);typeof Ue=="number"&&r.doUpdateValue(Ue,!1)}function de(oe){const Ue=r.getShortcutValue(oe);typeof Ue=="number"&&(r.doUpdateValue(Ue,e.panel),r.clearPendingValue(),Ge())}function me(oe){const{value:Ue}=e;if(A.value){const lt=oe===void 0?Ue===null?Dt(Date.now()):Dt(Ue):Dt(oe);A.value.scrollTo({top:lt*kr})}if(O.value){const lt=(oe===void 0?Ue===null?Ht(Date.now()):Ht(Ue):Ht(oe))-b.value[0];O.value.scrollTo({top:lt*kr})}}const je={monthScrollbarRef:A,yearScrollbarRef:F,yearVlRef:O};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:M,monthArray:H,yearArray:U,quarterArray:L,calendarYear:le,calendarMonth:K,weekdays:te,calendarMonthBeforeYear:be,mergedIsDateDisabled:V,nextYear:ct,prevYear:ot,nextMonth:Ce,prevMonth:ee,handleNowClick:J,handleConfirmClick:Ge,handleSingleShortcutMouseenter:we,handleSingleShortcutClick:de},T),r),je),{handleDateClick:_,handleDateInputBlur:I,handleDateInput:E,handleDateMouseEnter:xe,isWeekHovered:Ie,handleTimePickerChange:pe,clearSelectedDateTime:N,virtualListContainer:ue,virtualListContent:q,handleVirtualListScroll:Q,timePickerSize:r.timePickerSize,dateInputValue:S,datePickerSlots:h,handleQuickMonthClick:Pe,justifyColumnsScrollState:me,calendarValue:w,onUpdateCalendarValue:He})}const Zd=re({name:"MonthPanel",props:Object.assign(Object.assign({},Ai),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=_i(e,e.type),{dateLocaleRef:o}=To("DatePicker"),r=s=>{switch(s.type){case"year":return Js(s.dateObject.year,s.yearFormat,o.value.locale);case"month":return Qs(s.dateObject.month,s.monthFormat,o.value.locale);case"quarter":return ed(s.dateObject.quarter,s.quarterFormat,o.value.locale)}},{useAsQuickJump:n}=e,i=(s,l,d)=>{const{mergedIsDateDisabled:c,handleDateClick:u,handleQuickMonthClick:f}=t;return a("div",{"data-n-date":!0,key:l,class:[`${d}-date-panel-month-calendar__picker-col-item`,s.isCurrent&&`${d}-date-panel-month-calendar__picker-col-item--current`,s.selected&&`${d}-date-panel-month-calendar__picker-col-item--selected`,!n&&c(s.ts,s.type==="year"?{type:"year",year:s.dateObject.year}:s.type==="month"?{type:"month",year:s.dateObject.year,month:s.dateObject.month}:s.type==="quarter"?{type:"month",year:s.dateObject.year,month:s.dateObject.quarter}:null)&&`${d}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{n?f(s,v=>{e.onUpdateValue(v,!1)}):u(s)}},r(s))};return to(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:i})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:o,actions:r,renderItem:n,type:i,onRender:s}=this;return s==null||s(),a("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a("div",{class:`${e}-date-panel-month-calendar`},a(Vt,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(Sr,{ref:"yearVlRef",items:this.yearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:d})=>n(l,d,e)})}),i==="month"||i==="quarter"?a("div",{class:`${e}-date-panel-month-calendar__picker-col`},a(Vt,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,d)=>n(l,d,e)),a("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),mt(this.datePickerSlots.footer,l=>l?a("div",{class:`${e}-date-panel-footer`},l):null),r!=null&&r.length||o?a("div",{class:`${e}-date-panel-actions`},a("div",{class:`${e}-date-panel-actions__prefix`},o&&Object.keys(o).map(l=>{const d=o[l];return Array.isArray(d)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),a("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?io(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r!=null&&r.includes("now")?io(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r!=null&&r.includes("confirm")?io(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Nr=re({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=B(null),t=B(null),o=B(!1);function r(i){var s;o.value&&!(!((s=e.value)===null||s===void 0)&&s.contains(Ko(i)))&&(o.value=!1)}function n(){o.value=!o.value}return{show:o,triggerRef:e,monthPanelRef:t,handleHeaderClick:n,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return a("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},a(zr,null,{default:()=>[a(Pr,null,{default:()=>a("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth,this.monthYearSeparator,this.calendarYear]:[this.calendarYear,this.monthYearSeparator,this.calendarMonth])}),a(Rr,{show:this.show,teleportDisabled:!0},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?so(a(Zd,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Lo,e,void 0,{capture:!0}]]):null})})]}))}}),Eg=re({name:"DatePanel",props:Object.assign(Object.assign({},Ai),{type:{type:String,required:!0}}),setup(e){return _i(e,e.type)},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,onRender:s,datePickerSlots:l,type:d}=this;return s==null||s(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--${d}`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a("div",{class:`${r}-date-panel-calendar`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[a(ir,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[a(ar,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[a(sr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[a(lr,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel-dates`},this.dateArray.map((c,u)=>a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts,{type:"date",year:c.dateObject.year,month:c.dateObject.month,date:c.dateObject.date}),[`${r}-date-panel-date--week-hovered`]:this.isWeekHovered(c),[`${r}-date-panel-date--week-selected`]:c.inSelectedWeek}],onClick:()=>{this.handleDateClick(c)},onMouseenter:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?io(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Hi=Object.assign(Object.assign({},Gd),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function Ei(e,t){var o,r;const{isDateDisabledRef:n,isStartHourDisabledRef:i,isEndHourDisabledRef:s,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:d,isStartSecondDisabledRef:c,isEndSecondDisabledRef:u,isStartDateInvalidRef:f,isEndDateInvalidRef:v,isStartTimeInvalidRef:p,isEndTimeInvalidRef:h,isStartValueInvalidRef:g,isEndValueInvalidRef:x,isRangeInvalidRef:y,localeRef:b,rangesRef:T,closeOnSelectRef:$,updateValueOnCloseRef:R,firstDayOfWeekRef:S,datePickerSlots:w,monthFormatRef:O,yearFormatRef:F,quarterFormatRef:A,yearRangeRef:j}=Ee(aa),M={isDateDisabled:n,isStartHourDisabled:i,isEndHourDisabled:s,isStartMinuteDisabled:l,isEndMinuteDisabled:d,isStartSecondDisabled:c,isEndSecondDisabled:u,isStartDateInvalid:f,isEndDateInvalid:v,isStartTimeInvalid:p,isEndTimeInvalid:h,isStartValueInvalid:g,isEndValueInvalid:x,isRangeInvalid:y},H=Xd(e),U=B(null),L=B(null),te=B(null),K=B(null),le=B(null),be=B(null),ce=B(null),V=B(null),{value:E}=e,I=(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Array.isArray(E)&&typeof E[0]=="number"?E[0]:Date.now(),N=B(I),J=B((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(E)&&typeof E[1]=="number"?E[1]:Ve(no(I,1)));pt(!0);const se=B(Date.now()),xe=B(!1),Ie=B(0),_=C(()=>e.dateFormat||b.value.dateFormat),Pe=C(()=>e.calendarDayFormat||b.value.dayFormat),He=B(Array.isArray(E)?Bt(E[0],_.value,H.dateFnsOptions.value):""),_e=B(Array.isArray(E)?Bt(E[1],_.value,H.dateFnsOptions.value):""),Ge=C(()=>xe.value?"end":"start"),Xe=C(()=>{var Z;return Ga(N.value,e.value,se.value,(Z=S.value)!==null&&Z!==void 0?Z:b.value.firstDayOfWeek)}),ct=C(()=>{var Z;return Ga(J.value,e.value,se.value,(Z=S.value)!==null&&Z!==void 0?Z:b.value.firstDayOfWeek)}),ot=C(()=>Xe.value.slice(0,7).map(Z=>{const{ts:Te}=Z;return Bt(Te,Pe.value,H.dateFnsOptions.value)})),Ce=C(()=>Bt(N.value,e.calendarHeaderMonthFormat||b.value.monthFormat,H.dateFnsOptions.value)),ee=C(()=>Bt(J.value,e.calendarHeaderMonthFormat||b.value.monthFormat,H.dateFnsOptions.value)),ue=C(()=>Bt(N.value,e.calendarHeaderYearFormat||b.value.yearFormat,H.dateFnsOptions.value)),q=C(()=>Bt(J.value,e.calendarHeaderYearFormat||b.value.yearFormat,H.dateFnsOptions.value)),Q=C(()=>{const{value:Z}=e;return Array.isArray(Z)?Z[0]:null}),pe=C(()=>{const{value:Z}=e;return Array.isArray(Z)?Z[1]:null}),we=C(()=>{const{shortcuts:Z}=e;return Z||T.value}),de=C(()=>Qa(Or(e.value,"start"),se.value,{yearFormat:F.value},j)),me=C(()=>Qa(Or(e.value,"end"),se.value,{yearFormat:F.value},j)),je=C(()=>{const Z=Or(e.value,"start");return Za(Z??Date.now(),Z,se.value,{quarterFormat:A.value})}),oe=C(()=>{const Z=Or(e.value,"end");return Za(Z??Date.now(),Z,se.value,{quarterFormat:A.value})}),Ue=C(()=>{const Z=Or(e.value,"start");return Xa(Z??Date.now(),Z,se.value,{monthFormat:O.value})}),lt=C(()=>{const Z=Or(e.value,"end");return Xa(Z??Date.now(),Z,se.value,{monthFormat:O.value})}),zt=C(()=>{var Z;return(Z=e.calendarHeaderMonthBeforeYear)!==null&&Z!==void 0?Z:b.value.monthBeforeYear});gt(C(()=>e.value),Z=>{if(Z!==null&&Array.isArray(Z)){const[Te,Oe]=Z;He.value=Bt(Te,_.value,H.dateFnsOptions.value),_e.value=Bt(Oe,_.value,H.dateFnsOptions.value),xe.value||We(Z)}else He.value="",_e.value=""});function xt(Z,Te){(t==="daterange"||t==="datetimerange")&&(Ht(Z)!==Ht(Te)||Dt(Z)!==Dt(Te))&&H.disableTransitionOneTick()}gt(N,xt),gt(J,xt);function pt(Z){const Te=Vo(N.value),Oe=Vo(J.value);(e.bindCalendarMonths||Te>=Oe)&&(Z?J.value=Ve(no(Te,1)):N.value=Ve(no(Oe,-1)))}function ut(){N.value=Ve(no(N.value,12)),pt(!0)}function De(){N.value=Ve(no(N.value,-12)),pt(!0)}function Ze(){N.value=Ve(no(N.value,1)),pt(!0)}function D(){N.value=Ve(no(N.value,-1)),pt(!0)}function G(){J.value=Ve(no(J.value,12)),pt(!1)}function ve(){J.value=Ve(no(J.value,-12)),pt(!1)}function Fe(){J.value=Ve(no(J.value,1)),pt(!1)}function Be(){J.value=Ve(no(J.value,-1)),pt(!1)}function W(Z){N.value=Z,pt(!0)}function ge(Z){J.value=Z,pt(!1)}function $e(Z){const Te=n.value;if(!Te)return!1;if(!Array.isArray(e.value)||Ge.value==="start")return Te(Z,"start",null);{const{value:Oe}=Ie;return Z=Ie.value?yt(Ie.value,Z.ts,"wipPreview"):yt(Z.ts,Ie.value,"wipPreview")}}function ne(){y.value||(H.doConfirm(),ze())}function ze(){xe.value=!1,e.active&&H.doClose()}function Le(Z){typeof Z!="number"&&(Z=Ve(Z)),e.value===null?H.doUpdateValue([Z,Z],e.panel):Array.isArray(e.value)&&H.doUpdateValue([Z,Math.max(e.value[1],Z)],e.panel)}function et(Z){typeof Z!="number"&&(Z=Ve(Z)),e.value===null?H.doUpdateValue([Z,Z],e.panel):Array.isArray(e.value)&&H.doUpdateValue([Math.min(e.value[0],Z),Z],e.panel)}function yt(Z,Te,Oe){if(typeof Z!="number"&&(Z=Ve(Z)),Oe!=="shortcutPreview"&&Oe!=="shortcutDone"){let ht,Ut;if(t==="datetimerange"){const{defaultTime:Pt}=e;Array.isArray(Pt)?(ht=Vn(Pt[0]),Ut=Vn(Pt[1])):(ht=Vn(Pt),Ut=ht)}ht&&(Z=Ve(eo(Z,ht))),Ut&&(Te=Ve(eo(Te,Ut)))}H.doUpdateValue([Z,Te],e.panel&&(Oe==="done"||Oe==="shortcutDone"))}function bt(Z){return t==="datetimerange"?Ve(li(Z)):t==="monthrange"?Ve(Vo(Z)):Ve(Jl(Z))}function Ct(Z){const Te=uo(Z,_.value,new Date,H.dateFnsOptions.value);if(Oo(Te))if(e.value){if(Array.isArray(e.value)){const Oe=eo(e.value[0],{year:Ht(Te),month:Dt(Te),date:Ro(Te)});Le(bt(Ve(Oe)))}}else{const Oe=eo(new Date,{year:Ht(Te),month:Dt(Te),date:Ro(Te)});Le(bt(Ve(Oe)))}else He.value=Z}function X(Z){const Te=uo(Z,_.value,new Date,H.dateFnsOptions.value);if(Oo(Te)){if(e.value===null){const Oe=eo(new Date,{year:Ht(Te),month:Dt(Te),date:Ro(Te)});et(bt(Ve(Oe)))}else if(Array.isArray(e.value)){const Oe=eo(e.value[1],{year:Ht(Te),month:Dt(Te),date:Ro(Te)});et(bt(Ve(Oe)))}}else _e.value=Z}function ye(){const Z=uo(He.value,_.value,new Date,H.dateFnsOptions.value),{value:Te}=e;if(Oo(Z)){if(Te===null){const Oe=eo(new Date,{year:Ht(Z),month:Dt(Z),date:Ro(Z)});Le(bt(Ve(Oe)))}else if(Array.isArray(Te)){const Oe=eo(Te[0],{year:Ht(Z),month:Dt(Z),date:Ro(Z)});Le(bt(Ve(Oe)))}}else Y()}function Ke(){const Z=uo(_e.value,_.value,new Date,H.dateFnsOptions.value),{value:Te}=e;if(Oo(Z)){if(Te===null){const Oe=eo(new Date,{year:Ht(Z),month:Dt(Z),date:Ro(Z)});et(bt(Ve(Oe)))}else if(Array.isArray(Te)){const Oe=eo(Te[1],{year:Ht(Z),month:Dt(Z),date:Ro(Z)});et(bt(Ve(Oe)))}}else Y()}function Y(Z){const{value:Te}=e;if(Te===null||!Array.isArray(Te)){He.value="",_e.value="";return}Z===void 0&&(Z=Te),He.value=Bt(Z[0],_.value,H.dateFnsOptions.value),_e.value=Bt(Z[1],_.value,H.dateFnsOptions.value)}function he(Z){Z!==null&&Le(Z)}function ke(Z){Z!==null&&et(Z)}function Me(Z){H.cachePendingValue();const Te=H.getShortcutValue(Z);Array.isArray(Te)&&yt(Te[0],Te[1],"shortcutPreview")}function Ne(Z){const Te=H.getShortcutValue(Z);Array.isArray(Te)&&(yt(Te[0],Te[1],"shortcutDone"),H.clearPendingValue(),ne())}function st(Z,Te){const Oe=Z===void 0?e.value:Z;if(Z===void 0||Te==="start"){if(ce.value){const ht=Array.isArray(Oe)?Dt(Oe[0]):Dt(Date.now());ce.value.scrollTo({debounce:!1,index:ht,elSize:kr})}if(le.value){const ht=(Array.isArray(Oe)?Ht(Oe[0]):Ht(Date.now()))-j.value[0];le.value.scrollTo({index:ht,debounce:!1})}}if(Z===void 0||Te==="end"){if(V.value){const ht=Array.isArray(Oe)?Dt(Oe[1]):Dt(Date.now());V.value.scrollTo({debounce:!1,index:ht,elSize:kr})}if(be.value){const ht=(Array.isArray(Oe)?Ht(Oe[1]):Ht(Date.now()))-j.value[0];be.value.scrollTo({index:ht,debounce:!1})}}}function It(Z,Te){const{value:Oe}=e,ht=!Array.isArray(Oe),Ut=Z.type==="year"&&t!=="yearrange"?ht?eo(Z.ts,{month:Dt(t==="quarterrange"?Da(new Date):new Date)}).valueOf():eo(Z.ts,{month:Dt(t==="quarterrange"?Da(Oe[Te==="start"?0:1]):Oe[Te==="start"?0:1])}).valueOf():Z.ts;if(ht){const Fo=bt(Ut),go=[Fo,Fo];H.doUpdateValue(go,e.panel),st(go,"start"),st(go,"end"),H.disableTransitionOneTick();return}const Pt=[Oe[0],Oe[1]];let So=!1;switch(Te==="start"?(Pt[0]=bt(Ut),Pt[0]>Pt[1]&&(Pt[1]=Pt[0],So=!0)):(Pt[1]=bt(Ut),Pt[0]>Pt[1]&&(Pt[0]=Pt[1],So=!0)),H.doUpdateValue(Pt,e.panel),t){case"monthrange":case"quarterrange":H.disableTransitionOneTick(),So?(st(Pt,"start"),st(Pt,"end")):st(Pt,Te);break;case"yearrange":H.disableTransitionOneTick(),st(Pt,"start"),st(Pt,"end")}}function Ot(){var Z;(Z=te.value)===null||Z===void 0||Z.sync()}function Qt(){var Z;(Z=K.value)===null||Z===void 0||Z.sync()}function oo(Z){var Te,Oe;return Z==="start"?((Te=le.value)===null||Te===void 0?void 0:Te.listElRef)||null:((Oe=be.value)===null||Oe===void 0?void 0:Oe.listElRef)||null}function jt(Z){var Te,Oe;return Z==="start"?((Te=le.value)===null||Te===void 0?void 0:Te.itemsElRef)||null:((Oe=be.value)===null||Oe===void 0?void 0:Oe.itemsElRef)||null}const wt={startYearVlRef:le,endYearVlRef:be,startMonthScrollbarRef:ce,endMonthScrollbarRef:V,startYearScrollbarRef:te,endYearScrollbarRef:K};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:U,endDatesElRef:L,handleDateClick:ft,handleColItemClick:It,handleDateMouseEnter:rt,handleConfirmClick:ne,startCalendarPrevYear:De,startCalendarPrevMonth:D,startCalendarNextYear:ut,startCalendarNextMonth:Ze,endCalendarPrevYear:ve,endCalendarPrevMonth:Be,endCalendarNextMonth:Fe,endCalendarNextYear:G,mergedIsDateDisabled:$e,changeStartEndTime:yt,ranges:T,calendarMonthBeforeYear:zt,startCalendarMonth:Ce,startCalendarYear:ue,endCalendarMonth:ee,endCalendarYear:q,weekdays:ot,startDateArray:Xe,endDateArray:ct,startYearArray:de,startMonthArray:Ue,startQuarterArray:je,endYearArray:me,endMonthArray:lt,endQuarterArray:oe,isSelecting:xe,handleRangeShortcutMouseenter:Me,handleRangeShortcutClick:Ne},H),M),wt),{startDateDisplayString:He,endDateInput:_e,timePickerSize:H.timePickerSize,startTimeValue:Q,endTimeValue:pe,datePickerSlots:w,shortcuts:we,startCalendarDateTime:N,endCalendarDateTime:J,justifyColumnsScrollState:st,handleFocusDetectorFocus:H.handleFocusDetectorFocus,handleStartTimePickerChange:he,handleEndTimePickerChange:ke,handleStartDateInput:Ct,handleStartDateInputBlur:ye,handleEndDateInput:X,handleEndDateInputBlur:Ke,handleStartYearVlScroll:Ot,handleEndYearVlScroll:Qt,virtualListContainer:oo,virtualListContent:jt,onUpdateStartCalendarValue:W,onUpdateEndCalendarValue:ge})}const Lg=re({name:"DateRangePanel",props:Hi,setup(e){return Ei(e,"daterange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,onRender:s,datePickerSlots:l}=this;return s==null||s(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[a(ir,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[a(ar,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[a(sr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[a(lr,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>a("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((d,c)=>a("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},a("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[a(ir,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[a(ar,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[a(sr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[a(lr,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>a("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((d,c)=>a("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},a("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(d=>{const c=i[d];return Array.isArray(c)||typeof c=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(l.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Qd="n-time-picker",Mn=re({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:o}=this;return this.data.map(r=>{const{label:n,disabled:i,value:s}=r,l=e===s;return a("div",{key:n,"data-active":l?"":null,class:[`${o}-time-picker-col__item`,l&&`${o}-time-picker-col__item--active`,i&&`${o}-time-picker-col__item--disabled`],onClick:t&&!i?()=>{t(s)}:void 0},n)})}}),tn={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function ka(e){return`00${e}`.slice(-2)}function on(e,t,o){return Array.isArray(t)?(o==="am"?t.filter(r=>r<12):o==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>ka(r)):typeof t=="number"?o==="am"?e.filter(r=>{const n=Number(r);return n<12&&n%t===0}):o==="pm"?e.filter(r=>{const n=Number(r);return n>=12&&n%t===0}).map(r=>{const n=Number(r);return ka(n===12?12:n-12)}):e.filter(r=>Number(r)%t===0):o==="am"?e.filter(r=>Number(r)<12):o==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>ka(r===12?12:r-12)):e}function An(e,t,o){return o?typeof o=="number"?e%o===0:o.includes(e):!0}function Ng(e,t,o){const r=on(tn[t],o).map(Number);let n,i;for(let s=0;se){i=l;break}n=l}return n===void 0?(i||Go("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-n?n:i}function jg(e){return er(e)<12?"am":"pm"}const Vg={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},Wg=re({name:"TimePickerPanel",props:Vg,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:o}=Ee(Qd),r=C(()=>{const{isHourDisabled:l,hours:d,use12Hours:c,amPmValue:u}=e;if(c){const f=u??jg(Date.now());return on(tn.hours,d,f).map(v=>{const p=Number(v),h=f==="pm"&&p!==12?p+12:p;return{label:v,value:h,disabled:l?l(h):!1}})}else return on(tn.hours,d).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),n=C(()=>{const{isMinuteDisabled:l,minutes:d}=e;return on(tn.minutes,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=C(()=>{const{isSecondDisabled:l,seconds:d}=e;return on(tn.seconds,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),s=C(()=>{const{isHourDisabled:l}=e;let d=!0,c=!0;for(let u=0;u<12;++u)if(!(l!=null&&l(u))){d=!1;break}for(let u=12;u<24;++u)if(!(l!=null&&l(u))){c=!1;break}return[{label:"AM",value:"am",disabled:d},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:o,hours:r,minutes:n,seconds:i,amPm:s,hourScrollRef:B(null),minuteScrollRef:B(null),secondScrollRef:B(null),amPmScrollRef:B(null)}},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:i}=this;return a("div",{tabindex:0,class:`${n}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},a("div",{class:`${n}-time-picker-cols`},this.showHour?a("div",{class:[`${n}-time-picker-col`,this.isHourInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Vt,{ref:"hourScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(Mn,{clsPrefix:n,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showMinute?a("div",{class:[`${n}-time-picker-col`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${n}-time-picker-col--invalid`]},a(Vt,{ref:"minuteScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(Mn,{clsPrefix:n,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showSecond?a("div",{class:[`${n}-time-picker-col`,this.isSecondInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Vt,{ref:"secondScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(Mn,{clsPrefix:n,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.use12Hours?a("div",{class:[`${n}-time-picker-col`,this.isAmPmInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Vt,{ref:"amPmScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(Mn,{clsPrefix:n,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?a("div",{class:`${n}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?a(At,{size:"tiny",theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?a(At,{size:"tiny",type:"primary",class:`${n}-time-picker-actions__confirm`,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,a(fr,{onFocus:this.onFocusDetectorFocus}))}}),Ug=k([m("time-picker",` - z-index: auto; - position: relative; - `,[m("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),z("disabled",[m("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),m("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[hr(),m("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),m("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),m("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[z("transition-disabled",[P("item","transition: none;",[k("&::before","transition: none;")])]),P("padding",` - height: calc(var(--n-item-height) * 5); - `),k("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[P("item",[k("&::before","left: 4px;")])]),P("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[k("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),at("disabled",[k("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),z("active",` - color: var(--n-item-text-color-active); - `,[k("&::before",` - background-color: var(--n-item-color-hover); - `)]),z("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),z("invalid",[P("item",[z("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Ra(e,t){return e===void 0?!0:Array.isArray(e)?e.every(o=>o>=0&&o<=t):e>=0&&e<=t}const Kg=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Ra(e,23)},minutes:{type:[Number,Array],validator:e=>Ra(e,59)},seconds:{type:[Number,Array],validator:e=>Ra(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),oi=re({name:"TimePicker",props:Kg,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),{localeRef:i,dateLocaleRef:s}=To("TimePicker"),l=Co(e),{mergedSizeRef:d,mergedDisabledRef:c,mergedStatusRef:u}=l,f=Re("TimePicker","-time-picker",Ug,Kd,e,o),v=vi(),p=B(null),h=B(null),g=C(()=>({locale:s.value.locale}));function x(ne){return ne===null?null:uo(ne,e.valueFormat||e.format,new Date,g.value).getTime()}const{defaultValue:y,defaultFormattedValue:b}=e,T=B(b!==void 0?x(b):y),$=C(()=>{const{formattedValue:ne}=e;if(ne!==void 0)return x(ne);const{value:ze}=e;return ze!==void 0?ze:T.value}),R=C(()=>{const{timeZone:ne}=e;return ne?(ze,Le,et)=>ju(ze,ne,Le,et):(ze,Le,et)=>Bt(ze,Le,et)}),S=B("");gt(()=>e.timeZone,()=>{const ne=$.value;S.value=ne===null?"":R.value(ne,e.format,g.value)},{immediate:!0});const w=B(!1),O=fe(e,"show"),F=$t(O,w),A=B($.value),j=B(!1),M=C(()=>i.value.clear),H=C(()=>i.value.now),U=C(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=C(()=>i.value.negativeText),te=C(()=>i.value.positiveText),K=C(()=>/H|h|K|k/.test(e.format)),le=C(()=>e.format.includes("m")),be=C(()=>e.format.includes("s")),ce=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"HH",g.value))}),V=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"mm",g.value))}),E=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"ss",g.value))}),I=C(()=>{const{isHourDisabled:ne}=e;return ce.value===null?!1:An(ce.value,"hours",e.hours)?ne?ne(ce.value):!1:!0}),N=C(()=>{const{value:ne}=V,{value:ze}=ce;if(ne===null||ze===null)return!1;if(!An(ne,"minutes",e.minutes))return!0;const{isMinuteDisabled:Le}=e;return Le?Le(ne,ze):!1}),J=C(()=>{const{value:ne}=V,{value:ze}=ce,{value:Le}=E;if(Le===null||ne===null||ze===null)return!1;if(!An(Le,"seconds",e.seconds))return!0;const{isSecondDisabled:et}=e;return et?et(Le,ne,ze):!1}),se=C(()=>I.value||N.value||J.value),xe=C(()=>e.format.length+4),Ie=C(()=>{const{value:ne}=$;return ne===null?null:er(ne)<12?"am":"pm"});function _(ne,ze){const{onUpdateFormattedValue:Le,"onUpdate:formattedValue":et}=e;Le&&ae(Le,ne,ze),et&&ae(et,ne,ze)}function Pe(ne){return ne===null?null:R.value(ne,e.valueFormat||e.format)}function He(ne){const{onUpdateValue:ze,"onUpdate:value":Le,onChange:et}=e,{nTriggerFormChange:yt,nTriggerFormInput:bt}=l,Ct=Pe(ne);ze&&ae(ze,ne,Ct),Le&&ae(Le,ne,Ct),et&&ae(et,ne,Ct),_(Ct,ne),T.value=ne,yt(),bt()}function _e(ne){const{onFocus:ze}=e,{nTriggerFormFocus:Le}=l;ze&&ae(ze,ne),Le()}function Ge(ne){const{onBlur:ze}=e,{nTriggerFormBlur:Le}=l;ze&&ae(ze,ne),Le()}function Xe(){const{onConfirm:ne}=e;ne&&ae(ne,$.value,Pe($.value))}function ct(ne){var ze;ne.stopPropagation(),He(null),je(null),(ze=e.onClear)===null||ze===void 0||ze.call(e)}function ot(){D({returnFocus:!0})}function Ce(){He(null),je(null),D({returnFocus:!0})}function ee(ne){ne.key==="Escape"&&F.value&&dn(ne)}function ue(ne){var ze;switch(ne.key){case"Escape":F.value&&(dn(ne),D({returnFocus:!0}));break;case"Tab":v.shift&&ne.target===((ze=h.value)===null||ze===void 0?void 0:ze.$el)&&(ne.preventDefault(),D({returnFocus:!0}));break}}function q(){j.value=!0,Tt(()=>{j.value=!1})}function Q(ne){c.value||Jt(ne,"clear")||F.value||De()}function pe(ne){typeof ne!="string"&&($.value===null?He(Ve(gr(Tu(new Date),ne))):He(Ve(gr($.value,ne))))}function we(ne){typeof ne!="string"&&($.value===null?He(Ve(da(Fu(new Date),ne))):He(Ve(da($.value,ne))))}function de(ne){typeof ne!="string"&&($.value===null?He(Ve(ca(li(new Date),ne))):He(Ve(ca($.value,ne))))}function me(ne){const{value:ze}=$;if(ze===null){const Le=new Date,et=er(Le);ne==="pm"&&et<12?He(Ve(gr(Le,et+12))):ne==="am"&&et>=12&&He(Ve(gr(Le,et-12))),He(Ve(Le))}else{const Le=er(ze);ne==="pm"&&Le<12?He(Ve(gr(ze,Le+12))):ne==="am"&&Le>=12&&He(Ve(gr(ze,Le-12)))}}function je(ne){ne===void 0&&(ne=$.value),ne===null?S.value="":S.value=R.value(ne,e.format,g.value)}function oe(ne){ut(ne)||_e(ne)}function Ue(ne){var ze;if(!ut(ne))if(F.value){const Le=(ze=h.value)===null||ze===void 0?void 0:ze.$el;Le!=null&&Le.contains(ne.relatedTarget)||(je(),Ge(ne),D({returnFocus:!1}))}else je(),Ge(ne)}function lt(){c.value||F.value||De()}function zt(){c.value||(je(),D({returnFocus:!1}))}function xt(){if(!h.value)return;const{hourScrollRef:ne,minuteScrollRef:ze,secondScrollRef:Le,amPmScrollRef:et}=h.value;[ne,ze,Le,et].forEach(yt=>{var bt;if(!yt)return;const Ct=(bt=yt.contentRef)===null||bt===void 0?void 0:bt.querySelector("[data-active]");Ct&&yt.scrollTo({top:Ct.offsetTop})})}function pt(ne){w.value=ne;const{onUpdateShow:ze,"onUpdate:show":Le}=e;ze&&ae(ze,ne),Le&&ae(Le,ne)}function ut(ne){var ze,Le,et;return!!(!((Le=(ze=p.value)===null||ze===void 0?void 0:ze.wrapperElRef)===null||Le===void 0)&&Le.contains(ne.relatedTarget)||!((et=h.value)===null||et===void 0)&&et.$el.contains(ne.relatedTarget))}function De(){A.value=$.value,pt(!0),Tt(xt)}function Ze(ne){var ze,Le;F.value&&!(!((Le=(ze=p.value)===null||ze===void 0?void 0:ze.wrapperElRef)===null||Le===void 0)&&Le.contains(Ko(ne)))&&D({returnFocus:!1})}function D({returnFocus:ne}){var ze;F.value&&(pt(!1),ne&&((ze=p.value)===null||ze===void 0||ze.focus()))}function G(ne){if(ne===""){He(null);return}const ze=uo(ne,e.format,new Date,g.value);if(S.value=ne,Oo(ze)){const{value:Le}=$;if(Le!==null){const et=eo(Le,{hours:er(ze),minutes:Un(ze),seconds:Wn(ze),milliseconds:Iu(ze)});He(Ve(et))}else He(Ve(ze))}}function ve(){He(A.value),pt(!1)}function Fe(){const ne=new Date,ze={hours:er,minutes:Un,seconds:Wn},[Le,et,yt]=["hours","minutes","seconds"].map(Ct=>!e[Ct]||An(ze[Ct](ne),Ct,e[Ct])?ze[Ct](ne):Ng(ze[Ct](ne),Ct,e[Ct])),bt=ca(da(gr($.value?$.value:Ve(ne),Le),et),yt);He(Ve(bt))}function Be(){je(),Xe(),D({returnFocus:!0})}function W(ne){ut(ne)||(je(),Ge(ne),D({returnFocus:!1}))}gt($,ne=>{je(ne),q(),Tt(xt)}),gt(F,()=>{se.value&&He(A.value)}),Je(Qd,{mergedThemeRef:f,mergedClsPrefixRef:o});const ge={focus:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.focus()},blur:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.blur()}},$e=C(()=>{const{common:{cubicBezierEaseInOut:ne},self:{iconColor:ze,iconColorDisabled:Le}}=f.value;return{"--n-icon-color-override":ze,"--n-icon-color-disabled-override":Le,"--n-bezier":ne}}),We=n?it("time-picker-trigger",void 0,$e,e):void 0,ft=C(()=>{const{self:{panelColor:ne,itemTextColor:ze,itemTextColorActive:Le,itemColorHover:et,panelDividerColor:yt,panelBoxShadow:bt,itemOpacityDisabled:Ct,borderRadius:X,itemFontSize:ye,itemWidth:Ke,itemHeight:Y,panelActionPadding:he,itemBorderRadius:ke},common:{cubicBezierEaseInOut:Me}}=f.value;return{"--n-bezier":Me,"--n-border-radius":X,"--n-item-color-hover":et,"--n-item-font-size":ye,"--n-item-height":Y,"--n-item-opacity-disabled":Ct,"--n-item-text-color":ze,"--n-item-text-color-active":Le,"--n-item-width":Ke,"--n-panel-action-padding":he,"--n-panel-box-shadow":bt,"--n-panel-color":ne,"--n-panel-divider-color":yt,"--n-item-border-radius":ke}}),rt=n?it("time-picker",void 0,ft,e):void 0;return{focus:ge.focus,blur:ge.blur,mergedStatus:u,mergedBordered:t,mergedClsPrefix:o,namespace:r,uncontrolledValue:T,mergedValue:$,isMounted:Yo(),inputInstRef:p,panelInstRef:h,adjustedTo:Zt(e),mergedShow:F,localizedClear:M,localizedNow:H,localizedPlaceholder:U,localizedNegativeText:L,localizedPositiveText:te,hourInFormat:K,minuteInFormat:le,secondInFormat:be,mergedAttrSize:xe,displayTimeString:S,mergedSize:d,mergedDisabled:c,isValueInvalid:se,isHourInvalid:I,isMinuteInvalid:N,isSecondInvalid:J,transitionDisabled:j,hourValue:ce,minuteValue:V,secondValue:E,amPmValue:Ie,handleInputKeydown:ee,handleTimeInputFocus:oe,handleTimeInputBlur:Ue,handleNowClick:Fe,handleConfirmClick:Be,handleTimeInputUpdateValue:G,handleMenuFocusOut:W,handleCancelClick:ve,handleClickOutside:Ze,handleTimeInputActivate:lt,handleTimeInputDeactivate:zt,handleHourClick:pe,handleMinuteClick:we,handleSecondClick:de,handleAmPmClick:me,handleTimeInputClear:ct,handleFocusDetectorFocus:ot,handleMenuKeydown:ue,handleTriggerClick:Q,mergedTheme:f,triggerCssVars:n?void 0:$e,triggerThemeClass:We==null?void 0:We.themeClass,triggerOnRender:We==null?void 0:We.onRender,cssVars:n?void 0:ft,themeClass:rt==null?void 0:rt.themeClass,onRender:rt==null?void 0:rt.onRender,clearSelectedValue:Ce}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:o}=this;return o==null||o(),a("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},a(zr,null,{default:()=>[a(Pr,null,{default:()=>a(Do,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>a(Rt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():a(Rf,null)})}:null)}),a(Rr,{teleportDisabled:this.adjustedTo===Zt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),so(a(Wg,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Lo,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),qg=re({name:"DateTimePanel",props:Ai,setup(e){return _i(e,"datetime")},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:i,shortcuts:s,timePickerProps:l,datePickerSlots:d,onRender:c}=this;return c==null||c(),a("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--datetime`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{class:`${n}-date-panel-header`},a(Do,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${n}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),a(oi,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),a("div",{class:`${n}-date-panel-calendar`},a("div",{class:`${n}-date-panel-month`},a("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(d["prev-year"],()=>[a(ir,null)])),a("div",{class:`${n}-date-panel-month__prev`,onClick:this.prevMonth},vt(d["prev-month"],()=>[a(ar,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:n,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a("div",{class:`${n}-date-panel-month__next`,onClick:this.nextMonth},vt(d["next-month"],()=>[a(sr,null)])),a("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.nextYear},vt(d["next-year"],()=>[a(lr,null)]))),a("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>a("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),a("div",{class:`${n}-date-panel-dates`},this.dateArray.map((u,f)=>a("div",{"data-n-date":!0,key:f,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(u.ts,{type:"date",year:u.dateObject.year,month:u.dateObject.month,date:u.dateObject.date})}],onClick:()=>{this.handleDateClick(u)}},a("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?a("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||s?a("div",{class:`${n}-date-panel-actions`},a("div",{class:`${n}-date-panel-actions__prefix`},s&&Object.keys(s).map(u=>{const f=s[u];return Array.isArray(f)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u})})),a("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?io(d.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?io(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Yg=re({name:"DateTimeRangePanel",props:Hi,setup(e){return Ei(e,"datetimerange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,timePickerProps:s,onRender:l,datePickerSlots:d}=this;return l==null||l(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{class:`${r}-date-panel-header`},a(Do,{value:this.startDateDisplayString,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),a(oi,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(s)?s[0]:s,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),a(Do,{value:this.endDateInput,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),a(oi,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(s)?s[1]:s,{disabled:this.isSelecting,showIcon:!1,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(d["prev-year"],()=>[a(ir,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(d["prev-month"],()=>[a(ar,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(d["next-month"],()=>[a(sr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(d["next-year"],()=>[a(lr,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)}))),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(d["prev-year"],()=>[a(ir,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(d["prev-month"],()=>[a(ar,null)])),a(Nr,{monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(d["next-month"],()=>[a(sr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(d["next-year"],()=>[a(lr,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(d.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Gg=re({name:"MonthRangePanel",props:Object.assign(Object.assign({},Hi),{type:{type:String,required:!0}}),setup(e){const t=Ei(e,e.type),{dateLocaleRef:o}=To("DatePicker"),r=(n,i,s,l)=>{const{handleColItemClick:d}=t;return a("div",{"data-n-date":!0,key:i,class:[`${s}-date-panel-month-calendar__picker-col-item`,n.isCurrent&&`${s}-date-panel-month-calendar__picker-col-item--current`,n.selected&&`${s}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{d(n,l)}},n.type==="month"?Qs(n.dateObject.month,n.monthFormat,o.value.locale):n.type==="quarter"?ed(n.dateObject.quarter,n.quarterFormat,o.value.locale):Js(n.dateObject.year,n.yearFormat,o.value.locale))};return to(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,type:s,renderItem:l,onRender:d}=this;return d==null||d(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month-calendar`},a(Vt,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(Sr,{ref:"startYearVlRef",items:this.startYearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"start")})}),s==="monthrange"||s==="quarterrange"?a("div",{class:`${r}-date-panel-month-calendar__picker-col`},a(Vt,{ref:"startMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,u)=>l(c,u,r,"start")),s==="monthrange"&&a("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month-calendar`},a(Vt,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(Sr,{ref:"endYearVlRef",items:this.endYearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"end")})}),s==="monthrange"||s==="quarterrange"?a("div",{class:`${r}-date-panel-month-calendar__picker-col`},a(Vt,{ref:"endMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,u)=>l(c,u,r,"end")),s==="monthrange"&&a("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),mt(this.datePickerSlots.footer,c=>c?a("div",{class:`${r}-date-panel-footer`},c):null),!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(Ho,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[a(Ho,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Xg=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:" "},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),Zg=k([m("date-picker",` - position: relative; - z-index: auto; - `,[m("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),m("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),z("disabled",[m("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),m("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),m("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - user-select: none; - `,[hr(),z("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),m("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[z("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),m("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[P("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[k("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[P("picker-col-item",[k("&::before","left: 4px;")])]),P("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),P("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[k("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),at("disabled",[k("&:hover::before",` - background-color: var(--n-item-color-hover); - `),z("selected",` - color: var(--n-item-color-active); - `,[k("&::before","background-color: var(--n-item-color-hover);")])]),z("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[z("selected",[k("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),z("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),z("week",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),z("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),z("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),z("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),z("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),m("date-panel-footer",{gridArea:"footer"}),m("date-panel-actions",{gridArea:"action"}),m("date-panel-header",{gridArea:"header"}),m("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[k(">",[k("*:not(:last-child)",{marginRight:"10px"}),k("*",{flex:1,width:0}),m("time-picker",{zIndex:1})])]),m("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[P("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),P("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[P("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[z("active",` - background-color: var(--n-calendar-title-color-hover); - `),k("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),m("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[P("day",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - display: flex; - align-items: center; - justify-content: center; - `)]),m("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[m("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[P("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),z("current",[P("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),k("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),z("covered, start, end",[at("excluded",[k("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),k("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),k("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),z("selected",{color:"var(--n-item-text-color-active)"},[k("&::after",{backgroundColor:"var(--n-item-color-active)"}),z("start",[k("&::before",{left:"50%"})]),z("end",[k("&::before",{right:"50%"})]),P("sup",{backgroundColor:"var(--n-panel-color)"})]),z("excluded",{color:"var(--n-item-text-color-disabled)"},[z("selected",[k("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),z("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[z("covered",[k("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),z("selected",[k("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),k("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),z("week-hovered",[k("&::before",` - background-color: var(--n-item-color-included); - `),k("&:nth-child(7n + 1)::before",` - border-top-left-radius: var(--n-item-border-radius); - border-bottom-left-radius: var(--n-item-border-radius); - `),k("&:nth-child(7n + 7)::before",` - border-top-right-radius: var(--n-item-border-radius); - border-bottom-right-radius: var(--n-item-border-radius); - `)]),z("week-selected",` - color: var(--n-item-text-color-active) - `,[k("&::before",` - background-color: var(--n-item-color-active); - `),k("&:nth-child(7n + 1)::before",` - border-top-left-radius: var(--n-item-border-radius); - border-bottom-left-radius: var(--n-item-border-radius); - `),k("&:nth-child(7n + 7)::before",` - border-top-right-radius: var(--n-item-border-radius); - border-bottom-right-radius: var(--n-item-border-radius); - `)])])]),at("week",[m("date-panel-dates",[m("date-panel-date",[at("disabled",[at("selected",[k("&:hover",` - background-color: var(--n-item-color-hover); - `)])])])])]),z("week",[m("date-panel-dates",[m("date-panel-date",[k("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - transition: background-color .3s var(--n-bezier); - `)])])]),P("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),m("date-panel-footer",` - border-top: 1px solid var(--n-panel-action-divider-color); - padding: var(--n-panel-extra-footer-padding); - `),m("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[P("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),P("suffix",` - align-self: flex-end; - `),P("prefix",` - flex-wrap: wrap; - `),m("button",` - margin-bottom: 8px; - `,[k("&:not(:last-child)",` - margin-right: 8px; - `)])])]),k("[data-n-date].transition-disabled",{transition:"none !important"},[k("&::before, &::after",{transition:"none !important"})])]);function Qg(e,t){const o=C(()=>{const{isTimeDisabled:u}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return u==null?void 0:u(f)}),r=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isHourDisabled}),n=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isMinuteDisabled}),i=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isSecondDisabled}),s=C(()=>{const{type:u,isDateDisabled:f}=e,{value:v}=t;return v===null||Array.isArray(v)||!["date","datetime"].includes(u)||!f?!1:f(v,{type:"input"})}),l=C(()=>{const{type:u}=e,{value:f}=t;if(f===null||u==="datetime"||Array.isArray(f))return!1;const v=new Date(f),p=v.getHours(),h=v.getMinutes(),g=v.getMinutes();return(r.value?r.value(p):!1)||(n.value?n.value(h,p):!1)||(i.value?i.value(g,h,p):!1)}),d=C(()=>s.value||l.value);return{isValueInvalidRef:C(()=>{const{type:u}=e;return u==="date"?s.value:u==="datetime"?d.value:!1}),isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:r,isMinuteDisabledRef:n,isSecondDisabledRef:i}}function Jg(e,t){const o=C(()=>{const{isTimeDisabled:f}=e,{value:v}=t;return!Array.isArray(v)||!f?[void 0,void 0]:[f==null?void 0:f(v[0],"start",v),f==null?void 0:f(v[1],"end",v)]}),r={isStartHourDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},n=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[0],"start",p)}),i=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[1],"end",p)}),s=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[0]),h=Un(v[0]),g=Wn(v[0]),{isStartHourDisabledRef:x,isStartMinuteDisabledRef:y,isStartSecondDisabledRef:b}=r;return(x.value?x.value(p):!1)||(y.value?y.value(h,p):!1)||(b.value?b.value(g,h,p):!1)}),l=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[1]),h=Un(v[1]),g=Wn(v[1]),{isEndHourDisabledRef:x,isEndMinuteDisabledRef:y,isEndSecondDisabledRef:b}=r;return(x.value?x.value(p):!1)||(y.value?y.value(h,p):!1)||(b.value?b.value(g,h,p):!1)}),d=C(()=>n.value||s.value),c=C(()=>i.value||l.value),u=C(()=>d.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:n,isEndDateInvalidRef:i,isStartTimeInvalidRef:s,isEndTimeInvalidRef:l,isStartValueInvalidRef:d,isEndValueInvalidRef:c,isRangeInvalidRef:u})}const vy=re({name:"DatePicker",props:Xg,slots:Object,setup(e,{slots:t}){var o;const{localeRef:r,dateLocaleRef:n}=To("DatePicker"),i=Co(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:d}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:u,mergedBorderedRef:f,namespaceRef:v,inlineThemeDisabled:p}=Qe(e),h=B(null),g=B(null),x=B(null),y=B(!1),b=fe(e,"show"),T=$t(b,y),$=C(()=>({locale:n.value.locale,useAdditionalWeekYearTokens:!0})),R=C(()=>{const{format:W}=e;if(W)return W;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat;case"week":return r.value.weekFormat}}),S=C(()=>{var W;return(W=e.valueFormat)!==null&&W!==void 0?W:R.value});function w(W){if(W===null)return null;const{value:ge}=S,{value:$e}=$;return Array.isArray(W)?[uo(W[0],ge,new Date,$e).getTime(),uo(W[1],ge,new Date,$e).getTime()]:uo(W,ge,new Date,$e).getTime()}const{defaultFormattedValue:O,defaultValue:F}=e,A=B((o=O!==void 0?w(O):F)!==null&&o!==void 0?o:null),j=C(()=>{const{formattedValue:W}=e;return W!==void 0?w(W):e.value}),M=$t(j,A),H=B(null);Ft(()=>{H.value=M.value});const U=B(""),L=B(""),te=B(""),K=Re("DatePicker","-date-picker",Zg,Ag,e,u),le=C(()=>{var W,ge;return((ge=(W=c==null?void 0:c.value)===null||W===void 0?void 0:W.DatePicker)===null||ge===void 0?void 0:ge.timePickerSize)||"small"}),be=C(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),ce=C(()=>{const{placeholder:W}=e;if(W===void 0){const{type:ge}=e;switch(ge){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;case"week":return r.value.weekPlaceholder;default:return""}}else return W}),V=C(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),E=C(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),I=C(()=>{const{actions:W,type:ge,clearable:$e}=e;if(W===null)return[];if(W!==void 0)return W;const We=$e?["clear"]:[];switch(ge){case"date":case"week":return We.push("now"),We;case"datetime":return We.push("now","confirm"),We;case"daterange":return We.push("confirm"),We;case"datetimerange":return We.push("confirm"),We;case"month":return We.push("now","confirm"),We;case"year":return We.push("now"),We;case"quarter":return We.push("now","confirm"),We;case"monthrange":case"yearrange":case"quarterrange":return We.push("confirm"),We;default:{ho("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function N(W){if(W===null)return null;if(Array.isArray(W)){const{value:ge}=S,{value:$e}=$;return[Bt(W[0],ge,$e),Bt(W[1],ge,$.value)]}else return Bt(W,S.value,$.value)}function J(W){H.value=W}function se(W,ge){const{"onUpdate:formattedValue":$e,onUpdateFormattedValue:We}=e;$e&&ae($e,W,ge),We&&ae(We,W,ge)}function xe(W,ge){const{"onUpdate:value":$e,onUpdateValue:We,onChange:ft}=e,{nTriggerFormChange:rt,nTriggerFormInput:ne}=i,ze=N(W);ge.doConfirm&&_(W,ze),We&&ae(We,W,ze),$e&&ae($e,W,ze),ft&&ae(ft,W,ze),A.value=W,se(ze,W),rt(),ne()}function Ie(){const{onClear:W}=e;W==null||W()}function _(W,ge){const{onConfirm:$e}=e;$e&&$e(W,ge)}function Pe(W){const{onFocus:ge}=e,{nTriggerFormFocus:$e}=i;ge&&ae(ge,W),$e()}function He(W){const{onBlur:ge}=e,{nTriggerFormBlur:$e}=i;ge&&ae(ge,W),$e()}function _e(W){const{"onUpdate:show":ge,onUpdateShow:$e}=e;ge&&ae(ge,W),$e&&ae($e,W),y.value=W}function Ge(W){W.key==="Escape"&&T.value&&(dn(W),ut({returnFocus:!0}))}function Xe(W){W.key==="Escape"&&T.value&&dn(W)}function ct(){var W;_e(!1),(W=x.value)===null||W===void 0||W.deactivate(),Ie()}function ot(){var W;(W=x.value)===null||W===void 0||W.deactivate(),Ie()}function Ce(){ut({returnFocus:!0})}function ee(W){var ge;T.value&&!(!((ge=g.value)===null||ge===void 0)&&ge.contains(Ko(W)))&&ut({returnFocus:!1})}function ue(W){ut({returnFocus:!0,disableUpdateOnClose:W})}function q(W,ge){ge?xe(W,{doConfirm:!1}):J(W)}function Q(){const W=H.value;xe(Array.isArray(W)?[W[0],W[1]]:W,{doConfirm:!0})}function pe(){const{value:W}=H;be.value?(Array.isArray(W)||W===null)&&de(W):Array.isArray(W)||we(W)}function we(W){W===null?U.value="":U.value=Bt(W,R.value,$.value)}function de(W){if(W===null)L.value="",te.value="";else{const ge=$.value;L.value=Bt(W[0],R.value,ge),te.value=Bt(W[1],R.value,ge)}}function me(){T.value||pt()}function je(W){var ge;!((ge=h.value)===null||ge===void 0)&&ge.$el.contains(W.relatedTarget)||(He(W),pe(),ut({returnFocus:!1}))}function oe(){l.value||(pe(),ut({returnFocus:!1}))}function Ue(W){if(W===""){xe(null,{doConfirm:!1}),H.value=null,U.value="";return}const ge=uo(W,R.value,new Date,$.value);Oo(ge)?(xe(Ve(ge),{doConfirm:!1}),pe()):U.value=W}function lt(W,{source:ge}){if(W[0]===""&&W[1]===""){xe(null,{doConfirm:!1}),H.value=null,L.value="",te.value="";return}const[$e,We]=W,ft=uo($e,R.value,new Date,$.value),rt=uo(We,R.value,new Date,$.value);if(Oo(ft)&&Oo(rt)){let ne=Ve(ft),ze=Ve(rt);rt{pe()}),pe(),gt(T,W=>{W||(H.value=M.value)});const De=Qg(e,H),Ze=Jg(e,H);Je(aa,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:K,timePickerSizeRef:le,localeRef:r,dateLocaleRef:n,firstDayOfWeekRef:fe(e,"firstDayOfWeek"),isDateDisabledRef:fe(e,"isDateDisabled"),rangesRef:fe(e,"ranges"),timePickerPropsRef:fe(e,"timePickerProps"),closeOnSelectRef:fe(e,"closeOnSelect"),updateValueOnCloseRef:fe(e,"updateValueOnClose"),monthFormatRef:fe(e,"monthFormat"),yearFormatRef:fe(e,"yearFormat"),quarterFormatRef:fe(e,"quarterFormat"),yearRangeRef:fe(e,"yearRange")},De),Ze),{datePickerSlots:t}));const D={focus:()=>{var W;(W=x.value)===null||W===void 0||W.focus()},blur:()=>{var W;(W=x.value)===null||W===void 0||W.blur()}},G=C(()=>{const{common:{cubicBezierEaseInOut:W},self:{iconColor:ge,iconColorDisabled:$e}}=K.value;return{"--n-bezier":W,"--n-icon-color-override":ge,"--n-icon-color-disabled-override":$e}}),ve=p?it("date-picker-trigger",void 0,G,e):void 0,Fe=C(()=>{const{type:W}=e,{common:{cubicBezierEaseInOut:ge},self:{calendarTitleFontSize:$e,calendarDaysFontSize:We,itemFontSize:ft,itemTextColor:rt,itemColorDisabled:ne,itemColorIncluded:ze,itemColorHover:Le,itemColorActive:et,itemBorderRadius:yt,itemTextColorDisabled:bt,itemTextColorActive:Ct,panelColor:X,panelTextColor:ye,arrowColor:Ke,calendarTitleTextColor:Y,panelActionDividerColor:he,panelHeaderDividerColor:ke,calendarDaysDividerColor:Me,panelBoxShadow:Ne,panelBorderRadius:st,calendarTitleFontWeight:It,panelExtraFooterPadding:Ot,panelActionPadding:Qt,itemSize:oo,itemCellWidth:jt,itemCellHeight:wt,scrollItemWidth:Z,scrollItemHeight:Te,calendarTitlePadding:Oe,calendarTitleHeight:ht,calendarDaysHeight:Ut,calendarDaysTextColor:Pt,arrowSize:So,panelHeaderPadding:Fo,calendarDividerColor:go,calendarTitleGridTempateColumns:Kr,iconColor:qr,iconColorDisabled:Yr,scrollItemBorderRadius:Gr,calendarTitleColorHover:Xr,[ie("calendarLeftPadding",W)]:Zr,[ie("calendarRightPadding",W)]:sa}}=K.value;return{"--n-bezier":ge,"--n-panel-border-radius":st,"--n-panel-color":X,"--n-panel-box-shadow":Ne,"--n-panel-text-color":ye,"--n-panel-header-padding":Fo,"--n-panel-header-divider-color":ke,"--n-calendar-left-padding":Zr,"--n-calendar-right-padding":sa,"--n-calendar-title-color-hover":Xr,"--n-calendar-title-height":ht,"--n-calendar-title-padding":Oe,"--n-calendar-title-font-size":$e,"--n-calendar-title-font-weight":It,"--n-calendar-title-text-color":Y,"--n-calendar-title-grid-template-columns":Kr,"--n-calendar-days-height":Ut,"--n-calendar-days-divider-color":Me,"--n-calendar-days-font-size":We,"--n-calendar-days-text-color":Pt,"--n-calendar-divider-color":go,"--n-panel-action-padding":Qt,"--n-panel-extra-footer-padding":Ot,"--n-panel-action-divider-color":he,"--n-item-font-size":ft,"--n-item-border-radius":yt,"--n-item-size":oo,"--n-item-cell-width":jt,"--n-item-cell-height":wt,"--n-item-text-color":rt,"--n-item-color-included":ze,"--n-item-color-disabled":ne,"--n-item-color-hover":Le,"--n-item-color-active":et,"--n-item-text-color-disabled":bt,"--n-item-text-color-active":Ct,"--n-scroll-item-width":Z,"--n-scroll-item-height":Te,"--n-scroll-item-border-radius":Gr,"--n-arrow-size":So,"--n-arrow-color":Ke,"--n-icon-color":qr,"--n-icon-color-disabled":Yr}}),Be=p?it("date-picker",C(()=>e.type),Fe,e):void 0;return Object.assign(Object.assign({},D),{mergedStatus:d,mergedClsPrefix:u,mergedBordered:f,namespace:v,uncontrolledValue:A,pendingValue:H,panelInstRef:h,triggerElRef:g,inputInstRef:x,isMounted:Yo(),displayTime:U,displayStartTime:L,displayEndTime:te,mergedShow:T,adjustedTo:Zt(e),isRange:be,localizedStartPlaceholder:V,localizedEndPlaceholder:E,mergedSize:s,mergedDisabled:l,localizedPlacehoder:ce,isValueInvalid:De.isValueInvalidRef,isStartValueInvalid:Ze.isStartValueInvalidRef,isEndValueInvalid:Ze.isEndValueInvalidRef,handleInputKeydown:Xe,handleClickOutside:ee,handleKeydown:Ge,handleClear:ct,handlePanelClear:ot,handleTriggerClick:zt,handleInputActivate:me,handleInputDeactivate:oe,handleInputFocus:xt,handleInputBlur:je,handlePanelTabOut:Ce,handlePanelClose:ue,handleRangeUpdateValue:lt,handleSingleUpdateValue:Ue,handlePanelUpdateValue:q,handlePanelConfirm:Q,mergedTheme:K,actions:I,triggerCssVars:p?void 0:G,triggerThemeClass:ve==null?void 0:ve.themeClass,triggerOnRender:ve==null?void 0:ve.onRender,cssVars:p?void 0:Fe,themeClass:Be==null?void 0:Be.themeClass,onRender:Be==null?void 0:Be.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:o,$slots:r}=this,n={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},i=()=>{const{type:l}=this;return l==="datetime"?a(qg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):l==="daterange"?a(Lg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?a(Yg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?a(Zd,Object.assign({},n,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?a(Gg,Object.assign({},n,{type:l})):a(Eg,Object.assign({},n,{type:l,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return i();t==null||t();const s={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return a("div",{ref:"triggerElRef",class:[`${o}-date-picker`,this.mergedDisabled&&`${o}-date-picker--disabled`,this.isRange&&`${o}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},a(zr,null,{default:()=>[a(Pr,null,{default:()=>this.isRange?a(Do,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{separator:()=>this.separator===void 0?vt(r.separator,()=>[a(Rt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>a(zf,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[a(Rt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>a(gl,null)})])}):a(Do,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{[e?"clear-icon-placeholder":"suffix"]:()=>a(Rt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[a(gl,null)])})})}),a(Rr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Zt.tdkey,placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?so(i(),[[Lo,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),em={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Jd(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:s,dividerColor:l,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},em),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p,titleTextColor:r,thColor:qe(n,t),thColorModal:qe(i,t),thColorPopover:qe(s,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:s,borderColor:qe(n,l),borderColorModal:qe(i,l),borderColorPopover:qe(s,l),borderRadius:d})}const tm={common:dt,self:Jd},om={name:"Descriptions",common:Ae,self:Jd},rm=k([m("descriptions",{fontSize:"var(--n-font-size)"},[m("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[m("descriptions-table-header",{padding:"var(--n-th-padding)"}),m("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),at("bordered",[m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[k("&:last-child",[m("descriptions-table-content",{paddingBottom:0})])])])])]),z("left-label-placement",[m("descriptions-table-content",[k("> *",{verticalAlign:"top"})])]),z("left-label-align",[k("th",{textAlign:"left"})]),z("center-label-align",[k("th",{textAlign:"center"})]),z("right-label-align",[k("th",{textAlign:"right"})]),z("bordered",[m("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[m("descriptions-table",[m("descriptions-table-row",[k("&:not(:last-child)",[m("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),m("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[k("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-content",[k("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),m("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),m("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[m("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[m("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[m("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),m("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[P("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),P("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),m("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),jr(m("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),vn(m("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),ec="DESCRIPTION_ITEM_FLAG";function nm(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[ec]:!1}const am=Object.assign(Object.assign({},Re.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]}),py=re({name:"Descriptions",props:am,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Descriptions","-descriptions",rm,tm,e,t),n=C(()=>{const{size:s,bordered:l}=e,{common:{cubicBezierEaseInOut:d},self:{titleTextColor:c,thColor:u,thColorModal:f,thColorPopover:v,thTextColor:p,thFontWeight:h,tdTextColor:g,tdColor:x,tdColorModal:y,tdColorPopover:b,borderColor:T,borderColorModal:$,borderColorPopover:R,borderRadius:S,lineHeight:w,[ie("fontSize",s)]:O,[ie(l?"thPaddingBordered":"thPadding",s)]:F,[ie(l?"tdPaddingBordered":"tdPadding",s)]:A}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":F,"--n-td-padding":A,"--n-font-size":O,"--n-bezier":d,"--n-th-font-weight":h,"--n-line-height":w,"--n-th-text-color":p,"--n-td-text-color":g,"--n-th-color":u,"--n-th-color-modal":f,"--n-th-color-popover":v,"--n-td-color":x,"--n-td-color-modal":y,"--n-td-color-popover":b,"--n-border-radius":S,"--n-border-color":T,"--n-border-color-modal":$,"--n-border-color-popover":R}}),i=o?it("descriptions",C(()=>{let s="";const{size:l,bordered:d}=e;return d&&(s+="a"),s+=l[0],s}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:nr(e,["columns","column"]),inlineThemeDisabled:o}},render(){const e=this.$slots.default,t=e?zo(e()):[];t.length;const{contentClass:o,labelClass:r,compitableColumn:n,labelPlacement:i,labelAlign:s,size:l,bordered:d,title:c,cssVars:u,mergedClsPrefix:f,separator:v,onRender:p}=this;p==null||p();const h=t.filter(b=>nm(b)),g={span:0,row:[],secondRow:[],rows:[]},y=h.reduce((b,T,$)=>{const R=T.props||{},S=h.length-1===$,w=["label"in R?R.label:pl(T,"label")],O=[pl(T)],F=R.span||1,A=b.span;b.span+=F;const j=R.labelStyle||R["label-style"]||this.labelStyle,M=R.contentStyle||R["content-style"]||this.contentStyle;if(i==="left")d?b.row.push(a("th",{class:[`${f}-descriptions-table-header`,r],colspan:1,style:j},w),a("td",{class:[`${f}-descriptions-table-content`,o],colspan:S?(n-A)*2+1:F*2-1,style:M},O)):b.row.push(a("td",{class:`${f}-descriptions-table-content`,colspan:S?(n-A)*2:F*2},a("span",{class:[`${f}-descriptions-table-content__label`,r],style:j},[...w,v&&a("span",{class:`${f}-descriptions-separator`},v)]),a("span",{class:[`${f}-descriptions-table-content__content`,o],style:M},O)));else{const H=S?(n-A)*2:F*2;b.row.push(a("th",{class:[`${f}-descriptions-table-header`,r],colspan:H,style:j},w)),b.secondRow.push(a("td",{class:[`${f}-descriptions-table-content`,o],colspan:H,style:M},O))}return(b.span>=n||S)&&(b.span=0,b.row.length&&(b.rows.push(b.row),b.row=[]),i!=="left"&&b.secondRow.length&&(b.rows.push(b.secondRow),b.secondRow=[])),b},g).rows.map(b=>a("tr",{class:`${f}-descriptions-table-row`},b));return a("div",{style:u,class:[`${f}-descriptions`,this.themeClass,`${f}-descriptions--${i}-label-placement`,`${f}-descriptions--${s}-label-align`,`${f}-descriptions--${l}-size`,d&&`${f}-descriptions--bordered`]},c||this.$slots.header?a("div",{class:`${f}-descriptions-header`},c||mn(this,"header")):null,a("div",{class:`${f}-descriptions-table-wrapper`},a("table",{class:`${f}-descriptions-table`},a("tbody",null,i==="top"&&a("tr",{class:`${f}-descriptions-table-row`,style:{visibility:"collapse"}},si(n*2,a("td",null))),y))))}}),im={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},gy=re({name:"DescriptionsItem",[ec]:!0,props:im,slots:Object,render(){return null}}),tc="n-dialog-provider",oc="n-dialog-api",lm="n-dialog-reactive-list";function sm(){const e=Ee(oc,null);return e===null&&Go("use-dialog","No outer founded."),e}const dm={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function rc(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,infoColor:c,successColor:u,warningColor:f,errorColor:v,primaryColor:p,dividerColor:h,borderRadius:g,fontWeightStrong:x,lineHeight:y,fontSize:b}=e;return Object.assign(Object.assign({},dm),{fontSize:b,lineHeight:y,border:`1px solid ${h}`,titleTextColor:t,textColor:o,color:r,closeColorHover:l,closeColorPressed:d,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:g,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:v,borderRadius:g,titleFontWeight:x})}const nc={name:"Dialog",common:dt,peers:{Button:pr},self:rc},ac={name:"Dialog",common:Ae,peers:{Button:po},self:rc},ia={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},ic=Po(ia),cm=k([m("dialog",` - --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[P("icon",{color:"var(--n-icon-color)"}),z("bordered",{border:"var(--n-border)"}),z("icon-top",[P("close",{margin:"var(--n-close-margin)"}),P("icon",{margin:"var(--n-icon-margin)"}),P("content",{textAlign:"center"}),P("title",{justifyContent:"center"}),P("action",{justifyContent:"center"})]),z("icon-left",[P("icon",{margin:"var(--n-icon-margin)"}),z("closable",[P("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),P("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),P("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[z("last","margin-bottom: 0;")]),P("action",` - display: flex; - justify-content: flex-end; - `,[k("> *:not(:last-child)",` - margin-right: var(--n-action-space); - `)]),P("icon",` - font-size: var(--n-icon-size); - transition: color .3s var(--n-bezier); - `),P("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),m("dialog-icon-container",` - display: flex; - justify-content: center; - `)]),jr(m("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),m("dialog",[cs(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),um={default:()=>a(Er,null),info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null)},lc=re({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Re.props),ia),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Wt("Dialog",n,o),s=C(()=>{var p,h;const{iconPlacement:g}=e;return g||((h=(p=t==null?void 0:t.value)===null||p===void 0?void 0:p.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function l(p){const{onPositiveClick:h}=e;h&&h(p)}function d(p){const{onNegativeClick:h}=e;h&&h(p)}function c(){const{onClose:p}=e;p&&p()}const u=Re("Dialog","-dialog",cm,nc,e,o),f=C(()=>{const{type:p}=e,h=s.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:x,lineHeight:y,border:b,titleTextColor:T,textColor:$,color:R,closeBorderRadius:S,closeColorHover:w,closeColorPressed:O,closeIconColor:F,closeIconColorHover:A,closeIconColorPressed:j,closeIconSize:M,borderRadius:H,titleFontWeight:U,titleFontSize:L,padding:te,iconSize:K,actionSpace:le,contentMargin:be,closeSize:ce,[h==="top"?"iconMarginIconTop":"iconMargin"]:V,[h==="top"?"closeMarginIconTop":"closeMargin"]:E,[ie("iconColor",p)]:I}}=u.value,N=Nt(V);return{"--n-font-size":x,"--n-icon-color":I,"--n-bezier":g,"--n-close-margin":E,"--n-icon-margin-top":N.top,"--n-icon-margin-right":N.right,"--n-icon-margin-bottom":N.bottom,"--n-icon-margin-left":N.left,"--n-icon-size":K,"--n-close-size":ce,"--n-close-icon-size":M,"--n-close-border-radius":S,"--n-close-color-hover":w,"--n-close-color-pressed":O,"--n-close-icon-color":F,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":j,"--n-color":R,"--n-text-color":$,"--n-border-radius":H,"--n-padding":te,"--n-line-height":y,"--n-border":b,"--n-content-margin":be,"--n-title-font-size":L,"--n-title-font-weight":U,"--n-title-text-color":T,"--n-action-space":le}}),v=r?it("dialog",C(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:c,cssVars:r?void 0:f,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:r,closable:n,showIcon:i,title:s,content:l,action:d,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:v,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:g,loading:x,type:y,mergedClsPrefix:b}=this;(e=this.onRender)===null||e===void 0||e.call(this);const T=i?a(Rt,{clsPrefix:b,class:`${b}-dialog__icon`},{default:()=>mt(this.$slots.icon,R=>R||(this.icon?kt(this.icon):um[this.type]()))}):null,$=mt(this.$slots.action,R=>R||u||c||d?a("div",{class:[`${b}-dialog__action`,this.actionClass],style:this.actionStyle},R||(d?[kt(d)]:[this.negativeText&&a(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},v),{default:()=>kt(this.negativeText)}),this.positiveText&&a(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:y==="default"?"primary":y,disabled:x,loading:x,onClick:p},f),{default:()=>kt(this.positiveText)})])):null);return a("div",{class:[`${b}-dialog`,this.themeClass,this.closable&&`${b}-dialog--closable`,`${b}-dialog--icon-${o}`,t&&`${b}-dialog--bordered`,this.rtlEnabled&&`${b}-dialog--rtl`],style:r,role:"dialog"},n?mt(this.$slots.close,R=>{const S=[`${b}-dialog__close`,this.rtlEnabled&&`${b}-dialog--rtl`];return R?a("div",{class:S},R):a(ur,{clsPrefix:b,class:S,onClick:this.handleCloseClick})}):null,i&&o==="top"?a("div",{class:`${b}-dialog-icon-container`},T):null,a("div",{class:[`${b}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?T:null,vt(this.$slots.header,()=>[kt(s)])),a("div",{class:[`${b}-dialog__content`,$?"":`${b}-dialog__content--last`,this.contentClass],style:this.contentStyle},vt(this.$slots.default,()=>[kt(l)])),$)}});function sc(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const fm={name:"Modal",common:dt,peers:{Scrollbar:No,Dialog:nc,Card:od},self:sc},hm={name:"Modal",common:Ae,peers:{Scrollbar:vo,Dialog:ac,Card:rd},self:sc},vm="n-modal-provider",dc="n-modal-api",pm="n-modal-reactive-list";function gm(){const e=Ee(dc,null);return e===null&&Go("use-modal","No outer founded."),e}const ri="n-draggable";function mm(e,t){let o;const r=C(()=>e.value!==!1),n=C(()=>r.value?ri:""),i=C(()=>{const d=e.value;return d===!0||d===!1?!0:d?d.bounds!=="none":!0});function s(d){const c=d.querySelector(`.${ri}`);if(!c||!n.value)return;let u=0,f=0,v=0,p=0,h=0,g=0,x;function y($){$.preventDefault(),x=$;const{x:R,y:S,right:w,bottom:O}=d.getBoundingClientRect();f=R,p=S,u=window.innerWidth-w,v=window.innerHeight-O;const{left:F,top:A}=d.style;h=+A.slice(0,-2),g=+F.slice(0,-2)}function b($){if(!x)return;const{clientX:R,clientY:S}=x;let w=$.clientX-R,O=$.clientY-S;i.value&&(w>u?w=u:-w>f&&(w=-f),O>v?O=v:-O>p&&(O=-p));const F=w+g,A=O+h;d.style.top=`${A}px`,d.style.left=`${F}px`}function T(){x=void 0,t.onEnd(d)}Lt("mousedown",c,y),Lt("mousemove",window,b),Lt("mouseup",window,T),o=()=>{Yt("mousedown",c,y),Lt("mousemove",window,b),Lt("mouseup",window,T)}}function l(){o&&(o(),o=void 0)}return Jn(l),{stopDrag:l,startDrag:s,draggableRef:r,draggableClassRef:n}}const Li=Object.assign(Object.assign({},Ri),ia),bm=Po(Li),xm=re({name:"ModalBody",inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1}},Li),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=B(null),o=B(null),r=B(e.show),n=B(null),i=B(null),s=Ee(fs);let l=null;gt(fe(e,"show"),O=>{O&&(l=s.getMousePosition())},{immediate:!0});const{stopDrag:d,startDrag:c,draggableRef:u,draggableClassRef:f}=mm(fe(e,"draggable"),{onEnd:O=>{g(O)}}),v=C(()=>Wa([e.titleClass,f.value])),p=C(()=>Wa([e.headerClass,f.value]));gt(fe(e,"show"),O=>{O&&(r.value=!0)}),ps(C(()=>e.blockScroll&&r.value));function h(){if(s.transformOriginRef.value==="center")return"";const{value:O}=n,{value:F}=i;if(O===null||F===null)return"";if(o.value){const A=o.value.containerScrollTop;return`${O}px ${F+A}px`}return""}function g(O){if(s.transformOriginRef.value==="center"||!l||!o.value)return;const F=o.value.containerScrollTop,{offsetLeft:A,offsetTop:j}=O,M=l.y,H=l.x;n.value=-(A-H),i.value=-(j-M-F),O.style.transformOrigin=h()}function x(O){Tt(()=>{g(O)})}function y(O){O.style.transformOrigin=h(),e.onBeforeLeave()}function b(O){const F=O;u.value&&c(F),e.onAfterEnter&&e.onAfterEnter(F)}function T(){r.value=!1,n.value=null,i.value=null,d(),e.onAfterLeave()}function $(){const{onClose:O}=e;O&&O()}function R(){e.onNegativeClick()}function S(){e.onPositiveClick()}const w=B(null);return gt(w,O=>{O&&Tt(()=>{const F=O.el;F&&t.value!==F&&(t.value=F)})}),Je(gn,t),Je(pn,null),Je(Vr,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,draggableClass:f,displayed:r,childNodeRef:w,cardHeaderClass:p,dialogTitleClass:v,handlePositiveClick:S,handleNegativeClick:R,handleCloseClick:$,handleAfterEnter:b,handleAfterLeave:T,handleBeforeLeave:y,handleEnter:x}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterEnter:r,handleAfterLeave:n,handleBeforeLeave:i,preset:s,mergedClsPrefix:l}=this;let d=null;if(!s){if(d=af("default",e.default,{draggableClass:this.draggableClass}),!d){ho("modal","default slot is empty");return}d=an(d),d.props=lo({class:`${l}-modal`},t,d.props||{})}return this.displayDirective==="show"||this.displayed||this.show?so(a("div",{role:"none",class:`${l}-modal-body-wrapper`},a(Vt,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${l}-modal-scroll-content`},{default:()=>{var c;return[(c=this.renderMask)===null||c===void 0?void 0:c.call(this),a(fi,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return a(qt,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:r,onAfterLeave:n,onBeforeLeave:i},{default:()=>{const f=[[Eo,this.show]],{onClickoutside:v}=this;return v&&f.push([Lo,this.onClickoutside,void 0,{capture:!0}]),so(this.preset==="confirm"||this.preset==="dialog"?a(lc,Object.assign({},this.$attrs,{class:[`${l}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mo(this.$props,ic),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?a(mv,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${l}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mo(this.$props,pv),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=d,f)}})}})]}})),[[Eo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Cm=k([m("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),m("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[wn({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),m("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[m("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),m("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[hr({duration:".25s",enterScale:".5"}),k(`.${ri}`,` - cursor: move; - user-select: none; - `)])]),cc=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Li),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),uc=re({name:"Modal",inheritAttrs:!1,props:cc,slots:Object,setup(e){const t=B(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),i=Re("Modal","-modal",Cm,fm,e,o),s=pi(64),l=gi(),d=Yo(),c=e.internalDialog?Ee(tc,null):null,u=e.internalModal?Ee(Xu,null):null,f=vs();function v(S){const{onUpdateShow:w,"onUpdate:show":O,onHide:F}=e;w&&ae(w,S),O&&ae(O,S),F&&!S&&F(S)}function p(){const{onClose:S}=e;S?Promise.resolve(S()).then(w=>{w!==!1&&v(!1)}):v(!1)}function h(){const{onPositiveClick:S}=e;S?Promise.resolve(S()).then(w=>{w!==!1&&v(!1)}):v(!1)}function g(){const{onNegativeClick:S}=e;S?Promise.resolve(S()).then(w=>{w!==!1&&v(!1)}):v(!1)}function x(){const{onBeforeLeave:S,onBeforeHide:w}=e;S&&ae(S),w&&w()}function y(){const{onAfterLeave:S,onAfterHide:w}=e;S&&ae(S),w&&w()}function b(S){var w;const{onMaskClick:O}=e;O&&O(S),e.maskClosable&&!((w=t.value)===null||w===void 0)&&w.contains(Ko(S))&&v(!1)}function T(S){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&bs(S)&&(f.value||v(!1))}Je(fs,{getMousePosition:()=>{const S=c||u;if(S){const{clickedRef:w,clickedPositionRef:O}=S;if(w.value&&O.value)return O.value}return s.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:d,appearRef:fe(e,"internalAppear"),transformOriginRef:fe(e,"transformOrigin")});const $=C(()=>{const{common:{cubicBezierEaseOut:S},self:{boxShadow:w,color:O,textColor:F}}=i.value;return{"--n-bezier-ease-out":S,"--n-box-shadow":w,"--n-color":O,"--n-text-color":F}}),R=n?it("theme-class",void 0,$,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:d,containerRef:t,presetProps:C(()=>mo(e,bm)),handleEsc:T,handleAfterLeave:y,handleClickoutside:b,handleBeforeLeave:x,doUpdateShow:v,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:p,cssVars:n?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e}=this;return a(ns,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return so(a("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},a(xm,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var r;return a(qt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?a("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[hi,{zIndex:this.zIndex,enabled:this.show}]])}})}}),ym=Object.assign(Object.assign({},ia),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),wm=re({name:"DialogEnvironment",props:Object.assign(Object.assign({},ym),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function n(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:i,handleEsc:s,to:l,maskClosable:d,show:c}=this;return a(uc,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,maskClosable:d,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:u})=>a(lc,Object.assign({},mo(this.$props,ic),{titleClass:Wa([this.titleClass,u]),style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}))})}}),Sm={injectionKey:String,to:[String,Object]},km=re({name:"DialogProvider",props:Sm,setup(){const e=B([]),t={};function o(l={}){const d=qo(),c=ea(Object.assign(Object.assign({},l),{key:d,destroy:()=>{var u;(u=t[`n-dialog-${d}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>d=>o(Object.assign(Object.assign({},d),{type:l})));function n(l){const{value:d}=e;d.splice(d.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const s={create:o,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return Je(oc,s),Je(tc,{clickedRef:pi(64),clickedPositionRef:gi()}),Je(lm,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return a(Gt,null,[this.dialogList.map(o=>a(wm,$r(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),fc="n-loading-bar",hc="n-loading-bar-api",Rm={name:"LoadingBar",common:Ae,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function zm(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Pm={common:dt,self:zm},$m=m("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[wn({enterDuration:"0.3s",leaveDuration:"0.8s"}),m("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[z("starting",` - background: var(--n-color-loading); - `),z("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),z("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var _n=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function Hn(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const Tm=re({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Qe(),{props:t,mergedClsPrefixRef:o}=Ee(fc),r=B(null),n=B(!1),i=B(!1),s=B(!1),l=B(!1);let d=!1;const c=B(!1),u=C(()=>{const{loadingBarStyle:R}=t;return R?R[c.value?"error":"loading"]:""});function f(){return _n(this,void 0,void 0,function*(){n.value=!1,s.value=!1,d=!1,c.value=!1,l.value=!0,yield Tt(),l.value=!1})}function v(){return _n(this,arguments,void 0,function*(R=0,S=80,w="starting"){if(i.value=!0,yield f(),d)return;s.value=!0,yield Tt();const O=r.value;O&&(O.style.maxWidth=`${R}%`,O.style.transition="none",O.offsetWidth,O.className=Hn(w,o.value),O.style.transition="",O.style.maxWidth=`${S}%`)})}function p(){return _n(this,void 0,void 0,function*(){if(d||c.value)return;i.value&&(yield Tt()),d=!0;const R=r.value;R&&(R.className=Hn("finishing",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1)})}function h(){if(!(d||c.value))if(!s.value)v(100,100,"error").then(()=>{c.value=!0;const R=r.value;R&&(R.className=Hn("error",o.value),R.offsetWidth,s.value=!1)});else{c.value=!0;const R=r.value;if(!R)return;R.className=Hn("error",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1}}function g(){n.value=!0}function x(){n.value=!1}function y(){return _n(this,void 0,void 0,function*(){yield f()})}const b=Re("LoadingBar","-loading-bar",$m,Pm,t,o),T=C(()=>{const{self:{height:R,colorError:S,colorLoading:w}}=b.value;return{"--n-height":R,"--n-color-loading":w,"--n-color-error":S}}),$=e?it("loading-bar",void 0,T,t):void 0;return{mergedClsPrefix:o,loadingBarRef:r,started:i,loading:s,entering:n,transitionDisabled:l,start:v,error:h,finish:p,handleEnter:g,handleAfterEnter:x,handleAfterLeave:y,mergedLoadingBarStyle:u,cssVars:e?void 0:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return a(qt,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),so(a("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},a("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Eo,this.loading||!this.loading&&this.entering]])}})}}),Fm=Object.assign(Object.assign({},Re.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),Im=re({name:"LoadingBarProvider",props:Fm,setup(e){const t=Yo(),o=B(null),r={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:n}=Qe(e);return Je(hc,r),Je(fc,{props:e,mergedClsPrefixRef:n}),Object.assign(r,{loadingBarRef:o})},render(){var e,t;return a(Gt,null,a(ui,{disabled:this.to===!1,to:this.to||"body"},a(Tm,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function Bm(){const e=Ee(hc,null);return e===null&&Go("use-loading-bar","No outer founded."),e}const vc="n-message-api",pc="n-message-provider",Om={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function gc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:s,errorColor:l,warningColor:d,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:v,borderRadius:p,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},Om),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:d,iconColorError:l,iconColorLoading:f,closeColorHover:h,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:v,borderRadius:p})}const Dm={common:dt,self:gc},Mm={name:"Message",common:Ae,self:gc},mc={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Am=k([m("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[cn({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),m("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[P("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),P("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>z(`${e}-type`,[k("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),k("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[fo()])]),P("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[k("&:hover",` - color: var(--n-close-icon-color-hover); - `),k("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),m("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[z("top",` - top: 12px; - left: 0; - right: 0; - `),z("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),z("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),z("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),z("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),z("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),_m={info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null),default:()=>null},Hm=re({name:"Message",props:Object.assign(Object.assign({},mc),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Qe(e),{props:r,mergedClsPrefixRef:n}=Ee(pc),i=Wt("Message",o,n),s=Re("Message","-message",Am,Dm,r,n),l=C(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:v,maxWidth:p,iconMargin:h,closeMargin:g,closeSize:x,iconSize:y,fontSize:b,lineHeight:T,borderRadius:$,iconColorInfo:R,iconColorSuccess:S,iconColorWarning:w,iconColorError:O,iconColorLoading:F,closeIconSize:A,closeBorderRadius:j,[ie("textColor",c)]:M,[ie("boxShadow",c)]:H,[ie("color",c)]:U,[ie("closeColorHover",c)]:L,[ie("closeColorPressed",c)]:te,[ie("closeIconColor",c)]:K,[ie("closeIconColorPressed",c)]:le,[ie("closeIconColorHover",c)]:be}}=s.value;return{"--n-bezier":u,"--n-margin":v,"--n-padding":f,"--n-max-width":p,"--n-font-size":b,"--n-icon-margin":h,"--n-icon-size":y,"--n-close-icon-size":A,"--n-close-border-radius":j,"--n-close-size":x,"--n-close-margin":g,"--n-text-color":M,"--n-color":U,"--n-box-shadow":H,"--n-icon-color-info":R,"--n-icon-color-success":S,"--n-icon-color-warning":w,"--n-icon-color-error":O,"--n-icon-color-loading":F,"--n-close-color-hover":L,"--n-close-color-pressed":te,"--n-close-icon-color":K,"--n-close-icon-color-pressed":le,"--n-close-icon-color-hover":be,"--n-line-height":T,"--n-border-radius":$}}),d=t?it("message",C(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:s,onRender:l,icon:d,handleClose:c,showIcon:u}=this;l==null||l();let f;return a("div",{class:[`${n}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):a("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(f=Em(d,t,n))&&u?a("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},a(cr,null,{default:()=>f})):null,a("div",{class:`${n}-message__content`},kt(r)),o?a(ur,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function Em(e,t,o){if(typeof e=="function")return e();{const r=t==="loading"?a(Zo,{clsPrefix:o,strokeWidth:24,scale:.85}):_m[t]();return r?a(Rt,{clsPrefix:o,key:t},{default:()=>r}):null}}const Lm=re({name:"MessageEnvironment",props:Object.assign(Object.assign({},mc),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=B(!0);to(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function n(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function d(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:v,internalKey:p}=e;u&&u(),f&&f(p),v&&v()}function c(){s()}return{show:o,hide:s,handleClose:l,handleAfterLeave:d,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return a(yn,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?a(Hm,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Nm=Object.assign(Object.assign({},Re.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),jm=re({name:"MessageProvider",props:Nm,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=B([]),r=B({}),n={create(d,c){return i(d,Object.assign({type:"default"},c))},info(d,c){return i(d,Object.assign(Object.assign({},c),{type:"info"}))},success(d,c){return i(d,Object.assign(Object.assign({},c),{type:"success"}))},warning(d,c){return i(d,Object.assign(Object.assign({},c),{type:"warning"}))},error(d,c){return i(d,Object.assign(Object.assign({},c),{type:"error"}))},loading(d,c){return i(d,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};Je(pc,{props:e,mergedClsPrefixRef:t}),Je(vc,n);function i(d,c){const u=qo(),f=ea(Object.assign(Object.assign({},c),{content:d,key:u,destroy:()=>{var p;(p=r.value[u])===null||p===void 0||p.hide()}})),{max:v}=e;return v&&o.value.length>=v&&o.value.shift(),o.value.push(f),f}function s(d){o.value.splice(o.value.findIndex(c=>c.key===d),1),delete r.value[d]}function l(){Object.values(r.value).forEach(d=>{d.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:s},n)},render(){var e,t,o;return a(Gt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?a(ui,{to:(o=this.to)!==null&&o!==void 0?o:"body"},a("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>a(Lm,Object.assign({ref:n=>{n&&(this.messageRefs[r.key]=n)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},$r(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Vm(){const e=Ee(vc,null);return e===null&&Go("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Wm=re({name:"ModalEnvironment",props:Object.assign(Object.assign({},cc),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function n(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:r,show:n}=this;return a(uc,Object.assign({},this.$props,{show:n,onUpdateShow:e,onMaskClick:o,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),Um={to:[String,Object]},Km=re({name:"ModalProvider",props:Um,setup(){const e=B([]),t={};function o(s={}){const l=qo(),d=ea(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var c;(c=t[`n-modal-${l}`])===null||c===void 0||c.hide()}}));return e.value.push(d),d}function r(s){const{value:l}=e;l.splice(l.findIndex(d=>d.key===s),1)}function n(){Object.values(t).forEach(s=>{s==null||s.hide()})}const i={create:o,destroyAll:n};return Je(dc,i),Je(vm,{clickedRef:pi(64),clickedPositionRef:gi()}),Je(pm,e),Object.assign(Object.assign({},i),{modalList:e,modalInstRefs:t,handleAfterLeave:r})},render(){var e,t;return a(Gt,null,[this.modalList.map(o=>{var r;return a(Wm,$r(o,["destroy"],{to:(r=o.to)!==null&&r!==void 0?r:this.to,ref:n=>{n===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),qm={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function bc(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:s,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:v,textColor3:p,borderRadius:h,fontWeightStrong:g,boxShadow2:x,lineHeight:y,fontSize:b}=e;return Object.assign(Object.assign({},qm),{borderRadius:h,lineHeight:y,fontSize:b,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:s,textColor:t,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:f,headerTextColor:v,descriptionTextColor:p,actionTextColor:t,boxShadow:x})}const Ym={name:"Notification",common:dt,peers:{Scrollbar:No},self:bc},Gm={name:"Notification",common:Ae,peers:{Scrollbar:vo},self:bc},la="n-notification-provider",Xm=re({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Ee(la),r=B(null);return Ft(()=>{var n,i;o.value>0?(n=r==null?void 0:r.value)===null||n===void 0||n.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return a("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`]},t?a(Vt,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Zm={info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null),default:()=>null},Ni={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Qm=Po(Ni),Jm=re({name:"Notification",props:Ni,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=Ee(la),{inlineThemeDisabled:n,mergedRtlRef:i}=Qe(),s=Wt("Notification",i,t),l=C(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:g,descriptionTextColor:x,actionTextColor:y,borderRadius:b,headerFontWeight:T,boxShadow:$,lineHeight:R,fontSize:S,closeMargin:w,closeSize:O,width:F,padding:A,closeIconSize:j,closeBorderRadius:M,closeColorHover:H,closeColorPressed:U,titleFontSize:L,metaFontSize:te,descriptionFontSize:K,[ie("iconColor",c)]:le},common:{cubicBezierEaseOut:be,cubicBezierEaseIn:ce,cubicBezierEaseInOut:V}}=o.value,{left:E,right:I,top:N,bottom:J}=Nt(A);return{"--n-color":u,"--n-font-size":S,"--n-text-color":f,"--n-description-text-color":x,"--n-action-text-color":y,"--n-title-text-color":g,"--n-title-font-weight":T,"--n-bezier":V,"--n-bezier-ease-out":be,"--n-bezier-ease-in":ce,"--n-border-radius":b,"--n-box-shadow":$,"--n-close-border-radius":M,"--n-close-color-hover":H,"--n-close-color-pressed":U,"--n-close-icon-color":v,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":R,"--n-icon-color":le,"--n-close-margin":w,"--n-close-size":O,"--n-close-icon-size":j,"--n-width":F,"--n-padding-left":E,"--n-padding-right":I,"--n-padding-top":N,"--n-padding-bottom":J,"--n-title-font-size":L,"--n-meta-font-size":te,"--n-description-font-size":K}}),d=n?it("notification",C(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:C(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:n?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},a("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?a("div",{class:`${t}-notification__avatar`},this.avatar?kt(this.avatar):this.type!=="default"?a(Rt,{clsPrefix:t},{default:()=>Zm[this.type]()}):null):null,this.closable?a(ur,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,a("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?a("div",{class:`${t}-notification-main__header`},kt(this.title)):null,this.description?a("div",{class:`${t}-notification-main__description`},kt(this.description)):null,this.content?a("pre",{class:`${t}-notification-main__content`},kt(this.content)):null,this.meta||this.action?a("div",{class:`${t}-notification-main-footer`},this.meta?a("div",{class:`${t}-notification-main-footer__meta`},kt(this.meta)):null,this.action?a("div",{class:`${t}-notification-main-footer__action`},kt(this.action)):null):null)))}}),eb=Object.assign(Object.assign({},Ni),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),tb=re({name:"NotificationEnvironment",props:Object.assign(Object.assign({},eb),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ee(la),o=B(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function i(h){t.value++,Tt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function s(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:g,onAfterShow:x}=e;g&&g(),x&&x()}function l(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function d(h){const{onHide:g}=e;g&&g(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:g,onAfterHide:x,internalKey:y}=e;h&&h(),g(y),x&&x()}function u(){const{duration:h}=e;h&&(r=window.setTimeout(n,h))}function f(h){h.currentTarget===h.target&&r!==null&&(window.clearTimeout(r),r=null)}function v(h){h.currentTarget===h.target&&u()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(g=>{g!==!1&&n()}):n()}return to(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:d,handleBeforeLeave:l,handleAfterEnter:s,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:v}},render(){return a(qt,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?a(Jm,Object.assign({},mo(this.$props,Qm),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),ob=k([m("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[k(">",[m("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[k(">",[m("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[m("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),z("top, top-right, top-left",` - top: 12px; - `,[k("&.transitioning >",[m("scrollbar",[k(">",[m("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),z("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[k(">",[m("scrollbar",[k(">",[m("scrollbar-container",[m("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),m("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),z("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[m("notification-wrapper",[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),z("top",[m("notification-wrapper",` - transform-origin: top center; - `)]),z("bottom",[m("notification-wrapper",` - transform-origin: bottom center; - `)]),z("top-right, bottom-right",[m("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),z("top-left, bottom-left",[m("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),z("top-right",` - right: 0; - `,[En("top-right")]),z("top-left",` - left: 0; - `,[En("top-left")]),z("bottom-right",` - right: 0; - `,[En("bottom-right")]),z("bottom-left",` - left: 0; - `,[En("bottom-left")]),z("scrollable",[z("top-right",` - top: 0; - `),z("top-left",` - top: 0; - `),z("bottom-right",` - bottom: 0; - `),z("bottom-left",` - bottom: 0; - `)]),m("notification-wrapper",` - margin-bottom: 12px; - `,[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),k("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),k("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),m("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - max-width: calc(100vw - 16px - 16px); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[P("avatar",[m("icon",` - color: var(--n-icon-color); - `),m("base-icon",` - color: var(--n-icon-color); - `)]),z("show-avatar",[m("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),z("closable",[m("notification-main",[k("> *:first-child",` - padding-right: 20px; - `)]),P("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),P("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[m("icon","transition: color .3s var(--n-bezier);")]),m("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[m("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[P("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),P("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),P("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),P("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),P("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[k("&:first-child","margin: 0;")])])])])]);function En(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return m("notification-wrapper",[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${o}, 0); - `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(0, 0); - `)])}const xc="n-notification-api",rb=Object.assign(Object.assign({},Re.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),nb=re({name:"NotificationProvider",props:rb,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=B([]),r={},n=new Set;function i(p){const h=qo(),g=()=>{n.add(h),r[h]&&r[h].hide()},x=ea(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:y}=e;if(y&&o.value.length-n.size>=y){let b=!1,T=0;for(const $ of o.value){if(!n.has($.key)){r[$.key]&&($.destroy(),b=!0);break}T++}b||o.value.splice(T,1)}return o.value.push(x),x}const s=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function l(p){n.delete(p),o.value.splice(o.value.findIndex(h=>h.key===p),1)}const d=Re("Notification","-notification",ob,Ym,e,t),c={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:v},u=B(0);Je(xc,c),Je(la,{props:e,mergedClsPrefixRef:t,mergedThemeRef:d,wipTransitionCountRef:u});function f(p){return i(p)}function v(){Object.values(o.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,o;const{placement:r}=this;return a(Gt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?a(ui,{to:(o=this.to)!==null&&o!==void 0?o:"body"},a(Xm,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(n=>a(tb,Object.assign({ref:i=>{const s=n.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},$r(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function ab(){const e=Ee(xc,null);return e===null&&Go("use-notification","No outer `n-notification-provider` found."),e}const ib=re({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),lb={message:Vm,notification:ab,loadingBar:Bm,dialog:sm,modal:gm};function sb({providersAndProps:e,configProviderProps:t}){let o=Au(n);const r={app:o};function n(){return a(lp,el(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>a(d,el(c),{default:()=>a(ib,{onSetup:()=>r[l]=lb[l]()})}))})}let i;return xo&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){ho("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},r)}function my(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:i,modalProviderProps:s}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:jm,props:o});break;case"notification":l.push({type:c,Provider:nb,props:n});break;case"dialog":l.push({type:c,Provider:km,props:r});break;case"loadingBar":l.push({type:c,Provider:Im,props:i});break;case"modal":l.push({type:c,Provider:Km,props:s})}}),sb({providersAndProps:l,configProviderProps:t})}function Cc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const db={common:dt,self:Cc},cb={name:"Divider",common:Ae,self:Cc},ub=m("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[at("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[at("no-title",` - display: flex; - align-items: center; - `)]),P("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),z("title-position-left",[P("line",[z("left",{width:"28px"})])]),z("title-position-right",[P("line",[z("right",{width:"28px"})])]),z("dashed",[P("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),z("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),P("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),at("dashed",[P("line",{backgroundColor:"var(--n-color)"})]),z("dashed",[P("line",{borderColor:"var(--n-color)"})]),z("vertical",{backgroundColor:"var(--n-color)"})]),fb=Object.assign(Object.assign({},Re.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),by=re({name:"Divider",props:fb,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Divider","-divider",ub,db,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{color:l,textColor:d,fontWeight:c}}=r.value;return{"--n-bezier":s,"--n-color":l,"--n-text-color":d,"--n-font-weight":c}}),i=o?it("divider",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:r,dashed:n,cssVars:i,mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{role:"separator",class:[`${s}-divider`,this.themeClass,{[`${s}-divider--vertical`]:r,[`${s}-divider--no-title`]:!t.default,[`${s}-divider--dashed`]:n,[`${s}-divider--title-position-${o}`]:t.default&&o}],style:i},r?null:a("div",{class:`${s}-divider__line ${s}-divider__line--left`}),!r&&t.default?a(Gt,null,a("div",{class:`${s}-divider__title`},this.$slots),a("div",{class:`${s}-divider__line ${s}-divider__line--right`})):null)}});function yc(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:s,dividerColor:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:s,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeSize:"22px",closeIconSize:"18px",closeColorHover:d,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}}const hb={name:"Drawer",common:dt,peers:{Scrollbar:No},self:yc},vb={name:"Drawer",common:Ae,peers:{Scrollbar:vo},self:yc},pb=re({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=B(!!e.show),o=B(null),r=Ee(bi);let n=0,i="",s=null;const l=B(!1),d=B(!1),c=C(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:f}=Qe(e),v=Wt("Drawer",f,u),p=S,h=F=>{d.value=!0,n=c.value?F.clientY:F.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",R),document.body.addEventListener("mouseleave",p),document.body.addEventListener("mouseup",S)},g=()=>{s!==null&&(window.clearTimeout(s),s=null),d.value?l.value=!0:s=window.setTimeout(()=>{l.value=!0},300)},x=()=>{s!==null&&(window.clearTimeout(s),s=null),l.value=!1},{doUpdateHeight:y,doUpdateWidth:b}=r,T=F=>{const{maxWidth:A}=e;if(A&&F>A)return A;const{minWidth:j}=e;return j&&F{const{maxHeight:A}=e;if(A&&F>A)return A;const{minHeight:j}=e;return j&&F{e.show&&(t.value=!0)}),gt(()=>e.show,F=>{F||S()}),bo(()=>{S()});const w=C(()=>{const{show:F}=e,A=[[Eo,F]];return e.showMask||A.push([Lo,e.onClickoutside,void 0,{capture:!0}]),A});function O(){var F;t.value=!1,(F=e.onAfterLeave)===null||F===void 0||F.call(e)}return ps(C(()=>e.blockScroll&&t.value)),Je(pn,o),Je(Vr,null),Je(gn,null),{bodyRef:o,rtlEnabled:v,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:C(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:O,bodyDirectives:w,handleMousedownResizeTrigger:h,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:x,isDragging:d,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?so(a("div",{role:"none"},a(fi,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>a(qt,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>so(a("div",lo(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?a("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?a("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):a(Vt,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Eo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:gb,cubicBezierEaseOut:mb}=yo;function bb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${gb}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${mb}`}),k(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:xb,cubicBezierEaseOut:Cb}=yo;function yb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${xb}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Cb}`}),k(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:wb,cubicBezierEaseOut:Sb}=yo;function kb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${wb}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Sb}`}),k(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:Rb,cubicBezierEaseOut:zb}=yo;function Pb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Rb}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${zb}`}),k(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const $b=k([m("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[kb(),yb(),Pb(),bb(),z("unselectable",` - user-select: none; - -webkit-user-select: none; - `),z("native-scrollbar",[m("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),P("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[z("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),m("drawer-content-wrapper",` - box-sizing: border-box; - `),m("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[z("native-scrollbar",[m("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),m("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),m("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),m("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[P("main",` - flex: 1; - `),P("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),m("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),z("right-placement",` - top: 0; - bottom: 0; - right: 0; - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[P("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),z("left-placement",` - top: 0; - bottom: 0; - left: 0; - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[P("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),z("top-placement",` - top: 0; - left: 0; - right: 0; - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[P("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),z("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - `,[P("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),k("body",[k(">",[m("drawer-container",` - position: fixed; - `)])]),m("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[k("> *",` - pointer-events: all; - `)]),m("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[z("invisible",` - background-color: rgba(0, 0, 0, 0) - `),wn({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),Tb=Object.assign(Object.assign({},Re.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),xy=re({name:"Drawer",inheritAttrs:!1,props:Tb,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:r}=Qe(e),n=Yo(),i=Re("Drawer","-drawer",$b,hb,e,t),s=B(e.defaultWidth),l=B(e.defaultHeight),d=$t(fe(e,"width"),s),c=$t(fe(e,"height"),l),u=C(()=>{const{placement:S}=e;return S==="top"||S==="bottom"?"":_t(d.value)}),f=C(()=>{const{placement:S}=e;return S==="left"||S==="right"?"":_t(c.value)}),v=S=>{const{onUpdateWidth:w,"onUpdate:width":O}=e;w&&ae(w,S),O&&ae(O,S),s.value=S},p=S=>{const{onUpdateHeight:w,"onUpdate:width":O}=e;w&&ae(w,S),O&&ae(O,S),l.value=S},h=C(()=>[{width:u.value,height:f.value},e.drawerStyle||""]);function g(S){const{onMaskClick:w,maskClosable:O}=e;O&&T(!1),w&&w(S)}function x(S){g(S)}const y=vs();function b(S){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&bs(S)&&(y.value||T(!1))}function T(S){const{onHide:w,onUpdateShow:O,"onUpdate:show":F}=e;O&&ae(O,S),F&&ae(F,S),w&&!S&&ae(w,S)}Je(bi,{isMountedRef:n,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:T,doUpdateHeight:p,doUpdateWidth:v});const $=C(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:w,cubicBezierEaseOut:O},self:{color:F,textColor:A,boxShadow:j,lineHeight:M,headerPadding:H,footerPadding:U,borderRadius:L,bodyPadding:te,titleFontSize:K,titleTextColor:le,titleFontWeight:be,headerBorderBottom:ce,footerBorderTop:V,closeIconColor:E,closeIconColorHover:I,closeIconColorPressed:N,closeColorHover:J,closeColorPressed:se,closeIconSize:xe,closeSize:Ie,closeBorderRadius:_,resizableTriggerColorHover:Pe}}=i.value;return{"--n-line-height":M,"--n-color":F,"--n-border-radius":L,"--n-text-color":A,"--n-box-shadow":j,"--n-bezier":S,"--n-bezier-out":O,"--n-bezier-in":w,"--n-header-padding":H,"--n-body-padding":te,"--n-footer-padding":U,"--n-title-text-color":le,"--n-title-font-size":K,"--n-title-font-weight":be,"--n-header-border-bottom":ce,"--n-footer-border-top":V,"--n-close-icon-color":E,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":N,"--n-close-size":Ie,"--n-close-color-hover":J,"--n-close-color-pressed":se,"--n-close-icon-size":xe,"--n-close-border-radius":_,"--n-resize-trigger-color-hover":Pe}}),R=r?it("drawer",void 0,$,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:h,handleOutsideClick:x,handleMaskClick:g,handleEsc:b,mergedTheme:i,cssVars:r?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender,isMounted:n}},render(){const{mergedClsPrefix:e}=this;return a(ns,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),so(a("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?a(qt,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?a("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,a(pb,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[hi,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Fb={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},Cy=re({name:"DrawerContent",props:Fb,slots:Object,setup(){const e=Ee(bi,null);e||Go("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:r,bodyClass:n,bodyStyle:i,bodyContentClass:s,bodyContentStyle:l,headerClass:d,headerStyle:c,footerClass:u,footerStyle:f,scrollbarProps:v,closable:p,$slots:h}=this;return a("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},h.header||e||p?a("div",{class:[`${t}-drawer-header`,d],style:c,role:"none"},a("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},h.header!==void 0?h.header():e),p&&a(ur,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?a("div",{class:[`${t}-drawer-body`,n],style:i,role:"none"},a("div",{class:[`${t}-drawer-body-content-wrapper`,s],style:l,role:"none"},h)):a(Vt,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},v,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,s],contentStyle:l}),h),h.footer?a("div",{class:[`${t}-drawer-footer`,u],style:f,role:"none"},h.footer()):null)}}),Ib={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},Bb={name:"DynamicInput",common:Ae,peers:{Input:wo,Button:po},self(){return Ib}},wc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Sc={name:"Space",self(){return wc}};function Ob(){return wc}const kc={name:"Space",self:Ob};let za;function Db(){if(!xo)return!0;if(za===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),za=t}return za}const Mb=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Ab=re({name:"Space",props:Mb,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Re("Space","-space",void 0,kc,e,t),n=Wt("Space",o,t);return{useGap:Db(),rtlEnabled:n,mergedClsPrefix:t,margin:C(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ie("gap",i)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Mt(d),vertical:Mt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,itemClass:i,itemStyle:s,margin:l,wrap:d,mergedClsPrefix:c,rtlEnabled:u,useGap:f,wrapItem:v,internalUseGap:p}=this,h=zo(mn(this),!1);if(!h.length)return null;const g=`${l.horizontal}px`,x=`${l.horizontal/2}px`,y=`${l.vertical}px`,b=`${l.vertical/2}px`,T=h.length-1,$=n.startsWith("space-");return a("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(n)?`flex-${n}`:n,flexWrap:!d||e?"nowrap":"wrap",marginTop:f||e?"":`-${b}`,marginBottom:f||e?"":`-${b}`,alignItems:o,gap:f?`${l.vertical}px ${l.horizontal}px`:""}},!v&&(f||p)?h:h.map((R,S)=>R.type===ci?R:a("div",{role:"none",class:i,style:[s,{maxWidth:"100%"},f?"":e?{marginBottom:S!==T?y:""}:u?{marginLeft:$?n==="space-between"&&S===T?"":x:S!==T?g:"",marginRight:$?n==="space-between"&&S===0?"":x:"",paddingTop:b,paddingBottom:b}:{marginRight:$?n==="space-between"&&S===T?"":x:S!==T?g:"",marginLeft:$?n==="space-between"&&S===0?"":x:"",paddingTop:b,paddingBottom:b}]},R)))}}),_b={name:"DynamicTags",common:Ae,peers:{Input:wo,Button:po,Tag:Ds,Space:Sc},self(){return{inputWidth:"64px"}}},Hb={name:"DynamicTags",common:dt,peers:{Input:vr,Button:pr,Tag:Ms,Space:kc},self(){return{inputWidth:"64px"}}},Eb=m("dynamic-tags",[m("input",{minWidth:"var(--n-input-width)"})]),Lb=Object.assign(Object.assign(Object.assign({},Re.props),As),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),yy=re({name:"DynamicTags",props:Lb,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),{localeRef:r}=To("DynamicTags"),n=Co(e),{mergedDisabledRef:i}=n,s=B(""),l=B(!1),d=B(!0),c=B(null),u=Re("DynamicTags","-dynamic-tags",Eb,Hb,e,t),f=B(e.defaultValue),v=fe(e,"value"),p=$t(v,f),h=C(()=>r.value.add),g=C(()=>Ua(e.size)),x=C(()=>i.value||!!e.max&&p.value.length>=e.max);function y(F){const{onChange:A,"onUpdate:value":j,onUpdateValue:M}=e,{nTriggerFormInput:H,nTriggerFormChange:U}=n;A&&ae(A,F),M&&ae(M,F),j&&ae(j,F),f.value=F,H(),U()}function b(F){const A=p.value.slice(0);A.splice(F,1),y(A)}function T(F){switch(F.key){case"Enter":$()}}function $(F){const A=F??s.value;if(A){const j=p.value.slice(0);j.push(e.onCreate(A)),y(j)}l.value=!1,d.value=!0,s.value=""}function R(){$()}function S(){l.value=!0,Tt(()=>{var F;(F=c.value)===null||F===void 0||F.focus(),d.value=!1})}const w=C(()=>{const{self:{inputWidth:F}}=u.value;return{"--n-input-width":F}}),O=o?it("dynamic-tags",void 0,w,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:h,inputSize:g,inputValue:s,showInput:l,inputForceFocused:d,mergedValue:p,mergedDisabled:i,triggerDisabled:x,handleInputKeyDown:T,handleAddClick:S,handleInputBlur:R,handleCloseClick:b,handleInputConfirm:$,mergedTheme:u,cssVars:o?void 0:w,themeClass:O==null?void 0:O.themeClass,onRender:O==null?void 0:O.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:o,onRender:r,renderTag:n}=this;return r==null||r(),a(Ab,{class:[`${o}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagClass:s,tagStyle:l,type:d,round:c,size:u,color:f,closable:v,mergedDisabled:p,showInput:h,inputValue:g,inputClass:x,inputStyle:y,inputSize:b,inputForceFocused:T,triggerDisabled:$,handleInputKeyDown:R,handleInputBlur:S,handleAddClick:w,handleCloseClick:O,handleInputConfirm:F,$slots:A}=this;return this.mergedValue.map((j,M)=>n?n(j,M):a(jn,{key:M,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,class:s,style:l,type:d,round:c,size:u,color:f,closable:v,disabled:p,onClose:()=>{O(M)}},{default:()=>typeof j=="string"?j:j.label})).concat(h?A.input?A.input({submit:F,deactivate:S}):a(Do,Object.assign({placeholder:"",size:b,style:y,class:x,autosize:!0},this.inputProps,{ref:"inputInstRef",value:g,onUpdateValue:j=>{this.inputValue=j},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeydown:R,onBlur:S,internalForceFocus:T})):A.trigger?A.trigger({activate:w,disabled:$}):a(At,{dashed:!0,disabled:$,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:b,onClick:w},{icon:()=>a(Rt,{clsPrefix:o},{default:()=>a(yi,null)})}))}})}}),Nb={name:"Element",common:Ae},Rc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},jb={name:"Flex",self(){return Rc}};function Vb(){return Rc}const Wb={self:Vb},Ub=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),wy=re({name:"Flex",props:Ub,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Re("Flex","-flex",void 0,Wb,e,t);return{rtlEnabled:Wt("Flex",o,t),mergedClsPrefix:t,margin:C(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ie("gap",i)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Mt(d),vertical:Mt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,margin:i,wrap:s,mergedClsPrefix:l,rtlEnabled:d}=this,c=zo(mn(this),!1);return c.length?a("div",{role:"none",class:[`${l}-flex`,d&&`${l}-flex--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:n,flexWrap:!s||e?"nowrap":"wrap",alignItems:o,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),Kb={name:"ButtonGroup",common:Ae},qb={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function zc(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:s,lineHeight:l,textColor3:d}=e;return Object.assign(Object.assign({},qb),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:l,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:s,feedbackTextColor:d})}const Pc={common:dt,self:zc},Yb={name:"Form",common:Ae,self:zc},Gb={name:"GradientText",common:Ae,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:s,successColorSuppl:l,warningColorSuppl:d,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:i,colorEndInfo:u,colorStartWarning:r,colorEndWarning:d,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:l}}};function Xb(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:s}=e;return{fontWeight:s,rotate:"252deg",colorStartPrimary:Se(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Se(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Se(r,{alpha:.6}),colorEndWarning:r,colorStartError:Se(n,{alpha:.6}),colorEndError:n,colorStartSuccess:Se(o,{alpha:.6}),colorEndSuccess:o}}const Zb={common:dt,self:Xb},Qb={name:"InputNumber",common:Ae,peers:{Button:po,Input:wo},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Jb(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const e0={name:"InputNumber",common:dt,peers:{Button:pr,Input:vr},self:Jb};function t0(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const o0={name:"InputOtp",common:Ae,peers:{Input:wo},self:t0},r0={name:"Layout",common:Ae,peers:{Scrollbar:vo},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:s,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:qe(o,s),siderToggleBarColorHover:qe(o,l),__invertScrollbar:"false"}}};function n0(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:s,scrollbarColor:l,scrollbarColorHover:d,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:s,headerColor:n,headerColorInverted:c,footerColor:s,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:qe(r,l),siderToggleBarColorHover:qe(r,d),__invertScrollbar:"true"}}const ji={name:"Layout",common:dt,peers:{Scrollbar:No},self:n0},a0={name:"Row",common:Ae};function i0(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:s,fontSize:l,hoverColor:d}=e;return{textColor:t,color:o,colorHover:d,colorModal:r,colorHoverModal:qe(r,d),colorPopover:n,colorHoverPopover:qe(n,d),borderColor:i,borderColorModal:qe(r,i),borderColorPopover:qe(n,i),borderRadius:s,fontSize:l}}const l0={name:"List",common:Ae,self:i0},s0={name:"Log",common:Ae,peers:{Scrollbar:vo,Code:id},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},d0={name:"Mention",common:Ae,peers:{InternalSelectMenu:kn,Input:wo},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function c0(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function $c(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:s,dividerColor:l,hoverColor:d,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:d,itemColorActive:Se(r,{alpha:.1}),itemColorActiveHover:Se(r,{alpha:.1}),itemColorActiveCollapsed:Se(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:s,dividerColor:l},c0("#BBB",r,"#FFF","#AAA"))}const u0={name:"Menu",common:dt,peers:{Tooltip:Bi,Dropdown:Fi},self:$c},f0={name:"Menu",common:Ae,peers:{Tooltip:ra,Dropdown:Ii},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=$c(e);return r.itemColorActive=Se(t,{alpha:.15}),r.itemColorActiveHover=Se(t,{alpha:.15}),r.itemColorActiveCollapsed=Se(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}},h0={titleFontSize:"18px",backSize:"22px"};function v0(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:s,primaryColorPressed:l}=e;return Object.assign(Object.assign({},h0),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:s,backColorPressed:l,subtitleTextColor:r})}const p0={name:"PageHeader",common:Ae,self:v0},g0={iconSize:"22px"};function m0(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},g0),{fontSize:t,iconColor:o})}const b0={name:"Popconfirm",common:Ae,peers:{Button:po,Popover:Fr},self:m0};function x0(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:s,fontSize:l,fontWeight:d}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:d,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Tc={name:"Progress",common:Ae,self(e){const t=x0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},C0={name:"Rate",common:Ae,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},y0={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Fc(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:s,lineHeight:l,fontWeightStrong:d}=e;return Object.assign(Object.assign({},y0),{lineHeight:l,titleFontWeight:d,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:s})}const w0={common:dt,self:Fc},S0={name:"Result",common:Ae,self:Fc},k0={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},R0={name:"Slider",common:Ae,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:s,cardColor:l,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},k0),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:s,indicatorBorderRadius:d,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}};function Ic(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:s,primaryColor:l,fontSize:d}=e;return{fontSize:d,textColor:l,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:s,color:l,opacitySpinning:t}}const z0={common:dt,self:Ic},P0={name:"Spin",common:Ae,self:Ic};function $0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const T0={name:"Statistic",common:Ae,self:$0},F0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function I0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:s,textColor2:l}=e;return Object.assign(Object.assign({},F0),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:s,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})}const B0={name:"Steps",common:Ae,self:I0},Bc={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},O0={name:"Switch",common:Ae,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:s}=e;return Object.assign(Object.assign({},Bc),{iconColor:s,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`})}};function D0(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return Object.assign(Object.assign({},Bc),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${Se(t,{alpha:.2})}`})}const M0={common:dt,self:D0},A0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function _0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:s,textColor1:l,textColor2:d,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},A0),{fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,lineHeight:f,borderRadius:c,borderColor:qe(o,t),borderColorModal:qe(r,t),borderColorPopover:qe(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:qe(o,s),tdColorStripedModal:qe(r,s),tdColorStripedPopover:qe(n,s),thColor:qe(o,i),thColorModal:qe(r,i),thColorPopover:qe(n,i),thTextColor:l,tdTextColor:d,thFontWeight:u})}const H0={name:"Table",common:Ae,self:_0},E0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Oc(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,tabColor:c,baseColor:u,dividerColor:f,fontWeight:v,textColor1:p,borderRadius:h,fontSize:g,fontWeightStrong:x}=e;return Object.assign(Object.assign({},E0),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:v,tabFontWeight:v,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:x})}const L0={common:dt,self:Oc},N0={name:"Tabs",common:Ae,self(e){const t=Oc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function j0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const V0={name:"Thing",common:Ae,self:j0},W0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},U0={name:"Timeline",common:Ae,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:s,textColor2:l,railColor:d,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},W0),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:s,contentTextColor:l,metaTextColor:t,lineColor:d})}},K0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},q0={name:"Transfer",common:Ae,peers:{Checkbox:Ur,Scrollbar:vo,Input:wo,Empty:Tr,Button:po},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:s,borderRadius:l,inputColor:d,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:v,textColor3:p,hoverColor:h,closeColorHover:g,closeColorPressed:x,closeIconColor:y,closeIconColorHover:b,closeIconColorPressed:T,dividerColor:$}=e;return Object.assign(Object.assign({},K0),{itemHeightSmall:s,itemHeightMedium:s,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:l,dividerColor:$,borderColor:"#0000",listColor:d,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:v,itemTextColorDisabled:f,itemColorPending:h,titleFontWeight:t,closeColorHover:g,closeColorPressed:x,closeIconColor:y,closeIconColorHover:b,closeIconColorPressed:T})}};function Dc(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:s,textColor2:l,textColorDisabled:d,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Se(i,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:d,loadingColor:i,dropMarkColor:i,lineColor:o}}const Y0={name:"Tree",common:dt,peers:{Checkbox:zi,Scrollbar:No,Empty:Sn},self:Dc},Mc={name:"Tree",common:Ae,peers:{Checkbox:Ur,Scrollbar:vo,Empty:Tr},self(e){const{primaryColor:t}=e,o=Dc(e);return o.nodeColorActive=Se(t,{alpha:.15}),o}},G0={name:"TreeSelect",common:Ae,peers:{Tree:Mc,Empty:Tr,InternalSelection:ki}},X0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Ac(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:s,dividerColor:l,fontWeightStrong:d,textColor1:c,textColor3:u,infoColor:f,warningColor:v,errorColor:p,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},X0),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:s,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:d,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:v,headerBarColorSuccess:h,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:h,textColorWarning:v,textColorError:p,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const Vi={common:dt,self:Ac},Z0={name:"Typography",common:Ae,self:Ac};function Q0(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:s,actionColor:l,borderColor:d,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:v}=e;return{fontSize:v,lineHeight:u,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${d}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:Se(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${d}`}}const J0={name:"Upload",common:Ae,peers:{Button:po,Progress:Tc},self(e){const{errorColor:t}=e,o=Q0(e);return o.itemColorHoverError=Se(t,{alpha:.09}),o}},ex={name:"Watermark",common:Ae,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},tx={name:"Watermark",common:dt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},ox={name:"FloatButton",common:Ae,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:s,primaryColorPressed:l,baseColor:d,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:s,colorPrimaryPressed:l,textColorPrimary:d,borderRadiusSquare:c}}},zn="n-form",_c="n-form-item-insts",rx=m("form",[z("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[m("form-item",{width:"auto",marginRight:"18px"},[k("&:last-child",{marginRight:0})])])]);var nx=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const ax=Object.assign(Object.assign({},Re.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),Sy=re({name:"Form",props:ax,setup(e){const{mergedClsPrefixRef:t}=Qe(e);Re("Form","-form",rx,Pc,e,t);const o={},r=B(void 0),n=d=>{const c=r.value;(c===void 0||d>=c)&&(r.value=d)};function i(d){return nx(this,arguments,void 0,function*(c,u=()=>!0){return yield new Promise((f,v)=>{const p=[];for(const h of Po(o)){const g=o[h];for(const x of g)x.path&&p.push(x.internalValidate(null,u))}Promise.all(p).then(h=>{const g=h.some(b=>!b.valid),x=[],y=[];h.forEach(b=>{var T,$;!((T=b.errors)===null||T===void 0)&&T.length&&x.push(b.errors),!(($=b.warnings)===null||$===void 0)&&$.length&&y.push(b.warnings)}),c&&c(x.length?x:void 0,{warnings:y.length?y:void 0}),g?v(x.length?x:void 0):f({warnings:y.length?y:void 0})})})})}function s(){for(const d of Po(o)){const c=o[d];for(const u of c)u.restoreValidation()}}return Je(zn,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:n}),Je(_c,{formItems:o}),Object.assign({validate:i,restoreValidation:s},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return a("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}}),{cubicBezierEaseInOut:_l}=yo;function ix({name:e="fade-down",fromOffset:t="-4px",enterDuration:o=".3s",leaveDuration:r=".3s",enterCubicBezier:n=_l,leaveCubicBezier:i=_l}={}){return[k(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),k(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),k(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),k(`&.${e}-transition-enter-active`,{transition:`opacity ${o} ${n}, transform ${o} ${n}`})]}const lx=m("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[m("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[P("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),P("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),m("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),z("auto-label-width",[m("form-item-label","white-space: nowrap;")]),z("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: flex-start; - `,[m("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[z("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),z("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),z("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),z("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),P("text",` - grid-area: text; - `),P("asterisk",` - grid-area: mark; - align-self: end; - `)])]),z("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[z("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),m("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),m("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),m("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[k("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),m("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[z("warning",{color:"var(--n-feedback-text-color-warning)"}),z("error",{color:"var(--n-feedback-text-color-error)"}),ix({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function sx(e){const t=Ee(zn,null);return{mergedSize:C(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function dx(e){const t=Ee(zn,null),o=C(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=C(()=>o.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=C(()=>{if(o.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return _t(h);if(r.value){const g=t==null?void 0:t.maxChildLabelWidthRef.value;return g!==void 0?_t(g):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return _t(t.props.labelWidth)}),i=C(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),s=C(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),l=C(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),d=C(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=B(!1),u=B(!1),f=C(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(u.value)return"warning"}),v=C(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=C(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:s,mergedLabelPlacement:o,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:d,mergedValidationStatus:f,mergedShowFeedback:v,mergedShowLabel:p,isAutoLabelWidth:r}}function cx(e){const t=Ee(zn,null),o=C(()=>{const{rulePath:s}=e;if(s!==void 0)return s;const{path:l}=e;if(l!==void 0)return l}),r=C(()=>{const s=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?s.push(...l):s.push(l)),t){const{rules:d}=t.props,{value:c}=o;if(d!==void 0&&c!==void 0){const u=Kn(d,c);u!==void 0&&(Array.isArray(u)?s.push(...u):s.push(u))}}return s}),n=C(()=>r.value.some(s=>s.required)),i=C(()=>n.value||e.required);return{mergedRules:r,mergedRequired:i}}var Hl=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const Wi=Object.assign(Object.assign({},Re.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object}),ux=Po(Wi);function El(e,t){return(...o)=>{try{const r=e(...o);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r!=null&&r.then?r:(r===void 0||ho("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){ho("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const fx=re({name:"FormItem",props:Wi,setup(e){Zu(_c,"formItems",fe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Ee(zn,null),n=sx(e),i=dx(e),{validationErrored:s,validationWarned:l}=i,{mergedRequired:d,mergedRules:c}=cx(e),{mergedSize:u}=n,{mergedLabelPlacement:f,mergedLabelAlign:v,mergedRequireMarkPlacement:p}=i,h=B([]),g=B(qo()),x=r?fe(r.props,"disabled"):B(!1),y=Re("Form","-form-item",lx,Pc,e,t);gt(fe(e,"path"),()=>{e.ignorePathChange||b()});function b(){h.value=[],s.value=!1,l.value=!1,e.feedback&&(g.value=qo())}const T=(...U)=>Hl(this,[...U],void 0,function*(L=null,te=()=>!0,K={suppressWarning:!0}){const{path:le}=e;K?K.first||(K.first=e.first):K={};const{value:be}=c,ce=r?Kn(r.props.model,le||""):void 0,V={},E={},I=(L?be.filter(_e=>Array.isArray(_e.trigger)?_e.trigger.includes(L):_e.trigger===L):be).filter(te).map((_e,Ge)=>{const Xe=Object.assign({},_e);if(Xe.validator&&(Xe.validator=El(Xe.validator,!1)),Xe.asyncValidator&&(Xe.asyncValidator=El(Xe.asyncValidator,!0)),Xe.renderMessage){const ct=`__renderMessage__${Ge}`;E[ct]=Xe.message,Xe.message=ct,V[ct]=Xe.renderMessage}return Xe}),N=I.filter(_e=>_e.level!=="warning"),J=I.filter(_e=>_e.level==="warning"),se={valid:!0,errors:void 0,warnings:void 0};if(!I.length)return se;const xe=le??"__n_no_path__",Ie=new ol({[xe]:N}),_=new ol({[xe]:J}),{validateMessages:Pe}=(r==null?void 0:r.props)||{};Pe&&(Ie.messages(Pe),_.messages(Pe));const He=_e=>{h.value=_e.map(Ge=>{const Xe=(Ge==null?void 0:Ge.message)||"";return{key:Xe,render:()=>Xe.startsWith("__renderMessage__")?V[Xe]():Xe}}),_e.forEach(Ge=>{var Xe;!((Xe=Ge.message)===null||Xe===void 0)&&Xe.startsWith("__renderMessage__")&&(Ge.message=E[Ge.message])})};if(N.length){const _e=yield new Promise(Ge=>{Ie.validate({[xe]:ce},K,Ge)});_e!=null&&_e.length&&(se.valid=!1,se.errors=_e,He(_e))}if(J.length&&!se.errors){const _e=yield new Promise(Ge=>{_.validate({[xe]:ce},K,Ge)});_e!=null&&_e.length&&(He(_e),se.warnings=_e)}return!se.errors&&!se.warnings?b():(s.value=!!se.errors,l.value=!!se.warnings),se});function $(){T("blur")}function R(){T("change")}function S(){T("focus")}function w(){T("input")}function O(U,L){return Hl(this,void 0,void 0,function*(){let te,K,le,be;return typeof U=="string"?(te=U,K=L):U!==null&&typeof U=="object"&&(te=U.trigger,K=U.callback,le=U.shouldRuleBeApplied,be=U.options),yield new Promise((ce,V)=>{T(te,le,be).then(({valid:E,errors:I,warnings:N})=>{E?(K&&K(void 0,{warnings:N}),ce({warnings:N})):(K&&K(I,{warnings:N}),V(I))})})})}Je(qa,{path:fe(e,"path"),disabled:x,mergedSize:n.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:b,handleContentBlur:$,handleContentChange:R,handleContentFocus:S,handleContentInput:w});const F={validate:O,restoreValidation:b,internalValidate:T},A=B(null);to(()=>{if(!i.isAutoLabelWidth.value)return;const U=A.value;if(U!==null){const L=U.style.whiteSpace;U.style.whiteSpace="nowrap",U.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(U).width.slice(0,-2))),U.style.whiteSpace=L}});const j=C(()=>{var U;const{value:L}=u,{value:te}=f,K=te==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:le},self:{labelTextColor:be,asteriskColor:ce,lineHeight:V,feedbackTextColor:E,feedbackTextColorWarning:I,feedbackTextColorError:N,feedbackPadding:J,labelFontWeight:se,[ie("labelHeight",L)]:xe,[ie("blankHeight",L)]:Ie,[ie("feedbackFontSize",L)]:_,[ie("feedbackHeight",L)]:Pe,[ie("labelPadding",K)]:He,[ie("labelTextAlign",K)]:_e,[ie(ie("labelFontSize",te),L)]:Ge}}=y.value;let Xe=(U=v.value)!==null&&U!==void 0?U:_e;return te==="top"&&(Xe=Xe==="right"?"flex-end":"flex-start"),{"--n-bezier":le,"--n-line-height":V,"--n-blank-height":Ie,"--n-label-font-size":Ge,"--n-label-text-align":Xe,"--n-label-height":xe,"--n-label-padding":He,"--n-label-font-weight":se,"--n-asterisk-color":ce,"--n-label-text-color":be,"--n-feedback-padding":J,"--n-feedback-font-size":_,"--n-feedback-height":Pe,"--n-feedback-text-color":E,"--n-feedback-text-color-warning":I,"--n-feedback-text-color-error":N}}),M=o?it("form-item",C(()=>{var U;return`${u.value[0]}${f.value[0]}${((U=v.value)===null||U===void 0?void 0:U[0])||""}`}),j,e):void 0,H=C(()=>f.value==="left"&&p.value==="left"&&v.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:A,mergedClsPrefix:t,mergedRequired:d,feedbackId:g,renderExplains:h,reverseColSpace:H},i),n),F),{cssVars:o?void 0:j,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:o,mergedShowRequireMark:r,mergedRequireMarkPlacement:n,onRender:i}=this,s=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const d=this.$slots.label?this.$slots.label():this.label;if(!d)return null;const c=a("span",{class:`${t}-form-item-label__text`},d),u=s?a("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&a("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:f}=this;return a("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[u,c]:[c,u])};return a("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!o&&`${t}-form-item--no-label`],style:this.cssVars},o&&l(),a("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?a("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},a(qt,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:d}=this;return mt(e.feedback,c=>{var u;const{feedback:f}=this,v=c||f?a("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:p,render:h})=>a("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return v?d==="warning"?a("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},v):d==="error"?a("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},v):d==="success"?a("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},v):a("div",{key:"controlled-default",class:`${t}-form-item-feedback`},v):null})}})):null)}}),Ll=1,Hc="n-grid",Ec=1,Ui={span:{type:[Number,String],default:Ec},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},hx=Po(Ui),vx=re({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ui,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:r,layoutShiftDisabledRef:n}=Ee(Hc),i=di();return{overflow:r,itemStyle:o,layoutShiftDisabled:n,mergedXGap:C(()=>Et(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:s=Ec,privateShow:l=!0,privateColStart:d=void 0,privateOffset:c=0}=i.vnode.props,{value:u}=t,f=Et(u||0);return{display:l?"":"none",gridColumn:`${d??`span ${s}`} / span ${s}`,marginLeft:c?`calc((100% - (${s} - 1) * ${f}) / ${s} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:r,mergedXGap:n}=this;return a("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:r?`calc((100% - (${o} - 1) * ${n}) / ${o} * ${r} + ${n} * ${r})`:""}},this.$slots)}return a("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),px=Object.assign(Object.assign({},Ui),Wi),ky=re({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:px,setup(){const e=B(null);return{formItemInstRef:e,validate:(...r)=>{const{value:n}=e;if(n)return n.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return a(vx,mo(this.$.vnode.props||{},hx),{default:()=>{const e=mo(this.$props,ux);return a(fx,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Ry=re({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Ee($o,null),{body:t}=document,{style:o}=t;let r=!1,n=!0;hn(()=>{Ft(()=>{var i,s;const{textColor2:l,fontSize:d,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:f,lineHeight:v}=e?Mr({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||dt,(s=e.mergedThemeOverridesRef.value)===null||s===void 0?void 0:s.common):dt;if(r||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=u,o.color=l,o.fontSize=d,o.fontFamily=c,o.lineHeight=v;const p=`color .3s ${f}, background-color .3s ${f}`;n?setTimeout(()=>{o.transition=p},0):o.transition=p,t.setAttribute("n-styled",""),r=!0,n=!1}})}),Jn(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),gx=m("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),mx=Object.assign(Object.assign({},Re.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),zy=re({name:"GradientText",props:mx,setup(e){Ju();const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=C(()=>{const{type:c}=e;return c==="danger"?"error":c}),n=C(()=>{let c=e.size||e.fontSize;return c&&(c=_t(c)),c||void 0}),i=C(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const u=c.deg||0,f=c.from,v=c.to;return`linear-gradient(${u}deg, ${f} 0%, ${v} 100%)`}}),s=Re("GradientText","-gradient-text",gx,Zb,e,t),l=C(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:u},self:{rotate:f,[ie("colorStart",c)]:v,[ie("colorEnd",c)]:p,fontWeight:h}}=s.value;return{"--n-bezier":u,"--n-rotate":f,"--n-color-start":v,"--n-color-end":p,"--n-font-weight":h}}),d=o?it("gradient-text",C(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:n,styleBgImage:i,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),a("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),bx={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Lc=24,Pa="__ssr__",xx={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:Lc},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Py=re({name:"Grid",inheritAttrs:!1,props:xx,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=Qe(e),r=/^\d+$/,n=B(void 0),i=Eu((o==null?void 0:o.value)||bx),s=tt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=C(()=>{if(s.value)return e.responsive==="self"?n.value:i.value}),d=tt(()=>{var y;return(y=Number(Ir(e.cols.toString(),l.value)))!==null&&y!==void 0?y:Lc}),c=tt(()=>Ir(e.xGap.toString(),l.value)),u=tt(()=>Ir(e.yGap.toString(),l.value)),f=y=>{n.value=y.contentRect.width},v=y=>{Na(f,y)},p=B(!1),h=C(()=>{if(e.responsive==="self")return v}),g=B(!1),x=B();return to(()=>{const{value:y}=x;y&&y.hasAttribute(Pa)&&(y.removeAttribute(Pa),g.value=!0)}),Je(Hc,{layoutShiftDisabledRef:fe(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:fe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!xo,contentEl:x,mergedClsPrefix:t,style:C(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Et(e.xGap),rowGap:Et(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${d.value}, minmax(0, 1fr))`,columnGap:Et(c.value),rowGap:Et(u.value)}),isResponsive:s,responsiveQuery:l,responsiveCols:d,handleResize:h,overflow:p}},render(){if(this.layoutShiftDisabled)return a("div",lo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,r,n,i,s,l;this.overflow=!1;const d=zo(mn(this)),c=[],{collapsed:u,collapsedRows:f,responsiveCols:v,responsiveQuery:p}=this;d.forEach(b=>{var T,$,R,S,w;if(((T=b==null?void 0:b.type)===null||T===void 0?void 0:T.__GRID_ITEM__)!==!0)return;if(lf(b)){const A=an(b);A.props?A.props.privateShow=!1:A.props={privateShow:!1},c.push({child:A,rawChildSpan:0});return}b.dirs=(($=b.dirs)===null||$===void 0?void 0:$.filter(({dir:A})=>A!==Eo))||null,((R=b.dirs)===null||R===void 0?void 0:R.length)===0&&(b.dirs=null);const O=an(b),F=Number((w=Ir((S=O.props)===null||S===void 0?void 0:S.span,p))!==null&&w!==void 0?w:Ll);F!==0&&c.push({child:O,rawChildSpan:F})});let h=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const b=(o=g.props)===null||o===void 0?void 0:o.suffix;b!==void 0&&b!==!1&&(h=Number((n=Ir((r=g.props)===null||r===void 0?void 0:r.span,p))!==null&&n!==void 0?n:Ll),g.props.privateSpan=h,g.props.privateColStart=v+1-h,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let x=0,y=!1;for(const{child:b,rawChildSpan:T}of c){if(y&&(this.overflow=!0),!y){const $=Number((l=Ir((s=b.props)===null||s===void 0?void 0:s.offset,p))!==null&&l!==void 0?l:0),R=Math.min(T+$,v);if(b.props?(b.props.privateSpan=R,b.props.privateOffset=$):b.props={privateSpan:R,privateOffset:$},u){const S=x%v;R+S>v&&(x+=v-S),R+x+h>f*v?y=!0:x+=R}}y&&(b.props?b.props.privateShow!==!0&&(b.props.privateShow=!1):b.props={privateShow:!1})}return a("div",lo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Pa]:this.isSsr||void 0},this.$attrs),c.map(({child:b})=>b))};return this.isResponsive&&this.responsive==="self"?a(_o,{onResize:this.handleResize},{default:e}):e()}});function Cx(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const yx={name:"IconWrapper",common:Ae,self:Cx},wx={name:"Image",common:Ae,peers:{Tooltip:ra},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Sx=k([m("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),m("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]);function kx(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Rx(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function $a(e){return e==null?!0:!Number.isNaN(e)}function Nl(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function Ta(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const jl=800,Vl=100,zx=Object.assign(Object.assign({},Re.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),$y=re({name:"InputNumber",props:zx,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:r}=Qe(e),n=Re("InputNumber","-input-number",Sx,e0,e,o),{localeRef:i}=To("InputNumber"),s=Co(e),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:c}=s,u=B(null),f=B(null),v=B(null),p=B(e.defaultValue),h=fe(e,"value"),g=$t(h,p),x=B(""),y=Ce=>{const ee=String(Ce).split(".")[1];return ee?ee.length:0},b=Ce=>{const ee=[e.min,e.max,e.step,Ce].map(ue=>ue===void 0?0:y(ue));return Math.max(...ee)},T=tt(()=>{const{placeholder:Ce}=e;return Ce!==void 0?Ce:i.value.placeholder}),$=tt(()=>{const Ce=Ta(e.step);return Ce!==null?Ce===0?1:Math.abs(Ce):1}),R=tt(()=>{const Ce=Ta(e.min);return Ce!==null?Ce:null}),S=tt(()=>{const Ce=Ta(e.max);return Ce!==null?Ce:null}),w=()=>{const{value:Ce}=g;if($a(Ce)){const{format:ee,precision:ue}=e;ee?x.value=ee(Ce):Ce===null||ue===void 0||y(Ce)>ue?x.value=Nl(Ce,void 0):x.value=Nl(Ce,ue)}else x.value=String(Ce)};w();const O=Ce=>{const{value:ee}=g;if(Ce===ee){w();return}const{"onUpdate:value":ue,onUpdateValue:q,onChange:Q}=e,{nTriggerFormInput:pe,nTriggerFormChange:we}=s;Q&&ae(Q,Ce),q&&ae(q,Ce),ue&&ae(ue,Ce),p.value=Ce,pe(),we()},F=({offset:Ce,doUpdateIfValid:ee,fixPrecision:ue,isInputing:q})=>{const{value:Q}=x;if(q&&Rx(Q))return!1;const pe=(e.parse||kx)(Q);if(pe===null)return ee&&O(null),null;if($a(pe)){const we=y(pe),{precision:de}=e;if(de!==void 0&&deje){if(!ee||q)return!1;me=je}if(oe!==null&&meF({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),j=tt(()=>{const{value:Ce}=g;if(e.validator&&Ce===null)return!1;const{value:ee}=$;return F({offset:-ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),M=tt(()=>{const{value:Ce}=g;if(e.validator&&Ce===null)return!1;const{value:ee}=$;return F({offset:+ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function H(Ce){const{onFocus:ee}=e,{nTriggerFormFocus:ue}=s;ee&&ae(ee,Ce),ue()}function U(Ce){var ee,ue;if(Ce.target===((ee=u.value)===null||ee===void 0?void 0:ee.wrapperElRef))return;const q=F({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(q!==!1){const we=(ue=u.value)===null||ue===void 0?void 0:ue.inputElRef;we&&(we.value=String(q||"")),g.value===q&&w()}else w();const{onBlur:Q}=e,{nTriggerFormBlur:pe}=s;Q&&ae(Q,Ce),pe(),Tt(()=>{w()})}function L(Ce){const{onClear:ee}=e;ee&&ae(ee,Ce)}function te(){const{value:Ce}=M;if(!Ce){Ie();return}const{value:ee}=g;if(ee===null)e.validator||O(ce());else{const{value:ue}=$;F({offset:ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function K(){const{value:Ce}=j;if(!Ce){se();return}const{value:ee}=g;if(ee===null)e.validator||O(ce());else{const{value:ue}=$;F({offset:-ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const le=H,be=U;function ce(){if(e.validator)return null;const{value:Ce}=R,{value:ee}=S;return Ce!==null?Math.max(0,Ce):ee!==null?Math.min(0,ee):0}function V(Ce){L(Ce),O(null)}function E(Ce){var ee,ue,q;!((ee=v.value)===null||ee===void 0)&&ee.$el.contains(Ce.target)&&Ce.preventDefault(),!((ue=f.value)===null||ue===void 0)&&ue.$el.contains(Ce.target)&&Ce.preventDefault(),(q=u.value)===null||q===void 0||q.activate()}let I=null,N=null,J=null;function se(){J&&(window.clearTimeout(J),J=null),I&&(window.clearInterval(I),I=null)}let xe=null;function Ie(){xe&&(window.clearTimeout(xe),xe=null),N&&(window.clearInterval(N),N=null)}function _(){se(),J=window.setTimeout(()=>{I=window.setInterval(()=>{K()},Vl)},jl),Lt("mouseup",document,se,{once:!0})}function Pe(){Ie(),xe=window.setTimeout(()=>{N=window.setInterval(()=>{te()},Vl)},jl),Lt("mouseup",document,Ie,{once:!0})}const He=()=>{N||te()},_e=()=>{I||K()};function Ge(Ce){var ee,ue;if(Ce.key==="Enter"){if(Ce.target===((ee=u.value)===null||ee===void 0?void 0:ee.wrapperElRef))return;F({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ue=u.value)===null||ue===void 0||ue.deactivate())}else if(Ce.key==="ArrowUp"){if(!M.value||e.keyboard.ArrowUp===!1)return;Ce.preventDefault(),F({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&te()}else if(Ce.key==="ArrowDown"){if(!j.value||e.keyboard.ArrowDown===!1)return;Ce.preventDefault(),F({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&K()}}function Xe(Ce){x.value=Ce,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&F({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}gt(g,()=>{w()});const ct={focus:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.focus()},blur:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.blur()},select:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.select()}},ot=Wt("InputNumber",r,o);return Object.assign(Object.assign({},ct),{rtlEnabled:ot,inputInstRef:u,minusButtonInstRef:f,addButtonInstRef:v,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:p,mergedValue:g,mergedPlaceholder:T,displayedValueInvalid:A,mergedSize:l,mergedDisabled:d,displayedValue:x,addable:M,minusable:j,mergedStatus:c,handleFocus:le,handleBlur:be,handleClear:V,handleMouseDown:E,handleAddClick:He,handleMinusClick:_e,handleAddMousedown:Pe,handleMinusMousedown:_,handleKeyDown:Ge,handleUpdateDisplayedValue:Xe,mergedTheme:n,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:C(()=>{const{self:{iconColorDisabled:Ce}}=n.value,[ee,ue,q,Q]=co(Ce);return{textColorTextDisabled:`rgb(${ee}, ${ue}, ${q})`,opacityDisabled:`${Q}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>a(Ho,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[a(Rt,{clsPrefix:e},{default:()=>a(Sf,null)})])}),r=()=>a(Ho,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[a(Rt,{clsPrefix:e},{default:()=>a(yi,null)})])});return a("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},a(Do,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var n;return this.showButton&&this.buttonPlacement==="both"?[o(),mt(t.prefix,i=>i?a("span",{class:`${e}-input-number-prefix`},i):null)]:(n=t.prefix)===null||n===void 0?void 0:n.call(t)},suffix:()=>{var n;return this.showButton?[mt(t.suffix,i=>i?a("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,r()]:(n=t.suffix)===null||n===void 0?void 0:n.call(t)}}))}}),Nc="n-layout-sider",Ki={type:String,default:"static"},Px=m("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[m("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),z("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),$x={embedded:Boolean,position:Ki,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},jc="n-layout";function Vc(e){return re({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Re.props),$x),setup(t){const o=B(null),r=B(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Qe(t),s=Re("Layout","-layout",Px,ji,t,n);function l(g,x){if(t.nativeScrollbar){const{value:y}=o;y&&(x===void 0?y.scrollTo(g):y.scrollTo(g,x))}else{const{value:y}=r;y&&y.scrollTo(g,x)}}Je(jc,t);let d=0,c=0;const u=g=>{var x;const y=g.target;d=y.scrollLeft,c=y.scrollTop,(x=t.onScroll)===null||x===void 0||x.call(t,g)};Ci(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=c,g.scrollLeft=d)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},v={scrollTo:l},p=C(()=>{const{common:{cubicBezierEaseInOut:g},self:x}=s.value;return{"--n-bezier":g,"--n-color":t.embedded?x.colorEmbedded:x.color,"--n-text-color":x.textColor}}),h=i?it("layout",C(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:s,handleNativeElScroll:u,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},v)},render(){var t;const{mergedClsPrefix:o,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return a("div",{class:i,style:this.cssVars},this.nativeScrollbar?a("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):a(Vt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const Ty=Vc(!1),Fy=Vc(!0),Tx=m("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[z("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),z("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),Fx={position:Ki,inverted:Boolean,bordered:{type:Boolean,default:!1}},Iy=re({name:"LayoutHeader",props:Object.assign(Object.assign({},Re.props),Fx),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Layout","-layout-header",Tx,ji,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:l}=r.value,d={"--n-bezier":s};return e.inverted?(d["--n-color"]=l.headerColorInverted,d["--n-text-color"]=l.textColorInverted,d["--n-border-color"]=l.headerBorderColorInverted):(d["--n-color"]=l.headerColor,d["--n-text-color"]=l.textColor,d["--n-border-color"]=l.headerBorderColor),d}),i=o?it("layout-header",C(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Ix=m("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[z("bordered",[P("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),P("left-placement",[z("bordered",[P("border",` - right: 0; - `)])]),z("right-placement",` - justify-content: flex-start; - `,[z("bordered",[P("border",` - left: 0; - `)]),z("collapsed",[m("layout-toggle-button",[m("base-icon",` - transform: rotate(180deg); - `)]),m("layout-toggle-bar",[k("&:hover",[P("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),m("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[m("base-icon",` - transform: rotate(0); - `)]),m("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[k("&:hover",[P("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),z("collapsed",[m("layout-toggle-bar",[k("&:hover",[P("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),m("layout-toggle-button",[m("base-icon",` - transform: rotate(0); - `)])]),m("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[m("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),m("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[P("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),P("bottom",` - position: absolute; - top: 34px; - `),k("&:hover",[P("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),P("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),k("&:hover",[P("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),P("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),m("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),z("show-content",[m("layout-sider-scroll-container",{opacity:1})]),z("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Bx=re({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return a("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},a("div",{class:`${e}-layout-toggle-bar__top`}),a("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),Ox=re({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},a(Rt,{clsPrefix:e},{default:()=>a(wi,null)}))}}),Dx={position:Ki,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},By=re({name:"LayoutSider",props:Object.assign(Object.assign({},Re.props),Dx),setup(e){const t=Ee(jc),o=B(null),r=B(null),n=B(e.defaultCollapsed),i=$t(fe(e,"collapsed"),n),s=C(()=>_t(i.value?e.collapsedWidth:e.width)),l=C(()=>e.collapseMode!=="transform"?{}:{minWidth:_t(e.width)}),d=C(()=>t?t.siderPlacement:"left");function c(R,S){if(e.nativeScrollbar){const{value:w}=o;w&&(S===void 0?w.scrollTo(R):w.scrollTo(R,S))}else{const{value:w}=r;w&&w.scrollTo(R,S)}}function u(){const{"onUpdate:collapsed":R,onUpdateCollapsed:S,onExpand:w,onCollapse:O}=e,{value:F}=i;S&&ae(S,!F),R&&ae(R,!F),n.value=!F,F?w&&ae(w):O&&ae(O)}let f=0,v=0;const p=R=>{var S;const w=R.target;f=w.scrollLeft,v=w.scrollTop,(S=e.onScroll)===null||S===void 0||S.call(e,R)};Ci(()=>{if(e.nativeScrollbar){const R=o.value;R&&(R.scrollTop=v,R.scrollLeft=f)}}),Je(Nc,{collapsedRef:i,collapseModeRef:fe(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:g}=Qe(e),x=Re("Layout","-layout-sider",Ix,ji,e,h);function y(R){var S,w;R.propertyName==="max-width"&&(i.value?(S=e.onAfterLeave)===null||S===void 0||S.call(e):(w=e.onAfterEnter)===null||w===void 0||w.call(e))}const b={scrollTo:c},T=C(()=>{const{common:{cubicBezierEaseInOut:R},self:S}=x.value,{siderToggleButtonColor:w,siderToggleButtonBorder:O,siderToggleBarColor:F,siderToggleBarColorHover:A}=S,j={"--n-bezier":R,"--n-toggle-button-color":w,"--n-toggle-button-border":O,"--n-toggle-bar-color":F,"--n-toggle-bar-color-hover":A};return e.inverted?(j["--n-color"]=S.siderColorInverted,j["--n-text-color"]=S.textColorInverted,j["--n-border-color"]=S.siderBorderColorInverted,j["--n-toggle-button-icon-color"]=S.siderToggleButtonIconColorInverted,j.__invertScrollbar=S.__invertScrollbar):(j["--n-color"]=S.siderColor,j["--n-text-color"]=S.textColor,j["--n-border-color"]=S.siderBorderColor,j["--n-toggle-button-icon-color"]=S.siderToggleButtonIconColor),j}),$=g?it("layout-sider",C(()=>e.inverted?"a":"b"),T,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:x,styleMaxWidth:s,mergedCollapsed:i,scrollContainerStyle:l,siderPlacement:d,handleNativeElScroll:p,handleTransitionend:y,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender},b)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:_t(this.width)}]},this.nativeScrollbar?a("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):a(Vt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?a(Bx,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):a(Ox,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?a("div",{class:`${t}-layout-sider__border`}):null)}}),Mx={extraFontSize:"12px",width:"440px"},Ax={name:"Transfer",common:Ae,peers:{Checkbox:Ur,Scrollbar:vo,Input:wo,Empty:Tr,Button:po},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:s,heightLarge:l,heightMedium:d,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:v,textColor1:p,textColorDisabled:h,textColor2:g,hoverColor:x}=e;return Object.assign(Object.assign({},Mx),{itemHeightSmall:c,itemHeightMedium:d,itemHeightLarge:l,fontSizeSmall:s,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:v,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:h,itemColorPending:x,titleFontWeight:r,iconColor:o,iconColorDisabled:t})}};function _x(){return{}}const Hx={name:"Marquee",common:Ae,self:_x},Pn="n-menu",qi="n-submenu",Yi="n-menu-item-group",Wl=[k("&::before","background-color: var(--n-item-color-hover);"),P("arrow",` - color: var(--n-arrow-color-hover); - `),P("icon",` - color: var(--n-item-icon-color-hover); - `),m("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[k("a",` - color: var(--n-item-text-color-hover); - `),P("extra",` - color: var(--n-item-text-color-hover); - `)])],Ul=[P("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),m("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[k("a",` - color: var(--n-item-text-color-hover-horizontal); - `),P("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],Ex=k([m("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[z("horizontal",` - max-width: 100%; - width: 100%; - display: flex; - overflow: hidden; - padding-bottom: 0; - `,[m("submenu","margin: 0;"),m("menu-item","margin: 0;"),m("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[k("&::before","display: none;"),z("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),m("menu-item-content",[z("selected",[P("icon","color: var(--n-item-icon-color-active-horizontal);"),m("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[k("a","color: var(--n-item-text-color-active-horizontal);"),P("extra","color: var(--n-item-text-color-active-horizontal);")])]),z("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[m("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[k("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),P("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),P("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),at("disabled",[at("selected, child-active",[k("&:focus-within",Ul)]),z("selected",[Cr(null,[P("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),m("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[k("a","color: var(--n-item-text-color-active-hover-horizontal);"),P("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),z("child-active",[Cr(null,[P("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),m("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[k("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),P("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Cr("border-bottom: 2px solid var(--n-border-color-horizontal);",Ul)]),m("menu-item-content-header",[k("a","color: var(--n-item-text-color-horizontal);")])])]),at("responsive",[m("menu-item-content-header",` - overflow: hidden; - text-overflow: ellipsis; - `)]),z("collapsed",[m("menu-item-content",[z("selected",[k("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),m("menu-item-content-header","opacity: 0;"),P("arrow","opacity: 0;"),P("icon","color: var(--n-item-icon-color-collapsed);")])]),m("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),m("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[k("> *","z-index: 1;"),k("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),z("disabled",` - opacity: .45; - cursor: not-allowed; - `),z("collapsed",[P("arrow","transform: rotate(0);")]),z("selected",[k("&::before","background-color: var(--n-item-color-active);"),P("arrow","color: var(--n-arrow-color-active);"),P("icon","color: var(--n-item-icon-color-active);"),m("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[k("a","color: var(--n-item-text-color-active);"),P("extra","color: var(--n-item-text-color-active);")])]),z("child-active",[m("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[k("a",` - color: var(--n-item-text-color-child-active); - `),P("extra",` - color: var(--n-item-text-color-child-active); - `)]),P("arrow",` - color: var(--n-arrow-color-child-active); - `),P("icon",` - color: var(--n-item-icon-color-child-active); - `)]),at("disabled",[at("selected, child-active",[k("&:focus-within",Wl)]),z("selected",[Cr(null,[P("arrow","color: var(--n-arrow-color-active-hover);"),P("icon","color: var(--n-item-icon-color-active-hover);"),m("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[k("a","color: var(--n-item-text-color-active-hover);"),P("extra","color: var(--n-item-text-color-active-hover);")])])]),z("child-active",[Cr(null,[P("arrow","color: var(--n-arrow-color-child-active-hover);"),P("icon","color: var(--n-item-icon-color-child-active-hover);"),m("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[k("a","color: var(--n-item-text-color-child-active-hover);"),P("extra","color: var(--n-item-text-color-child-active-hover);")])])]),z("selected",[Cr(null,[k("&::before","background-color: var(--n-item-color-active-hover);")])]),Cr(null,Wl)]),P("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),P("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),m("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - color: var(--n-item-text-color); - `,[k("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[k("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),P("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),m("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[m("menu-item-content",` - height: var(--n-item-height); - `),m("submenu-children",` - overflow: hidden; - padding: 0; - `,[cn({duration:".2s"})])]),m("menu-item-group",[m("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),m("menu-tooltip",[k("a",` - color: inherit; - text-decoration: none; - `)]),m("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Cr(e,t){return[z("hover",e,t),k("&:hover",e,t)]}const Wc=re({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ee(Pn);return{menuProps:t,style:C(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:C(()=>{const{maxIconSize:o,activeIconSize:r,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${r}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:r,renderExtra:n,expandIcon:i}}=this,s=o?o(t.rawNode):kt(this.icon);return a("div",{onClick:l=>{var d;(d=this.onClick)===null||d===void 0||d.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},s&&a("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),a("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):kt(this.title),this.extra||n?a("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):kt(this.extra)):null),this.showArrow?a(Rt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):a(gf,null)}):null)}}),Ln=8;function Gi(e){const t=Ee(Pn),{props:o,mergedCollapsedRef:r}=t,n=Ee(qi,null),i=Ee(Yi,null),s=C(()=>o.mode==="horizontal"),l=C(()=>s.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),d=C(()=>{var v;return Math.max((v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize,o.iconSize)}),c=C(()=>{var v;return!s.value&&e.root&&r.value&&(v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize}),u=C(()=>{if(s.value)return;const{collapsedWidth:v,indent:p,rootIndent:h}=o,{root:g,isGroup:x}=e,y=h===void 0?p:h;return g?r.value?v/2-d.value/2:y:i&&typeof i.paddingLeftRef.value=="number"?p/2+i.paddingLeftRef.value:n&&typeof n.paddingLeftRef.value=="number"?(x?p/2:p)+n.paddingLeftRef.value:0}),f=C(()=>{const{collapsedWidth:v,indent:p,rootIndent:h}=o,{value:g}=d,{root:x}=e;return s.value||!x||!r.value?Ln:(h===void 0?p:h)+g+Ln-(v+g)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:d,paddingLeft:u,iconMarginRight:f,NMenu:t,NSubmenu:n}}const Xi={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Lx=re({name:"MenuDivider",setup(){const e=Ee(Pn),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:a("div",{class:`${t.value}-menu-divider`})}}),Uc=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Nx=Po(Uc),jx=re({name:"MenuOption",props:Uc,setup(e){const t=Gi(e),{NSubmenu:o,NMenu:r}=t,{props:n,mergedClsPrefixRef:i,mergedCollapsedRef:s}=r,l=o?o.mergedDisabledRef:{value:!1},d=C(()=>l.value||e.disabled);function c(f){const{onClick:v}=e;v&&v(f)}function u(f){d.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:n,dropdownEnabled:tt(()=>e.root&&s.value&&n.mode!=="horizontal"&&!d.value),selected:tt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:d,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:r,nodeProps:n}}=this,i=n==null?void 0:n(o.rawNode);return a("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),a(Od,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(o.rawNode):kt(this.title),trigger:()=>a(Wc,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Kc=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Vx=Po(Kc),Wx=re({name:"MenuOptionGroup",props:Kc,setup(e){Je(qi,null);const t=Gi(e);Je(Yi,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:r}=Ee(Pn);return function(){const{value:n}=o,i=t.paddingLeft.value,{nodeProps:s}=r,l=s==null?void 0:s(e.tmNode.rawNode);return a("div",{class:`${n}-menu-item-group`,role:"group"},a("div",Object.assign({},l,{class:[`${n}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),kt(e.title),e.extra?a(Gt,null," ",kt(e.extra)):null),a("div",null,e.tmNodes.map(d=>Zi(d,r))))}}});function ni(e){return e.type==="divider"||e.type==="render"}function Ux(e){return e.type==="divider"}function Zi(e,t){const{rawNode:o}=e,{show:r}=o;if(r===!1)return null;if(ni(o))return Ux(o)?a(Lx,Object.assign({key:e.key},o.props)):null;const{labelField:n}=t,{key:i,level:s,isGroup:l}=e,d=Object.assign(Object.assign({},o),{title:o.title||o[n],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:s,root:s===0,isGroup:l});return e.children?e.isGroup?a(Wx,mo(d,Vx,{tmNode:e,tmNodes:e.children,key:i})):a(ai,mo(d,Kx,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):a(jx,mo(d,Nx,{key:i,tmNode:e}))}const qc=Object.assign(Object.assign({},Xi),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Kx=Po(qc),ai=re({name:"Submenu",props:qc,setup(e){const t=Gi(e),{NMenu:o,NSubmenu:r}=t,{props:n,mergedCollapsedRef:i,mergedThemeRef:s}=o,l=C(()=>{const{disabled:v}=e;return r!=null&&r.mergedDisabledRef.value||n.disabled?!0:v}),d=B(!1);Je(qi,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),Je(Yi,null);function c(){const{onClick:v}=e;v&&v()}function u(){l.value||(i.value||o.toggleExpand(e.internalKey),c())}function f(v){d.value=v}return{menuProps:n,mergedTheme:s,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:d,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:o.mergedValueRef,childActive:tt(()=>{var v;return(v=e.virtualChildActive)!==null&&v!==void 0?v:o.activePathRef.value.includes(e.internalKey)}),collapsed:C(()=>n.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:C(()=>!l.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:r}}=this,n=()=>{const{isHorizontal:s,paddingLeft:l,collapsed:d,mergedDisabled:c,maxIconSize:u,activeIconSize:f,title:v,childActive:p,icon:h,handleClick:g,menuProps:{nodeProps:x},dropdownShow:y,iconMarginRight:b,tmNode:T,mergedClsPrefix:$,isEllipsisPlaceholder:R,extra:S}=this,w=x==null?void 0:x(T.rawNode);return a("div",Object.assign({},w,{class:[`${$}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),a(Wc,{tmNode:T,paddingLeft:l,collapsed:d,disabled:c,iconMarginRight:b,maxIconSize:u,activeIconSize:f,title:v,extra:S,showArrow:!s,childActive:p,clsPrefix:$,icon:h,hover:y,onClick:g,isEllipsisPlaceholder:R}))},i=()=>a(yn,null,{default:()=>{const{tmNodes:s,collapsed:l}=this;return l?null:a("div",{class:`${t}-submenu-children`,role:"menu"},s.map(d=>Zi(d,this.menuProps)))}});return this.root?a(Nd,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:r}),{default:()=>a("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),this.isHorizontal?null:i())}):a("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),i())}}),qx=Object.assign(Object.assign({},Re.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),Oy=re({name:"Menu",inheritAttrs:!1,props:qx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Menu","-menu",Ex,u0,e,t),n=Ee(Nc,null),i=C(()=>{var V;const{collapsed:E}=e;if(E!==void 0)return E;if(n){const{collapseModeRef:I,collapsedRef:N}=n;if(I.value==="width")return(V=N.value)!==null&&V!==void 0?V:!1}return!1}),s=C(()=>{const{keyField:V,childrenField:E,disabledField:I}=e;return Uo(e.items||e.options,{getIgnored(N){return ni(N)},getChildren(N){return N[E]},getDisabled(N){return N[I]},getKey(N){var J;return(J=N[V])!==null&&J!==void 0?J:N.name}})}),l=C(()=>new Set(s.value.treeNodes.map(V=>V.key))),{watchProps:d}=e,c=B(null);d!=null&&d.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=fe(e,"value"),f=$t(u,c),v=B([]),p=()=>{v.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(f.value,{includeSelf:!1}).keyPath};d!=null&&d.includes("defaultExpandedKeys")?Ft(p):p();const h=nr(e,["expandedNames","expandedKeys"]),g=$t(h,v),x=C(()=>s.value.treeNodes),y=C(()=>s.value.getPath(f.value).keyPath);Je(Pn,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:g,activePathRef:y,mergedClsPrefixRef:t,isHorizontalRef:C(()=>e.mode==="horizontal"),invertedRef:fe(e,"inverted"),doSelect:b,toggleExpand:$});function b(V,E){const{"onUpdate:value":I,onUpdateValue:N,onSelect:J}=e;N&&ae(N,V,E),I&&ae(I,V,E),J&&ae(J,V,E),c.value=V}function T(V){const{"onUpdate:expandedKeys":E,onUpdateExpandedKeys:I,onExpandedNamesChange:N,onOpenNamesChange:J}=e;E&&ae(E,V),I&&ae(I,V),N&&ae(N,V),J&&ae(J,V),v.value=V}function $(V){const E=Array.from(g.value),I=E.findIndex(N=>N===V);if(~I)E.splice(I,1);else{if(e.accordion&&l.value.has(V)){const N=E.findIndex(J=>l.value.has(J));N>-1&&E.splice(N,1)}E.push(V)}T(E)}const R=V=>{const E=s.value.getPath(V??f.value,{includeSelf:!1}).keyPath;if(!E.length)return;const I=Array.from(g.value),N=new Set([...I,...E]);e.accordion&&l.value.forEach(J=>{N.has(J)&&!E.includes(J)&&N.delete(J)}),T(Array.from(N))},S=C(()=>{const{inverted:V}=e,{common:{cubicBezierEaseInOut:E},self:I}=r.value,{borderRadius:N,borderColorHorizontal:J,fontSize:se,itemHeight:xe,dividerColor:Ie}=I,_={"--n-divider-color":Ie,"--n-bezier":E,"--n-font-size":se,"--n-border-color-horizontal":J,"--n-border-radius":N,"--n-item-height":xe};return V?(_["--n-group-text-color"]=I.groupTextColorInverted,_["--n-color"]=I.colorInverted,_["--n-item-text-color"]=I.itemTextColorInverted,_["--n-item-text-color-hover"]=I.itemTextColorHoverInverted,_["--n-item-text-color-active"]=I.itemTextColorActiveInverted,_["--n-item-text-color-child-active"]=I.itemTextColorChildActiveInverted,_["--n-item-text-color-child-active-hover"]=I.itemTextColorChildActiveInverted,_["--n-item-text-color-active-hover"]=I.itemTextColorActiveHoverInverted,_["--n-item-icon-color"]=I.itemIconColorInverted,_["--n-item-icon-color-hover"]=I.itemIconColorHoverInverted,_["--n-item-icon-color-active"]=I.itemIconColorActiveInverted,_["--n-item-icon-color-active-hover"]=I.itemIconColorActiveHoverInverted,_["--n-item-icon-color-child-active"]=I.itemIconColorChildActiveInverted,_["--n-item-icon-color-child-active-hover"]=I.itemIconColorChildActiveHoverInverted,_["--n-item-icon-color-collapsed"]=I.itemIconColorCollapsedInverted,_["--n-item-text-color-horizontal"]=I.itemTextColorHorizontalInverted,_["--n-item-text-color-hover-horizontal"]=I.itemTextColorHoverHorizontalInverted,_["--n-item-text-color-active-horizontal"]=I.itemTextColorActiveHorizontalInverted,_["--n-item-text-color-child-active-horizontal"]=I.itemTextColorChildActiveHorizontalInverted,_["--n-item-text-color-child-active-hover-horizontal"]=I.itemTextColorChildActiveHoverHorizontalInverted,_["--n-item-text-color-active-hover-horizontal"]=I.itemTextColorActiveHoverHorizontalInverted,_["--n-item-icon-color-horizontal"]=I.itemIconColorHorizontalInverted,_["--n-item-icon-color-hover-horizontal"]=I.itemIconColorHoverHorizontalInverted,_["--n-item-icon-color-active-horizontal"]=I.itemIconColorActiveHorizontalInverted,_["--n-item-icon-color-active-hover-horizontal"]=I.itemIconColorActiveHoverHorizontalInverted,_["--n-item-icon-color-child-active-horizontal"]=I.itemIconColorChildActiveHorizontalInverted,_["--n-item-icon-color-child-active-hover-horizontal"]=I.itemIconColorChildActiveHoverHorizontalInverted,_["--n-arrow-color"]=I.arrowColorInverted,_["--n-arrow-color-hover"]=I.arrowColorHoverInverted,_["--n-arrow-color-active"]=I.arrowColorActiveInverted,_["--n-arrow-color-active-hover"]=I.arrowColorActiveHoverInverted,_["--n-arrow-color-child-active"]=I.arrowColorChildActiveInverted,_["--n-arrow-color-child-active-hover"]=I.arrowColorChildActiveHoverInverted,_["--n-item-color-hover"]=I.itemColorHoverInverted,_["--n-item-color-active"]=I.itemColorActiveInverted,_["--n-item-color-active-hover"]=I.itemColorActiveHoverInverted,_["--n-item-color-active-collapsed"]=I.itemColorActiveCollapsedInverted):(_["--n-group-text-color"]=I.groupTextColor,_["--n-color"]=I.color,_["--n-item-text-color"]=I.itemTextColor,_["--n-item-text-color-hover"]=I.itemTextColorHover,_["--n-item-text-color-active"]=I.itemTextColorActive,_["--n-item-text-color-child-active"]=I.itemTextColorChildActive,_["--n-item-text-color-child-active-hover"]=I.itemTextColorChildActiveHover,_["--n-item-text-color-active-hover"]=I.itemTextColorActiveHover,_["--n-item-icon-color"]=I.itemIconColor,_["--n-item-icon-color-hover"]=I.itemIconColorHover,_["--n-item-icon-color-active"]=I.itemIconColorActive,_["--n-item-icon-color-active-hover"]=I.itemIconColorActiveHover,_["--n-item-icon-color-child-active"]=I.itemIconColorChildActive,_["--n-item-icon-color-child-active-hover"]=I.itemIconColorChildActiveHover,_["--n-item-icon-color-collapsed"]=I.itemIconColorCollapsed,_["--n-item-text-color-horizontal"]=I.itemTextColorHorizontal,_["--n-item-text-color-hover-horizontal"]=I.itemTextColorHoverHorizontal,_["--n-item-text-color-active-horizontal"]=I.itemTextColorActiveHorizontal,_["--n-item-text-color-child-active-horizontal"]=I.itemTextColorChildActiveHorizontal,_["--n-item-text-color-child-active-hover-horizontal"]=I.itemTextColorChildActiveHoverHorizontal,_["--n-item-text-color-active-hover-horizontal"]=I.itemTextColorActiveHoverHorizontal,_["--n-item-icon-color-horizontal"]=I.itemIconColorHorizontal,_["--n-item-icon-color-hover-horizontal"]=I.itemIconColorHoverHorizontal,_["--n-item-icon-color-active-horizontal"]=I.itemIconColorActiveHorizontal,_["--n-item-icon-color-active-hover-horizontal"]=I.itemIconColorActiveHoverHorizontal,_["--n-item-icon-color-child-active-horizontal"]=I.itemIconColorChildActiveHorizontal,_["--n-item-icon-color-child-active-hover-horizontal"]=I.itemIconColorChildActiveHoverHorizontal,_["--n-arrow-color"]=I.arrowColor,_["--n-arrow-color-hover"]=I.arrowColorHover,_["--n-arrow-color-active"]=I.arrowColorActive,_["--n-arrow-color-active-hover"]=I.arrowColorActiveHover,_["--n-arrow-color-child-active"]=I.arrowColorChildActive,_["--n-arrow-color-child-active-hover"]=I.arrowColorChildActiveHover,_["--n-item-color-hover"]=I.itemColorHover,_["--n-item-color-active"]=I.itemColorActive,_["--n-item-color-active-hover"]=I.itemColorActiveHover,_["--n-item-color-active-collapsed"]=I.itemColorActiveCollapsed),_}),w=o?it("menu",C(()=>e.inverted?"a":"b"),S,e):void 0,O=qo(),F=B(null),A=B(null);let j=!0;const M=()=>{var V;j?j=!1:(V=F.value)===null||V===void 0||V.sync({showAllItemsBeforeCalculate:!0})};function H(){return document.getElementById(O)}const U=B(-1);function L(V){U.value=e.options.length-V}function te(V){V||(U.value=-1)}const K=C(()=>{const V=U.value;return{children:V===-1?[]:e.options.slice(V)}}),le=C(()=>{const{childrenField:V,disabledField:E,keyField:I}=e;return Uo([K.value],{getIgnored(N){return ni(N)},getChildren(N){return N[V]},getDisabled(N){return N[E]},getKey(N){var J;return(J=N[I])!==null&&J!==void 0?J:N.name}})}),be=C(()=>Uo([{}]).treeNodes[0]);function ce(){var V;if(U.value===-1)return a(ai,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:be.value,domId:O,isEllipsisPlaceholder:!0});const E=le.value.treeNodes[0],I=y.value,N=!!(!((V=E.children)===null||V===void 0)&&V.some(J=>I.includes(J.key)));return a(ai,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:N,tmNode:E,domId:O,rawNodes:E.rawNode.children||[],tmNodes:E.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:v,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:f,activePath:y,tmNodes:x,mergedTheme:r,mergedCollapsed:i,cssVars:o?void 0:S,themeClass:w==null?void 0:w.themeClass,overflowRef:F,counterRef:A,updateCounter:()=>{},onResize:M,onUpdateOverflow:te,onUpdateCount:L,renderCounter:ce,getCounter:H,onRender:w==null?void 0:w.onRender,showOption:R,deriveResponsiveState:M}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:r}=this;r==null||r();const n=()=>this.tmNodes.map(d=>Zi(d,this.$props)),s=t==="horizontal"&&this.responsive,l=()=>a("div",lo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,s&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),s?a(Va,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:n,counter:this.renderCounter}):n());return s?a(_o,{onResize:this.onResize},{default:l}):l()}}),Yx={name:"QrCode",common:Ae,self:e=>({borderRadius:e.borderRadius})};function Gx(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),a("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function Xx(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),a("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),a("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),a("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),a("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),a("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function Zx(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),a("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),a("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),a("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),a("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),a("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function Qx(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),a("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),a("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const Jx=m("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[m("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[P("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),m("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),m("result-content",{marginTop:"24px"}),m("result-footer",` - margin-top: 24px; - text-align: center; - `),m("result-header",[P("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),P("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),eC={403:Gx,404:Xx,418:Zx,500:Qx,info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null)},tC=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Dy=re({name:"Result",props:tC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Result","-result",Jx,w0,e,t),n=C(()=>{const{size:s,status:l}=e,{common:{cubicBezierEaseInOut:d},self:{textColor:c,lineHeight:u,titleTextColor:f,titleFontWeight:v,[ie("iconColor",l)]:p,[ie("fontSize",s)]:h,[ie("titleFontSize",s)]:g,[ie("iconSize",s)]:x}}=r.value;return{"--n-bezier":d,"--n-font-size":h,"--n-icon-size":x,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-text-color":f,"--n-icon-color":p||""}}),i=o?it("result",C(()=>{const{size:s,status:l}=e;let d="";return s&&(d+=s[0]),l&&(d+=l[0]),d}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:o,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),a("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},a("div",{class:`${r}-result-icon`},((e=o.icon)===null||e===void 0?void 0:e.call(o))||a(Rt,{clsPrefix:r},{default:()=>eC[t]()})),a("div",{class:`${r}-result-header`},this.title?a("div",{class:`${r}-result-header__title`},this.title):null,this.description?a("div",{class:`${r}-result-header__description`},this.description):null),o.default&&a("div",{class:`${r}-result-content`},o),o.footer&&a("div",{class:`${r}-result-footer`},o.footer()))}}),oC=Object.assign(Object.assign({},Re.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),My=re({name:"Scrollbar",props:oC,setup(){const e=B(null);return Object.assign(Object.assign({},{scrollTo:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(o[0],o[1])}}),{scrollbarInstRef:e})},render(){return a(Vt,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),rC={name:"Skeleton",common:Ae,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},nC=k([k("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),m("spin-container",` - position: relative; - `,[m("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[wn()])]),m("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),m("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[z("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),m("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),m("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[z("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),aC={small:20,medium:18,large:16},iC=Object.assign(Object.assign({},Re.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),Ay=re({name:"Spin",props:iC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Spin","-spin",nC,z0,e,t),n=C(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:u}=r.value,{opacitySpinning:f,color:v,textColor:p}=u,h=typeof d=="number"?Et(d):u[ie("size",d)];return{"--n-bezier":c,"--n-opacity-spinning":f,"--n-size":h,"--n-color":v,"--n-text-color":p}}),i=o?it("spin",C(()=>{const{size:d}=e;return typeof d=="number"?String(d):d[0]}),n,e):void 0,s=nr(e,["spinning","show"]),l=B(!1);return Ft(d=>{let c;if(s.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{l.value=!0},u),d(()=>{clearTimeout(c)});return}}l.value=s.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:C(()=>{const{strokeWidth:d}=e;if(d!==void 0)return d;const{size:c}=e;return aC[typeof c=="number"?"medium":c]}),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:r,description:n}=this,i=o.icon&&this.rotate,s=(n||o.description)&&a("div",{class:`${r}-spin-description`},n||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?a("div",{class:[`${r}-spin-body`,this.themeClass]},a("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),s):a("div",{class:[`${r}-spin-body`,this.themeClass]},a(Zo,{clsPrefix:r,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),s);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?a("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},a("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),a(qt,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),lC={name:"Split",common:Ae},sC=m("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[P("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),P("rail-placeholder",` - display: flex; - flex-wrap: none; - `),P("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),m("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[fo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),P("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),P("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),P("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),k("&:focus",[P("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),z("round",[P("rail","border-radius: calc(var(--n-rail-height) / 2);",[P("button","border-radius: calc(var(--n-button-height) / 2);")])]),at("disabled",[at("icon",[z("rubber-band",[z("pressed",[P("rail",[P("button","max-width: var(--n-button-width-pressed);")])]),P("rail",[k("&:active",[P("button","max-width: var(--n-button-width-pressed);")])]),z("active",[z("pressed",[P("rail",[P("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),P("rail",[k("&:active",[P("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),z("active",[P("rail",[P("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),P("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[P("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[fo()]),P("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),z("active",[P("rail","background-color: var(--n-rail-color-active);")]),z("loading",[P("rail",` - cursor: wait; - `)]),z("disabled",[P("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),dC=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let en;const _y=re({name:"Switch",props:dC,slots:Object,setup(e){en===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?en=CSS.supports("width","max(1px)"):en=!1:en=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Switch","-switch",sC,M0,e,t),n=Co(e),{mergedSizeRef:i,mergedDisabledRef:s}=n,l=B(e.defaultValue),d=fe(e,"value"),c=$t(d,l),u=C(()=>c.value===e.checkedValue),f=B(!1),v=B(!1),p=C(()=>{const{railStyle:O}=e;if(O)return O({focused:v.value,checked:u.value})});function h(O){const{"onUpdate:value":F,onChange:A,onUpdateValue:j}=e,{nTriggerFormInput:M,nTriggerFormChange:H}=n;F&&ae(F,O),j&&ae(j,O),A&&ae(A,O),l.value=O,M(),H()}function g(){const{nTriggerFormFocus:O}=n;O()}function x(){const{nTriggerFormBlur:O}=n;O()}function y(){e.loading||s.value||(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function b(){v.value=!0,g()}function T(){v.value=!1,x(),f.value=!1}function $(O){e.loading||s.value||O.key===" "&&(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),f.value=!1)}function R(O){e.loading||s.value||O.key===" "&&(O.preventDefault(),f.value=!0)}const S=C(()=>{const{value:O}=i,{self:{opacityDisabled:F,railColor:A,railColorActive:j,buttonBoxShadow:M,buttonColor:H,boxShadowFocus:U,loadingColor:L,textColor:te,iconColor:K,[ie("buttonHeight",O)]:le,[ie("buttonWidth",O)]:be,[ie("buttonWidthPressed",O)]:ce,[ie("railHeight",O)]:V,[ie("railWidth",O)]:E,[ie("railBorderRadius",O)]:I,[ie("buttonBorderRadius",O)]:N},common:{cubicBezierEaseInOut:J}}=r.value;let se,xe,Ie;return en?(se=`calc((${V} - ${le}) / 2)`,xe=`max(${V}, ${le})`,Ie=`max(${E}, calc(${E} + ${le} - ${V}))`):(se=Et((Mt(V)-Mt(le))/2),xe=Et(Math.max(Mt(V),Mt(le))),Ie=Mt(V)>Mt(le)?E:Et(Mt(E)+Mt(le)-Mt(V))),{"--n-bezier":J,"--n-button-border-radius":N,"--n-button-box-shadow":M,"--n-button-color":H,"--n-button-width":be,"--n-button-width-pressed":ce,"--n-button-height":le,"--n-height":xe,"--n-offset":se,"--n-opacity-disabled":F,"--n-rail-border-radius":I,"--n-rail-color":A,"--n-rail-color-active":j,"--n-rail-height":V,"--n-rail-width":E,"--n-width":Ie,"--n-box-shadow-focus":U,"--n-loading-color":L,"--n-text-color":te,"--n-icon-color":K}}),w=o?it("switch",C(()=>i.value[0]),S,e):void 0;return{handleClick:y,handleBlur:T,handleFocus:b,handleKeyup:$,handleKeydown:R,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:s,cssVars:o?void 0:S,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:r,onRender:n,$slots:i}=this;n==null||n();const{checked:s,unchecked:l,icon:d,"checked-icon":c,"unchecked-icon":u}=i,f=!(_r(d)&&_r(c)&&_r(u));return a("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},a("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},mt(s,v=>mt(l,p=>v||p?a("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),v),a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),p)):null)),a("div",{class:`${e}-switch__button`},mt(d,v=>mt(c,p=>mt(u,h=>a(cr,null,{default:()=>this.loading?a(Zo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||v)?a("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||v):!this.checked&&(h||v)?a("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||v):null})))),mt(s,v=>v&&a("div",{key:"checked",class:`${e}-switch__checked`},v)),mt(l,v=>v&&a("div",{key:"unchecked",class:`${e}-switch__unchecked`},v)))))}}),Qi="n-tabs",Yc={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Hy=re({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Yc,slots:Object,setup(e){const t=Ee(Qi,null);return t||Go("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return a("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),cC=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},$r(Yc,["displayDirective"])),ii=re({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:cC,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:r,closableRef:n,tabStyleRef:i,addTabStyleRef:s,tabClassRef:l,addTabClassRef:d,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:f,handleAdd:v,activateTab:p,handleClose:h}=Ee(Qi);return{trigger:f,mergedClosable:C(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?n.value:g}),style:i,addStyle:s,tabClass:l,addTabClass:d,clsPrefix:t,value:o,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){v();return}const{name:g}=e,x=++c.id;if(g!==o.value){const{value:y}=u;y?Promise.resolve(y(e.name,o.value)).then(b=>{b&&c.id===x&&p(g)}):p(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:r,label:n,tab:i,value:s,mergedClosable:l,trigger:d,$slots:{default:c}}=this,u=n??i;return a("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?a("div",{class:`${t}-tabs-tab-pad`}):null,a("div",Object.assign({key:o,"data-name":o,"data-disabled":r?!0:void 0},lo({class:[`${t}-tabs-tab`,s===o&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:d==="click"?this.activateTab:void 0,onMouseenter:d==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),a("span",{class:`${t}-tabs-tab__label`},e?a(Gt,null,a("div",{class:`${t}-tabs-tab__height-placeholder`}," "),a(Rt,{clsPrefix:t},{default:()=>a(yi,null)})):c?c():typeof u=="object"?u:kt(u??o)),l&&this.type==="card"?a(ur,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),uC=m("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[z("segment-type",[m("tabs-rail",[k("&.transition-disabled",[m("tabs-capsule",` - transition: none; - `)])])]),z("top",[m("tab-pane",` - padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); - `)]),z("left",[m("tab-pane",` - padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); - `)]),z("left, right",` - flex-direction: row; - `,[m("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),m("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),z("right",` - flex-direction: row-reverse; - `,[m("tab-pane",` - padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); - `),m("tabs-bar",` - left: 0; - `)]),z("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[m("tab-pane",` - padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); - `),m("tabs-bar",` - top: 0; - `)]),m("tabs-rail",` - position: relative; - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[m("tabs-capsule",` - border-radius: var(--n-tab-border-radius); - position: absolute; - pointer-events: none; - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - transition: transform 0.3s var(--n-bezier); - `),m("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[m("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[z("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - `),k("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),z("flex",[m("tabs-nav",` - width: 100%; - position: relative; - `,[m("tabs-wrapper",` - width: 100%; - `,[m("tabs-tab",` - margin-right: 0; - `)])])]),m("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[P("prefix, suffix",` - display: flex; - align-items: center; - `),P("prefix","padding-right: 16px;"),P("suffix","padding-left: 16px;")]),z("top, bottom",[m("tabs-nav-scroll-wrapper",[k("&::before",` - top: 0; - bottom: 0; - left: 0; - width: 20px; - `),k("&::after",` - top: 0; - bottom: 0; - right: 0; - width: 20px; - `),z("shadow-start",[k("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),z("shadow-end",[k("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)])])]),z("left, right",[m("tabs-nav-scroll-content",` - flex-direction: column; - `),m("tabs-nav-scroll-wrapper",[k("&::before",` - top: 0; - left: 0; - right: 0; - height: 20px; - `),k("&::after",` - bottom: 0; - left: 0; - right: 0; - height: 20px; - `),z("shadow-start",[k("&::before",` - box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); - `)]),z("shadow-end",[k("&::after",` - box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); - `)])])]),m("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[m("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `)]),k("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - z-index: 1; - `)]),m("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - min-height: 100%; - width: fit-content; - box-sizing: border-box; - `),m("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),m("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),m("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[z("disabled",{cursor:"not-allowed"}),P("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),P("label",` - display: flex; - align-items: center; - z-index: 1; - `)]),m("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[k("&.transition-disabled",` - transition: none; - `),z("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),m("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),m("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[k("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),k("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),k("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),k("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),k("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),m("tabs-tab-pad",` - box-sizing: border-box; - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),z("line-type, bar-type",[m("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[k("&:hover",{color:"var(--n-tab-text-color-hover)"}),z("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),z("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),m("tabs-nav",[z("line-type",[z("top",[P("prefix, suffix",` - border-bottom: 1px solid var(--n-tab-border-color); - `),m("tabs-nav-scroll-content",` - border-bottom: 1px solid var(--n-tab-border-color); - `),m("tabs-bar",` - bottom: -1px; - `)]),z("left",[P("prefix, suffix",` - border-right: 1px solid var(--n-tab-border-color); - `),m("tabs-nav-scroll-content",` - border-right: 1px solid var(--n-tab-border-color); - `),m("tabs-bar",` - right: -1px; - `)]),z("right",[P("prefix, suffix",` - border-left: 1px solid var(--n-tab-border-color); - `),m("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `),m("tabs-bar",` - left: -1px; - `)]),z("bottom",[P("prefix, suffix",` - border-top: 1px solid var(--n-tab-border-color); - `),m("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - `),m("tabs-bar",` - top: -1px; - `)]),P("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - `),m("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - `),m("tabs-bar",` - border-radius: 0; - `)]),z("card-type",[P("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - `),m("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - `),m("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - `),m("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[z("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - justify-content: center; - `,[P("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),at("disabled",[k("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),z("closable","padding-right: 8px;"),z("active",` - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),z("disabled","color: var(--n-tab-text-color-disabled);")])]),z("left, right",` - flex-direction: column; - `,[P("prefix, suffix",` - padding: var(--n-tab-padding-vertical); - `),m("tabs-wrapper",` - flex-direction: column; - `),m("tabs-tab-wrapper",` - flex-direction: column; - `,[m("tabs-tab-pad",` - height: var(--n-tab-gap-vertical); - width: 100%; - `)])]),z("top",[z("card-type",[m("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` - border-bottom: 1px solid var(--n-tab-border-color); - `),m("tabs-tab",` - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - `,[z("active",` - border-bottom: 1px solid #0000; - `)]),m("tabs-tab-pad",` - border-bottom: 1px solid var(--n-tab-border-color); - `),m("tabs-pad",` - border-bottom: 1px solid var(--n-tab-border-color); - `)])]),z("left",[z("card-type",[m("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` - border-right: 1px solid var(--n-tab-border-color); - `),m("tabs-tab",` - border-top-left-radius: var(--n-tab-border-radius); - border-bottom-left-radius: var(--n-tab-border-radius); - `,[z("active",` - border-right: 1px solid #0000; - `)]),m("tabs-tab-pad",` - border-right: 1px solid var(--n-tab-border-color); - `),m("tabs-pad",` - border-right: 1px solid var(--n-tab-border-color); - `)])]),z("right",[z("card-type",[m("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` - border-left: 1px solid var(--n-tab-border-color); - `),m("tabs-tab",` - border-top-right-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[z("active",` - border-left: 1px solid #0000; - `)]),m("tabs-tab-pad",` - border-left: 1px solid var(--n-tab-border-color); - `),m("tabs-pad",` - border-left: 1px solid var(--n-tab-border-color); - `)])]),z("bottom",[z("card-type",[m("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` - border-top: 1px solid var(--n-tab-border-color); - `),m("tabs-tab",` - border-bottom-left-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[z("active",` - border-top: 1px solid #0000; - `)]),m("tabs-tab-pad",` - border-top: 1px solid var(--n-tab-border-color); - `),m("tabs-pad",` - border-top: 1px solid var(--n-tab-border-color); - `)])])])]),fC=Object.assign(Object.assign({},Re.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Ey=re({name:"Tabs",props:fC,slots:Object,setup(e,{slots:t}){var o,r,n,i;const{mergedClsPrefixRef:s,inlineThemeDisabled:l}=Qe(e),d=Re("Tabs","-tabs",uC,L0,e,s),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(null),g=B(!0),x=B(!0),y=nr(e,["labelSize","size"]),b=nr(e,["activeName","value"]),T=B((r=(o=b.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(n=zo(t.default())[0])===null||n===void 0?void 0:n.props)===null||i===void 0?void 0:i.name:null),$=$t(b,T),R={id:0},S=C(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});gt($,()=>{R.id=0,j(),M()});function w(){var q;const{value:Q}=$;return Q===null?null:(q=c.value)===null||q===void 0?void 0:q.querySelector(`[data-name="${Q}"]`)}function O(q){if(e.type==="card")return;const{value:Q}=u;if(!Q)return;const pe=Q.style.opacity==="0";if(q){const we=`${s.value}-tabs-bar--disabled`,{barWidth:de,placement:me}=e;if(q.dataset.disabled==="true"?Q.classList.add(we):Q.classList.remove(we),["top","bottom"].includes(me)){if(A(["top","maxHeight","height"]),typeof de=="number"&&q.offsetWidth>=de){const je=Math.floor((q.offsetWidth-de)/2)+q.offsetLeft;Q.style.left=`${je}px`,Q.style.maxWidth=`${de}px`}else Q.style.left=`${q.offsetLeft}px`,Q.style.maxWidth=`${q.offsetWidth}px`;Q.style.width="8192px",pe&&(Q.style.transition="none"),Q.offsetWidth,pe&&(Q.style.transition="",Q.style.opacity="1")}else{if(A(["left","maxWidth","width"]),typeof de=="number"&&q.offsetHeight>=de){const je=Math.floor((q.offsetHeight-de)/2)+q.offsetTop;Q.style.top=`${je}px`,Q.style.maxHeight=`${de}px`}else Q.style.top=`${q.offsetTop}px`,Q.style.maxHeight=`${q.offsetHeight}px`;Q.style.height="8192px",pe&&(Q.style.transition="none"),Q.offsetHeight,pe&&(Q.style.transition="",Q.style.opacity="1")}}}function F(){if(e.type==="card")return;const{value:q}=u;q&&(q.style.opacity="0")}function A(q){const{value:Q}=u;if(Q)for(const pe of q)Q.style[pe]=""}function j(){if(e.type==="card")return;const q=w();q?O(q):F()}function M(){var q;const Q=(q=p.value)===null||q===void 0?void 0:q.$el;if(!Q)return;const pe=w();if(!pe)return;const{scrollLeft:we,offsetWidth:de}=Q,{offsetLeft:me,offsetWidth:je}=pe;we>me?Q.scrollTo({top:0,left:me,behavior:"smooth"}):me+je>we+de&&Q.scrollTo({top:0,left:me+je-de,behavior:"smooth"})}const H=B(null);let U=0,L=null;function te(q){const Q=H.value;if(Q){U=q.getBoundingClientRect().height;const pe=`${U}px`,we=()=>{Q.style.height=pe,Q.style.maxHeight=pe};L?(we(),L(),L=null):L=we}}function K(q){const Q=H.value;if(Q){const pe=q.getBoundingClientRect().height,we=()=>{document.body.offsetHeight,Q.style.maxHeight=`${pe}px`,Q.style.height=`${Math.max(U,pe)}px`};L?(L(),L=null,we()):L=we}}function le(){const q=H.value;if(q){q.style.maxHeight="",q.style.height="";const{paneWrapperStyle:Q}=e;if(typeof Q=="string")q.style.cssText=Q;else if(Q){const{maxHeight:pe,height:we}=Q;pe!==void 0&&(q.style.maxHeight=pe),we!==void 0&&(q.style.height=we)}}}const be={value:[]},ce=B("next");function V(q){const Q=$.value;let pe="next";for(const we of be.value){if(we===Q)break;if(we===q){pe="prev";break}}ce.value=pe,E(q)}function E(q){const{onActiveNameChange:Q,onUpdateValue:pe,"onUpdate:value":we}=e;Q&&ae(Q,q),pe&&ae(pe,q),we&&ae(we,q),T.value=q}function I(q){const{onClose:Q}=e;Q&&ae(Q,q)}function N(){const{value:q}=u;if(!q)return;const Q="transition-disabled";q.classList.add(Q),j(),q.classList.remove(Q)}const J=B(null);function se({transitionDisabled:q}){const Q=c.value;if(!Q)return;q&&Q.classList.add("transition-disabled");const pe=w();pe&&J.value&&(J.value.style.width=`${pe.offsetWidth}px`,J.value.style.height=`${pe.offsetHeight}px`,J.value.style.transform=`translateX(${pe.offsetLeft-Mt(getComputedStyle(Q).paddingLeft)}px)`,q&&J.value.offsetWidth),q&&Q.classList.remove("transition-disabled")}gt([$],()=>{e.type==="segment"&&Tt(()=>{se({transitionDisabled:!1})})}),to(()=>{e.type==="segment"&&se({transitionDisabled:!0})});let xe=0;function Ie(q){var Q;if(q.contentRect.width===0&&q.contentRect.height===0||xe===q.contentRect.width)return;xe=q.contentRect.width;const{type:pe}=e;if((pe==="line"||pe==="bar")&&N(),pe!=="segment"){const{placement:we}=e;Xe((we==="top"||we==="bottom"?(Q=p.value)===null||Q===void 0?void 0:Q.$el:h.value)||null)}}const _=fa(Ie,64);gt([()=>e.justifyContent,()=>e.size],()=>{Tt(()=>{const{type:q}=e;(q==="line"||q==="bar")&&N()})});const Pe=B(!1);function He(q){var Q;const{target:pe,contentRect:{width:we,height:de}}=q,me=pe.parentElement.parentElement.offsetWidth,je=pe.parentElement.parentElement.offsetHeight,{placement:oe}=e;if(!Pe.value)oe==="top"||oe==="bottom"?meUe.$el.offsetWidth&&(Pe.value=!1):je-de>Ue.$el.offsetHeight&&(Pe.value=!1)}Xe(((Q=p.value)===null||Q===void 0?void 0:Q.$el)||null)}const _e=fa(He,64);function Ge(){const{onAdd:q}=e;q&&q(),Tt(()=>{const Q=w(),{value:pe}=p;!Q||!pe||pe.scrollTo({left:Q.offsetLeft,top:0,behavior:"smooth"})})}function Xe(q){if(!q)return;const{placement:Q}=e;if(Q==="top"||Q==="bottom"){const{scrollLeft:pe,scrollWidth:we,offsetWidth:de}=q;g.value=pe<=0,x.value=pe+de>=we}else{const{scrollTop:pe,scrollHeight:we,offsetHeight:de}=q;g.value=pe<=0,x.value=pe+de>=we}}const ct=fa(q=>{Xe(q.target)},64);Je(Qi,{triggerRef:fe(e,"trigger"),tabStyleRef:fe(e,"tabStyle"),tabClassRef:fe(e,"tabClass"),addTabStyleRef:fe(e,"addTabStyle"),addTabClassRef:fe(e,"addTabClass"),paneClassRef:fe(e,"paneClass"),paneStyleRef:fe(e,"paneStyle"),mergedClsPrefixRef:s,typeRef:fe(e,"type"),closableRef:fe(e,"closable"),valueRef:$,tabChangeIdRef:R,onBeforeLeaveRef:fe(e,"onBeforeLeave"),activateTab:V,handleClose:I,handleAdd:Ge}),is(()=>{j(),M()}),Ft(()=>{const{value:q}=f;if(!q)return;const{value:Q}=s,pe=`${Q}-tabs-nav-scroll-wrapper--shadow-start`,we=`${Q}-tabs-nav-scroll-wrapper--shadow-end`;g.value?q.classList.remove(pe):q.classList.add(pe),x.value?q.classList.remove(we):q.classList.add(we)});const ot={syncBarPosition:()=>{j()}},Ce=()=>{se({transitionDisabled:!0})},ee=C(()=>{const{value:q}=y,{type:Q}=e,pe={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[Q],we=`${q}${pe}`,{self:{barColor:de,closeIconColor:me,closeIconColorHover:je,closeIconColorPressed:oe,tabColor:Ue,tabBorderColor:lt,paneTextColor:zt,tabFontWeight:xt,tabBorderRadius:pt,tabFontWeightActive:ut,colorSegment:De,fontWeightStrong:Ze,tabColorSegment:D,closeSize:G,closeIconSize:ve,closeColorHover:Fe,closeColorPressed:Be,closeBorderRadius:W,[ie("panePadding",q)]:ge,[ie("tabPadding",we)]:$e,[ie("tabPaddingVertical",we)]:We,[ie("tabGap",we)]:ft,[ie("tabGap",`${we}Vertical`)]:rt,[ie("tabTextColor",Q)]:ne,[ie("tabTextColorActive",Q)]:ze,[ie("tabTextColorHover",Q)]:Le,[ie("tabTextColorDisabled",Q)]:et,[ie("tabFontSize",q)]:yt},common:{cubicBezierEaseInOut:bt}}=d.value;return{"--n-bezier":bt,"--n-color-segment":De,"--n-bar-color":de,"--n-tab-font-size":yt,"--n-tab-text-color":ne,"--n-tab-text-color-active":ze,"--n-tab-text-color-disabled":et,"--n-tab-text-color-hover":Le,"--n-pane-text-color":zt,"--n-tab-border-color":lt,"--n-tab-border-radius":pt,"--n-close-size":G,"--n-close-icon-size":ve,"--n-close-color-hover":Fe,"--n-close-color-pressed":Be,"--n-close-border-radius":W,"--n-close-icon-color":me,"--n-close-icon-color-hover":je,"--n-close-icon-color-pressed":oe,"--n-tab-color":Ue,"--n-tab-font-weight":xt,"--n-tab-font-weight-active":ut,"--n-tab-padding":$e,"--n-tab-padding-vertical":We,"--n-tab-gap":ft,"--n-tab-gap-vertical":rt,"--n-pane-padding-left":Nt(ge,"left"),"--n-pane-padding-right":Nt(ge,"right"),"--n-pane-padding-top":Nt(ge,"top"),"--n-pane-padding-bottom":Nt(ge,"bottom"),"--n-font-weight-strong":Ze,"--n-tab-color-segment":D}}),ue=l?it("tabs",C(()=>`${y.value[0]}${e.type[0]}`),ee,e):void 0;return Object.assign({mergedClsPrefix:s,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:J,tabsPaneWrapperRef:H,tabsElRef:c,barElRef:u,addTabInstRef:v,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:Pe,tabWrapperStyle:S,handleNavResize:_,mergedSize:y,handleScroll:ct,handleTabsResize:_e,cssVars:l?void 0:ee,themeClass:ue==null?void 0:ue.themeClass,animationDirection:ce,renderNameListRef:be,yScrollElRef:h,handleSegmentResize:Ce,onAnimationBeforeLeave:te,onAnimationEnter:K,onAnimationAfterEnter:le,onRender:ue==null?void 0:ue.onRender},ot)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:r,addable:n,mergedSize:i,renderNameListRef:s,onRender:l,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:u,prefix:f,suffix:v}}=this;l==null||l();const p=u?zo(u()).filter(R=>R.type.__TAB_PANE__===!0):[],h=u?zo(u()).filter(R=>R.type.__TAB__===!0):[],g=!h.length,x=t==="card",y=t==="segment",b=!x&&!y&&this.justifyContent;s.value=[];const T=()=>{const R=a("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},b?null:a("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?p.map((S,w)=>(s.value.push(S.props.name),Fa(a(ii,Object.assign({},S.props,{internalCreatedByPane:!0,internalLeftPadded:w!==0&&(!b||b==="center"||b==="start"||b==="end")}),S.children?{default:S.children.tab}:void 0)))):h.map((S,w)=>(s.value.push(S.props.name),Fa(w!==0&&!b?Yl(S):S))),!r&&n&&x?ql(n,(g?p.length:h.length)!==0):null,b?null:a("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return a("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},x&&n?a(_o,{onResize:this.handleTabsResize},{default:()=>R}):R,x?a("div",{class:`${e}-tabs-pad`}):null,x?null:a("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=y?"top":o;return a("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,b&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},a("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},mt(f,R=>R&&a("div",{class:`${e}-tabs-nav__prefix`},R)),y?a(_o,{onResize:this.handleSegmentResize},{default:()=>a("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},a("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},a("div",{class:`${e}-tabs-wrapper`},a("div",{class:`${e}-tabs-tab`}))),g?p.map((R,S)=>(s.value.push(R.props.name),a(ii,Object.assign({},R.props,{internalCreatedByPane:!0,internalLeftPadded:S!==0}),R.children?{default:R.children.tab}:void 0))):h.map((R,S)=>(s.value.push(R.props.name),S===0?R:Yl(R))))}):a(_o,{onResize:this.handleNavResize},{default:()=>a("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?a(Mu,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:T}):a("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},T()))}),r&&n&&x?ql(n,!0):null,mt(v,R=>R&&a("div",{class:`${e}-tabs-nav__suffix`},R))),g&&(this.animated&&($==="top"||$==="bottom")?a("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Kl(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Kl(p,this.mergedValue,this.renderedNames)))}});function Kl(e,t,o,r,n,i,s){const l=[];return e.forEach(d=>{const{name:c,displayDirective:u,"display-directive":f}=d.props,v=h=>u===h||f===h,p=t===c;if(d.key!==void 0&&(d.key=c),p||v("show")||v("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const h=!v("if");l.push(h?so(d,[[Eo,p]]):d)}}),s?a(as,{name:`${s}-transition`,onBeforeLeave:r,onEnter:n,onAfterEnter:i},{default:()=>l}):l}function ql(e,t){return a(ii,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Yl(e){const t=an(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Fa(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Gc="n-tree-select";function Gl({position:e,offsetLevel:t,indent:o,el:r}){const n={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")n.left=0,n.top=0,n.bottom=0,n.borderRadius="inherit",n.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";n[i]=0,n.left=`${r.offsetLeft+6-t*o}px`,n.height="2px",n.backgroundColor="var(--n-drop-mark-color)",n.transformOrigin=i,n.borderRadius="1px",n.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return a("div",{style:n})}function hC({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}const $n="n-tree";function vC({props:e,fNodesRef:t,mergedExpandedKeysRef:o,mergedSelectedKeysRef:r,mergedCheckedKeysRef:n,handleCheck:i,handleSelect:s,handleSwitcherClick:l}){const{value:d}=r,c=Ee(Gc,null),u=c?c.pendingNodeKeyRef:B(d.length?d[d.length-1]:null);function f(v){var p;if(!e.keyboard)return{enterBehavior:null};const{value:h}=u;let g=null;if(h===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&h===null){const{value:x}=t;let y=0;for(;yb.key===h);if(!~y)return{enterBehavior:null};if(v.key==="Enter"){const b=x[y];switch(g=((p=e.overrideDefaultNodeClickBehavior)===null||p===void 0?void 0:p.call(e,{option:b.rawNode}))||null,g){case"toggleCheck":i(b,!n.value.includes(b.key));break;case"toggleSelect":s(b);break;case"toggleExpand":l(b);break;case"none":break;case"default":default:g="default",s(b)}}else if(v.key==="ArrowDown")for(v.preventDefault(),y+=1;y=0;){if(!x[y].disabled){u.value=x[y].key;break}y-=1}else if(v.key==="ArrowLeft"){const b=x[y];if(b.isLeaf||!o.value.includes(h)){const T=b.getParent();T&&(u.value=T.key)}else l(b)}else if(v.key==="ArrowRight"){const b=x[y];if(b.isLeaf)return{enterBehavior:null};if(!o.value.includes(h))l(b);else for(y+=1;y{const{clsPrefix:o,expanded:r,hide:n,indent:i,onClick:s}=e;return a("span",{"data-switcher":!0,class:[`${o}-tree-node-switcher`,r&&`${o}-tree-node-switcher--expanded`,n&&`${o}-tree-node-switcher--hide`],style:{width:`${i}px`},onClick:s},a("div",{class:`${o}-tree-node-switcher__icon`},a(cr,null,{default:()=>{if(e.loading)return a(Zo,{clsPrefix:o,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):a(Rt,{clsPrefix:o,key:"switcher"},{default:()=>a(kf,null)})}})))}}});function bC(e){return C(()=>e.leafOnly?"child":e.checkStrategy)}function Jo(e,t){return!!e.rawNode[t]}function Xc(e,t,o,r){e==null||e.forEach(n=>{o(n),Xc(n[t],t,o,r),r(n)})}function xC(e,t,o,r,n){const i=new Set,s=new Set,l=[];return Xc(e,r,d=>{if(l.push(d),n(t,d)){s.add(d[o]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][o]))i.add(l[c][o]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:s}}if(xo&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function CC(e,t,o,r,n){const i=new Set,s=new Set,l=new Set,d=[],c=[],u=[];function f(p){p.forEach(h=>{if(u.push(h),t(o,h)){i.add(h[r]),l.add(h[r]);for(let x=u.length-2;x>=0;--x){const y=u[x][r];if(!s.has(y))s.add(y),i.has(y)&&i.delete(y);else break}}const g=h[n];g&&f(g),u.pop()})}f(e);function v(p,h){p.forEach(g=>{const x=g[r],y=i.has(x),b=s.has(x);if(!y&&!b)return;const T=g[n];if(T)if(y)h.push(g);else{d.push(x);const $=Object.assign(Object.assign({},g),{[n]:[]});h.push($),v(T,$[n])}else h.push(g)})}return v(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:d}}const Zc=re({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Ee($n),{droppingNodeParentRef:o,droppingMouseNodeRef:r,draggingNodeRef:n,droppingPositionRef:i,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:d,blockLineRef:c,checkboxPlacementRef:u,checkOnClickRef:f,disabledFieldRef:v,showLineRef:p,renderSwitcherIconRef:h,overrideDefaultNodeClickBehaviorRef:g}=t,x=tt(()=>!!e.tmNode.rawNode.checkboxDisabled),y=tt(()=>Jo(e.tmNode,v.value)),b=tt(()=>t.disabledRef.value||y.value),T=C(()=>{const{value:I}=l;if(I)return I({option:e.tmNode.rawNode})}),$=B(null),R={value:null};to(()=>{R.value=$.value.$el});function S(){const I=()=>{const{tmNode:N}=e;if(!N.isLeaf&&!N.shallowLoaded){if(!t.loadingKeysRef.value.has(N.key))t.loadingKeysRef.value.add(N.key);else return;const{onLoadRef:{value:J}}=t;J&&J(N.rawNode).then(se=>{se!==!1&&t.handleSwitcherClick(N)}).finally(()=>{t.loadingKeysRef.value.delete(N.key)})}else t.handleSwitcherClick(N)};h.value?setTimeout(I,0):I()}const w=tt(()=>!y.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),O=tt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),F=tt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),A=tt(()=>{const{value:I}=O;if(!I)return!1;const{value:N}=f,{tmNode:J}=e;return typeof N=="boolean"?!J.disabled&&N:N(e.tmNode.rawNode)});function j(I){const{value:N}=t.expandOnClickRef,{value:J}=w,{value:se}=A;if(!J&&!N&&!se||Jt(I,"checkbox")||Jt(I,"switcher"))return;const{tmNode:xe}=e;J&&t.handleSelect(xe),N&&!xe.isLeaf&&S(),se&&L(!F.value)}function M(I){var N,J;if(!(Jt(I,"checkbox")||Jt(I,"switcher"))){if(!b.value){const se=g.value;let xe=!1;if(se)switch(se({option:e.tmNode.rawNode})){case"toggleCheck":xe=!0,L(!F.value);break;case"toggleSelect":xe=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":xe=!0,S(),xe=!0;break;case"none":xe=!0,xe=!0;return}xe||j(I)}(J=(N=T.value)===null||N===void 0?void 0:N.onClick)===null||J===void 0||J.call(N,I)}}function H(I){c.value||M(I)}function U(I){c.value&&M(I)}function L(I){t.handleCheck(e.tmNode,I)}function te(I){t.handleDragStart({event:I,node:e.tmNode})}function K(I){I.currentTarget===I.target&&t.handleDragEnter({event:I,node:e.tmNode})}function le(I){I.preventDefault(),t.handleDragOver({event:I,node:e.tmNode})}function be(I){t.handleDragEnd({event:I,node:e.tmNode})}function ce(I){I.currentTarget===I.target&&t.handleDragLeave({event:I,node:e.tmNode})}function V(I){I.preventDefault(),i.value!==null&&t.handleDrop({event:I,node:e.tmNode,dropPosition:i.value})}const E=C(()=>{const{clsPrefix:I}=e,{value:N}=d;if(p.value){const J=[];let se=e.tmNode.parent;for(;se;)se.isLastChild?J.push(a("div",{class:`${I}-tree-node-indent`},a("div",{style:{width:`${N}px`}}))):J.push(a("div",{class:[`${I}-tree-node-indent`,`${I}-tree-node-indent--show-line`]},a("div",{style:{width:`${N}px`}}))),se=se.parent;return J.reverse()}else return si(e.tmNode.level,a("div",{class:`${e.clsPrefix}-tree-node-indent`},a("div",{style:{width:`${N}px`}})))});return{showDropMark:tt(()=>{const{value:I}=n;if(!I)return;const{value:N}=i;if(!N)return;const{value:J}=r;if(!J)return;const{tmNode:se}=e;return se.key===J.key}),showDropMarkAsParent:tt(()=>{const{value:I}=o;if(!I)return!1;const{tmNode:N}=e,{value:J}=i;return J==="before"||J==="after"?I.key===N.key:!1}),pending:tt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:tt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:tt(()=>{var I;return(I=t.highlightKeySetRef.value)===null||I===void 0?void 0:I.has(e.tmNode.key)}),checked:F,indeterminate:tt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:tt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:tt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:O,mergedCheckOnClick:A,checkboxDisabled:x,selectable:w,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:T,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:s,indent:d,checkboxPlacement:u,showLine:p,contentInstRef:$,contentElRef:R,indentNodes:E,handleCheck:L,handleDrop:V,handleDragStart:te,handleDragEnter:K,handleDragOver:le,handleDragEnd:be,handleDragLeave:ce,handleLineClick:U,handleContentClick:H,handleSwitcherClick:S}},render(){const{tmNode:e,clsPrefix:t,checkable:o,expandOnClick:r,selectable:n,selected:i,checked:s,highlight:l,draggable:d,blockLine:c,indent:u,indentNodes:f,disabled:v,pending:p,internalScrollable:h,nodeProps:g,checkboxPlacement:x}=this,y=d&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,b=h?xs(e.key):void 0,T=x==="right",$=o?a(pC,{indent:u,right:T,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return a("div",Object.assign({class:`${t}-tree-node-wrapper`},y),a("div",Object.assign({},c?g:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:o,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:n,[`${t}-tree-node--clickable`]:n||r||this.mergedCheckOnClick},g==null?void 0:g.class],"data-key":b,draggable:d&&c,onClick:this.handleLineClick,onDragstart:d&&c&&!v?this.handleDragStart:void 0}),f,e.isLeaf&&this.showLine?a("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},a("div",{style:{width:`${u}px`}})):a(mC,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),T?null:$,a(gC,{ref:"contentInstRef",clsPrefix:t,checked:s,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:g,onDragstart:d&&!c&&!v?this.handleDragStart:void 0,tmNode:e}),d?this.showDropMark?Gl({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?Gl({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,T?$:null))}}),yC=re({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return a(yn,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>a("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Et(this.height)}},this.nodes.map(t=>a(Zc,{clsPrefix:e,tmNode:t})))})}}),Ia=fo(),wC=m("tree",` - font-size: var(--n-font-size); - outline: none; -`,[k("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),k(">",[m("tree-node",[k("&:first-child","margin-top: 0;")])]),m("tree-motion-wrapper",[z("expand",[cn({duration:"0.2s"})]),z("collapse",[cn({duration:"0.2s",reverse:!0})])]),m("tree-node-wrapper",` - box-sizing: border-box; - padding: var(--n-node-wrapper-padding); - `),m("tree-node",` - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[z("highlight",[m("tree-node-content",[P("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),z("disabled",[m("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),at("disabled",[z("clickable",[m("tree-node-content",` - cursor: pointer; - `)])])]),z("block-node",[m("tree-node-content",` - flex: 1; - min-width: 0; - `)]),at("block-line",[m("tree-node",[at("disabled",[m("tree-node-content",[k("&:hover","background: var(--n-node-color-hover);")]),z("selectable",[m("tree-node-content",[k("&:active","background: var(--n-node-color-pressed);")])]),z("pending",[m("tree-node-content",` - background: var(--n-node-color-hover); - `)]),z("selected",[m("tree-node-content","background: var(--n-node-color-active);")])]),z("selected",[m("tree-node-content","background: var(--n-node-color-active);")])])]),z("block-line",[m("tree-node",[at("disabled",[k("&:hover","background: var(--n-node-color-hover);"),z("pending",` - background: var(--n-node-color-hover); - `),z("selectable",[at("selected",[k("&:active","background: var(--n-node-color-pressed);")])]),z("selected","background: var(--n-node-color-active);")]),z("selected","background: var(--n-node-color-active);"),z("disabled",` - cursor: not-allowed; - `)])]),m("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - `,[z("show-line","position: relative",[k("&::before",` - position: absolute; - left: 50%; - border-left: 1px solid var(--n-line-color); - transition: border-color .3s var(--n-bezier); - transform: translate(-50%); - content: ""; - top: var(--n-line-offset-top); - bottom: var(--n-line-offset-bottom); - `),z("last-child",[k("&::before",` - bottom: 50%; - `)]),z("is-leaf",[k("&::after",` - position: absolute; - content: ""; - left: calc(50% + 0.5px); - right: 0; - bottom: 50%; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-line-color); - `)])]),at("show-line","height: 0;")]),m("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: var(--n-node-content-height); - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[P("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[m("icon",[Ia]),m("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[Ia]),m("base-icon",[Ia])]),z("hide","visibility: hidden;"),z("expanded","transform: rotate(90deg);")]),m("tree-node-checkbox",` - display: inline-flex; - height: var(--n-node-content-height); - vertical-align: bottom; - align-items: center; - justify-content: center; - `),m("tree-node-content",` - user-select: none; - position: relative; - display: inline-flex; - align-items: center; - min-height: var(--n-node-content-height); - box-sizing: border-box; - line-height: var(--n-line-height); - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[k("&:last-child","margin-bottom: 0;"),P("prefix",` - display: inline-flex; - margin-right: 8px; - `),P("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),P("suffix",` - display: inline-flex; - `)]),P("empty","margin: auto;")]);var SC=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,[])).next())})};function Xl(e,t,o,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[o]||i.checkboxDisabled)}}}const kC={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},RC=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:hC},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),kC),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),Ly=re({name:"Tree",props:RC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Qe(e),n=Wt("Tree",r,t),i=Re("Tree","-tree",wC,Y0,e,t),s=B(null),l=B(null),d=B(null);function c(){var Y;return(Y=d.value)===null||Y===void 0?void 0:Y.listElRef}function u(){var Y;return(Y=d.value)===null||Y===void 0?void 0:Y.itemsElRef}const f=C(()=>{const{filter:Y}=e;if(Y)return Y;const{labelField:he}=e;return(ke,Me)=>{if(!ke.length)return!0;const Ne=Me[he];return typeof Ne=="string"?Ne.toLowerCase().includes(ke.toLowerCase()):!1}}),v=C(()=>{const{pattern:Y}=e;return Y?!Y.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:CC(e.data,f.value,Y,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=C(()=>Uo(e.showIrrelevantNodes?e.data:v.value.filteredTree,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),h=Ee(Gc,null),g=e.internalTreeSelect?h.dataTreeMate:C(()=>e.showIrrelevantNodes?p.value:Uo(e.data,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:x}=e,y=B([]);x!=null&&x.includes("defaultCheckedKeys")?Ft(()=>{y.value=e.defaultCheckedKeys}):y.value=e.defaultCheckedKeys;const b=fe(e,"checkedKeys"),T=$t(b,y),$=C(()=>g.value.getCheckedKeys(T.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),R=bC(e),S=C(()=>$.value.checkedKeys),w=C(()=>{const{indeterminateKeys:Y}=e;return Y!==void 0?Y:$.value.indeterminateKeys}),O=B([]);x!=null&&x.includes("defaultSelectedKeys")?Ft(()=>{O.value=e.defaultSelectedKeys}):O.value=e.defaultSelectedKeys;const F=fe(e,"selectedKeys"),A=$t(F,O),j=B([]),M=Y=>{j.value=e.defaultExpandAll?g.value.getNonLeafKeys():Y===void 0?e.defaultExpandedKeys:Y};x!=null&&x.includes("defaultExpandedKeys")?Ft(()=>{M(void 0)}):Ft(()=>{M(e.defaultExpandedKeys)});const H=fe(e,"expandedKeys"),U=$t(H,j),L=C(()=>p.value.getFlattenedNodes(U.value)),{pendingNodeKeyRef:te,handleKeydown:K}=vC({props:e,mergedCheckedKeysRef:T,mergedSelectedKeysRef:A,fNodesRef:L,mergedExpandedKeysRef:U,handleCheck:ve,handleSelect:W,handleSwitcherClick:Be});let le=null,be=null;const ce=B(new Set),V=C(()=>e.internalHighlightKeySet||v.value.highlightKeySet),E=$t(V,ce),I=B(new Set),N=C(()=>U.value.filter(Y=>!I.value.has(Y)));let J=0;const se=B(null),xe=B(null),Ie=B(null),_=B(null),Pe=B(0),He=C(()=>{const{value:Y}=xe;return Y?Y.parent:null});let _e=!1;gt(fe(e,"data"),()=>{_e=!0,Tt(()=>{_e=!1}),I.value.clear(),te.value=null,De()},{deep:!1});let Ge=!1;const Xe=()=>{Ge=!0,Tt(()=>{Ge=!1})};let ct;gt(fe(e,"pattern"),(Y,he)=>{if(e.showIrrelevantNodes)if(ct=void 0,Y){const{expandedKeys:ke,highlightKeySet:Me}=xC(e.data,e.pattern,e.keyField,e.childrenField,f.value);ce.value=Me,Xe(),de(ke,we(ke),{node:null,action:"filter"})}else ce.value=new Set;else if(!Y.length)ct!==void 0&&(Xe(),de(ct,we(ct),{node:null,action:"filter"}));else{he.length||(ct=U.value);const{expandedKeys:ke}=v.value;ke!==void 0&&(Xe(),de(ke,we(ke),{node:null,action:"filter"}))}});function ot(Y){return SC(this,void 0,void 0,function*(){const{onLoad:he}=e;if(!he){yield Promise.resolve();return}const{value:ke}=I;if(!ke.has(Y.key)){ke.add(Y.key);try{(yield he(Y.rawNode))===!1&&G()}catch(Me){console.error(Me),G()}ke.delete(Y.key)}})}Ft(()=>{var Y;const{value:he}=p;if(!he)return;const{getNode:ke}=he;(Y=U.value)===null||Y===void 0||Y.forEach(Me=>{const Ne=ke(Me);Ne&&!Ne.shallowLoaded&&ot(Ne)})});const Ce=B(!1),ee=B([]);gt(N,(Y,he)=>{if(!e.animated||Ge){Tt(Q);return}if(_e)return;const ke=Mt(i.value.self.nodeHeight),Me=new Set(he);let Ne=null,st=null;for(const wt of Y)if(!Me.has(wt)){if(Ne!==null)return;Ne=wt}const It=new Set(Y);for(const wt of he)if(!It.has(wt)){if(st!==null)return;st=wt}if(Ne===null&&st===null)return;const{virtualScroll:Ot}=e,Qt=(Ot?d.value.listElRef:s.value).offsetHeight,oo=Math.ceil(Qt/ke)+1;let jt;if(Ne!==null&&(jt=he),st!==null&&(jt===void 0?jt=Y:jt=jt.filter(wt=>wt!==st)),Ce.value=!0,ee.value=p.value.getFlattenedNodes(jt),Ne!==null){const wt=ee.value.findIndex(Z=>Z.key===Ne);if(~wt){const Z=ee.value[wt].children;if(Z){const Te=tl(Z,Y);ee.value.splice(wt+1,0,{__motion:!0,mode:"expand",height:Ot?Te.length*ke:void 0,nodes:Ot?Te.slice(0,oo):Te})}}}if(st!==null){const wt=ee.value.findIndex(Z=>Z.key===st);if(~wt){const Z=ee.value[wt].children;if(!Z)return;Ce.value=!0;const Te=tl(Z,Y);ee.value.splice(wt+1,0,{__motion:!0,mode:"collapse",height:Ot?Te.length*ke:void 0,nodes:Ot?Te.slice(0,oo):Te})}}});const ue=C(()=>ls(L.value)),q=C(()=>Ce.value?ee.value:L.value);function Q(){const{value:Y}=l;Y&&Y.sync()}function pe(){Ce.value=!1,e.virtualScroll&&Tt(Q)}function we(Y){const{getNode:he}=g.value;return Y.map(ke=>{var Me;return((Me=he(ke))===null||Me===void 0?void 0:Me.rawNode)||null})}function de(Y,he,ke){const{"onUpdate:expandedKeys":Me,onUpdateExpandedKeys:Ne}=e;j.value=Y,Me&&ae(Me,Y,he,ke),Ne&&ae(Ne,Y,he,ke)}function me(Y,he,ke){const{"onUpdate:checkedKeys":Me,onUpdateCheckedKeys:Ne}=e;y.value=Y,Ne&&ae(Ne,Y,he,ke),Me&&ae(Me,Y,he,ke)}function je(Y,he){const{"onUpdate:indeterminateKeys":ke,onUpdateIndeterminateKeys:Me}=e;ke&&ae(ke,Y,he),Me&&ae(Me,Y,he)}function oe(Y,he,ke){const{"onUpdate:selectedKeys":Me,onUpdateSelectedKeys:Ne}=e;O.value=Y,Ne&&ae(Ne,Y,he,ke),Me&&ae(Me,Y,he,ke)}function Ue(Y){const{onDragenter:he}=e;he&&ae(he,Y)}function lt(Y){const{onDragleave:he}=e;he&&ae(he,Y)}function zt(Y){const{onDragend:he}=e;he&&ae(he,Y)}function xt(Y){const{onDragstart:he}=e;he&&ae(he,Y)}function pt(Y){const{onDragover:he}=e;he&&ae(he,Y)}function ut(Y){const{onDrop:he}=e;he&&ae(he,Y)}function De(){Ze(),D()}function Ze(){se.value=null}function D(){Pe.value=0,xe.value=null,Ie.value=null,_.value=null,G()}function G(){le&&(window.clearTimeout(le),le=null),be=null}function ve(Y,he){if(e.disabled||Jo(Y,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){W(Y);return}const ke=he?"check":"uncheck",{checkedKeys:Me,indeterminateKeys:Ne}=g.value[ke](Y.key,S.value,{cascade:e.cascade,checkStrategy:R.value,allowNotLoaded:e.allowCheckingNotLoaded});me(Me,we(Me),{node:Y.rawNode,action:ke}),je(Ne,we(Ne))}function Fe(Y){if(e.disabled)return;const{key:he}=Y,{value:ke}=U,Me=ke.findIndex(Ne=>Ne===he);if(~Me){const Ne=Array.from(ke);Ne.splice(Me,1),de(Ne,we(Ne),{node:Y.rawNode,action:"collapse"})}else{const Ne=p.value.getNode(he);if(!Ne||Ne.isLeaf)return;let st;if(e.accordion){const It=new Set(Y.siblings.map(({key:Ot})=>Ot));st=ke.filter(Ot=>!It.has(Ot)),st.push(he)}else st=ke.concat(he);de(st,we(st),{node:Y.rawNode,action:"expand"})}}function Be(Y){e.disabled||Ce.value||Fe(Y)}function W(Y){if(!(e.disabled||!e.selectable)){if(te.value=Y.key,e.internalUnifySelectCheck){const{value:{checkedKeys:he,indeterminateKeys:ke}}=$;e.multiple?ve(Y,!(he.includes(Y.key)||ke.includes(Y.key))):me([Y.key],we([Y.key]),{node:Y.rawNode,action:"check"})}if(e.multiple){const he=Array.from(A.value),ke=he.findIndex(Me=>Me===Y.key);~ke?e.cancelable&&he.splice(ke,1):~ke||he.push(Y.key),oe(he,we(he),{node:Y.rawNode,action:~ke?"unselect":"select"})}else A.value.includes(Y.key)?e.cancelable&&oe([],[],{node:Y.rawNode,action:"unselect"}):oe([Y.key],we([Y.key]),{node:Y.rawNode,action:"select"})}}function ge(Y){if(le&&(window.clearTimeout(le),le=null),Y.isLeaf)return;be=Y.key;const he=()=>{if(be!==Y.key)return;const{value:ke}=Ie;if(ke&&ke.key===Y.key&&!U.value.includes(Y.key)){const Me=U.value.concat(Y.key);de(Me,we(Me),{node:Y.rawNode,action:"expand"})}le=null,be=null};Y.shallowLoaded?le=window.setTimeout(()=>{he()},1e3):le=window.setTimeout(()=>{ot(Y).then(()=>{he()})},1e3)}function $e({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||(ze({event:Y,node:he},!1),Ue({event:Y,node:he.rawNode}))}function We({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||lt({event:Y,node:he.rawNode})}function ft(Y){Y.target===Y.currentTarget&&D()}function rt({event:Y,node:he}){De(),!(!e.draggable||e.disabled||Jo(he,e.disabledField))&&zt({event:Y,node:he.rawNode})}function ne({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||(J=Y.clientX,se.value=he,xt({event:Y,node:he.rawNode}))}function ze({event:Y,node:he},ke=!0){var Me;if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Ne}=se;if(!Ne)return;const{allowDrop:st,indent:It}=e;ke&&pt({event:Y,node:he.rawNode});const Ot=Y.currentTarget,{height:Qt,top:oo}=Ot.getBoundingClientRect(),jt=Y.clientY-oo;let wt;st({node:he.rawNode,dropPosition:"inside",phase:"drag"})?jt<=8?wt="before":jt>=Qt-8?wt="after":wt="inside":jt<=Qt/2?wt="before":wt="after";const{value:Te}=ue;let Oe,ht;const Ut=Te(he.key);if(Ut===null){D();return}let Pt=!1;wt==="inside"?(Oe=he,ht="inside"):wt==="before"?he.isFirstChild?(Oe=he,ht="before"):(Oe=L.value[Ut-1],ht="after"):(Oe=he,ht="after"),!Oe.isLeaf&&U.value.includes(Oe.key)&&(Pt=!0,ht==="after"&&(Oe=L.value[Ut+1],Oe?ht="before":(Oe=he,ht="inside")));const So=Oe;if(Ie.value=So,!Pt&&Ne.isLastChild&&Ne.key===Oe.key&&(ht="after"),ht==="after"){let Fo=J-Y.clientX,go=0;for(;Fo>=It/2&&Oe.parent!==null&&Oe.isLastChild&&go<1;)Fo-=It,go+=1,Oe=Oe.parent;Pe.value=go}else Pe.value=0;if((Ne.contains(Oe)||ht==="inside"&&((Me=Ne.parent)===null||Me===void 0?void 0:Me.key)===Oe.key)&&!(Ne.key===So.key&&Ne.key===Oe.key)){D();return}if(!st({node:Oe.rawNode,dropPosition:ht,phase:"drag"})){D();return}if(Ne.key===Oe.key)G();else if(be!==Oe.key)if(ht==="inside"){if(e.expandOnDragenter){if(ge(Oe),!Oe.shallowLoaded&&be!==Oe.key){De();return}}else if(!Oe.shallowLoaded){De();return}}else G();else ht!=="inside"&&G();_.value=ht,xe.value=Oe}function Le({event:Y,node:he,dropPosition:ke}){if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Me}=se,{value:Ne}=xe,{value:st}=_;if(!(!Me||!Ne||!st)&&e.allowDrop({node:Ne.rawNode,dropPosition:st,phase:"drag"})&&Me.key!==Ne.key){if(st==="before"){const It=Me.getNext({includeDisabled:!0});if(It&&It.key===Ne.key){D();return}}if(st==="after"){const It=Me.getPrev({includeDisabled:!0});if(It&&It.key===Ne.key){D();return}}ut({event:Y,node:Ne.rawNode,dragNode:Me.rawNode,dropPosition:ke}),De()}}function et(){Q()}function yt(){Q()}function bt(Y){var he;if(e.virtualScroll||e.internalScrollable){const{value:ke}=l;if(!((he=ke==null?void 0:ke.containerRef)===null||he===void 0)&&he.contains(Y.relatedTarget))return;te.value=null}else{const{value:ke}=s;if(ke!=null&&ke.contains(Y.relatedTarget))return;te.value=null}}gt(te,Y=>{var he,ke;if(Y!==null){if(e.virtualScroll)(he=d.value)===null||he===void 0||he.scrollTo({key:Y});else if(e.internalScrollable){const{value:Me}=l;if(Me===null)return;const Ne=(ke=Me.contentRef)===null||ke===void 0?void 0:ke.querySelector(`[data-key="${xs(Y)}"]`);if(!Ne)return;Me.scrollTo({el:Ne})}}}),Je($n,{loadingKeysRef:I,highlightKeySetRef:E,displayedCheckedKeysRef:S,displayedIndeterminateKeysRef:w,mergedSelectedKeysRef:A,mergedExpandedKeysRef:U,mergedThemeRef:i,mergedCheckStrategyRef:R,nodePropsRef:fe(e,"nodeProps"),disabledRef:fe(e,"disabled"),checkableRef:fe(e,"checkable"),selectableRef:fe(e,"selectable"),expandOnClickRef:fe(e,"expandOnClick"),onLoadRef:fe(e,"onLoad"),draggableRef:fe(e,"draggable"),blockLineRef:fe(e,"blockLine"),indentRef:fe(e,"indent"),cascadeRef:fe(e,"cascade"),checkOnClickRef:fe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Ie,droppingNodeParentRef:He,draggingNodeRef:se,droppingPositionRef:_,droppingOffsetLevelRef:Pe,fNodesRef:L,pendingNodeKeyRef:te,showLineRef:fe(e,"showLine"),disabledFieldRef:fe(e,"disabledField"),internalScrollableRef:fe(e,"internalScrollable"),internalCheckboxFocusableRef:fe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:fe(e,"renderLabel"),renderPrefixRef:fe(e,"renderPrefix"),renderSuffixRef:fe(e,"renderSuffix"),renderSwitcherIconRef:fe(e,"renderSwitcherIcon"),labelFieldRef:fe(e,"labelField"),multipleRef:fe(e,"multiple"),overrideDefaultNodeClickBehaviorRef:fe(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Be,handleDragEnd:rt,handleDragEnter:$e,handleDragLeave:We,handleDragStart:ne,handleDrop:Le,handleDragOver:ze,handleSelect:W,handleCheck:ve});function Ct(Y,he){var ke,Me;typeof Y=="number"?(ke=d.value)===null||ke===void 0||ke.scrollTo(Y,he||0):(Me=d.value)===null||Me===void 0||Me.scrollTo(Y)}const X={handleKeydown:K,scrollTo:Ct,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:Y}=$.value;return{keys:Y,options:we(Y)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:Y}=$.value;return{keys:Y,options:we(Y)}}},ye=C(()=>{const{common:{cubicBezierEaseInOut:Y},self:{fontSize:he,nodeBorderRadius:ke,nodeColorHover:Me,nodeColorPressed:Ne,nodeColorActive:st,arrowColor:It,loadingColor:Ot,nodeTextColor:Qt,nodeTextColorDisabled:oo,dropMarkColor:jt,nodeWrapperPadding:wt,nodeHeight:Z,lineHeight:Te,lineColor:Oe}}=i.value,ht=Nt(wt,"top"),Ut=Nt(wt,"bottom"),Pt=Et(Mt(Z)-Mt(ht)-Mt(Ut));return{"--n-arrow-color":It,"--n-loading-color":Ot,"--n-bezier":Y,"--n-font-size":he,"--n-node-border-radius":ke,"--n-node-color-active":st,"--n-node-color-hover":Me,"--n-node-color-pressed":Ne,"--n-node-text-color":Qt,"--n-node-text-color-disabled":oo,"--n-drop-mark-color":jt,"--n-node-wrapper-padding":wt,"--n-line-offset-top":`-${ht}`,"--n-line-offset-bottom":`-${Ut}`,"--n-node-content-height":Pt,"--n-line-height":Te,"--n-line-color":Oe}}),Ke=o?it("tree",void 0,ye,e):void 0;return Object.assign(Object.assign({},X),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:n,fNodes:q,aip:Ce,selfElRef:s,virtualListInstRef:d,scrollbarInstRef:l,handleFocusout:bt,handleDragLeaveTree:ft,handleScroll:et,getScrollContainer:c,getScrollContent:u,handleAfterEnter:pe,handleResize:yt,cssVars:o?void 0:ye,themeClass:Ke==null?void 0:Ke.themeClass,onRender:Ke==null?void 0:Ke.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:o}=this;if(!t.length&&o)return o();const{mergedClsPrefix:r,blockNode:n,blockLine:i,draggable:s,disabled:l,internalFocusable:d,checkable:c,handleKeydown:u,rtlEnabled:f,handleFocusout:v,scrollbarProps:p}=this,h=d&&!l,g=h?"0":void 0,x=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||n)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],y=T=>"__motion"in T?a(yC,{height:T.height,nodes:T.nodes,clsPrefix:r,mode:T.mode,onAfterEnter:this.handleAfterEnter}):a(Zc,{key:T.key,tmNode:T,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:T,internalScrollablePadding:$}=this,R=Nt($||"0");return a(Gn,Object.assign({},p,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:x,theme:T.peers.Scrollbar,themeOverrides:T.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?u:void 0,onFocusout:h?v:void 0}),{default:()=>{var S;return(S=this.onRender)===null||S===void 0||S.call(this),t.length?a(Sr,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Mt(T.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:R.top,paddingBottom:R.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:R.left,paddingRight:R.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:w})=>y(w)}):vt(this.$slots.empty,()=>[a(Xn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:b}=this;return x.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),b?a(Gn,Object.assign({},p,{class:x,tabindex:g,onKeydown:h?u:void 0,onFocusout:h?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>a("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):a("div",{class:x,tabindex:g,ref:"selfElRef",style:this.cssVars,onKeydown:h?u:void 0,onFocusout:h?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(y):vt(this.$slots.empty,()=>[a(Xn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),zC=m("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[k("&:first-child",{marginTop:0}),z("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[z("align-text",{paddingLeft:0},[k("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),k("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),k("&::before",{backgroundColor:"var(--n-bar-color)"})])]),PC=Object.assign(Object.assign({},Re.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),$C=e=>re({name:`H${e}`,props:PC,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(t),n=Re("Typography","-h",zC,Vi,t,o),i=C(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:d},self:{headerFontWeight:c,headerTextColor:u,[ie("headerPrefixWidth",e)]:f,[ie("headerFontSize",e)]:v,[ie("headerMargin",e)]:p,[ie("headerBarWidth",e)]:h,[ie("headerBarColor",l)]:g}}=n.value;return{"--n-bezier":d,"--n-font-size":v,"--n-margin":p,"--n-bar-color":g,"--n-bar-width":h,"--n-font-weight":c,"--n-text-color":u,"--n-prefix-width":f}}),s=r?it(`h${e}`,C(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:o,cssVars:r?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var t;const{prefix:o,alignText:r,mergedClsPrefix:n,cssVars:i,$slots:s}=this;return(t=this.onRender)===null||t===void 0||t.call(this),a(`h${e}`,{class:[`${n}-h`,`${n}-h${e}`,this.themeClass,{[`${n}-h--prefix-bar`]:o,[`${n}-h--align-text`]:r}],style:i},s)}}),Ny=$C("6"),TC=m("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[k("&:first-child","margin-top: 0;"),k("&:last-child","margin-bottom: 0;")]),FC=Object.assign(Object.assign({},Re.props),{depth:[String,Number]}),jy=re({name:"P",props:FC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Typography","-p",TC,Vi,e,t),n=C(()=>{const{depth:s}=e,l=s||"1",{common:{cubicBezierEaseInOut:d},self:{pFontSize:c,pLineHeight:u,pMargin:f,pTextColor:v,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":d,"--n-font-size":c,"--n-line-height":u,"--n-margin":f,"--n-text-color":s===void 0?v:p}}),i=o?it("p",C(()=>`${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),IC=m("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[z("strong",` - font-weight: var(--n-font-weight-strong); - `),z("italic",{fontStyle:"italic"}),z("underline",{textDecoration:"underline"}),z("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BC=Object.assign(Object.assign({},Re.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Vy=re({name:"Text",props:BC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Typography","-text",IC,Vi,e,t),n=C(()=>{const{depth:s,type:l}=e,d=l==="default"?s===void 0?"textColor":`textColor${s}Depth`:ie("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:u,cubicBezierEaseInOut:f},self:{codeTextColor:v,codeBorderRadius:p,codeColor:h,codeBorder:g,[d]:x}}=r.value;return{"--n-bezier":f,"--n-text-color":x,"--n-font-weight-strong":c,"--n-font-famliy-mono":u,"--n-code-border-radius":p,"--n-code-text-color":v,"--n-code-color":h,"--n-code-border":g}}),i=o?it("text",C(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:nr(e,["as","tag"]),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t);return this.code?a("code",{class:n,style:this.cssVars},this.delete?a("del",null,i):i):this.delete?a("del",{class:n,style:this.cssVars},i):a(this.compitableTag||"span",{class:n,style:this.cssVars},i)}}),OC=k([m("watermark-container",` - position: relative; - `,[at("selectable",` - user-select: none; - -webkit-user-select: none; - `),z("global-rotate",` - overflow: hidden; - `),z("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),m("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[z("fullscreen",` - position: fixed; - `),z("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function DC(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const MC=Object.assign(Object.assign({},Re.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Wy=re({name:"Watermark",props:MC,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Qe(e),r=Re("Watermark","-watermark",OC,tx,e,o),n=B(""),i=xo?document.createElement("canvas"):null,s=i?i.getContext("2d"):null,l=B(!1);return is(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const d=DC(s),{xGap:c,yGap:u,width:f,height:v,yOffset:p,xOffset:h,rotate:g,image:x,content:y,fontColor:b,fontStyle:T,fontVariant:$,fontStretch:R,fontWeight:S,fontFamily:w,fontSize:O,lineHeight:F,debug:A}=e,j=(c+f)*d,M=(u+v)*d,H=h*d,U=p*d;if(i.width=j,i.height=M,s){s.translate(0,0);const L=f*d,te=v*d;if(A&&(s.strokeStyle="grey",s.strokeRect(0,0,L,te)),s.rotate(g*(Math.PI/180)),x){const K=new Image;K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=x,K.onload=()=>{s.globalAlpha=e.imageOpacity;const{imageWidth:le,imageHeight:be}=e;s.drawImage(K,H,U,(e.imageWidth||(be?K.width*be/K.height:K.width))*d,(e.imageHeight||(le?K.height*le/K.width:K.height))*d),n.value=i.toDataURL()}}else if(y){A&&(s.strokeStyle="green",s.strokeRect(0,0,L,te)),s.font=`${T} ${$} ${S} ${R} ${O*d}px/${F*d}px ${w||r.value.self.fontFamily}`,s.fillStyle=b;let K=0;const{textAlign:le}=e;y.split(` -`).map(be=>{const ce=s.measureText(be).width;return K=Math.max(K,ce),{width:ce,line:be}}).forEach(({line:be,width:ce},V)=>{const E=le==="left"?0:le==="center"?(K-ce)/2:K-ce;s.fillText(be,H+E,U+F*d*(V+1))}),n.value=i.toDataURL()}else y||(s.clearRect(0,0,i.width,i.height),n.value=i.toDataURL())}else rf("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=o.value,p=c!==0&&u,h="max(142vh, 142vw)",g=a("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${n.value}), url(${n.value})`:`url(${n.value})`}});return e.fullscreen&&!c?g:a("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),AC=()=>({}),_C={name:"Equation",common:Ae,self:AC},HC={name:"FloatButtonGroup",common:Ae,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},Uy={name:"dark",common:Ae,Alert:sh,Anchor:mh,AutoComplete:Oh,Avatar:Ys,AvatarGroup:jh,BackTop:Wh,Badge:Uh,Breadcrumb:Yh,Button:po,ButtonGroup:Kb,Calendar:fv,Card:rd,Carousel:xv,Cascader:wv,Checkbox:Ur,Code:id,Collapse:Fv,CollapseTransition:Bv,ColorPicker:Dv,DataTable:zp,DatePicker:_g,Descriptions:om,Dialog:ac,Divider:cb,Drawer:vb,Dropdown:Ii,DynamicInput:Bb,DynamicTags:_b,Element:Nb,Empty:Tr,Ellipsis:Cd,Equation:_C,Flex:jb,Form:Yb,GradientText:Gb,Icon:og,IconWrapper:yx,Image:wx,Input:wo,InputNumber:Qb,InputOtp:o0,LegacyTransfer:Ax,Layout:r0,List:l0,LoadingBar:Rm,Log:s0,Menu:f0,Mention:d0,Message:Mm,Modal:hm,Notification:Gm,PageHeader:p0,Pagination:gd,Popconfirm:b0,Popover:Fr,Popselect:dd,Progress:Tc,QrCode:Yx,Radio:Sd,Rate:C0,Result:S0,Row:a0,Scrollbar:vo,Select:hd,Skeleton:rC,Slider:R0,Space:Sc,Spin:P0,Statistic:T0,Steps:B0,Switch:O0,Table:H0,Tabs:N0,Tag:Ds,Thing:V0,TimePicker:qd,Timeline:U0,Tooltip:ra,Transfer:q0,Tree:Mc,TreeSelect:G0,Typography:Z0,Upload:J0,Watermark:ex,Split:lC,FloatButton:ox,FloatButtonGroup:HC,Marquee:Hx};export{Fy as $,zy as A,xy as B,Oy as C,By as D,Wp as E,by as F,uy as G,pp as H,fx as I,_y as J,$y as K,yy as L,Do as M,mv as N,Vy as O,At as P,Tb as Q,Cy as R,My as S,Hy as T,dy as U,cy as V,Dy as W,Lh as X,sy as Y,Iy as Z,Ty as _,Py as a,lp as a0,Uy as a1,Im as a2,jm as a3,km as a4,Km as a5,nb as a6,Ry as a7,my as a8,Wy as a9,iC as aa,tC as ab,py as ac,gy as ad,Ny as ae,jy as af,iy as ag,Ph as ah,ly as ai,jp as aj,Bd as ak,ky as al,vy as am,fy as an,vx as b,gv as c,ay as d,wy as e,ax as f,xx as g,Ay as h,uc as i,hg as j,Nd as k,Pp as l,cc as m,fp as n,Ly as o,Rn as p,hy as q,Sy as r,Ey as s,fC as t,gm as u,ii as v,jn as w,Di as x,Od as y,ny as z}; diff --git a/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js.gz b/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js.gz deleted file mode 100644 index e44b3deb..00000000 Binary files a/js/naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js.gz and /dev/null differ diff --git a/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js b/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js new file mode 100644 index 00000000..8fad83f7 --- /dev/null +++ b/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js @@ -0,0 +1,4606 @@ +import{e as xu,z as Cu,p as yu,i as Oo,f as Bt,a as Mt,b as Ve,s as jo,c as Tn,d as wu,h as Qn,j as ao,k as Ba,l as Oa,m as Su,n as fn,o as Ht,q as Zl,r as Ql,t as ku,u as ko,v as Ru,w as zu,x as Pu,y as eo,A as $u,B as li,C as Ma,D as Tu,E as Jl,F as er,G as pr,H as Fu,I as da,J as Iu,K as ca,L as Bu,M as Wn,N as Un}from"./date-fns@4.1.0-D7sOP3Nv.js";import{g as Nt,s as Kt,r as io,c as qe,d as Dt,a as Ko,h as Jt,b as Se,e as qo,t as Vo,f as Cr,i as jn,j as Wo,k as tr,l as or,m as Dr,n as yr,o as es,p as Da,q as Aa,u as _a,v as rn,w as Ha,x as Ea,y as La,z as Et,A as si,B as Na,C as ts,D as Fr}from"./seemly@0.3.10-8_5gPa5q.js";import{l as to,x as bo,i as Ee,g as di,w as gt,v as hn,L as Ou,M as os,J as ja,F as Gt,N as ci,t as Mu,m as re,f as C,j as Ft,y as et,h as a,p as co,n as Tt,O as uo,P as an,Q as Du,R as Jn,T as ui}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as O,s as rs,o as fe,m as Qi,h as ea,u as Ji}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{r as ua,V as _o,a as wr,b as kr,F as fi,B as Rr,c as zr,d as Va,L as ns,e as Au}from"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import{v as Eo,T as qt,a as as,c as _u}from"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import{o as Lt,a as Yt}from"./evtd@0.2.4-w6UMCrcr.js";import{c as Lo,m as Hu,z as hi}from"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import{u as tt,i as Yo,a as Eu,b as $t,c as rr,d as vi,e as pi,f as gi,g as Lu,o as is}from"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import{m as Mr,B as Nu,b as ju,g as Kn,q as Vu}from"./lodash-es@4.17.21-CFdI1ypR.js";import{c as ls,a as Uo,f as el}from"./treemate@0.3.11-fnkdj-jo.js";import{f as Wu}from"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import{p as Wa}from"./@vue_shared@3.5.25-ClSOc5xY.js";import{m as qn}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{S as tl}from"./async-validator@4.2.5-B7g11KvB.js";import{u as ta}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import{C as Uu,e as Ku}from"./css-render@0.15.14-DTtBB2Mk.js";import{p as qu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";const Yu="n",ln=`.${Yu}-`,Gu="__",Xu="--",ss=Uu(),ds=qu({blockPrefix:ln,elementPrefix:Gu,modifierPrefix:Xu});ss.use(ds);const{c:S,find:fy}=ss,{cB:m,cE:z,cM:R,cNotM:at}=ds;function jr(e){return S(({props:{bPrefix:t}})=>`${t||ln}modal, ${t||ln}drawer`,[e])}function vn(e){return S(({props:{bPrefix:t}})=>`${t||ln}popover`,[e])}function cs(e){return S(({props:{bPrefix:t}})=>`&${t||ln}modal`,e)}const Zu=(...e)=>S(">",[m(...e)]);function le(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}const mi="n-internal-select-menu",us="n-internal-select-menu-body",pn="n-drawer-body",bi="n-drawer",gn="n-modal-body",Qu="n-modal-provider",fs="n-modal",Vr="n-popover-body",hs="__disabled__";function Zt(e){const t=Ee(gn,null),o=Ee(pn,null),r=Ee(Vr,null),n=Ee(us,null),i=O();if(typeof document<"u"){i.value=document.fullscreenElement;const s=()=>{i.value=document.fullscreenElement};to(()=>{Lt("fullscreenchange",document,s)}),bo(()=>{Yt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?hs:l===!0?i.value||"body":l:t?.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o?.value?o.value:r?.value?r.value:n?.value?n.value:l??(i.value||"body")})}Zt.tdkey=hs;Zt.propTo={type:[String,Object,Boolean],default:void 0};function Ju(e,t,o){var r;const n=Ee(e,null);if(n===null)return;const i=(r=di())===null||r===void 0?void 0:r.proxy;gt(o,s),s(o.value),bo(()=>{s(void 0,o.value)});function s(c,u){if(!n)return;const f=n[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function ef(e,t,o){const r=O(e.value);let n=null;return gt(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const xo=typeof document<"u"&&typeof window<"u";let ol=!1;function tf(){if(xo&&window.CSS&&!ol&&(ol=!0,"registerProperty"in window?.CSS))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const xi=O(!1);function rl(){xi.value=!0}function nl(){xi.value=!1}let Qr=0;function vs(){return xo&&(hn(()=>{Qr||(window.addEventListener("compositionstart",rl),window.addEventListener("compositionend",nl)),Qr++}),bo(()=>{Qr<=1?(window.removeEventListener("compositionstart",rl),window.removeEventListener("compositionend",nl),Qr=0):Qr--})),xi}let Ir=0,al="",il="",ll="",sl="";const dl=O("0px");function ps(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=al,t.style.overflow=il,t.style.overflowX=ll,t.style.overflowY=sl,dl.value="0px"};to(()=>{o=gt(e,i=>{if(i){if(!Ir){const s=window.innerWidth-t.offsetWidth;s>0&&(al=t.style.marginRight,t.style.marginRight=`${s}px`,dl.value=`${s}px`),il=t.style.overflow,ll=t.style.overflowX,sl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Ir++}else Ir--,Ir||n(),r=!1},{immediate:!0})}),bo(()=>{o?.(),r&&(Ir--,Ir||n(),r=!1)})}function Ci(e){const t={isDeactivated:!1};let o=!1;return Ou(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),os(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function gs(e,t){t&&(to(()=>{const{value:o}=e;o&&ua.registerHandler(o,t)}),gt(e,(o,r)=>{r&&ua.unregisterHandler(r)},{deep:!1}),bo(()=>{const{value:o}=e;o&&ua.unregisterHandler(o)}))}function sn(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const of=/^(\d|\.)+$/,cl=/(\d|\.)+/;function _t(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(of.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=cl.exec(e);return n?e.replace(cl,String((Number(n[0])+o)*t)):e}return e}function ul(e){const{left:t,right:o,top:r,bottom:n}=Nt(e);return`${r} ${t} ${n} ${o}`}function rf(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}let fa;function nf(){return fa===void 0&&(fa=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),fa}const ms=new WeakSet;function dn(e){ms.add(e)}function bs(e){return!ms.has(e)}function fl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const af={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function Ua(e){const t=af[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}const hl=new Set;function lf(e,t){const o=`[naive/${e}]: ${t}`;hl.has(o)||hl.add(o)}function Go(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ae(e,...t){if(Array.isArray(e))e.forEach(o=>ae(o,...t));else return e(...t)}function xs(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Cs(e){return t=>{t?e.value=t.$el:e.value=null}}function Ro(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(ja(String(r)));return}if(Array.isArray(r)){Ro(r,t,o);return}if(r.type===Gt){if(r.children===null)return;Array.isArray(r.children)&&Ro(r.children,t,o)}else{if(r.type===ci&&t)return;o.push(r)}}}),o}function sf(e,t="default",o=void 0){const r=e[t];if(!r)return`${t}`,null;const n=Ro(r(o));return n.length===1?n[0]:(`${t}`,null)}function df(e,t,o){if(!t)return null;const r=Ro(t(o));return r.length===1?r[0]:(`${e}`,null)}function mn(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function vl(e,t="default",o=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const n=r[t];if(typeof n=="function")return n()}return o}function cf(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===Eo);return!!(o&&o.value===!1)}function mo(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function zo(e){return Object.keys(e)}function nn(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function Pr(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,o)}function Rt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ja(e):typeof e=="number"?ja(String(e)):null}function Bo(e){return e.some(t=>Mu(t)?!(t.type===ci||t.type===Gt&&!Bo(t.children)):!0)?e:null}function vt(e,t){return e&&Bo(e())||t()}function so(e,t,o){return e&&Bo(e(t))||o(t)}function mt(e,t){const o=e&&Bo(e());return t(o||null)}function Ar(e){return!(e&&Bo(e()))}const Ka=re({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Po="n-config-provider",Yn="n";function Qe(e={},t={defaultBordered:!0}){const o=Ee(Po,null);return{inlineThemeDisabled:o?.inlineThemeDisabled,mergedRtlRef:o?.mergedRtlRef,mergedComponentPropsRef:o?.mergedComponentPropsRef,mergedBreakpointsRef:o?.mergedBreakpointsRef,mergedBorderedRef:C(()=>{var r,n;const{bordered:i}=e;return i!==void 0?i:(n=(r=o?.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:rs(Yn),namespaceRef:C(()=>o?.mergedNamespaceRef.value)}}function ys(){const e=Ee(Po,null);return e?e.mergedClsPrefixRef:rs(Yn)}function lt(e,t,o,r){o||Go("useThemeClass","cssVarsRef is not passed");const n=Ee(Po,null),i=n?.mergedThemeHashRef,s=n?.styleMountTarget,l=O(""),d=ta();let c;const u=`__${e}`,f=()=>{let v=u;const p=t?t.value:void 0,h=i?.value;h&&(v+=`-${h}`),p&&(v+=`-${p}`);const{themeOverrides:g,builtinThemeOverrides:b}=r;g&&(v+=`-${qn(JSON.stringify(g))}`),b&&(v+=`-${qn(JSON.stringify(b))}`),l.value=v,c=()=>{const y=o.value;let x="";for(const F in y)x+=`${F}: ${y[F]};`;S(`.${v}`,x).mount({id:v,ssr:d,parent:s}),c=void 0}};return Ft(()=>{f()}),{themeClass:l,onRender:()=>{c?.()}}}const qa="n-form-item";function vo(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Ee(qa,null);et(qa,null);const i=C(o?()=>o(n):()=>{const{size:d}=e;if(d)return d;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),s=C(r?()=>r(n):()=>{const{disabled:d}=e;return d!==void 0?d:n?n.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||n?.mergedValidationStatus.value});return bo(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}const uf={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}},hy={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"},Heatmap:{less:"少",more:"多",monthFormat:"MMM",weekdayFormat:"eeeeee"}},ff={name:"en-US",locale:xu},vy={name:"zh-CN",locale:Cu};function $o(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Ee(Po,null)||{},r=C(()=>{var i,s;return(s=(i=t?.value)===null||i===void 0?void 0:i[e])!==null&&s!==void 0?s:uf[e]});return{dateLocaleRef:C(()=>{var i;return(i=o?.value)!==null&&i!==void 0?i:ff}),localeRef:r}}const Hr="naive-ui-style";function jt(e,t,o){if(!t)return;const r=ta(),n=C(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),i=Ee(Po,null),s=()=>{Ft(()=>{const{value:l}=o,d=`${l}${e}Rtl`;if(Ku(d,r))return;const{value:c}=n;c&&c.style.mount({id:d,head:!0,anchorMetaName:Hr,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:i?.styleMountTarget})})};return r?s():hn(s),n}const Co={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:hf,fontFamily:vf,lineHeight:pf}=Co,ws=S("body",` + margin: 0; + font-size: ${hf}; + font-family: ${vf}; + line-height: ${pf}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[S("input",` + font-family: inherit; + font-size: inherit; + `)]);function sr(e,t,o){if(!t)return;const r=ta(),n=Ee(Po,null),i=()=>{const s=o.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Hr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:n?.styleMountTarget}),n?.preflightStyleDisabled||ws.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:r,parent:n?.styleMountTarget})};r?i():hn(i)}function Re(e,t,o,r,n,i){const s=ta(),l=Ee(Po,null);if(o){const c=()=>{const u=i?.value;o.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Hr,ssr:s,parent:l?.styleMountTarget}),l?.preflightStyleDisabled||ws.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:s,parent:l?.styleMountTarget})};s?c():hn(c)}return C(()=>{var c;const{theme:{common:u,self:f,peers:v={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:g,peers:b}=p,{common:y=void 0,[e]:{common:x=void 0,self:F=void 0,peers:P={}}={}}=l?.mergedThemeRef.value||{},{common:$=void 0,[e]:w={}}=l?.mergedThemeOverridesRef.value||{},{common:k,peers:D={}}=w,T=Mr({},u||x||y||r.common,$,k,g),A=Mr((c=f||F||r.self)===null||c===void 0?void 0:c(T),h,w,p);return{common:T,self:A,peers:Mr({},r.peers,P,v),peerOverrides:Mr({},h.peers,D,b)}})}Re.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const gf=m("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[S("svg",` + height: 1em; + width: 1em; + `)]),zt=re({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){sr("-base-icon",gf,fe(e,"clsPrefix"))},render(){return a("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),dr=re({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Yo();return()=>a(qt,{name:"icon-switch-transition",appear:o.value},t)}}),yi=re({name:"Add",render(){return a("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),mf=re({name:"ArrowDown",render(){return a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Xo(e,t){const o=re({render(){return t()}});return re({name:Nu(e),setup(){var r;const n=(r=Ee(Po,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const s=(i=n?.value)===null||i===void 0?void 0:i[e];return s?s():a(o,null)}}})}const nr=re({name:"Backward",render(){return a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),bf=re({name:"Checkmark",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},a("g",{fill:"none"},a("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Ss=re({name:"ChevronDown",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),xf=re({name:"ChevronDownFilled",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),wi=re({name:"ChevronRight",render(){return a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Cf=Xo("clear",()=>a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),yf=Xo("close",()=>a("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),pl=Xo("date",()=>a("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),wf=re({name:"Empty",render(){return a("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),a("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),bn=Xo("error",()=>a("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Sf=re({name:"Eye",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),a("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),kf=re({name:"EyeOff",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),a("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),a("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),a("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),a("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),ar=re({name:"FastBackward",render(){return a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),ir=re({name:"FastForward",render(){return a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Rf=re({name:"Filter",render(){return a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),lr=re({name:"Forward",render(){return a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Er=Xo("info",()=>a("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),gl=re({name:"More",render(){return a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),zf=re({name:"Remove",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}}),xn=Xo("success",()=>a("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Pf=re({name:"Switcher",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},a("path",{d:"M12 8l10 8l-10 8z"}))}}),$f=Xo("time",()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` + fill: none; + stroke: currentColor; + stroke-miterlimit: 10; + stroke-width: 32px; + `}),a("polyline",{points:"256 128 256 272 352 272",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))),Tf=Xo("to",()=>a("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{fill:"currentColor","fill-rule":"nonzero"},a("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),Cn=Xo("warning",()=>a("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},a("g",{"fill-rule":"nonzero"},a("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),{cubicBezierEaseInOut:Ff}=Co;function ho({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${Ff} !important`}={}){return[S("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),S("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),S("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}const If=m("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[S(">",[z("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[S("&:hover",` + color: var(--n-clear-color-hover)!important; + `),S("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),z("placeholder",` + display: flex; + `),z("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ho({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Ya=re({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return sr("-base-clear",If,fe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-base-clear`},a(dr,null,{default:()=>{var t,o;return this.show?a("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[a(zt,{clsPrefix:e},{default:()=>a(Cf,null)})])):a("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),Bf=m("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[R("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),S("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),at("disabled",[S("&:hover",` + color: var(--n-close-icon-color-hover); + `),S("&:hover::before",` + background-color: var(--n-close-color-hover); + `),S("&:focus::before",` + background-color: var(--n-close-color-hover); + `),S("&:active",` + color: var(--n-close-icon-color-pressed); + `),S("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),R("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),R("round",[S("&::before",` + border-radius: 50%; + `)])]),cr=re({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return sr("-base-close",Bf,fe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e;return a(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},a(zt,{clsPrefix:t},{default:()=>a(yf,null)}))}}}),yn=re({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:d}=e;d&&d()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:d}=e;d&&d()}function i(l){if(l.style.transition="none",e.width){const d=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${d}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const d=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${d}px`}l.offsetWidth}function s(l){var d;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(d=e.onAfterEnter)===null||d===void 0||d.call(e)}return()=>{const{group:l,width:d,appear:c,mode:u}=e,f=l?as:qt,v={name:d?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return l||(v.mode=u),a(f,v,t)}}}),ur=re({props:{onFocus:Function,onBlur:Function},setup(e){return()=>a("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Of=S([S("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),m("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[z("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[ho()]),z("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ho({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),z("container",` + animation: rotator 3s linear infinite both; + `,[z("icon",` + height: 1em; + width: 1em; + `)])])]),ha="1.6s",Mf={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Zo=re({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},Mf),setup(e){sr("-base-loading",Of,fe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return a("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},a(dr,null,{default:()=>this.show?a("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},a("div",{class:`${e}-base-loading__container`},a("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},a("g",null,a("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:ha,fill:"freeze",repeatCount:"indefinite"}),a("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},a("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:ha,fill:"freeze",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:ha,fill:"freeze",repeatCount:"indefinite"})))))):a("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:ml}=Co;function wn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=ml,leaveCubicBezier:n=ml}={}){return[S(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),S(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),S(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),S(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Ye={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Df=io(Ye.neutralBase),ks=io(Ye.neutralInvertBase),Af=`rgba(${ks.slice(0,3).join(", ")}, `;function kt(e){return`${Af+String(e)})`}function _f(e){const t=Array.from(ks);return t[3]=Number(e),qe(Df,t)}const De=Object.assign(Object.assign({name:"common"},Co),{baseColor:Ye.neutralBase,primaryColor:Ye.primaryDefault,primaryColorHover:Ye.primaryHover,primaryColorPressed:Ye.primaryActive,primaryColorSuppl:Ye.primarySuppl,infoColor:Ye.infoDefault,infoColorHover:Ye.infoHover,infoColorPressed:Ye.infoActive,infoColorSuppl:Ye.infoSuppl,successColor:Ye.successDefault,successColorHover:Ye.successHover,successColorPressed:Ye.successActive,successColorSuppl:Ye.successSuppl,warningColor:Ye.warningDefault,warningColorHover:Ye.warningHover,warningColorPressed:Ye.warningActive,warningColorSuppl:Ye.warningSuppl,errorColor:Ye.errorDefault,errorColorHover:Ye.errorHover,errorColorPressed:Ye.errorActive,errorColorSuppl:Ye.errorSuppl,textColorBase:Ye.neutralTextBase,textColor1:kt(Ye.alpha1),textColor2:kt(Ye.alpha2),textColor3:kt(Ye.alpha3),textColorDisabled:kt(Ye.alpha4),placeholderColor:kt(Ye.alpha4),placeholderColorDisabled:kt(Ye.alpha5),iconColor:kt(Ye.alpha4),iconColorDisabled:kt(Ye.alpha5),iconColorHover:kt(Number(Ye.alpha4)*1.25),iconColorPressed:kt(Number(Ye.alpha4)*.8),opacity1:Ye.alpha1,opacity2:Ye.alpha2,opacity3:Ye.alpha3,opacity4:Ye.alpha4,opacity5:Ye.alpha5,dividerColor:kt(Ye.alphaDivider),borderColor:kt(Ye.alphaBorder),closeIconColorHover:kt(Number(Ye.alphaClose)),closeIconColor:kt(Number(Ye.alphaClose)),closeIconColorPressed:kt(Number(Ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:kt(Ye.alpha4),clearColorHover:Kt(kt(Ye.alpha4),{alpha:1.25}),clearColorPressed:Kt(kt(Ye.alpha4),{alpha:.8}),scrollbarColor:kt(Ye.alphaScrollbar),scrollbarColorHover:kt(Ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:kt(Ye.alphaProgressRail),railColor:kt(Ye.alphaRail),popoverColor:Ye.neutralPopover,tableColor:Ye.neutralCard,cardColor:Ye.neutralCard,modalColor:Ye.neutralModal,bodyColor:Ye.neutralBody,tagColor:_f(Ye.alphaTag),avatarColor:kt(Ye.alphaAvatar),invertedColor:Ye.neutralBase,inputColor:kt(Ye.alphaInput),codeColor:kt(Ye.alphaCode),tabColor:kt(Ye.alphaTab),actionColor:kt(Ye.alphaAction),tableHeaderColor:kt(Ye.alphaAction),hoverColor:kt(Ye.alphaPending),tableColorHover:kt(Ye.alphaTablePending),tableColorStriped:kt(Ye.alphaTableStriped),pressedColor:kt(Ye.alphaPressed),opacityDisabled:Ye.alphaDisabled,inputColorDisabled:kt(Ye.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),nt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Hf=io(nt.neutralBase),Rs=io(nt.neutralInvertBase),Ef=`rgba(${Rs.slice(0,3).join(", ")}, `;function bl(e){return`${Ef+String(e)})`}function ro(e){const t=Array.from(Rs);return t[3]=Number(e),qe(Hf,t)}const dt=Object.assign(Object.assign({name:"common"},Co),{baseColor:nt.neutralBase,primaryColor:nt.primaryDefault,primaryColorHover:nt.primaryHover,primaryColorPressed:nt.primaryActive,primaryColorSuppl:nt.primarySuppl,infoColor:nt.infoDefault,infoColorHover:nt.infoHover,infoColorPressed:nt.infoActive,infoColorSuppl:nt.infoSuppl,successColor:nt.successDefault,successColorHover:nt.successHover,successColorPressed:nt.successActive,successColorSuppl:nt.successSuppl,warningColor:nt.warningDefault,warningColorHover:nt.warningHover,warningColorPressed:nt.warningActive,warningColorSuppl:nt.warningSuppl,errorColor:nt.errorDefault,errorColorHover:nt.errorHover,errorColorPressed:nt.errorActive,errorColorSuppl:nt.errorSuppl,textColorBase:nt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ro(nt.alpha4),placeholderColor:ro(nt.alpha4),placeholderColorDisabled:ro(nt.alpha5),iconColor:ro(nt.alpha4),iconColorHover:Kt(ro(nt.alpha4),{lightness:.75}),iconColorPressed:Kt(ro(nt.alpha4),{lightness:.9}),iconColorDisabled:ro(nt.alpha5),opacity1:nt.alpha1,opacity2:nt.alpha2,opacity3:nt.alpha3,opacity4:nt.alpha4,opacity5:nt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ro(Number(nt.alphaClose)),closeIconColorHover:ro(Number(nt.alphaClose)),closeIconColorPressed:ro(Number(nt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ro(nt.alpha4),clearColorHover:Kt(ro(nt.alpha4),{lightness:.75}),clearColorPressed:Kt(ro(nt.alpha4),{lightness:.9}),scrollbarColor:bl(nt.alphaScrollbar),scrollbarColorHover:bl(nt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ro(nt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:nt.neutralPopover,tableColor:nt.neutralCard,cardColor:nt.neutralCard,modalColor:nt.neutralModal,bodyColor:nt.neutralBody,tagColor:"#eee",avatarColor:ro(nt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ro(nt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:nt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Lf={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function zs(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},Lf),{height:r,width:n,borderRadius:i,color:t,colorHover:o})}const To={name:"Scrollbar",common:dt,self:zs},no={name:"Scrollbar",common:De,self:zs},Nf=m("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[S(">",[m("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),S(">",[m("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),S(">, +",[m("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[R("horizontal",` + height: var(--n-scrollbar-height); + `,[S(">",[z("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),R("horizontal--top",` + top: var(--n-scrollbar-rail-top-horizontal-top); + right: var(--n-scrollbar-rail-right-horizontal-top); + bottom: var(--n-scrollbar-rail-bottom-horizontal-top); + left: var(--n-scrollbar-rail-left-horizontal-top); + `),R("horizontal--bottom",` + top: var(--n-scrollbar-rail-top-horizontal-bottom); + right: var(--n-scrollbar-rail-right-horizontal-bottom); + bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); + left: var(--n-scrollbar-rail-left-horizontal-bottom); + `),R("vertical",` + width: var(--n-scrollbar-width); + `,[S(">",[z("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),R("vertical--left",` + top: var(--n-scrollbar-rail-top-vertical-left); + right: var(--n-scrollbar-rail-right-vertical-left); + bottom: var(--n-scrollbar-rail-bottom-vertical-left); + left: var(--n-scrollbar-rail-left-vertical-left); + `),R("vertical--right",` + top: var(--n-scrollbar-rail-top-vertical-right); + right: var(--n-scrollbar-rail-right-vertical-right); + bottom: var(--n-scrollbar-rail-bottom-vertical-right); + left: var(--n-scrollbar-rail-left-vertical-right); + `),R("disabled",[S(">",[z("scrollbar","pointer-events: none;")])]),S(">",[z("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[wn(),S("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),jf=Object.assign(Object.assign({},Re.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Ut=re({name:"Scrollbar",props:jf,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Qe(e),n=jt("Scrollbar",r,t),i=O(null),s=O(null),l=O(null),d=O(null),c=O(null),u=O(null),f=O(null),v=O(null),p=O(null),h=O(null),g=O(null),b=O(0),y=O(0),x=O(!1),F=O(!1);let P=!1,$=!1,w,k,D=0,T=0,A=0,N=0;const B=Eu(),E=Re("Scrollbar","-scrollbar",Nf,To,e,t),K=C(()=>{const{value:M}=v,{value:G}=u,{value:ve}=h;return M===null||G===null||ve===null?0:Math.min(M,ve*M/G+Dt(E.value.self.width)*1.5)}),L=C(()=>`${K.value}px`),te=C(()=>{const{value:M}=p,{value:G}=f,{value:ve}=g;return M===null||G===null||ve===null?0:ve*M/G+Dt(E.value.self.height)*1.5}),U=C(()=>`${te.value}px`),ie=C(()=>{const{value:M}=v,{value:G}=b,{value:ve}=u,{value:Fe}=h;if(M===null||ve===null||Fe===null)return 0;{const Be=ve-M;return Be?G/Be*(Fe-K.value):0}}),be=C(()=>`${ie.value}px`),ce=C(()=>{const{value:M}=p,{value:G}=y,{value:ve}=f,{value:Fe}=g;if(M===null||ve===null||Fe===null)return 0;{const Be=ve-M;return Be?G/Be*(Fe-te.value):0}}),V=C(()=>`${ce.value}px`),_=C(()=>{const{value:M}=v,{value:G}=u;return M!==null&&G!==null&&G>M}),I=C(()=>{const{value:M}=p,{value:G}=f;return M!==null&&G!==null&&G>M}),j=C(()=>{const{trigger:M}=e;return M==="none"||x.value}),J=C(()=>{const{trigger:M}=e;return M==="none"||F.value}),se=C(()=>{const{container:M}=e;return M?M():s.value}),xe=C(()=>{const{content:M}=e;return M?M():l.value}),Ie=(M,G)=>{if(!e.scrollable)return;if(typeof M=="number"){Ge(M,G??0,0,!1,"auto");return}const{left:ve,top:Fe,index:Be,elSize:W,position:ge,behavior:$e,el:We,debounce:ht=!0}=M;(ve!==void 0||Fe!==void 0)&&Ge(ve??0,Fe??0,0,!1,$e),We!==void 0?Ge(0,We.offsetTop,We.offsetHeight,ht,$e):Be!==void 0&&W!==void 0?Ge(0,Be*W,W,ht,$e):ge==="bottom"?Ge(0,Number.MAX_SAFE_INTEGER,0,!1,$e):ge==="top"&&Ge(0,0,0,!1,$e)},H=Ci(()=>{e.container||Ie({top:b.value,left:y.value})}),Pe=()=>{H.isDeactivated||me()},He=M=>{if(H.isDeactivated)return;const{onResize:G}=e;G&&G(M),me()},_e=(M,G)=>{if(!e.scrollable)return;const{value:ve}=se;ve&&(typeof M=="object"?ve.scrollBy(M):ve.scrollBy(M,G||0))};function Ge(M,G,ve,Fe,Be){const{value:W}=se;if(W){if(Fe){const{scrollTop:ge,offsetHeight:$e}=W;if(G>ge){G+ve<=ge+$e||W.scrollTo({left:M,top:G+ve-$e,behavior:Be});return}}W.scrollTo({left:M,top:G,behavior:Be})}}function Xe(){ue(),q(),me()}function ct(){ot()}function ot(){Ce(),ee()}function Ce(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{F.value=!1},e.duration)}function ee(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{x.value=!1},e.duration)}function ue(){w!==void 0&&window.clearTimeout(w),x.value=!0}function q(){k!==void 0&&window.clearTimeout(k),F.value=!0}function Q(M){const{onScroll:G}=e;G&&G(M),pe()}function pe(){const{value:M}=se;M&&(b.value=M.scrollTop,y.value=M.scrollLeft*(n?.value?-1:1))}function we(){const{value:M}=xe;M&&(u.value=M.offsetHeight,f.value=M.offsetWidth);const{value:G}=se;G&&(v.value=G.offsetHeight,p.value=G.offsetWidth);const{value:ve}=c,{value:Fe}=d;ve&&(g.value=ve.offsetWidth),Fe&&(h.value=Fe.offsetHeight)}function de(){const{value:M}=se;M&&(b.value=M.scrollTop,y.value=M.scrollLeft*(n?.value?-1:1),v.value=M.offsetHeight,p.value=M.offsetWidth,u.value=M.scrollHeight,f.value=M.scrollWidth);const{value:G}=c,{value:ve}=d;G&&(g.value=G.offsetWidth),ve&&(h.value=ve.offsetHeight)}function me(){e.scrollable&&(e.useUnifiedContainer?de():(we(),pe()))}function je(M){var G;return!(!((G=i.value)===null||G===void 0)&&G.contains(Ko(M)))}function oe(M){M.preventDefault(),M.stopPropagation(),$=!0,Lt("mousemove",window,Ue,!0),Lt("mouseup",window,it,!0),T=y.value,A=n?.value?window.innerWidth-M.clientX:M.clientX}function Ue(M){if(!$)return;w!==void 0&&window.clearTimeout(w),k!==void 0&&window.clearTimeout(k);const{value:G}=p,{value:ve}=f,{value:Fe}=te;if(G===null||ve===null)return;const W=(n?.value?window.innerWidth-M.clientX-A:M.clientX-A)*(ve-G)/(G-Fe),ge=ve-G;let $e=T+W;$e=Math.min(ge,$e),$e=Math.max($e,0);const{value:We}=se;if(We){We.scrollLeft=$e*(n?.value?-1:1);const{internalOnUpdateScrollLeft:ht}=e;ht&&ht($e)}}function it(M){M.preventDefault(),M.stopPropagation(),Yt("mousemove",window,Ue,!0),Yt("mouseup",window,it,!0),$=!1,me(),je(M)&&ot()}function Pt(M){M.preventDefault(),M.stopPropagation(),P=!0,Lt("mousemove",window,xt,!0),Lt("mouseup",window,pt,!0),D=b.value,N=M.clientY}function xt(M){if(!P)return;w!==void 0&&window.clearTimeout(w),k!==void 0&&window.clearTimeout(k);const{value:G}=v,{value:ve}=u,{value:Fe}=K;if(G===null||ve===null)return;const W=(M.clientY-N)*(ve-G)/(G-Fe),ge=ve-G;let $e=D+W;$e=Math.min(ge,$e),$e=Math.max($e,0);const{value:We}=se;We&&(We.scrollTop=$e)}function pt(M){M.preventDefault(),M.stopPropagation(),Yt("mousemove",window,xt,!0),Yt("mouseup",window,pt,!0),P=!1,me(),je(M)&&ot()}Ft(()=>{const{value:M}=I,{value:G}=_,{value:ve}=t,{value:Fe}=c,{value:Be}=d;Fe&&(M?Fe.classList.remove(`${ve}-scrollbar-rail--disabled`):Fe.classList.add(`${ve}-scrollbar-rail--disabled`)),Be&&(G?Be.classList.remove(`${ve}-scrollbar-rail--disabled`):Be.classList.add(`${ve}-scrollbar-rail--disabled`))}),to(()=>{e.container||me()}),bo(()=>{w!==void 0&&window.clearTimeout(w),k!==void 0&&window.clearTimeout(k),Yt("mousemove",window,xt,!0),Yt("mouseup",window,pt,!0)});const ft=C(()=>{const{common:{cubicBezierEaseInOut:M},self:{color:G,colorHover:ve,height:Fe,width:Be,borderRadius:W,railInsetHorizontalTop:ge,railInsetHorizontalBottom:$e,railInsetVerticalRight:We,railInsetVerticalLeft:ht,railColor:rt}}=E.value,{top:ne,right:ze,bottom:Le,left:Je}=Nt(ge),{top:yt,right:bt,bottom:Ct,left:X}=Nt($e),{top:ye,right:Ke,bottom:Y,left:he}=Nt(n?.value?ul(We):We),{top:ke,right:Ae,bottom:Ne,left:st}=Nt(n?.value?ul(ht):ht);return{"--n-scrollbar-bezier":M,"--n-scrollbar-color":G,"--n-scrollbar-color-hover":ve,"--n-scrollbar-border-radius":W,"--n-scrollbar-width":Be,"--n-scrollbar-height":Fe,"--n-scrollbar-rail-top-horizontal-top":ne,"--n-scrollbar-rail-right-horizontal-top":ze,"--n-scrollbar-rail-bottom-horizontal-top":Le,"--n-scrollbar-rail-left-horizontal-top":Je,"--n-scrollbar-rail-top-horizontal-bottom":yt,"--n-scrollbar-rail-right-horizontal-bottom":bt,"--n-scrollbar-rail-bottom-horizontal-bottom":Ct,"--n-scrollbar-rail-left-horizontal-bottom":X,"--n-scrollbar-rail-top-vertical-right":ye,"--n-scrollbar-rail-right-vertical-right":Ke,"--n-scrollbar-rail-bottom-vertical-right":Y,"--n-scrollbar-rail-left-vertical-right":he,"--n-scrollbar-rail-top-vertical-left":ke,"--n-scrollbar-rail-right-vertical-left":Ae,"--n-scrollbar-rail-bottom-vertical-left":Ne,"--n-scrollbar-rail-left-vertical-left":st,"--n-scrollbar-rail-color":rt}}),Me=o?lt("scrollbar",void 0,ft,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ie,scrollBy:_e,sync:me,syncUnifiedContainer:de,handleMouseEnterWrapper:Xe,handleMouseLeaveWrapper:ct}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:b,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:d,xRailRef:c,needYBar:_,needXBar:I,yBarSizePx:L,xBarSizePx:U,yBarTopPx:be,xBarLeftPx:V,isShowXBar:j,isShowYBar:J,isIos:B,handleScroll:Q,handleContentResize:Pe,handleContainerResize:He,handleYScrollMouseDown:Pt,handleXScrollMouseDown:oe,cssVars:o?void 0:ft,themeClass:Me?.themeClass,onRender:Me?.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:r,rtlEnabled:n,internalHoistYRail:i,yPlacement:s,xPlacement:l,xScrollable:d}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(p,h)=>a("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${s}`,p],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},a(c?Ka:qt,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?a("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var p,h;return(p=this.onRender)===null||p===void 0||p.call(this),a("div",co(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):a("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},a(_o,{onResize:this.handleContentResize},{default:()=>a("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),d&&a("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},a(c?Ka:qt,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?a("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},v=this.container?f():a(_o,{onResize:this.handleContainerResize},{default:f});return i?a(Gt,null,v,u(this.themeClass,this.cssVars)):v}}),Gn=Ut,Vf={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Ps(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},Vf),{fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:o,extraTextColor:r})}const Sn={name:"Empty",common:dt,self:Ps},$r={name:"Empty",common:De,self:Ps},Wf=m("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[z("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[S("+",[z("description",` + margin-top: 8px; + `)])]),z("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),z("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),Uf=Object.assign(Object.assign({},Re.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Xn=re({name:"Empty",props:Uf,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:r}=Qe(e),n=Re("Empty","-empty",Wf,Sn,e,t),{localeRef:i}=$o("Empty"),s=C(()=>{var u,f,v;return(u=e.description)!==null&&u!==void 0?u:(v=(f=r?.value)===null||f===void 0?void 0:f.Empty)===null||v===void 0?void 0:v.description}),l=C(()=>{var u,f;return((f=(u=r?.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>a(wf,null))}),d=C(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:f},self:{[le("iconSize",u)]:v,[le("fontSize",u)]:p,textColor:h,iconColor:g,extraTextColor:b}}=n.value;return{"--n-icon-size":v,"--n-font-size":p,"--n-bezier":f,"--n-text-color":h,"--n-icon-color":g,"--n-extra-text-color":b}}),c=o?lt("empty",C(()=>{let u="";const{size:f}=e;return u+=f[0],u}),d,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:C(()=>s.value||i.value.description),cssVars:o?void 0:d,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o?.(),a("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?a("div",{class:`${t}-empty__icon`},e.icon?e.icon():a(zt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?a("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?a("div",{class:`${t}-empty__extra`},e.extra()):null)}}),Kf={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function $s(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:s,textColorDisabled:l,primaryColor:d,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,fontSizeHuge:g,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:F,heightHuge:P}=e;return Object.assign(Object.assign({},Kf),{optionFontSizeTiny:f,optionFontSizeSmall:v,optionFontSizeMedium:p,optionFontSizeLarge:h,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:y,optionHeightMedium:x,optionHeightLarge:F,optionHeightHuge:P,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:s,optionTextColorDisabled:l,optionTextColorActive:d,optionOpacityDisabled:c,optionCheckColor:d,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:d})}const Si={name:"InternalSelectMenu",common:dt,peers:{Scrollbar:To,Empty:Sn},self:$s},kn={name:"InternalSelectMenu",common:De,peers:{Scrollbar:no,Empty:$r},self:$s},xl=re({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:r}=Ee(mi);return{labelField:o,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:r,tmNode:{rawNode:n}}=this,i=r?.(n),s=t?t(n,!1):Rt(n[this.labelField],n,!1),l=a("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i?.class]}),s);return n.render?n.render({node:l,option:n}):o?o({node:l,option:n,selected:!1}):l}});function qf(e,t){return a(qt,{name:"fade-in-scale-up-transition"},{default:()=>e?a(zt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>a(bf)}):null})}const Cl=re({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:r,valueSetRef:n,renderLabelRef:i,renderOptionRef:s,labelFieldRef:l,valueFieldRef:d,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:f,handleOptionMouseEnter:v}=Ee(mi),p=tt(()=>{const{value:y}=o;return y?e.tmNode.key===y.key:!1});function h(y){const{tmNode:x}=e;x.disabled||f(y,x)}function g(y){const{tmNode:x}=e;x.disabled||v(y,x)}function b(y){const{tmNode:x}=e,{value:F}=p;x.disabled||F||v(y,x)}return{multiple:r,isGrouped:tt(()=>{const{tmNode:y}=e,{parent:x}=y;return x&&x.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:p,isSelected:tt(()=>{const{value:y}=t,{value:x}=r;if(y===null)return!1;const F=e.tmNode.rawNode[d.value];if(x){const{value:P}=n;return P.has(F)}else return y===F}),labelField:l,renderLabel:i,renderOption:s,handleMouseMove:b,handleMouseEnter:g,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:r,isGrouped:n,showCheckmark:i,nodeProps:s,renderOption:l,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:f}=this,v=qf(o,e),p=d?[d(t,o),i&&v]:[Rt(t[this.labelField],t,o),i&&v],h=s?.(t),g=a("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[h?.style||"",t.style||""],onClick:nn([c,h?.onClick]),onMouseenter:nn([u,h?.onMouseenter]),onMousemove:nn([f,h?.onMousemove])}),a("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),{cubicBezierEaseIn:yl,cubicBezierEaseOut:wl}=Co;function fr({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[S("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${yl}, transform ${t} ${yl} ${n&&`,${n}`}`}),S("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wl}, transform ${t} ${wl} ${n&&`,${n}`}`}),S("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),S("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Yf=m("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[m("scrollbar",` + max-height: var(--n-height); + `),m("virtual-list",` + max-height: var(--n-height); + `),m("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[z("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),m("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),m("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),z("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),z("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),z("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),z("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),m("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),m("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[R("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),S("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),S("&:active",` + color: var(--n-option-text-color-pressed); + `),R("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),R("pending",[S("&::before",` + background-color: var(--n-option-color-pending); + `)]),R("selected",` + color: var(--n-option-text-color-active); + `,[S("&::before",` + background-color: var(--n-option-color-active); + `),R("pending",[S("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),R("disabled",` + cursor: not-allowed; + `,[at("selected",` + color: var(--n-option-text-color-disabled); + `),R("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),z("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[fr({enterScale:"0.5"})])])]),Ts=re({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=jt("InternalSelectMenu",o,t),n=Re("InternalSelectMenu","-internal-select-menu",Yf,Si,e,fe(e,"clsPrefix")),i=O(null),s=O(null),l=O(null),d=C(()=>e.treeMate.getFlattenedNodes()),c=C(()=>ls(d.value)),u=O(null);function f(){const{treeMate:_}=e;let I=null;const{value:j}=e;j===null?I=_.getFirstAvailableNode():(e.multiple?I=_.getNode((j||[])[(j||[]).length-1]):I=_.getNode(j),(!I||I.disabled)&&(I=_.getFirstAvailableNode())),K(I||null)}function v(){const{value:_}=u;_&&!e.treeMate.getNode(_.key)&&(u.value=null)}let p;gt(()=>e.show,_=>{_?p=gt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?f():v(),Tt(L)):v()},{immediate:!0}):p?.()},{immediate:!0}),bo(()=>{p?.()});const h=C(()=>Dt(n.value.self[le("optionHeight",e.size)])),g=C(()=>Nt(n.value.self[le("padding",e.size)])),b=C(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),y=C(()=>{const _=d.value;return _&&_.length===0});function x(_){const{onToggle:I}=e;I&&I(_)}function F(_){const{onScroll:I}=e;I&&I(_)}function P(_){var I;(I=l.value)===null||I===void 0||I.sync(),F(_)}function $(){var _;(_=l.value)===null||_===void 0||_.sync()}function w(){const{value:_}=u;return _||null}function k(_,I){I.disabled||K(I,!1)}function D(_,I){I.disabled||x(I)}function T(_){var I;Jt(_,"action")||(I=e.onKeyup)===null||I===void 0||I.call(e,_)}function A(_){var I;Jt(_,"action")||(I=e.onKeydown)===null||I===void 0||I.call(e,_)}function N(_){var I;(I=e.onMousedown)===null||I===void 0||I.call(e,_),!e.focusable&&_.preventDefault()}function B(){const{value:_}=u;_&&K(_.getNext({loop:!0}),!0)}function E(){const{value:_}=u;_&&K(_.getPrev({loop:!0}),!0)}function K(_,I=!1){u.value=_,I&&L()}function L(){var _,I;const j=u.value;if(!j)return;const J=c.value(j.key);J!==null&&(e.virtualScroll?(_=s.value)===null||_===void 0||_.scrollTo({index:J}):(I=l.value)===null||I===void 0||I.scrollTo({index:J,elSize:h.value}))}function te(_){var I,j;!((I=i.value)===null||I===void 0)&&I.contains(_.target)&&((j=e.onFocus)===null||j===void 0||j.call(e,_))}function U(_){var I,j;!((I=i.value)===null||I===void 0)&&I.contains(_.relatedTarget)||(j=e.onBlur)===null||j===void 0||j.call(e,_)}et(mi,{handleOptionMouseEnter:k,handleOptionClick:D,valueSetRef:b,pendingTmNodeRef:u,nodePropsRef:fe(e,"nodeProps"),showCheckmarkRef:fe(e,"showCheckmark"),multipleRef:fe(e,"multiple"),valueRef:fe(e,"value"),renderLabelRef:fe(e,"renderLabel"),renderOptionRef:fe(e,"renderOption"),labelFieldRef:fe(e,"labelField"),valueFieldRef:fe(e,"valueField")}),et(us,i),to(()=>{const{value:_}=l;_&&_.sync()});const ie=C(()=>{const{size:_}=e,{common:{cubicBezierEaseInOut:I},self:{height:j,borderRadius:J,color:se,groupHeaderTextColor:xe,actionDividerColor:Ie,optionTextColorPressed:H,optionTextColor:Pe,optionTextColorDisabled:He,optionTextColorActive:_e,optionOpacityDisabled:Ge,optionCheckColor:Xe,actionTextColor:ct,optionColorPending:ot,optionColorActive:Ce,loadingColor:ee,loadingSize:ue,optionColorActivePending:q,[le("optionFontSize",_)]:Q,[le("optionHeight",_)]:pe,[le("optionPadding",_)]:we}}=n.value;return{"--n-height":j,"--n-action-divider-color":Ie,"--n-action-text-color":ct,"--n-bezier":I,"--n-border-radius":J,"--n-color":se,"--n-option-font-size":Q,"--n-group-header-text-color":xe,"--n-option-check-color":Xe,"--n-option-color-pending":ot,"--n-option-color-active":Ce,"--n-option-color-active-pending":q,"--n-option-height":pe,"--n-option-opacity-disabled":Ge,"--n-option-text-color":Pe,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":He,"--n-option-text-color-pressed":H,"--n-option-padding":we,"--n-option-padding-left":Nt(we,"left"),"--n-option-padding-right":Nt(we,"right"),"--n-loading-color":ee,"--n-loading-size":ue}}),{inlineThemeDisabled:be}=e,ce=be?lt("internal-select-menu",C(()=>e.size[0]),ie,e):void 0,V={selfRef:i,next:B,prev:E,getPendingTmNode:w};return gs(i,e.onResize),Object.assign({mergedTheme:n,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:s,scrollbarRef:l,itemSize:h,padding:g,flattenedNodes:d,empty:y,virtualListContainer(){const{value:_}=s;return _?.listElRef},virtualListContent(){const{value:_}=s;return _?.itemsElRef},doScroll:F,handleFocusin:te,handleFocusout:U,handleKeyUp:T,handleKeyDown:A,handleMouseDown:N,handleVirtualListResize:$,handleVirtualListScroll:P,cssVars:be?void 0:ie,themeClass:ce?.themeClass,onRender:ce?.onRender},V)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:r,themeClass:n,onRender:i}=this;return i?.(),a("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,n,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},mt(e.header,s=>s&&a("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},s)),this.loading?a("div",{class:`${o}-base-select-menu__loading`},a(Zo,{clsPrefix:o,strokeWidth:20})):this.empty?a("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[a(Xn,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty,size:this.size})])):a(Ut,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?a(wr,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:s})=>s.isGroup?a(xl,{key:s.key,clsPrefix:o,tmNode:s}):s.ignored?null:a(Cl,{clsPrefix:o,key:s.key,tmNode:s})}):a("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(s=>s.isGroup?a(xl,{key:s.key,clsPrefix:o,tmNode:s}):a(Cl,{clsPrefix:o,key:s.key,tmNode:s})))}),mt(e.action,s=>s&&[a("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},s),a(ur,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Gf={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Fs(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:s}=e;return Object.assign(Object.assign({},Gf),{fontSize:i,borderRadius:n,color:o,dividerColor:s,textColor:r,boxShadow:t})}const Wr={name:"Popover",common:dt,peers:{Scrollbar:To},self:Fs},Tr={name:"Popover",common:De,peers:{Scrollbar:no},self:Fs},va={top:"bottom",bottom:"top",left:"right",right:"left"},Xt="var(--n-arrow-height) * 1.414",Xf=S([m("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[S(">",[m("scrollbar",` + height: inherit; + max-height: inherit; + `)]),at("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[at("scrollable",[at("show-header-or-footer","padding: var(--n-padding);")])]),z("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),z("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),R("scrollable, show-header-or-footer",[z("content",` + padding: var(--n-padding); + `)])]),m("popover-shared",` + transform-origin: inherit; + `,[m("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[m("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${Xt}); + height: calc(${Xt}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),S("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),S("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),S("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),S("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),So("top-start",` + top: calc(${Xt} / -2); + left: calc(${No("top-start")} - var(--v-offset-left)); + `),So("top",` + top: calc(${Xt} / -2); + transform: translateX(calc(${Xt} / -2)) rotate(45deg); + left: 50%; + `),So("top-end",` + top: calc(${Xt} / -2); + right: calc(${No("top-end")} + var(--v-offset-left)); + `),So("bottom-start",` + bottom: calc(${Xt} / -2); + left: calc(${No("bottom-start")} - var(--v-offset-left)); + `),So("bottom",` + bottom: calc(${Xt} / -2); + transform: translateX(calc(${Xt} / -2)) rotate(45deg); + left: 50%; + `),So("bottom-end",` + bottom: calc(${Xt} / -2); + right: calc(${No("bottom-end")} + var(--v-offset-left)); + `),So("left-start",` + left: calc(${Xt} / -2); + top: calc(${No("left-start")} - var(--v-offset-top)); + `),So("left",` + left: calc(${Xt} / -2); + transform: translateY(calc(${Xt} / -2)) rotate(45deg); + top: 50%; + `),So("left-end",` + left: calc(${Xt} / -2); + bottom: calc(${No("left-end")} + var(--v-offset-top)); + `),So("right-start",` + right: calc(${Xt} / -2); + top: calc(${No("right-start")} - var(--v-offset-top)); + `),So("right",` + right: calc(${Xt} / -2); + transform: translateY(calc(${Xt} / -2)) rotate(45deg); + top: 50%; + `),So("right-end",` + right: calc(${Xt} / -2); + bottom: calc(${No("right-end")} + var(--v-offset-top)); + `),...ju({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Xt}) / 2)`,d=No(n);return S(`[v-placement="${n}"] >`,[m("popover-shared",[R("center-arrow",[m("popover-arrow",`${t}: calc(max(${l}, ${d}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function No(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function So(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return S(`[v-placement="${e}"] >`,[m("popover-shared",` + margin-${va[o]}: var(--n-space); + `,[R("show-arrow",` + margin-${va[o]}: var(--n-space-arrow); + `),R("overlap",` + margin: 0; + `),Zu("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${o}: 100%; + ${va[o]}: auto; + ${r} + `,[m("popover-arrow",t)])])])}const Is=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Bs({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return a("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},a("div",{class:[`${n}-popover-arrow`,e],style:t}))}const Zf=re({name:"PopoverBody",inheritAttrs:!1,props:Is,setup(e,{slots:t,attrs:o}){const{namespaceRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:i,mergedRtlRef:s}=Qe(e),l=Re("Popover","-popover",Xf,Wr,e,n),d=jt("Popover",s,n),c=O(null),u=Ee("NPopover"),f=O(null),v=O(e.show),p=O(!1);Ft(()=>{const{show:T}=e;T&&!nf()&&!e.internalDeactivateImmediately&&(p.value=!0)});const h=C(()=>{const{trigger:T,onClickoutside:A}=e,N=[],{positionManuallyRef:{value:B}}=u;return B||(T==="click"&&!A&&N.push([Lo,w,void 0,{capture:!0}]),T==="hover"&&N.push([Hu,$])),A&&N.push([Lo,w,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&p.value)&&N.push([Eo,e.show]),N}),g=C(()=>{const{common:{cubicBezierEaseInOut:T,cubicBezierEaseIn:A,cubicBezierEaseOut:N},self:{space:B,spaceArrow:E,padding:K,fontSize:L,textColor:te,dividerColor:U,color:ie,boxShadow:be,borderRadius:ce,arrowHeight:V,arrowOffset:_,arrowOffsetVertical:I}}=l.value;return{"--n-box-shadow":be,"--n-bezier":T,"--n-bezier-ease-in":A,"--n-bezier-ease-out":N,"--n-font-size":L,"--n-text-color":te,"--n-color":ie,"--n-divider-color":U,"--n-border-radius":ce,"--n-arrow-height":V,"--n-arrow-offset":_,"--n-arrow-offset-vertical":I,"--n-padding":K,"--n-space":B,"--n-space-arrow":E}}),b=C(()=>{const T=e.width==="trigger"?void 0:_t(e.width),A=[];T&&A.push({width:T});const{maxWidth:N,minWidth:B}=e;return N&&A.push({maxWidth:_t(N)}),B&&A.push({maxWidth:_t(B)}),i||A.push(g.value),A}),y=i?lt("popover",void 0,g,e):void 0;u.setBodyInstance({syncPosition:x}),bo(()=>{u.setBodyInstance(null)}),gt(fe(e,"show"),T=>{e.animated||(T?v.value=!0:v.value=!1)});function x(){var T;(T=c.value)===null||T===void 0||T.syncPosition()}function F(T){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter(T)}function P(T){e.trigger==="hover"&&e.keepAliveOnHover&&u.handleMouseLeave(T)}function $(T){e.trigger==="hover"&&!k().contains(Ko(T))&&u.handleMouseMoveOutside(T)}function w(T){(e.trigger==="click"&&!k().contains(Ko(T))||e.onClickoutside)&&u.handleClickOutside(T)}function k(){return u.getTriggerElement()}et(Vr,f),et(pn,null),et(gn,null);function D(){if(y?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&p.value))return null;let A;const N=u.internalRenderBodyRef.value,{value:B}=n;if(N)A=N([`${B}-popover-shared`,d?.value&&`${B}-popover--rtl`,y?.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],f,b.value,F,P);else{const{value:E}=u.extraClassRef,{internalTrapFocus:K}=e,L=!Ar(t.header)||!Ar(t.footer),te=()=>{var U,ie;const be=L?a(Gt,null,mt(t.header,_=>_?a("div",{class:[`${B}-popover__header`,e.headerClass],style:e.headerStyle},_):null),mt(t.default,_=>_?a("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t):null),mt(t.footer,_=>_?a("div",{class:[`${B}-popover__footer`,e.footerClass],style:e.footerStyle},_):null)):e.scrollable?(U=t.default)===null||U===void 0?void 0:U.call(t):a("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t),ce=e.scrollable?a(Gn,{themeOverrides:l.value.peerOverrides.Scrollbar,theme:l.value.peers.Scrollbar,contentClass:L?void 0:`${B}-popover__content ${(ie=e.contentClass)!==null&&ie!==void 0?ie:""}`,contentStyle:L?void 0:e.contentStyle},{default:()=>be}):be,V=e.showArrow?Bs({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:B}):null;return[ce,V]};A=a("div",co({class:[`${B}-popover`,`${B}-popover-shared`,d?.value&&`${B}-popover--rtl`,y?.themeClass.value,E.map(U=>`${B}-${U}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:L,[`${B}-popover--raw`]:e.raw,[`${B}-popover-shared--overlap`]:e.overlap,[`${B}-popover-shared--show-arrow`]:e.showArrow,[`${B}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:f,style:b.value,onKeydown:u.handleKeydown,onMouseenter:F,onMouseleave:P},o),K?a(fi,{active:e.show,autoFocus:!0},{default:te}):te())}return uo(A,h.value)}return{displayed:p,namespace:r,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:c,adjustedTo:Zt(e),followerEnabled:v,renderContentNode:D}},render(){return a(kr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Zt.tdkey},{default:()=>this.animated?a(qt,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Qf=Object.keys(Is),Jf={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function eh(e,t,o){Jf[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[r],i=o[r];n?e.props[r]=(...s)=>{n(...s),i(...s)}:e.props[r]=i})}const Lr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Zt.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},th=Object.assign(Object.assign(Object.assign({},Re.props),Lr),{internalOnAfterLeave:Function,internalRenderBody:Function}),Rn=re({name:"Popover",inheritAttrs:!1,props:th,slots:Object,__popover__:!0,setup(e){const t=Yo(),o=O(null),r=C(()=>e.show),n=O(e.defaultShow),i=$t(r,n),s=tt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!L?.()},d=()=>l()?!1:i.value,c=rr(e,["arrow","showArrow"]),u=C(()=>e.overlap?!1:c.value);let f=null;const v=O(null),p=O(null),h=tt(()=>e.x!==void 0&&e.y!==void 0);function g(L){const{"onUpdate:show":te,onUpdateShow:U,onShow:ie,onHide:be}=e;n.value=L,te&&ae(te,L),U&&ae(U,L),L&&ie&&ae(ie,!0),L&&be&&ae(be,!1)}function b(){f&&f.syncPosition()}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function x(){const{value:L}=p;L&&(window.clearTimeout(L),p.value=null)}function F(){const L=l();if(e.trigger==="focus"&&!L){if(d())return;g(!0)}}function P(){const L=l();if(e.trigger==="focus"&&!L){if(!d())return;g(!1)}}function $(){const L=l();if(e.trigger==="hover"&&!L){if(x(),v.value!==null||d())return;const te=()=>{g(!0),v.value=null},{delay:U}=e;U===0?te():v.value=window.setTimeout(te,U)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),p.value!==null||!d())return;const te=()=>{g(!1),p.value=null},{duration:U}=e;U===0?te():p.value=window.setTimeout(te,U)}}function k(){w()}function D(L){var te;d()&&(e.trigger==="click"&&(y(),x(),g(!1)),(te=e.onClickoutside)===null||te===void 0||te.call(e,L))}function T(){if(e.trigger==="click"&&!l()){y(),x();const L=!d();g(L)}}function A(L){e.internalTrapFocus&&L.key==="Escape"&&(y(),x(),g(!1))}function N(L){n.value=L}function B(){var L;return(L=o.value)===null||L===void 0?void 0:L.targetRef}function E(L){f=L}return et("NPopover",{getTriggerElement:B,handleKeydown:A,handleMouseEnter:$,handleMouseLeave:w,handleClickOutside:D,handleMouseMoveOutside:k,setBodyInstance:E,positionManuallyRef:h,isMountedRef:t,zIndexRef:fe(e,"zIndex"),extraClassRef:fe(e,"internalExtraClass"),internalRenderBodyRef:fe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:h,mergedShowConsideringDisabledProp:s,uncontrolledShow:n,mergedShowArrow:u,getMergedShow:d,setShow:N,handleClick:T,handleMouseEnter:$,handleMouseLeave:w,handleFocus:F,handleBlur:P,syncPosition:b}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(r=sf(o,"trigger"),r)){r=an(r),r=r.type===Du?a("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:s}=this,l=[i,...s],d={onBlur:c=>{l.forEach(u=>{u.onBlur(c)})},onFocus:c=>{l.forEach(u=>{u.onFocus(c)})},onClick:c=>{l.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{l.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{l.forEach(u=>{u.onMouseleave(c)})}};eh(r,s?"nested":t?"manual":this.trigger,d)}}return a(Rr,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?uo(a("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[hi,{enabled:i,zIndex:this.zIndex}]]):null,t?null:a(zr,null,{default:()=>r}),a(Zf,mo(this.$props,Qf,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var s,l;return(l=(s=this.$slots).default)===null||l===void 0?void 0:l.call(s)},header:()=>{var s,l;return(l=(s=this.$slots).header)===null||l===void 0?void 0:l.call(s)},footer:()=>{var s,l;return(l=(s=this.$slots).footer)===null||l===void 0?void 0:l.call(s)}})]}})}}),Os={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Ms={name:"Tag",common:De,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:y,borderRadiusSmall:x,fontSizeMini:F,fontSizeTiny:P,fontSizeSmall:$,fontSizeMedium:w,heightMini:k,heightTiny:D,heightSmall:T,heightMedium:A,buttonColor2Hover:N,buttonColor2Pressed:B,fontWeightStrong:E}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:x,heightTiny:k,heightSmall:D,heightMedium:T,heightLarge:A,borderRadius:x,opacityDisabled:v,fontSizeTiny:F,fontSizeSmall:P,fontSizeMedium:$,fontSizeLarge:w,fontWeightStrong:E,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:N,colorPressedCheckable:B,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:y,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Kt(n,{lightness:.7}),closeIconColorHoverPrimary:Kt(n,{lightness:.7}),closeIconColorPressedPrimary:Kt(n,{lightness:.7}),closeColorHoverPrimary:Se(n,{alpha:.16}),closeColorPressedPrimary:Se(n,{alpha:.12}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Kt(i,{alpha:.7}),closeIconColorHoverInfo:Kt(i,{alpha:.7}),closeIconColorPressedInfo:Kt(i,{alpha:.7}),closeColorHoverInfo:Se(i,{alpha:.16}),closeColorPressedInfo:Se(i,{alpha:.12}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Kt(s,{alpha:.7}),closeIconColorHoverSuccess:Kt(s,{alpha:.7}),closeIconColorPressedSuccess:Kt(s,{alpha:.7}),closeColorHoverSuccess:Se(s,{alpha:.16}),closeColorPressedSuccess:Se(s,{alpha:.12}),borderWarning:`1px solid ${Se(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Kt(l,{alpha:.7}),closeIconColorHoverWarning:Kt(l,{alpha:.7}),closeIconColorPressedWarning:Kt(l,{alpha:.7}),closeColorHoverWarning:Se(l,{alpha:.16}),closeColorPressedWarning:Se(l,{alpha:.11}),borderError:`1px solid ${Se(d,{alpha:.3})}`,textColorError:d,colorError:Se(d,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Kt(d,{alpha:.7}),closeIconColorHoverError:Kt(d,{alpha:.7}),closeIconColorPressedError:Kt(d,{alpha:.7}),closeColorHoverError:Se(d,{alpha:.16}),closeColorPressedError:Se(d,{alpha:.12})})}};function oh(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,opacityDisabled:f,tagColor:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:y,fontSizeTiny:x,fontSizeSmall:F,fontSizeMedium:P,heightMini:$,heightTiny:w,heightSmall:k,heightMedium:D,closeColorHover:T,closeColorPressed:A,buttonColor2Hover:N,buttonColor2Pressed:B,fontWeightStrong:E}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:b,heightTiny:$,heightSmall:w,heightMedium:k,heightLarge:D,borderRadius:b,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:F,fontSizeLarge:P,fontWeightStrong:E,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:N,colorPressedCheckable:B,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:v,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:T,closeColorPressed:A,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.12}),colorBorderedPrimary:Se(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:Se(n,{alpha:.12}),closeColorPressedPrimary:Se(n,{alpha:.18}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.12}),colorBorderedInfo:Se(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Se(i,{alpha:.12}),closeColorPressedInfo:Se(i,{alpha:.18}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.12}),colorBorderedSuccess:Se(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:Se(s,{alpha:.12}),closeColorPressedSuccess:Se(s,{alpha:.18}),borderWarning:`1px solid ${Se(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.15}),colorBorderedWarning:Se(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Se(l,{alpha:.12}),closeColorPressedWarning:Se(l,{alpha:.18}),borderError:`1px solid ${Se(d,{alpha:.23})}`,textColorError:d,colorError:Se(d,{alpha:.1}),colorBorderedError:Se(d,{alpha:.08}),closeIconColorError:d,closeIconColorHoverError:d,closeIconColorPressedError:d,closeColorHoverError:Se(d,{alpha:.12}),closeColorPressedError:Se(d,{alpha:.18})})}const Ds={name:"Tag",common:dt,self:oh},As={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},rh=m("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[R("strong",` + font-weight: var(--n-font-weight-strong); + `),z("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),z("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),z("avatar",` + display: flex; + margin: 0 6px 0 0; + `),z("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),R("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[z("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),z("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),R("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),R("icon, avatar",[R("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),R("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),R("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[at("disabled",[S("&:hover","background-color: var(--n-color-hover-checkable);",[at("checked","color: var(--n-text-color-hover-checkable);")]),S("&:active","background-color: var(--n-color-pressed-checkable);",[at("checked","color: var(--n-text-color-pressed-checkable);")])]),R("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[at("disabled",[S("&:hover","background-color: var(--n-color-checked-hover);"),S("&:active","background-color: var(--n-color-checked-pressed);")])])])]),nh=Object.assign(Object.assign(Object.assign({},Re.props),As),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),_s="n-tag",Vn=re({name:"Tag",props:nh,slots:Object,setup(e){const t=O(null),{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=Re("Tag","-tag",rh,Ds,e,r);et(_s,{roundRef:fe(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:h,onUpdateChecked:g,"onUpdate:checked":b}=e;g&&g(!p),b&&b(!p),h&&h(!p)}}function d(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&ae(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},u=jt("Tag",i,r),f=C(()=>{const{type:p,size:h,color:{color:g,textColor:b}={}}=e,{common:{cubicBezierEaseInOut:y},self:{padding:x,closeMargin:F,borderRadius:P,opacityDisabled:$,textColorCheckable:w,textColorHoverCheckable:k,textColorPressedCheckable:D,textColorChecked:T,colorCheckable:A,colorHoverCheckable:N,colorPressedCheckable:B,colorChecked:E,colorCheckedHover:K,colorCheckedPressed:L,closeBorderRadius:te,fontWeightStrong:U,[le("colorBordered",p)]:ie,[le("closeSize",h)]:be,[le("closeIconSize",h)]:ce,[le("fontSize",h)]:V,[le("height",h)]:_,[le("color",p)]:I,[le("textColor",p)]:j,[le("border",p)]:J,[le("closeIconColor",p)]:se,[le("closeIconColorHover",p)]:xe,[le("closeIconColorPressed",p)]:Ie,[le("closeColorHover",p)]:H,[le("closeColorPressed",p)]:Pe}}=s.value,He=Nt(F);return{"--n-font-weight-strong":U,"--n-avatar-size-override":`calc(${_} - 8px)`,"--n-bezier":y,"--n-border-radius":P,"--n-border":J,"--n-close-icon-size":ce,"--n-close-color-pressed":Pe,"--n-close-color-hover":H,"--n-close-border-radius":te,"--n-close-icon-color":se,"--n-close-icon-color-hover":xe,"--n-close-icon-color-pressed":Ie,"--n-close-icon-color-disabled":se,"--n-close-margin-top":He.top,"--n-close-margin-right":He.right,"--n-close-margin-bottom":He.bottom,"--n-close-margin-left":He.left,"--n-close-size":be,"--n-color":g||(o.value?ie:I),"--n-color-checkable":A,"--n-color-checked":E,"--n-color-checked-hover":K,"--n-color-checked-pressed":L,"--n-color-hover-checkable":N,"--n-color-pressed-checkable":B,"--n-font-size":V,"--n-height":_,"--n-opacity-disabled":$,"--n-padding":x,"--n-text-color":b||j,"--n-text-color-checkable":w,"--n-text-color-checked":T,"--n-text-color-hover-checkable":k,"--n-text-color-pressed-checkable":D}}),v=n?lt("tag",C(()=>{let p="";const{type:h,size:g,color:{color:b,textColor:y}={}}=e;return p+=h[0],p+=g[0],b&&(p+=`a${sn(b)}`),y&&(p+=`b${sn(y)}`),o.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:r,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:d,cssVars:n?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:r,closable:n,color:{borderColor:i}={},round:s,onRender:l,$slots:d}=this;l?.();const c=mt(d.avatar,f=>f&&a("div",{class:`${o}-tag__avatar`},f)),u=mt(d.icon,f=>f&&a("div",{class:`${o}-tag__icon`},f));return a("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:r,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:s,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:u,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,a("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?a(cr,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?a("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),Hs=re({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return a(Zo,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?a(Ya,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>a(zt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[a(Ss,null)])})}):null})}}}),Es={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},ki={name:"InternalSelection",common:De,peers:{Popover:Tr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:v,iconColorDisabled:p,clearColor:h,clearColorHover:g,clearColorPressed:b,placeholderColor:y,placeholderColorDisabled:x,fontSizeTiny:F,fontSizeSmall:P,fontSizeMedium:$,fontSizeLarge:w,heightTiny:k,heightSmall:D,heightMedium:T,heightLarge:A,fontWeight:N}=e;return Object.assign(Object.assign({},Es),{fontWeight:N,fontSizeTiny:F,fontSizeSmall:P,fontSizeMedium:$,fontSizeLarge:w,heightTiny:k,heightSmall:D,heightMedium:T,heightLarge:A,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:x,color:n,colorDisabled:i,colorActive:Se(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Se(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Se(s,{alpha:.4})}`,caretColor:s,arrowColor:v,arrowColorDisabled:p,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,colorActiveWarning:Se(d,{alpha:.1}),caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,colorActiveError:Se(u,{alpha:.1}),caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:b})}};function ah(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderColor:v,iconColor:p,iconColorDisabled:h,clearColor:g,clearColorHover:b,clearColorPressed:y,placeholderColor:x,placeholderColorDisabled:F,fontSizeTiny:P,fontSizeSmall:$,fontSizeMedium:w,fontSizeLarge:k,heightTiny:D,heightSmall:T,heightMedium:A,heightLarge:N,fontWeight:B}=e;return Object.assign(Object.assign({},Es),{fontSizeTiny:P,fontSizeSmall:$,fontSizeMedium:w,fontSizeLarge:k,heightTiny:D,heightSmall:T,heightMedium:A,heightLarge:N,borderRadius:t,fontWeight:B,textColor:o,textColorDisabled:r,placeholderColor:x,placeholderColorDisabled:F,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${v}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Se(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Se(s,{alpha:.2})}`,caretColor:s,arrowColor:p,arrowColorDisabled:h,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Se(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Se(u,{alpha:.2})}`,colorActiveError:n,caretColorError:u,clearColor:g,clearColorHover:b,clearColorPressed:y})}const Ls={name:"InternalSelection",common:dt,peers:{Popover:Wr},self:ah},ih=S([m("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[m("base-loading",` + color: var(--n-loading-color); + `),m("base-selection-tags","min-height: var(--n-height);"),z("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),z("state-border",` + z-index: 1; + border-color: #0000; + `),m("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[z("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),m("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[z("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),m("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[z("inner",` + max-width: 100%; + overflow: hidden; + `)]),m("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),m("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[m("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[z("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),z("render-label",` + color: var(--n-text-color); + `)]),at("disabled",[S("&:hover",[z("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),R("focus",[z("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),R("active",[z("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),m("base-selection-label","background-color: var(--n-color-active);"),m("base-selection-tags","background-color: var(--n-color-active);")])]),R("disabled","cursor: not-allowed;",[z("arrow",` + color: var(--n-arrow-color-disabled); + `),m("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[m("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),z("render-label",` + color: var(--n-text-color-disabled); + `)]),m("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),m("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),m("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[z("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),z("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>R(`${e}-status`,[z("state-border",`border: var(--n-border-${e});`),at("disabled",[S("&:hover",[z("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),R("active",[z("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),m("base-selection-label",`background-color: var(--n-color-active-${e});`),m("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),R("focus",[z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),m("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),m("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[S("&:last-child","padding-right: 0;"),m("tag",` + font-size: 14px; + max-width: 100%; + `,[z("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]),lh=re({name:"InternalSelection",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=jt("InternalSelection",o,t),n=O(null),i=O(null),s=O(null),l=O(null),d=O(null),c=O(null),u=O(null),f=O(null),v=O(null),p=O(null),h=O(!1),g=O(!1),b=O(!1),y=Re("InternalSelection","-internal-selection",ih,Ls,e,fe(e,"clsPrefix")),x=C(()=>e.clearable&&!e.disabled&&(b.value||e.active)),F=C(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Rt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),P=C(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),$=C(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function w(){var de;const{value:me}=n;if(me){const{value:je}=i;je&&(je.style.width=`${me.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=v.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function k(){const{value:de}=p;de&&(de.style.display="none")}function D(){const{value:de}=p;de&&(de.style.display="inline-block")}gt(fe(e,"active"),de=>{de||k()}),gt(fe(e,"pattern"),()=>{e.multiple&&Tt(w)});function T(de){const{onFocus:me}=e;me&&me(de)}function A(de){const{onBlur:me}=e;me&&me(de)}function N(de){const{onDeleteOption:me}=e;me&&me(de)}function B(de){const{onClear:me}=e;me&&me(de)}function E(de){const{onPatternInput:me}=e;me&&me(de)}function K(de){var me;(!de.relatedTarget||!(!((me=s.value)===null||me===void 0)&&me.contains(de.relatedTarget)))&&T(de)}function L(de){var me;!((me=s.value)===null||me===void 0)&&me.contains(de.relatedTarget)||A(de)}function te(de){B(de)}function U(){b.value=!0}function ie(){b.value=!1}function be(de){!e.active||!e.filterable||de.target!==i.value&&de.preventDefault()}function ce(de){N(de)}const V=O(!1);function _(de){if(de.key==="Backspace"&&!V.value&&!e.pattern.length){const{selectedOptions:me}=e;me?.length&&ce(me[me.length-1])}}let I=null;function j(de){const{value:me}=n;if(me){const je=de.target.value;me.textContent=je,w()}e.ignoreComposition&&V.value?I=de:E(de)}function J(){V.value=!0}function se(){V.value=!1,e.ignoreComposition&&E(I),I=null}function xe(de){var me;g.value=!0,(me=e.onPatternFocus)===null||me===void 0||me.call(e,de)}function Ie(de){var me;g.value=!1,(me=e.onPatternBlur)===null||me===void 0||me.call(e,de)}function H(){var de,me;if(e.filterable)g.value=!1,(de=c.value)===null||de===void 0||de.blur(),(me=i.value)===null||me===void 0||me.blur();else if(e.multiple){const{value:je}=l;je?.blur()}else{const{value:je}=d;je?.blur()}}function Pe(){var de,me,je;e.filterable?(g.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(me=l.value)===null||me===void 0||me.focus():(je=d.value)===null||je===void 0||je.focus()}function He(){const{value:de}=i;de&&(D(),de.focus())}function _e(){const{value:de}=i;de&&de.blur()}function Ge(de){const{value:me}=u;me&&me.setTextContent(`+${de}`)}function Xe(){const{value:de}=f;return de}function ct(){return i.value}let ot=null;function Ce(){ot!==null&&window.clearTimeout(ot)}function ee(){e.active||(Ce(),ot=window.setTimeout(()=>{$.value&&(h.value=!0)},100))}function ue(){Ce()}function q(de){de||(Ce(),h.value=!1)}gt($,de=>{de||(h.value=!1)}),to(()=>{Ft(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=g.value?-1:0)})}),gs(s,e.onResize);const{inlineThemeDisabled:Q}=e,pe=C(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:me},self:{fontWeight:je,borderRadius:oe,color:Ue,placeholderColor:it,textColor:Pt,paddingSingle:xt,paddingMultiple:pt,caretColor:ft,colorDisabled:Me,textColorDisabled:Ze,placeholderColorDisabled:M,colorActive:G,boxShadowFocus:ve,boxShadowActive:Fe,boxShadowHover:Be,border:W,borderFocus:ge,borderHover:$e,borderActive:We,arrowColor:ht,arrowColorDisabled:rt,loadingColor:ne,colorActiveWarning:ze,boxShadowFocusWarning:Le,boxShadowActiveWarning:Je,boxShadowHoverWarning:yt,borderWarning:bt,borderFocusWarning:Ct,borderHoverWarning:X,borderActiveWarning:ye,colorActiveError:Ke,boxShadowFocusError:Y,boxShadowActiveError:he,boxShadowHoverError:ke,borderError:Ae,borderFocusError:Ne,borderHoverError:st,borderActiveError:It,clearColor:Ot,clearColorHover:Qt,clearColorPressed:oo,clearSize:Vt,arrowSize:wt,[le("height",de)]:Z,[le("fontSize",de)]:Te}}=y.value,Oe=Nt(xt),ut=Nt(pt);return{"--n-bezier":me,"--n-border":W,"--n-border-active":We,"--n-border-focus":ge,"--n-border-hover":$e,"--n-border-radius":oe,"--n-box-shadow-active":Fe,"--n-box-shadow-focus":ve,"--n-box-shadow-hover":Be,"--n-caret-color":ft,"--n-color":Ue,"--n-color-active":G,"--n-color-disabled":Me,"--n-font-size":Te,"--n-height":Z,"--n-padding-single-top":Oe.top,"--n-padding-multiple-top":ut.top,"--n-padding-single-right":Oe.right,"--n-padding-multiple-right":ut.right,"--n-padding-single-left":Oe.left,"--n-padding-multiple-left":ut.left,"--n-padding-single-bottom":Oe.bottom,"--n-padding-multiple-bottom":ut.bottom,"--n-placeholder-color":it,"--n-placeholder-color-disabled":M,"--n-text-color":Pt,"--n-text-color-disabled":Ze,"--n-arrow-color":ht,"--n-arrow-color-disabled":rt,"--n-loading-color":ne,"--n-color-active-warning":ze,"--n-box-shadow-focus-warning":Le,"--n-box-shadow-active-warning":Je,"--n-box-shadow-hover-warning":yt,"--n-border-warning":bt,"--n-border-focus-warning":Ct,"--n-border-hover-warning":X,"--n-border-active-warning":ye,"--n-color-active-error":Ke,"--n-box-shadow-focus-error":Y,"--n-box-shadow-active-error":he,"--n-box-shadow-hover-error":ke,"--n-border-error":Ae,"--n-border-focus-error":Ne,"--n-border-hover-error":st,"--n-border-active-error":It,"--n-clear-size":Vt,"--n-clear-color":Ot,"--n-clear-color-hover":Qt,"--n-clear-color-pressed":oo,"--n-arrow-size":wt,"--n-font-weight":je}}),we=Q?lt("internal-selection",C(()=>e.size[0]),pe,e):void 0;return{mergedTheme:y,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:g,filterablePlaceholder:F,label:P,selected:$,showTagsPanel:h,isComposing:V,counterRef:u,counterWrapperRef:f,patternInputMirrorRef:n,patternInputRef:i,selfRef:s,multipleElRef:l,singleElRef:d,patternInputWrapperRef:c,overflowRef:v,inputTagElRef:p,handleMouseDown:be,handleFocusin:K,handleClear:te,handleMouseEnter:U,handleMouseLeave:ie,handleDeleteOption:ce,handlePatternKeyDown:_,handlePatternInputInput:j,handlePatternInputBlur:Ie,handlePatternInputFocus:xe,handleMouseEnterCounter:ee,handleMouseLeaveCounter:ue,handleFocusout:L,handleCompositionEnd:se,handleCompositionStart:J,onPopoverUpdateShow:q,focus:Pe,focusInput:He,blur:H,blurInput:_e,updateCounter:Ge,getCounter:Xe,getTail:ct,renderLabel:e.renderLabel,cssVars:Q?void 0:pe,themeClass:we?.themeClass,onRender:we?.onRender}},render(){const{status:e,multiple:t,size:o,disabled:r,filterable:n,maxTagCount:i,bordered:s,clsPrefix:l,ellipsisTagPopoverProps:d,onRender:c,renderTag:u,renderLabel:f}=this;c?.();const v=i==="responsive",p=typeof i=="number",h=v||p,g=a(Ka,null,{default:()=>a(Hs,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var y,x;return(x=(y=this.$slots).arrow)===null||x===void 0?void 0:x.call(y)}})});let b;if(t){const{labelField:y}=this,x=E=>a("div",{class:`${l}-base-selection-tag-wrapper`,key:E.value},u?u({option:E,handleClose:()=>{this.handleDeleteOption(E)}}):a(Vn,{size:o,closable:!E.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(E)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>f?f(E,!0):Rt(E[y],E,!0)})),F=()=>(p?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),P=n?a("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),a("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,$=v?()=>a("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},a(Vn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(p){const E=this.selectedOptions.length-i;E>0&&(w=a("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},a(Vn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${E}`})))}const k=v?n?a(Va,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:F,counter:$,tail:()=>P}):a(Va,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:F,counter:$}):p&&w?F().concat(w):F(),D=h?()=>a("div",{class:`${l}-base-selection-popover`},v?F():this.selectedOptions.map(x)):void 0,T=h?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},d):null,N=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},a("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,B=n?a("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,v?null:P,g):a("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,g);b=a(Gt,null,h?a(Rn,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>B,default:D}):B,N)}else if(n){const y=this.pattern||this.isComposing,x=this.active?!y:!this.selected,F=this.active?!1:this.selected;b=a("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:fl(this.label)},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),F?a("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},a("div",{class:`${l}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):Rt(this.label,this.selectedOption,!0))):null,x?a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else b=a("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?a("div",{class:`${l}-base-selection-input`,title:fl(this.label),key:"input"},a("div",{class:`${l}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):Rt(this.label,this.selectedOption,!0))):a("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return a("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,s?a("div",{class:`${l}-base-selection__border`}):null,s?a("div",{class:`${l}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Qo}=Co;function sh({duration:e=".2s",delay:t=".1s"}={}){return[S("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),S("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),S("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Qo}, + max-width ${e} ${Qo} ${t}, + margin-left ${e} ${Qo} ${t}, + margin-right ${e} ${Qo} ${t}; + `),S("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Qo} ${t}, + max-width ${e} ${Qo}, + margin-left ${e} ${Qo}, + margin-right ${e} ${Qo}; + `)]}const dh=m("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),ch=re({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){sr("-base-wave",dh,fe(e,"clsPrefix"));const t=O(null),o=O(!1);let r=null;return bo(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),Tt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return a("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Ns={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},uh={name:"Alert",common:De,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:s,textColor2:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:g,errorColorSuppl:b,fontSize:y}=e;return Object.assign(Object.assign({},Ns),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderInfo:`1px solid ${Se(p,{alpha:.35})}`,colorInfo:Se(p,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:d,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${Se(h,{alpha:.35})}`,colorSuccess:Se(h,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:l,closeColorHoverSuccess:d,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${Se(g,{alpha:.35})}`,colorWarning:Se(g,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:d,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:v,borderError:`1px solid ${Se(b,{alpha:.35})}`,colorError:Se(b,{alpha:.25}),titleTextColorError:s,iconColorError:b,contentTextColorError:l,closeColorHoverError:d,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:v})}};function fh(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,baseColor:n,dividerColor:i,actionColor:s,textColor1:l,textColor2:d,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,infoColor:h,successColor:g,warningColor:b,errorColor:y,fontSize:x}=e;return Object.assign(Object.assign({},Ns),{fontSize:x,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${i}`,color:s,titleTextColor:l,iconColor:d,contentTextColor:d,closeBorderRadius:o,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,borderInfo:`1px solid ${qe(n,Se(h,{alpha:.25}))}`,colorInfo:qe(n,Se(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:d,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:f,closeIconColorHoverInfo:v,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${qe(n,Se(g,{alpha:.25}))}`,colorSuccess:qe(n,Se(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:d,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:f,closeIconColorHoverSuccess:v,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${qe(n,Se(b,{alpha:.33}))}`,colorWarning:qe(n,Se(b,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:b,contentTextColorWarning:d,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:f,closeIconColorHoverWarning:v,closeIconColorPressedWarning:p,borderError:`1px solid ${qe(n,Se(y,{alpha:.25}))}`,colorError:qe(n,Se(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:d,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:f,closeIconColorHoverError:v,closeIconColorPressedError:p})}const hh={common:dt,self:fh},{cubicBezierEaseInOut:Ao,cubicBezierEaseOut:vh,cubicBezierEaseIn:ph}=Co;function cn({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const d=l?"leave":"enter",c=l?"enter":"leave";return[S(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${d}-to`,Object.assign(Object.assign({},i),{opacity:1})),S(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${d}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),S(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ao} ${r}, + opacity ${t} ${vh} ${r}, + margin-top ${t} ${Ao} ${r}, + margin-bottom ${t} ${Ao} ${r}, + padding-top ${t} ${Ao} ${r}, + padding-bottom ${t} ${Ao} ${r} + ${o?`,${o}`:""} + `),S(`&.fade-in-height-expand-transition-${d}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ao}, + opacity ${t} ${ph}, + margin-top ${t} ${Ao}, + margin-bottom ${t} ${Ao}, + padding-top ${t} ${Ao}, + padding-bottom ${t} ${Ao} + ${o?`,${o}`:""} + `)]}const gh=m("alert",` + line-height: var(--n-line-height); + border-radius: var(--n-border-radius); + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-color); + text-align: start; + word-break: break-word; +`,[z("border",` + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + transition: border-color .3s var(--n-bezier); + border: var(--n-border); + pointer-events: none; + `),R("closable",[m("alert-body",[z("title",` + padding-right: 24px; + `)])]),z("icon",{color:"var(--n-icon-color)"}),m("alert-body",{padding:"var(--n-padding)"},[z("title",{color:"var(--n-title-text-color)"}),z("content",{color:"var(--n-content-text-color)"})]),cn({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),z("icon",` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + margin: var(--n-icon-margin); + `),z("close",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + `),R("show-icon",[m("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),R("right-adjust",[m("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),m("alert-body",` + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + `,[z("title",` + transition: color .3s var(--n-bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--n-title-font-weight); + `,[S("& +",[z("content",{marginTop:"9px"})])]),z("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),z("icon",{transition:"color .3s var(--n-bezier)"})]),mh=Object.assign(Object.assign({},Re.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),py=re({name:"Alert",inheritAttrs:!1,props:mh,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Alert","-alert",gh,hh,e,t),s=jt("Alert",n,t),l=C(()=>{const{common:{cubicBezierEaseInOut:p},self:h}=i.value,{fontSize:g,borderRadius:b,titleFontWeight:y,lineHeight:x,iconSize:F,iconMargin:P,iconMarginRtl:$,closeIconSize:w,closeBorderRadius:k,closeSize:D,closeMargin:T,closeMarginRtl:A,padding:N}=h,{type:B}=e,{left:E,right:K}=Nt(P);return{"--n-bezier":p,"--n-color":h[le("color",B)],"--n-close-icon-size":w,"--n-close-border-radius":k,"--n-close-color-hover":h[le("closeColorHover",B)],"--n-close-color-pressed":h[le("closeColorPressed",B)],"--n-close-icon-color":h[le("closeIconColor",B)],"--n-close-icon-color-hover":h[le("closeIconColorHover",B)],"--n-close-icon-color-pressed":h[le("closeIconColorPressed",B)],"--n-icon-color":h[le("iconColor",B)],"--n-border":h[le("border",B)],"--n-title-text-color":h[le("titleTextColor",B)],"--n-content-text-color":h[le("contentTextColor",B)],"--n-line-height":x,"--n-border-radius":b,"--n-font-size":g,"--n-title-font-weight":y,"--n-icon-size":F,"--n-icon-margin":P,"--n-icon-margin-rtl":$,"--n-close-size":D,"--n-close-margin":T,"--n-close-margin-rtl":A,"--n-padding":N,"--n-icon-margin-left":E,"--n-icon-margin-right":K}}),d=r?lt("alert",C(()=>e.type[0]),l,e):void 0,c=O(!0),u=()=>{const{onAfterLeave:p,onAfterHide:h}=e;p&&p(),h&&h()};return{rtlEnabled:s,mergedClsPrefix:t,mergedBordered:o,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(h=>{h!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:r?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a(yn,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?a("div",Object.assign({},co(this.$attrs,r)),this.closable&&a(cr,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&a("div",{class:`${t}-alert__border`}),this.showIcon&&a("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(o.icon,()=>[a(zt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return a(xn,null);case"info":return a(Er,null);case"warning":return a(Cn,null);case"error":return a(bn,null);default:return null}}})])),a("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},mt(o.header,n=>{const i=n||this.title;return i?a("div",{class:`${t}-alert-body__title`},i):null}),o.default&&a("div",{class:`${t}-alert-body__content`},o))):null}})}}),bh={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function xh(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:s}=e;return Object.assign(Object.assign({},bh),{borderRadius:t,railColor:o,railColorActive:r,linkColor:Se(r,{alpha:.15}),linkTextColor:s,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r})}const Ch={name:"Anchor",common:De,self:xh},yh=xo&&"chrome"in window;xo&&navigator.userAgent.includes("Firefox");const js=xo&&navigator.userAgent.includes("Safari")&&!yh,Vs={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function wh(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:v,lineHeight:p,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,heightTiny:x,heightSmall:F,heightMedium:P,heightLarge:$,clearColor:w,clearColorHover:k,clearColorPressed:D,placeholderColor:T,placeholderColorDisabled:A,iconColor:N,iconColorDisabled:B,iconColorHover:E,iconColorPressed:K,fontWeight:L}=e;return Object.assign(Object.assign({},Vs),{fontWeight:L,countTextColorDisabled:r,countTextColor:o,heightTiny:x,heightSmall:F,heightMedium:P,heightLarge:$,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:T,placeholderColorDisabled:A,color:s,colorDisabled:l,colorFocus:Se(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Se(d,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.3})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:Se(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.3})}`,caretColorError:u,clearColor:w,clearColorHover:k,clearColorPressed:D,iconColor:N,iconColorDisabled:B,iconColorHover:E,iconColorPressed:K,suffixTextColor:t})}const yo={name:"Input",common:De,peers:{Scrollbar:no},self:wh};function Sh(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:l,borderColor:d,warningColor:c,warningColorHover:u,errorColor:f,errorColorHover:v,borderRadius:p,lineHeight:h,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,heightTiny:F,heightSmall:P,heightMedium:$,heightLarge:w,actionColor:k,clearColor:D,clearColorHover:T,clearColorPressed:A,placeholderColor:N,placeholderColorDisabled:B,iconColor:E,iconColorDisabled:K,iconColorHover:L,iconColorPressed:te,fontWeight:U}=e;return Object.assign(Object.assign({},Vs),{fontWeight:U,countTextColorDisabled:r,countTextColor:o,heightTiny:F,heightSmall:P,heightMedium:$,heightLarge:w,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:N,placeholderColorDisabled:B,color:s,colorDisabled:l,colorFocus:s,groupLabelBorder:`1px solid ${d}`,border:`1px solid ${d}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${d}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Se(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Se(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${v}`,colorFocusError:s,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${Se(f,{alpha:.2})}`,caretColorError:f,clearColor:D,clearColorHover:T,clearColorPressed:A,iconColor:E,iconColorDisabled:K,iconColorHover:L,iconColorPressed:te,suffixTextColor:t})}const hr={name:"Input",common:dt,peers:{Scrollbar:To},self:Sh},Ws="n-input",kh=m("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[z("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),z("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),z("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),S("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),S("&:-webkit-autofill ~",[z("placeholder","display: none;")])]),R("round",[at("textarea","border-radius: calc(var(--n-height) / 2);")]),z("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[S("span",` + width: 100%; + display: inline-block; + `)]),R("textarea",[z("placeholder","overflow: visible;")]),at("autosize","width: 100%;"),R("autosize",[z("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),m("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),z("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),z("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[S("&[type=password]::-ms-reveal","display: none;"),S("+",[z("placeholder",` + display: flex; + align-items: center; + `)])]),at("textarea",[z("placeholder","white-space: nowrap;")]),z("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),R("textarea","width: 100%;",[m("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),R("resizable",[m("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),z("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),z("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),R("pair",[z("input-el, placeholder","text-align: center;"),z("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[m("icon",` + color: var(--n-icon-color); + `),m("base-icon",` + color: var(--n-icon-color); + `)])]),R("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[z("border","border: var(--n-border-disabled);"),z("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),z("placeholder","color: var(--n-placeholder-color-disabled);"),z("separator","color: var(--n-text-color-disabled);",[m("icon",` + color: var(--n-icon-color-disabled); + `),m("base-icon",` + color: var(--n-icon-color-disabled); + `)]),m("input-word-count",` + color: var(--n-count-text-color-disabled); + `),z("suffix, prefix","color: var(--n-text-color-disabled);",[m("icon",` + color: var(--n-icon-color-disabled); + `),m("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),at("disabled",[z("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[S("&:hover",` + color: var(--n-icon-color-hover); + `),S("&:active",` + color: var(--n-icon-color-pressed); + `)]),S("&:hover",[z("state-border","border: var(--n-border-hover);")]),R("focus","background-color: var(--n-color-focus);",[z("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),z("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),z("state-border",` + border-color: #0000; + z-index: 1; + `),z("prefix","margin-right: 4px;"),z("suffix",` + margin-left: 4px; + `),z("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[m("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),m("base-clear",` + font-size: var(--n-icon-size); + `,[z("placeholder",[m("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),S(">",[m("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),m("base-icon",` + font-size: var(--n-icon-size); + `)]),m("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>R(`${e}-status`,[at("disabled",[m("base-loading",` + color: var(--n-loading-color-${e}) + `),z("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),z("state-border",` + border: var(--n-border-${e}); + `),S("&:hover",[z("state-border",` + border: var(--n-border-hover-${e}); + `)]),S("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),R("focus",` + background-color: var(--n-color-focus-${e}); + `,[z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),Rh=m("input",[R("disabled",[z("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]);function zh(e){let t=0;for(const o of e)t++;return t}function Fn(e){return e===""||e==null}function Ph(e){const t=O(null);function o(){const{value:i}=e;if(!i?.focus){n();return}const{selectionStart:s,selectionEnd:l,value:d}=i;if(s==null||l==null){n();return}t.value={start:s,end:l,beforeText:d.slice(0,s),afterText:d.slice(l)}}function r(){var i;const{value:s}=t,{value:l}=e;if(!s||!l)return;const{value:d}=l,{start:c,beforeText:u,afterText:f}=s;let v=d.length;if(d.endsWith(f))v=d.length-f.length;else if(d.startsWith(u))v=u.length;else{const p=u[c-1],h=d.indexOf(p,c-1);h!==-1&&(v=h+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,v,v)}function n(){t.value=null}return gt(e,n),{recordCursor:o,restoreCursor:r}}const Sl=re({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:n,countGraphemesRef:i}=Ee(Ws),s=C(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||zh)(l)});return()=>{const{value:l}=r,{value:d}=o;return a("span",{class:`${n.value}-input-word-count`},so(t.default,{value:d===null||Array.isArray(d)?"":d},()=>[l===void 0?s.value:`${s.value} / ${l}`]))}}}),$h=Object.assign(Object.assign({},Re.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Mo=re({name:"Input",props:$h,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Input","-input",kh,hr,e,t);js&&sr("-input-safari",Rh,t);const s=O(null),l=O(null),d=O(null),c=O(null),u=O(null),f=O(null),v=O(null),p=Ph(v),h=O(null),{localeRef:g}=$o("Input"),b=O(e.defaultValue),y=fe(e,"value"),x=$t(y,b),F=vo(e),{mergedSizeRef:P,mergedDisabledRef:$,mergedStatusRef:w}=F,k=O(!1),D=O(!1),T=O(!1),A=O(!1);let N=null;const B=C(()=>{const{placeholder:X,pair:ye}=e;return ye?Array.isArray(X)?X:X===void 0?["",""]:[X,X]:X===void 0?[g.value.placeholder]:[X]}),E=C(()=>{const{value:X}=T,{value:ye}=x,{value:Ke}=B;return!X&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[0]))&&Ke[0]}),K=C(()=>{const{value:X}=T,{value:ye}=x,{value:Ke}=B;return!X&&Ke[1]&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[1]))}),L=tt(()=>e.internalForceFocus||k.value),te=tt(()=>{if($.value||e.readonly||!e.clearable||!L.value&&!D.value)return!1;const{value:X}=x,{value:ye}=L;return e.pair?!!(Array.isArray(X)&&(X[0]||X[1]))&&(D.value||ye):!!X&&(D.value||ye)}),U=C(()=>{const{showPasswordOn:X}=e;if(X)return X;if(e.showPasswordToggle)return"click"}),ie=O(!1),be=C(()=>{const{textDecoration:X}=e;return X?Array.isArray(X)?X.map(ye=>({textDecoration:ye})):[{textDecoration:X}]:["",""]}),ce=O(void 0),V=()=>{var X,ye;if(e.type==="textarea"){const{autosize:Ke}=e;if(Ke&&(ce.value=(ye=(X=h.value)===null||X===void 0?void 0:X.$el)===null||ye===void 0?void 0:ye.offsetWidth),!l.value||typeof Ke=="boolean")return;const{paddingTop:Y,paddingBottom:he,lineHeight:ke}=window.getComputedStyle(l.value),Ae=Number(Y.slice(0,-2)),Ne=Number(he.slice(0,-2)),st=Number(ke.slice(0,-2)),{value:It}=d;if(!It)return;if(Ke.minRows){const Ot=Math.max(Ke.minRows,1),Qt=`${Ae+Ne+st*Ot}px`;It.style.minHeight=Qt}if(Ke.maxRows){const Ot=`${Ae+Ne+st*Ke.maxRows}px`;It.style.maxHeight=Ot}}},_=C(()=>{const{maxlength:X}=e;return X===void 0?void 0:Number(X)});to(()=>{const{value:X}=x;Array.isArray(X)||We(X)});const I=di().proxy;function j(X,ye){const{onUpdateValue:Ke,"onUpdate:value":Y,onInput:he}=e,{nTriggerFormInput:ke}=F;Ke&&ae(Ke,X,ye),Y&&ae(Y,X,ye),he&&ae(he,X,ye),b.value=X,ke()}function J(X,ye){const{onChange:Ke}=e,{nTriggerFormChange:Y}=F;Ke&&ae(Ke,X,ye),b.value=X,Y()}function se(X){const{onBlur:ye}=e,{nTriggerFormBlur:Ke}=F;ye&&ae(ye,X),Ke()}function xe(X){const{onFocus:ye}=e,{nTriggerFormFocus:Ke}=F;ye&&ae(ye,X),Ke()}function Ie(X){const{onClear:ye}=e;ye&&ae(ye,X)}function H(X){const{onInputBlur:ye}=e;ye&&ae(ye,X)}function Pe(X){const{onInputFocus:ye}=e;ye&&ae(ye,X)}function He(){const{onDeactivate:X}=e;X&&ae(X)}function _e(){const{onActivate:X}=e;X&&ae(X)}function Ge(X){const{onClick:ye}=e;ye&&ae(ye,X)}function Xe(X){const{onWrapperFocus:ye}=e;ye&&ae(ye,X)}function ct(X){const{onWrapperBlur:ye}=e;ye&&ae(ye,X)}function ot(){T.value=!0}function Ce(X){T.value=!1,X.target===f.value?ee(X,1):ee(X,0)}function ee(X,ye=0,Ke="input"){const Y=X.target.value;if(We(Y),X instanceof InputEvent&&!X.isComposing&&(T.value=!1),e.type==="textarea"){const{value:ke}=h;ke&&ke.syncUnifiedContainer()}if(N=Y,T.value)return;p.recordCursor();const he=ue(Y);if(he)if(!e.pair)Ke==="input"?j(Y,{source:ye}):J(Y,{source:ye});else{let{value:ke}=x;Array.isArray(ke)?ke=[ke[0],ke[1]]:ke=["",""],ke[ye]=Y,Ke==="input"?j(ke,{source:ye}):J(ke,{source:ye})}I.$forceUpdate(),he||Tt(p.restoreCursor)}function ue(X){const{countGraphemes:ye,maxlength:Ke,minlength:Y}=e;if(ye){let ke;if(Ke!==void 0&&(ke===void 0&&(ke=ye(X)),ke>Number(Ke))||Y!==void 0&&(ke===void 0&&(ke=ye(X)),ke{Y.preventDefault(),Yt("mouseup",document,ye)};if(Lt("mouseup",document,ye),U.value!=="mousedown")return;ie.value=!0;const Ke=()=>{ie.value=!1,Yt("mouseup",document,Ke)};Lt("mouseup",document,Ke)}function Me(X){e.onKeyup&&ae(e.onKeyup,X)}function Ze(X){switch(e.onKeydown&&ae(e.onKeydown,X),X.key){case"Escape":G();break;case"Enter":M(X);break}}function M(X){var ye,Ke;if(e.passivelyActivated){const{value:Y}=A;if(Y){e.internalDeactivateOnEnter&&G();return}X.preventDefault(),e.type==="textarea"?(ye=l.value)===null||ye===void 0||ye.focus():(Ke=u.value)===null||Ke===void 0||Ke.focus()}}function G(){e.passivelyActivated&&(A.value=!1,Tt(()=>{var X;(X=s.value)===null||X===void 0||X.focus()}))}function ve(){var X,ye,Ke;$.value||(e.passivelyActivated?(X=s.value)===null||X===void 0||X.focus():((ye=l.value)===null||ye===void 0||ye.focus(),(Ke=u.value)===null||Ke===void 0||Ke.focus()))}function Fe(){var X;!((X=s.value)===null||X===void 0)&&X.contains(document.activeElement)&&document.activeElement.blur()}function Be(){var X,ye;(X=l.value)===null||X===void 0||X.select(),(ye=u.value)===null||ye===void 0||ye.select()}function W(){$.value||(l.value?l.value.focus():u.value&&u.value.focus())}function ge(){const{value:X}=s;X?.contains(document.activeElement)&&X!==document.activeElement&&G()}function $e(X){if(e.type==="textarea"){const{value:ye}=l;ye?.scrollTo(X)}else{const{value:ye}=u;ye?.scrollTo(X)}}function We(X){const{type:ye,pair:Ke,autosize:Y}=e;if(!Ke&&Y)if(ye==="textarea"){const{value:he}=d;he&&(he.textContent=`${X??""}\r +`)}else{const{value:he}=c;he&&(X?he.textContent=X:he.innerHTML=" ")}}function ht(){V()}const rt=O({top:"0"});function ne(X){var ye;const{scrollTop:Ke}=X.target;rt.value.top=`${-Ke}px`,(ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer()}let ze=null;Ft(()=>{const{autosize:X,type:ye}=e;X&&ye==="textarea"?ze=gt(x,Ke=>{!Array.isArray(Ke)&&Ke!==N&&We(Ke)}):ze?.()});let Le=null;Ft(()=>{e.type==="textarea"?Le=gt(x,X=>{var ye;!Array.isArray(X)&&X!==N&&((ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer())}):Le?.()}),et(Ws,{mergedValueRef:x,maxlengthRef:_,mergedClsPrefixRef:t,countGraphemesRef:fe(e,"countGraphemes")});const Je={wrapperElRef:s,inputElRef:u,textareaElRef:l,isCompositing:T,clear:Ue,focus:ve,blur:Fe,select:Be,deactivate:ge,activate:W,scrollTo:$e},yt=jt("Input",n,t),bt=C(()=>{const{value:X}=P,{common:{cubicBezierEaseInOut:ye},self:{color:Ke,borderRadius:Y,textColor:he,caretColor:ke,caretColorError:Ae,caretColorWarning:Ne,textDecorationColor:st,border:It,borderDisabled:Ot,borderHover:Qt,borderFocus:oo,placeholderColor:Vt,placeholderColorDisabled:wt,lineHeightTextarea:Z,colorDisabled:Te,colorFocus:Oe,textColorDisabled:ut,boxShadowFocus:Wt,iconSize:St,colorFocusWarning:wo,boxShadowFocusWarning:Fo,borderWarning:go,borderFocusWarning:Kr,borderHoverWarning:qr,colorFocusError:Yr,boxShadowFocusError:Gr,borderError:Xr,borderFocusError:Zr,borderHoverError:sa,clearSize:Jc,clearColor:eu,clearColorHover:tu,clearColorPressed:ou,iconColor:ru,iconColorDisabled:nu,suffixTextColor:au,countTextColor:iu,countTextColorDisabled:lu,iconColorHover:su,iconColorPressed:du,loadingColor:cu,loadingColorError:uu,loadingColorWarning:fu,fontWeight:hu,[le("padding",X)]:vu,[le("fontSize",X)]:pu,[le("height",X)]:gu}}=i.value,{left:mu,right:bu}=Nt(vu);return{"--n-bezier":ye,"--n-count-text-color":iu,"--n-count-text-color-disabled":lu,"--n-color":Ke,"--n-font-size":pu,"--n-font-weight":hu,"--n-border-radius":Y,"--n-height":gu,"--n-padding-left":mu,"--n-padding-right":bu,"--n-text-color":he,"--n-caret-color":ke,"--n-text-decoration-color":st,"--n-border":It,"--n-border-disabled":Ot,"--n-border-hover":Qt,"--n-border-focus":oo,"--n-placeholder-color":Vt,"--n-placeholder-color-disabled":wt,"--n-icon-size":St,"--n-line-height-textarea":Z,"--n-color-disabled":Te,"--n-color-focus":Oe,"--n-text-color-disabled":ut,"--n-box-shadow-focus":Wt,"--n-loading-color":cu,"--n-caret-color-warning":Ne,"--n-color-focus-warning":wo,"--n-box-shadow-focus-warning":Fo,"--n-border-warning":go,"--n-border-focus-warning":Kr,"--n-border-hover-warning":qr,"--n-loading-color-warning":fu,"--n-caret-color-error":Ae,"--n-color-focus-error":Yr,"--n-box-shadow-focus-error":Gr,"--n-border-error":Xr,"--n-border-focus-error":Zr,"--n-border-hover-error":sa,"--n-loading-color-error":uu,"--n-clear-color":eu,"--n-clear-size":Jc,"--n-clear-color-hover":tu,"--n-clear-color-pressed":ou,"--n-icon-color":ru,"--n-icon-color-hover":su,"--n-icon-color-pressed":du,"--n-icon-color-disabled":nu,"--n-suffix-text-color":au}}),Ct=r?lt("input",C(()=>{const{value:X}=P;return X[0]}),bt,e):void 0;return Object.assign(Object.assign({},Je),{wrapperElRef:s,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:yt,uncontrolledValue:b,mergedValue:x,passwordVisible:ie,mergedPlaceholder:B,showPlaceholder1:E,showPlaceholder2:K,mergedFocus:L,isComposing:T,activated:A,showClearButton:te,mergedSize:P,mergedDisabled:$,textDecorationStyle:be,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:U,placeholderStyle:rt,mergedStatus:w,textAreaScrollContainerWidth:ce,handleTextAreaScroll:ne,handleCompositionStart:ot,handleCompositionEnd:Ce,handleInput:ee,handleInputBlur:q,handleInputFocus:Q,handleWrapperBlur:pe,handleWrapperFocus:we,handleMouseEnter:Pt,handleMouseLeave:xt,handleMouseDown:it,handleChange:me,handleClick:je,handleClear:oe,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:ft,handleWrapperKeydown:Ze,handleWrapperKeyup:Me,handleTextAreaMirrorResize:ht,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:bt,themeClass:Ct?.themeClass,onRender:Ct?.onRender})},render(){var e,t,o,r,n,i,s;const{mergedClsPrefix:l,mergedStatus:d,themeClass:c,type:u,countGraphemes:f,onRender:v}=this,p=this.$slots;return v?.(),a("div",{ref:"wrapperElRef",class:[`${l}-input`,c,d&&`${l}-input--${d}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:u==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&u!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},a("div",{class:`${l}-input-wrapper`},mt(p.prefix,h=>h&&a("div",{class:`${l}-input__prefix`},h)),u==="textarea"?a(Ut,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(r=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||r===void 0?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var h,g;const{textAreaScrollContainerWidth:b}=this,y={width:this.autosize&&b&&`${b}px`};return a(Gt,null,a("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(h=this.inputProps)===null||h===void 0?void 0:h.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,y],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?a("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,y],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?a(_o,{onResize:this.handleTextAreaMirrorResize},{default:()=>a("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):a("div",{class:`${l}-input__input`},a("input",Object.assign({type:u==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":u},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(n=this.inputProps)===null||n===void 0?void 0:n.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(s=this.inputProps)===null||s===void 0?void 0:s.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,0)},onInput:h=>{this.handleInput(h,0)},onChange:h=>{this.handleChange(h,0)}})),this.showPlaceholder1?a("div",{class:`${l}-input__placeholder`},a("span",null,this.mergedPlaceholder[0])):null,this.autosize?a("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&mt(p.suffix,h=>h||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?a("div",{class:`${l}-input__suffix`},[mt(p["clear-icon-placeholder"],g=>(this.clearable||g)&&a(Ya,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var b,y;return(y=(b=this.$slots)["clear-icon"])===null||y===void 0?void 0:y.call(b)}})),this.internalLoadingBeforeSuffix?null:h,this.loading!==void 0?a(Hs,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?h:null,this.showCount&&this.type!=="textarea"?a(Sl,null,{default:g=>{var b;const{renderCount:y}=this;return y?y(g):(b=p.count)===null||b===void 0?void 0:b.call(p,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?a("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(p["password-visible-icon"],()=>[a(zt,{clsPrefix:l},{default:()=>a(Sf,null)})]):vt(p["password-invisible-icon"],()=>[a(zt,{clsPrefix:l},{default:()=>a(kf,null)})])):null]):null)),this.pair?a("span",{class:`${l}-input__separator`},vt(p.separator,()=>[this.separator])):null,this.pair?a("div",{class:`${l}-input-wrapper`},a("div",{class:`${l}-input__input`},a("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,1)},onInput:h=>{this.handleInput(h,1)},onChange:h=>{this.handleChange(h,1)}}),this.showPlaceholder2?a("div",{class:`${l}-input__placeholder`},a("span",null,this.mergedPlaceholder[1])):null),mt(p.suffix,h=>(this.clearable||h)&&a("div",{class:`${l}-input__suffix`},[this.clearable&&a(Ya,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=p["clear-icon"])===null||g===void 0?void 0:g.call(p)},placeholder:()=>{var g;return(g=p["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(p)}}),h]))):null,this.mergedBordered?a("div",{class:`${l}-input__border`}):null,this.mergedBordered?a("div",{class:`${l}-input__state-border`}):null,this.showCount&&u==="textarea"?a(Sl,null,{default:h=>{var g;const{renderCount:b}=this;return b?b(h):(g=p.count)===null||g===void 0?void 0:g.call(p,h)}}):null)}}),Th=m("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[S(">",[m("input",[S("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),S("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),m("button",[S("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[z("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),S("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[z("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),S("*",[S("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[S(">",[m("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),m("base-selection",[m("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),m("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),z("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),S("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[S(">",[m("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),m("base-selection",[m("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),m("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),z("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]),Fh={},Ih=re({name:"InputGroup",props:Fh,setup(e){const{mergedClsPrefixRef:t}=Qe(e);return sr("-input-group",Th,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return a("div",{class:`${e}-input-group`},this.$slots)}}),Bh=m("input-group-label",` + position: relative; + user-select: none; + -webkit-user-select: none; + box-sizing: border-box; + padding: 0 12px; + display: inline-block; + border-radius: var(--n-border-radius); + background-color: var(--n-group-label-color); + color: var(--n-group-label-text-color); + font-size: var(--n-font-size); + line-height: var(--n-height); + height: var(--n-height); + flex-shrink: 0; + white-space: nowrap; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[z("border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-group-label-border); + transition: border-color .3s var(--n-bezier); + `)]),Oh=Object.assign(Object.assign({},Re.props),{size:String,bordered:{type:Boolean,default:void 0}}),gy=re({name:"InputGroupLabel",props:Oh,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(e),n=vo(e),{mergedSizeRef:i}=n,s=Re("Input","-input-group-label",Bh,hr,e,o),l=C(()=>{const{value:c}=i,{common:{cubicBezierEaseInOut:u},self:{groupLabelColor:f,borderRadius:v,groupLabelTextColor:p,lineHeight:h,groupLabelBorder:g,[le("fontSize",c)]:b,[le("height",c)]:y}}=s.value;return{"--n-bezier":u,"--n-group-label-color":f,"--n-group-label-border":g,"--n-border-radius":v,"--n-group-label-text-color":p,"--n-font-size":b,"--n-line-height":h,"--n-height":y}}),d=r?lt("input-group-label",C(()=>{const{value:c}=i;return c[0]}),l,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:r?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?a("div",{class:`${r}-input-group-label__border`}):null)}});function Zn(e){return e.type==="group"}function Us(e){return e.type==="ignored"}function pa(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ks(e,t){return{getIsGroup:Zn,getIgnored:Us,getKey(r){return Zn(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function Mh(e,t,o,r){if(!t)return e;function n(i){if(!Array.isArray(i))return[];const s=[];for(const l of i)if(Zn(l)){const d=n(l[r]);d.length&&s.push(Object.assign({},l,{[r]:d}))}else{if(Us(l))continue;t(o,l)&&s.push(l)}return s}return n(e)}function Dh(e,t,o){const r=new Map;return e.forEach(n=>{Zn(n)?n[o].forEach(i=>{r.set(i[t],i)}):r.set(n[t],n)}),r}function Ah(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const _h={name:"AutoComplete",common:De,peers:{InternalSelectMenu:kn,Input:yo},self:Ah},Hh=xo&&"loading"in document.createElement("img");function Eh(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const ga=new WeakMap,ma=new WeakMap,ba=new WeakMap,Lh=(e,t,o)=>{if(!e)return()=>{};const r=Eh(t),{root:n}=r.options;let i;const s=ga.get(n);s?i=s:(i=new Map,ga.set(n,i));let l,d;i.has(r.hash)?(d=i.get(r.hash),d[1].has(e)||(l=d[0],d[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(v=>{if(v.isIntersecting){const p=ma.get(v.target),h=ba.get(v.target);p&&p(),h&&(h.value=!0)}})},r.options),l.observe(e),d=[l,new Set([e])],i.set(r.hash,d));let c=!1;const u=()=>{c||(ma.delete(e),ba.delete(e),c=!0,d[1].has(e)&&(d[0].unobserve(e),d[1].delete(e)),d[1].size<=0&&i.delete(r.hash),i.size||ga.delete(n))};return ma.set(e,u),ba.set(e,o),u};function qs(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,color:qe(r,o),colorModal:qe(u,o),colorPopover:qe(f,o)}}const Nh={common:dt,self:qs},Ys={name:"Avatar",common:De,self:qs},jh="n-avatar-group",Vh=m("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[jr(S("&","--n-merged-color: var(--n-color-modal);")),vn(S("&","--n-merged-color: var(--n-color-popover);")),S("img",` + width: 100%; + height: 100%; + `),z("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),m("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),z("text","line-height: 1.25")]),Wh=Object.assign(Object.assign({},Re.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),my=re({name:"Avatar",props:Wh,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=O(!1);let n=null;const i=O(null),s=O(null),l=()=>{const{value:x}=i;if(x&&(n===null||n!==x.innerHTML)){n=x.innerHTML;const{value:F}=s;if(F){const{offsetWidth:P,offsetHeight:$}=F,{offsetWidth:w,offsetHeight:k}=x,D=.9,T=Math.min(P/w*D,$/k*D,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${T})`}}},d=Ee(jh,null),c=C(()=>{const{size:x}=e;if(x)return x;const{size:F}=d||{};return F||"medium"}),u=Re("Avatar","-avatar",Vh,Nh,e,t),f=Ee(_s,null),v=C(()=>{if(d)return!0;const{round:x,circle:F}=e;return x!==void 0||F!==void 0?x||F:f?f.roundRef.value:!1}),p=C(()=>d?!0:e.bordered||!1),h=C(()=>{const x=c.value,F=v.value,P=p.value,{color:$}=e,{self:{borderRadius:w,fontSize:k,color:D,border:T,colorModal:A,colorPopover:N},common:{cubicBezierEaseInOut:B}}=u.value;let E;return typeof x=="number"?E=`${x}px`:E=u.value.self[le("height",x)],{"--n-font-size":k,"--n-border":P?T:"none","--n-border-radius":F?"50%":w,"--n-color":$||D,"--n-color-modal":$||A,"--n-color-popover":$||N,"--n-bezier":B,"--n-merged-size":`var(--n-avatar-size-override, ${E})`}}),g=o?lt("avatar",C(()=>{const x=c.value,F=v.value,P=p.value,{color:$}=e;let w="";return x&&(typeof x=="number"?w+=`a${x}`:w+=x[0]),F&&(w+="b"),P&&(w+="c"),$&&(w+=sn($)),w}),h,e):void 0,b=O(!e.lazy);to(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const F=Ft(()=>{x?.(),x=void 0,e.lazy&&(x=Lh(s.value,e.intersectionObserverOptions,b))});bo(()=>{F(),x?.()})}}),gt(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{r.value=!1});const y=O(!e.lazy);return{textRef:i,selfRef:s,mergedRoundRef:v,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:h,themeClass:g?.themeClass,onRender:g?.onRender,hasLoadError:r,shouldStartLoading:b,loaded:y,mergedOnError:x=>{if(!b.value)return;r.value=!0;const{onError:F,imgProps:{onError:P}={}}=e;F?.(x),P?.(x)},mergedOnLoad:x=>{const{onLoad:F,imgProps:{onLoad:P}={}}=e;F?.(x),P?.(x),y.value=!0}}},render(){var e,t;const{$slots:o,src:r,mergedClsPrefix:n,lazy:i,onRender:s,loaded:l,hasLoadError:d,imgProps:c={}}=this;s?.();let u;const f=!l&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():vt(o.fallback,()=>[a("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=mt(o.default,v=>{if(v)return a(_o,{onResize:this.fitTextTransform},{default:()=>a("span",{ref:"textRef",class:`${n}-avatar__text`},v)});if(r||c.src){const p=this.src||c.src;return a("img",Object.assign(Object.assign({},c),{loading:Hh&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?p:void 0:p,"data-image-src":p,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),a("span",{ref:"selfRef",class:[`${n}-avatar`,this.themeClass],style:this.cssVars},u,i&&f)}});function Uh(){return{gap:"-12px"}}const Kh={name:"AvatarGroup",common:De,peers:{Avatar:Ys},self:Uh},qh={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Yh={name:"BackTop",common:De,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},qh),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Gh={name:"Badge",common:De,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},Xh={fontWeightActive:"400"};function Gs(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:s}=e;return Object.assign(Object.assign({},Xh),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:s,separatorColor:o})}const Zh={common:dt,self:Gs},Qh={name:"Breadcrumb",common:De,self:Gs},Jh=m("breadcrumb",` + white-space: nowrap; + cursor: default; + line-height: var(--n-item-line-height); +`,[S("ul",` + list-style: none; + padding: 0; + margin: 0; + `),S("a",` + color: inherit; + text-decoration: inherit; + `),m("breadcrumb-item",` + font-size: var(--n-font-size); + transition: color .3s var(--n-bezier); + display: inline-flex; + align-items: center; + `,[m("icon",` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `),S("&:not(:last-child)",[R("clickable",[z("link",` + cursor: pointer; + `,[S("&:hover",` + background-color: var(--n-item-color-hover); + `),S("&:active",` + background-color: var(--n-item-color-pressed); + `)])])]),z("link",` + padding: 4px; + border-radius: var(--n-item-border-radius); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: var(--n-item-text-color); + position: relative; + `,[S("&:hover",` + color: var(--n-item-text-color-hover); + `,[m("icon",` + color: var(--n-item-text-color-hover); + `)]),S("&:active",` + color: var(--n-item-text-color-pressed); + `,[m("icon",` + color: var(--n-item-text-color-pressed); + `)])]),z("separator",` + margin: 0 8px; + color: var(--n-separator-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + `),S("&:last-child",[z("link",` + font-weight: var(--n-font-weight-active); + cursor: unset; + color: var(--n-item-text-color-active); + `,[m("icon",` + color: var(--n-item-text-color-active); + `)]),z("separator",` + display: none; + `)])])]),Xs="n-breadcrumb",ev=Object.assign(Object.assign({},Re.props),{separator:{type:String,default:"/"}}),by=re({name:"Breadcrumb",props:ev,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Breadcrumb","-breadcrumb",Jh,Zh,e,t);et(Xs,{separatorRef:fe(e,"separator"),mergedClsPrefixRef:t});const n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{separatorColor:l,itemTextColor:d,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:f,fontSize:v,fontWeightActive:p,itemBorderRadius:h,itemColorHover:g,itemColorPressed:b,itemLineHeight:y}}=r.value;return{"--n-font-size":v,"--n-bezier":s,"--n-item-text-color":d,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":b,"--n-item-border-radius":h,"--n-font-weight-active":p,"--n-item-line-height":y}}),i=o?lt("breadcrumb",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},a("ul",null,this.$slots))}});function tv(e=xo?window:null){const t=()=>{const{hash:n,host:i,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}=e?.location||{};return{hash:n,host:i,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}},o=O(t()),r=()=>{o.value=t()};return to(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),Jn(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),o}const ov={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},xy=re({name:"BreadcrumbItem",props:ov,slots:Object,setup(e,{slots:t}){const o=Ee(Xs,null);if(!o)return()=>null;const{separatorRef:r,mergedClsPrefixRef:n}=o,i=tv(),s=C(()=>e.href?"a":"span"),l=C(()=>i.value.href===e.href?"location":null);return()=>{const{value:d}=n;return a("li",{class:[`${d}-breadcrumb-item`,e.clickable&&`${d}-breadcrumb-item--clickable`]},a(s.value,{class:`${d}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),a("span",{class:`${d}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function gr(e){return qe(e,[255,255,255,.16])}function In(e){return qe(e,[0,0,0,.12])}const rv="n-button-group",nv={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function Zs(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:v,primaryColorHover:p,primaryColorPressed:h,borderColor:g,primaryColor:b,baseColor:y,infoColor:x,infoColorHover:F,infoColorPressed:P,successColor:$,successColorHover:w,successColorPressed:k,warningColor:D,warningColorHover:T,warningColorPressed:A,errorColor:N,errorColorHover:B,errorColorPressed:E,fontWeight:K,buttonColor2:L,buttonColor2Hover:te,buttonColor2Pressed:U,fontWeightStrong:ie}=e;return Object.assign(Object.assign({},nv),{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:L,colorSecondaryHover:te,colorSecondaryPressed:U,colorTertiary:L,colorTertiaryHover:te,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:te,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:v,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:b,textColorPrimary:y,textColorHoverPrimary:y,textColorPressedPrimary:y,textColorFocusPrimary:y,textColorDisabledPrimary:y,textColorTextPrimary:b,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:b,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:x,colorHoverInfo:F,colorPressedInfo:P,colorFocusInfo:F,colorDisabledInfo:x,textColorInfo:y,textColorHoverInfo:y,textColorPressedInfo:y,textColorFocusInfo:y,textColorDisabledInfo:y,textColorTextInfo:x,textColorTextHoverInfo:F,textColorTextPressedInfo:P,textColorTextFocusInfo:F,textColorTextDisabledInfo:f,textColorGhostInfo:x,textColorGhostHoverInfo:F,textColorGhostPressedInfo:P,textColorGhostFocusInfo:F,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${F}`,borderPressedInfo:`1px solid ${P}`,borderFocusInfo:`1px solid ${F}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:$,colorHoverSuccess:w,colorPressedSuccess:k,colorFocusSuccess:w,colorDisabledSuccess:$,textColorSuccess:y,textColorHoverSuccess:y,textColorPressedSuccess:y,textColorFocusSuccess:y,textColorDisabledSuccess:y,textColorTextSuccess:$,textColorTextHoverSuccess:w,textColorTextPressedSuccess:k,textColorTextFocusSuccess:w,textColorTextDisabledSuccess:f,textColorGhostSuccess:$,textColorGhostHoverSuccess:w,textColorGhostPressedSuccess:k,textColorGhostFocusSuccess:w,textColorGhostDisabledSuccess:$,borderSuccess:`1px solid ${$}`,borderHoverSuccess:`1px solid ${w}`,borderPressedSuccess:`1px solid ${k}`,borderFocusSuccess:`1px solid ${w}`,borderDisabledSuccess:`1px solid ${$}`,rippleColorSuccess:$,colorWarning:D,colorHoverWarning:T,colorPressedWarning:A,colorFocusWarning:T,colorDisabledWarning:D,textColorWarning:y,textColorHoverWarning:y,textColorPressedWarning:y,textColorFocusWarning:y,textColorDisabledWarning:y,textColorTextWarning:D,textColorTextHoverWarning:T,textColorTextPressedWarning:A,textColorTextFocusWarning:T,textColorTextDisabledWarning:f,textColorGhostWarning:D,textColorGhostHoverWarning:T,textColorGhostPressedWarning:A,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:D,borderWarning:`1px solid ${D}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${A}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${D}`,rippleColorWarning:D,colorError:N,colorHoverError:B,colorPressedError:E,colorFocusError:B,colorDisabledError:N,textColorError:y,textColorHoverError:y,textColorPressedError:y,textColorFocusError:y,textColorDisabledError:y,textColorTextError:N,textColorTextHoverError:B,textColorTextPressedError:E,textColorTextFocusError:B,textColorTextDisabledError:f,textColorGhostError:N,textColorGhostHoverError:B,textColorGhostPressedError:E,textColorGhostFocusError:B,textColorGhostDisabledError:N,borderError:`1px solid ${N}`,borderHoverError:`1px solid ${B}`,borderPressedError:`1px solid ${E}`,borderFocusError:`1px solid ${B}`,borderDisabledError:`1px solid ${N}`,rippleColorError:N,waveOpacity:"0.6",fontWeight:K,fontWeightStrong:ie})}const vr={name:"Button",common:dt,self:Zs},po={name:"Button",common:De,self(e){const t=Zs(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},av=S([m("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[R("color",[z("border",{borderColor:"var(--n-border-color)"}),R("disabled",[z("border",{borderColor:"var(--n-border-color-disabled)"})]),at("disabled",[S("&:focus",[z("state-border",{borderColor:"var(--n-border-color-focus)"})]),S("&:hover",[z("state-border",{borderColor:"var(--n-border-color-hover)"})]),S("&:active",[z("state-border",{borderColor:"var(--n-border-color-pressed)"})]),R("pressed",[z("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),R("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[z("border",{border:"var(--n-border-disabled)"})]),at("disabled",[S("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[z("state-border",{border:"var(--n-border-focus)"})]),S("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[z("state-border",{border:"var(--n-border-hover)"})]),S("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[z("state-border",{border:"var(--n-border-pressed)"})]),R("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[z("state-border",{border:"var(--n-border-pressed)"})])]),R("loading","cursor: wait;"),m("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[R("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),xo&&"MozBoxSizing"in document.createElement("div").style?S("&::moz-focus-inner",{border:0}):null,z("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),z("border",` + border: var(--n-border); + `),z("state-border",` + border: var(--n-border); + border-color: #0000; + z-index: 1; + `),z("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[m("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[ho({top:"50%",originalTransform:"translateY(-50%)"})]),sh()]),z("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[S("~",[z("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),R("block",` + display: flex; + width: 100%; + `),R("dashed",[z("border, state-border",{borderStyle:"dashed !important"})]),R("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),S("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),S("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),iv=Object.assign(Object.assign({},Re.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!js}}),At=re({name:"Button",props:iv,slots:Object,setup(e){const t=O(null),o=O(null),r=O(!1),n=tt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ee(rv,{}),{mergedSizeRef:s}=vo({},{defaultSize:"medium",mergedSize:P=>{const{size:$}=e;if($)return $;const{size:w}=i;if(w)return w;const{mergedSize:k}=P||{};return k?k.value:"medium"}}),l=C(()=>e.focusable&&!e.disabled),d=P=>{var $;l.value||P.preventDefault(),!e.nativeFocusBehavior&&(P.preventDefault(),!e.disabled&&l.value&&(($=t.value)===null||$===void 0||$.focus({preventScroll:!0})))},c=P=>{var $;if(!e.disabled&&!e.loading){const{onClick:w}=e;w&&ae(w,P),e.text||($=o.value)===null||$===void 0||$.play()}},u=P=>{switch(P.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=P=>{switch(P.key){case"Enter":if(!e.keyboard||e.loading){P.preventDefault();return}r.value=!0}},v=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:g}=Qe(e),b=Re("Button","-button",av,vr,e,h),y=jt("Button",g,h),x=C(()=>{const P=b.value,{common:{cubicBezierEaseInOut:$,cubicBezierEaseOut:w},self:k}=P,{rippleDuration:D,opacityDisabled:T,fontWeight:A,fontWeightStrong:N}=k,B=s.value,{dashed:E,type:K,ghost:L,text:te,color:U,round:ie,circle:be,textColor:ce,secondary:V,tertiary:_,quaternary:I,strong:j}=e,J={"--n-font-weight":j?N:A};let se={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const xe=K==="tertiary",Ie=K==="default",H=xe?"default":K;if(te){const q=ce||U;se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":q||k[le("textColorText",H)],"--n-text-color-hover":q?gr(q):k[le("textColorTextHover",H)],"--n-text-color-pressed":q?In(q):k[le("textColorTextPressed",H)],"--n-text-color-focus":q?gr(q):k[le("textColorTextHover",H)],"--n-text-color-disabled":q||k[le("textColorTextDisabled",H)]}}else if(L||E){const q=ce||U;se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||k[le("rippleColor",H)],"--n-text-color":q||k[le("textColorGhost",H)],"--n-text-color-hover":q?gr(q):k[le("textColorGhostHover",H)],"--n-text-color-pressed":q?In(q):k[le("textColorGhostPressed",H)],"--n-text-color-focus":q?gr(q):k[le("textColorGhostHover",H)],"--n-text-color-disabled":q||k[le("textColorGhostDisabled",H)]}}else if(V){const q=Ie?k.textColor:xe?k.textColorTertiary:k[le("color",H)],Q=U||q,pe=K!=="default"&&K!=="tertiary";se={"--n-color":pe?Se(Q,{alpha:Number(k.colorOpacitySecondary)}):k.colorSecondary,"--n-color-hover":pe?Se(Q,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-pressed":pe?Se(Q,{alpha:Number(k.colorOpacitySecondaryPressed)}):k.colorSecondaryPressed,"--n-color-focus":pe?Se(Q,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-disabled":k.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Q,"--n-text-color-hover":Q,"--n-text-color-pressed":Q,"--n-text-color-focus":Q,"--n-text-color-disabled":Q}}else if(_||I){const q=Ie?k.textColor:xe?k.textColorTertiary:k[le("color",H)],Q=U||q;_?(se["--n-color"]=k.colorTertiary,se["--n-color-hover"]=k.colorTertiaryHover,se["--n-color-pressed"]=k.colorTertiaryPressed,se["--n-color-focus"]=k.colorSecondaryHover,se["--n-color-disabled"]=k.colorTertiary):(se["--n-color"]=k.colorQuaternary,se["--n-color-hover"]=k.colorQuaternaryHover,se["--n-color-pressed"]=k.colorQuaternaryPressed,se["--n-color-focus"]=k.colorQuaternaryHover,se["--n-color-disabled"]=k.colorQuaternary),se["--n-ripple-color"]="#0000",se["--n-text-color"]=Q,se["--n-text-color-hover"]=Q,se["--n-text-color-pressed"]=Q,se["--n-text-color-focus"]=Q,se["--n-text-color-disabled"]=Q}else se={"--n-color":U||k[le("color",H)],"--n-color-hover":U?gr(U):k[le("colorHover",H)],"--n-color-pressed":U?In(U):k[le("colorPressed",H)],"--n-color-focus":U?gr(U):k[le("colorFocus",H)],"--n-color-disabled":U||k[le("colorDisabled",H)],"--n-ripple-color":U||k[le("rippleColor",H)],"--n-text-color":ce||(U?k.textColorPrimary:xe?k.textColorTertiary:k[le("textColor",H)]),"--n-text-color-hover":ce||(U?k.textColorHoverPrimary:k[le("textColorHover",H)]),"--n-text-color-pressed":ce||(U?k.textColorPressedPrimary:k[le("textColorPressed",H)]),"--n-text-color-focus":ce||(U?k.textColorFocusPrimary:k[le("textColorFocus",H)]),"--n-text-color-disabled":ce||(U?k.textColorDisabledPrimary:k[le("textColorDisabled",H)])};let Pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};te?Pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Pe={"--n-border":k[le("border",H)],"--n-border-hover":k[le("borderHover",H)],"--n-border-pressed":k[le("borderPressed",H)],"--n-border-focus":k[le("borderFocus",H)],"--n-border-disabled":k[le("borderDisabled",H)]};const{[le("height",B)]:He,[le("fontSize",B)]:_e,[le("padding",B)]:Ge,[le("paddingRound",B)]:Xe,[le("iconSize",B)]:ct,[le("borderRadius",B)]:ot,[le("iconMargin",B)]:Ce,waveOpacity:ee}=k,ue={"--n-width":be&&!te?He:"initial","--n-height":te?"initial":He,"--n-font-size":_e,"--n-padding":be||te?"initial":ie?Xe:Ge,"--n-icon-size":ct,"--n-icon-margin":Ce,"--n-border-radius":te?"initial":be||ie?He:ot};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":$,"--n-bezier-ease-out":w,"--n-ripple-duration":D,"--n-opacity-disabled":T,"--n-wave-opacity":ee},J),se),Pe),ue)}),F=p?lt("button",C(()=>{let P="";const{dashed:$,type:w,ghost:k,text:D,color:T,round:A,circle:N,textColor:B,secondary:E,tertiary:K,quaternary:L,strong:te}=e;$&&(P+="a"),k&&(P+="b"),D&&(P+="c"),A&&(P+="d"),N&&(P+="e"),E&&(P+="f"),K&&(P+="g"),L&&(P+="h"),te&&(P+="i"),T&&(P+=`j${sn(T)}`),B&&(P+=`k${sn(B)}`);const{value:U}=s;return P+=`l${U[0]}`,P+=`m${w[0]}`,P}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:h,mergedFocusable:l,mergedSize:s,showBorder:n,enterPressed:r,rtlEnabled:y,handleMousedown:d,handleKeydown:f,handleBlur:v,handleKeyup:u,handleClick:c,customColorCssVars:C(()=>{const{color:P}=e;if(!P)return null;const $=gr(P);return{"--n-border-color":P,"--n-border-color-hover":$,"--n-border-color-pressed":In(P),"--n-border-color-focus":$,"--n-border-color-disabled":P}}),cssVars:p?void 0:x,themeClass:F?.themeClass,onRender:F?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o?.();const r=mt(this.$slots.default,n=>n&&a("span",{class:`${e}-button__content`},n));return a(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,a(yn,{width:!0},{default:()=>mt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&a("span",{class:`${e}-button__icon`,style:{margin:Ar(this.$slots.default)?"0":""}},a(dr,null,{default:()=>this.loading?a(Zo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):a("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&r,this.text?null:a(ch,{ref:"waveElRef",clsPrefix:e}),this.showBorder?a("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?a("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Ho=At,lv={date:Ru,month:fn,year:Zl,quarter:Ql};function sv(e){return(t,o)=>{const r=dv(e);return zu(t,o,{weekStartsOn:r})}}function dv(e){return(e+1)%7}function lo(e,t,o,r=0){return(o==="week"?sv(r):lv[o])(e,t)}function xa(e,t,o,r,n,i){return n==="date"?cv(e,t,o,r):uv(e,t,o,r,i)}function cv(e,t,o,r){let n=!1,i=!1,s=!1;Array.isArray(o)&&(o[0]",[z("content",{paddingTop:"var(--n-padding-bottom)"})])]),R("content-soft-segmented",[S(">",[z("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),R("footer-segmented",[S(">",[z("footer",{paddingTop:"var(--n-padding-bottom)"})])]),R("footer-soft-segmented",[S(">",[z("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),S(">",[m("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[z("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),z("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),z("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),z("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),z("content","flex: 1; min-width: 0;"),z("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[S("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),z("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),m("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[S("img",` + display: block; + width: 100%; + `)]),R("bordered",` + border: 1px solid var(--n-border-color); + `,[S("&:target","border-color: var(--n-color-target);")]),R("action-segmented",[S(">",[z("action",[S("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),R("content-segmented, content-soft-segmented",[S(">",[z("content",{transition:"border-color 0.3s var(--n-bezier)"},[S("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),R("footer-segmented, footer-soft-segmented",[S(">",[z("footer",{transition:"border-color 0.3s var(--n-bezier)"},[S("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),R("embedded",` + background-color: var(--n-color-embedded); + `)]),jr(m("card",` + background: var(--n-color-modal); + `,[R("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),vn(m("card",` + background: var(--n-color-popover); + `,[R("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),Ri={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},yv=zo(Ri),wv=Object.assign(Object.assign({},Re.props),Ri),Sv=re({name:"Card",props:wv,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&ae(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n}=Qe(e),i=Re("Card","-card",Cv,od,e,r),s=jt("Card",n,r),l=C(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:v,textColor:p,titleTextColor:h,titleFontWeight:g,borderColor:b,actionColor:y,borderRadius:x,lineHeight:F,closeIconColor:P,closeIconColorHover:$,closeIconColorPressed:w,closeColorHover:k,closeColorPressed:D,closeBorderRadius:T,closeIconSize:A,closeSize:N,boxShadow:B,colorPopover:E,colorEmbedded:K,colorEmbeddedModal:L,colorEmbeddedPopover:te,[le("padding",c)]:U,[le("fontSize",c)]:ie,[le("titleFontSize",c)]:be},common:{cubicBezierEaseInOut:ce}}=i.value,{top:V,left:_,bottom:I}=Nt(U);return{"--n-bezier":ce,"--n-border-radius":x,"--n-color":u,"--n-color-modal":f,"--n-color-popover":E,"--n-color-embedded":K,"--n-color-embedded-modal":L,"--n-color-embedded-popover":te,"--n-color-target":v,"--n-text-color":p,"--n-line-height":F,"--n-action-color":y,"--n-title-text-color":h,"--n-title-font-weight":g,"--n-close-icon-color":P,"--n-close-icon-color-hover":$,"--n-close-icon-color-pressed":w,"--n-close-color-hover":k,"--n-close-color-pressed":D,"--n-border-color":b,"--n-box-shadow":B,"--n-padding-top":V,"--n-padding-bottom":I,"--n-padding-left":_,"--n-font-size":ie,"--n-title-font-size":be,"--n-close-size":N,"--n-close-icon-size":A,"--n-close-border-radius":T}}),d=o?lt("card",C(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:s,tag:l,$slots:d}=this;return i?.(),a(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:o}],style:this.cssVars,role:this.role},mt(d.cover,c=>{const u=this.cover?Bo([this.cover()]):c;return u&&a("div",{class:`${r}-card-cover`,role:"none"},u)}),mt(d.header,c=>{const{title:u}=this,f=u?Bo(typeof u=="function"?[u()]:[u]):c;return f||this.closable?a("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},a("div",{class:`${r}-card-header__main`,role:"heading"},f),mt(d["header-extra"],v=>{const p=this.headerExtra?Bo([this.headerExtra()]):v;return p&&a("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},p)}),this.closable&&a(cr,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),mt(d.default,c=>{const{content:u}=this,f=u?Bo(typeof u=="function"?[u()]:[u]):c;return f&&a("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),mt(d.footer,c=>{const u=this.footer?Bo([this.footer()]):c;return u&&a("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),mt(d.action,c=>{const u=this.action?Bo([this.action()]):c;return u&&a("div",{class:`${r}-card__action`,role:"none"},u)}))}});function kv(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const Rv={name:"Carousel",common:De,self:kv},zv={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function nd(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:s,borderColor:l,primaryColor:d,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},zv),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadius:p,color:t,colorChecked:d,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${d}`,borderFocus:`1px solid ${d}`,boxShadowFocus:`0 0 0 2px ${Se(d,{alpha:.3})}`,textColor:c,textColorDisabled:s})}const zi={name:"Checkbox",common:dt,self:nd},Ur={name:"Checkbox",common:De,self(e){const{cardColor:t}=e,o=nd(e);return o.color="#0000",o.checkMarkColor=t,o}};function Pv(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:s,textColorDisabled:l,dividerColor:d,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:d,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:s,optionTextColorDisabled:l,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}}const $v={name:"Cascader",common:De,peers:{InternalSelectMenu:kn,InternalSelection:ki,Scrollbar:no,Checkbox:Ur,Empty:Sn},self:Pv},ad="n-checkbox-group",Tv={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},Fv=re({name:"CheckboxGroup",props:Tv,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=vo(e),{mergedSizeRef:r,mergedDisabledRef:n}=o,i=O(e.defaultValue),s=C(()=>e.value),l=$t(s,i),d=C(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=C(()=>Array.isArray(l.value)?new Set(l.value):new Set);function u(f,v){const{nTriggerFormInput:p,nTriggerFormChange:h}=o,{onChange:g,"onUpdate:value":b,onUpdateValue:y}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),F=x.findIndex(P=>P===v);f?~F||(x.push(v),y&&ae(y,x,{actionType:"check",value:v}),b&&ae(b,x,{actionType:"check",value:v}),p(),h(),i.value=x,g&&ae(g,x)):~F&&(x.splice(F,1),y&&ae(y,x,{actionType:"uncheck",value:v}),b&&ae(b,x,{actionType:"uncheck",value:v}),g&&ae(g,x),i.value=x,p(),h())}else f?(y&&ae(y,[v],{actionType:"check",value:v}),b&&ae(b,[v],{actionType:"check",value:v}),g&&ae(g,[v]),i.value=[v],p(),h()):(y&&ae(y,[],{actionType:"uncheck",value:v}),b&&ae(b,[],{actionType:"uncheck",value:v}),g&&ae(g,[]),i.value=[],p(),h())}return et(ad,{checkedCountRef:d,maxRef:fe(e,"max"),minRef:fe(e,"min"),valueSetRef:c,disabledRef:n,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return a("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Iv=()=>a("svg",{viewBox:"0 0 64 64",class:"check-icon"},a("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Bv=()=>a("svg",{viewBox:"0 0 100 100",class:"line-icon"},a("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),Ov=S([m("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[R("show-label","line-height: var(--n-label-line-height);"),S("&:hover",[m("checkbox-box",[z("border","border: var(--n-border-checked);")])]),S("&:focus:not(:active)",[m("checkbox-box",[z("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),R("inside-table",[m("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),R("checked",[m("checkbox-box",` + background-color: var(--n-color-checked); + `,[m("checkbox-icon",[S(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),R("indeterminate",[m("checkbox-box",[m("checkbox-icon",[S(".check-icon",` + opacity: 0; + transform: scale(.5); + `),S(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),R("checked, indeterminate",[S("&:focus:not(:active)",[m("checkbox-box",[z("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),m("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[z("border",{border:"var(--n-border-checked)"})])]),R("disabled",{cursor:"not-allowed"},[R("checked",[m("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[z("border",{border:"var(--n-border-disabled-checked)"}),m("checkbox-icon",[S(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),m("checkbox-box",` + background-color: var(--n-color-disabled); + `,[z("border",` + border: var(--n-border-disabled); + `),m("checkbox-icon",[S(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),z("label",` + color: var(--n-text-color-disabled); + `)]),m("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),m("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[z("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),m("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[S(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),ho({left:"1px",top:"1px"})])]),z("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[S("&:empty",{display:"none"})])]),jr(m("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),vn(m("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]),Mv=Object.assign(Object.assign({},Re.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),oa=re({name:"Checkbox",props:Mv,setup(e){const t=Ee(ad,null),o=O(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=O(e.defaultChecked),l=fe(e,"checked"),d=$t(l,s),c=tt(()=>{if(t){const w=t.valueSetRef.value;return w&&e.value!==void 0?w.has(e.value):!1}else return d.value===e.checkedValue}),u=vo(e,{mergedSize(w){const{size:k}=e;if(k!==void 0)return k;if(t){const{value:D}=t.mergedSizeRef;if(D!==void 0)return D}if(w){const{mergedSize:D}=w;if(D!==void 0)return D.value}return"medium"},mergedDisabled(w){const{disabled:k}=e;if(k!==void 0)return k;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:D},checkedCountRef:T}=t;if(D!==void 0&&T.value>=D&&!c.value)return!0;const{minRef:{value:A}}=t;if(A!==void 0&&T.value<=A&&c.value)return!0}return w?w.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:v}=u,p=Re("Checkbox","-checkbox",Ov,zi,e,r);function h(w){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:k,"onUpdate:checked":D,onUpdateChecked:T}=e,{nTriggerFormInput:A,nTriggerFormChange:N}=u,B=c.value?e.uncheckedValue:e.checkedValue;D&&ae(D,B,w),T&&ae(T,B,w),k&&ae(k,B,w),A(),N(),s.value=B}}function g(w){f.value||h(w)}function b(w){if(!f.value)switch(w.key){case" ":case"Enter":h(w)}}function y(w){switch(w.key){case" ":w.preventDefault()}}const x={focus:()=>{var w;(w=o.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=o.value)===null||w===void 0||w.blur()}},F=jt("Checkbox",i,r),P=C(()=>{const{value:w}=v,{common:{cubicBezierEaseInOut:k},self:{borderRadius:D,color:T,colorChecked:A,colorDisabled:N,colorTableHeader:B,colorTableHeaderModal:E,colorTableHeaderPopover:K,checkMarkColor:L,checkMarkColorDisabled:te,border:U,borderFocus:ie,borderDisabled:be,borderChecked:ce,boxShadowFocus:V,textColor:_,textColorDisabled:I,checkMarkColorDisabledChecked:j,colorDisabledChecked:J,borderDisabledChecked:se,labelPadding:xe,labelLineHeight:Ie,labelFontWeight:H,[le("fontSize",w)]:Pe,[le("size",w)]:He}}=p.value;return{"--n-label-line-height":Ie,"--n-label-font-weight":H,"--n-size":He,"--n-bezier":k,"--n-border-radius":D,"--n-border":U,"--n-border-checked":ce,"--n-border-focus":ie,"--n-border-disabled":be,"--n-border-disabled-checked":se,"--n-box-shadow-focus":V,"--n-color":T,"--n-color-checked":A,"--n-color-table":B,"--n-color-table-modal":E,"--n-color-table-popover":K,"--n-color-disabled":N,"--n-color-disabled-checked":J,"--n-text-color":_,"--n-text-color-disabled":I,"--n-check-mark-color":L,"--n-check-mark-color-disabled":te,"--n-check-mark-color-disabled-checked":j,"--n-font-size":Pe,"--n-label-padding":xe}}),$=n?lt("checkbox",C(()=>v.value[0]),P,e):void 0;return Object.assign(u,x,{rtlEnabled:F,selfRef:o,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:c,mergedTheme:p,labelId:qo(),handleClick:g,handleKeyUp:b,handleKeyDown:y,cssVars:n?void 0:P,themeClass:$?.themeClass,onRender:$?.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:r,indeterminate:n,privateInsideTable:i,cssVars:s,labelId:l,label:d,mergedClsPrefix:c,focusable:u,handleKeyUp:f,handleKeyDown:v,handleClick:p}=this;(e=this.onRender)===null||e===void 0||e.call(this);const h=mt(t.default,g=>d||g?a("span",{class:`${c}-checkbox__label`,id:l},d||g):null);return a("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,o&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,n&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,h&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":n?"mixed":o,"aria-labelledby":l,style:s,onKeyup:f,onKeydown:v,onClick:p,onMousedown:()=>{Lt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},a("div",{class:`${c}-checkbox-box-wrapper`}," ",a("div",{class:`${c}-checkbox-box`},a(dr,null,{default:()=>this.indeterminate?a("div",{key:"indeterminate",class:`${c}-checkbox-icon`},Bv()):a("div",{key:"check",class:`${c}-checkbox-icon`},Iv())}),a("div",{class:`${c}-checkbox-box__border`}))),h)}}),id={name:"Code",common:De,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function Dv(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Av={name:"Collapse",common:De,self:Dv};function _v(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Hv={name:"CollapseTransition",common:De,self:_v};function ld(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:s,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${s}`,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:p}}const Ev={name:"ColorPicker",common:dt,peers:{Input:hr,Button:vr},self:ld},Lv={name:"ColorPicker",common:De,peers:{Input:yo,Button:po},self:ld};function Nv(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function un(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function jv(e,t=[255,255,255],o="AA"){const[r,n,i,s]=io(Vo(e));if(s===1){const p=Bn([r,n,i]),h=Bn(t);return(Math.max(p,h)+.05)/(Math.min(p,h)+.05)>=(o==="AA"?4.5:7)}const l=Math.round(r*s+t[0]*(1-s)),d=Math.round(n*s+t[1]*(1-s)),c=Math.round(i*s+t[2]*(1-s)),u=Bn([l,d,c]),f=Bn(t);return(Math.max(u,f)+.05)/(Math.min(u,f)+.05)>=(o==="AA"?4.5:7)}function Bn(e){const[t,o,r]=e.map(n=>(n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)));return .2126*t+.7152*o+.0722*r}function Vv(e){return e=Math.round(e),e>=360?359:e<0?0:e}function Wv(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const Uv={rgb:{hex(e){return or(io(e))},hsl(e){const[t,o,r,n]=io(e);return Vo([..._a(t,o,r),n])},hsv(e){const[t,o,r,n]=io(e);return yr([...Aa(t,o,r),n])}},hex:{rgb(e){return Wo(io(e))},hsl(e){const[t,o,r,n]=io(e);return Vo([..._a(t,o,r),n])},hsv(e){const[t,o,r,n]=io(e);return yr([...Aa(t,o,r),n])}},hsl:{hex(e){const[t,o,r,n]=Dr(e);return or([...Da(t,o,r),n])},rgb(e){const[t,o,r,n]=Dr(e);return Wo([...Da(t,o,r),n])},hsv(e){const[t,o,r,n]=Dr(e);return yr([...es(t,o,r),n])}},hsv:{hex(e){const[t,o,r,n]=Cr(e);return or([...tr(t,o,r),n])},rgb(e){const[t,o,r,n]=Cr(e);return Wo([...tr(t,o,r),n])},hsl(e){const[t,o,r,n]=Cr(e);return Vo([...jn(t,o,r),n])}}};function sd(e,t,o){return o=o||un(e),o?o===t?e:Uv[o][t](e):null}const Jr="12px",Kv=12,mr="6px",qv=re({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=O(null);function o(i){!t.value||!e.rgba||(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=(i.clientX-d)/(l-Kv);e.onUpdateAlpha(Wv(c))}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:C(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Jr,borderRadius:mr},onMousedown:this.handleMouseDown},a("div",{style:{borderRadius:mr,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},a("div",{class:`${e}-color-picker-checkboard`}),a("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&a("div",{style:{position:"absolute",left:mr,right:mr,top:0,bottom:0}},a("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${mr})`,borderRadius:mr,width:Jr,height:Jr}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Wo(this.rgba),borderRadius:mr,width:Jr,height:Jr}}))))}}),Pi="n-color-picker";function Yv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function Gv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function Xv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function Zv(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function Qv(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const Jv={paddingSmall:"0 4px"},Rl=re({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=O(""),{themeRef:o}=Ee(Pi,null);Ft(()=>{t.value=r()});function r(){const{value:s}=e;if(s===null)return"";const{label:l}=e;return l==="HEX"?s:l==="A"?`${Math.floor(s*100)}%`:String(Math.floor(s))}function n(s){t.value=s}function i(s){let l,d;switch(e.label){case"HEX":d=Zv(s),d&&e.onUpdateValue(s),t.value=r();break;case"H":l=Gv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=Xv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=Qv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=Yv(s),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:n}},render(){const{mergedTheme:e}=this;return a(Mo,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:Jv,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),ep=re({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?or:rn)(o));return}let n;switch(e.valueArr===null?n=[0,0,0,0]:n=Array.from(e.valueArr),e.mode){case"hsv":n[t]=o,e.onUpdateValue((r?yr:La)(n));break;case"rgb":n[t]=o,e.onUpdateValue((r?Wo:Ea)(n));break;case"hsl":n[t]=o,e.onUpdateValue((r?Vo:Ha)(n));break}}}},render(){const{clsPrefix:e,modes:t}=this;return a("div",{class:`${e}-color-picker-input`},a("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),a(Ih,null,{default:()=>{const{mode:o,valueArr:r,showAlpha:n}=this;if(o==="hex"){let i=null;try{i=r===null?null:(n?or:rn)(r)}catch{}return a(Rl,{label:"HEX",showAlpha:n,value:i,onUpdateValue:s=>{this.handleUnitUpdateValue(0,s)}})}return(o+(n?"a":"")).split("").map((i,s)=>a(Rl,{label:i.toUpperCase(),value:r===null?null:r[s],onUpdateValue:l=>{this.handleUnitUpdateValue(s,l)}}))}}))}});function tp(e,t){if(t==="hsv"){const[o,r,n,i]=Cr(e);return Wo([...tr(o,r,n),i])}return e}function op(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const rp=re({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=C(()=>e.swatches.map(i=>{const s=un(i);return{value:i,mode:s,legalValue:tp(i,s)}}));function o(i){const{mode:s}=e;let{value:l,mode:d}=i;return d||(d="hex",/^[a-zA-Z]+$/.test(l)?l=op(l):(`${l}`,l="#000000")),d===s?l:sd(l,s,d)}function r(i){e.onUpdateColor(o(i))}function n(i,s){i.key==="Enter"&&r(s)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:n}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>a("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},a("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),np=re({name:"ColorPickerTrigger",slots:Object,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Ee(Pi,null);return()=>{const{hsla:r,value:n,clsPrefix:i,onClick:s,disabled:l}=e,d=t.label||o.value;return a("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:s},a("div",{class:`${i}-color-picker-trigger__fill`},a("div",{class:`${i}-color-picker-checkboard`}),a("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?Vo(r):""}}),n&&r?a("div",{class:`${i}-color-picker-trigger__value`,style:{color:jv(r)?"white":"black"}},d?d(n):n):null))}}}),ap=re({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=un(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var r;const n=o.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,sd(n.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-preview__preview`},a("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),a("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),Or="12px",ip=12,br="6px",lp=6,sp="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",dp=re({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=O(null);function o(i){t.value&&(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=Vv((i.clientX-d-lp)/(l-ip)*360);e.onUpdateHue(c)}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-slider`,style:{height:Or,borderRadius:br}},a("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:sp,height:Or,borderRadius:br,position:"relative"},onMousedown:this.handleMouseDown},a("div",{style:{position:"absolute",left:br,right:br,top:0,bottom:0}},a("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${br})`,borderRadius:br,width:Or,height:Or}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:br,width:Or,height:Or}})))))}}),On="12px",Mn="6px",cp=re({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=O(null);function o(i){t.value&&(Lt("mousemove",document,r),Lt("mouseup",document,n),r(i))}function r(i){const{value:s}=t;if(!s)return;const{width:l,height:d,left:c,bottom:u}=s.getBoundingClientRect(),f=(u-i.clientY)/d,v=(i.clientX-c)/l,p=100*(v>1?1:v<0?0:v),h=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,h)}function n(){var i;Yt("mousemove",document,r),Yt("mouseup",document,n),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:C(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},a("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),a("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&a("div",{class:`${e}-color-picker-handle`,style:{width:On,height:On,borderRadius:Mn,left:`calc(${this.displayedSv[0]}% - ${Mn})`,bottom:`calc(${this.displayedSv[1]}% - ${Mn})`}},a("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:Mn,width:On,height:On}})))}}),up=S([m("color-picker",` + display: inline-block; + box-sizing: border-box; + height: var(--n-height); + font-size: var(--n-font-size); + width: 100%; + position: relative; + `),m("color-picker-panel",` + margin: 4px 0; + width: 240px; + font-size: var(--n-panel-font-size); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + `,[fr(),m("input",` + text-align: center; + `)]),m("color-picker-checkboard",` + background: white; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[S("&::after",` + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 12px 12px; + background-position: 0 0, 0 6px, 6px -6px, -6px 0px; + background-repeat: repeat; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),m("color-picker-slider",` + margin-bottom: 8px; + position: relative; + box-sizing: border-box; + `,[z("image",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),S("&::after",` + content: ""; + position: absolute; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + pointer-events: none; + `)]),m("color-picker-handle",` + z-index: 1; + box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); + position: absolute; + background-color: white; + overflow: hidden; + `,[z("fill",` + box-sizing: border-box; + border: 2px solid white; + `)]),m("color-picker-pallete",` + height: 180px; + position: relative; + margin-bottom: 8px; + cursor: crosshair; + `,[z("layer",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[R("shadowed",` + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + `)])]),m("color-picker-preview",` + display: flex; + `,[z("sliders",` + flex: 1 0 auto; + `),z("preview",` + position: relative; + height: 30px; + width: 30px; + margin: 0 0 8px 6px; + border-radius: 50%; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + overflow: hidden; + `),z("fill",` + display: block; + width: 30px; + height: 30px; + `),z("input",` + position: absolute; + top: 0; + left: 0; + width: 30px; + height: 30px; + opacity: 0; + z-index: 1; + `)]),m("color-picker-input",` + display: flex; + align-items: center; + `,[m("input",` + flex-grow: 1; + flex-basis: 0; + `),z("mode",` + width: 72px; + text-align: center; + `)]),m("color-picker-control",` + padding: 12px; + `),m("color-picker-action",` + display: flex; + margin-top: -4px; + border-top: 1px solid var(--n-divider-color); + padding: 8px 12px; + justify-content: flex-end; + `,[m("button","margin-left: 8px;")]),m("color-picker-trigger",` + border: var(--n-border); + height: 100%; + box-sizing: border-box; + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + cursor: pointer; + `,[z("value",` + white-space: nowrap; + position: relative; + `),z("fill",` + border-radius: var(--n-border-radius); + position: absolute; + display: flex; + align-items: center; + justify-content: center; + left: 4px; + right: 4px; + top: 4px; + bottom: 4px; + `),R("disabled","cursor: not-allowed"),m("color-picker-checkboard",` + border-radius: var(--n-border-radius); + `,[S("&::after",` + --n-block-size: calc((var(--n-height) - 8px) / 3); + background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); + background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; + `)])]),m("color-picker-swatches",` + display: grid; + grid-gap: 8px; + flex-wrap: wrap; + position: relative; + grid-template-columns: repeat(auto-fill, 18px); + margin-top: 10px; + `,[m("color-picker-swatch",` + width: 18px; + height: 18px; + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 8px 8px; + background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; + background-repeat: repeat; + `,[z("fill",` + position: relative; + width: 100%; + height: 100%; + border-radius: 3px; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + cursor: pointer; + `),S("&:focus",` + outline: none; + `,[z("fill",[S("&::after",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: inherit; + filter: blur(2px); + content: ""; + `)])])])])]),fp=Object.assign(Object.assign({},Re.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Zt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Cy=re({name:"ColorPicker",props:fp,slots:Object,setup(e,{slots:t}){const o=O(null);let r=null;const n=vo(e),{mergedSizeRef:i,mergedDisabledRef:s}=n,{localeRef:l}=$o("global"),{mergedClsPrefixRef:d,namespaceRef:c,inlineThemeDisabled:u}=Qe(e),f=Re("ColorPicker","-color-picker",up,Ev,e,d);et(Pi,{themeRef:f,renderLabelRef:fe(e,"renderLabel"),colorPickerSlots:t});const v=O(e.defaultShow),p=$t(fe(e,"show"),v);function h(ee){const{onUpdateShow:ue,"onUpdate:show":q}=e;ue&&ae(ue,ee),q&&ae(q,ee),v.value=ee}const{defaultValue:g}=e,b=O(g===void 0?Nv(e.modes,e.showAlpha):g),y=$t(fe(e,"value"),b),x=O([y.value]),F=O(0),P=C(()=>un(y.value)),{modes:$}=e,w=O(un(y.value)||$[0]||"rgb");function k(){const{modes:ee}=e,{value:ue}=w,q=ee.findIndex(Q=>Q===ue);~q?w.value=ee[(q+1)%ee.length]:w.value="rgb"}let D,T,A,N,B,E,K,L;const te=C(()=>{const{value:ee}=y;if(!ee)return null;switch(P.value){case"hsv":return Cr(ee);case"hsl":return[D,T,A,L]=Dr(ee),[...es(D,T,A),L];case"rgb":case"hex":return[B,E,K,L]=io(ee),[...Aa(B,E,K),L]}}),U=C(()=>{const{value:ee}=y;if(!ee)return null;switch(P.value){case"rgb":case"hex":return io(ee);case"hsv":return[D,T,N,L]=Cr(ee),[...tr(D,T,N),L];case"hsl":return[D,T,A,L]=Dr(ee),[...Da(D,T,A),L]}}),ie=C(()=>{const{value:ee}=y;if(!ee)return null;switch(P.value){case"hsl":return Dr(ee);case"hsv":return[D,T,N,L]=Cr(ee),[...jn(D,T,N),L];case"rgb":case"hex":return[B,E,K,L]=io(ee),[..._a(B,E,K),L]}}),be=C(()=>{switch(w.value){case"rgb":case"hex":return U.value;case"hsv":return te.value;case"hsl":return ie.value}}),ce=O(0),V=O(1),_=O([0,0]);function I(ee,ue){const{value:q}=te,Q=ce.value,pe=q?q[3]:1;_.value=[ee,ue];const{showAlpha:we}=e;switch(w.value){case"hsv":se((we?yr:La)([Q,ee,ue,pe]),"cursor");break;case"hsl":se((we?Vo:Ha)([...jn(Q,ee,ue),pe]),"cursor");break;case"rgb":se((we?Wo:Ea)([...tr(Q,ee,ue),pe]),"cursor");break;case"hex":se((we?or:rn)([...tr(Q,ee,ue),pe]),"cursor");break}}function j(ee){ce.value=ee;const{value:ue}=te;if(!ue)return;const[,q,Q,pe]=ue,{showAlpha:we}=e;switch(w.value){case"hsv":se((we?yr:La)([ee,q,Q,pe]),"cursor");break;case"rgb":se((we?Wo:Ea)([...tr(ee,q,Q),pe]),"cursor");break;case"hex":se((we?or:rn)([...tr(ee,q,Q),pe]),"cursor");break;case"hsl":se((we?Vo:Ha)([...jn(ee,q,Q),pe]),"cursor");break}}function J(ee){switch(w.value){case"hsv":[D,T,N]=te.value,se(yr([D,T,N,ee]),"cursor");break;case"rgb":[B,E,K]=U.value,se(Wo([B,E,K,ee]),"cursor");break;case"hex":[B,E,K]=U.value,se(or([B,E,K,ee]),"cursor");break;case"hsl":[D,T,A]=ie.value,se(Vo([D,T,A,ee]),"cursor");break}V.value=ee}function se(ee,ue){ue==="cursor"?r=ee:r=null;const{nTriggerFormChange:q,nTriggerFormInput:Q}=n,{onUpdateValue:pe,"onUpdate:value":we}=e;pe&&ae(pe,ee),we&&ae(we,ee),q(),Q(),b.value=ee}function xe(ee){se(ee,"input"),Tt(Ie)}function Ie(ee=!0){const{value:ue}=y;if(ue){const{nTriggerFormChange:q,nTriggerFormInput:Q}=n,{onComplete:pe}=e;pe&&pe(ue);const{value:we}=x,{value:de}=F;ee&&(we.splice(de+1,we.length,ue),F.value=de+1),q(),Q()}}function H(){const{value:ee}=F;ee-1<0||(se(x.value[ee-1],"input"),Ie(!1),F.value=ee-1)}function Pe(){const{value:ee}=F;ee<0||ee+1>=x.value.length||(se(x.value[ee+1],"input"),Ie(!1),F.value=ee+1)}function He(){se(null,"input");const{onClear:ee}=e;ee&&ee(),h(!1)}function _e(){const{value:ee}=y,{onConfirm:ue}=e;ue&&ue(ee),h(!1)}const Ge=C(()=>F.value>=1),Xe=C(()=>{const{value:ee}=x;return ee.length>1&&F.value{ee||(x.value=[y.value],F.value=0)}),Ft(()=>{if(!(r&&r===y.value)){const{value:ee}=te;ee&&(ce.value=ee[0],V.value=ee[3],_.value=[ee[1],ee[2]])}r=null});const ct=C(()=>{const{value:ee}=i,{common:{cubicBezierEaseInOut:ue},self:{textColor:q,color:Q,panelFontSize:pe,boxShadow:we,border:de,borderRadius:me,dividerColor:je,[le("height",ee)]:oe,[le("fontSize",ee)]:Ue}}=f.value;return{"--n-bezier":ue,"--n-text-color":q,"--n-color":Q,"--n-panel-font-size":pe,"--n-font-size":Ue,"--n-box-shadow":we,"--n-border":de,"--n-border-radius":me,"--n-height":oe,"--n-divider-color":je}}),ot=u?lt("color-picker",C(()=>i.value[0]),ct,e):void 0;function Ce(){var ee;const{value:ue}=U,{value:q}=ce,{internalActions:Q,modes:pe,actions:we}=e,{value:de}=f,{value:me}=d;return a("div",{class:[`${me}-color-picker-panel`,ot?.themeClass.value],onDragstart:je=>{je.preventDefault()},style:u?void 0:ct.value},a("div",{class:`${me}-color-picker-control`},a(cp,{clsPrefix:me,rgba:ue,displayedHue:q,displayedSv:_.value,onUpdateSV:I,onComplete:Ie}),a("div",{class:`${me}-color-picker-preview`},a("div",{class:`${me}-color-picker-preview__sliders`},a(dp,{clsPrefix:me,hue:q,onUpdateHue:j,onComplete:Ie}),e.showAlpha?a(qv,{clsPrefix:me,rgba:ue,alpha:V.value,onUpdateAlpha:J,onComplete:Ie}):null),e.showPreview?a(ap,{clsPrefix:me,mode:w.value,color:U.value&&rn(U.value),onUpdateColor:je=>{se(je,"input")}}):null),a(ep,{clsPrefix:me,showAlpha:e.showAlpha,mode:w.value,modes:pe,onUpdateMode:k,value:y.value,valueArr:be.value,onUpdateValue:xe}),((ee=e.swatches)===null||ee===void 0?void 0:ee.length)&&a(rp,{clsPrefix:me,mode:w.value,swatches:e.swatches,onUpdateColor:je=>{se(je,"input")}})),we?.length?a("div",{class:`${me}-color-picker-action`},we.includes("confirm")&&a(At,{size:"small",onClick:_e,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.confirm}),we.includes("clear")&&a(At,{size:"small",onClick:He,disabled:!y.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?a("div",{class:`${me}-color-picker-action`},{default:t.action}):Q?a("div",{class:`${me}-color-picker-action`},Q.includes("undo")&&a(At,{size:"small",onClick:H,disabled:!Ge.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.undo}),Q.includes("redo")&&a(At,{size:"small",onClick:Pe,disabled:!Xe.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:d,namespace:c,selfRef:o,hsla:ie,rgba:U,mergedShow:p,mergedDisabled:s,isMounted:Yo(),adjustedTo:Zt(e),mergedValue:y,handleTriggerClick(){h(!0)},handleClickOutside(ee){var ue;!((ue=o.value)===null||ue===void 0)&&ue.contains(Ko(ee))||h(!1)},renderPanel:Ce,cssVars:u?void 0:ct,themeClass:ot?.themeClass,onRender:ot?.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t?.(),a("div",{class:[this.themeClass,`${e}-color-picker`],ref:"selfRef",style:this.cssVars},a(Rr,null,{default:()=>[a(zr,null,{default:()=>a(np,{clsPrefix:e,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick})}),a(kr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Zt.tdkey,to:this.adjustedTo},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?uo(this.renderPanel(),[[Lo,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),hp={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>!0,default:void 0}},vp=re({name:"ConfigProvider",alias:["App"],props:hp,setup(e){const t=Ee(Po,null),o=C(()=>{const{theme:g}=e;if(g===null)return;const b=t?.mergedThemeRef.value;return g===void 0?b:b===void 0?g:Object.assign({},b,g)}),r=C(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t?.mergedThemeOverridesRef.value;{const b=t?.mergedThemeOverridesRef.value;return b===void 0?g:Mr({},b,g)}}}),n=tt(()=>{const{namespace:g}=e;return g===void 0?t?.mergedNamespaceRef.value:g}),i=tt(()=>{const{bordered:g}=e;return g===void 0?t?.mergedBorderedRef.value:g}),s=C(()=>{const{icons:g}=e;return g===void 0?t?.mergedIconsRef.value:g}),l=C(()=>{const{componentOptions:g}=e;return g!==void 0?g:t?.mergedComponentPropsRef.value}),d=C(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:Yn}),c=C(()=>{var g;const{rtl:b}=e;if(b===void 0)return t?.mergedRtlRef.value;const y={};for(const x of b)y[x.name]=Qi(x),(g=x.peers)===null||g===void 0||g.forEach(F=>{F.name in y||(y[F.name]=Qi(F))});return y}),u=C(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,v=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget,h=C(()=>{const{value:g}=o,{value:b}=r,y=b&&Object.keys(b).length!==0,x=g?.name;return x?y?`${x}-${qn(JSON.stringify(r.value))}`:x:y?qn(JSON.stringify(r.value)):""});return et(Po,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:d,mergedLocaleRef:C(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t?.mergedLocaleRef.value:g}),mergedDateLocaleRef:C(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t?.mergedDateLocaleRef.value:g}),mergedHljsRef:C(()=>{const{hljs:g}=e;return g===void 0?t?.mergedHljsRef.value:g}),mergedKatexRef:C(()=>{const{katex:g}=e;return g===void 0?t?.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:v||!1,styleMountTarget:p}),{mergedClsPrefix:d,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){var e,t,o,r;return this.abstract?(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o):a(this.as||this.tag,{class:`${this.mergedClsPrefix||Yn}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),dd={name:"Popselect",common:De,peers:{Popover:Tr,InternalSelectMenu:kn}};function pp(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const $i={name:"Popselect",common:dt,peers:{Popover:Wr,InternalSelectMenu:Si},self:pp},cd="n-popselect",gp=m("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`),Ti={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},zl=zo(Ti),mp=re({name:"PopselectPanel",props:Ti,setup(e){const t=Ee(cd),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(e),n=Re("Popselect","-pop-select",gp,$i,t.props,o),i=C(()=>Uo(e.options,Ks("value","children")));function s(v,p){const{onUpdateValue:h,"onUpdate:value":g,onChange:b}=e;h&&ae(h,v,p),g&&ae(g,v,p),b&&ae(b,v,p)}function l(v){c(v.key)}function d(v){!Jt(v,"action")&&!Jt(v,"empty")&&!Jt(v,"header")&&v.preventDefault()}function c(v){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const h=[],g=[];let b=!0;e.value.forEach(y=>{if(y===v){b=!1;return}const x=p(y);x&&(h.push(x.key),g.push(x.rawNode))}),b&&(h.push(v),g.push(p(v).rawNode)),s(h,g)}else{const h=p(v);h&&s([v],[h.rawNode])}else if(e.value===v&&e.cancelable)s(null,null);else{const h=p(v);h&&s(v,h.rawNode);const{"onUpdate:show":g,onUpdateShow:b}=t.props;g&&ae(g,!1),b&&ae(b,!1),t.setShow(!1)}Tt(()=>{t.syncPosition()})}gt(fe(e,"options"),()=>{Tt(()=>{t.syncPosition()})});const u=C(()=>{const{self:{menuBoxShadow:v}}=n.value;return{"--n-menu-box-shadow":v}}),f=r?lt("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:d,cssVars:r?void 0:u,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a(Ts,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),bp=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),Pr(Lr,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Lr.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Ti),xp=re({name:"Popselect",props:bp,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=Re("Popselect","-popselect",void 0,$i,e,t),r=O(null);function n(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}function i(l){var d;(d=r.value)===null||d===void 0||d.setShow(l)}return et(cd,{props:e,mergedThemeRef:o,syncPosition:n,setShow:i}),Object.assign(Object.assign({},{syncPosition:n,setShow:i}),{popoverInstRef:r,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,r,n,i,s)=>{const{$attrs:l}=this;return a(mp,Object.assign({},l,{class:[l.class,o],style:[l.style,...n]},mo(this.$props,zl),{ref:Cs(r),onMouseenter:nn([i,l.onMouseenter]),onMouseleave:nn([s,l.onMouseleave])}),{header:()=>{var d,c;return(c=(d=this.$slots).header)===null||c===void 0?void 0:c.call(d)},action:()=>{var d,c;return(c=(d=this.$slots).action)===null||c===void 0?void 0:c.call(d)},empty:()=>{var d,c;return(c=(d=this.$slots).empty)===null||c===void 0?void 0:c.call(d)}})}};return a(Rn,Object.assign({},Pr(this.$props,zl),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}});function ud(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fd={name:"Select",common:dt,peers:{InternalSelection:Ls,InternalSelectMenu:Si},self:ud},hd={name:"Select",common:De,peers:{InternalSelection:ki,InternalSelectMenu:kn},self:ud},Cp=S([m("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + font-weight: var(--n-font-weight); + `),m("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[fr({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),yp=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),wp=re({name:"Select",props:yp,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),i=Re("Select","-select",Cp,fd,e,t),s=O(e.defaultValue),l=fe(e,"value"),d=$t(l,s),c=O(!1),u=O(""),f=rr(e,["items","options"]),v=O([]),p=O([]),h=C(()=>p.value.concat(v.value).concat(f.value)),g=C(()=>{const{filter:M}=e;if(M)return M;const{labelField:G,valueField:ve}=e;return(Fe,Be)=>{if(!Be)return!1;const W=Be[G];if(typeof W=="string")return pa(Fe,W);const ge=Be[ve];return typeof ge=="string"?pa(Fe,ge):typeof ge=="number"?pa(Fe,String(ge)):!1}}),b=C(()=>{if(e.remote)return f.value;{const{value:M}=h,{value:G}=u;return!G.length||!e.filterable?M:Mh(M,g.value,G,e.childrenField)}}),y=C(()=>{const{valueField:M,childrenField:G}=e,ve=Ks(M,G);return Uo(b.value,ve)}),x=C(()=>Dh(h.value,e.valueField,e.childrenField)),F=O(!1),P=$t(fe(e,"show"),F),$=O(null),w=O(null),k=O(null),{localeRef:D}=$o("Select"),T=C(()=>{var M;return(M=e.placeholder)!==null&&M!==void 0?M:D.value.placeholder}),A=[],N=O(new Map),B=C(()=>{const{fallbackOption:M}=e;if(M===void 0){const{labelField:G,valueField:ve}=e;return Fe=>({[G]:String(Fe),[ve]:Fe})}return M===!1?!1:G=>Object.assign(M(G),{value:G})});function E(M){const G=e.remote,{value:ve}=N,{value:Fe}=x,{value:Be}=B,W=[];return M.forEach(ge=>{if(Fe.has(ge))W.push(Fe.get(ge));else if(G&&ve.has(ge))W.push(ve.get(ge));else if(Be){const $e=Be(ge);$e&&W.push($e)}}),W}const K=C(()=>{if(e.multiple){const{value:M}=d;return Array.isArray(M)?E(M):[]}return null}),L=C(()=>{const{value:M}=d;return!e.multiple&&!Array.isArray(M)?M===null?null:E([M])[0]||null:null}),te=vo(e),{mergedSizeRef:U,mergedDisabledRef:ie,mergedStatusRef:be}=te;function ce(M,G){const{onChange:ve,"onUpdate:value":Fe,onUpdateValue:Be}=e,{nTriggerFormChange:W,nTriggerFormInput:ge}=te;ve&&ae(ve,M,G),Be&&ae(Be,M,G),Fe&&ae(Fe,M,G),s.value=M,W(),ge()}function V(M){const{onBlur:G}=e,{nTriggerFormBlur:ve}=te;G&&ae(G,M),ve()}function _(){const{onClear:M}=e;M&&ae(M)}function I(M){const{onFocus:G,showOnFocus:ve}=e,{nTriggerFormFocus:Fe}=te;G&&ae(G,M),Fe(),ve&&Ie()}function j(M){const{onSearch:G}=e;G&&ae(G,M)}function J(M){const{onScroll:G}=e;G&&ae(G,M)}function se(){var M;const{remote:G,multiple:ve}=e;if(G){const{value:Fe}=N;if(ve){const{valueField:Be}=e;(M=K.value)===null||M===void 0||M.forEach(W=>{Fe.set(W[Be],W)})}else{const Be=L.value;Be&&Fe.set(Be[e.valueField],Be)}}}function xe(M){const{onUpdateShow:G,"onUpdate:show":ve}=e;G&&ae(G,M),ve&&ae(ve,M),F.value=M}function Ie(){ie.value||(xe(!0),F.value=!0,e.filterable&&xt())}function H(){xe(!1)}function Pe(){u.value="",p.value=A}const He=O(!1);function _e(){e.filterable&&(He.value=!0)}function Ge(){e.filterable&&(He.value=!1,P.value||Pe())}function Xe(){ie.value||(P.value?e.filterable?xt():H():Ie())}function ct(M){var G,ve;!((ve=(G=k.value)===null||G===void 0?void 0:G.selfRef)===null||ve===void 0)&&ve.contains(M.relatedTarget)||(c.value=!1,V(M),H())}function ot(M){I(M),c.value=!0}function Ce(){c.value=!0}function ee(M){var G;!((G=$.value)===null||G===void 0)&&G.$el.contains(M.relatedTarget)||(c.value=!1,V(M),H())}function ue(){var M;(M=$.value)===null||M===void 0||M.focus(),H()}function q(M){var G;P.value&&(!((G=$.value)===null||G===void 0)&&G.$el.contains(Ko(M))||H())}function Q(M){if(!Array.isArray(M))return[];if(B.value)return Array.from(M);{const{remote:G}=e,{value:ve}=x;if(G){const{value:Fe}=N;return M.filter(Be=>ve.has(Be)||Fe.has(Be))}else return M.filter(Fe=>ve.has(Fe))}}function pe(M){we(M.rawNode)}function we(M){if(ie.value)return;const{tag:G,remote:ve,clearFilterAfterSelect:Fe,valueField:Be}=e;if(G&&!ve){const{value:W}=p,ge=W[0]||null;if(ge){const $e=v.value;$e.length?$e.push(ge):v.value=[ge],p.value=A}}if(ve&&N.value.set(M[Be],M),e.multiple){const W=Q(d.value),ge=W.findIndex($e=>$e===M[Be]);if(~ge){if(W.splice(ge,1),G&&!ve){const $e=de(M[Be]);~$e&&(v.value.splice($e,1),Fe&&(u.value=""))}}else W.push(M[Be]),Fe&&(u.value="");ce(W,E(W))}else{if(G&&!ve){const W=de(M[Be]);~W?v.value=[v.value[W]]:v.value=A}Pt(),H(),ce(M[Be],M)}}function de(M){return v.value.findIndex(ve=>ve[e.valueField]===M)}function me(M){P.value||Ie();const{value:G}=M.target;u.value=G;const{tag:ve,remote:Fe}=e;if(j(G),ve&&!Fe){if(!G){p.value=A;return}const{onCreate:Be}=e,W=Be?Be(G):{[e.labelField]:G,[e.valueField]:G},{valueField:ge,labelField:$e}=e;f.value.some(We=>We[ge]===W[ge]||We[$e]===W[$e])||v.value.some(We=>We[ge]===W[ge]||We[$e]===W[$e])?p.value=A:p.value=[W]}}function je(M){M.stopPropagation();const{multiple:G}=e;!G&&e.filterable&&H(),_(),G?ce([],[]):ce(null,null)}function oe(M){!Jt(M,"action")&&!Jt(M,"empty")&&!Jt(M,"header")&&M.preventDefault()}function Ue(M){J(M)}function it(M){var G,ve,Fe,Be,W;if(!e.keyboard){M.preventDefault();return}switch(M.key){case" ":if(e.filterable)break;M.preventDefault();case"Enter":if(!(!((G=$.value)===null||G===void 0)&&G.isComposing)){if(P.value){const ge=(ve=k.value)===null||ve===void 0?void 0:ve.getPendingTmNode();ge?pe(ge):e.filterable||(H(),Pt())}else if(Ie(),e.tag&&He.value){const ge=p.value[0];if(ge){const $e=ge[e.valueField],{value:We}=d;e.multiple&&Array.isArray(We)&&We.includes($e)||we(ge)}}}M.preventDefault();break;case"ArrowUp":if(M.preventDefault(),e.loading)return;P.value&&((Fe=k.value)===null||Fe===void 0||Fe.prev());break;case"ArrowDown":if(M.preventDefault(),e.loading)return;P.value?(Be=k.value)===null||Be===void 0||Be.next():Ie();break;case"Escape":P.value&&(dn(M),H()),(W=$.value)===null||W===void 0||W.focus();break}}function Pt(){var M;(M=$.value)===null||M===void 0||M.focus()}function xt(){var M;(M=$.value)===null||M===void 0||M.focusInput()}function pt(){var M;P.value&&((M=w.value)===null||M===void 0||M.syncPosition())}se(),gt(fe(e,"options"),se);const ft={focus:()=>{var M;(M=$.value)===null||M===void 0||M.focus()},focusInput:()=>{var M;(M=$.value)===null||M===void 0||M.focusInput()},blur:()=>{var M;(M=$.value)===null||M===void 0||M.blur()},blurInput:()=>{var M;(M=$.value)===null||M===void 0||M.blurInput()}},Me=C(()=>{const{self:{menuBoxShadow:M}}=i.value;return{"--n-menu-box-shadow":M}}),Ze=n?lt("select",void 0,Me,e):void 0;return Object.assign(Object.assign({},ft),{mergedStatus:be,mergedClsPrefix:t,mergedBordered:o,namespace:r,treeMate:y,isMounted:Yo(),triggerRef:$,menuRef:k,pattern:u,uncontrolledShow:F,mergedShow:P,adjustedTo:Zt(e),uncontrolledValue:s,mergedValue:d,followerRef:w,localizedPlaceholder:T,selectedOption:L,selectedOptions:K,mergedSize:U,mergedDisabled:ie,focused:c,activeWithoutMenuOpen:He,inlineThemeDisabled:n,onTriggerInputFocus:_e,onTriggerInputBlur:Ge,handleTriggerOrMenuResize:pt,handleMenuFocus:Ce,handleMenuBlur:ee,handleMenuTabOut:ue,handleTriggerClick:Xe,handleToggle:pe,handleDeleteOption:we,handlePatternInput:me,handleClear:je,handleTriggerBlur:ct,handleTriggerFocus:ot,handleKeydown:it,handleMenuAfterLeave:Pe,handleMenuClickOutside:q,handleMenuScroll:Ue,handleMenuKeydown:it,handleMenuMousedown:oe,mergedTheme:i,cssVars:n?void 0:Me,themeClass:Ze?.themeClass,onRender:Ze?.onRender})},render(){return a("div",{class:`${this.mergedClsPrefix}-select`},a(Rr,null,{default:()=>[a(zr,null,{default:()=>a(lh,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),a(kr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Zt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),uo(a(Ts,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,n;return[(n=(r=this.$slots).empty)===null||n===void 0?void 0:n.call(r)]},header:()=>{var r,n;return[(n=(r=this.$slots).header)===null||n===void 0?void 0:n.call(r)]},action:()=>{var r,n;return[(n=(r=this.$slots).action)===null||n===void 0?void 0:n.call(r)]}}),this.displayDirective==="show"?[[Eo,this.mergedShow],[Lo,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Lo,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),Sp={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function vd(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:s,borderColor:l,borderRadius:d,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:v,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},Sp),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:s,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:d,itemSizeSmall:v,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:s})}const pd={name:"Pagination",common:dt,peers:{Select:fd,Input:hr,Popselect:$i},self:vd},gd={name:"Pagination",common:De,peers:{Select:hd,Input:yo,Popselect:dd},self(e){const{primaryColor:t,opacity3:o}=e,r=Se(t,{alpha:Number(o)}),n=vd(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}},Pl=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,$l=[R("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)],kp=m("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[m("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),m("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),S("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),m("select",` + width: var(--n-select-width); + `),S("&.transition-disabled",[m("pagination-item","transition: none!important;")]),m("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[m("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),m("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[R("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[m("base-icon",` + font-size: var(--n-button-icon-size); + `)]),at("disabled",[R("hover",Pl,$l),S("&:hover",Pl,$l),S("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[R("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),R("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[S("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),R("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[R("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),R("disabled",` + cursor: not-allowed; + `,[m("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),R("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[m("pagination-quick-jumper",[m("input",` + margin: 0; + `)])])]);function md(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const r=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof r=="number"?r:r?.value||10}function Rp(e,t,o,r){let n=!1,i=!1,s=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const d=1,c=t;let u=e,f=e;const v=(o-5)/2;f+=Math.ceil(v),f=Math.min(Math.max(f,d+o-3),c-2),u-=Math.floor(v),u=Math.max(Math.min(u,c-o+3),d+2);let p=!1,h=!1;u>d+2&&(p=!0),f=d+1&&g.push({type:"page",label:d+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===d+1});for(let b=u;b<=f;++b)g.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return h?(i=!0,l=f+1,g.push({type:"fast-forward",active:!1,label:void 0,options:r?Tl(f+1,c-1):null})):f===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:n,hasFastForward:i,fastBackwardTo:s,fastForwardTo:l,items:g}}function Tl(e,t){const o=[];for(let r=e;r<=t;++r)o.push({label:`${r}`,value:r});return o}const zp=Object.assign(Object.assign({},Re.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Zt.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),Pp=re({name:"Pagination",props:zp,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=Re("Pagination","-pagination",kp,pd,e,o),{localeRef:s}=$o("Pagination"),l=O(null),d=O(e.defaultPage),c=O(md(e)),u=$t(fe(e,"page"),d),f=$t(fe(e,"pageSize"),c),v=C(()=>{const{itemCount:H}=e;if(H!==void 0)return Math.max(1,Math.ceil(H/f.value));const{pageCount:Pe}=e;return Pe!==void 0?Math.max(Pe,1):1}),p=O("");Ft(()=>{e.simple,p.value=String(u.value)});const h=O(!1),g=O(!1),b=O(!1),y=O(!1),x=()=>{e.disabled||(h.value=!0,L())},F=()=>{e.disabled||(h.value=!1,L())},P=()=>{g.value=!0,L()},$=()=>{g.value=!1,L()},w=H=>{te(H)},k=C(()=>Rp(u.value,v.value,e.pageSlot,e.showQuickJumpDropdown));Ft(()=>{k.value.hasFastBackward?k.value.hasFastForward||(h.value=!1,b.value=!1):(g.value=!1,y.value=!1)});const D=C(()=>{const H=s.value.selectionSuffix;return e.pageSizes.map(Pe=>typeof Pe=="number"?{label:`${Pe} / ${H}`,value:Pe}:Pe)}),T=C(()=>{var H,Pe;return((Pe=(H=t?.value)===null||H===void 0?void 0:H.Pagination)===null||Pe===void 0?void 0:Pe.inputSize)||Ua(e.size)}),A=C(()=>{var H,Pe;return((Pe=(H=t?.value)===null||H===void 0?void 0:H.Pagination)===null||Pe===void 0?void 0:Pe.selectSize)||Ua(e.size)}),N=C(()=>(u.value-1)*f.value),B=C(()=>{const H=u.value*f.value-1,{itemCount:Pe}=e;return Pe!==void 0&&H>Pe-1?Pe-1:H}),E=C(()=>{const{itemCount:H}=e;return H!==void 0?H:(e.pageCount||1)*f.value}),K=jt("Pagination",n,o);function L(){Tt(()=>{var H;const{value:Pe}=l;Pe&&(Pe.classList.add("transition-disabled"),(H=l.value)===null||H===void 0||H.offsetWidth,Pe.classList.remove("transition-disabled"))})}function te(H){if(H===u.value)return;const{"onUpdate:page":Pe,onUpdatePage:He,onChange:_e,simple:Ge}=e;Pe&&ae(Pe,H),He&&ae(He,H),_e&&ae(_e,H),d.value=H,Ge&&(p.value=String(H))}function U(H){if(H===f.value)return;const{"onUpdate:pageSize":Pe,onUpdatePageSize:He,onPageSizeChange:_e}=e;Pe&&ae(Pe,H),He&&ae(He,H),_e&&ae(_e,H),c.value=H,v.value{u.value,f.value,L()});const xe=C(()=>{const{size:H}=e,{self:{buttonBorder:Pe,buttonBorderHover:He,buttonBorderPressed:_e,buttonIconColor:Ge,buttonIconColorHover:Xe,buttonIconColorPressed:ct,itemTextColor:ot,itemTextColorHover:Ce,itemTextColorPressed:ee,itemTextColorActive:ue,itemTextColorDisabled:q,itemColor:Q,itemColorHover:pe,itemColorPressed:we,itemColorActive:de,itemColorActiveHover:me,itemColorDisabled:je,itemBorder:oe,itemBorderHover:Ue,itemBorderPressed:it,itemBorderActive:Pt,itemBorderDisabled:xt,itemBorderRadius:pt,jumperTextColor:ft,jumperTextColorDisabled:Me,buttonColor:Ze,buttonColorHover:M,buttonColorPressed:G,[le("itemPadding",H)]:ve,[le("itemMargin",H)]:Fe,[le("inputWidth",H)]:Be,[le("selectWidth",H)]:W,[le("inputMargin",H)]:ge,[le("selectMargin",H)]:$e,[le("jumperFontSize",H)]:We,[le("prefixMargin",H)]:ht,[le("suffixMargin",H)]:rt,[le("itemSize",H)]:ne,[le("buttonIconSize",H)]:ze,[le("itemFontSize",H)]:Le,[`${le("itemMargin",H)}Rtl`]:Je,[`${le("inputMargin",H)}Rtl`]:yt},common:{cubicBezierEaseInOut:bt}}=i.value;return{"--n-prefix-margin":ht,"--n-suffix-margin":rt,"--n-item-font-size":Le,"--n-select-width":W,"--n-select-margin":$e,"--n-input-width":Be,"--n-input-margin":ge,"--n-input-margin-rtl":yt,"--n-item-size":ne,"--n-item-text-color":ot,"--n-item-text-color-disabled":q,"--n-item-text-color-hover":Ce,"--n-item-text-color-active":ue,"--n-item-text-color-pressed":ee,"--n-item-color":Q,"--n-item-color-hover":pe,"--n-item-color-disabled":je,"--n-item-color-active":de,"--n-item-color-active-hover":me,"--n-item-color-pressed":we,"--n-item-border":oe,"--n-item-border-hover":Ue,"--n-item-border-disabled":xt,"--n-item-border-active":Pt,"--n-item-border-pressed":it,"--n-item-padding":ve,"--n-item-border-radius":pt,"--n-bezier":bt,"--n-jumper-font-size":We,"--n-jumper-text-color":ft,"--n-jumper-text-color-disabled":Me,"--n-item-margin":Fe,"--n-item-margin-rtl":Je,"--n-button-icon-size":ze,"--n-button-icon-color":Ge,"--n-button-icon-color-hover":Xe,"--n-button-icon-color-pressed":ct,"--n-button-color-hover":M,"--n-button-color":Ze,"--n-button-color-pressed":G,"--n-button-border":Pe,"--n-button-border-hover":He,"--n-button-border-pressed":_e}}),Ie=r?lt("pagination",C(()=>{let H="";const{size:Pe}=e;return H+=Pe[0],H}),xe,e):void 0;return{rtlEnabled:K,mergedClsPrefix:o,locale:s,selfRef:l,mergedPage:u,pageItems:C(()=>k.value.items),mergedItemCount:E,jumperValue:p,pageSizeOptions:D,mergedPageSize:f,inputSize:T,selectSize:A,mergedTheme:i,mergedPageCount:v,startIndex:N,endIndex:B,showFastForwardMenu:b,showFastBackwardMenu:y,fastForwardActive:h,fastBackwardActive:g,handleMenuSelect:w,handleFastForwardMouseenter:x,handleFastForwardMouseleave:F,handleFastBackwardMouseenter:P,handleFastBackwardMouseleave:$,handleJumperInput:se,handleBackwardClick:be,handleForwardClick:ie,handlePageItemClick:J,handleSizePickerChange:_,handleQuickJumperChange:j,cssVars:r?void 0:xe,themeClass:Ie?.themeClass,onRender:Ie?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:r,mergedPage:n,mergedPageCount:i,pageItems:s,showSizePicker:l,showQuickJumper:d,mergedTheme:c,locale:u,inputSize:f,selectSize:v,mergedPageSize:p,pageSizeOptions:h,jumperValue:g,simple:b,prev:y,next:x,prefix:F,suffix:P,label:$,goto:w,handleJumperInput:k,handleSizePickerChange:D,handleBackwardClick:T,handlePageItemClick:A,handleForwardClick:N,handleQuickJumperChange:B,onRender:E}=this;E?.();const K=F||e.prefix,L=P||e.suffix,te=y||e.prev,U=x||e.next,ie=$||e.label;return a("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,b&&`${t}-pagination--simple`],style:r},K?a("div",{class:`${t}-pagination-prefix`},K({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(be=>{switch(be){case"pages":return a(Gt,null,a("div",{class:[`${t}-pagination-item`,!te&&`${t}-pagination-item--button`,(n<=1||n>i||o)&&`${t}-pagination-item--disabled`],onClick:T},te?te({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):a(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(lr,null):a(nr,null)})),b?a(Gt,null,a("div",{class:`${t}-pagination-quick-jumper`},a(Mo,{value:g,onUpdateValue:k,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:B}))," /"," ",i):s.map((ce,V)=>{let _,I,j;const{type:J}=ce;switch(J){case"page":const xe=ce.label;ie?_=ie({type:"page",node:xe,active:ce.active}):_=xe;break;case"fast-forward":const Ie=this.fastForwardActive?a(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(ar,null):a(ir,null)}):a(zt,{clsPrefix:t},{default:()=>a(gl,null)});ie?_=ie({type:"fast-forward",node:Ie,active:this.fastForwardActive||this.showFastForwardMenu}):_=Ie,I=this.handleFastForwardMouseenter,j=this.handleFastForwardMouseleave;break;case"fast-backward":const H=this.fastBackwardActive?a(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(ir,null):a(ar,null)}):a(zt,{clsPrefix:t},{default:()=>a(gl,null)});ie?_=ie({type:"fast-backward",node:H,active:this.fastBackwardActive||this.showFastBackwardMenu}):_=H,I=this.handleFastBackwardMouseenter,j=this.handleFastBackwardMouseleave;break}const se=a("div",{key:V,class:[`${t}-pagination-item`,ce.active&&`${t}-pagination-item--active`,J!=="page"&&(J==="fast-backward"&&this.showFastBackwardMenu||J==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,J==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{A(ce)},onMouseenter:I,onMouseleave:j},_);if(J==="page"&&!ce.mayBeFastBackward&&!ce.mayBeFastForward)return se;{const xe=ce.type==="page"?ce.mayBeFastBackward?"fast-backward":"fast-forward":ce.type;return ce.type!=="page"&&!ce.options?se:a(xp,{to:this.to,key:xe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:J==="page"?!1:J==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ie=>{J!=="page"&&(Ie?J==="fast-backward"?this.showFastBackwardMenu=Ie:this.showFastForwardMenu=Ie:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ce.type!=="page"&&ce.options?ce.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>se})}}),a("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:n<1||n>=i||o}],onClick:N},U?U({page:n,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):a(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?a(nr,null):a(lr,null)})));case"size-picker":return!b&&l?a(wp,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:v,options:h,value:p,disabled:o,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:D})):null;case"quick-jumper":return!b&&d?a("div",{class:`${t}-pagination-quick-jumper`},w?w():vt(this.$slots.goto,()=>[u.goto]),a(Mo,{value:g,onUpdateValue:k,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:B})):null;default:return null}}),L?a("div",{class:`${t}-pagination-suffix`},L({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),$p={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function bd(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:s,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:v,heightMedium:p,heightLarge:h,heightHuge:g,textColor3:b,opacityDisabled:y}=e;return Object.assign(Object.assign({},$p),{optionHeightSmall:v,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:g,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:Se(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:y})}const Fi={name:"Dropdown",common:dt,peers:{Popover:Wr},self:bd},Ii={name:"Dropdown",common:De,peers:{Popover:Tr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=bd(e);return n.colorInverted=r,n.optionColorActive=Se(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},xd={padding:"8px 14px"},ra={name:"Tooltip",common:De,peers:{Popover:Tr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return Object.assign(Object.assign({},xd),{borderRadius:t,boxShadow:o,color:r,textColor:n})}};function Tp(e){const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return Object.assign(Object.assign({},xd),{borderRadius:t,boxShadow:o,color:qe(r,"rgba(0, 0, 0, .85)"),textColor:r})}const Bi={name:"Tooltip",common:dt,peers:{Popover:Wr},self:Tp},Cd={name:"Ellipsis",common:De,peers:{Tooltip:ra}},yd={name:"Ellipsis",common:dt,peers:{Tooltip:Bi}},wd={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Sd={name:"Radio",common:De,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},wd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}};function Fp(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},wd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}const Oi={name:"Radio",common:dt,self:Fp},Ip={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function kd(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:s,tableColorHover:l,iconColor:d,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:v,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,dividerColor:b,heightSmall:y,opacityDisabled:x,tableColorStriped:F}=e;return Object.assign(Object.assign({},Ip),{actionDividerColor:b,lineHeight:v,borderRadius:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,borderColor:qe(t,b),tdColorHover:qe(t,l),tdColorSorting:qe(t,l),tdColorStriped:qe(t,F),thColor:qe(t,s),thColorHover:qe(qe(t,s),l),thColorSorting:qe(qe(t,s),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:l,thIconColor:d,thIconColorActive:c,borderColorModal:qe(o,b),tdColorHoverModal:qe(o,l),tdColorSortingModal:qe(o,l),tdColorStripedModal:qe(o,F),thColorModal:qe(o,s),thColorHoverModal:qe(qe(o,s),l),thColorSortingModal:qe(qe(o,s),l),tdColorModal:o,borderColorPopover:qe(r,b),tdColorHoverPopover:qe(r,l),tdColorSortingPopover:qe(r,l),tdColorStripedPopover:qe(r,F),thColorPopover:qe(r,s),thColorHoverPopover:qe(qe(r,s),l),thColorSortingPopover:qe(qe(r,s),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:y,opacityLoading:x})}const Bp={name:"DataTable",common:dt,peers:{Button:vr,Checkbox:zi,Radio:Oi,Pagination:pd,Scrollbar:To,Empty:Sn,Popover:Wr,Ellipsis:yd,Dropdown:Fi},self:kd},Op={name:"DataTable",common:De,peers:{Button:po,Checkbox:Ur,Radio:Sd,Pagination:gd,Scrollbar:no,Empty:$r,Popover:Tr,Ellipsis:Cd,Dropdown:Ii},self(e){const t=kd(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},Mp=Object.assign(Object.assign({},Re.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Do="n-data-table",Rd=40,zd=40;function Fl(e){if(e.type==="selection")return e.width===void 0?Rd:Dt(e.width);if(e.type==="expand")return e.width===void 0?zd:Dt(e.width);if(!("children"in e))return typeof e.width=="string"?Dt(e.width):e.width}function Dp(e){var t,o;if(e.type==="selection")return _t((t=e.width)!==null&&t!==void 0?t:Rd);if(e.type==="expand")return _t((o=e.width)!==null&&o!==void 0?o:zd);if(!("children"in e))return _t(e.width)}function Io(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Il(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function Ap(e){return e==="ascend"?1:e==="descend"?-1:0}function _p(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function Hp(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=Dp(e),{minWidth:r,maxWidth:n}=e;return{width:o,minWidth:_t(r)||o,maxWidth:_t(n)}}function Ep(e,t,o){return typeof o=="function"?o(e,t):o||""}function Ca(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function ya(e){return"children"in e?!1:!!e.sorter}function Pd(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Bl(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Ol(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function Lp(e,t){if(e.sorter===void 0)return null;const{customNextSortOrder:o}=e;return t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Ol(!1)}:Object.assign(Object.assign({},t),{order:(o||Ol)(t.order)})}function $d(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function Np(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function jp(e,t,o,r){const n=e.filter(l=>l.type!=="expand"&&l.type!=="selection"&&l.allowExport!==!1),i=n.map(l=>r?r(l):l.title).join(","),s=t.map(l=>n.map(d=>o?o(l[d.key],l,d):Np(l[d.key])).join(","));return[i,...s].join(` +`)}const Vp=re({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Ee(Do);return()=>{const{rowKey:r}=e;return a(oa,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),Wp=m("radio",` + line-height: var(--n-label-line-height); + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + align-items: flex-start; + flex-wrap: nowrap; + font-size: var(--n-font-size); + word-break: break-word; +`,[R("checked",[z("dot",` + background-color: var(--n-color-active); + `)]),z("dot-wrapper",` + position: relative; + flex-shrink: 0; + flex-grow: 0; + width: var(--n-radio-size); + `),m("radio-input",` + position: absolute; + border: 0; + width: 0; + height: 0; + opacity: 0; + margin: 0; + `),z("dot",` + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + height: var(--n-radio-size); + width: var(--n-radio-size); + background: var(--n-color); + box-shadow: var(--n-box-shadow); + border-radius: 50%; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[S("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--n-dot-color-active); + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),R("checked",{boxShadow:"var(--n-box-shadow-active)"},[S("&::before",` + opacity: 1; + transform: scale(1); + `)])]),z("label",` + color: var(--n-text-color); + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + display: inline-block; + transition: color .3s var(--n-bezier); + `),at("disabled",` + cursor: pointer; + `,[S("&:hover",[z("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),R("focus",[S("&:not(:active)",[z("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),R("disabled",` + cursor: not-allowed; + `,[z("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[S("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),R("checked",` + opacity: 1; + `)]),z("label",{color:"var(--n-text-color-disabled)"}),m("radio-input",` + cursor: not-allowed; + `)])]),Td={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Fd="n-radio-group";function Id(e){const t=Ee(Fd,null),o=vo(e,{mergedSize(x){const{size:F}=e;if(F!==void 0)return F;if(t){const{mergedSizeRef:{value:P}}=t;if(P!==void 0)return P}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t?.disabledRef.value||x?.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=o,i=O(null),s=O(null),l=O(e.defaultChecked),d=fe(e,"checked"),c=$t(d,l),u=tt(()=>t?t.valueRef.value===e.value:c.value),f=tt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),v=O(!1);function p(){if(t){const{doUpdateValue:x}=t,{value:F}=e;ae(x,F)}else{const{onUpdateChecked:x,"onUpdate:checked":F}=e,{nTriggerFormInput:P,nTriggerFormChange:$}=o;x&&ae(x,!0),F&&ae(F,!0),P(),$(),l.value=!0}}function h(){n.value||u.value||p()}function g(){h(),i.value&&(i.value.checked=u.value)}function b(){v.value=!1}function y(){v.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Qe(e).mergedClsPrefixRef,inputRef:i,labelRef:s,mergedName:f,mergedDisabled:n,renderSafeChecked:u,focus:v,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:b,handleRadioInputFocus:y}}const Up=Object.assign(Object.assign({},Re.props),Td),Bd=re({name:"Radio",props:Up,setup(e){const t=Id(e),o=Re("Radio","-radio",Wp,Oi,e,t.mergedClsPrefix),r=C(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:f,boxShadowActive:v,boxShadowDisabled:p,boxShadowFocus:h,boxShadowHover:g,color:b,colorDisabled:y,colorActive:x,textColor:F,textColorDisabled:P,dotColorActive:$,dotColorDisabled:w,labelPadding:k,labelLineHeight:D,labelFontWeight:T,[le("fontSize",c)]:A,[le("radioSize",c)]:N}}=o.value;return{"--n-bezier":u,"--n-label-line-height":D,"--n-label-font-weight":T,"--n-box-shadow":f,"--n-box-shadow-active":v,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":h,"--n-box-shadow-hover":g,"--n-color":b,"--n-color-active":x,"--n-color-disabled":y,"--n-dot-color-active":$,"--n-dot-color-disabled":w,"--n-font-size":A,"--n-radio-size":N,"--n-text-color":F,"--n-text-color-disabled":P,"--n-label-padding":k}}),{inlineThemeDisabled:n,mergedClsPrefixRef:i,mergedRtlRef:s}=Qe(e),l=jt("Radio",s,i),d=n?lt("radio",C(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:n?void 0:r,themeClass:d?.themeClass,onRender:d?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:r}=this;return o?.(),a("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},a("div",{class:`${t}-radio__dot-wrapper`}," ",a("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),a("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),mt(e.default,n=>!n&&!r?null:a("div",{ref:"labelRef",class:`${t}-radio__label`},n||r)))}}),yy=re({name:"RadioButton",props:Td,setup:Id,render(){const{mergedClsPrefix:e}=this;return a("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},a("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),a("div",{class:`${e}-radio-button__state-border`}),mt(this.$slots.default,t=>!t&&!this.label?null:a("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Kp=m("radio-group",` + display: inline-block; + font-size: var(--n-font-size); +`,[z("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[R("checked",{backgroundColor:"var(--n-button-border-color-active)"}),R("disabled",{opacity:"var(--n-opacity-disabled)"})]),R("button-group",` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[m("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),z("splitor",{height:"var(--n-height)"})]),m("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[m("radio-input",` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),z("state-border",` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),S("&:first-child",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[z("state-border",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),S("&:last-child",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[z("state-border",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),at("disabled",` + cursor: pointer; + `,[S("&:hover",[z("state-border",` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),at("checked",{color:"var(--n-button-text-color-hover)"})]),R("focus",[S("&:not(:active)",[z("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),R("checked",` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),R("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function qp(e,t,o){var r;const n=[];let i=!1;for(let s=0;s{const{value:$}=o,{common:{cubicBezierEaseInOut:w},self:{buttonBorderColor:k,buttonBorderColorActive:D,buttonBorderRadius:T,buttonBoxShadow:A,buttonBoxShadowFocus:N,buttonBoxShadowHover:B,buttonColor:E,buttonColorActive:K,buttonTextColor:L,buttonTextColorActive:te,buttonTextColorHover:U,opacityDisabled:ie,[le("buttonHeight",$)]:be,[le("fontSize",$)]:ce}}=f.value;return{"--n-font-size":ce,"--n-bezier":w,"--n-button-border-color":k,"--n-button-border-color-active":D,"--n-button-border-radius":T,"--n-button-box-shadow":A,"--n-button-box-shadow-focus":N,"--n-button-box-shadow-hover":B,"--n-button-color":E,"--n-button-color-active":K,"--n-button-text-color":L,"--n-button-text-color-hover":U,"--n-button-text-color-active":te,"--n-height":be,"--n-opacity-disabled":ie}}),P=c?lt("radio-group",C(()=>o.value[0]),F,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:d,mergedValue:h,handleFocusout:y,handleFocusin:b,cssVars:c?void 0:F,themeClass:P?.themeClass,onRender:P?.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:r,handleFocusout:n}=this,{children:i,isButtonGroup:s}=qp(Ro(mn(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{onFocusin:r,onFocusout:n,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,s&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),Xp=re({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Ee(Do);return()=>{const{rowKey:r}=e;return a(Bd,{name:o,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),Zp=Object.assign(Object.assign({},Lr),Re.props),Od=re({name:"Tooltip",props:Zp,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=Re("Tooltip","-tooltip",void 0,Bi,e,t),r=O(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:o,popoverThemeOverrides:C(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return a(Rn,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Md=m("ellipsis",{overflow:"hidden"},[at("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),R("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),R("cursor-pointer",` + cursor: pointer; + `)]);function Ja(e){return`${e}-ellipsis--line-clamp`}function ei(e,t){return`${e}-ellipsis--cursor-${t}`}const Dd=Object.assign(Object.assign({},Re.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Mi=re({name:"Ellipsis",inheritAttrs:!1,props:Dd,slots:Object,setup(e,{slots:t,attrs:o}){const r=ys(),n=Re("Ellipsis","-ellipsis",Md,yd,e,r),i=O(null),s=O(null),l=O(null),d=O(!1),c=C(()=>{const{lineClamp:b}=e,{value:y}=d;return b!==void 0?{textOverflow:"","-webkit-line-clamp":y?"":b}:{textOverflow:y?"":"ellipsis","-webkit-line-clamp":""}});function u(){let b=!1;const{value:y}=d;if(y)return!0;const{value:x}=i;if(x){const{lineClamp:F}=e;if(p(x),F!==void 0)b=x.scrollHeight<=x.offsetHeight;else{const{value:P}=s;P&&(b=P.getBoundingClientRect().width<=x.getBoundingClientRect().width)}h(x,b)}return b}const f=C(()=>e.expandTrigger==="click"?()=>{var b;const{value:y}=d;y&&((b=l.value)===null||b===void 0||b.setShow(!1)),d.value=!y}:void 0);os(()=>{var b;e.tooltip&&((b=l.value)===null||b===void 0||b.setShow(!1))});const v=()=>a("span",Object.assign({},co(o,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?Ja(r.value):void 0,e.expandTrigger==="click"?ei(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:a("span",{ref:"triggerInnerRef"},t));function p(b){if(!b)return;const y=c.value,x=Ja(r.value);e.lineClamp!==void 0?g(b,x,"add"):g(b,x,"remove");for(const F in y)b.style[F]!==y[F]&&(b.style[F]=y[F])}function h(b,y){const x=ei(r.value,"pointer");e.expandTrigger==="click"&&!y?g(b,x,"add"):g(b,x,"remove")}function g(b,y,x){x==="add"?b.classList.contains(y)||b.classList.add(y):b.classList.contains(y)&&b.classList.remove(y)}return{mergedTheme:n,triggerRef:i,triggerInnerRef:s,tooltipRef:l,handleClick:f,renderTrigger:v,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:r}=this;if(t){const{mergedTheme:n}=this;return a(Od,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:o,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return o()}}),Qp=re({name:"PerformantEllipsis",props:Dd,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const r=O(!1),n=ys();return sr("-ellipsis",Md,n),{mouseEntered:r,renderTrigger:()=>{const{lineClamp:s}=e,l=n.value;return a("span",Object.assign({},co(t,{class:[`${l}-ellipsis`,s!==void 0?Ja(l):void 0,e.expandTrigger==="click"?ei(l,"pointer"):void 0],style:s===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":s}}),{onMouseenter:()=>{r.value=!0}}),s?o:a("span",null,o))}}},render(){return this.mouseEntered?a(Mi,co({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),Jp=re({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:r,renderCell:n}=this;let i;const{render:s,key:l,ellipsis:d}=o;if(s&&!t?i=s(r,this.index):t?i=(e=r[l])===null||e===void 0?void 0:e.value:i=n?n(Kn(r,l),r,o):Kn(r,l),d)if(typeof d=="object"){const{mergedTheme:c}=this;return o.ellipsisComponent==="performant-ellipsis"?a(Qp,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):a(Mi,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return a("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),Ml=re({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return a("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},a(dr,null,{default:()=>this.loading?a(Zo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):a(zt,{clsPrefix:e,key:"base-icon"},{default:()=>a(wi,null)})}))}}),eg=re({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=jt("DataTable",o,t),{mergedClsPrefixRef:n,mergedThemeRef:i,localeRef:s}=Ee(Do),l=O(e.value),d=C(()=>{const{value:h}=l;return Array.isArray(h)?h:null}),c=C(()=>{const{value:h}=l;return Ca(e.column)?Array.isArray(h)&&h.length&&h[0]||null:Array.isArray(h)?null:h});function u(h){e.onChange(h)}function f(h){e.multiple&&Array.isArray(h)?l.value=h:Ca(e.column)&&!Array.isArray(h)?l.value=[h]:l.value=h}function v(){u(l.value),e.onConfirm()}function p(){e.multiple||Ca(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:n,rtlEnabled:r,mergedTheme:i,locale:s,checkboxGroupValue:d,radioGroupValue:c,handleChange:f,handleConfirmClick:v,handleClearClick:p}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return a("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},a(Ut,null,{default:()=>{const{checkboxGroupValue:r,handleChange:n}=this;return this.multiple?a(Fv,{value:r,class:`${o}-data-table-filter-menu__group`,onUpdateValue:n},{default:()=>this.options.map(i=>a(oa,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):a(Gp,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>a(Bd,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),a("div",{class:`${o}-data-table-filter-menu__action`},a(At,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),a(At,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),tg=re({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function og(e,t,o){const r=Object.assign({},e);return r[t]=o,r}const rg=re({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Qe(),{mergedThemeRef:o,mergedClsPrefixRef:r,mergedFilterStateRef:n,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:s,doUpdatePage:l,doUpdateFilters:d,filterIconPopoverPropsRef:c}=Ee(Do),u=O(!1),f=n,v=C(()=>e.column.filterMultiple!==!1),p=C(()=>{const F=f.value[e.column.key];if(F===void 0){const{value:P}=v;return P?[]:null}return F}),h=C(()=>{const{value:F}=p;return Array.isArray(F)?F.length>0:F!==null}),g=C(()=>{var F,P;return((P=(F=t?.value)===null||F===void 0?void 0:F.DataTable)===null||P===void 0?void 0:P.renderFilter)||e.column.renderFilter});function b(F){const P=og(f.value,e.column.key,F);d(P,e.column),s.value==="first"&&l(1)}function y(){u.value=!1}function x(){u.value=!1}return{mergedTheme:o,mergedClsPrefix:r,active:h,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:v,mergedFilterValue:p,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:x,handleFilterMenuCancel:y}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:r}=this;return a(Rn,Object.assign({show:this.showPopover,onUpdateShow:n=>this.showPopover=n,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},r,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:n}=this;if(n)return a(tg,{"data-data-table-filter":!0,render:n,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return a("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):a(zt,{clsPrefix:t},{default:()=>a(Rf,null)}))},default:()=>{const{renderFilterMenu:n}=this.column;return n?n({hide:o}):a(eg,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),ng=re({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ee(Do),o=O(!1);let r=0;function n(d){return d.clientX}function i(d){var c;d.preventDefault();const u=o.value;r=n(d),o.value=!0,u||(Lt("mousemove",window,s),Lt("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function s(d){var c;(c=e.onResize)===null||c===void 0||c.call(e,n(d)-r)}function l(){var d;o.value=!1,(d=e.onResizeEnd)===null||d===void 0||d.call(e),Yt("mousemove",window,s),Yt("mouseup",window,l)}return bo(()=>{Yt("mousemove",window,s),Yt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return a("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),ag=re({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),ig=re({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Qe(),{mergedSortStateRef:o,mergedClsPrefixRef:r}=Ee(Do),n=C(()=>o.value.find(d=>d.columnKey===e.column.key)),i=C(()=>n.value!==void 0),s=C(()=>{const{value:d}=n;return d&&i.value?d.order:!1}),l=C(()=>{var d,c;return((c=(d=t?.value)===null||d===void 0?void 0:d.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:s,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:r}=this.column;return e?a(ag,{render:e,order:t}):a("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},r?r({order:t}):a(zt,{clsPrefix:o},{default:()=>a(mf,null)}))}}),Di="n-dropdown-menu",na="n-dropdown",Dl="n-dropdown-option",Ad=re({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return a("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),lg=re({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ee(Di),{renderLabelRef:o,labelFieldRef:r,nodePropsRef:n,renderOptionRef:i}=Ee(na);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:r,nodeProps:n,renderLabel:i,renderOption:s}=this,{rawNode:l}=this.tmNode,d=a("div",Object.assign({class:`${t}-dropdown-option`},n?.(l)),a("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},a("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Rt(l.icon)),a("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Rt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),a("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return s?s({node:d,option:l}):d}});function _d(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:s}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:s}}const sg={common:dt,self:_d},dg={name:"Icon",common:De,self:_d},cg=m("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[R("color-transition",{transition:"color .3s var(--n-bezier)"}),R("depth",{color:"var(--n-color)"},[S("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),S("svg",{height:"1em",width:"1em"})]),ug=Object.assign(Object.assign({},Re.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),fg=re({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:ug,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Icon","-icon",cg,sg,e,t),n=C(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:l},self:d}=r.value;if(s!==void 0){const{color:c,[`opacity${s}Depth`]:u}=d;return{"--n-bezier":l,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?lt("icon",C(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:C(()=>{const{size:s,color:l}=e;return{fontSize:_t(s),color:l}}),cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:r,component:n,onRender:i,themeClass:s}=this;return!((e=t?.$options)===null||e===void 0)&&e._n_icon__&&void 0,i?.(),a("i",co(this.$attrs,{role:"img",class:[`${r}-icon`,s,{[`${r}-icon--depth`]:o,[`${r}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?a(n):this.$slots)}});function ti(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function hg(e){return e.type==="group"}function Hd(e){return e.type==="divider"}function vg(e){return e.type==="render"}const Ed=re({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ee(na),{hoverKeyRef:o,keyboardKeyRef:r,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:s,animatedRef:l,mergedShowRef:d,renderLabelRef:c,renderIconRef:u,labelFieldRef:f,childrenFieldRef:v,renderOptionRef:p,nodePropsRef:h,menuPropsRef:g}=t,b=Ee(Dl,null),y=Ee(Di),x=Ee(Vr),F=C(()=>e.tmNode.rawNode),P=C(()=>{const{value:U}=v;return ti(e.tmNode.rawNode,U)}),$=C(()=>{const{disabled:U}=e.tmNode;return U}),w=C(()=>{if(!P.value)return!1;const{key:U,disabled:ie}=e.tmNode;if(ie)return!1;const{value:be}=o,{value:ce}=r,{value:V}=n,{value:_}=i;return be!==null?_.includes(U):ce!==null?_.includes(U)&&_[_.length-1]!==U:V!==null?_.includes(U):!1}),k=C(()=>r.value===null&&!l.value),D=ef(w,300,k),T=C(()=>!!b?.enteringSubmenuRef.value),A=O(!1);et(Dl,{enteringSubmenuRef:A});function N(){A.value=!0}function B(){A.value=!1}function E(){const{parentKey:U,tmNode:ie}=e;ie.disabled||d.value&&(n.value=U,r.value=null,o.value=ie.key)}function K(){const{tmNode:U}=e;U.disabled||d.value&&o.value!==U.key&&E()}function L(U){if(e.tmNode.disabled||!d.value)return;const{relatedTarget:ie}=U;ie&&!Jt({target:ie},"dropdownOption")&&!Jt({target:ie},"scrollbarRail")&&(o.value=null)}function te(){const{value:U}=P,{tmNode:ie}=e;d.value&&!U&&!ie.disabled&&(t.doSelect(ie.key,ie.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:u,siblingHasIcon:y.showIconRef,siblingHasSubmenu:y.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:C(()=>D.value&&!T.value),rawNode:F,hasSubmenu:P,pending:tt(()=>{const{value:U}=i,{key:ie}=e.tmNode;return U.includes(ie)}),childActive:tt(()=>{const{value:U}=s,{key:ie}=e.tmNode,be=U.findIndex(ce=>ie===ce);return be===-1?!1:be{const{value:U}=s,{key:ie}=e.tmNode,be=U.findIndex(ce=>ie===ce);return be===-1?!1:be===U.length-1}),mergedDisabled:$,renderOption:p,nodeProps:h,handleClick:te,handleMouseMove:K,handleMouseEnter:E,handleMouseLeave:L,handleSubmenuBeforeEnter:N,handleSubmenuAfterEnter:B}},render(){var e,t;const{animated:o,rawNode:r,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:s,siblingHasSubmenu:l,renderLabel:d,renderIcon:c,renderOption:u,nodeProps:f,props:v,scrollable:p}=this;let h=null;if(n){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);h=a(Ld,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},b=f?.(r),y=a("div",Object.assign({class:[`${i}-dropdown-option`,b?.class],"data-dropdown-option":!0},b),a("div",co(g,v),[a("div",{class:[`${i}-dropdown-option-body__prefix`,s&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Rt(r.icon)]),a("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},d?d(r):Rt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),a("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?a(fg,null,{default:()=>a(wi,null)}):null)]),this.hasSubmenu?a(Rr,null,{default:()=>[a(zr,null,{default:()=>a("div",{class:`${i}-dropdown-offset-container`},a(kr,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>a("div",{class:`${i}-dropdown-menu-wrapper`},o?a(qt,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return u?u({node:y,option:r}):y}}),pg=re({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:r}=e;return a(Gt,null,a(lg,{clsPrefix:o,tmNode:e,key:e.key}),r?.map(n=>{const{rawNode:i}=n;return i.show===!1?null:Hd(i)?a(Ad,{clsPrefix:o,key:n.key}):n.isGroup?null:a(Ed,{clsPrefix:o,tmNode:n,parentKey:t,key:n.key})}))}}),gg=re({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return a("div",t,[e?.()])}}),Ld=re({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Ee(na);et(Di,{showIconRef:C(()=>{const n=t.value;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>n?n(d):d.icon);const{rawNode:l}=i;return n?n(l):l.icon})}),hasSubmenuRef:C(()=>{const{value:n}=o;return e.tmNodes.some(i=>{var s;if(i.isGroup)return(s=i.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>ti(d,n));const{rawNode:l}=i;return ti(l,n)})})});const r=O(null);return et(gn,null),et(pn,null),et(Vr,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,r=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:vg(i)?a(gg,{tmNode:n,key:n.key}):Hd(i)?a(Ad,{clsPrefix:t,key:n.key}):hg(i)?a(pg,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):a(Ed,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:o})});return a("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?a(Gn,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Bs({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),mg=m("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[fr(),m("dropdown-option",` + position: relative; + `,[S("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[S("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),m("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[S("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),at("disabled",[R("pending",` + color: var(--n-option-text-color-hover); + `,[z("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),S("&::before","background-color: var(--n-option-color-hover);")]),R("active",` + color: var(--n-option-text-color-active); + `,[z("prefix, suffix",` + color: var(--n-option-text-color-active); + `),S("&::before","background-color: var(--n-option-color-active);")]),R("child-active",` + color: var(--n-option-text-color-child-active); + `,[z("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),R("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),R("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[z("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[R("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),z("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[R("show-icon",` + width: var(--n-option-icon-prefix-width); + `),m("icon",` + font-size: var(--n-option-icon-size); + `)]),z("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),z("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[R("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),m("icon",` + font-size: var(--n-option-icon-size); + `)]),m("dropdown-menu","pointer-events: all;")]),m("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),m("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),m("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),S(">",[m("scrollbar",` + height: inherit; + max-height: inherit; + `)]),at("scrollable",` + padding: var(--n-padding); + `),R("scrollable",[z("content",` + padding: var(--n-padding); + `)])]),bg={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},xg=Object.keys(Lr),Cg=Object.assign(Object.assign(Object.assign({},Lr),bg),Re.props),Nd=re({name:"Dropdown",inheritAttrs:!1,props:Cg,setup(e){const t=O(!1),o=$t(fe(e,"show"),t),r=C(()=>{const{keyField:B,childrenField:E}=e;return Uo(e.options,{getKey(K){return K[B]},getDisabled(K){return K.disabled===!0},getIgnored(K){return K.type==="divider"||K.type==="render"},getChildren(K){return K[E]}})}),n=C(()=>r.value.treeNodes),i=O(null),s=O(null),l=O(null),d=C(()=>{var B,E,K;return(K=(E=(B=i.value)!==null&&B!==void 0?B:s.value)!==null&&E!==void 0?E:l.value)!==null&&K!==void 0?K:null}),c=C(()=>r.value.getPath(d.value).keyPath),u=C(()=>r.value.getPath(e.value).keyPath),f=tt(()=>e.keyboard&&o.value);vi({keydown:{ArrowUp:{prevent:!0,handler:$},ArrowRight:{prevent:!0,handler:P},ArrowDown:{prevent:!0,handler:w},ArrowLeft:{prevent:!0,handler:F},Enter:{prevent:!0,handler:k},Escape:x}},f);const{mergedClsPrefixRef:v,inlineThemeDisabled:p}=Qe(e),h=Re("Dropdown","-dropdown",mg,Fi,e,v);et(na,{labelFieldRef:fe(e,"labelField"),childrenFieldRef:fe(e,"childrenField"),renderLabelRef:fe(e,"renderLabel"),renderIconRef:fe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:s,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:fe(e,"animated"),mergedShowRef:o,nodePropsRef:fe(e,"nodeProps"),renderOptionRef:fe(e,"renderOption"),menuPropsRef:fe(e,"menuProps"),doSelect:g,doUpdateShow:b}),gt(o,B=>{!e.animated&&!B&&y()});function g(B,E){const{onSelect:K}=e;K&&ae(K,B,E)}function b(B){const{"onUpdate:show":E,onUpdateShow:K}=e;E&&ae(E,B),K&&ae(K,B),t.value=B}function y(){i.value=null,s.value=null,l.value=null}function x(){b(!1)}function F(){T("left")}function P(){T("right")}function $(){T("up")}function w(){T("down")}function k(){const B=D();B?.isLeaf&&o.value&&(g(B.key,B.rawNode),b(!1))}function D(){var B;const{value:E}=r,{value:K}=d;return!E||K===null?null:(B=E.getNode(K))!==null&&B!==void 0?B:null}function T(B){const{value:E}=d,{value:{getFirstAvailableNode:K}}=r;let L=null;if(E===null){const te=K();te!==null&&(L=te.key)}else{const te=D();if(te){let U;switch(B){case"down":U=te.getNext();break;case"up":U=te.getPrev();break;case"right":U=te.getChild();break;case"left":U=te.getParent();break}U&&(L=U.key)}}L!==null&&(i.value=null,s.value=L)}const A=C(()=>{const{size:B,inverted:E}=e,{common:{cubicBezierEaseInOut:K},self:L}=h.value,{padding:te,dividerColor:U,borderRadius:ie,optionOpacityDisabled:be,[le("optionIconSuffixWidth",B)]:ce,[le("optionSuffixWidth",B)]:V,[le("optionIconPrefixWidth",B)]:_,[le("optionPrefixWidth",B)]:I,[le("fontSize",B)]:j,[le("optionHeight",B)]:J,[le("optionIconSize",B)]:se}=L,xe={"--n-bezier":K,"--n-font-size":j,"--n-padding":te,"--n-border-radius":ie,"--n-option-height":J,"--n-option-prefix-width":I,"--n-option-icon-prefix-width":_,"--n-option-suffix-width":V,"--n-option-icon-suffix-width":ce,"--n-option-icon-size":se,"--n-divider-color":U,"--n-option-opacity-disabled":be};return E?(xe["--n-color"]=L.colorInverted,xe["--n-option-color-hover"]=L.optionColorHoverInverted,xe["--n-option-color-active"]=L.optionColorActiveInverted,xe["--n-option-text-color"]=L.optionTextColorInverted,xe["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,xe["--n-option-text-color-active"]=L.optionTextColorActiveInverted,xe["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,xe["--n-prefix-color"]=L.prefixColorInverted,xe["--n-suffix-color"]=L.suffixColorInverted,xe["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(xe["--n-color"]=L.color,xe["--n-option-color-hover"]=L.optionColorHover,xe["--n-option-color-active"]=L.optionColorActive,xe["--n-option-text-color"]=L.optionTextColor,xe["--n-option-text-color-hover"]=L.optionTextColorHover,xe["--n-option-text-color-active"]=L.optionTextColorActive,xe["--n-option-text-color-child-active"]=L.optionTextColorChildActive,xe["--n-prefix-color"]=L.prefixColor,xe["--n-suffix-color"]=L.suffixColor,xe["--n-group-header-text-color"]=L.groupHeaderTextColor),xe}),N=p?lt("dropdown",C(()=>`${e.size[0]}${e.inverted?"i":""}`),A,e):void 0;return{mergedClsPrefix:v,mergedTheme:h,tmNodes:n,mergedShow:o,handleAfterLeave:()=>{e.animated&&y()},doUpdateShow:b,cssVars:p?void 0:A,themeClass:N?.themeClass,onRender:N?.onRender}},render(){const e=(r,n,i,s,l)=>{var d;const{mergedClsPrefix:c,menuProps:u}=this;(d=this.onRender)===null||d===void 0||d.call(this);const f=u?.(void 0,this.tmNodes.map(p=>p.rawNode))||{},v={ref:Cs(n),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:s,onMouseleave:l};return a(Ld,co(this.$attrs,v,f))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return a(Rn,Object.assign({},mo(this.$props,xg),o),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}}),jd="_n_all__",Vd="_n_none__";function yg(e,t,o,r){return e?n=>{for(const i of e)switch(n){case jd:o(!0);return;case Vd:r(!0);return;default:if(typeof i=="object"&&i.key===n){i.onSelect(t.value);return}}}:()=>{}}function wg(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:jd};case"none":return{label:t.uncheckTableAll,key:Vd};default:return o}}):[]}const Sg=re({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:r,rawPaginatedDataRef:n,doCheckAll:i,doUncheckAll:s}=Ee(Do),l=C(()=>yg(r.value,n,i,s)),d=C(()=>wg(r.value,o.value));return()=>{var c,u,f,v;const{clsPrefix:p}=e;return a(Nd,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(v=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||v===void 0?void 0:v.Dropdown,options:d.value,onSelect:l.value},{default:()=>a(zt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>a(Ss,null)})})}}});function wa(e){return typeof e.title=="function"?e.title(e):e.title}const kg=re({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:r}=this;return a("table",{style:{tableLayout:"fixed",width:r},class:`${e}-data-table-table`},a("colgroup",null,o.map(n=>a("col",{key:n.key,style:n.style}))),a("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),Wd=re({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:r,mergedCurrentPageRef:n,allRowsCheckedRef:i,someRowsCheckedRef:s,rowsRef:l,colsRef:d,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:f,componentId:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:h,virtualScrollHeaderRef:g,headerHeightRef:b,onUnstableColumnResize:y,doUpdateResizableWidth:x,handleTableHeaderScroll:F,deriveNextSorter:P,doUncheckAll:$,doCheckAll:w}=Ee(Do),k=O(),D=O({});function T(L){const te=D.value[L];return te?.getBoundingClientRect().width}function A(){i.value?$():w()}function N(L,te){if(Jt(L,"dataTableFilter")||Jt(L,"dataTableResizable")||!ya(te))return;const U=f.value.find(be=>be.columnKey===te.key)||null,ie=Lp(te,U);P(ie)}const B=new Map;function E(L){B.set(L.key,T(L.key))}function K(L,te){const U=B.get(L.key);if(U===void 0)return;const ie=U+te,be=_p(ie,L.minWidth,L.maxWidth);y(ie,be,L,T),x(L,be)}return{cellElsRef:D,componentId:v,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:i,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,mergedTableLayout:p,headerCheckboxDisabled:h,headerHeight:b,virtualScrollHeader:g,virtualListRef:k,handleCheckboxUpdateChecked:A,handleColHeaderClick:N,handleTableHeaderScroll:F,handleColumnResizeStart:E,handleColumnResize:K}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:i,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,componentId:f,discrete:v,mergedTableLayout:p,headerCheckboxDisabled:h,mergedSortState:g,virtualScrollHeader:b,handleColHeaderClick:y,handleCheckboxUpdateChecked:x,handleColumnResizeStart:F,handleColumnResize:P}=this,$=(T,A,N)=>T.map(({column:B,colIndex:E,colSpan:K,rowSpan:L,isLast:te})=>{var U,ie;const be=Io(B),{ellipsis:ce}=B,V=()=>B.type==="selection"?B.multiple!==!1?a(Gt,null,a(oa,{key:n,privateInsideTable:!0,checked:i,indeterminate:s,disabled:h,onUpdateChecked:x}),u?a(Sg,{clsPrefix:t}):null):null:a(Gt,null,a("div",{class:`${t}-data-table-th__title-wrapper`},a("div",{class:`${t}-data-table-th__title`},ce===!0||ce&&!ce.tooltip?a("div",{class:`${t}-data-table-th__ellipsis`},wa(B)):ce&&typeof ce=="object"?a(Mi,Object.assign({},ce,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>wa(B)}):wa(B)),ya(B)?a(ig,{column:B}):null),Bl(B)?a(rg,{column:B,options:B.filterOptions}):null,Pd(B)?a(ng,{onResizeStart:()=>{F(B)},onResize:J=>{P(B,J)}}):null),_=be in o,I=be in r,j=A&&!B.fixed?"div":"th";return a(j,{ref:J=>e[be]=J,key:be,style:[A&&!B.fixed?{position:"absolute",left:Et(A(E)),top:0,bottom:0}:{left:Et((U=o[be])===null||U===void 0?void 0:U.start),right:Et((ie=r[be])===null||ie===void 0?void 0:ie.start)},{width:Et(B.width),textAlign:B.titleAlign||B.align,height:N}],colspan:K,rowspan:L,"data-col-key":be,class:[`${t}-data-table-th`,(_||I)&&`${t}-data-table-th--fixed-${_?"left":"right"}`,{[`${t}-data-table-th--sorting`]:$d(B,g),[`${t}-data-table-th--filterable`]:Bl(B),[`${t}-data-table-th--sortable`]:ya(B),[`${t}-data-table-th--selection`]:B.type==="selection",[`${t}-data-table-th--last`]:te},B.className],onClick:B.type!=="selection"&&B.type!=="expand"&&!("children"in B)?J=>{y(J,B)}:void 0},V())});if(b){const{headerHeight:T}=this;let A=0,N=0;return d.forEach(B=>{B.column.fixed==="left"?A++:B.column.fixed==="right"&&N++}),a(wr,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Et(T)},onScroll:this.handleTableHeaderScroll,columns:d,itemSize:T,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:kg,visibleItemsProps:{clsPrefix:t,id:f,cols:d,width:_t(this.scrollX)},renderItemWithCols:({startColIndex:B,endColIndex:E,getLeft:K})=>{const L=d.map((U,ie)=>({column:U.column,isLast:ie===d.length-1,colIndex:U.index,colSpan:1,rowSpan:1})).filter(({column:U},ie)=>!!(B<=ie&&ie<=E||U.fixed)),te=$(L,K,Et(T));return te.splice(A,0,a("th",{colspan:d.length-A-N,style:{pointerEvents:"none",visibility:"hidden",height:0}})),a("tr",{style:{position:"relative"}},te)}},{default:({renderedItemWithCols:B})=>B})}const w=a("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map(T=>a("tr",{class:`${t}-data-table-tr`},$(T,null,void 0))));if(!v)return w;const{handleTableHeaderScroll:k,scrollX:D}=this;return a("div",{class:`${t}-data-table-base-table-header`,onScroll:k},a("table",{class:`${t}-data-table-table`,style:{minWidth:_t(D),tableLayout:p}},a("colgroup",null,d.map(T=>a("col",{key:T.key,style:T.style}))),w))}});function Rg(e,t){const o=[];function r(n,i){n.forEach(s=>{s.children&&t.has(s.key)?(o.push({tmNode:s,striped:!1,key:s.key,index:i}),r(s.children,i)):o.push({key:s.key,tmNode:s,striped:!1,index:i})})}return e.forEach(n=>{o.push(n);const{children:i}=n.tmNode;i&&t.has(n.key)&&r(i,n.index)}),o}const zg=re({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:r,onMouseleave:n}=this;return a("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:n},a("colgroup",null,o.map(i=>a("col",{key:i.key,style:i.style}))),a("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),Pg=re({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:n,mergedThemeRef:i,scrollXRef:s,colsRef:l,paginatedDataRef:d,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:f,mergedCurrentPageRef:v,rowClassNameRef:p,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:b,rightActiveFixedChildrenColKeysRef:y,renderExpandRef:x,hoverKeyRef:F,summaryRef:P,mergedSortStateRef:$,virtualScrollRef:w,virtualScrollXRef:k,heightForRowRef:D,minRowHeightRef:T,componentId:A,mergedTableLayoutRef:N,childTriggerColIndexRef:B,indentRef:E,rowPropsRef:K,maxHeightRef:L,stripedRef:te,loadingRef:U,onLoadRef:ie,loadingKeySetRef:be,expandableRef:ce,stickyExpandedRowsRef:V,renderExpandIconRef:_,summaryPlacementRef:I,treeMateRef:j,scrollbarPropsRef:J,setHeaderScrollLeft:se,doUpdateExpandedRowKeys:xe,handleTableBodyScroll:Ie,doCheck:H,doUncheck:Pe,renderCell:He}=Ee(Do),_e=Ee(Po),Ge=O(null),Xe=O(null),ct=O(null),ot=tt(()=>d.value.length===0),Ce=tt(()=>e.showHeader||!ot.value),ee=tt(()=>e.showHeader||ot.value);let ue="";const q=C(()=>new Set(r.value));function Q(Me){var Ze;return(Ze=j.value.getNode(Me))===null||Ze===void 0?void 0:Ze.rawNode}function pe(Me,Ze,M){const G=Q(Me.key);if(!G){`${Me.key}`;return}if(M){const ve=d.value.findIndex(Fe=>Fe.key===ue);if(ve!==-1){const Fe=d.value.findIndex($e=>$e.key===Me.key),Be=Math.min(ve,Fe),W=Math.max(ve,Fe),ge=[];d.value.slice(Be,W+1).forEach($e=>{$e.disabled||ge.push($e.key)}),Ze?H(ge,!1,G):Pe(ge,G),ue=Me.key;return}}Ze?H(Me.key,!1,G):Pe(Me.key,G),ue=Me.key}function we(Me){const Ze=Q(Me.key);if(!Ze){`${Me.key}`;return}H(Me.key,!0,Ze)}function de(){if(!Ce.value){const{value:Ze}=ct;return Ze||null}if(w.value)return oe();const{value:Me}=Ge;return Me?Me.containerRef:null}function me(Me,Ze){var M;if(be.value.has(Me))return;const{value:G}=r,ve=G.indexOf(Me),Fe=Array.from(G);~ve?(Fe.splice(ve,1),xe(Fe)):Ze&&!Ze.isLeaf&&!Ze.shallowLoaded?(be.value.add(Me),(M=ie.value)===null||M===void 0||M.call(ie,Ze.rawNode).then(()=>{const{value:Be}=r,W=Array.from(Be);~W.indexOf(Me)||W.push(Me),xe(W)}).finally(()=>{be.value.delete(Me)})):(Fe.push(Me),xe(Fe))}function je(){F.value=null}function oe(){const{value:Me}=Xe;return Me?.listElRef||null}function Ue(){const{value:Me}=Xe;return Me?.itemsElRef||null}function it(Me){var Ze;Ie(Me),(Ze=Ge.value)===null||Ze===void 0||Ze.sync()}function Pt(Me){var Ze;const{onResize:M}=e;M&&M(Me),(Ze=Ge.value)===null||Ze===void 0||Ze.sync()}const xt={getScrollContainer:de,scrollTo(Me,Ze){var M,G;w.value?(M=Xe.value)===null||M===void 0||M.scrollTo(Me,Ze):(G=Ge.value)===null||G===void 0||G.scrollTo(Me,Ze)}},pt=S([({props:Me})=>{const Ze=G=>G===null?null:S(`[data-n-id="${Me.componentId}"] [data-col-key="${G}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),M=G=>G===null?null:S(`[data-n-id="${Me.componentId}"] [data-col-key="${G}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return S([Ze(Me.leftActiveFixedColKey),M(Me.rightActiveFixedColKey),Me.leftActiveFixedChildrenColKeys.map(G=>Ze(G)),Me.rightActiveFixedChildrenColKeys.map(G=>M(G))])}]);let ft=!1;return Ft(()=>{const{value:Me}=h,{value:Ze}=g,{value:M}=b,{value:G}=y;if(!ft&&Me===null&&M===null)return;const ve={leftActiveFixedColKey:Me,leftActiveFixedChildrenColKeys:Ze,rightActiveFixedColKey:M,rightActiveFixedChildrenColKeys:G,componentId:A};pt.mount({id:`n-${A}`,force:!0,props:ve,anchorMetaName:Hr,parent:_e?.styleMountTarget}),ft=!0}),Jn(()=>{pt.unmount({id:`n-${A}`,parent:_e?.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:I,dataTableSlots:t,componentId:A,scrollbarInstRef:Ge,virtualListRef:Xe,emptyElRef:ct,summary:P,mergedClsPrefix:n,mergedTheme:i,scrollX:s,cols:l,loading:U,bodyShowHeaderOnly:ee,shouldDisplaySomeTablePart:Ce,empty:ot,paginatedDataAndInfo:C(()=>{const{value:Me}=te;let Ze=!1;return{data:d.value.map(Me?(G,ve)=>(G.isLeaf||(Ze=!0),{tmNode:G,key:G.key,striped:ve%2===1,index:ve}):(G,ve)=>(G.isLeaf||(Ze=!0),{tmNode:G,key:G.key,striped:!1,index:ve})),hasChildren:Ze}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:f,currentPage:v,rowClassName:p,renderExpand:x,mergedExpandedRowKeySet:q,hoverKey:F,mergedSortState:$,virtualScroll:w,virtualScrollX:k,heightForRow:D,minRowHeight:T,mergedTableLayout:N,childTriggerColIndex:B,indent:E,rowProps:K,maxHeight:L,loadingKeySet:be,expandable:ce,stickyExpandedRows:V,renderExpandIcon:_,scrollbarProps:J,setHeaderScrollLeft:se,handleVirtualListScroll:it,handleVirtualListResize:Pt,handleMouseleaveTable:je,virtualListContainer:oe,virtualListContent:Ue,handleTableBodyScroll:Ie,handleCheckboxUpdateChecked:pe,handleRadioUpdateChecked:we,handleUpdateExpanded:me,renderCell:He},xt)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:r,maxHeight:n,mergedTableLayout:i,flexHeight:s,loadingKeySet:l,onResize:d,setHeaderScrollLeft:c}=this,u=t!==void 0||n!==void 0||s,f=!u&&i==="auto",v=t!==void 0||f,p={minWidth:_t(t)||"100%"};t&&(p.width="100%");const h=a(Ut,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||f,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:v,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:d}),{default:()=>{const g={},b={},{cols:y,paginatedDataAndInfo:x,mergedTheme:F,fixedColumnLeftMap:P,fixedColumnRightMap:$,currentPage:w,rowClassName:k,mergedSortState:D,mergedExpandedRowKeySet:T,stickyExpandedRows:A,componentId:N,childTriggerColIndex:B,expandable:E,rowProps:K,handleMouseleaveTable:L,renderExpand:te,summary:U,handleCheckboxUpdateChecked:ie,handleRadioUpdateChecked:be,handleUpdateExpanded:ce,heightForRow:V,minRowHeight:_,virtualScrollX:I}=this,{length:j}=y;let J;const{data:se,hasChildren:xe}=x,Ie=xe?Rg(se,T):se;if(U){const ue=U(this.rawPaginatedData);if(Array.isArray(ue)){const q=ue.map((Q,pe)=>({isSummaryRow:!0,key:`__n_summary__${pe}`,tmNode:{rawNode:Q,disabled:!0},index:-1}));J=this.summaryPlacement==="top"?[...q,...Ie]:[...Ie,...q]}else{const q={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ue,disabled:!0},index:-1};J=this.summaryPlacement==="top"?[q,...Ie]:[...Ie,q]}}else J=Ie;const H=xe?{width:Et(this.indent)}:void 0,Pe=[];J.forEach(ue=>{te&&T.has(ue.key)&&(!E||E(ue.tmNode.rawNode))?Pe.push(ue,{isExpandedRow:!0,key:`${ue.key}-expand`,tmNode:ue.tmNode,index:ue.index}):Pe.push(ue)});const{length:He}=Pe,_e={};se.forEach(({tmNode:ue},q)=>{_e[q]=ue.key});const Ge=A?this.bodyWidth:null,Xe=Ge===null?void 0:`${Ge}px`,ct=this.virtualScrollX?"div":"td";let ot=0,Ce=0;I&&y.forEach(ue=>{ue.column.fixed==="left"?ot++:ue.column.fixed==="right"&&Ce++});const ee=({rowInfo:ue,displayedRowIndex:q,isVirtual:Q,isVirtualX:pe,startColIndex:we,endColIndex:de,getLeft:me})=>{const{index:je}=ue;if("isExpandedRow"in ue){const{tmNode:{key:Fe,rawNode:Be}}=ue;return a("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Fe}__expand`},a("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,q+1===He&&`${o}-data-table-td--last-row`],colspan:j},A?a("div",{class:`${o}-data-table-expand`,style:{width:Xe}},te(Be,je)):te(Be,je)))}const oe="isSummaryRow"in ue,Ue=!oe&&ue.striped,{tmNode:it,key:Pt}=ue,{rawNode:xt}=it,pt=T.has(Pt),ft=K?K(xt,je):void 0,Me=typeof k=="string"?k:Ep(xt,je,k),Ze=pe?y.filter((Fe,Be)=>!!(we<=Be&&Be<=de||Fe.column.fixed)):y,M=pe?Et(V?.(xt,je)||_):void 0,G=Ze.map(Fe=>{var Be,W,ge,$e,We;const ht=Fe.index;if(q in g){const Ae=g[q],Ne=Ae.indexOf(ht);if(~Ne)return Ae.splice(Ne,1),null}const{column:rt}=Fe,ne=Io(Fe),{rowSpan:ze,colSpan:Le}=rt,Je=oe?((Be=ue.tmNode.rawNode[ne])===null||Be===void 0?void 0:Be.colSpan)||1:Le?Le(xt,je):1,yt=oe?((W=ue.tmNode.rawNode[ne])===null||W===void 0?void 0:W.rowSpan)||1:ze?ze(xt,je):1,bt=ht+Je===j,Ct=q+yt===He,X=yt>1;if(X&&(b[q]={[ht]:[]}),Je>1||X)for(let Ae=q;Ae{ce(Pt,ue.tmNode)}})]:null,rt.type==="selection"?oe?null:rt.multiple===!1?a(Xp,{key:w,rowKey:Pt,disabled:ue.tmNode.disabled,onUpdateChecked:()=>{be(ue.tmNode)}}):a(Vp,{key:w,rowKey:Pt,disabled:ue.tmNode.disabled,onUpdateChecked:(Ae,Ne)=>{ie(ue.tmNode,Ae,Ne.shiftKey)}}):rt.type==="expand"?oe?null:!rt.expandable||!((We=rt.expandable)===null||We===void 0)&&We.call(rt,xt)?a(Ml,{clsPrefix:o,rowData:xt,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ce(Pt,null)}}):null:a(Jp,{clsPrefix:o,index:je,row:xt,column:rt,isSummary:oe,mergedTheme:F,renderCell:this.renderCell}))});return pe&&ot&&Ce&&G.splice(ot,0,a("td",{colspan:y.length-ot-Ce,style:{pointerEvents:"none",visibility:"hidden",height:0}})),a("tr",Object.assign({},ft,{onMouseenter:Fe=>{var Be;this.hoverKey=Pt,(Be=ft?.onMouseenter)===null||Be===void 0||Be.call(ft,Fe)},key:Pt,class:[`${o}-data-table-tr`,oe&&`${o}-data-table-tr--summary`,Ue&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,Me,ft?.class],style:[ft?.style,pe&&{height:M}]}),G)};return r?a(wr,{ref:"virtualListRef",items:Pe,itemSize:this.minRowHeight,visibleItemsTag:zg,visibleItemsProps:{clsPrefix:o,id:N,cols:y,onMouseleave:L},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!I,columns:y,renderItemWithCols:I?({itemIndex:ue,item:q,startColIndex:Q,endColIndex:pe,getLeft:we})=>ee({displayedRowIndex:ue,isVirtual:!0,isVirtualX:!0,rowInfo:q,startColIndex:Q,endColIndex:pe,getLeft:we}):void 0},{default:({item:ue,index:q,renderedItemWithCols:Q})=>Q||ee({rowInfo:ue,displayedRowIndex:q,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(pe){return 0}})}):a("table",{class:`${o}-data-table-table`,onMouseleave:L,style:{tableLayout:this.mergedTableLayout}},a("colgroup",null,y.map(ue=>a("col",{key:ue.key,style:ue.style}))),this.showHeader?a(Wd,{discrete:!1}):null,this.empty?null:a("tbody",{"data-n-id":N,class:`${o}-data-table-tbody`},Pe.map((ue,q)=>ee({rowInfo:ue,displayedRowIndex:q,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(Q){return-1}}))))}});if(this.empty){const g=()=>a("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[a(Xn,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?a(Gt,null,h,g()):a(_o,{onResize:this.onResize},{default:g})}return h}}),$g=re({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:r,maxHeightRef:n,minHeightRef:i,flexHeightRef:s,virtualScrollHeaderRef:l,syncScrollState:d}=Ee(Do),c=O(null),u=O(null),f=O(null),v=O(!(o.value.length||t.value.length)),p=C(()=>({maxHeight:_t(n.value),minHeight:_t(i.value)}));function h(x){r.value=x.contentRect.width,d(),v.value||(v.value=!0)}function g(){var x;const{value:F}=c;return F?l.value?((x=F.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:F.$el:null}function b(){const{value:x}=u;return x?x.getScrollContainer():null}const y={getBodyElement:b,getHeaderElement:g,scrollTo(x,F){var P;(P=u.value)===null||P===void 0||P.scrollTo(x,F)}};return Ft(()=>{const{value:x}=f;if(!x)return;const F=`${e.value}-data-table-base-table--transition-disabled`;v.value?setTimeout(()=>{x.classList.remove(F)},0):x.classList.add(F)}),Object.assign({maxHeight:n,mergedClsPrefix:e,selfElRef:f,headerInstRef:c,bodyInstRef:u,bodyStyle:p,flexHeight:s,handleBodyResize:h},y)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,r=t===void 0&&!o;return a("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:a(Wd,{ref:"headerInstRef"}),a(Pg,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:o,onResize:this.handleBodyResize}))}}),Al=Fg(),Tg=S([m("data-table",` + width: 100%; + font-size: var(--n-font-size); + display: flex; + flex-direction: column; + position: relative; + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + --n-merged-th-color-hover: var(--n-th-color-hover); + --n-merged-th-color-sorting: var(--n-th-color-sorting); + --n-merged-td-color-hover: var(--n-td-color-hover); + --n-merged-td-color-sorting: var(--n-td-color-sorting); + --n-merged-td-color-striped: var(--n-td-color-striped); + `,[m("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `),R("flex-height",[S(">",[m("data-table-wrapper",[S(">",[m("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[S(">",[m("data-table-base-table-body","flex-basis: 0;",[S("&:last-child","flex-grow: 1;")])])])])])])]),S(">",[m("data-table-loading-wrapper",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + justify-content: center; + `,[fr({originalTransform:"translateX(-50%) translateY(-50%)"})])]),m("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),m("data-table-indent",` + display: inline-block; + height: 1px; + `),m("data-table-expand-trigger",` + display: inline-flex; + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -0.2em; + position: relative; + width: 16px; + height: 16px; + color: var(--n-td-text-color); + transition: color .3s var(--n-bezier); + `,[R("expanded",[m("icon","transform: rotate(90deg);",[ho({originalTransform:"rotate(90deg)"})]),m("base-icon","transform: rotate(90deg);",[ho({originalTransform:"rotate(90deg)"})])]),m("base-loading",` + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[ho()]),m("icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[ho()]),m("base-icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[ho()])]),m("data-table-thead",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-merged-th-color); + `),m("data-table-tr",` + position: relative; + box-sizing: border-box; + background-clip: padding-box; + transition: background-color .3s var(--n-bezier); + `,[m("data-table-expand",` + position: sticky; + left: 0; + overflow: hidden; + margin: calc(var(--n-th-padding) * -1); + padding: var(--n-th-padding); + box-sizing: border-box; + `),R("striped","background-color: var(--n-merged-td-color-striped);",[m("data-table-td","background-color: var(--n-merged-td-color-striped);")]),at("summary",[S("&:hover","background-color: var(--n-merged-td-color-hover);",[S(">",[m("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),m("data-table-th",` + padding: var(--n-th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--n-merged-th-color); + border-color: var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + color: var(--n-th-text-color); + transition: + border-color .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + font-weight: var(--n-th-font-weight); + `,[R("filterable",` + padding-right: 36px; + `,[R("sortable",` + padding-right: calc(var(--n-th-padding) + 36px); + `)]),Al,R("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),z("title-wrapper",` + display: flex; + align-items: center; + flex-wrap: nowrap; + max-width: 100%; + `,[z("title",` + flex: 1; + min-width: 0; + `)]),z("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),R("hover",` + background-color: var(--n-merged-th-color-hover); + `),R("sorting",` + background-color: var(--n-merged-th-color-sorting); + `),R("sortable",` + cursor: pointer; + `,[z("ellipsis",` + max-width: calc(100% - 18px); + `),S("&:hover",` + background-color: var(--n-merged-th-color-hover); + `)]),m("data-table-sorter",` + height: var(--n-sorter-size); + width: var(--n-sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: -0.2em; + color: var(--n-th-icon-color); + transition: color .3s var(--n-bezier); + `,[m("base-icon","transition: transform .3s var(--n-bezier)"),R("desc",[m("base-icon",` + transform: rotate(0deg); + `)]),R("asc",[m("base-icon",` + transform: rotate(-180deg); + `)]),R("asc, desc",` + color: var(--n-th-icon-color-active); + `)]),m("data-table-resize-button",` + width: var(--n-resizable-container-size); + position: absolute; + top: 0; + right: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + cursor: col-resize; + user-select: none; + `,[S("&::after",` + width: var(--n-resizable-size); + height: 50%; + position: absolute; + top: 50%; + left: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + background-color: var(--n-merged-border-color); + transform: translateY(-50%); + transition: background-color .3s var(--n-bezier); + z-index: 1; + content: ''; + `),R("active",[S("&::after",` + background-color: var(--n-th-icon-color-active); + `)]),S("&:hover::after",` + background-color: var(--n-th-icon-color-active); + `)]),m("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + font-size: var(--n-filter-size); + color: var(--n-th-icon-color); + `,[S("&:hover",` + background-color: var(--n-th-button-color-hover); + `),R("show",` + background-color: var(--n-th-button-color-hover); + `),R("active",` + background-color: var(--n-th-button-color-hover); + color: var(--n-th-icon-color-active); + `)])]),m("data-table-td",` + padding: var(--n-td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--n-merged-td-color); + color: var(--n-td-text-color); + border-bottom: 1px solid var(--n-merged-border-color); + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[R("expand",[m("data-table-expand-trigger",` + margin-right: 0; + `)]),R("last-row",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[S("&::after",` + bottom: 0 !important; + `),S("&::before",` + bottom: 0 !important; + `)]),R("summary",` + background-color: var(--n-merged-th-color); + `),R("hover",` + background-color: var(--n-merged-td-color-hover); + `),R("sorting",` + background-color: var(--n-merged-td-color-sorting); + `),z("ellipsis",` + display: inline-block; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + vertical-align: bottom; + max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); + `),R("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),Al]),m("data-table-empty",` + box-sizing: border-box; + padding: var(--n-empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--n-bezier); + `,[R("hide",` + opacity: 0; + `)]),z("pagination",` + margin: var(--n-pagination-margin); + display: flex; + justify-content: flex-end; + `),m("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + line-height: var(--n-line-height); + `),R("loading",[m("data-table-wrapper",` + opacity: var(--n-opacity-loading); + pointer-events: none; + `)]),R("single-column",[m("data-table-td",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[S("&::after, &::before",` + bottom: 0 !important; + `)])]),at("single-line",[m("data-table-th",` + border-right: 1px solid var(--n-merged-border-color); + `,[R("last",` + border-right: 0 solid var(--n-merged-border-color); + `)]),m("data-table-td",` + border-right: 1px solid var(--n-merged-border-color); + `,[R("last-col",` + border-right: 0 solid var(--n-merged-border-color); + `)])]),R("bordered",[m("data-table-wrapper",` + border: 1px solid var(--n-merged-border-color); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + overflow: hidden; + `)]),m("data-table-base-table",[R("transition-disabled",[m("data-table-th",[S("&::after, &::before","transition: none;")]),m("data-table-td",[S("&::after, &::before","transition: none;")])])]),R("bottom-bordered",[m("data-table-td",[R("last-row",` + border-bottom: 1px solid var(--n-merged-border-color); + `)])]),m("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-break: break-word; + transition: background-color .3s var(--n-bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--n-merged-td-color); + `),m("data-table-base-table-header",` + border-top-left-radius: calc(var(--n-border-radius) - 1px); + border-top-right-radius: calc(var(--n-border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--n-bezier); + scrollbar-width: none; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + display: none; + width: 0; + height: 0; + `)]),m("data-table-check-extra",` + transition: color .3s var(--n-bezier); + color: var(--n-th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),m("data-table-filter-menu",[m("scrollbar",` + max-height: 240px; + `),z("group",` + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + `,[m("checkbox",` + margin-bottom: 12px; + margin-right: 0; + `),m("radio",` + margin-bottom: 12px; + margin-right: 0; + `)]),z("action",` + padding: var(--n-action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--n-action-divider-color); + `,[m("button",[S("&:not(:last-child)",` + margin: var(--n-action-button-margin); + `),S("&:last-child",` + margin-right: 0; + `)])]),m("divider",` + margin: 0 !important; + `)]),jr(m("data-table",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + --n-merged-th-color-hover: var(--n-th-color-hover-modal); + --n-merged-td-color-hover: var(--n-td-color-hover-modal); + --n-merged-th-color-sorting: var(--n-th-color-hover-modal); + --n-merged-td-color-sorting: var(--n-td-color-hover-modal); + --n-merged-td-color-striped: var(--n-td-color-striped-modal); + `)),vn(m("data-table",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + --n-merged-th-color-hover: var(--n-th-color-hover-popover); + --n-merged-td-color-hover: var(--n-td-color-hover-popover); + --n-merged-th-color-sorting: var(--n-th-color-hover-popover); + --n-merged-td-color-sorting: var(--n-td-color-hover-popover); + --n-merged-td-color-striped: var(--n-td-color-striped-popover); + `))]);function Fg(){return[R("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[S("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + right: -36px; + `)]),R("fixed-right",` + right: 0; + position: sticky; + z-index: 1; + `,[S("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + left: -36px; + `)])]}function Ig(e,t){const{paginatedDataRef:o,treeMateRef:r,selectionColumnRef:n}=t,i=O(e.defaultCheckedRowKeys),s=C(()=>{var $;const{checkedRowKeys:w}=e,k=w===void 0?i.value:w;return(($=n.value)===null||$===void 0?void 0:$.multiple)===!1?{checkedKeys:k.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(k,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=C(()=>s.value.checkedKeys),d=C(()=>s.value.indeterminateKeys),c=C(()=>new Set(l.value)),u=C(()=>new Set(d.value)),f=C(()=>{const{value:$}=c;return o.value.reduce((w,k)=>{const{key:D,disabled:T}=k;return w+(!T&&$.has(D)?1:0)},0)}),v=C(()=>o.value.filter($=>$.disabled).length),p=C(()=>{const{length:$}=o.value,{value:w}=u;return f.value>0&&f.value<$-v.value||o.value.some(k=>w.has(k.key))}),h=C(()=>{const{length:$}=o.value;return f.value!==0&&f.value===$-v.value}),g=C(()=>o.value.length===0);function b($,w,k){const{"onUpdate:checkedRowKeys":D,onUpdateCheckedRowKeys:T,onCheckedRowKeysChange:A}=e,N=[],{value:{getNode:B}}=r;$.forEach(E=>{var K;const L=(K=B(E))===null||K===void 0?void 0:K.rawNode;N.push(L)}),D&&ae(D,$,N,{row:w,action:k}),T&&ae(T,$,N,{row:w,action:k}),A&&ae(A,$,N,{row:w,action:k}),i.value=$}function y($,w=!1,k){if(!e.loading){if(w){b(Array.isArray($)?$.slice(0,1):[$],k,"check");return}b(r.value.check($,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"check")}}function x($,w){e.loading||b(r.value.uncheck($,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,w,"uncheck")}function F($=!1){const{value:w}=n;if(!w||e.loading)return;const k=[];($?r.value.treeNodes:o.value).forEach(D=>{D.disabled||k.push(D.key)}),b(r.value.check(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function P($=!1){const{value:w}=n;if(!w||e.loading)return;const k=[];($?r.value.treeNodes:o.value).forEach(D=>{D.disabled||k.push(D.key)}),b(r.value.uncheck(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:p,allRowsCheckedRef:h,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:b,doCheckAll:F,doUncheckAll:P,doCheck:y,doUncheck:x}}function Bg(e,t){const o=tt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=tt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),n=O(e.defaultExpandAll?o?.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=fe(e,"expandedRowKeys"),s=fe(e,"stickyExpandedRows"),l=$t(i,n);function d(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":f}=e;u&&ae(u,c),f&&ae(f,c),n.value=c}return{stickyExpandedRowsRef:s,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:r,doUpdateExpandedRowKeys:d}}function Og(e,t){const o=[],r=[],n=[],i=new WeakMap;let s=-1,l=0,d=!1,c=0;function u(v,p){p>s&&(o[p]=[],s=p),v.forEach(h=>{if("children"in h)u(h.children,p+1);else{const g="key"in h?h.key:void 0;r.push({key:Io(h),style:Hp(h,g!==void 0?_t(t(g)):void 0),column:h,index:c++,width:h.width===void 0?128:Number(h.width)}),l+=1,d||(d=!!h.ellipsis),n.push(h)}})}u(e,0),c=0;function f(v,p){let h=0;v.forEach(g=>{var b;if("children"in g){const y=c,x={column:g,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};f(g.children,p+1),g.children.forEach(F=>{var P,$;x.colSpan+=($=(P=i.get(F))===null||P===void 0?void 0:P.colSpan)!==null&&$!==void 0?$:0}),y+x.colSpan===l&&(x.isLast=!0),i.set(g,x),o[p].push(x)}else{if(c1&&(h=c+y);const x=c+y===l,F={column:g,colSpan:y,colIndex:c,rowSpan:s-p+1,isLast:x};i.set(g,F),o[p].push(F),c+=1}})}return f(e,0),{hasEllipsis:d,rows:o,cols:r,dataRelatedCols:n}}function Mg(e,t){const o=C(()=>Og(e.columns,t));return{rowsRef:C(()=>o.value.rows),colsRef:C(()=>o.value.cols),hasEllipsisRef:C(()=>o.value.hasEllipsis),dataRelatedColsRef:C(()=>o.value.dataRelatedCols)}}function Dg(){const e=O({});function t(n){return e.value[n]}function o(n,i){Pd(n)&&"key"in n&&(e.value[n.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:r}}function Ag(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:r}){let n=0;const i=O(),s=O(null),l=O([]),d=O(null),c=O([]),u=C(()=>_t(e.scrollX)),f=C(()=>e.columns.filter(T=>T.fixed==="left")),v=C(()=>e.columns.filter(T=>T.fixed==="right")),p=C(()=>{const T={};let A=0;function N(B){B.forEach(E=>{const K={start:A,end:0};T[Io(E)]=K,"children"in E?(N(E.children),K.end=A):(A+=Fl(E)||0,K.end=A)})}return N(f.value),T}),h=C(()=>{const T={};let A=0;function N(B){for(let E=B.length-1;E>=0;--E){const K=B[E],L={start:A,end:0};T[Io(K)]=L,"children"in K?(N(K.children),L.end=A):(A+=Fl(K)||0,L.end=A)}}return N(v.value),T});function g(){var T,A;const{value:N}=f;let B=0;const{value:E}=p;let K=null;for(let L=0;L(((T=E[te])===null||T===void 0?void 0:T.start)||0)-B)K=te,B=((A=E[te])===null||A===void 0?void 0:A.end)||0;else break}s.value=K}function b(){l.value=[];let T=e.columns.find(A=>Io(A)===s.value);for(;T&&"children"in T;){const A=T.children.length;if(A===0)break;const N=T.children[A-1];l.value.push(Io(N)),T=N}}function y(){var T,A;const{value:N}=v,B=Number(e.scrollX),{value:E}=r;if(E===null)return;let K=0,L=null;const{value:te}=h;for(let U=N.length-1;U>=0;--U){const ie=Io(N[U]);if(Math.round(n+(((T=te[ie])===null||T===void 0?void 0:T.start)||0)+E-K)Io(A)===d.value);for(;T&&"children"in T&&T.children.length;){const A=T.children[0];c.value.push(Io(A)),T=A}}function F(){const T=t.value?t.value.getHeaderElement():null,A=t.value?t.value.getBodyElement():null;return{header:T,body:A}}function P(){const{body:T}=F();T&&(T.scrollTop=0)}function $(){i.value!=="body"?Na(k):i.value=void 0}function w(T){var A;(A=e.onScroll)===null||A===void 0||A.call(e,T),i.value!=="head"?Na(k):i.value=void 0}function k(){const{header:T,body:A}=F();if(!A)return;const{value:N}=r;if(N!==null){if(e.maxHeight||e.flexHeight){if(!T)return;const B=n-T.scrollLeft;i.value=B!==0?"head":"body",i.value==="head"?(n=T.scrollLeft,A.scrollLeft=n):(n=A.scrollLeft,T.scrollLeft=n)}else n=A.scrollLeft;g(),b(),y(),x()}}function D(T){const{header:A}=F();A&&(A.scrollLeft=T,k())}return gt(o,()=>{P()}),{styleScrollXRef:u,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:h,leftFixedColumnsRef:f,rightFixedColumnsRef:v,leftActiveFixedColKeyRef:s,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:d,rightActiveFixedChildrenColKeysRef:c,syncScrollState:k,handleTableBodyScroll:w,handleTableHeaderScroll:$,setHeaderScrollLeft:D}}function Dn(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function _g(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?Hg(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function Hg(e){return(t,o)=>{const r=t[e],n=o[e];return r==null?n==null?0:-1:n==null?1:typeof r=="number"&&typeof n=="number"?r-n:typeof r=="string"&&typeof n=="string"?r.localeCompare(n):0}}function Eg(e,{dataRelatedColsRef:t,filteredDataRef:o}){const r=[];t.value.forEach(p=>{var h;p.sorter!==void 0&&v(r,{columnKey:p.key,sorter:p.sorter,order:(h=p.defaultSortOrder)!==null&&h!==void 0?h:!1})});const n=O(r),i=C(()=>{const p=t.value.filter(b=>b.type!=="selection"&&b.sorter!==void 0&&(b.sortOrder==="ascend"||b.sortOrder==="descend"||b.sortOrder===!1)),h=p.filter(b=>b.sortOrder!==!1);if(h.length)return h.map(b=>({columnKey:b.key,order:b.sortOrder,sorter:b.sorter}));if(p.length)return[];const{value:g}=n;return Array.isArray(g)?g:g?[g]:[]}),s=C(()=>{const p=i.value.slice().sort((h,g)=>{const b=Dn(h.sorter)||0;return(Dn(g.sorter)||0)-b});return p.length?o.value.slice().sort((g,b)=>{let y=0;return p.some(x=>{const{columnKey:F,sorter:P,order:$}=x,w=_g(P,F);return w&&$&&(y=w(g.rawNode,b.rawNode),y!==0)?(y=y*Ap($),!0):!1}),y}):o.value});function l(p){let h=i.value.slice();return p&&Dn(p.sorter)!==!1?(h=h.filter(g=>Dn(g.sorter)!==!1),v(h,p),h):p||null}function d(p){const h=l(p);c(h)}function c(p){const{"onUpdate:sorter":h,onUpdateSorter:g,onSorterChange:b}=e;h&&ae(h,p),g&&ae(g,p),b&&ae(b,p),n.value=p}function u(p,h="ascend"){if(!p)f();else{const g=t.value.find(y=>y.type!=="selection"&&y.type!=="expand"&&y.key===p);if(!g?.sorter)return;const b=g.sorter;d({columnKey:p,sorter:b,order:h})}}function f(){c(null)}function v(p,h){const g=p.findIndex(b=>h?.columnKey&&b.columnKey===h.columnKey);g!==void 0&&g>=0?p[g]=h:p.push(h)}return{clearSorter:f,sort:u,sortedDataRef:s,mergedSortStateRef:i,deriveNextSorter:d}}function Lg(e,{dataRelatedColsRef:t}){const o=C(()=>{const V=_=>{for(let I=0;I<_.length;++I){const j=_[I];if("children"in j)return V(j.children);if(j.type==="selection")return j}return null};return V(e.columns)}),r=C(()=>{const{childrenKey:V}=e;return Uo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:_=>_[V],getDisabled:_=>{var I,j;return!!(!((j=(I=o.value)===null||I===void 0?void 0:I.disabled)===null||j===void 0)&&j.call(I,_))}})}),n=tt(()=>{const{columns:V}=e,{length:_}=V;let I=null;for(let j=0;j<_;++j){const J=V[j];if(!J.type&&I===null&&(I=j),"tree"in J&&J.tree)return j}return I||0}),i=O({}),{pagination:s}=e,l=O(s&&s.defaultPage||1),d=O(md(s)),c=C(()=>{const V=t.value.filter(j=>j.filterOptionValues!==void 0||j.filterOptionValue!==void 0),_={};return V.forEach(j=>{var J;j.type==="selection"||j.type==="expand"||(j.filterOptionValues===void 0?_[j.key]=(J=j.filterOptionValue)!==null&&J!==void 0?J:null:_[j.key]=j.filterOptionValues)}),Object.assign(Il(i.value),_)}),u=C(()=>{const V=c.value,{columns:_}=e;function I(se){return(xe,Ie)=>!!~String(Ie[se]).indexOf(String(xe))}const{value:{treeNodes:j}}=r,J=[];return _.forEach(se=>{se.type==="selection"||se.type==="expand"||"children"in se||J.push([se.key,se])}),j?j.filter(se=>{const{rawNode:xe}=se;for(const[Ie,H]of J){let Pe=V[Ie];if(Pe==null||(Array.isArray(Pe)||(Pe=[Pe]),!Pe.length))continue;const He=H.filter==="default"?I(Ie):H.filter;if(H&&typeof He=="function")if(H.filterMode==="and"){if(Pe.some(_e=>!He(_e,xe)))return!1}else{if(Pe.some(_e=>He(_e,xe)))continue;return!1}}return!0}):[]}),{sortedDataRef:f,deriveNextSorter:v,mergedSortStateRef:p,sort:h,clearSorter:g}=Eg(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(V=>{var _;if(V.filter){const I=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=I||[]:I!==void 0?i.value[V.key]=I===null?[]:I:i.value[V.key]=(_=V.defaultFilterOptionValue)!==null&&_!==void 0?_:null}});const b=C(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),y=C(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),x=$t(b,l),F=$t(y,d),P=tt(()=>{const V=x.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(u.value.length/F.value),V))}),$=C(()=>{const{pagination:V}=e;if(V){const{pageCount:_}=V;if(_!==void 0)return _}}),w=C(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return f.value;const V=F.value,_=(P.value-1)*V;return f.value.slice(_,_+V)}),k=C(()=>w.value.map(V=>V.rawNode));function D(V){const{pagination:_}=e;if(_){const{onChange:I,"onUpdate:page":j,onUpdatePage:J}=_;I&&ae(I,V),J&&ae(J,V),j&&ae(j,V),B(V)}}function T(V){const{pagination:_}=e;if(_){const{onPageSizeChange:I,"onUpdate:pageSize":j,onUpdatePageSize:J}=_;I&&ae(I,V),J&&ae(J,V),j&&ae(j,V),E(V)}}const A=C(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:_}=V;if(_!==void 0)return _}return}return u.value.length}),N=C(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":D,"onUpdate:pageSize":T,page:P.value,pageSize:F.value,pageCount:A.value===void 0?$.value:void 0,itemCount:A.value}));function B(V){const{"onUpdate:page":_,onPageChange:I,onUpdatePage:j}=e;j&&ae(j,V),_&&ae(_,V),I&&ae(I,V),l.value=V}function E(V){const{"onUpdate:pageSize":_,onPageSizeChange:I,onUpdatePageSize:j}=e;I&&ae(I,V),j&&ae(j,V),_&&ae(_,V),d.value=V}function K(V,_){const{onUpdateFilters:I,"onUpdate:filters":j,onFiltersChange:J}=e;I&&ae(I,V,_),j&&ae(j,V,_),J&&ae(J,V,_),i.value=V}function L(V,_,I,j){var J;(J=e.onUnstableColumnResize)===null||J===void 0||J.call(e,V,_,I,j)}function te(V){B(V)}function U(){ie()}function ie(){be({})}function be(V){ce(V)}function ce(V){V?V&&(i.value=Il(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:P,mergedPaginationRef:N,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:c,mergedSortStateRef:p,hoverKeyRef:O(null),selectionColumnRef:o,childTriggerColIndexRef:n,doUpdateFilters:K,deriveNextSorter:v,doUpdatePageSize:E,doUpdatePage:B,onUnstableColumnResize:L,filter:ce,filters:be,clearFilter:U,clearFilters:ie,clearSorter:g,page:te,sort:h}}const wy=re({name:"DataTable",alias:["AdvancedTable"],props:Mp,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=Qe(e),s=jt("DataTable",i,r),l=C(()=>{const{bottomBordered:M}=e;return o.value?!1:M!==void 0?M:!0}),d=Re("DataTable","-data-table",Tg,Bp,e,r),c=O(null),u=O(null),{getResizableWidth:f,clearResizableWidth:v,doUpdateResizableWidth:p}=Dg(),{rowsRef:h,colsRef:g,dataRelatedColsRef:b,hasEllipsisRef:y}=Mg(e,f),{treeMateRef:x,mergedCurrentPageRef:F,paginatedDataRef:P,rawPaginatedDataRef:$,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:D,mergedFilterStateRef:T,mergedSortStateRef:A,childTriggerColIndexRef:N,doUpdatePage:B,doUpdateFilters:E,onUnstableColumnResize:K,deriveNextSorter:L,filter:te,filters:U,clearFilter:ie,clearFilters:be,clearSorter:ce,page:V,sort:_}=Lg(e,{dataRelatedColsRef:b}),I=M=>{const{fileName:G="data.csv",keepOriginalData:ve=!1}=M||{},Fe=ve?e.data:$.value,Be=jp(e.columns,Fe,e.getCsvCell,e.getCsvHeader),W=new Blob([Be],{type:"text/csv;charset=utf-8"}),ge=URL.createObjectURL(W);rf(ge,G.endsWith(".csv")?G:`${G}.csv`),URL.revokeObjectURL(ge)},{doCheckAll:j,doUncheckAll:J,doCheck:se,doUncheck:xe,headerCheckboxDisabledRef:Ie,someRowsCheckedRef:H,allRowsCheckedRef:Pe,mergedCheckedRowKeySetRef:He,mergedInderminateRowKeySetRef:_e}=Ig(e,{selectionColumnRef:w,treeMateRef:x,paginatedDataRef:P}),{stickyExpandedRowsRef:Ge,mergedExpandedRowKeysRef:Xe,renderExpandRef:ct,expandableRef:ot,doUpdateExpandedRowKeys:Ce}=Bg(e,x),{handleTableBodyScroll:ee,handleTableHeaderScroll:ue,syncScrollState:q,setHeaderScrollLeft:Q,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:me,leftFixedColumnsRef:je,rightFixedColumnsRef:oe,fixedColumnLeftMapRef:Ue,fixedColumnRightMapRef:it}=Ag(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:F}),{localeRef:Pt}=$o("DataTable"),xt=C(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||y.value?"fixed":e.tableLayout);et(Do,{props:e,treeMateRef:x,renderExpandIconRef:fe(e,"renderExpandIcon"),loadingKeySetRef:O(new Set),slots:t,indentRef:fe(e,"indent"),childTriggerColIndexRef:N,bodyWidthRef:c,componentId:qo(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:C(()=>e.scrollX),rowsRef:h,colsRef:g,paginatedDataRef:P,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:we,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:me,leftFixedColumnsRef:je,rightFixedColumnsRef:oe,fixedColumnLeftMapRef:Ue,fixedColumnRightMapRef:it,mergedCurrentPageRef:F,someRowsCheckedRef:H,allRowsCheckedRef:Pe,mergedSortStateRef:A,mergedFilterStateRef:T,loadingRef:fe(e,"loading"),rowClassNameRef:fe(e,"rowClassName"),mergedCheckedRowKeySetRef:He,mergedExpandedRowKeysRef:Xe,mergedInderminateRowKeySetRef:_e,localeRef:Pt,expandableRef:ot,stickyExpandedRowsRef:Ge,rowKeyRef:fe(e,"rowKey"),renderExpandRef:ct,summaryRef:fe(e,"summary"),virtualScrollRef:fe(e,"virtualScroll"),virtualScrollXRef:fe(e,"virtualScrollX"),heightForRowRef:fe(e,"heightForRow"),minRowHeightRef:fe(e,"minRowHeight"),virtualScrollHeaderRef:fe(e,"virtualScrollHeader"),headerHeightRef:fe(e,"headerHeight"),rowPropsRef:fe(e,"rowProps"),stripedRef:fe(e,"striped"),checkOptionsRef:C(()=>{const{value:M}=w;return M?.options}),rawPaginatedDataRef:$,filterMenuCssVarsRef:C(()=>{const{self:{actionDividerColor:M,actionPadding:G,actionButtonMargin:ve}}=d.value;return{"--n-action-padding":G,"--n-action-button-margin":ve,"--n-action-divider-color":M}}),onLoadRef:fe(e,"onLoad"),mergedTableLayoutRef:xt,maxHeightRef:fe(e,"maxHeight"),minHeightRef:fe(e,"minHeight"),flexHeightRef:fe(e,"flexHeight"),headerCheckboxDisabledRef:Ie,paginationBehaviorOnFilterRef:fe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:fe(e,"summaryPlacement"),filterIconPopoverPropsRef:fe(e,"filterIconPopoverProps"),scrollbarPropsRef:fe(e,"scrollbarProps"),syncScrollState:q,doUpdatePage:B,doUpdateFilters:E,getResizableWidth:f,onUnstableColumnResize:K,clearResizableWidth:v,doUpdateResizableWidth:p,deriveNextSorter:L,doCheck:se,doUncheck:xe,doCheckAll:j,doUncheckAll:J,doUpdateExpandedRowKeys:Ce,handleTableHeaderScroll:ue,handleTableBodyScroll:ee,setHeaderScrollLeft:Q,renderCell:fe(e,"renderCell")});const pt={filter:te,filters:U,clearFilters:be,clearSorter:ce,page:V,sort:_,clearFilter:ie,downloadCsv:I,scrollTo:(M,G)=>{var ve;(ve=u.value)===null||ve===void 0||ve.scrollTo(M,G)}},ft=C(()=>{const{size:M}=e,{common:{cubicBezierEaseInOut:G},self:{borderColor:ve,tdColorHover:Fe,tdColorSorting:Be,tdColorSortingModal:W,tdColorSortingPopover:ge,thColorSorting:$e,thColorSortingModal:We,thColorSortingPopover:ht,thColor:rt,thColorHover:ne,tdColor:ze,tdTextColor:Le,thTextColor:Je,thFontWeight:yt,thButtonColorHover:bt,thIconColor:Ct,thIconColorActive:X,filterSize:ye,borderRadius:Ke,lineHeight:Y,tdColorModal:he,thColorModal:ke,borderColorModal:Ae,thColorHoverModal:Ne,tdColorHoverModal:st,borderColorPopover:It,thColorPopover:Ot,tdColorPopover:Qt,tdColorHoverPopover:oo,thColorHoverPopover:Vt,paginationMargin:wt,emptyPadding:Z,boxShadowAfter:Te,boxShadowBefore:Oe,sorterSize:ut,resizableContainerSize:Wt,resizableSize:St,loadingColor:wo,loadingSize:Fo,opacityLoading:go,tdColorStriped:Kr,tdColorStripedModal:qr,tdColorStripedPopover:Yr,[le("fontSize",M)]:Gr,[le("thPadding",M)]:Xr,[le("tdPadding",M)]:Zr}}=d.value;return{"--n-font-size":Gr,"--n-th-padding":Xr,"--n-td-padding":Zr,"--n-bezier":G,"--n-border-radius":Ke,"--n-line-height":Y,"--n-border-color":ve,"--n-border-color-modal":Ae,"--n-border-color-popover":It,"--n-th-color":rt,"--n-th-color-hover":ne,"--n-th-color-modal":ke,"--n-th-color-hover-modal":Ne,"--n-th-color-popover":Ot,"--n-th-color-hover-popover":Vt,"--n-td-color":ze,"--n-td-color-hover":Fe,"--n-td-color-modal":he,"--n-td-color-hover-modal":st,"--n-td-color-popover":Qt,"--n-td-color-hover-popover":oo,"--n-th-text-color":Je,"--n-td-text-color":Le,"--n-th-font-weight":yt,"--n-th-button-color-hover":bt,"--n-th-icon-color":Ct,"--n-th-icon-color-active":X,"--n-filter-size":ye,"--n-pagination-margin":wt,"--n-empty-padding":Z,"--n-box-shadow-before":Oe,"--n-box-shadow-after":Te,"--n-sorter-size":ut,"--n-resizable-container-size":Wt,"--n-resizable-size":St,"--n-loading-size":Fo,"--n-loading-color":wo,"--n-opacity-loading":go,"--n-td-color-striped":Kr,"--n-td-color-striped-modal":qr,"--n-td-color-striped-popover":Yr,"--n-td-color-sorting":Be,"--n-td-color-sorting-modal":W,"--n-td-color-sorting-popover":ge,"--n-th-color-sorting":$e,"--n-th-color-sorting-modal":We,"--n-th-color-sorting-popover":ht}}),Me=n?lt("data-table",C(()=>e.size[0]),ft,e):void 0,Ze=C(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const M=D.value,{pageCount:G}=M;return G!==void 0?G>1:M.itemCount&&M.pageSize&&M.itemCount>M.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:r,rtlEnabled:s,mergedTheme:d,paginatedData:P,mergedBordered:o,mergedBottomBordered:l,mergedPagination:D,mergedShowPagination:Ze,cssVars:n?void 0:ft,themeClass:Me?.themeClass,onRender:Me?.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:r,spinProps:n}=this;return o?.(),a("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},a("div",{class:`${e}-data-table-wrapper`},a($g,{ref:"mainTableInstRef"})),this.mergedShowPagination?a("div",{class:`${e}-data-table__pagination`},a(Pp,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,a(qt,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?a("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[a(Zo,Object.assign({clsPrefix:e,strokeWidth:20},n))])):null}))}}),Ng={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Ud(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:s,boxShadow2:l,borderRadius:d,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Ng),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:s,itemBorderRadius:d,borderRadius:d,iconColor:c,iconColorDisabled:u})}const Kd={name:"TimePicker",common:dt,peers:{Scrollbar:To,Button:vr,Input:hr},self:Ud},qd={name:"TimePicker",common:De,peers:{Scrollbar:no,Button:po,Input:yo},self:Ud},jg={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Yd(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:s,borderRadiusSmall:l,iconColor:d,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:v,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},jg),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:s,itemColorIncluded:Se(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:d,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:v,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:d,iconColorDisabled:c})}const Vg={name:"DatePicker",common:dt,peers:{Input:hr,Button:vr,TimePicker:Kd,Scrollbar:To},self:Yd},Wg={name:"DatePicker",common:De,peers:{Input:yo,Button:po,TimePicker:qd,Scrollbar:no},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=Yd(e);return n.itemColorDisabled=qe(t,o),n.itemColorIncluded=Se(r,{alpha:.15}),n.itemColorHover=qe(t,o),n}},aa="n-date-picker",Sr=40,Ug="HH:mm:ss",Gd={active:Boolean,dateFormat:String,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,required:!0},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},timePickerFormat:{type:String,value:Ug},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array,Function],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onKeydown:Function,actions:Array,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Xd(e){const{dateLocaleRef:t,timePickerSizeRef:o,timePickerPropsRef:r,localeRef:n,mergedClsPrefixRef:i,mergedThemeRef:s}=Ee(aa),l=C(()=>({locale:t.value.locale})),d=O(null),c=vi();function u(){const{onClear:B}=e;B&&B()}function f(){const{onConfirm:B,value:E}=e;B&&B(E)}function v(B,E){const{onUpdateValue:K}=e;K(B,E)}function p(B=!1){const{onClose:E}=e;E&&E(B)}function h(){const{onTabOut:B}=e;B&&B()}function g(){v(null,!0),p(!0),u()}function b(){h()}function y(){(e.active||e.panel)&&Tt(()=>{const{value:B}=d;if(!B)return;const E=B.querySelectorAll("[data-n-date]");E.forEach(K=>{K.classList.add("transition-disabled")}),B.offsetWidth,E.forEach(K=>{K.classList.remove("transition-disabled")})})}function x(B){B.key==="Tab"&&B.target===d.value&&c.shift&&(B.preventDefault(),h())}function F(B){const{value:E}=d;c.tab&&B.target===E&&E?.contains(B.relatedTarget)&&h()}let P=null,$=!1;function w(){P=e.value,$=!0}function k(){$=!1}function D(){$&&(v(P,!1),$=!1)}function T(B){return typeof B=="function"?B():B}const A=O(!1);function N(){A.value=!A.value}return{mergedTheme:s,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:o,timePickerProps:r,selfRef:d,locale:n,doConfirm:f,doClose:p,doUpdateValue:v,doTabOut:h,handleClearClick:g,handleFocusDetectorFocus:b,disableTransitionOneTick:y,handlePanelKeyDown:x,handlePanelFocus:F,cachePendingValue:w,clearPendingValue:k,restorePendingValue:D,getShortcutValue:T,handleShortcutMouseleave:D,showMonthYearPanel:A,handleOpenQuickSelectMonthPanel:N}}const Ai=Object.assign(Object.assign({},Gd),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function _i(e,t){var o;const r=Xd(e),{isValueInvalidRef:n,isDateDisabledRef:i,isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:c,isMinuteDisabledRef:u,isSecondDisabledRef:f,localeRef:v,firstDayOfWeekRef:p,datePickerSlots:h,yearFormatRef:g,monthFormatRef:b,quarterFormatRef:y,yearRangeRef:x}=Ee(aa),F={isValueInvalid:n,isDateDisabled:i,isDateInvalid:s,isTimeInvalid:l,isDateTimeInvalid:d,isHourDisabled:c,isMinuteDisabled:u,isSecondDisabled:f},P=C(()=>e.dateFormat||v.value.dateFormat),$=C(()=>e.calendarDayFormat||v.value.dayFormat),w=O(e.value===null||Array.isArray(e.value)?"":Bt(e.value,P.value)),k=O(e.value===null||Array.isArray(e.value)?(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Date.now():e.value),D=O(null),T=O(null),A=O(null),N=O(Date.now()),B=C(()=>{var oe;return Ga(k.value,e.value,N.value,(oe=p.value)!==null&&oe!==void 0?oe:v.value.firstDayOfWeek,!1,t==="week")}),E=C(()=>{const{value:oe}=e;return Xa(k.value,Array.isArray(oe)?null:oe,N.value,{monthFormat:b.value})}),K=C(()=>{const{value:oe}=e;return Qa(Array.isArray(oe)?null:oe,N.value,{yearFormat:g.value},x)}),L=C(()=>{const{value:oe}=e;return Za(k.value,Array.isArray(oe)?null:oe,N.value,{quarterFormat:y.value})}),te=C(()=>B.value.slice(0,7).map(oe=>{const{ts:Ue}=oe;return Bt(Ue,$.value,r.dateFnsOptions.value)})),U=C(()=>Bt(k.value,e.calendarHeaderMonthFormat||v.value.monthFormat,r.dateFnsOptions.value)),ie=C(()=>Bt(k.value,e.calendarHeaderYearFormat||v.value.yearFormat,r.dateFnsOptions.value)),be=C(()=>{var oe;return(oe=e.calendarHeaderMonthBeforeYear)!==null&&oe!==void 0?oe:v.value.monthBeforeYear});gt(k,(oe,Ue)=>{(t==="date"||t==="datetime")&&(fn(oe,Ue)||r.disableTransitionOneTick())}),gt(C(()=>e.value),oe=>{oe!==null&&!Array.isArray(oe)?(w.value=Bt(oe,P.value,r.dateFnsOptions.value),k.value=oe):w.value=""});function ce(oe){var Ue;if(t==="datetime")return Ve(li(oe));if(t==="month")return Ve(jo(oe));if(t==="year")return Ve(Qn(oe));if(t==="quarter")return Ve(Ma(oe));if(t==="week"){const it=(((Ue=p.value)!==null&&Ue!==void 0?Ue:v.value.firstDayOfWeek)+1)%7;return Ve(Tu(oe,{weekStartsOn:it}))}return Ve(Jl(oe))}function V(oe,Ue){const{isDateDisabled:{value:it}}=F;return it?it(oe,Ue):!1}function _(oe){const Ue=fo(oe,P.value,new Date,r.dateFnsOptions.value);if(Oo(Ue)){if(e.value===null)r.doUpdateValue(Ve(ce(Date.now())),e.panel);else if(!Array.isArray(e.value)){const it=eo(e.value,{year:Ht(Ue),month:Mt(Ue),date:ko(Ue)});r.doUpdateValue(Ve(ce(Ve(it))),e.panel)}}else w.value=oe}function I(){const oe=fo(w.value,P.value,new Date,r.dateFnsOptions.value);if(Oo(oe)){if(e.value===null)r.doUpdateValue(Ve(ce(Date.now())),!1);else if(!Array.isArray(e.value)){const Ue=eo(e.value,{year:Ht(oe),month:Mt(oe),date:ko(oe)});r.doUpdateValue(Ve(ce(Ve(Ue))),!1)}}else _e()}function j(){r.doUpdateValue(null,!0),w.value="",r.doClose(!0),r.handleClearClick()}function J(){r.doUpdateValue(Ve(ce(Date.now())),!0);const oe=Date.now();k.value=oe,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),me(oe))}const se=O(null);function xe(oe){oe.type==="date"&&t==="week"&&(se.value=ce(Ve(oe.ts)))}function Ie(oe){return oe.type==="date"&&t==="week"?ce(Ve(oe.ts))===se.value:!1}function H(oe){if(V(oe.ts,oe.type==="date"?{type:"date",year:oe.dateObject.year,month:oe.dateObject.month,date:oe.dateObject.date}:oe.type==="month"?{type:"month",year:oe.dateObject.year,month:oe.dateObject.month}:oe.type==="year"?{type:"year",year:oe.dateObject.year}:{type:"quarter",year:oe.dateObject.year,quarter:oe.dateObject.quarter}))return;let Ue;if(e.value!==null&&!Array.isArray(e.value)?Ue=e.value:Ue=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){let it;typeof e.defaultTime=="function"?it=pv(oe.ts,e.defaultTime):it=_r(e.defaultTime),it&&(Ue=Ve(eo(Ue,it)))}switch(Ue=Ve(oe.type==="quarter"&&oe.dateObject.quarter?$u(Ba(Ue,oe.dateObject.year),oe.dateObject.quarter):eo(Ue,oe.dateObject)),r.doUpdateValue(ce(Ue),e.panel||t==="date"||t==="week"||t==="year"),t){case"date":case"week":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),me(Ue);break;case"quarter":r.disableTransitionOneTick(),me(Ue);break}}function Pe(oe,Ue){let it;e.value!==null&&!Array.isArray(e.value)?it=e.value:it=Date.now(),it=Ve(oe.type==="month"?Pu(it,oe.dateObject.month):Ba(it,oe.dateObject.year)),Ue(it),me(it)}function He(oe){k.value=oe}function _e(oe){if(e.value===null||Array.isArray(e.value)){w.value="";return}oe===void 0&&(oe=e.value),w.value=Bt(oe,P.value,r.dateFnsOptions.value)}function Ge(){F.isDateInvalid.value||F.isTimeInvalid.value||(r.doConfirm(),Xe())}function Xe(){e.active&&r.doClose()}function ct(){var oe;k.value=Ve(Oa(k.value,1)),(oe=e.onNextYear)===null||oe===void 0||oe.call(e)}function ot(){var oe;k.value=Ve(Oa(k.value,-1)),(oe=e.onPrevYear)===null||oe===void 0||oe.call(e)}function Ce(){var oe;k.value=Ve(ao(k.value,1)),(oe=e.onNextMonth)===null||oe===void 0||oe.call(e)}function ee(){var oe;k.value=Ve(ao(k.value,-1)),(oe=e.onPrevMonth)===null||oe===void 0||oe.call(e)}function ue(){const{value:oe}=D;return oe?.listElRef||null}function q(){const{value:oe}=D;return oe?.itemsElRef||null}function Q(){var oe;(oe=T.value)===null||oe===void 0||oe.sync()}function pe(oe){oe!==null&&r.doUpdateValue(oe,e.panel)}function we(oe){r.cachePendingValue();const Ue=r.getShortcutValue(oe);typeof Ue=="number"&&r.doUpdateValue(Ue,!1)}function de(oe){const Ue=r.getShortcutValue(oe);typeof Ue=="number"&&(r.doUpdateValue(Ue,e.panel),r.clearPendingValue(),Ge())}function me(oe){const{value:Ue}=e;if(A.value){const it=oe===void 0?Ue===null?Mt(Date.now()):Mt(Ue):Mt(oe);A.value.scrollTo({top:it*Sr})}if(D.value){const it=(oe===void 0?Ue===null?Ht(Date.now()):Ht(Ue):Ht(oe))-x.value[0];D.value.scrollTo({top:it*Sr})}}const je={monthScrollbarRef:A,yearScrollbarRef:T,yearVlRef:D};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:B,monthArray:E,yearArray:K,quarterArray:L,calendarYear:ie,calendarMonth:U,weekdays:te,calendarMonthBeforeYear:be,mergedIsDateDisabled:V,nextYear:ct,prevYear:ot,nextMonth:Ce,prevMonth:ee,handleNowClick:J,handleConfirmClick:Ge,handleSingleShortcutMouseenter:we,handleSingleShortcutClick:de},F),r),je),{handleDateClick:H,handleDateInputBlur:I,handleDateInput:_,handleDateMouseEnter:xe,isWeekHovered:Ie,handleTimePickerChange:pe,clearSelectedDateTime:j,virtualListContainer:ue,virtualListContent:q,handleVirtualListScroll:Q,timePickerSize:r.timePickerSize,dateInputValue:w,datePickerSlots:h,handleQuickMonthClick:Pe,justifyColumnsScrollState:me,calendarValue:k,onUpdateCalendarValue:He})}const Zd=re({name:"MonthPanel",props:Object.assign(Object.assign({},Ai),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=_i(e,e.type),{dateLocaleRef:o}=$o("DatePicker"),r=s=>{switch(s.type){case"year":return Js(s.dateObject.year,s.yearFormat,o.value.locale);case"month":return Qs(s.dateObject.month,s.monthFormat,o.value.locale);case"quarter":return ed(s.dateObject.quarter,s.quarterFormat,o.value.locale)}},{useAsQuickJump:n}=e,i=(s,l,d)=>{const{mergedIsDateDisabled:c,handleDateClick:u,handleQuickMonthClick:f}=t;return a("div",{"data-n-date":!0,key:l,class:[`${d}-date-panel-month-calendar__picker-col-item`,s.isCurrent&&`${d}-date-panel-month-calendar__picker-col-item--current`,s.selected&&`${d}-date-panel-month-calendar__picker-col-item--selected`,!n&&c(s.ts,s.type==="year"?{type:"year",year:s.dateObject.year}:s.type==="month"?{type:"month",year:s.dateObject.year,month:s.dateObject.month}:s.type==="quarter"?{type:"month",year:s.dateObject.year,month:s.dateObject.quarter}:null)&&`${d}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{n?f(s,v=>{e.onUpdateValue(v,!1)}):u(s)}},r(s))};return to(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:i})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:o,actions:r,renderItem:n,type:i,onRender:s}=this;return s?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a("div",{class:`${e}-date-panel-month-calendar`},a(Ut,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(wr,{ref:"yearVlRef",items:this.yearArray,itemSize:Sr,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:d})=>n(l,d,e)})}),i==="month"||i==="quarter"?a("div",{class:`${e}-date-panel-month-calendar__picker-col`},a(Ut,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,d)=>n(l,d,e)),a("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),mt(this.datePickerSlots.footer,l=>l?a("div",{class:`${e}-date-panel-footer`},l):null),r?.length||o?a("div",{class:`${e}-date-panel-actions`},a("div",{class:`${e}-date-panel-actions__prefix`},o&&Object.keys(o).map(l=>{const d=o[l];return Array.isArray(d)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),a("div",{class:`${e}-date-panel-actions__suffix`},r?.includes("clear")?so(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r?.includes("now")?so(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r?.includes("confirm")?so(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),Nr=re({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=O(null),t=O(null),o=O(!1);function r(i){var s;o.value&&!(!((s=e.value)===null||s===void 0)&&s.contains(Ko(i)))&&(o.value=!1)}function n(){o.value=!o.value}return{show:o,triggerRef:e,monthPanelRef:t,handleHeaderClick:n,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return a("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},a(Rr,null,{default:()=>[a(zr,null,{default:()=>a("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth,this.monthYearSeparator,this.calendarYear]:[this.calendarYear,this.monthYearSeparator,this.calendarMonth])}),a(kr,{show:this.show,teleportDisabled:!0},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?uo(a(Zd,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Lo,e,void 0,{capture:!0}]]):null})})]}))}}),Kg=re({name:"DatePanel",props:Object.assign(Object.assign({},Ai),{type:{type:String,required:!0}}),setup(e){return _i(e,e.type)},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,onRender:s,datePickerSlots:l,type:d}=this;return s?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--${d}`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a("div",{class:`${r}-date-panel-calendar`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[a(ar,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[a(nr,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[a(lr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[a(ir,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel-dates`},this.dateArray.map((c,u)=>a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts,{type:"date",year:c.dateObject.year,month:c.dateObject.month,date:c.dateObject.date}),[`${r}-date-panel-date--week-hovered`]:this.isWeekHovered(c),[`${r}-date-panel-date--week-selected`]:c.inSelectedWeek}],onClick:()=>{this.handleDateClick(c)},onMouseenter:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?so(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?so(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),Hi=Object.assign(Object.assign({},Gd),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function Ei(e,t){var o,r;const{isDateDisabledRef:n,isStartHourDisabledRef:i,isEndHourDisabledRef:s,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:d,isStartSecondDisabledRef:c,isEndSecondDisabledRef:u,isStartDateInvalidRef:f,isEndDateInvalidRef:v,isStartTimeInvalidRef:p,isEndTimeInvalidRef:h,isStartValueInvalidRef:g,isEndValueInvalidRef:b,isRangeInvalidRef:y,localeRef:x,rangesRef:F,closeOnSelectRef:P,updateValueOnCloseRef:$,firstDayOfWeekRef:w,datePickerSlots:k,monthFormatRef:D,yearFormatRef:T,quarterFormatRef:A,yearRangeRef:N}=Ee(aa),B={isDateDisabled:n,isStartHourDisabled:i,isEndHourDisabled:s,isStartMinuteDisabled:l,isEndMinuteDisabled:d,isStartSecondDisabled:c,isEndSecondDisabled:u,isStartDateInvalid:f,isEndDateInvalid:v,isStartTimeInvalid:p,isEndTimeInvalid:h,isStartValueInvalid:g,isEndValueInvalid:b,isRangeInvalid:y},E=Xd(e),K=O(null),L=O(null),te=O(null),U=O(null),ie=O(null),be=O(null),ce=O(null),V=O(null),{value:_}=e,I=(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Array.isArray(_)&&typeof _[0]=="number"?_[0]:Date.now(),j=O(I),J=O((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(_)&&typeof _[1]=="number"?_[1]:Ve(ao(I,1)));pt(!0);const se=O(Date.now()),xe=O(!1),Ie=O(0),H=C(()=>e.dateFormat||x.value.dateFormat),Pe=C(()=>e.calendarDayFormat||x.value.dayFormat),He=O(Array.isArray(_)?Bt(_[0],H.value,E.dateFnsOptions.value):""),_e=O(Array.isArray(_)?Bt(_[1],H.value,E.dateFnsOptions.value):""),Ge=C(()=>xe.value?"end":"start"),Xe=C(()=>{var Z;return Ga(j.value,e.value,se.value,(Z=w.value)!==null&&Z!==void 0?Z:x.value.firstDayOfWeek)}),ct=C(()=>{var Z;return Ga(J.value,e.value,se.value,(Z=w.value)!==null&&Z!==void 0?Z:x.value.firstDayOfWeek)}),ot=C(()=>Xe.value.slice(0,7).map(Z=>{const{ts:Te}=Z;return Bt(Te,Pe.value,E.dateFnsOptions.value)})),Ce=C(()=>Bt(j.value,e.calendarHeaderMonthFormat||x.value.monthFormat,E.dateFnsOptions.value)),ee=C(()=>Bt(J.value,e.calendarHeaderMonthFormat||x.value.monthFormat,E.dateFnsOptions.value)),ue=C(()=>Bt(j.value,e.calendarHeaderYearFormat||x.value.yearFormat,E.dateFnsOptions.value)),q=C(()=>Bt(J.value,e.calendarHeaderYearFormat||x.value.yearFormat,E.dateFnsOptions.value)),Q=C(()=>{const{value:Z}=e;return Array.isArray(Z)?Z[0]:null}),pe=C(()=>{const{value:Z}=e;return Array.isArray(Z)?Z[1]:null}),we=C(()=>{const{shortcuts:Z}=e;return Z||F.value}),de=C(()=>Qa(Br(e.value,"start"),se.value,{yearFormat:T.value},N)),me=C(()=>Qa(Br(e.value,"end"),se.value,{yearFormat:T.value},N)),je=C(()=>{const Z=Br(e.value,"start");return Za(Z??Date.now(),Z,se.value,{quarterFormat:A.value})}),oe=C(()=>{const Z=Br(e.value,"end");return Za(Z??Date.now(),Z,se.value,{quarterFormat:A.value})}),Ue=C(()=>{const Z=Br(e.value,"start");return Xa(Z??Date.now(),Z,se.value,{monthFormat:D.value})}),it=C(()=>{const Z=Br(e.value,"end");return Xa(Z??Date.now(),Z,se.value,{monthFormat:D.value})}),Pt=C(()=>{var Z;return(Z=e.calendarHeaderMonthBeforeYear)!==null&&Z!==void 0?Z:x.value.monthBeforeYear});gt(C(()=>e.value),Z=>{if(Z!==null&&Array.isArray(Z)){const[Te,Oe]=Z;He.value=Bt(Te,H.value,E.dateFnsOptions.value),_e.value=Bt(Oe,H.value,E.dateFnsOptions.value),xe.value||We(Z)}else He.value="",_e.value=""});function xt(Z,Te){(t==="daterange"||t==="datetimerange")&&(Ht(Z)!==Ht(Te)||Mt(Z)!==Mt(Te))&&E.disableTransitionOneTick()}gt(j,xt),gt(J,xt);function pt(Z){const Te=jo(j.value),Oe=jo(J.value);(e.bindCalendarMonths||Te>=Oe)&&(Z?J.value=Ve(ao(Te,1)):j.value=Ve(ao(Oe,-1)))}function ft(){j.value=Ve(ao(j.value,12)),pt(!0)}function Me(){j.value=Ve(ao(j.value,-12)),pt(!0)}function Ze(){j.value=Ve(ao(j.value,1)),pt(!0)}function M(){j.value=Ve(ao(j.value,-1)),pt(!0)}function G(){J.value=Ve(ao(J.value,12)),pt(!1)}function ve(){J.value=Ve(ao(J.value,-12)),pt(!1)}function Fe(){J.value=Ve(ao(J.value,1)),pt(!1)}function Be(){J.value=Ve(ao(J.value,-1)),pt(!1)}function W(Z){j.value=Z,pt(!0)}function ge(Z){J.value=Z,pt(!1)}function $e(Z){const Te=n.value;if(!Te)return!1;if(!Array.isArray(e.value)||Ge.value==="start")return Te(Z,"start",null);{const{value:Oe}=Ie;return Z=Ie.value?yt(Ie.value,Z.ts,"wipPreview"):yt(Z.ts,Ie.value,"wipPreview")}}function ne(){y.value||(E.doConfirm(),ze())}function ze(){xe.value=!1,e.active&&E.doClose()}function Le(Z){typeof Z!="number"&&(Z=Ve(Z)),e.value===null?E.doUpdateValue([Z,Z],e.panel):Array.isArray(e.value)&&E.doUpdateValue([Z,Math.max(e.value[1],Z)],e.panel)}function Je(Z){typeof Z!="number"&&(Z=Ve(Z)),e.value===null?E.doUpdateValue([Z,Z],e.panel):Array.isArray(e.value)&&E.doUpdateValue([Math.min(e.value[0],Z),Z],e.panel)}function yt(Z,Te,Oe){if(typeof Z!="number"&&(Z=Ve(Z)),Oe!=="shortcutPreview"&&Oe!=="shortcutDone"){let ut,Wt;if(t==="datetimerange"){const{defaultTime:St}=e;typeof St=="function"?(ut=kl(Z,St,"start",[Z,Te]),Wt=kl(Te,St,"end",[Z,Te])):Array.isArray(St)?(ut=_r(St[0]),Wt=_r(St[1])):(ut=_r(St),Wt=ut)}ut&&(Z=Ve(eo(Z,ut))),Wt&&(Te=Ve(eo(Te,Wt)))}E.doUpdateValue([Z,Te],e.panel&&(Oe==="done"||Oe==="shortcutDone"))}function bt(Z){return t==="datetimerange"?Ve(li(Z)):t==="monthrange"?Ve(jo(Z)):Ve(Jl(Z))}function Ct(Z){const Te=fo(Z,H.value,new Date,E.dateFnsOptions.value);if(Oo(Te))if(e.value){if(Array.isArray(e.value)){const Oe=eo(e.value[0],{year:Ht(Te),month:Mt(Te),date:ko(Te)});Le(bt(Ve(Oe)))}}else{const Oe=eo(new Date,{year:Ht(Te),month:Mt(Te),date:ko(Te)});Le(bt(Ve(Oe)))}else He.value=Z}function X(Z){const Te=fo(Z,H.value,new Date,E.dateFnsOptions.value);if(Oo(Te)){if(e.value===null){const Oe=eo(new Date,{year:Ht(Te),month:Mt(Te),date:ko(Te)});Je(bt(Ve(Oe)))}else if(Array.isArray(e.value)){const Oe=eo(e.value[1],{year:Ht(Te),month:Mt(Te),date:ko(Te)});Je(bt(Ve(Oe)))}}else _e.value=Z}function ye(){const Z=fo(He.value,H.value,new Date,E.dateFnsOptions.value),{value:Te}=e;if(Oo(Z)){if(Te===null){const Oe=eo(new Date,{year:Ht(Z),month:Mt(Z),date:ko(Z)});Le(bt(Ve(Oe)))}else if(Array.isArray(Te)){const Oe=eo(Te[0],{year:Ht(Z),month:Mt(Z),date:ko(Z)});Le(bt(Ve(Oe)))}}else Y()}function Ke(){const Z=fo(_e.value,H.value,new Date,E.dateFnsOptions.value),{value:Te}=e;if(Oo(Z)){if(Te===null){const Oe=eo(new Date,{year:Ht(Z),month:Mt(Z),date:ko(Z)});Je(bt(Ve(Oe)))}else if(Array.isArray(Te)){const Oe=eo(Te[1],{year:Ht(Z),month:Mt(Z),date:ko(Z)});Je(bt(Ve(Oe)))}}else Y()}function Y(Z){const{value:Te}=e;if(Te===null||!Array.isArray(Te)){He.value="",_e.value="";return}Z===void 0&&(Z=Te),He.value=Bt(Z[0],H.value,E.dateFnsOptions.value),_e.value=Bt(Z[1],H.value,E.dateFnsOptions.value)}function he(Z){Z!==null&&Le(Z)}function ke(Z){Z!==null&&Je(Z)}function Ae(Z){E.cachePendingValue();const Te=E.getShortcutValue(Z);Array.isArray(Te)&&yt(Te[0],Te[1],"shortcutPreview")}function Ne(Z){const Te=E.getShortcutValue(Z);Array.isArray(Te)&&(yt(Te[0],Te[1],"shortcutDone"),E.clearPendingValue(),ne())}function st(Z,Te){const Oe=Z===void 0?e.value:Z;if(Z===void 0||Te==="start"){if(ce.value){const ut=Array.isArray(Oe)?Mt(Oe[0]):Mt(Date.now());ce.value.scrollTo({debounce:!1,index:ut,elSize:Sr})}if(ie.value){const ut=(Array.isArray(Oe)?Ht(Oe[0]):Ht(Date.now()))-N.value[0];ie.value.scrollTo({index:ut,debounce:!1})}}if(Z===void 0||Te==="end"){if(V.value){const ut=Array.isArray(Oe)?Mt(Oe[1]):Mt(Date.now());V.value.scrollTo({debounce:!1,index:ut,elSize:Sr})}if(be.value){const ut=(Array.isArray(Oe)?Ht(Oe[1]):Ht(Date.now()))-N.value[0];be.value.scrollTo({index:ut,debounce:!1})}}}function It(Z,Te){const{value:Oe}=e,ut=!Array.isArray(Oe),Wt=Z.type==="year"&&t!=="yearrange"?ut?eo(Z.ts,{month:Mt(t==="quarterrange"?Ma(new Date):new Date)}).valueOf():eo(Z.ts,{month:Mt(t==="quarterrange"?Ma(Oe[Te==="start"?0:1]):Oe[Te==="start"?0:1])}).valueOf():Z.ts;if(ut){const Fo=bt(Wt),go=[Fo,Fo];E.doUpdateValue(go,e.panel),st(go,"start"),st(go,"end"),E.disableTransitionOneTick();return}const St=[Oe[0],Oe[1]];let wo=!1;switch(Te==="start"?(St[0]=bt(Wt),St[0]>St[1]&&(St[1]=St[0],wo=!0)):(St[1]=bt(Wt),St[0]>St[1]&&(St[0]=St[1],wo=!0)),E.doUpdateValue(St,e.panel),t){case"monthrange":case"quarterrange":E.disableTransitionOneTick(),wo?(st(St,"start"),st(St,"end")):st(St,Te);break;case"yearrange":E.disableTransitionOneTick(),st(St,"start"),st(St,"end")}}function Ot(){var Z;(Z=te.value)===null||Z===void 0||Z.sync()}function Qt(){var Z;(Z=U.value)===null||Z===void 0||Z.sync()}function oo(Z){var Te,Oe;return Z==="start"?((Te=ie.value)===null||Te===void 0?void 0:Te.listElRef)||null:((Oe=be.value)===null||Oe===void 0?void 0:Oe.listElRef)||null}function Vt(Z){var Te,Oe;return Z==="start"?((Te=ie.value)===null||Te===void 0?void 0:Te.itemsElRef)||null:((Oe=be.value)===null||Oe===void 0?void 0:Oe.itemsElRef)||null}const wt={startYearVlRef:ie,endYearVlRef:be,startMonthScrollbarRef:ce,endMonthScrollbarRef:V,startYearScrollbarRef:te,endYearScrollbarRef:U};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:K,endDatesElRef:L,handleDateClick:ht,handleColItemClick:It,handleDateMouseEnter:rt,handleConfirmClick:ne,startCalendarPrevYear:Me,startCalendarPrevMonth:M,startCalendarNextYear:ft,startCalendarNextMonth:Ze,endCalendarPrevYear:ve,endCalendarPrevMonth:Be,endCalendarNextMonth:Fe,endCalendarNextYear:G,mergedIsDateDisabled:$e,changeStartEndTime:yt,ranges:F,calendarMonthBeforeYear:Pt,startCalendarMonth:Ce,startCalendarYear:ue,endCalendarMonth:ee,endCalendarYear:q,weekdays:ot,startDateArray:Xe,endDateArray:ct,startYearArray:de,startMonthArray:Ue,startQuarterArray:je,endYearArray:me,endMonthArray:it,endQuarterArray:oe,isSelecting:xe,handleRangeShortcutMouseenter:Ae,handleRangeShortcutClick:Ne},E),B),wt),{startDateDisplayString:He,endDateInput:_e,timePickerSize:E.timePickerSize,startTimeValue:Q,endTimeValue:pe,datePickerSlots:k,shortcuts:we,startCalendarDateTime:j,endCalendarDateTime:J,justifyColumnsScrollState:st,handleFocusDetectorFocus:E.handleFocusDetectorFocus,handleStartTimePickerChange:he,handleEndTimePickerChange:ke,handleStartDateInput:Ct,handleStartDateInputBlur:ye,handleEndDateInput:X,handleEndDateInputBlur:Ke,handleStartYearVlScroll:Ot,handleEndYearVlScroll:Qt,virtualListContainer:oo,virtualListContent:Vt,onUpdateStartCalendarValue:W,onUpdateEndCalendarValue:ge})}const qg=re({name:"DateRangePanel",props:Hi,setup(e){return Ei(e,"daterange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,onRender:s,datePickerSlots:l}=this;return s?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[a(ar,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[a(nr,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[a(lr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[a(ir,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>a("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((d,c)=>a("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},a("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[a(ar,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[a(nr,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[a(lr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[a(ir,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>a("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((d,c)=>a("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},a("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(d=>{const c=i[d];return Array.isArray(c)||typeof c=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?so(l.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?so(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),Qd="n-time-picker",An=re({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:o}=this;return this.data.map(r=>{const{label:n,disabled:i,value:s}=r,l=e===s;return a("div",{key:n,"data-active":l?"":null,class:[`${o}-time-picker-col__item`,l&&`${o}-time-picker-col__item--active`,i&&`${o}-time-picker-col__item--disabled`],onClick:t&&!i?()=>{t(s)}:void 0},n)})}}),tn={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Sa(e){return`00${e}`.slice(-2)}function on(e,t,o){return Array.isArray(t)?(o==="am"?t.filter(r=>r<12):o==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Sa(r)):typeof t=="number"?o==="am"?e.filter(r=>{const n=Number(r);return n<12&&n%t===0}):o==="pm"?e.filter(r=>{const n=Number(r);return n>=12&&n%t===0}).map(r=>{const n=Number(r);return Sa(n===12?12:n-12)}):e.filter(r=>Number(r)%t===0):o==="am"?e.filter(r=>Number(r)<12):o==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Sa(r===12?12:r-12)):e}function _n(e,t,o){return o?typeof o=="number"?e%o===0:o.includes(e):!0}function Yg(e,t,o){const r=on(tn[t],o).map(Number);let n,i;for(let s=0;se){i=l;break}n=l}return n===void 0?(i||Go("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-n?n:i}function Gg(e){return er(e)<12?"am":"pm"}const Xg={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},Zg=re({name:"TimePickerPanel",props:Xg,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:o}=Ee(Qd),r=C(()=>{const{isHourDisabled:l,hours:d,use12Hours:c,amPmValue:u}=e;if(c){const f=u??Gg(Date.now());return on(tn.hours,d,f).map(v=>{const p=Number(v),h=f==="pm"&&p!==12?p+12:p;return{label:v,value:h,disabled:l?l(h):!1}})}else return on(tn.hours,d).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),n=C(()=>{const{isMinuteDisabled:l,minutes:d}=e;return on(tn.minutes,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=C(()=>{const{isSecondDisabled:l,seconds:d}=e;return on(tn.seconds,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),s=C(()=>{const{isHourDisabled:l}=e;let d=!0,c=!0;for(let u=0;u<12;++u)if(!l?.(u)){d=!1;break}for(let u=12;u<24;++u)if(!l?.(u)){c=!1;break}return[{label:"AM",value:"am",disabled:d},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:o,hours:r,minutes:n,seconds:i,amPm:s,hourScrollRef:O(null),minuteScrollRef:O(null),secondScrollRef:O(null),amPmScrollRef:O(null)}},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:i}=this;return a("div",{tabindex:0,class:`${n}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},a("div",{class:`${n}-time-picker-cols`},this.showHour?a("div",{class:[`${n}-time-picker-col`,this.isHourInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Ut,{ref:"hourScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(An,{clsPrefix:n,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showMinute?a("div",{class:[`${n}-time-picker-col`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${n}-time-picker-col--invalid`]},a(Ut,{ref:"minuteScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(An,{clsPrefix:n,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showSecond?a("div",{class:[`${n}-time-picker-col`,this.isSecondInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Ut,{ref:"secondScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(An,{clsPrefix:n,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null,this.use12Hours?a("div",{class:[`${n}-time-picker-col`,this.isAmPmInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},a(Ut,{ref:"amPmScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[a(An,{clsPrefix:n,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),a("div",{class:`${n}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?a("div",{class:`${n}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?a(At,{size:"tiny",theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?a(At,{size:"tiny",type:"primary",class:`${n}-time-picker-actions__confirm`,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,a(ur,{onFocus:this.onFocusDetectorFocus}))}}),Qg=S([m("time-picker",` + z-index: auto; + position: relative; + `,[m("time-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),R("disabled",[m("time-picker-icon",` + color: var(--n-icon-color-disabled-override); + `)])]),m("time-picker-panel",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + font-size: var(--n-item-font-size); + border-radius: var(--n-border-radius); + margin: 4px 0; + min-width: 104px; + overflow: hidden; + background-color: var(--n-panel-color); + box-shadow: var(--n-panel-box-shadow); + `,[fr(),m("time-picker-actions",` + padding: var(--n-panel-action-padding); + align-items: center; + display: flex; + justify-content: space-evenly; + `),m("time-picker-cols",` + height: calc(var(--n-item-height) * 6); + display: flex; + position: relative; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-panel-divider-color); + `),m("time-picker-col",` + flex-grow: 1; + min-width: var(--n-item-width); + height: calc(var(--n-item-height) * 6); + flex-direction: column; + transition: box-shadow .3s var(--n-bezier); + `,[R("transition-disabled",[z("item","transition: none;",[S("&::before","transition: none;")])]),z("padding",` + height: calc(var(--n-item-height) * 5); + `),S("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[z("item",[S("&::before","left: 4px;")])]),z("item",` + cursor: pointer; + height: var(--n-item-height); + display: flex; + align-items: center; + justify-content: center; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + background: #0000; + text-decoration-color: #0000; + color: var(--n-item-text-color); + z-index: 0; + box-sizing: border-box; + padding-top: 4px; + position: relative; + `,[S("&::before",` + content: ""; + transition: background-color .3s var(--n-bezier); + z-index: -1; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-item-border-radius); + `),at("disabled",[S("&:hover::before",` + background-color: var(--n-item-color-hover); + `)]),R("active",` + color: var(--n-item-text-color-active); + `,[S("&::before",` + background-color: var(--n-item-color-hover); + `)]),R("disabled",` + opacity: var(--n-item-opacity-disabled); + cursor: not-allowed; + `)]),R("invalid",[z("item",[R("active",` + text-decoration: line-through; + text-decoration-color: var(--n-item-text-color-active); + `)])])])])]);function ka(e,t){return e===void 0?!0:Array.isArray(e)?e.every(o=>o>=0&&o<=t):e>=0&&e<=t}const Jg=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>ka(e,23)},minutes:{type:[Number,Array],validator:e=>ka(e,59)},seconds:{type:[Number,Array],validator:e=>ka(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),oi=re({name:"TimePicker",props:Jg,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),{localeRef:i,dateLocaleRef:s}=$o("TimePicker"),l=vo(e),{mergedSizeRef:d,mergedDisabledRef:c,mergedStatusRef:u}=l,f=Re("TimePicker","-time-picker",Qg,Kd,e,o),v=vi(),p=O(null),h=O(null),g=C(()=>({locale:s.value.locale}));function b(ne){return ne===null?null:fo(ne,e.valueFormat||e.format,new Date,g.value).getTime()}const{defaultValue:y,defaultFormattedValue:x}=e,F=O(x!==void 0?b(x):y),P=C(()=>{const{formattedValue:ne}=e;if(ne!==void 0)return b(ne);const{value:ze}=e;return ze!==void 0?ze:F.value}),$=C(()=>{const{timeZone:ne}=e;return ne?(ze,Le,Je)=>Wu(ze,ne,Le,Je):(ze,Le,Je)=>Bt(ze,Le,Je)}),w=O("");gt(()=>e.timeZone,()=>{const ne=P.value;w.value=ne===null?"":$.value(ne,e.format,g.value)},{immediate:!0});const k=O(!1),D=fe(e,"show"),T=$t(D,k),A=O(P.value),N=O(!1),B=C(()=>i.value.clear),E=C(()=>i.value.now),K=C(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=C(()=>i.value.negativeText),te=C(()=>i.value.positiveText),U=C(()=>/H|h|K|k/.test(e.format)),ie=C(()=>e.format.includes("m")),be=C(()=>e.format.includes("s")),ce=C(()=>{const{value:ne}=P;return ne===null?null:Number($.value(ne,"HH",g.value))}),V=C(()=>{const{value:ne}=P;return ne===null?null:Number($.value(ne,"mm",g.value))}),_=C(()=>{const{value:ne}=P;return ne===null?null:Number($.value(ne,"ss",g.value))}),I=C(()=>{const{isHourDisabled:ne}=e;return ce.value===null?!1:_n(ce.value,"hours",e.hours)?ne?ne(ce.value):!1:!0}),j=C(()=>{const{value:ne}=V,{value:ze}=ce;if(ne===null||ze===null)return!1;if(!_n(ne,"minutes",e.minutes))return!0;const{isMinuteDisabled:Le}=e;return Le?Le(ne,ze):!1}),J=C(()=>{const{value:ne}=V,{value:ze}=ce,{value:Le}=_;if(Le===null||ne===null||ze===null)return!1;if(!_n(Le,"seconds",e.seconds))return!0;const{isSecondDisabled:Je}=e;return Je?Je(Le,ne,ze):!1}),se=C(()=>I.value||j.value||J.value),xe=C(()=>e.format.length+4),Ie=C(()=>{const{value:ne}=P;return ne===null?null:er(ne)<12?"am":"pm"});function H(ne,ze){const{onUpdateFormattedValue:Le,"onUpdate:formattedValue":Je}=e;Le&&ae(Le,ne,ze),Je&&ae(Je,ne,ze)}function Pe(ne){return ne===null?null:$.value(ne,e.valueFormat||e.format)}function He(ne){const{onUpdateValue:ze,"onUpdate:value":Le,onChange:Je}=e,{nTriggerFormChange:yt,nTriggerFormInput:bt}=l,Ct=Pe(ne);ze&&ae(ze,ne,Ct),Le&&ae(Le,ne,Ct),Je&&ae(Je,ne,Ct),H(Ct,ne),F.value=ne,yt(),bt()}function _e(ne){const{onFocus:ze}=e,{nTriggerFormFocus:Le}=l;ze&&ae(ze,ne),Le()}function Ge(ne){const{onBlur:ze}=e,{nTriggerFormBlur:Le}=l;ze&&ae(ze,ne),Le()}function Xe(){const{onConfirm:ne}=e;ne&&ae(ne,P.value,Pe(P.value))}function ct(ne){var ze;ne.stopPropagation(),He(null),je(null),(ze=e.onClear)===null||ze===void 0||ze.call(e)}function ot(){M({returnFocus:!0})}function Ce(){He(null),je(null),M({returnFocus:!0})}function ee(ne){ne.key==="Escape"&&T.value&&dn(ne)}function ue(ne){var ze;switch(ne.key){case"Escape":T.value&&(dn(ne),M({returnFocus:!0}));break;case"Tab":v.shift&&ne.target===((ze=h.value)===null||ze===void 0?void 0:ze.$el)&&(ne.preventDefault(),M({returnFocus:!0}));break}}function q(){N.value=!0,Tt(()=>{N.value=!1})}function Q(ne){c.value||Jt(ne,"clear")||T.value||Me()}function pe(ne){typeof ne!="string"&&(P.value===null?He(Ve(pr(Fu(new Date),ne))):He(Ve(pr(P.value,ne))))}function we(ne){typeof ne!="string"&&(P.value===null?He(Ve(da(Iu(new Date),ne))):He(Ve(da(P.value,ne))))}function de(ne){typeof ne!="string"&&(P.value===null?He(Ve(ca(li(new Date),ne))):He(Ve(ca(P.value,ne))))}function me(ne){const{value:ze}=P;if(ze===null){const Le=new Date,Je=er(Le);ne==="pm"&&Je<12?He(Ve(pr(Le,Je+12))):ne==="am"&&Je>=12&&He(Ve(pr(Le,Je-12))),He(Ve(Le))}else{const Le=er(ze);ne==="pm"&&Le<12?He(Ve(pr(ze,Le+12))):ne==="am"&&Le>=12&&He(Ve(pr(ze,Le-12)))}}function je(ne){ne===void 0&&(ne=P.value),ne===null?w.value="":w.value=$.value(ne,e.format,g.value)}function oe(ne){ft(ne)||_e(ne)}function Ue(ne){var ze;if(!ft(ne))if(T.value){const Le=(ze=h.value)===null||ze===void 0?void 0:ze.$el;Le?.contains(ne.relatedTarget)||(je(),Ge(ne),M({returnFocus:!1}))}else je(),Ge(ne)}function it(){c.value||T.value||Me()}function Pt(){c.value||(je(),M({returnFocus:!1}))}function xt(){if(!h.value)return;const{hourScrollRef:ne,minuteScrollRef:ze,secondScrollRef:Le,amPmScrollRef:Je}=h.value;[ne,ze,Le,Je].forEach(yt=>{var bt;if(!yt)return;const Ct=(bt=yt.contentRef)===null||bt===void 0?void 0:bt.querySelector("[data-active]");Ct&&yt.scrollTo({top:Ct.offsetTop})})}function pt(ne){k.value=ne;const{onUpdateShow:ze,"onUpdate:show":Le}=e;ze&&ae(ze,ne),Le&&ae(Le,ne)}function ft(ne){var ze,Le,Je;return!!(!((Le=(ze=p.value)===null||ze===void 0?void 0:ze.wrapperElRef)===null||Le===void 0)&&Le.contains(ne.relatedTarget)||!((Je=h.value)===null||Je===void 0)&&Je.$el.contains(ne.relatedTarget))}function Me(){A.value=P.value,pt(!0),Tt(xt)}function Ze(ne){var ze,Le;T.value&&!(!((Le=(ze=p.value)===null||ze===void 0?void 0:ze.wrapperElRef)===null||Le===void 0)&&Le.contains(Ko(ne)))&&M({returnFocus:!1})}function M({returnFocus:ne}){var ze;T.value&&(pt(!1),ne&&((ze=p.value)===null||ze===void 0||ze.focus()))}function G(ne){if(ne===""){He(null);return}const ze=fo(ne,e.format,new Date,g.value);if(w.value=ne,Oo(ze)){const{value:Le}=P;if(Le!==null){const Je=eo(Le,{hours:er(ze),minutes:Un(ze),seconds:Wn(ze),milliseconds:Bu(ze)});He(Ve(Je))}else He(Ve(ze))}}function ve(){He(A.value),pt(!1)}function Fe(){const ne=new Date,ze={hours:er,minutes:Un,seconds:Wn},[Le,Je,yt]=["hours","minutes","seconds"].map(Ct=>!e[Ct]||_n(ze[Ct](ne),Ct,e[Ct])?ze[Ct](ne):Yg(ze[Ct](ne),Ct,e[Ct])),bt=ca(da(pr(P.value?P.value:Ve(ne),Le),Je),yt);He(Ve(bt))}function Be(){je(),Xe(),M({returnFocus:!0})}function W(ne){ft(ne)||(je(),Ge(ne),M({returnFocus:!1}))}gt(P,ne=>{je(ne),q(),Tt(xt)}),gt(T,()=>{se.value&&He(A.value)}),et(Qd,{mergedThemeRef:f,mergedClsPrefixRef:o});const ge={focus:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.focus()},blur:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.blur()}},$e=C(()=>{const{common:{cubicBezierEaseInOut:ne},self:{iconColor:ze,iconColorDisabled:Le}}=f.value;return{"--n-icon-color-override":ze,"--n-icon-color-disabled-override":Le,"--n-bezier":ne}}),We=n?lt("time-picker-trigger",void 0,$e,e):void 0,ht=C(()=>{const{self:{panelColor:ne,itemTextColor:ze,itemTextColorActive:Le,itemColorHover:Je,panelDividerColor:yt,panelBoxShadow:bt,itemOpacityDisabled:Ct,borderRadius:X,itemFontSize:ye,itemWidth:Ke,itemHeight:Y,panelActionPadding:he,itemBorderRadius:ke},common:{cubicBezierEaseInOut:Ae}}=f.value;return{"--n-bezier":Ae,"--n-border-radius":X,"--n-item-color-hover":Je,"--n-item-font-size":ye,"--n-item-height":Y,"--n-item-opacity-disabled":Ct,"--n-item-text-color":ze,"--n-item-text-color-active":Le,"--n-item-width":Ke,"--n-panel-action-padding":he,"--n-panel-box-shadow":bt,"--n-panel-color":ne,"--n-panel-divider-color":yt,"--n-item-border-radius":ke}}),rt=n?lt("time-picker",void 0,ht,e):void 0;return{focus:ge.focus,blur:ge.blur,mergedStatus:u,mergedBordered:t,mergedClsPrefix:o,namespace:r,uncontrolledValue:F,mergedValue:P,isMounted:Yo(),inputInstRef:p,panelInstRef:h,adjustedTo:Zt(e),mergedShow:T,localizedClear:B,localizedNow:E,localizedPlaceholder:K,localizedNegativeText:L,localizedPositiveText:te,hourInFormat:U,minuteInFormat:ie,secondInFormat:be,mergedAttrSize:xe,displayTimeString:w,mergedSize:d,mergedDisabled:c,isValueInvalid:se,isHourInvalid:I,isMinuteInvalid:j,isSecondInvalid:J,transitionDisabled:N,hourValue:ce,minuteValue:V,secondValue:_,amPmValue:Ie,handleInputKeydown:ee,handleTimeInputFocus:oe,handleTimeInputBlur:Ue,handleNowClick:Fe,handleConfirmClick:Be,handleTimeInputUpdateValue:G,handleMenuFocusOut:W,handleCancelClick:ve,handleClickOutside:Ze,handleTimeInputActivate:it,handleTimeInputDeactivate:Pt,handleHourClick:pe,handleMinuteClick:we,handleSecondClick:de,handleAmPmClick:me,handleTimeInputClear:ct,handleFocusDetectorFocus:ot,handleMenuKeydown:ue,handleTriggerClick:Q,mergedTheme:f,triggerCssVars:n?void 0:$e,triggerThemeClass:We?.themeClass,triggerOnRender:We?.onRender,cssVars:n?void 0:ht,themeClass:rt?.themeClass,onRender:rt?.onRender,clearSelectedValue:Ce}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:o}=this;return o?.(),a("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},a(Rr,null,{default:()=>[a(zr,null,{default:()=>a(Mo,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>a(zt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():a($f,null)})}:null)}),a(kr,{teleportDisabled:this.adjustedTo===Zt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),uo(a(Zg,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Lo,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),em=re({name:"DateTimePanel",props:Ai,setup(e){return _i(e,"datetime")},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:i,shortcuts:s,timePickerProps:l,datePickerSlots:d,onRender:c}=this;return c?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--datetime`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{class:`${n}-date-panel-header`},a(Mo,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${n}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),a(oi,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),a("div",{class:`${n}-date-panel-calendar`},a("div",{class:`${n}-date-panel-month`},a("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(d["prev-year"],()=>[a(ar,null)])),a("div",{class:`${n}-date-panel-month__prev`,onClick:this.prevMonth},vt(d["prev-month"],()=>[a(nr,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:n,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a("div",{class:`${n}-date-panel-month__next`,onClick:this.nextMonth},vt(d["next-month"],()=>[a(lr,null)])),a("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.nextYear},vt(d["next-year"],()=>[a(ir,null)]))),a("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>a("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),a("div",{class:`${n}-date-panel-dates`},this.dateArray.map((u,f)=>a("div",{"data-n-date":!0,key:f,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(u.ts,{type:"date",year:u.dateObject.year,month:u.dateObject.month,date:u.dateObject.date})}],onClick:()=>{this.handleDateClick(u)}},a("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?a("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||s?a("div",{class:`${n}-date-panel-actions`},a("div",{class:`${n}-date-panel-actions__prefix`},s&&Object.keys(s).map(u=>{const f=s[u];return Array.isArray(f)?null:a(Ho,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u})})),a("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?so(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?so(d.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?so(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(At,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),tm=re({name:"DateTimeRangePanel",props:Hi,setup(e){return Ei(e,"datetimerange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,timePickerProps:s,onRender:l,datePickerSlots:d}=this;return l?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{class:`${r}-date-panel-header`},a(Mo,{value:this.startDateDisplayString,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),a(oi,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(s)?s[0]:s,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),a(Mo,{value:this.endDateInput,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),a(oi,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(s)?s[1]:s,{disabled:this.isSelecting,showIcon:!1,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(d["prev-year"],()=>[a(ar,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(d["prev-month"],()=>[a(nr,null)])),a(Nr,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(d["next-month"],()=>[a(lr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(d["next-year"],()=>[a(ir,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)}))),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month`},a("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(d["prev-year"],()=>[a(ar,null)])),a("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(d["prev-month"],()=>[a(nr,null)])),a(Nr,{monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(d["next-month"],()=>[a(lr,null)])),a("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(d["next-year"],()=>[a(ir,null)]))),a("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>a("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),a("div",{class:`${r}-date-panel__divider`}),a("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return a("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},a("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?a("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?a("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?so(d.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?so(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),om=re({name:"MonthRangePanel",props:Object.assign(Object.assign({},Hi),{type:{type:String,required:!0}}),setup(e){const t=Ei(e,e.type),{dateLocaleRef:o}=$o("DatePicker"),r=(n,i,s,l)=>{const{handleColItemClick:d}=t;return a("div",{"data-n-date":!0,key:i,class:[`${s}-date-panel-month-calendar__picker-col-item`,n.isCurrent&&`${s}-date-panel-month-calendar__picker-col-item--current`,n.selected&&`${s}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{d(n,l)}},n.type==="month"?Qs(n.dateObject.month,n.monthFormat,o.value.locale):n.type==="quarter"?ed(n.dateObject.quarter,n.quarterFormat,o.value.locale):Js(n.dateObject.year,n.yearFormat,o.value.locale))};return to(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:i,type:s,renderItem:l,onRender:d}=this;return d?.(),a("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},a("div",{class:`${r}-date-panel-month-calendar`},a(Ut,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(wr,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Sr,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"start")})}),s==="monthrange"||s==="quarterrange"?a("div",{class:`${r}-date-panel-month-calendar__picker-col`},a(Ut,{ref:"startMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,u)=>l(c,u,r,"start")),s==="monthrange"&&a("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),a("div",{class:`${r}-date-panel__vertical-divider`}),a("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},a("div",{class:`${r}-date-panel-month-calendar`},a(Ut,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(wr,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Sr,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"end")})}),s==="monthrange"||s==="quarterrange"?a("div",{class:`${r}-date-panel-month-calendar__picker-col`},a(Ut,{ref:"endMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,u)=>l(c,u,r,"end")),s==="monthrange"&&a("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),mt(this.datePickerSlots.footer,c=>c?a("div",{class:`${r}-date-panel-footer`},c):null),!((e=this.actions)===null||e===void 0)&&e.length||i?a("div",{class:`${r}-date-panel-actions`},a("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?a(Ho,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),a("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?so(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(Ho,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?so(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[a(Ho,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(ur,{onFocus:this.handleFocusDetectorFocus}))}}),rm=Object.assign(Object.assign({},Re.props),{to:Zt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:" "},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array,Function],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),nm=S([m("date-picker",` + position: relative; + z-index: auto; + `,[m("date-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),m("icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),R("disabled",[m("date-picker-icon",` + color: var(--n-icon-color-disabled-override); + `),m("icon",` + color: var(--n-icon-color-disabled-override); + `)])]),m("date-panel",` + width: fit-content; + outline: none; + margin: 4px 0; + display: grid; + grid-template-columns: 0fr; + border-radius: var(--n-panel-border-radius); + background-color: var(--n-panel-color); + color: var(--n-panel-text-color); + user-select: none; + `,[fr(),R("shadow",` + box-shadow: var(--n-panel-box-shadow); + `),m("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[R("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),m("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[z("picker-col",` + min-width: var(--n-scroll-item-width); + height: calc(var(--n-scroll-item-height) * 6); + user-select: none; + -webkit-user-select: none; + `,[S("&:first-child",` + min-width: calc(var(--n-scroll-item-width) + 4px); + `,[z("picker-col-item",[S("&::before","left: 4px;")])]),z("padding",` + height: calc(var(--n-scroll-item-height) * 5) + `)]),z("picker-col-item",` + z-index: 0; + cursor: pointer; + height: var(--n-scroll-item-height); + box-sizing: border-box; + padding-top: 4px; + display: flex; + align-items: center; + justify-content: center; + position: relative; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background: #0000; + color: var(--n-item-text-color); + `,[S("&::before",` + z-index: -1; + content: ""; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-scroll-item-border-radius); + transition: + background-color .3s var(--n-bezier); + `),at("disabled",[S("&:hover::before",` + background-color: var(--n-item-color-hover); + `),R("selected",` + color: var(--n-item-color-active); + `,[S("&::before","background-color: var(--n-item-color-hover);")])]),R("disabled",` + color: var(--n-item-text-color-disabled); + cursor: not-allowed; + `,[R("selected",[S("&::before",` + background-color: var(--n-item-color-disabled); + `)])])])]),R("date",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),R("week",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),R("daterange",{gridTemplateAreas:` + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),R("datetime",{gridTemplateAreas:` + "header" + "left-calendar" + "footer" + "action" + `}),R("datetimerange",{gridTemplateAreas:` + "header header header" + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),R("month",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),m("date-panel-footer",{gridArea:"footer"}),m("date-panel-actions",{gridArea:"action"}),m("date-panel-header",{gridArea:"header"}),m("date-panel-header",` + box-sizing: border-box; + width: 100%; + align-items: center; + padding: var(--n-panel-header-padding); + display: flex; + justify-content: space-between; + border-bottom: 1px solid var(--n-panel-header-divider-color); + `,[S(">",[S("*:not(:last-child)",{marginRight:"10px"}),S("*",{flex:1,width:0}),m("time-picker",{zIndex:1})])]),m("date-panel-month",` + box-sizing: border-box; + display: grid; + grid-template-columns: var(--n-calendar-title-grid-template-columns); + align-items: center; + justify-items: center; + padding: var(--n-calendar-title-padding); + height: var(--n-calendar-title-height); + `,[z("prev, next, fast-prev, fast-next",` + line-height: 0; + cursor: pointer; + width: var(--n-arrow-size); + height: var(--n-arrow-size); + color: var(--n-arrow-color); + `),z("month-year",` + user-select: none; + -webkit-user-select: none; + flex-grow: 1; + position: relative; + `,[z("text",` + font-size: var(--n-calendar-title-font-size); + line-height: var(--n-calendar-title-font-size); + font-weight: var(--n-calendar-title-font-weight); + padding: 6px 8px; + text-align: center; + color: var(--n-calendar-title-text-color); + cursor: pointer; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-panel-border-radius); + `,[R("active",` + background-color: var(--n-calendar-title-color-hover); + `),S("&:hover",` + background-color: var(--n-calendar-title-color-hover); + `)])])]),m("date-panel-weekdays",` + display: grid; + margin: auto; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(1, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + margin-bottom: 4px; + border-bottom: 1px solid var(--n-calendar-days-divider-color); + `,[z("day",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + line-height: 15px; + width: var(--n-item-size); + text-align: center; + font-size: var(--n-calendar-days-font-size); + color: var(--n-item-text-color); + display: flex; + align-items: center; + justify-content: center; + `)]),m("date-panel-dates",` + margin: auto; + display: grid; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(6, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + flex-wrap: wrap; + `,[m("date-panel-date",` + user-select: none; + -webkit-user-select: none; + position: relative; + width: var(--n-item-size); + height: var(--n-item-size); + line-height: var(--n-item-size); + text-align: center; + font-size: var(--n-item-font-size); + border-radius: var(--n-item-border-radius); + z-index: 0; + cursor: pointer; + transition: + background-color .2s var(--n-bezier), + color .2s var(--n-bezier); + `,[z("trigger",` + position: absolute; + left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); + top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); + width: var(--n-item-cell-width); + height: var(--n-item-cell-height); + `),R("current",[z("sup",` + position: absolute; + top: 2px; + right: 2px; + content: ""; + height: 4px; + width: 4px; + border-radius: 2px; + background-color: var(--n-item-color-active); + transition: + background-color .2s var(--n-bezier); + `)]),S("&::after",` + content: ""; + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + transition: background-color .3s var(--n-bezier); + `),R("covered, start, end",[at("excluded",[S("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + background-color: var(--n-item-color-included); + `),S("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),S("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),R("selected",{color:"var(--n-item-text-color-active)"},[S("&::after",{backgroundColor:"var(--n-item-color-active)"}),R("start",[S("&::before",{left:"50%"})]),R("end",[S("&::before",{right:"50%"})]),z("sup",{backgroundColor:"var(--n-panel-color)"})]),R("excluded",{color:"var(--n-item-text-color-disabled)"},[R("selected",[S("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),R("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[R("covered",[S("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),R("selected",[S("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),S("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),R("week-hovered",[S("&::before",` + background-color: var(--n-item-color-included); + `),S("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),S("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)]),R("week-selected",` + color: var(--n-item-text-color-active) + `,[S("&::before",` + background-color: var(--n-item-color-active); + `),S("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),S("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)])])]),at("week",[m("date-panel-dates",[m("date-panel-date",[at("disabled",[at("selected",[S("&:hover",` + background-color: var(--n-item-color-hover); + `)])])])])]),R("week",[m("date-panel-dates",[m("date-panel-date",[S("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + transition: background-color .3s var(--n-bezier); + `)])])]),z("vertical-divider",` + grid-area: divider; + height: 100%; + width: 1px; + background-color: var(--n-calendar-divider-color); + `),m("date-panel-footer",` + border-top: 1px solid var(--n-panel-action-divider-color); + padding: var(--n-panel-extra-footer-padding); + `),m("date-panel-actions",` + flex: 1; + padding: var(--n-panel-action-padding); + display: flex; + align-items: center; + justify-content: space-between; + border-top: 1px solid var(--n-panel-action-divider-color); + `,[z("prefix, suffix",` + display: flex; + margin-bottom: -8px; + `),z("suffix",` + align-self: flex-end; + `),z("prefix",` + flex-wrap: wrap; + `),m("button",` + margin-bottom: 8px; + `,[S("&:not(:last-child)",` + margin-right: 8px; + `)])])]),S("[data-n-date].transition-disabled",{transition:"none !important"},[S("&::before, &::after",{transition:"none !important"})])]);function am(e,t){const o=C(()=>{const{isTimeDisabled:u}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return u?.(f)}),r=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isHourDisabled}),n=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isMinuteDisabled}),i=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isSecondDisabled}),s=C(()=>{const{type:u,isDateDisabled:f}=e,{value:v}=t;return v===null||Array.isArray(v)||!["date","datetime"].includes(u)||!f?!1:f(v,{type:"input"})}),l=C(()=>{const{type:u}=e,{value:f}=t;if(f===null||u==="datetime"||Array.isArray(f))return!1;const v=new Date(f),p=v.getHours(),h=v.getMinutes(),g=v.getMinutes();return(r.value?r.value(p):!1)||(n.value?n.value(h,p):!1)||(i.value?i.value(g,h,p):!1)}),d=C(()=>s.value||l.value);return{isValueInvalidRef:C(()=>{const{type:u}=e;return u==="date"?s.value:u==="datetime"?d.value:!1}),isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:r,isMinuteDisabledRef:n,isSecondDisabledRef:i}}function im(e,t){const o=C(()=>{const{isTimeDisabled:f}=e,{value:v}=t;return!Array.isArray(v)||!f?[void 0,void 0]:[f?.(v[0],"start",v),f?.(v[1],"end",v)]}),r={isStartHourDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},n=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[0],"start",p)}),i=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[1],"end",p)}),s=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[0]),h=Un(v[0]),g=Wn(v[0]),{isStartHourDisabledRef:b,isStartMinuteDisabledRef:y,isStartSecondDisabledRef:x}=r;return(b.value?b.value(p):!1)||(y.value?y.value(h,p):!1)||(x.value?x.value(g,h,p):!1)}),l=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[1]),h=Un(v[1]),g=Wn(v[1]),{isEndHourDisabledRef:b,isEndMinuteDisabledRef:y,isEndSecondDisabledRef:x}=r;return(b.value?b.value(p):!1)||(y.value?y.value(h,p):!1)||(x.value?x.value(g,h,p):!1)}),d=C(()=>n.value||s.value),c=C(()=>i.value||l.value),u=C(()=>d.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:n,isEndDateInvalidRef:i,isStartTimeInvalidRef:s,isEndTimeInvalidRef:l,isStartValueInvalidRef:d,isEndValueInvalidRef:c,isRangeInvalidRef:u})}const Sy=re({name:"DatePicker",props:rm,slots:Object,setup(e,{slots:t}){var o;const{localeRef:r,dateLocaleRef:n}=$o("DatePicker"),i=vo(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:d}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:u,mergedBorderedRef:f,namespaceRef:v,inlineThemeDisabled:p}=Qe(e),h=O(null),g=O(null),b=O(null),y=O(!1),x=fe(e,"show"),F=$t(x,y),P=C(()=>({locale:n.value.locale,useAdditionalWeekYearTokens:!0})),$=C(()=>{const{format:W}=e;if(W)return W;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat;case"week":return r.value.weekFormat}}),w=C(()=>{var W;return(W=e.valueFormat)!==null&&W!==void 0?W:$.value});function k(W){if(W===null)return null;const{value:ge}=w,{value:$e}=P;return Array.isArray(W)?[fo(W[0],ge,new Date,$e).getTime(),fo(W[1],ge,new Date,$e).getTime()]:fo(W,ge,new Date,$e).getTime()}const{defaultFormattedValue:D,defaultValue:T}=e,A=O((o=D!==void 0?k(D):T)!==null&&o!==void 0?o:null),N=C(()=>{const{formattedValue:W}=e;return W!==void 0?k(W):e.value}),B=$t(N,A),E=O(null);Ft(()=>{E.value=B.value});const K=O(""),L=O(""),te=O(""),U=Re("DatePicker","-date-picker",nm,Vg,e,u),ie=C(()=>{var W,ge;return((ge=(W=c?.value)===null||W===void 0?void 0:W.DatePicker)===null||ge===void 0?void 0:ge.timePickerSize)||"small"}),be=C(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),ce=C(()=>{const{placeholder:W}=e;if(W===void 0){const{type:ge}=e;switch(ge){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;case"week":return r.value.weekPlaceholder;default:return""}}else return W}),V=C(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),_=C(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),I=C(()=>{const{actions:W,type:ge,clearable:$e}=e;if(W===null)return[];if(W!==void 0)return W;const We=$e?["clear"]:[];switch(ge){case"date":case"week":return We.push("now"),We;case"datetime":return We.push("now","confirm"),We;case"daterange":return We.push("confirm"),We;case"datetimerange":return We.push("confirm"),We;case"month":return We.push("now","confirm"),We;case"year":return We.push("now"),We;case"quarter":return We.push("now","confirm"),We;case"monthrange":case"yearrange":case"quarterrange":return We.push("confirm"),We;default:{break}}});function j(W){if(W===null)return null;if(Array.isArray(W)){const{value:ge}=w,{value:$e}=P;return[Bt(W[0],ge,$e),Bt(W[1],ge,P.value)]}else return Bt(W,w.value,P.value)}function J(W){E.value=W}function se(W,ge){const{"onUpdate:formattedValue":$e,onUpdateFormattedValue:We}=e;$e&&ae($e,W,ge),We&&ae(We,W,ge)}function xe(W,ge){const{"onUpdate:value":$e,onUpdateValue:We,onChange:ht}=e,{nTriggerFormChange:rt,nTriggerFormInput:ne}=i,ze=j(W);ge.doConfirm&&H(W,ze),We&&ae(We,W,ze),$e&&ae($e,W,ze),ht&&ae(ht,W,ze),A.value=W,se(ze,W),rt(),ne()}function Ie(){const{onClear:W}=e;W?.()}function H(W,ge){const{onConfirm:$e}=e;$e&&$e(W,ge)}function Pe(W){const{onFocus:ge}=e,{nTriggerFormFocus:$e}=i;ge&&ae(ge,W),$e()}function He(W){const{onBlur:ge}=e,{nTriggerFormBlur:$e}=i;ge&&ae(ge,W),$e()}function _e(W){const{"onUpdate:show":ge,onUpdateShow:$e}=e;ge&&ae(ge,W),$e&&ae($e,W),y.value=W}function Ge(W){W.key==="Escape"&&F.value&&(dn(W),ft({returnFocus:!0}))}function Xe(W){W.key==="Escape"&&F.value&&dn(W)}function ct(){var W;_e(!1),(W=b.value)===null||W===void 0||W.deactivate(),Ie()}function ot(){var W;(W=b.value)===null||W===void 0||W.deactivate(),Ie()}function Ce(){ft({returnFocus:!0})}function ee(W){var ge;F.value&&!(!((ge=g.value)===null||ge===void 0)&&ge.contains(Ko(W)))&&ft({returnFocus:!1})}function ue(W){ft({returnFocus:!0,disableUpdateOnClose:W})}function q(W,ge){ge?xe(W,{doConfirm:!1}):J(W)}function Q(){const W=E.value;xe(Array.isArray(W)?[W[0],W[1]]:W,{doConfirm:!0})}function pe(){const{value:W}=E;be.value?(Array.isArray(W)||W===null)&&de(W):Array.isArray(W)||we(W)}function we(W){W===null?K.value="":K.value=Bt(W,$.value,P.value)}function de(W){if(W===null)L.value="",te.value="";else{const ge=P.value;L.value=Bt(W[0],$.value,ge),te.value=Bt(W[1],$.value,ge)}}function me(){F.value||pt()}function je(W){var ge;!((ge=h.value)===null||ge===void 0)&&ge.$el.contains(W.relatedTarget)||(He(W),pe(),ft({returnFocus:!1}))}function oe(){l.value||(pe(),ft({returnFocus:!1}))}function Ue(W){if(W===""){xe(null,{doConfirm:!1}),E.value=null,K.value="";return}const ge=fo(W,$.value,new Date,P.value);Oo(ge)?(xe(Ve(ge),{doConfirm:!1}),pe()):K.value=W}function it(W,{source:ge}){if(W[0]===""&&W[1]===""){xe(null,{doConfirm:!1}),E.value=null,L.value="",te.value="";return}const[$e,We]=W,ht=fo($e,$.value,new Date,P.value),rt=fo(We,$.value,new Date,P.value);if(Oo(ht)&&Oo(rt)){let ne=Ve(ht),ze=Ve(rt);rt{pe()}),pe(),gt(F,W=>{W||(E.value=B.value)});const Me=am(e,E),Ze=im(e,E);et(aa,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:U,timePickerSizeRef:ie,localeRef:r,dateLocaleRef:n,firstDayOfWeekRef:fe(e,"firstDayOfWeek"),isDateDisabledRef:fe(e,"isDateDisabled"),rangesRef:fe(e,"ranges"),timePickerPropsRef:fe(e,"timePickerProps"),closeOnSelectRef:fe(e,"closeOnSelect"),updateValueOnCloseRef:fe(e,"updateValueOnClose"),monthFormatRef:fe(e,"monthFormat"),yearFormatRef:fe(e,"yearFormat"),quarterFormatRef:fe(e,"quarterFormat"),yearRangeRef:fe(e,"yearRange")},Me),Ze),{datePickerSlots:t}));const M={focus:()=>{var W;(W=b.value)===null||W===void 0||W.focus()},blur:()=>{var W;(W=b.value)===null||W===void 0||W.blur()}},G=C(()=>{const{common:{cubicBezierEaseInOut:W},self:{iconColor:ge,iconColorDisabled:$e}}=U.value;return{"--n-bezier":W,"--n-icon-color-override":ge,"--n-icon-color-disabled-override":$e}}),ve=p?lt("date-picker-trigger",void 0,G,e):void 0,Fe=C(()=>{const{type:W}=e,{common:{cubicBezierEaseInOut:ge},self:{calendarTitleFontSize:$e,calendarDaysFontSize:We,itemFontSize:ht,itemTextColor:rt,itemColorDisabled:ne,itemColorIncluded:ze,itemColorHover:Le,itemColorActive:Je,itemBorderRadius:yt,itemTextColorDisabled:bt,itemTextColorActive:Ct,panelColor:X,panelTextColor:ye,arrowColor:Ke,calendarTitleTextColor:Y,panelActionDividerColor:he,panelHeaderDividerColor:ke,calendarDaysDividerColor:Ae,panelBoxShadow:Ne,panelBorderRadius:st,calendarTitleFontWeight:It,panelExtraFooterPadding:Ot,panelActionPadding:Qt,itemSize:oo,itemCellWidth:Vt,itemCellHeight:wt,scrollItemWidth:Z,scrollItemHeight:Te,calendarTitlePadding:Oe,calendarTitleHeight:ut,calendarDaysHeight:Wt,calendarDaysTextColor:St,arrowSize:wo,panelHeaderPadding:Fo,calendarDividerColor:go,calendarTitleGridTempateColumns:Kr,iconColor:qr,iconColorDisabled:Yr,scrollItemBorderRadius:Gr,calendarTitleColorHover:Xr,[le("calendarLeftPadding",W)]:Zr,[le("calendarRightPadding",W)]:sa}}=U.value;return{"--n-bezier":ge,"--n-panel-border-radius":st,"--n-panel-color":X,"--n-panel-box-shadow":Ne,"--n-panel-text-color":ye,"--n-panel-header-padding":Fo,"--n-panel-header-divider-color":ke,"--n-calendar-left-padding":Zr,"--n-calendar-right-padding":sa,"--n-calendar-title-color-hover":Xr,"--n-calendar-title-height":ut,"--n-calendar-title-padding":Oe,"--n-calendar-title-font-size":$e,"--n-calendar-title-font-weight":It,"--n-calendar-title-text-color":Y,"--n-calendar-title-grid-template-columns":Kr,"--n-calendar-days-height":Wt,"--n-calendar-days-divider-color":Ae,"--n-calendar-days-font-size":We,"--n-calendar-days-text-color":St,"--n-calendar-divider-color":go,"--n-panel-action-padding":Qt,"--n-panel-extra-footer-padding":Ot,"--n-panel-action-divider-color":he,"--n-item-font-size":ht,"--n-item-border-radius":yt,"--n-item-size":oo,"--n-item-cell-width":Vt,"--n-item-cell-height":wt,"--n-item-text-color":rt,"--n-item-color-included":ze,"--n-item-color-disabled":ne,"--n-item-color-hover":Le,"--n-item-color-active":Je,"--n-item-text-color-disabled":bt,"--n-item-text-color-active":Ct,"--n-scroll-item-width":Z,"--n-scroll-item-height":Te,"--n-scroll-item-border-radius":Gr,"--n-arrow-size":wo,"--n-arrow-color":Ke,"--n-icon-color":qr,"--n-icon-color-disabled":Yr}}),Be=p?lt("date-picker",C(()=>e.type),Fe,e):void 0;return Object.assign(Object.assign({},M),{mergedStatus:d,mergedClsPrefix:u,mergedBordered:f,namespace:v,uncontrolledValue:A,pendingValue:E,panelInstRef:h,triggerElRef:g,inputInstRef:b,isMounted:Yo(),displayTime:K,displayStartTime:L,displayEndTime:te,mergedShow:F,adjustedTo:Zt(e),isRange:be,localizedStartPlaceholder:V,localizedEndPlaceholder:_,mergedSize:s,mergedDisabled:l,localizedPlacehoder:ce,isValueInvalid:Me.isValueInvalidRef,isStartValueInvalid:Ze.isStartValueInvalidRef,isEndValueInvalid:Ze.isEndValueInvalidRef,handleInputKeydown:Xe,handleClickOutside:ee,handleKeydown:Ge,handleClear:ct,handlePanelClear:ot,handleTriggerClick:Pt,handleInputActivate:me,handleInputDeactivate:oe,handleInputFocus:xt,handleInputBlur:je,handlePanelTabOut:Ce,handlePanelClose:ue,handleRangeUpdateValue:it,handleSingleUpdateValue:Ue,handlePanelUpdateValue:q,handlePanelConfirm:Q,mergedTheme:U,actions:I,triggerCssVars:p?void 0:G,triggerThemeClass:ve?.themeClass,triggerOnRender:ve?.onRender,cssVars:p?void 0:Fe,themeClass:Be?.themeClass,onRender:Be?.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:o,$slots:r}=this,n={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},i=()=>{const{type:l}=this;return l==="datetime"?a(em,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):l==="daterange"?a(qg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?a(tm,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?a(Zd,Object.assign({},n,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?a(om,Object.assign({},n,{type:l})):a(Kg,Object.assign({},n,{type:l,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return i();t?.();const s={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return a("div",{ref:"triggerElRef",class:[`${o}-date-picker`,this.mergedDisabled&&`${o}-date-picker--disabled`,this.isRange&&`${o}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},a(Rr,null,{default:()=>[a(zr,null,{default:()=>this.isRange?a(Mo,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{separator:()=>this.separator===void 0?vt(r.separator,()=>[a(zt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>a(Tf,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[a(zt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>a(pl,null)})])}):a(Mo,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{[e?"clear-icon-placeholder":"suffix"]:()=>a(zt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[a(pl,null)])})})}),a(kr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Zt.tdkey,placement:this.placement},{default:()=>a(qt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?uo(i(),[[Lo,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),lm={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Jd(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:s,dividerColor:l,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},lm),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p,titleTextColor:r,thColor:qe(n,t),thColorModal:qe(i,t),thColorPopover:qe(s,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:s,borderColor:qe(n,l),borderColorModal:qe(i,l),borderColorPopover:qe(s,l),borderRadius:d})}const sm={common:dt,self:Jd},dm={name:"Descriptions",common:De,self:Jd},cm=S([m("descriptions",{fontSize:"var(--n-font-size)"},[m("descriptions-separator",` + display: inline-block; + margin: 0 8px 0 2px; + `),m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[m("descriptions-table-header",{padding:"var(--n-th-padding)"}),m("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),at("bordered",[m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[S("&:last-child",[m("descriptions-table-content",{paddingBottom:0})])])])])]),R("left-label-placement",[m("descriptions-table-content",[S("> *",{verticalAlign:"top"})])]),R("left-label-align",[S("th",{textAlign:"left"})]),R("center-label-align",[S("th",{textAlign:"center"})]),R("right-label-align",[S("th",{textAlign:"right"})]),R("bordered",[m("descriptions-table-wrapper",` + border-radius: var(--n-border-radius); + overflow: hidden; + background: var(--n-merged-td-color); + border: 1px solid var(--n-merged-border-color); + `,[m("descriptions-table",[m("descriptions-table-row",[S("&:not(:last-child)",[m("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),m("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-header",` + font-weight: 400; + background-clip: padding-box; + background-color: var(--n-merged-th-color); + `,[S("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-content",[S("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),m("descriptions-header",` + font-weight: var(--n-th-font-weight); + font-size: 18px; + transition: color .3s var(--n-bezier); + line-height: var(--n-line-height); + margin-bottom: 16px; + color: var(--n-title-text-color); + `),m("descriptions-table-wrapper",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[m("descriptions-table",` + width: 100%; + border-collapse: separate; + border-spacing: 0; + box-sizing: border-box; + `,[m("descriptions-table-row",` + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[m("descriptions-table-header",` + font-weight: var(--n-th-font-weight); + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-th-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),m("descriptions-table-content",` + vertical-align: top; + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-td-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[z("content",` + transition: color .3s var(--n-bezier); + display: inline-block; + color: var(--n-td-text-color); + `)]),z("label",` + font-weight: var(--n-th-font-weight); + transition: color .3s var(--n-bezier); + display: inline-block; + margin-right: 14px; + color: var(--n-th-text-color); + `)])])])]),m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + `),jr(m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),vn(m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),ec="DESCRIPTION_ITEM_FLAG";function um(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[ec]:!1}const fm=Object.assign(Object.assign({},Re.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]}),ky=re({name:"Descriptions",props:fm,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Descriptions","-descriptions",cm,sm,e,t),n=C(()=>{const{size:s,bordered:l}=e,{common:{cubicBezierEaseInOut:d},self:{titleTextColor:c,thColor:u,thColorModal:f,thColorPopover:v,thTextColor:p,thFontWeight:h,tdTextColor:g,tdColor:b,tdColorModal:y,tdColorPopover:x,borderColor:F,borderColorModal:P,borderColorPopover:$,borderRadius:w,lineHeight:k,[le("fontSize",s)]:D,[le(l?"thPaddingBordered":"thPadding",s)]:T,[le(l?"tdPaddingBordered":"tdPadding",s)]:A}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":T,"--n-td-padding":A,"--n-font-size":D,"--n-bezier":d,"--n-th-font-weight":h,"--n-line-height":k,"--n-th-text-color":p,"--n-td-text-color":g,"--n-th-color":u,"--n-th-color-modal":f,"--n-th-color-popover":v,"--n-td-color":b,"--n-td-color-modal":y,"--n-td-color-popover":x,"--n-border-radius":w,"--n-border-color":F,"--n-border-color-modal":P,"--n-border-color-popover":$}}),i=o?lt("descriptions",C(()=>{let s="";const{size:l,bordered:d}=e;return d&&(s+="a"),s+=l[0],s}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender,compitableColumn:rr(e,["columns","column"]),inlineThemeDisabled:o}},render(){const e=this.$slots.default,t=e?Ro(e()):[];t.length;const{contentClass:o,labelClass:r,compitableColumn:n,labelPlacement:i,labelAlign:s,size:l,bordered:d,title:c,cssVars:u,mergedClsPrefix:f,separator:v,onRender:p}=this;p?.();const h=t.filter(x=>um(x)),g={span:0,row:[],secondRow:[],rows:[]},y=h.reduce((x,F,P)=>{const $=F.props||{},w=h.length-1===P,k=["label"in $?$.label:vl(F,"label")],D=[vl(F)],T=$.span||1,A=x.span;x.span+=T;const N=$.labelStyle||$["label-style"]||this.labelStyle,B=$.contentStyle||$["content-style"]||this.contentStyle;if(i==="left")d?x.row.push(a("th",{class:[`${f}-descriptions-table-header`,r],colspan:1,style:N},k),a("td",{class:[`${f}-descriptions-table-content`,o],colspan:w?(n-A)*2+1:T*2-1,style:B},D)):x.row.push(a("td",{class:`${f}-descriptions-table-content`,colspan:w?(n-A)*2:T*2},a("span",{class:[`${f}-descriptions-table-content__label`,r],style:N},[...k,v&&a("span",{class:`${f}-descriptions-separator`},v)]),a("span",{class:[`${f}-descriptions-table-content__content`,o],style:B},D)));else{const E=w?(n-A)*2:T*2;x.row.push(a("th",{class:[`${f}-descriptions-table-header`,r],colspan:E,style:N},k)),x.secondRow.push(a("td",{class:[`${f}-descriptions-table-content`,o],colspan:E,style:B},D))}return(x.span>=n||w)&&(x.span=0,x.row.length&&(x.rows.push(x.row),x.row=[]),i!=="left"&&x.secondRow.length&&(x.rows.push(x.secondRow),x.secondRow=[])),x},g).rows.map(x=>a("tr",{class:`${f}-descriptions-table-row`},x));return a("div",{style:u,class:[`${f}-descriptions`,this.themeClass,`${f}-descriptions--${i}-label-placement`,`${f}-descriptions--${s}-label-align`,`${f}-descriptions--${l}-size`,d&&`${f}-descriptions--bordered`]},c||this.$slots.header?a("div",{class:`${f}-descriptions-header`},c||mn(this,"header")):null,a("div",{class:`${f}-descriptions-table-wrapper`},a("table",{class:`${f}-descriptions-table`},a("tbody",null,i==="top"&&a("tr",{class:`${f}-descriptions-table-row`,style:{visibility:"collapse"}},si(n*2,a("td",null))),y))))}}),hm={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},Ry=re({name:"DescriptionsItem",[ec]:!0,props:hm,slots:Object,render(){return null}}),tc="n-dialog-provider",oc="n-dialog-api",vm="n-dialog-reactive-list";function pm(){const e=Ee(oc,null);return e===null&&Go("use-dialog","No outer founded."),e}const gm={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function rc(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,infoColor:c,successColor:u,warningColor:f,errorColor:v,primaryColor:p,dividerColor:h,borderRadius:g,fontWeightStrong:b,lineHeight:y,fontSize:x}=e;return Object.assign(Object.assign({},gm),{fontSize:x,lineHeight:y,border:`1px solid ${h}`,titleTextColor:t,textColor:o,color:r,closeColorHover:l,closeColorPressed:d,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:g,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:v,borderRadius:g,titleFontWeight:b})}const nc={name:"Dialog",common:dt,peers:{Button:vr},self:rc},ac={name:"Dialog",common:De,peers:{Button:po},self:rc},ia={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},ic=zo(ia),mm=S([m("dialog",` + --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); + word-break: break-word; + line-height: var(--n-line-height); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[z("icon",` + color: var(--n-icon-color); + `),R("bordered",` + border: var(--n-border); + `),R("icon-top",[z("close",` + margin: var(--n-close-margin); + `),z("icon",` + margin: var(--n-icon-margin); + `),z("content",` + text-align: center; + `),z("title",` + justify-content: center; + `),z("action",` + justify-content: center; + `)]),R("icon-left",[z("icon",` + margin: var(--n-icon-margin); + `),R("closable",[z("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),z("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),z("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[R("last","margin-bottom: 0;")]),z("action",` + display: flex; + justify-content: flex-end; + `,[S("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),z("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),z("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),m("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),jr(m("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),m("dialog",[cs(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]),bm={default:()=>a(Er,null),info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null)},lc=re({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Re.props),ia),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Qe(e),i=jt("Dialog",n,o),s=C(()=>{var p,h;const{iconPlacement:g}=e;return g||((h=(p=t?.value)===null||p===void 0?void 0:p.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function l(p){const{onPositiveClick:h}=e;h&&h(p)}function d(p){const{onNegativeClick:h}=e;h&&h(p)}function c(){const{onClose:p}=e;p&&p()}const u=Re("Dialog","-dialog",mm,nc,e,o),f=C(()=>{const{type:p}=e,h=s.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:b,lineHeight:y,border:x,titleTextColor:F,textColor:P,color:$,closeBorderRadius:w,closeColorHover:k,closeColorPressed:D,closeIconColor:T,closeIconColorHover:A,closeIconColorPressed:N,closeIconSize:B,borderRadius:E,titleFontWeight:K,titleFontSize:L,padding:te,iconSize:U,actionSpace:ie,contentMargin:be,closeSize:ce,[h==="top"?"iconMarginIconTop":"iconMargin"]:V,[h==="top"?"closeMarginIconTop":"closeMargin"]:_,[le("iconColor",p)]:I}}=u.value,j=Nt(V);return{"--n-font-size":b,"--n-icon-color":I,"--n-bezier":g,"--n-close-margin":_,"--n-icon-margin-top":j.top,"--n-icon-margin-right":j.right,"--n-icon-margin-bottom":j.bottom,"--n-icon-margin-left":j.left,"--n-icon-size":U,"--n-close-size":ce,"--n-close-icon-size":B,"--n-close-border-radius":w,"--n-close-color-hover":k,"--n-close-color-pressed":D,"--n-close-icon-color":T,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":N,"--n-color":$,"--n-text-color":P,"--n-border-radius":E,"--n-padding":te,"--n-line-height":y,"--n-border":x,"--n-content-margin":be,"--n-title-font-size":L,"--n-title-font-weight":K,"--n-title-text-color":F,"--n-action-space":ie}}),v=r?lt("dialog",C(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:c,cssVars:r?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:r,closable:n,showIcon:i,title:s,content:l,action:d,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:v,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:g,loading:b,type:y,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const F=i?a(zt,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>mt(this.$slots.icon,$=>$||(this.icon?Rt(this.icon):bm[this.type]()))}):null,P=mt(this.$slots.action,$=>$||u||c||d?a("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},$||(d?[Rt(d)]:[this.negativeText&&a(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},v),{default:()=>Rt(this.negativeText)}),this.positiveText&&a(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:y==="default"?"primary":y,disabled:b,loading:b,onClick:p},f),{default:()=>Rt(this.positiveText)})])):null);return a("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:r,role:"dialog"},n?mt(this.$slots.close,$=>{const w=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return $?a("div",{class:w},$):a(cr,{focusable:this.closeFocusable,clsPrefix:x,class:w,onClick:this.handleCloseClick})}):null,i&&o==="top"?a("div",{class:`${x}-dialog-icon-container`},F):null,a("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?F:null,vt(this.$slots.header,()=>[Rt(s)])),a("div",{class:[`${x}-dialog__content`,P?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},vt(this.$slots.default,()=>[Rt(l)])),P)}});function sc(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const xm={name:"Modal",common:dt,peers:{Scrollbar:To,Dialog:nc,Card:od},self:sc},Cm={name:"Modal",common:De,peers:{Scrollbar:no,Dialog:ac,Card:rd},self:sc},ym="n-modal-provider",dc="n-modal-api",wm="n-modal-reactive-list";function Sm(){const e=Ee(dc,null);return e===null&&Go("use-modal","No outer founded."),e}const ri="n-draggable";function km(e,t){let o;const r=C(()=>e.value!==!1),n=C(()=>r.value?ri:""),i=C(()=>{const d=e.value;return d===!0||d===!1?!0:d?d.bounds!=="none":!0});function s(d){const c=d.querySelector(`.${ri}`);if(!c||!n.value)return;let u=0,f=0,v=0,p=0,h=0,g=0,b;function y(P){P.preventDefault(),b=P;const{x:$,y:w,right:k,bottom:D}=d.getBoundingClientRect();f=$,p=w,u=window.innerWidth-k,v=window.innerHeight-D;const{left:T,top:A}=d.style;h=+A.slice(0,-2),g=+T.slice(0,-2)}function x(P){if(!b)return;const{clientX:$,clientY:w}=b;let k=P.clientX-$,D=P.clientY-w;i.value&&(k>u?k=u:-k>f&&(k=-f),D>v?D=v:-D>p&&(D=-p));const T=k+g,A=D+h;d.style.top=`${A}px`,d.style.left=`${T}px`}function F(){b=void 0,t.onEnd(d)}Lt("mousedown",c,y),Lt("mousemove",window,x),Lt("mouseup",window,F),o=()=>{Yt("mousedown",c,y),Lt("mousemove",window,x),Lt("mouseup",window,F)}}function l(){o&&(o(),o=void 0)}return Jn(l),{stopDrag:l,startDrag:s,draggableRef:r,draggableClassRef:n}}const Li=Object.assign(Object.assign({},Ri),ia),Rm=zo(Li),zm=re({name:"ModalBody",inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean},Li),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=O(null),o=O(null),r=O(e.show),n=O(null),i=O(null),s=Ee(fs);let l=null;gt(fe(e,"show"),D=>{D&&(l=s.getMousePosition())},{immediate:!0});const{stopDrag:d,startDrag:c,draggableRef:u,draggableClassRef:f}=km(fe(e,"draggable"),{onEnd:D=>{g(D)}}),v=C(()=>Wa([e.titleClass,f.value])),p=C(()=>Wa([e.headerClass,f.value]));gt(fe(e,"show"),D=>{D&&(r.value=!0)}),ps(C(()=>e.blockScroll&&r.value));function h(){if(s.transformOriginRef.value==="center")return"";const{value:D}=n,{value:T}=i;if(D===null||T===null)return"";if(o.value){const A=o.value.containerScrollTop;return`${D}px ${T+A}px`}return""}function g(D){if(s.transformOriginRef.value==="center"||!l||!o.value)return;const T=o.value.containerScrollTop,{offsetLeft:A,offsetTop:N}=D,B=l.y,E=l.x;n.value=-(A-E),i.value=-(N-B-T),D.style.transformOrigin=h()}function b(D){Tt(()=>{g(D)})}function y(D){D.style.transformOrigin=h(),e.onBeforeLeave()}function x(D){const T=D;u.value&&c(T),e.onAfterEnter&&e.onAfterEnter(T)}function F(){r.value=!1,n.value=null,i.value=null,d(),e.onAfterLeave()}function P(){const{onClose:D}=e;D&&D()}function $(){e.onNegativeClick()}function w(){e.onPositiveClick()}const k=O(null);return gt(k,D=>{D&&Tt(()=>{const T=D.el;T&&t.value!==T&&(t.value=T)})}),et(gn,t),et(pn,null),et(Vr,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,draggableClass:f,displayed:r,childNodeRef:k,cardHeaderClass:p,dialogTitleClass:v,handlePositiveClick:w,handleNegativeClick:$,handleCloseClick:P,handleAfterEnter:x,handleAfterLeave:F,handleBeforeLeave:y,handleEnter:b}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterEnter:r,handleAfterLeave:n,handleBeforeLeave:i,preset:s,mergedClsPrefix:l}=this;let d=null;if(!s){if(d=df("default",e.default,{draggableClass:this.draggableClass}),!d){return}d=an(d),d.props=co({class:`${l}-modal`},t,d.props||{})}return this.displayDirective==="show"||this.displayed||this.show?uo(a("div",{role:"none",class:[`${l}-modal-body-wrapper`,this.maskHidden&&`${l}-modal-body-wrapper--mask-hidden`]},a(Ut,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${l}-modal-scroll-content`},{default:()=>{var c;return[(c=this.renderMask)===null||c===void 0?void 0:c.call(this),a(fi,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return a(qt,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:r,onAfterLeave:n,onBeforeLeave:i},{default:()=>{const f=[[Eo,this.show]],{onClickoutside:v}=this;return v&&f.push([Lo,this.onClickoutside,void 0,{capture:!0}]),uo(this.preset==="confirm"||this.preset==="dialog"?a(lc,Object.assign({},this.$attrs,{class:[`${l}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mo(this.$props,ic),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?a(Sv,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${l}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mo(this.$props,yv),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=d,f)}})}})]}})),[[Eo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Pm=S([m("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),m("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[wn({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),m("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[m("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `),R("mask-hidden","pointer-events: none;",[m("modal-scroll-content",[S("> *",` + pointer-events: all; + `)])])]),m("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[fr({duration:".25s",enterScale:".5"}),S(`.${ri}`,` + cursor: move; + user-select: none; + `)])]),cc=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),{show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Li),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}}),uc=re({name:"Modal",inheritAttrs:!1,props:cc,slots:Object,setup(e){const t=O(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Qe(e),i=Re("Modal","-modal",Pm,xm,e,o),s=pi(64),l=gi(),d=Yo(),c=e.internalDialog?Ee(tc,null):null,u=e.internalModal?Ee(Qu,null):null,f=vs();function v(w){const{onUpdateShow:k,"onUpdate:show":D,onHide:T}=e;k&&ae(k,w),D&&ae(D,w),T&&!w&&T(w)}function p(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&v(!1)}):v(!1)}function h(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&v(!1)}):v(!1)}function g(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&v(!1)}):v(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&ae(w),k&&k()}function y(){const{onAfterLeave:w,onAfterHide:k}=e;w&&ae(w),k&&k()}function x(w){var k;const{onMaskClick:D}=e;D&&D(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(Ko(w))&&v(!1)}function F(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&bs(w)&&(f.value||v(!1))}et(fs,{getMousePosition:()=>{const w=c||u;if(w){const{clickedRef:k,clickedPositionRef:D}=w;if(k.value&&D.value)return D.value}return s.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:d,appearRef:fe(e,"internalAppear"),transformOriginRef:fe(e,"transformOrigin")});const P=C(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:D,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":D,"--n-text-color":T}}),$=n?lt("theme-class",void 0,P,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:d,containerRef:t,presetProps:C(()=>mo(e,Rm)),handleEsc:F,handleAfterLeave:y,handleClickoutside:x,handleBeforeLeave:b,doUpdateShow:v,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:p,cssVars:n?void 0:P,themeClass:$?.themeClass,onRender:$?.onRender}},render(){const{mergedClsPrefix:e}=this;return a(ns,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{showMask:o}=this;return uo(a("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},a(zm,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!o},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var r;return a(qt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?a("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[hi,{zIndex:this.zIndex,enabled:this.show}]])}})}}),$m=Object.assign(Object.assign({},ia),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),Tm=re({name:"DialogEnvironment",props:Object.assign(Object.assign({},$m),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=O(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function n(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:i,handleEsc:s,to:l,zIndex:d,maskClosable:c,show:u}=this;return a(uc,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,zIndex:d,maskClosable:c,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:f})=>a(lc,Object.assign({},mo(this.$props,ic),{titleClass:Wa([this.titleClass,f]),style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}))})}}),Fm={injectionKey:String,to:[String,Object]},Im=re({name:"DialogProvider",props:Fm,setup(){const e=O([]),t={};function o(l={}){const d=qo(),c=ea(Object.assign(Object.assign({},l),{key:d,destroy:()=>{var u;(u=t[`n-dialog-${d}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>d=>o(Object.assign(Object.assign({},d),{type:l})));function n(l){const{value:d}=e;d.splice(d.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l?.hide()})}const s={create:o,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return et(oc,s),et(tc,{clickedRef:pi(64),clickedPositionRef:gi()}),et(vm,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return a(Gt,null,[this.dialogList.map(o=>a(Tm,Pr(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),fc="n-loading-bar",hc="n-loading-bar-api",Bm={name:"LoadingBar",common:De,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function Om(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Mm={common:dt,self:Om},Dm=m("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[wn({enterDuration:"0.3s",leaveDuration:"0.8s"}),m("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[R("starting",` + background: var(--n-color-loading); + `),R("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),R("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var Hn=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function En(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const Am=re({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Qe(),{props:t,mergedClsPrefixRef:o}=Ee(fc),r=O(null),n=O(!1),i=O(!1),s=O(!1),l=O(!1);let d=!1;const c=O(!1),u=C(()=>{const{loadingBarStyle:$}=t;return $?$[c.value?"error":"loading"]:""});function f(){return Hn(this,void 0,void 0,function*(){n.value=!1,s.value=!1,d=!1,c.value=!1,l.value=!0,yield Tt(),l.value=!1})}function v(){return Hn(this,arguments,void 0,function*($=0,w=80,k="starting"){if(i.value=!0,yield f(),d)return;s.value=!0,yield Tt();const D=r.value;D&&(D.style.maxWidth=`${$}%`,D.style.transition="none",D.offsetWidth,D.className=En(k,o.value),D.style.transition="",D.style.maxWidth=`${w}%`)})}function p(){return Hn(this,void 0,void 0,function*(){if(d||c.value)return;i.value&&(yield Tt()),d=!0;const $=r.value;$&&($.className=En("finishing",o.value),$.style.maxWidth="100%",$.offsetWidth,s.value=!1)})}function h(){if(!(d||c.value))if(!s.value)v(100,100,"error").then(()=>{c.value=!0;const $=r.value;$&&($.className=En("error",o.value),$.offsetWidth,s.value=!1)});else{c.value=!0;const $=r.value;if(!$)return;$.className=En("error",o.value),$.style.maxWidth="100%",$.offsetWidth,s.value=!1}}function g(){n.value=!0}function b(){n.value=!1}function y(){return Hn(this,void 0,void 0,function*(){yield f()})}const x=Re("LoadingBar","-loading-bar",Dm,Mm,t,o),F=C(()=>{const{self:{height:$,colorError:w,colorLoading:k}}=x.value;return{"--n-height":$,"--n-color-loading":k,"--n-color-error":w}}),P=e?lt("loading-bar",void 0,F,t):void 0;return{mergedClsPrefix:o,loadingBarRef:r,started:i,loading:s,entering:n,transitionDisabled:l,start:v,error:h,finish:p,handleEnter:g,handleAfterEnter:b,handleAfterLeave:y,mergedLoadingBarStyle:u,cssVars:e?void 0:F,themeClass:P?.themeClass,onRender:P?.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return a(qt,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),uo(a("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},a("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Eo,this.loading||!this.loading&&this.entering]])}})}}),_m=Object.assign(Object.assign({},Re.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),Hm=re({name:"LoadingBarProvider",props:_m,setup(e){const t=Yo(),o=O(null),r={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Tt(()=>{var s;(s=o.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:n}=Qe(e);return et(hc,r),et(fc,{props:e,mergedClsPrefixRef:n}),Object.assign(r,{loadingBarRef:o})},render(){var e,t;return a(Gt,null,a(ui,{disabled:this.to===!1,to:this.to||"body"},a(Am,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function Em(){const e=Ee(hc,null);return e===null&&Go("use-loading-bar","No outer founded."),e}const vc="n-message-api",pc="n-message-provider",Lm={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function gc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:s,errorColor:l,warningColor:d,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:v,borderRadius:p,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},Lm),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:d,iconColorError:l,iconColorLoading:f,closeColorHover:h,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:v,borderRadius:p,border:"0"})}const Nm={common:dt,self:gc},jm={name:"Message",common:De,self:gc},mc={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Vm=S([m("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[cn({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),m("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + border: var(--n-border); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[z("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),z("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>R(`${e}-type`,[S("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),S("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[ho()])]),z("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[S("&:hover",` + color: var(--n-close-icon-color-hover); + `),S("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),m("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[R("top",` + top: 12px; + left: 0; + right: 0; + `),R("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),R("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),R("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),R("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),R("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),Wm={info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null),default:()=>null},Um=re({name:"Message",props:Object.assign(Object.assign({},mc),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Qe(e),{props:r,mergedClsPrefixRef:n}=Ee(pc),i=jt("Message",o,n),s=Re("Message","-message",Vm,Nm,r,n),l=C(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:v,maxWidth:p,iconMargin:h,closeMargin:g,closeSize:b,iconSize:y,fontSize:x,lineHeight:F,borderRadius:P,border:$,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:D,iconColorError:T,iconColorLoading:A,closeIconSize:N,closeBorderRadius:B,[le("textColor",c)]:E,[le("boxShadow",c)]:K,[le("color",c)]:L,[le("closeColorHover",c)]:te,[le("closeColorPressed",c)]:U,[le("closeIconColor",c)]:ie,[le("closeIconColorPressed",c)]:be,[le("closeIconColorHover",c)]:ce}}=s.value;return{"--n-bezier":u,"--n-margin":v,"--n-padding":f,"--n-max-width":p,"--n-font-size":x,"--n-icon-margin":h,"--n-icon-size":y,"--n-close-icon-size":N,"--n-close-border-radius":B,"--n-close-size":b,"--n-close-margin":g,"--n-text-color":E,"--n-color":L,"--n-box-shadow":K,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":D,"--n-icon-color-error":T,"--n-icon-color-loading":A,"--n-close-color-hover":te,"--n-close-color-pressed":U,"--n-close-icon-color":ie,"--n-close-icon-color-pressed":be,"--n-close-icon-color-hover":ce,"--n-line-height":F,"--n-border-radius":P,"--n-border":$}}),d=t?lt("message",C(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:s,onRender:l,icon:d,handleClose:c,showIcon:u}=this;l?.();let f;return a("div",{class:[`${n}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):a("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(f=Km(d,t,n))&&u?a("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},a(dr,null,{default:()=>f})):null,a("div",{class:`${n}-message__content`},Rt(r)),o?a(cr,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function Km(e,t,o){if(typeof e=="function")return e();{const r=t==="loading"?a(Zo,{clsPrefix:o,strokeWidth:24,scale:.85}):Wm[t]();return r?a(zt,{clsPrefix:o,key:t},{default:()=>r}):null}}const qm=re({name:"MessageEnvironment",props:Object.assign(Object.assign({},mc),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=O(!0);to(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function n(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function d(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:v,internalKey:p}=e;u&&u(),f&&f(p),v&&v()}function c(){s()}return{show:o,hide:s,handleClose:l,handleAfterLeave:d,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return a(yn,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?a(Um,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ym=Object.assign(Object.assign({},Re.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),Gm=re({name:"MessageProvider",props:Ym,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=O([]),r=O({}),n={create(d,c){return i(d,Object.assign({type:"default"},c))},info(d,c){return i(d,Object.assign(Object.assign({},c),{type:"info"}))},success(d,c){return i(d,Object.assign(Object.assign({},c),{type:"success"}))},warning(d,c){return i(d,Object.assign(Object.assign({},c),{type:"warning"}))},error(d,c){return i(d,Object.assign(Object.assign({},c),{type:"error"}))},loading(d,c){return i(d,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};et(pc,{props:e,mergedClsPrefixRef:t}),et(vc,n);function i(d,c){const u=qo(),f=ea(Object.assign(Object.assign({},c),{content:d,key:u,destroy:()=>{var p;(p=r.value[u])===null||p===void 0||p.hide()}})),{max:v}=e;return v&&o.value.length>=v&&o.value.shift(),o.value.push(f),f}function s(d){o.value.splice(o.value.findIndex(c=>c.key===d),1),delete r.value[d]}function l(){Object.values(r.value).forEach(d=>{d.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:s},n)},render(){var e,t,o;return a(Gt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?a(ui,{to:(o=this.to)!==null&&o!==void 0?o:"body"},a("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>a(qm,Object.assign({ref:n=>{n&&(this.messageRefs[r.key]=n)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Pr(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Xm(){const e=Ee(vc,null);return e===null&&Go("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Zm=re({name:"ModalEnvironment",props:Object.assign(Object.assign({},cc),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=O(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function n(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:r,show:n}=this;return a(uc,Object.assign({},this.$props,{show:n,onUpdateShow:e,onMaskClick:o,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}),this.$slots)}}),Qm={to:[String,Object]},Jm=re({name:"ModalProvider",props:Qm,setup(){const e=O([]),t={};function o(s={}){const l=qo(),d=ea(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var c;(c=t[`n-modal-${l}`])===null||c===void 0||c.hide()}}));return e.value.push(d),d}function r(s){const{value:l}=e;l.splice(l.findIndex(d=>d.key===s),1)}function n(){Object.values(t).forEach(s=>{s?.hide()})}const i={create:o,destroyAll:n};return et(dc,i),et(ym,{clickedRef:pi(64),clickedPositionRef:gi()}),et(wm,e),Object.assign(Object.assign({},i),{modalList:e,modalInstRefs:t,handleAfterLeave:r})},render(){var e,t;return a(Gt,null,[this.modalList.map(o=>{var r;return a(Zm,Pr(o,["destroy","render"],{to:(r=o.to)!==null&&r!==void 0?r:this.to,ref:n=>{n===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}),{default:o.render})}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),eb={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function bc(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:s,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:v,textColor3:p,borderRadius:h,fontWeightStrong:g,boxShadow2:b,lineHeight:y,fontSize:x}=e;return Object.assign(Object.assign({},eb),{borderRadius:h,lineHeight:y,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:s,textColor:t,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:f,headerTextColor:v,descriptionTextColor:p,actionTextColor:t,boxShadow:b})}const tb={name:"Notification",common:dt,peers:{Scrollbar:To},self:bc},ob={name:"Notification",common:De,peers:{Scrollbar:no},self:bc},la="n-notification-provider",rb=re({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Ee(la),r=O(null);return Ft(()=>{var n,i;o.value>0?(n=r?.value)===null||n===void 0||n.classList.add("transitioning"):(i=r?.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return a("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`]},t?a(Ut,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),nb={info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null),default:()=>null},Ni={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},ab=zo(Ni),ib=re({name:"Notification",props:Ni,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=Ee(la),{inlineThemeDisabled:n,mergedRtlRef:i}=Qe(),s=jt("Notification",i,t),l=C(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:g,descriptionTextColor:b,actionTextColor:y,borderRadius:x,headerFontWeight:F,boxShadow:P,lineHeight:$,fontSize:w,closeMargin:k,closeSize:D,width:T,padding:A,closeIconSize:N,closeBorderRadius:B,closeColorHover:E,closeColorPressed:K,titleFontSize:L,metaFontSize:te,descriptionFontSize:U,[le("iconColor",c)]:ie},common:{cubicBezierEaseOut:be,cubicBezierEaseIn:ce,cubicBezierEaseInOut:V}}=o.value,{left:_,right:I,top:j,bottom:J}=Nt(A);return{"--n-color":u,"--n-font-size":w,"--n-text-color":f,"--n-description-text-color":b,"--n-action-text-color":y,"--n-title-text-color":g,"--n-title-font-weight":F,"--n-bezier":V,"--n-bezier-ease-out":be,"--n-bezier-ease-in":ce,"--n-border-radius":x,"--n-box-shadow":P,"--n-close-border-radius":B,"--n-close-color-hover":E,"--n-close-color-pressed":K,"--n-close-icon-color":v,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":$,"--n-icon-color":ie,"--n-close-margin":k,"--n-close-size":D,"--n-close-icon-size":N,"--n-width":T,"--n-padding-left":_,"--n-padding-right":I,"--n-padding-top":j,"--n-padding-bottom":J,"--n-title-font-size":L,"--n-meta-font-size":te,"--n-description-font-size":U}}),d=n?lt("notification",C(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:C(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},a("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?a("div",{class:`${t}-notification__avatar`},this.avatar?Rt(this.avatar):this.type!=="default"?a(zt,{clsPrefix:t},{default:()=>nb[this.type]()}):null):null,this.closable?a(cr,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,a("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?a("div",{class:`${t}-notification-main__header`},Rt(this.title)):null,this.description?a("div",{class:`${t}-notification-main__description`},Rt(this.description)):null,this.content?a("pre",{class:`${t}-notification-main__content`},Rt(this.content)):null,this.meta||this.action?a("div",{class:`${t}-notification-main-footer`},this.meta?a("div",{class:`${t}-notification-main-footer__meta`},Rt(this.meta)):null,this.action?a("div",{class:`${t}-notification-main-footer__action`},Rt(this.action)):null):null)))}}),lb=Object.assign(Object.assign({},Ni),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),sb=re({name:"NotificationEnvironment",props:Object.assign(Object.assign({},lb),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ee(la),o=O(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function i(h){t.value++,Tt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function s(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:g,onAfterShow:b}=e;g&&g(),b&&b()}function l(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function d(h){const{onHide:g}=e;g&&g(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:g,onAfterHide:b,internalKey:y}=e;h&&h(),g(y),b&&b()}function u(){const{duration:h}=e;h&&(r=window.setTimeout(n,h))}function f(h){h.currentTarget===h.target&&r!==null&&(window.clearTimeout(r),r=null)}function v(h){h.currentTarget===h.target&&u()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(g=>{g!==!1&&n()}):n()}return to(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:d,handleBeforeLeave:l,handleAfterEnter:s,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:v}},render(){return a(qt,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?a(ib,Object.assign({},mo(this.$props,ab),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),db=S([m("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[S(">",[m("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[S(">",[m("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[m("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),R("top, top-right, top-left",` + top: 12px; + `,[S("&.transitioning >",[m("scrollbar",[S(">",[m("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),R("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[S(">",[m("scrollbar",[S(">",[m("scrollbar-container",[m("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),m("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),R("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[m("notification-wrapper",[S("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),S("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),R("top",[m("notification-wrapper",` + transform-origin: top center; + `)]),R("bottom",[m("notification-wrapper",` + transform-origin: bottom center; + `)]),R("top-right, bottom-right",[m("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),R("top-left, bottom-left",[m("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),R("top-right",` + right: 0; + `,[Ln("top-right")]),R("top-left",` + left: 0; + `,[Ln("top-left")]),R("bottom-right",` + right: 0; + `,[Ln("bottom-right")]),R("bottom-left",` + left: 0; + `,[Ln("bottom-left")]),R("scrollable",[R("top-right",` + top: 0; + `),R("top-left",` + top: 0; + `),R("bottom-right",` + bottom: 0; + `),R("bottom-left",` + bottom: 0; + `)]),m("notification-wrapper",` + margin-bottom: 12px; + `,[S("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),S("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),S("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),S("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),m("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[z("avatar",[m("icon",` + color: var(--n-icon-color); + `),m("base-icon",` + color: var(--n-icon-color); + `)]),R("show-avatar",[m("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),R("closable",[m("notification-main",[S("> *:first-child",` + padding-right: 20px; + `)]),z("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),z("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[m("icon","transition: color .3s var(--n-bezier);")]),m("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[m("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[z("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),z("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),z("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),z("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),z("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[S("&:first-child","margin: 0;")])])])])]);function Ln(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return m("notification-wrapper",[S("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${o}, 0); + `),S("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const xc="n-notification-api",cb=Object.assign(Object.assign({},Re.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),ub=re({name:"NotificationProvider",props:cb,setup(e){const{mergedClsPrefixRef:t}=Qe(e),o=O([]),r={},n=new Set;function i(p){const h=qo(),g=()=>{n.add(h),r[h]&&r[h].hide()},b=ea(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:y}=e;if(y&&o.value.length-n.size>=y){let x=!1,F=0;for(const P of o.value){if(!n.has(P.key)){r[P.key]&&(P.destroy(),x=!0);break}F++}x||o.value.splice(F,1)}return o.value.push(b),b}const s=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function l(p){n.delete(p),o.value.splice(o.value.findIndex(h=>h.key===p),1)}const d=Re("Notification","-notification",db,tb,e,t),c={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:v},u=O(0);et(xc,c),et(la,{props:e,mergedClsPrefixRef:t,mergedThemeRef:d,wipTransitionCountRef:u});function f(p){return i(p)}function v(){Object.values(o.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,o;const{placement:r}=this;return a(Gt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?a(ui,{to:(o=this.to)!==null&&o!==void 0?o:"body"},a(rb,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(n=>a(sb,Object.assign({ref:i=>{const s=n.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},Pr(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function fb(){const e=Ee(xc,null);return e===null&&Go("use-notification","No outer `n-notification-provider` found."),e}const hb=re({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),vb={message:Xm,notification:fb,loadingBar:Em,dialog:pm,modal:Sm};function pb({providersAndProps:e,configProviderProps:t}){let o=_u(n);const r={app:o};function n(){return a(vp,Ji(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>a(d,Ji(c),{default:()=>a(hb,{onSetup:()=>r[l]=vb[l]()})}))})}let i;return xo&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},r)}function zy(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:i,modalProviderProps:s}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:Gm,props:o});break;case"notification":l.push({type:c,Provider:ub,props:n});break;case"dialog":l.push({type:c,Provider:Im,props:r});break;case"loadingBar":l.push({type:c,Provider:Hm,props:i});break;case"modal":l.push({type:c,Provider:Jm,props:s})}}),pb({providersAndProps:l,configProviderProps:t})}function Cc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const gb={common:dt,self:Cc},mb={name:"Divider",common:De,self:Cc},bb=m("divider",` + position: relative; + display: flex; + width: 100%; + box-sizing: border-box; + font-size: 16px; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); +`,[at("vertical",` + margin-top: 24px; + margin-bottom: 24px; + `,[at("no-title",` + display: flex; + align-items: center; + `)]),z("title",` + display: flex; + align-items: center; + margin-left: 12px; + margin-right: 12px; + white-space: nowrap; + font-weight: var(--n-font-weight); + `),R("title-position-left",[z("line",[R("left",{width:"28px"})])]),R("title-position-right",[z("line",[R("right",{width:"28px"})])]),R("dashed",[z("line",` + background-color: #0000; + height: 0px; + width: 100%; + border-style: dashed; + border-width: 1px 0 0; + `)]),R("vertical",` + display: inline-block; + height: 1em; + margin: 0 8px; + vertical-align: middle; + width: 1px; + `),z("line",` + border: none; + transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); + height: 1px; + width: 100%; + margin: 0; + `),at("dashed",[z("line",{backgroundColor:"var(--n-color)"})]),R("dashed",[z("line",{borderColor:"var(--n-color)"})]),R("vertical",{backgroundColor:"var(--n-color)"})]),xb=Object.assign(Object.assign({},Re.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Py=re({name:"Divider",props:xb,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Divider","-divider",bb,gb,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{color:l,textColor:d,fontWeight:c}}=r.value;return{"--n-bezier":s,"--n-color":l,"--n-text-color":d,"--n-font-weight":c}}),i=o?lt("divider",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:r,dashed:n,cssVars:i,mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{role:"separator",class:[`${s}-divider`,this.themeClass,{[`${s}-divider--vertical`]:r,[`${s}-divider--no-title`]:!t.default,[`${s}-divider--dashed`]:n,[`${s}-divider--title-position-${o}`]:t.default&&o}],style:i},r?null:a("div",{class:`${s}-divider__line ${s}-divider__line--left`}),!r&&t.default?a(Gt,null,a("div",{class:`${s}-divider__title`},this.$slots),a("div",{class:`${s}-divider__line ${s}-divider__line--right`})):null)}});function yc(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:s,dividerColor:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:s,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeSize:"22px",closeIconSize:"18px",closeColorHover:d,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}}const Cb={name:"Drawer",common:dt,peers:{Scrollbar:To},self:yc},yb={name:"Drawer",common:De,peers:{Scrollbar:no},self:yc},wb=re({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=O(!!e.show),o=O(null),r=Ee(bi);let n=0,i="",s=null;const l=O(!1),d=O(!1),c=C(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:f}=Qe(e),v=jt("Drawer",f,u),p=w,h=T=>{d.value=!0,n=c.value?T.clientY:T.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",$),document.body.addEventListener("mouseleave",p),document.body.addEventListener("mouseup",w)},g=()=>{s!==null&&(window.clearTimeout(s),s=null),d.value?l.value=!0:s=window.setTimeout(()=>{l.value=!0},300)},b=()=>{s!==null&&(window.clearTimeout(s),s=null),l.value=!1},{doUpdateHeight:y,doUpdateWidth:x}=r,F=T=>{const{maxWidth:A}=e;if(A&&T>A)return A;const{minWidth:N}=e;return N&&T{const{maxHeight:A}=e;if(A&&T>A)return A;const{minHeight:N}=e;return N&&T{e.show&&(t.value=!0)}),gt(()=>e.show,T=>{T||w()}),bo(()=>{w()});const k=C(()=>{const{show:T}=e,A=[[Eo,T]];return e.showMask||A.push([Lo,e.onClickoutside,void 0,{capture:!0}]),A});function D(){var T;t.value=!1,(T=e.onAfterLeave)===null||T===void 0||T.call(e)}return ps(C(()=>e.blockScroll&&t.value)),et(pn,o),et(Vr,null),et(gn,null),{bodyRef:o,rtlEnabled:v,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:C(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:D,bodyDirectives:k,handleMousedownResizeTrigger:h,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:b,isDragging:d,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?uo(a("div",{role:"none"},a(fi,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>a(qt,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>uo(a("div",co(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?a("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?a("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):a(Ut,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Eo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Sb,cubicBezierEaseOut:kb}=Co;function Rb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[S(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Sb}`}),S(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${kb}`}),S(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),S(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:zb,cubicBezierEaseOut:Pb}=Co;function $b({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[S(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${zb}`}),S(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Pb}`}),S(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),S(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:Tb,cubicBezierEaseOut:Fb}=Co;function Ib({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[S(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Tb}`}),S(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Fb}`}),S(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),S(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),S(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),S(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:Bb,cubicBezierEaseOut:Ob}=Co;function Mb({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[S(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Bb}`}),S(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Ob}`}),S(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),S(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),S(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),S(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const Db=S([m("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[Ib(),$b(),Mb(),Rb(),R("unselectable",` + user-select: none; + -webkit-user-select: none; + `),R("native-scrollbar",[m("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),z("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[R("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),m("drawer-content-wrapper",` + box-sizing: border-box; + `),m("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[R("native-scrollbar",[m("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),m("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),m("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),m("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[z("main",` + flex: 1; + `),z("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),m("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),R("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[z("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),R("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[z("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),R("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[z("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),R("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[z("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),S("body",[S(">",[m("drawer-container",` + position: fixed; + `)])]),m("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[S("> *",` + pointer-events: all; + `)]),m("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[R("invisible",` + background-color: rgba(0, 0, 0, 0) + `),wn({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),Ab=Object.assign(Object.assign({},Re.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),$y=re({name:"Drawer",inheritAttrs:!1,props:Ab,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:r}=Qe(e),n=Yo(),i=Re("Drawer","-drawer",Db,Cb,e,t),s=O(e.defaultWidth),l=O(e.defaultHeight),d=$t(fe(e,"width"),s),c=$t(fe(e,"height"),l),u=C(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":_t(d.value)}),f=C(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":_t(c.value)}),v=w=>{const{onUpdateWidth:k,"onUpdate:width":D}=e;k&&ae(k,w),D&&ae(D,w),s.value=w},p=w=>{const{onUpdateHeight:k,"onUpdate:width":D}=e;k&&ae(k,w),D&&ae(D,w),l.value=w},h=C(()=>[{width:u.value,height:f.value},e.drawerStyle||""]);function g(w){const{onMaskClick:k,maskClosable:D}=e;D&&F(!1),k&&k(w)}function b(w){g(w)}const y=vs();function x(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&bs(w)&&(y.value||F(!1))}function F(w){const{onHide:k,onUpdateShow:D,"onUpdate:show":T}=e;D&&ae(D,w),T&&ae(T,w),k&&!w&&ae(k,w)}et(bi,{isMountedRef:n,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:F,doUpdateHeight:p,doUpdateWidth:v});const P=C(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:D},self:{color:T,textColor:A,boxShadow:N,lineHeight:B,headerPadding:E,footerPadding:K,borderRadius:L,bodyPadding:te,titleFontSize:U,titleTextColor:ie,titleFontWeight:be,headerBorderBottom:ce,footerBorderTop:V,closeIconColor:_,closeIconColorHover:I,closeIconColorPressed:j,closeColorHover:J,closeColorPressed:se,closeIconSize:xe,closeSize:Ie,closeBorderRadius:H,resizableTriggerColorHover:Pe}}=i.value;return{"--n-line-height":B,"--n-color":T,"--n-border-radius":L,"--n-text-color":A,"--n-box-shadow":N,"--n-bezier":w,"--n-bezier-out":D,"--n-bezier-in":k,"--n-header-padding":E,"--n-body-padding":te,"--n-footer-padding":K,"--n-title-text-color":ie,"--n-title-font-size":U,"--n-title-font-weight":be,"--n-header-border-bottom":ce,"--n-footer-border-top":V,"--n-close-icon-color":_,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":j,"--n-close-size":Ie,"--n-close-color-hover":J,"--n-close-color-pressed":se,"--n-close-icon-size":xe,"--n-close-border-radius":H,"--n-resize-trigger-color-hover":Pe}}),$=r?lt("drawer",void 0,P,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:h,handleOutsideClick:b,handleMaskClick:g,handleEsc:x,mergedTheme:i,cssVars:r?void 0:P,themeClass:$?.themeClass,onRender:$?.onRender,isMounted:n}},render(){const{mergedClsPrefix:e}=this;return a(ns,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),uo(a("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?a(qt,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?a("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,a(wb,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[hi,{zIndex:this.zIndex,enabled:this.show}]])}})}}),_b={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},Ty=re({name:"DrawerContent",props:_b,slots:Object,setup(){const e=Ee(bi,null);e||Go("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:r,bodyClass:n,bodyStyle:i,bodyContentClass:s,bodyContentStyle:l,headerClass:d,headerStyle:c,footerClass:u,footerStyle:f,scrollbarProps:v,closable:p,$slots:h}=this;return a("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},h.header||e||p?a("div",{class:[`${t}-drawer-header`,d],style:c,role:"none"},a("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},h.header!==void 0?h.header():e),p&&a(cr,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?a("div",{class:[`${t}-drawer-body`,n],style:i,role:"none"},a("div",{class:[`${t}-drawer-body-content-wrapper`,s],style:l,role:"none"},h)):a(Ut,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},v,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,s],contentStyle:l}),h),h.footer?a("div",{class:[`${t}-drawer-footer`,u],style:f,role:"none"},h.footer()):null)}}),Hb={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},Eb={name:"DynamicInput",common:De,peers:{Input:yo,Button:po},self(){return Hb}},wc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Sc={name:"Space",self(){return wc}};function Lb(){return wc}const kc={name:"Space",self:Lb};let Ra;function Nb(){if(!xo)return!0;if(Ra===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Ra=t}return Ra}const jb=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Vb=re({name:"Space",props:jb,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Re("Space","-space",void 0,kc,e,t),n=jt("Space",o,t);return{useGap:Nb(),rtlEnabled:n,mergedClsPrefix:t,margin:C(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[le("gap",i)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Dt(d),vertical:Dt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,itemClass:i,itemStyle:s,margin:l,wrap:d,mergedClsPrefix:c,rtlEnabled:u,useGap:f,wrapItem:v,internalUseGap:p}=this,h=Ro(mn(this),!1);if(!h.length)return null;const g=`${l.horizontal}px`,b=`${l.horizontal/2}px`,y=`${l.vertical}px`,x=`${l.vertical/2}px`,F=h.length-1,P=n.startsWith("space-");return a("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(n)?`flex-${n}`:n,flexWrap:!d||e?"nowrap":"wrap",marginTop:f||e?"":`-${x}`,marginBottom:f||e?"":`-${x}`,alignItems:o,gap:f?`${l.vertical}px ${l.horizontal}px`:""}},!v&&(f||p)?h:h.map(($,w)=>$.type===ci?$:a("div",{role:"none",class:i,style:[s,{maxWidth:"100%"},f?"":e?{marginBottom:w!==F?y:""}:u?{marginLeft:P?n==="space-between"&&w===F?"":b:w!==F?g:"",marginRight:P?n==="space-between"&&w===0?"":b:"",paddingTop:x,paddingBottom:x}:{marginRight:P?n==="space-between"&&w===F?"":b:w!==F?g:"",marginLeft:P?n==="space-between"&&w===0?"":b:"",paddingTop:x,paddingBottom:x}]},$)))}}),Wb={name:"DynamicTags",common:De,peers:{Input:yo,Button:po,Tag:Ms,Space:Sc},self(){return{inputWidth:"64px"}}},Ub={name:"DynamicTags",common:dt,peers:{Input:hr,Button:vr,Tag:Ds,Space:kc},self(){return{inputWidth:"64px"}}},Kb=m("dynamic-tags",[m("input",{minWidth:"var(--n-input-width)"})]),qb=Object.assign(Object.assign(Object.assign({},Re.props),As),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Fy=re({name:"DynamicTags",props:qb,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),{localeRef:r}=$o("DynamicTags"),n=vo(e),{mergedDisabledRef:i}=n,s=O(""),l=O(!1),d=O(!0),c=O(null),u=Re("DynamicTags","-dynamic-tags",Kb,Ub,e,t),f=O(e.defaultValue),v=fe(e,"value"),p=$t(v,f),h=C(()=>r.value.add),g=C(()=>Ua(e.size)),b=C(()=>i.value||!!e.max&&p.value.length>=e.max);function y(T){const{onChange:A,"onUpdate:value":N,onUpdateValue:B}=e,{nTriggerFormInput:E,nTriggerFormChange:K}=n;A&&ae(A,T),B&&ae(B,T),N&&ae(N,T),f.value=T,E(),K()}function x(T){const A=p.value.slice(0);A.splice(T,1),y(A)}function F(T){switch(T.key){case"Enter":P()}}function P(T){const A=T??s.value;if(A){const N=p.value.slice(0);N.push(e.onCreate(A)),y(N)}l.value=!1,d.value=!0,s.value=""}function $(){P()}function w(){l.value=!0,Tt(()=>{var T;(T=c.value)===null||T===void 0||T.focus(),d.value=!1})}const k=C(()=>{const{self:{inputWidth:T}}=u.value;return{"--n-input-width":T}}),D=o?lt("dynamic-tags",void 0,k,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:h,inputSize:g,inputValue:s,showInput:l,inputForceFocused:d,mergedValue:p,mergedDisabled:i,triggerDisabled:b,handleInputKeyDown:F,handleAddClick:w,handleInputBlur:$,handleCloseClick:x,handleInputConfirm:P,mergedTheme:u,cssVars:o?void 0:k,themeClass:D?.themeClass,onRender:D?.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:o,onRender:r,renderTag:n}=this;return r?.(),a(Vb,{class:[`${o}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagClass:s,tagStyle:l,type:d,round:c,size:u,color:f,closable:v,mergedDisabled:p,showInput:h,inputValue:g,inputClass:b,inputStyle:y,inputSize:x,inputForceFocused:F,triggerDisabled:P,handleInputKeyDown:$,handleInputBlur:w,handleAddClick:k,handleCloseClick:D,handleInputConfirm:T,$slots:A}=this;return this.mergedValue.map((N,B)=>n?n(N,B):a(Vn,{key:B,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,class:s,style:l,type:d,round:c,size:u,color:f,closable:v,disabled:p,onClose:()=>{D(B)}},{default:()=>typeof N=="string"?N:N.label})).concat(h?A.input?A.input({submit:T,deactivate:w}):a(Mo,Object.assign({placeholder:"",size:x,style:y,class:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:g,onUpdateValue:N=>{this.inputValue=N},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeydown:$,onBlur:w,internalForceFocus:F})):A.trigger?A.trigger({activate:k,disabled:P}):a(At,{dashed:!0,disabled:P,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:x,onClick:k},{icon:()=>a(zt,{clsPrefix:o},{default:()=>a(yi,null)})}))}})}}),Yb={name:"Element",common:De},Rc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Gb={name:"Flex",self(){return Rc}};function Xb(){return Rc}const Zb={self:Xb},Qb=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Iy=re({name:"Flex",props:Qb,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Qe(e),r=Re("Flex","-flex",void 0,Zb,e,t);return{rtlEnabled:jt("Flex",o,t),mergedClsPrefix:t,margin:C(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[le("gap",i)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Dt(d),vertical:Dt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,margin:i,wrap:s,mergedClsPrefix:l,rtlEnabled:d}=this,c=Ro(mn(this),!1);return c.length?a("div",{role:"none",class:[`${l}-flex`,d&&`${l}-flex--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:n,flexWrap:!s||e?"nowrap":"wrap",alignItems:o,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),Jb={name:"ButtonGroup",common:De},e0={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function zc(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:s,lineHeight:l,textColor3:d}=e;return Object.assign(Object.assign({},e0),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:l,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:s,feedbackTextColor:d})}const Pc={common:dt,self:zc},t0={name:"Form",common:De,self:zc},o0={name:"GradientText",common:De,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:s,successColorSuppl:l,warningColorSuppl:d,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:i,colorEndInfo:u,colorStartWarning:r,colorEndWarning:d,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:l}}};function r0(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:s}=e;return{fontWeight:s,rotate:"252deg",colorStartPrimary:Se(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Se(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Se(r,{alpha:.6}),colorEndWarning:r,colorStartError:Se(n,{alpha:.6}),colorEndError:n,colorStartSuccess:Se(o,{alpha:.6}),colorEndSuccess:o}}const n0={common:dt,self:r0},a0={name:"InputNumber",common:De,peers:{Button:po,Input:yo},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function i0(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const l0={name:"InputNumber",common:dt,peers:{Button:vr,Input:hr},self:i0};function s0(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const d0={name:"InputOtp",common:De,peers:{Input:yo},self:s0},c0={name:"Layout",common:De,peers:{Scrollbar:no},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:s,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:qe(o,s),siderToggleBarColorHover:qe(o,l),__invertScrollbar:"false"}}};function u0(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:s,scrollbarColor:l,scrollbarColorHover:d,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:s,headerColor:n,headerColorInverted:c,footerColor:s,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:qe(r,l),siderToggleBarColorHover:qe(r,d),__invertScrollbar:"true"}}const ji={name:"Layout",common:dt,peers:{Scrollbar:To},self:u0},f0={name:"Row",common:De};function h0(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:s,fontSize:l,hoverColor:d}=e;return{textColor:t,color:o,colorHover:d,colorModal:r,colorHoverModal:qe(r,d),colorPopover:n,colorHoverPopover:qe(n,d),borderColor:i,borderColorModal:qe(r,i),borderColorPopover:qe(n,i),borderRadius:s,fontSize:l}}const v0={name:"List",common:De,self:h0},p0={name:"Log",common:De,peers:{Scrollbar:no,Code:id},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},g0={name:"Mention",common:De,peers:{InternalSelectMenu:kn,Input:yo},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function m0(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function $c(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:s,dividerColor:l,hoverColor:d,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:d,itemColorActive:Se(r,{alpha:.1}),itemColorActiveHover:Se(r,{alpha:.1}),itemColorActiveCollapsed:Se(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:s,dividerColor:l},m0("#BBB",r,"#FFF","#AAA"))}const b0={name:"Menu",common:dt,peers:{Tooltip:Bi,Dropdown:Fi},self:$c},x0={name:"Menu",common:De,peers:{Tooltip:ra,Dropdown:Ii},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=$c(e);return r.itemColorActive=Se(t,{alpha:.15}),r.itemColorActiveHover=Se(t,{alpha:.15}),r.itemColorActiveCollapsed=Se(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}},C0={titleFontSize:"18px",backSize:"22px"};function y0(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:s,primaryColorPressed:l}=e;return Object.assign(Object.assign({},C0),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:s,backColorPressed:l,subtitleTextColor:r})}const w0={name:"PageHeader",common:De,self:y0},S0={iconSize:"22px"};function k0(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},S0),{fontSize:t,iconColor:o})}const R0={name:"Popconfirm",common:De,peers:{Button:po,Popover:Tr},self:k0};function z0(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:s,fontSize:l,fontWeight:d}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:d,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Tc={name:"Progress",common:De,self(e){const t=z0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},P0={name:"Rate",common:De,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},$0={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Fc(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:s,lineHeight:l,fontWeightStrong:d}=e;return Object.assign(Object.assign({},$0),{lineHeight:l,titleFontWeight:d,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:s})}const T0={common:dt,self:Fc},F0={name:"Result",common:De,self:Fc},I0={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},B0={name:"Slider",common:De,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:s,cardColor:l,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},I0),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:s,indicatorBorderRadius:d,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}};function Ic(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:s,primaryColor:l,fontSize:d}=e;return{fontSize:d,textColor:l,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:s,color:l,opacitySpinning:t}}const O0={common:dt,self:Ic},M0={name:"Spin",common:De,self:Ic};function D0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const A0={name:"Statistic",common:De,self:D0},_0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function H0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:s,textColor2:l}=e;return Object.assign(Object.assign({},_0),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:s,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})}const E0={name:"Steps",common:De,self:H0},Bc={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},L0={name:"Switch",common:De,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:s}=e;return Object.assign(Object.assign({},Bc),{iconColor:s,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`})}};function N0(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return Object.assign(Object.assign({},Bc),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${Se(t,{alpha:.2})}`})}const j0={common:dt,self:N0},V0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function W0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:s,textColor1:l,textColor2:d,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},V0),{fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,lineHeight:f,borderRadius:c,borderColor:qe(o,t),borderColorModal:qe(r,t),borderColorPopover:qe(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:qe(o,s),tdColorStripedModal:qe(r,s),tdColorStripedPopover:qe(n,s),thColor:qe(o,i),thColorModal:qe(r,i),thColorPopover:qe(n,i),thTextColor:l,tdTextColor:d,thFontWeight:u})}const U0={name:"Table",common:De,self:W0},K0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Oc(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,tabColor:c,baseColor:u,dividerColor:f,fontWeight:v,textColor1:p,borderRadius:h,fontSize:g,fontWeightStrong:b}=e;return Object.assign(Object.assign({},K0),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:v,tabFontWeight:v,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:b})}const q0={common:dt,self:Oc},Y0={name:"Tabs",common:De,self(e){const t=Oc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function G0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const X0={name:"Thing",common:De,self:G0},Z0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},Q0={name:"Timeline",common:De,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:s,textColor2:l,railColor:d,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},Z0),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:s,contentTextColor:l,metaTextColor:t,lineColor:d})}},J0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},ex={name:"Transfer",common:De,peers:{Checkbox:Ur,Scrollbar:no,Input:yo,Empty:$r,Button:po},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:s,borderRadius:l,inputColor:d,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:v,textColor3:p,hoverColor:h,closeColorHover:g,closeColorPressed:b,closeIconColor:y,closeIconColorHover:x,closeIconColorPressed:F,dividerColor:P}=e;return Object.assign(Object.assign({},J0),{itemHeightSmall:s,itemHeightMedium:s,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:l,dividerColor:P,borderColor:"#0000",listColor:d,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:v,itemTextColorDisabled:f,itemColorPending:h,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:y,closeIconColorHover:x,closeIconColorPressed:F})}};function Mc(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:s,textColor2:l,textColorDisabled:d,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Se(i,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:d,loadingColor:i,dropMarkColor:i,lineColor:o}}const tx={name:"Tree",common:dt,peers:{Checkbox:zi,Scrollbar:To,Empty:Sn},self:Mc},Dc={name:"Tree",common:De,peers:{Checkbox:Ur,Scrollbar:no,Empty:$r},self(e){const{primaryColor:t}=e,o=Mc(e);return o.nodeColorActive=Se(t,{alpha:.15}),o}},ox={name:"TreeSelect",common:De,peers:{Tree:Dc,Empty:$r,InternalSelection:ki}},rx={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Ac(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:s,dividerColor:l,fontWeightStrong:d,textColor1:c,textColor3:u,infoColor:f,warningColor:v,errorColor:p,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},rx),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:s,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:d,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:v,headerBarColorSuccess:h,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:h,textColorWarning:v,textColorError:p,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const Vi={common:dt,self:Ac},nx={name:"Typography",common:De,self:Ac};function ax(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:s,actionColor:l,borderColor:d,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:v}=e;return{fontSize:v,lineHeight:u,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${d}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:Se(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${d}`}}const ix={name:"Upload",common:De,peers:{Button:po,Progress:Tc},self(e){const{errorColor:t}=e,o=ax(e);return o.itemColorHoverError=Se(t,{alpha:.09}),o}},lx={name:"Watermark",common:De,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},sx={name:"Watermark",common:dt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},dx={name:"FloatButton",common:De,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:s,primaryColorPressed:l,baseColor:d,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:s,colorPrimaryPressed:l,textColorPrimary:d,borderRadiusSquare:c}}},zn="n-form",_c="n-form-item-insts",cx=m("form",[R("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[m("form-item",{width:"auto",marginRight:"18px"},[S("&:last-child",{marginRight:0})])])]);var ux=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const fx=Object.assign(Object.assign({},Re.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),By=re({name:"Form",props:fx,setup(e){const{mergedClsPrefixRef:t}=Qe(e);Re("Form","-form",cx,Pc,e,t);const o={},r=O(void 0),n=d=>{const c=r.value;(c===void 0||d>=c)&&(r.value=d)};function i(d){return ux(this,arguments,void 0,function*(c,u=()=>!0){return yield new Promise((f,v)=>{const p=[];for(const h of zo(o)){const g=o[h];for(const b of g)b.path&&p.push(b.internalValidate(null,u))}Promise.all(p).then(h=>{const g=h.some(x=>!x.valid),b=[],y=[];h.forEach(x=>{var F,P;!((F=x.errors)===null||F===void 0)&&F.length&&b.push(x.errors),!((P=x.warnings)===null||P===void 0)&&P.length&&y.push(x.warnings)}),c&&c(b.length?b:void 0,{warnings:y.length?y:void 0}),g?v(b.length?b:void 0):f({warnings:y.length?y:void 0})})})})}function s(){for(const d of zo(o)){const c=o[d];for(const u of c)u.restoreValidation()}}return et(zn,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:n}),et(_c,{formItems:o}),Object.assign({validate:i,restoreValidation:s},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return a("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}}),{cubicBezierEaseInOut:_l}=Co;function hx({name:e="fade-down",fromOffset:t="-4px",enterDuration:o=".3s",leaveDuration:r=".3s",enterCubicBezier:n=_l,leaveCubicBezier:i=_l}={}){return[S(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),S(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),S(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),S(`&.${e}-transition-enter-active`,{transition:`opacity ${o} ${n}, transform ${o} ${n}`})]}const vx=m("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[m("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + font-weight: var(--n-label-font-weight); + `,[z("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),z("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),m("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),R("auto-label-width",[m("form-item-label","white-space: nowrap;")]),R("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: flex-start; + `,[m("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[R("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),R("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),R("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),R("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),z("text",` + grid-area: text; + `),z("asterisk",` + grid-area: mark; + align-self: end; + `)])]),R("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[R("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),m("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),m("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),m("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[S("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),m("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[R("warning",{color:"var(--n-feedback-text-color-warning)"}),R("error",{color:"var(--n-feedback-text-color-error)"}),hx({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function px(e){const t=Ee(zn,null);return{mergedSize:C(()=>e.size!==void 0?e.size:t?.props.size!==void 0?t.props.size:"medium")}}function gx(e){const t=Ee(zn,null),o=C(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t?.props.labelPlacement?t.props.labelPlacement:"top"}),r=C(()=>o.value==="left"&&(e.labelWidth==="auto"||t?.props.labelWidth==="auto")),n=C(()=>{if(o.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return _t(h);if(r.value){const g=t?.maxChildLabelWidthRef.value;return g!==void 0?_t(g):void 0}if(t?.props.labelWidth!==void 0)return _t(t.props.labelWidth)}),i=C(()=>{const{labelAlign:h}=e;if(h)return h;if(t?.props.labelAlign)return t.props.labelAlign}),s=C(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),l=C(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t?.props.showRequireMark}),d=C(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:t?.props.requireMarkPlacement||"right"}),c=O(!1),u=O(!1),f=C(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(u.value)return"warning"}),v=C(()=>{const{showFeedback:h}=e;return h!==void 0?h:t?.props.showFeedback!==void 0?t.props.showFeedback:!0}),p=C(()=>{const{showLabel:h}=e;return h!==void 0?h:t?.props.showLabel!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:s,mergedLabelPlacement:o,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:d,mergedValidationStatus:f,mergedShowFeedback:v,mergedShowLabel:p,isAutoLabelWidth:r}}function mx(e){const t=Ee(zn,null),o=C(()=>{const{rulePath:s}=e;if(s!==void 0)return s;const{path:l}=e;if(l!==void 0)return l}),r=C(()=>{const s=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?s.push(...l):s.push(l)),t){const{rules:d}=t.props,{value:c}=o;if(d!==void 0&&c!==void 0){const u=Kn(d,c);u!==void 0&&(Array.isArray(u)?s.push(...u):s.push(u))}}return s}),n=C(()=>r.value.some(s=>s.required)),i=C(()=>n.value||e.required);return{mergedRules:r,mergedRequired:i}}var Hl=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const Wi=Object.assign(Object.assign({},Re.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]}),bx=zo(Wi);function El(e,t){return(...o)=>{try{const r=e(...o);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||void 0,!0)}catch{return}}}const xx=re({name:"FormItem",props:Wi,setup(e){Ju(_c,"formItems",fe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Ee(zn,null),n=px(e),i=gx(e),{validationErrored:s,validationWarned:l}=i,{mergedRequired:d,mergedRules:c}=mx(e),{mergedSize:u}=n,{mergedLabelPlacement:f,mergedLabelAlign:v,mergedRequireMarkPlacement:p}=i,h=O([]),g=O(qo()),b=r?fe(r.props,"disabled"):O(!1),y=Re("Form","-form-item",vx,Pc,e,t);gt(fe(e,"path"),()=>{e.ignorePathChange||x()});function x(){h.value=[],s.value=!1,l.value=!1,e.feedback&&(g.value=qo())}const F=(...K)=>Hl(this,[...K],void 0,function*(L=null,te=()=>!0,U={suppressWarning:!0}){const{path:ie}=e;U?U.first||(U.first=e.first):U={};const{value:be}=c,ce=r?Kn(r.props.model,ie||""):void 0,V={},_={},I=(L?be.filter(_e=>Array.isArray(_e.trigger)?_e.trigger.includes(L):_e.trigger===L):be).filter(te).map((_e,Ge)=>{const Xe=Object.assign({},_e);if(Xe.validator&&(Xe.validator=El(Xe.validator,!1)),Xe.asyncValidator&&(Xe.asyncValidator=El(Xe.asyncValidator,!0)),Xe.renderMessage){const ct=`__renderMessage__${Ge}`;_[ct]=Xe.message,Xe.message=ct,V[ct]=Xe.renderMessage}return Xe}),j=I.filter(_e=>_e.level!=="warning"),J=I.filter(_e=>_e.level==="warning"),se={valid:!0,errors:void 0,warnings:void 0};if(!I.length)return se;const xe=ie??"__n_no_path__",Ie=new tl({[xe]:j}),H=new tl({[xe]:J}),{validateMessages:Pe}=r?.props||{};Pe&&(Ie.messages(Pe),H.messages(Pe));const He=_e=>{h.value=_e.map(Ge=>{const Xe=Ge?.message||"";return{key:Xe,render:()=>Xe.startsWith("__renderMessage__")?V[Xe]():Xe}}),_e.forEach(Ge=>{var Xe;!((Xe=Ge.message)===null||Xe===void 0)&&Xe.startsWith("__renderMessage__")&&(Ge.message=_[Ge.message])})};if(j.length){const _e=yield new Promise(Ge=>{Ie.validate({[xe]:ce},U,Ge)});_e?.length&&(se.valid=!1,se.errors=_e,He(_e))}if(J.length&&!se.errors){const _e=yield new Promise(Ge=>{H.validate({[xe]:ce},U,Ge)});_e?.length&&(He(_e),se.warnings=_e)}return!se.errors&&!se.warnings?x():(s.value=!!se.errors,l.value=!!se.warnings),se});function P(){F("blur")}function $(){F("change")}function w(){F("focus")}function k(){F("input")}function D(K,L){return Hl(this,void 0,void 0,function*(){let te,U,ie,be;return typeof K=="string"?(te=K,U=L):K!==null&&typeof K=="object"&&(te=K.trigger,U=K.callback,ie=K.shouldRuleBeApplied,be=K.options),yield new Promise((ce,V)=>{F(te,ie,be).then(({valid:_,errors:I,warnings:j})=>{_?(U&&U(void 0,{warnings:j}),ce({warnings:j})):(U&&U(I,{warnings:j}),V(I))})})})}et(qa,{path:fe(e,"path"),disabled:b,mergedSize:n.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:x,handleContentBlur:P,handleContentChange:$,handleContentFocus:w,handleContentInput:k});const T={validate:D,restoreValidation:x,internalValidate:F},A=O(null);to(()=>{if(!i.isAutoLabelWidth.value)return;const K=A.value;if(K!==null){const L=K.style.whiteSpace;K.style.whiteSpace="nowrap",K.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(K).width.slice(0,-2))),K.style.whiteSpace=L}});const N=C(()=>{var K;const{value:L}=u,{value:te}=f,U=te==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:ie},self:{labelTextColor:be,asteriskColor:ce,lineHeight:V,feedbackTextColor:_,feedbackTextColorWarning:I,feedbackTextColorError:j,feedbackPadding:J,labelFontWeight:se,[le("labelHeight",L)]:xe,[le("blankHeight",L)]:Ie,[le("feedbackFontSize",L)]:H,[le("feedbackHeight",L)]:Pe,[le("labelPadding",U)]:He,[le("labelTextAlign",U)]:_e,[le(le("labelFontSize",te),L)]:Ge}}=y.value;let Xe=(K=v.value)!==null&&K!==void 0?K:_e;return te==="top"&&(Xe=Xe==="right"?"flex-end":"flex-start"),{"--n-bezier":ie,"--n-line-height":V,"--n-blank-height":Ie,"--n-label-font-size":Ge,"--n-label-text-align":Xe,"--n-label-height":xe,"--n-label-padding":He,"--n-label-font-weight":se,"--n-asterisk-color":ce,"--n-label-text-color":be,"--n-feedback-padding":J,"--n-feedback-font-size":H,"--n-feedback-height":Pe,"--n-feedback-text-color":_,"--n-feedback-text-color-warning":I,"--n-feedback-text-color-error":j}}),B=o?lt("form-item",C(()=>{var K;return`${u.value[0]}${f.value[0]}${((K=v.value)===null||K===void 0?void 0:K[0])||""}`}),N,e):void 0,E=C(()=>f.value==="left"&&p.value==="left"&&v.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:A,mergedClsPrefix:t,mergedRequired:d,feedbackId:g,renderExplains:h,reverseColSpace:E},i),n),T),{cssVars:o?void 0:N,themeClass:B?.themeClass,onRender:B?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:o,mergedShowRequireMark:r,mergedRequireMarkPlacement:n,onRender:i}=this,s=r!==void 0?r:this.mergedRequired;i?.();const l=()=>{const d=this.$slots.label?this.$slots.label():this.label;if(!d)return null;const c=a("span",{class:`${t}-form-item-label__text`},d),u=s?a("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&a("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:f}=this;return a("label",Object.assign({},f,{class:[f?.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[u,c]:[c,u])};return a("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!o&&`${t}-form-item--no-label`],style:this.cssVars},o&&l(),a("div",{class:[`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?a("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},a(qt,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:d}=this;return mt(e.feedback,c=>{var u;const{feedback:f}=this,v=c||f?a("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:p,render:h})=>a("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return v?d==="warning"?a("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},v):d==="error"?a("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},v):d==="success"?a("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},v):a("div",{key:"controlled-default",class:`${t}-form-item-feedback`},v):null})}})):null)}}),Ll=1,Hc="n-grid",Ec=1,Ui={span:{type:[Number,String],default:Ec},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},Cx=zo(Ui),yx=re({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ui,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:r,layoutShiftDisabledRef:n}=Ee(Hc),i=di();return{overflow:r,itemStyle:o,layoutShiftDisabled:n,mergedXGap:C(()=>Et(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:s=Ec,privateShow:l=!0,privateColStart:d=void 0,privateOffset:c=0}=i.vnode.props,{value:u}=t,f=Et(u||0);return{display:l?"":"none",gridColumn:`${d??`span ${s}`} / span ${s}`,marginLeft:c?`calc((100% - (${s} - 1) * ${f}) / ${s} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:r,mergedXGap:n}=this;return a("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:r?`calc((100% - (${o} - 1) * ${n}) / ${o} * ${r} + ${n} * ${r})`:""}},this.$slots)}return a("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),wx=Object.assign(Object.assign({},Ui),Wi),Oy=re({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:wx,setup(){const e=O(null);return{formItemInstRef:e,validate:(...r)=>{const{value:n}=e;if(n)return n.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return a(yx,mo(this.$.vnode.props||{},Cx),{default:()=>{const e=mo(this.$props,bx);return a(xx,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),My=re({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Ee(Po,null),{body:t}=document,{style:o}=t;let r=!1,n=!0;hn(()=>{Ft(()=>{var i,s;const{textColor2:l,fontSize:d,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:f,lineHeight:v}=e?Mr({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||dt,(s=e.mergedThemeOverridesRef.value)===null||s===void 0?void 0:s.common):dt;if(r||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=u,o.color=l,o.fontSize=d,o.fontFamily=c,o.lineHeight=v;const p=`color .3s ${f}, background-color .3s ${f}`;n?setTimeout(()=>{o.transition=p},0):o.transition=p,t.setAttribute("n-styled",""),r=!0,n=!1}})}),Jn(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Sx=m("gradient-text",` + display: inline-block; + font-weight: var(--n-font-weight); + -webkit-background-clip: text; + background-clip: text; + color: #0000; + white-space: nowrap; + background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier); +`),kx=Object.assign(Object.assign({},Re.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Dy=re({name:"GradientText",props:kx,setup(e){tf();const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=C(()=>{const{type:c}=e;return c==="danger"?"error":c}),n=C(()=>{let c=e.size||e.fontSize;return c&&(c=_t(c)),c||void 0}),i=C(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const u=c.deg||0,f=c.from,v=c.to;return`linear-gradient(${u}deg, ${f} 0%, ${v} 100%)`}}),s=Re("GradientText","-gradient-text",Sx,n0,e,t),l=C(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:u},self:{rotate:f,[le("colorStart",c)]:v,[le("colorEnd",c)]:p,fontWeight:h}}=s.value;return{"--n-bezier":u,"--n-rotate":f,"--n-color-start":v,"--n-color-end":p,"--n-font-weight":h}}),d=o?lt("gradient-text",C(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:n,styleBgImage:i,cssVars:o?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t?.(),a("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Rx={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Lc=24,za="__ssr__",zx={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:Lc},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Ay=re({name:"Grid",inheritAttrs:!1,props:zx,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=Qe(e),r=/^\d+$/,n=O(void 0),i=Lu(o?.value||Rx),s=tt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=C(()=>{if(s.value)return e.responsive==="self"?n.value:i.value}),d=tt(()=>{var y;return(y=Number(Fr(e.cols.toString(),l.value)))!==null&&y!==void 0?y:Lc}),c=tt(()=>Fr(e.xGap.toString(),l.value)),u=tt(()=>Fr(e.yGap.toString(),l.value)),f=y=>{n.value=y.contentRect.width},v=y=>{Na(f,y)},p=O(!1),h=C(()=>{if(e.responsive==="self")return v}),g=O(!1),b=O();return to(()=>{const{value:y}=b;y&&y.hasAttribute(za)&&(y.removeAttribute(za),g.value=!0)}),et(Hc,{layoutShiftDisabledRef:fe(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:fe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!xo,contentEl:b,mergedClsPrefix:t,style:C(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Et(e.xGap),rowGap:Et(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${d.value}, minmax(0, 1fr))`,columnGap:Et(c.value),rowGap:Et(u.value)}),isResponsive:s,responsiveQuery:l,responsiveCols:d,handleResize:h,overflow:p}},render(){if(this.layoutShiftDisabled)return a("div",co({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,r,n,i,s,l;this.overflow=!1;const d=Ro(mn(this)),c=[],{collapsed:u,collapsedRows:f,responsiveCols:v,responsiveQuery:p}=this;d.forEach(x=>{var F,P,$,w,k;if(((F=x?.type)===null||F===void 0?void 0:F.__GRID_ITEM__)!==!0)return;if(cf(x)){const A=an(x);A.props?A.props.privateShow=!1:A.props={privateShow:!1},c.push({child:A,rawChildSpan:0});return}x.dirs=((P=x.dirs)===null||P===void 0?void 0:P.filter(({dir:A})=>A!==Eo))||null,(($=x.dirs)===null||$===void 0?void 0:$.length)===0&&(x.dirs=null);const D=an(x),T=Number((k=Fr((w=D.props)===null||w===void 0?void 0:w.span,p))!==null&&k!==void 0?k:Ll);T!==0&&c.push({child:D,rawChildSpan:T})});let h=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g?.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(h=Number((n=Fr((r=g.props)===null||r===void 0?void 0:r.span,p))!==null&&n!==void 0?n:Ll),g.props.privateSpan=h,g.props.privateColStart=v+1-h,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let b=0,y=!1;for(const{child:x,rawChildSpan:F}of c){if(y&&(this.overflow=!0),!y){const P=Number((l=Fr((s=x.props)===null||s===void 0?void 0:s.offset,p))!==null&&l!==void 0?l:0),$=Math.min(F+P,v);if(x.props?(x.props.privateSpan=$,x.props.privateOffset=P):x.props={privateSpan:$,privateOffset:P},u){const w=b%v;$+w>v&&(b+=v-w),$+b+h>f*v?y=!0:b+=$}}y&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return a("div",co({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[za]:this.isSsr||void 0},this.$attrs),c.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?a(_o,{onResize:this.handleResize},{default:e}):e()}});function Px(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:s,cardColor:l,buttonColor2Hover:d}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:l,textColor:s,mininumColor:d,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const $x={name:"Heatmap",common:De,self(e){const t=Px(e);return Object.assign(Object.assign({},t),{activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"})}};function Tx(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const Fx={name:"IconWrapper",common:De,self:Tx},Ix={name:"Image",common:De,peers:{Tooltip:ra},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Bx=S([m("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),m("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]);function Ox(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Mx(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function Pa(e){return e==null?!0:!Number.isNaN(e)}function Nl(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function $a(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const jl=800,Vl=100,Dx=Object.assign(Object.assign({},Re.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),_y=re({name:"InputNumber",props:Dx,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:r}=Qe(e),n=Re("InputNumber","-input-number",Bx,l0,e,o),{localeRef:i}=$o("InputNumber"),s=vo(e),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:c}=s,u=O(null),f=O(null),v=O(null),p=O(e.defaultValue),h=fe(e,"value"),g=$t(h,p),b=O(""),y=Ce=>{const ee=String(Ce).split(".")[1];return ee?ee.length:0},x=Ce=>{const ee=[e.min,e.max,e.step,Ce].map(ue=>ue===void 0?0:y(ue));return Math.max(...ee)},F=tt(()=>{const{placeholder:Ce}=e;return Ce!==void 0?Ce:i.value.placeholder}),P=tt(()=>{const Ce=$a(e.step);return Ce!==null?Ce===0?1:Math.abs(Ce):1}),$=tt(()=>{const Ce=$a(e.min);return Ce!==null?Ce:null}),w=tt(()=>{const Ce=$a(e.max);return Ce!==null?Ce:null}),k=()=>{const{value:Ce}=g;if(Pa(Ce)){const{format:ee,precision:ue}=e;ee?b.value=ee(Ce):Ce===null||ue===void 0||y(Ce)>ue?b.value=Nl(Ce,void 0):b.value=Nl(Ce,ue)}else b.value=String(Ce)};k();const D=Ce=>{const{value:ee}=g;if(Ce===ee){k();return}const{"onUpdate:value":ue,onUpdateValue:q,onChange:Q}=e,{nTriggerFormInput:pe,nTriggerFormChange:we}=s;Q&&ae(Q,Ce),q&&ae(q,Ce),ue&&ae(ue,Ce),p.value=Ce,pe(),we()},T=({offset:Ce,doUpdateIfValid:ee,fixPrecision:ue,isInputing:q})=>{const{value:Q}=b;if(q&&Mx(Q))return!1;const pe=(e.parse||Ox)(Q);if(pe===null)return ee&&D(null),null;if(Pa(pe)){const we=y(pe),{precision:de}=e;if(de!==void 0&&deje){if(!ee||q)return!1;me=je}if(oe!==null&&meT({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),N=tt(()=>{const{value:Ce}=g;if(e.validator&&Ce===null)return!1;const{value:ee}=P;return T({offset:-ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),B=tt(()=>{const{value:Ce}=g;if(e.validator&&Ce===null)return!1;const{value:ee}=P;return T({offset:+ee,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function E(Ce){const{onFocus:ee}=e,{nTriggerFormFocus:ue}=s;ee&&ae(ee,Ce),ue()}function K(Ce){var ee,ue;if(Ce.target===((ee=u.value)===null||ee===void 0?void 0:ee.wrapperElRef))return;const q=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(q!==!1){const we=(ue=u.value)===null||ue===void 0?void 0:ue.inputElRef;we&&(we.value=String(q||"")),g.value===q&&k()}else k();const{onBlur:Q}=e,{nTriggerFormBlur:pe}=s;Q&&ae(Q,Ce),pe(),Tt(()=>{k()})}function L(Ce){const{onClear:ee}=e;ee&&ae(ee,Ce)}function te(){const{value:Ce}=B;if(!Ce){Ie();return}const{value:ee}=g;if(ee===null)e.validator||D(ce());else{const{value:ue}=P;T({offset:ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:Ce}=N;if(!Ce){se();return}const{value:ee}=g;if(ee===null)e.validator||D(ce());else{const{value:ue}=P;T({offset:-ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const ie=E,be=K;function ce(){if(e.validator)return null;const{value:Ce}=$,{value:ee}=w;return Ce!==null?Math.max(0,Ce):ee!==null?Math.min(0,ee):0}function V(Ce){L(Ce),D(null)}function _(Ce){var ee,ue,q;!((ee=v.value)===null||ee===void 0)&&ee.$el.contains(Ce.target)&&Ce.preventDefault(),!((ue=f.value)===null||ue===void 0)&&ue.$el.contains(Ce.target)&&Ce.preventDefault(),(q=u.value)===null||q===void 0||q.activate()}let I=null,j=null,J=null;function se(){J&&(window.clearTimeout(J),J=null),I&&(window.clearInterval(I),I=null)}let xe=null;function Ie(){xe&&(window.clearTimeout(xe),xe=null),j&&(window.clearInterval(j),j=null)}function H(){se(),J=window.setTimeout(()=>{I=window.setInterval(()=>{U()},Vl)},jl),Lt("mouseup",document,se,{once:!0})}function Pe(){Ie(),xe=window.setTimeout(()=>{j=window.setInterval(()=>{te()},Vl)},jl),Lt("mouseup",document,Ie,{once:!0})}const He=()=>{j||te()},_e=()=>{I||U()};function Ge(Ce){var ee,ue;if(Ce.key==="Enter"){if(Ce.target===((ee=u.value)===null||ee===void 0?void 0:ee.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ue=u.value)===null||ue===void 0||ue.deactivate())}else if(Ce.key==="ArrowUp"){if(!B.value||e.keyboard.ArrowUp===!1)return;Ce.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&te()}else if(Ce.key==="ArrowDown"){if(!N.value||e.keyboard.ArrowDown===!1)return;Ce.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Xe(Ce){b.value=Ce,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}gt(g,()=>{k()});const ct={focus:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.focus()},blur:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.blur()},select:()=>{var Ce;return(Ce=u.value)===null||Ce===void 0?void 0:Ce.select()}},ot=jt("InputNumber",r,o);return Object.assign(Object.assign({},ct),{rtlEnabled:ot,inputInstRef:u,minusButtonInstRef:f,addButtonInstRef:v,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:p,mergedValue:g,mergedPlaceholder:F,displayedValueInvalid:A,mergedSize:l,mergedDisabled:d,displayedValue:b,addable:B,minusable:N,mergedStatus:c,handleFocus:ie,handleBlur:be,handleClear:V,handleMouseDown:_,handleAddClick:He,handleMinusClick:_e,handleAddMousedown:Pe,handleMinusMousedown:H,handleKeyDown:Ge,handleUpdateDisplayedValue:Xe,mergedTheme:n,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:C(()=>{const{self:{iconColorDisabled:Ce}}=n.value,[ee,ue,q,Q]=io(Ce);return{textColorTextDisabled:`rgb(${ee}, ${ue}, ${q})`,opacityDisabled:`${Q}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>a(Ho,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[a(zt,{clsPrefix:e},{default:()=>a(zf,null)})])}),r=()=>a(Ho,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[a(zt,{clsPrefix:e},{default:()=>a(yi,null)})])});return a("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},a(Mo,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var n;return this.showButton&&this.buttonPlacement==="both"?[o(),mt(t.prefix,i=>i?a("span",{class:`${e}-input-number-prefix`},i):null)]:(n=t.prefix)===null||n===void 0?void 0:n.call(t)},suffix:()=>{var n;return this.showButton?[mt(t.suffix,i=>i?a("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,r()]:(n=t.suffix)===null||n===void 0?void 0:n.call(t)}}))}}),Nc="n-layout-sider",Ki={type:String,default:"static"},Ax=m("layout",` + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[m("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),R("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),_x={embedded:Boolean,position:Ki,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},jc="n-layout";function Vc(e){return re({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Re.props),_x),setup(t){const o=O(null),r=O(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Qe(t),s=Re("Layout","-layout",Ax,ji,t,n);function l(g,b){if(t.nativeScrollbar){const{value:y}=o;y&&(b===void 0?y.scrollTo(g):y.scrollTo(g,b))}else{const{value:y}=r;y&&y.scrollTo(g,b)}}et(jc,t);let d=0,c=0;const u=g=>{var b;const y=g.target;d=y.scrollLeft,c=y.scrollTop,(b=t.onScroll)===null||b===void 0||b.call(t,g)};Ci(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=c,g.scrollLeft=d)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},v={scrollTo:l},p=C(()=>{const{common:{cubicBezierEaseInOut:g},self:b}=s.value;return{"--n-bezier":g,"--n-color":t.embedded?b.colorEmbedded:b.color,"--n-text-color":b.textColor}}),h=i?lt("layout",C(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:s,handleNativeElScroll:u,cssVars:i?void 0:p,themeClass:h?.themeClass,onRender:h?.onRender},v)},render(){var t;const{mergedClsPrefix:o,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return a("div",{class:i,style:this.cssVars},this.nativeScrollbar?a("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):a(Ut,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const Hy=Vc(!1),Ey=Vc(!0),Hx=m("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[R("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),R("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),Ex={position:Ki,inverted:Boolean,bordered:{type:Boolean,default:!1}},Ly=re({name:"LayoutHeader",props:Object.assign(Object.assign({},Re.props),Ex),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Layout","-layout-header",Hx,ji,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:l}=r.value,d={"--n-bezier":s};return e.inverted?(d["--n-color"]=l.headerColorInverted,d["--n-text-color"]=l.textColorInverted,d["--n-border-color"]=l.headerBorderColorInverted):(d["--n-color"]=l.headerColor,d["--n-text-color"]=l.textColor,d["--n-border-color"]=l.headerBorderColor),d}),i=o?lt("layout-header",C(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Lx=m("layout-sider",` + flex-shrink: 0; + box-sizing: border-box; + position: relative; + z-index: 1; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + min-width .3s var(--n-bezier), + max-width .3s var(--n-bezier), + transform .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-color); + display: flex; + justify-content: flex-end; +`,[R("bordered",[z("border",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 1px; + background-color: var(--n-border-color); + transition: background-color .3s var(--n-bezier); + `)]),z("left-placement",[R("bordered",[z("border",` + right: 0; + `)])]),R("right-placement",` + justify-content: flex-start; + `,[R("bordered",[z("border",` + left: 0; + `)]),R("collapsed",[m("layout-toggle-button",[m("base-icon",` + transform: rotate(180deg); + `)]),m("layout-toggle-bar",[S("&:hover",[z("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),z("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),m("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[m("base-icon",` + transform: rotate(0); + `)]),m("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[S("&:hover",[z("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),z("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),R("collapsed",[m("layout-toggle-bar",[S("&:hover",[z("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),z("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),m("layout-toggle-button",[m("base-icon",` + transform: rotate(0); + `)])]),m("layout-toggle-button",` + transition: + color .3s var(--n-bezier), + right .3s var(--n-bezier), + left .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + cursor: pointer; + width: 24px; + height: 24px; + position: absolute; + top: 50%; + right: 0; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + color: var(--n-toggle-button-icon-color); + border: var(--n-toggle-button-border); + background-color: var(--n-toggle-button-color); + box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); + transform: translateX(50%) translateY(-50%); + z-index: 1; + `,[m("base-icon",` + transition: transform .3s var(--n-bezier); + transform: rotate(180deg); + `)]),m("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[z("top, bottom",` + position: absolute; + width: 4px; + border-radius: 2px; + height: 38px; + left: 14px; + transition: + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),z("bottom",` + position: absolute; + top: 34px; + `),S("&:hover",[z("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),z("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),z("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),S("&:hover",[z("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),z("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--n-bezier); + `),m("layout-sider-scroll-container",` + flex-grow: 1; + flex-shrink: 0; + box-sizing: border-box; + height: 100%; + opacity: 0; + transition: opacity .3s var(--n-bezier); + max-width: 100%; + `),R("show-content",[m("layout-sider-scroll-container",{opacity:1})]),R("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `)]),Nx=re({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return a("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},a("div",{class:`${e}-layout-toggle-bar__top`}),a("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),jx=re({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return a("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},a(zt,{clsPrefix:e},{default:()=>a(wi,null)}))}}),Vx={position:Ki,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Ny=re({name:"LayoutSider",props:Object.assign(Object.assign({},Re.props),Vx),setup(e){const t=Ee(jc),o=O(null),r=O(null),n=O(e.defaultCollapsed),i=$t(fe(e,"collapsed"),n),s=C(()=>_t(i.value?e.collapsedWidth:e.width)),l=C(()=>e.collapseMode!=="transform"?{}:{minWidth:_t(e.width)}),d=C(()=>t?t.siderPlacement:"left");function c($,w){if(e.nativeScrollbar){const{value:k}=o;k&&(w===void 0?k.scrollTo($):k.scrollTo($,w))}else{const{value:k}=r;k&&k.scrollTo($,w)}}function u(){const{"onUpdate:collapsed":$,onUpdateCollapsed:w,onExpand:k,onCollapse:D}=e,{value:T}=i;w&&ae(w,!T),$&&ae($,!T),n.value=!T,T?k&&ae(k):D&&ae(D)}let f=0,v=0;const p=$=>{var w;const k=$.target;f=k.scrollLeft,v=k.scrollTop,(w=e.onScroll)===null||w===void 0||w.call(e,$)};Ci(()=>{if(e.nativeScrollbar){const $=o.value;$&&($.scrollTop=v,$.scrollLeft=f)}}),et(Nc,{collapsedRef:i,collapseModeRef:fe(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:g}=Qe(e),b=Re("Layout","-layout-sider",Lx,ji,e,h);function y($){var w,k;$.propertyName==="max-width"&&(i.value?(w=e.onAfterLeave)===null||w===void 0||w.call(e):(k=e.onAfterEnter)===null||k===void 0||k.call(e))}const x={scrollTo:c},F=C(()=>{const{common:{cubicBezierEaseInOut:$},self:w}=b.value,{siderToggleButtonColor:k,siderToggleButtonBorder:D,siderToggleBarColor:T,siderToggleBarColorHover:A}=w,N={"--n-bezier":$,"--n-toggle-button-color":k,"--n-toggle-button-border":D,"--n-toggle-bar-color":T,"--n-toggle-bar-color-hover":A};return e.inverted?(N["--n-color"]=w.siderColorInverted,N["--n-text-color"]=w.textColorInverted,N["--n-border-color"]=w.siderBorderColorInverted,N["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColorInverted,N.__invertScrollbar=w.__invertScrollbar):(N["--n-color"]=w.siderColor,N["--n-text-color"]=w.textColor,N["--n-border-color"]=w.siderBorderColor,N["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColor),N}),P=g?lt("layout-sider",C(()=>e.inverted?"a":"b"),F,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:b,styleMaxWidth:s,mergedCollapsed:i,scrollContainerStyle:l,siderPlacement:d,handleNativeElScroll:p,handleTransitionend:y,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:F,themeClass:P?.themeClass,onRender:P?.onRender},x)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),a("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:_t(this.width)}]},this.nativeScrollbar?a("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):a(Ut,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?a(Nx,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):a(jx,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?a("div",{class:`${t}-layout-sider__border`}):null)}}),Wx={extraFontSize:"12px",width:"440px"},Ux={name:"Transfer",common:De,peers:{Checkbox:Ur,Scrollbar:no,Input:yo,Empty:$r,Button:po},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:s,heightLarge:l,heightMedium:d,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:v,textColor1:p,textColorDisabled:h,textColor2:g,hoverColor:b}=e;return Object.assign(Object.assign({},Wx),{itemHeightSmall:c,itemHeightMedium:d,itemHeightLarge:l,fontSizeSmall:s,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:v,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:h,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t})}};function Kx(){return{}}const qx={name:"Marquee",common:De,self:Kx},Pn="n-menu",Wc="n-submenu",qi="n-menu-item-group",Wl=[S("&::before","background-color: var(--n-item-color-hover);"),z("arrow",` + color: var(--n-arrow-color-hover); + `),z("icon",` + color: var(--n-item-icon-color-hover); + `),m("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[S("a",` + color: var(--n-item-text-color-hover); + `),z("extra",` + color: var(--n-item-text-color-hover); + `)])],Ul=[z("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),m("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[S("a",` + color: var(--n-item-text-color-hover-horizontal); + `),z("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],Yx=S([m("menu",` + background-color: var(--n-color); + color: var(--n-item-text-color); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + box-sizing: border-box; + font-size: var(--n-font-size); + padding-bottom: 6px; + `,[R("horizontal",` + max-width: 100%; + width: 100%; + display: flex; + overflow: hidden; + padding-bottom: 0; + `,[m("submenu","margin: 0;"),m("menu-item","margin: 0;"),m("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[S("&::before","display: none;"),R("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),m("menu-item-content",[R("selected",[z("icon","color: var(--n-item-icon-color-active-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[S("a","color: var(--n-item-text-color-active-horizontal);"),z("extra","color: var(--n-item-text-color-active-horizontal);")])]),R("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[S("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),z("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),z("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),at("disabled",[at("selected, child-active",[S("&:focus-within",Ul)]),R("selected",[xr(null,[z("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[S("a","color: var(--n-item-text-color-active-hover-horizontal);"),z("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),R("child-active",[xr(null,[z("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[S("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),z("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),xr("border-bottom: 2px solid var(--n-border-color-horizontal);",Ul)]),m("menu-item-content-header",[S("a","color: var(--n-item-text-color-horizontal);")])])]),at("responsive",[m("menu-item-content-header",` + overflow: hidden; + text-overflow: ellipsis; + `)]),R("collapsed",[m("menu-item-content",[R("selected",[S("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),m("menu-item-content-header","opacity: 0;"),z("arrow","opacity: 0;"),z("icon","color: var(--n-item-icon-color-collapsed);")])]),m("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),m("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + padding-right: 18px; + transition: + background-color .3s var(--n-bezier), + padding-left .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[S("> *","z-index: 1;"),S("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),R("disabled",` + opacity: .45; + cursor: not-allowed; + `),R("collapsed",[z("arrow","transform: rotate(0);")]),R("selected",[S("&::before","background-color: var(--n-item-color-active);"),z("arrow","color: var(--n-arrow-color-active);"),z("icon","color: var(--n-item-icon-color-active);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[S("a","color: var(--n-item-text-color-active);"),z("extra","color: var(--n-item-text-color-active);")])]),R("child-active",[m("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[S("a",` + color: var(--n-item-text-color-child-active); + `),z("extra",` + color: var(--n-item-text-color-child-active); + `)]),z("arrow",` + color: var(--n-arrow-color-child-active); + `),z("icon",` + color: var(--n-item-icon-color-child-active); + `)]),at("disabled",[at("selected, child-active",[S("&:focus-within",Wl)]),R("selected",[xr(null,[z("arrow","color: var(--n-arrow-color-active-hover);"),z("icon","color: var(--n-item-icon-color-active-hover);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[S("a","color: var(--n-item-text-color-active-hover);"),z("extra","color: var(--n-item-text-color-active-hover);")])])]),R("child-active",[xr(null,[z("arrow","color: var(--n-arrow-color-child-active-hover);"),z("icon","color: var(--n-item-icon-color-child-active-hover);"),m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[S("a","color: var(--n-item-text-color-child-active-hover);"),z("extra","color: var(--n-item-text-color-child-active-hover);")])])]),R("selected",[xr(null,[S("&::before","background-color: var(--n-item-color-active-hover);")])]),xr(null,Wl)]),z("icon",` + grid-area: icon; + color: var(--n-item-icon-color); + transition: + color .3s var(--n-bezier), + font-size .3s var(--n-bezier), + margin-right .3s var(--n-bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),z("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--n-arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--n-bezier), + transform 0.2s var(--n-bezier), + opacity 0.2s var(--n-bezier); + `),m("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + opacity: 1; + white-space: nowrap; + color: var(--n-item-text-color); + `,[S("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[S("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),z("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),m("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[m("menu-item-content",` + height: var(--n-item-height); + `),m("submenu-children",` + overflow: hidden; + padding: 0; + `,[cn({duration:".2s"})])]),m("menu-item-group",[m("menu-item-group-title",` + margin-top: 6px; + color: var(--n-group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--n-bezier), + color .3s var(--n-bezier); + `)])]),m("menu-tooltip",[S("a",` + color: inherit; + text-decoration: none; + `)]),m("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function xr(e,t){return[R("hover",e,t),S("&:hover",e,t)]}const Uc=re({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ee(Pn);return{menuProps:t,style:C(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:C(()=>{const{maxIconSize:o,activeIconSize:r,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${r}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:r,renderExtra:n,expandIcon:i}}=this,s=o?o(t.rawNode):Rt(this.icon);return a("div",{onClick:l=>{var d;(d=this.onClick)===null||d===void 0||d.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},s&&a("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),a("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):Rt(this.title),this.extra||n?a("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):Rt(this.extra)):null),this.showArrow?a(zt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):a(xf,null)}):null)}}),Nn=8;function Yi(e){const t=Ee(Pn),{props:o,mergedCollapsedRef:r}=t,n=Ee(Wc,null),i=Ee(qi,null),s=C(()=>o.mode==="horizontal"),l=C(()=>s.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),d=C(()=>{var v;return Math.max((v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize,o.iconSize)}),c=C(()=>{var v;return!s.value&&e.root&&r.value&&(v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize}),u=C(()=>{if(s.value)return;const{collapsedWidth:v,indent:p,rootIndent:h}=o,{root:g,isGroup:b}=e,y=h===void 0?p:h;return g?r.value?v/2-d.value/2:y:i&&typeof i.paddingLeftRef.value=="number"?p/2+i.paddingLeftRef.value:n&&typeof n.paddingLeftRef.value=="number"?(b?p/2:p)+n.paddingLeftRef.value:0}),f=C(()=>{const{collapsedWidth:v,indent:p,rootIndent:h}=o,{value:g}=d,{root:b}=e;return s.value||!b||!r.value?Nn:(h===void 0?p:h)+g+Nn-(v+g)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:d,paddingLeft:u,iconMarginRight:f,NMenu:t,NSubmenu:n,NMenuOptionGroup:i}}const Gi={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Gx=re({name:"MenuDivider",setup(){const e=Ee(Pn),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:a("div",{class:`${t.value}-menu-divider`})}}),Kc=Object.assign(Object.assign({},Gi),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Xx=zo(Kc),Zx=re({name:"MenuOption",props:Kc,setup(e){const t=Yi(e),{NSubmenu:o,NMenu:r,NMenuOptionGroup:n}=t,{props:i,mergedClsPrefixRef:s,mergedCollapsedRef:l}=r,d=o?o.mergedDisabledRef:n?n.mergedDisabledRef:{value:!1},c=C(()=>d.value||e.disabled);function u(v){const{onClick:p}=e;p&&p(v)}function f(v){c.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),u(v))}return{mergedClsPrefix:s,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:i,dropdownEnabled:tt(()=>e.root&&l.value&&i.mode!=="horizontal"&&!c.value),selected:tt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:c,handleClick:f}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:r,nodeProps:n}}=this,i=n?.(o.rawNode);return a("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i?.class]}),a(Od,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(o.rawNode):Rt(this.title),trigger:()=>a(Uc,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),qc=Object.assign(Object.assign({},Gi),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Qx=zo(qc),Jx=re({name:"MenuOptionGroup",props:qc,setup(e){const t=Yi(e),{NSubmenu:o}=t,r=C(()=>o?.mergedDisabledRef.value?!0:e.tmNode.disabled);et(qi,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:r});const{mergedClsPrefixRef:n,props:i}=Ee(Pn);return function(){const{value:s}=n,l=t.paddingLeft.value,{nodeProps:d}=i,c=d?.(e.tmNode.rawNode);return a("div",{class:`${s}-menu-item-group`,role:"group"},a("div",Object.assign({},c,{class:[`${s}-menu-item-group-title`,c?.class],style:[c?.style||"",l!==void 0?`padding-left: ${l}px;`:""]}),Rt(e.title),e.extra?a(Gt,null," ",Rt(e.extra)):null),a("div",null,e.tmNodes.map(u=>Xi(u,i))))}}});function ni(e){return e.type==="divider"||e.type==="render"}function eC(e){return e.type==="divider"}function Xi(e,t){const{rawNode:o}=e,{show:r}=o;if(r===!1)return null;if(ni(o))return eC(o)?a(Gx,Object.assign({key:e.key},o.props)):null;const{labelField:n}=t,{key:i,level:s,isGroup:l}=e,d=Object.assign(Object.assign({},o),{title:o.title||o[n],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:s,root:s===0,isGroup:l});return e.children?e.isGroup?a(Jx,mo(d,Qx,{tmNode:e,tmNodes:e.children,key:i})):a(ai,mo(d,tC,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):a(Zx,mo(d,Xx,{key:i,tmNode:e}))}const Yc=Object.assign(Object.assign({},Gi),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),tC=zo(Yc),ai=re({name:"Submenu",props:Yc,setup(e){const t=Yi(e),{NMenu:o,NSubmenu:r}=t,{props:n,mergedCollapsedRef:i,mergedThemeRef:s}=o,l=C(()=>{const{disabled:v}=e;return r?.mergedDisabledRef.value||n.disabled?!0:v}),d=O(!1);et(Wc,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),et(qi,null);function c(){const{onClick:v}=e;v&&v()}function u(){l.value||(i.value||o.toggleExpand(e.internalKey),c())}function f(v){d.value=v}return{menuProps:n,mergedTheme:s,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:d,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:o.mergedValueRef,childActive:tt(()=>{var v;return(v=e.virtualChildActive)!==null&&v!==void 0?v:o.activePathRef.value.includes(e.internalKey)}),collapsed:C(()=>n.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:C(()=>!l.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:r}}=this,n=()=>{const{isHorizontal:s,paddingLeft:l,collapsed:d,mergedDisabled:c,maxIconSize:u,activeIconSize:f,title:v,childActive:p,icon:h,handleClick:g,menuProps:{nodeProps:b},dropdownShow:y,iconMarginRight:x,tmNode:F,mergedClsPrefix:P,isEllipsisPlaceholder:$,extra:w}=this,k=b?.(F.rawNode);return a("div",Object.assign({},k,{class:[`${P}-menu-item`,k?.class],role:"menuitem"}),a(Uc,{tmNode:F,paddingLeft:l,collapsed:d,disabled:c,iconMarginRight:x,maxIconSize:u,activeIconSize:f,title:v,extra:w,showArrow:!s,childActive:p,clsPrefix:P,icon:h,hover:y,onClick:g,isEllipsisPlaceholder:$}))},i=()=>a(yn,null,{default:()=>{const{tmNodes:s,collapsed:l}=this;return l?null:a("div",{class:`${t}-submenu-children`,role:"menu"},s.map(d=>Xi(d,this.menuProps)))}});return this.root?a(Nd,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:r}),{default:()=>a("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),this.isHorizontal?null:i())}):a("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),i())}}),oC=Object.assign(Object.assign({},Re.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),jy=re({name:"Menu",inheritAttrs:!1,props:oC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Menu","-menu",Yx,b0,e,t),n=Ee(Nc,null),i=C(()=>{var V;const{collapsed:_}=e;if(_!==void 0)return _;if(n){const{collapseModeRef:I,collapsedRef:j}=n;if(I.value==="width")return(V=j.value)!==null&&V!==void 0?V:!1}return!1}),s=C(()=>{const{keyField:V,childrenField:_,disabledField:I}=e;return Uo(e.items||e.options,{getIgnored(j){return ni(j)},getChildren(j){return j[_]},getDisabled(j){return j[I]},getKey(j){var J;return(J=j[V])!==null&&J!==void 0?J:j.name}})}),l=C(()=>new Set(s.value.treeNodes.map(V=>V.key))),{watchProps:d}=e,c=O(null);d?.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=fe(e,"value"),f=$t(u,c),v=O([]),p=()=>{v.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(f.value,{includeSelf:!1}).keyPath};d?.includes("defaultExpandedKeys")?Ft(p):p();const h=rr(e,["expandedNames","expandedKeys"]),g=$t(h,v),b=C(()=>s.value.treeNodes),y=C(()=>s.value.getPath(f.value).keyPath);et(Pn,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:g,activePathRef:y,mergedClsPrefixRef:t,isHorizontalRef:C(()=>e.mode==="horizontal"),invertedRef:fe(e,"inverted"),doSelect:x,toggleExpand:P});function x(V,_){const{"onUpdate:value":I,onUpdateValue:j,onSelect:J}=e;j&&ae(j,V,_),I&&ae(I,V,_),J&&ae(J,V,_),c.value=V}function F(V){const{"onUpdate:expandedKeys":_,onUpdateExpandedKeys:I,onExpandedNamesChange:j,onOpenNamesChange:J}=e;_&&ae(_,V),I&&ae(I,V),j&&ae(j,V),J&&ae(J,V),v.value=V}function P(V){const _=Array.from(g.value),I=_.findIndex(j=>j===V);if(~I)_.splice(I,1);else{if(e.accordion&&l.value.has(V)){const j=_.findIndex(J=>l.value.has(J));j>-1&&_.splice(j,1)}_.push(V)}F(_)}const $=V=>{const _=s.value.getPath(V??f.value,{includeSelf:!1}).keyPath;if(!_.length)return;const I=Array.from(g.value),j=new Set([...I,..._]);e.accordion&&l.value.forEach(J=>{j.has(J)&&!_.includes(J)&&j.delete(J)}),F(Array.from(j))},w=C(()=>{const{inverted:V}=e,{common:{cubicBezierEaseInOut:_},self:I}=r.value,{borderRadius:j,borderColorHorizontal:J,fontSize:se,itemHeight:xe,dividerColor:Ie}=I,H={"--n-divider-color":Ie,"--n-bezier":_,"--n-font-size":se,"--n-border-color-horizontal":J,"--n-border-radius":j,"--n-item-height":xe};return V?(H["--n-group-text-color"]=I.groupTextColorInverted,H["--n-color"]=I.colorInverted,H["--n-item-text-color"]=I.itemTextColorInverted,H["--n-item-text-color-hover"]=I.itemTextColorHoverInverted,H["--n-item-text-color-active"]=I.itemTextColorActiveInverted,H["--n-item-text-color-child-active"]=I.itemTextColorChildActiveInverted,H["--n-item-text-color-child-active-hover"]=I.itemTextColorChildActiveInverted,H["--n-item-text-color-active-hover"]=I.itemTextColorActiveHoverInverted,H["--n-item-icon-color"]=I.itemIconColorInverted,H["--n-item-icon-color-hover"]=I.itemIconColorHoverInverted,H["--n-item-icon-color-active"]=I.itemIconColorActiveInverted,H["--n-item-icon-color-active-hover"]=I.itemIconColorActiveHoverInverted,H["--n-item-icon-color-child-active"]=I.itemIconColorChildActiveInverted,H["--n-item-icon-color-child-active-hover"]=I.itemIconColorChildActiveHoverInverted,H["--n-item-icon-color-collapsed"]=I.itemIconColorCollapsedInverted,H["--n-item-text-color-horizontal"]=I.itemTextColorHorizontalInverted,H["--n-item-text-color-hover-horizontal"]=I.itemTextColorHoverHorizontalInverted,H["--n-item-text-color-active-horizontal"]=I.itemTextColorActiveHorizontalInverted,H["--n-item-text-color-child-active-horizontal"]=I.itemTextColorChildActiveHorizontalInverted,H["--n-item-text-color-child-active-hover-horizontal"]=I.itemTextColorChildActiveHoverHorizontalInverted,H["--n-item-text-color-active-hover-horizontal"]=I.itemTextColorActiveHoverHorizontalInverted,H["--n-item-icon-color-horizontal"]=I.itemIconColorHorizontalInverted,H["--n-item-icon-color-hover-horizontal"]=I.itemIconColorHoverHorizontalInverted,H["--n-item-icon-color-active-horizontal"]=I.itemIconColorActiveHorizontalInverted,H["--n-item-icon-color-active-hover-horizontal"]=I.itemIconColorActiveHoverHorizontalInverted,H["--n-item-icon-color-child-active-horizontal"]=I.itemIconColorChildActiveHorizontalInverted,H["--n-item-icon-color-child-active-hover-horizontal"]=I.itemIconColorChildActiveHoverHorizontalInverted,H["--n-arrow-color"]=I.arrowColorInverted,H["--n-arrow-color-hover"]=I.arrowColorHoverInverted,H["--n-arrow-color-active"]=I.arrowColorActiveInverted,H["--n-arrow-color-active-hover"]=I.arrowColorActiveHoverInverted,H["--n-arrow-color-child-active"]=I.arrowColorChildActiveInverted,H["--n-arrow-color-child-active-hover"]=I.arrowColorChildActiveHoverInverted,H["--n-item-color-hover"]=I.itemColorHoverInverted,H["--n-item-color-active"]=I.itemColorActiveInverted,H["--n-item-color-active-hover"]=I.itemColorActiveHoverInverted,H["--n-item-color-active-collapsed"]=I.itemColorActiveCollapsedInverted):(H["--n-group-text-color"]=I.groupTextColor,H["--n-color"]=I.color,H["--n-item-text-color"]=I.itemTextColor,H["--n-item-text-color-hover"]=I.itemTextColorHover,H["--n-item-text-color-active"]=I.itemTextColorActive,H["--n-item-text-color-child-active"]=I.itemTextColorChildActive,H["--n-item-text-color-child-active-hover"]=I.itemTextColorChildActiveHover,H["--n-item-text-color-active-hover"]=I.itemTextColorActiveHover,H["--n-item-icon-color"]=I.itemIconColor,H["--n-item-icon-color-hover"]=I.itemIconColorHover,H["--n-item-icon-color-active"]=I.itemIconColorActive,H["--n-item-icon-color-active-hover"]=I.itemIconColorActiveHover,H["--n-item-icon-color-child-active"]=I.itemIconColorChildActive,H["--n-item-icon-color-child-active-hover"]=I.itemIconColorChildActiveHover,H["--n-item-icon-color-collapsed"]=I.itemIconColorCollapsed,H["--n-item-text-color-horizontal"]=I.itemTextColorHorizontal,H["--n-item-text-color-hover-horizontal"]=I.itemTextColorHoverHorizontal,H["--n-item-text-color-active-horizontal"]=I.itemTextColorActiveHorizontal,H["--n-item-text-color-child-active-horizontal"]=I.itemTextColorChildActiveHorizontal,H["--n-item-text-color-child-active-hover-horizontal"]=I.itemTextColorChildActiveHoverHorizontal,H["--n-item-text-color-active-hover-horizontal"]=I.itemTextColorActiveHoverHorizontal,H["--n-item-icon-color-horizontal"]=I.itemIconColorHorizontal,H["--n-item-icon-color-hover-horizontal"]=I.itemIconColorHoverHorizontal,H["--n-item-icon-color-active-horizontal"]=I.itemIconColorActiveHorizontal,H["--n-item-icon-color-active-hover-horizontal"]=I.itemIconColorActiveHoverHorizontal,H["--n-item-icon-color-child-active-horizontal"]=I.itemIconColorChildActiveHorizontal,H["--n-item-icon-color-child-active-hover-horizontal"]=I.itemIconColorChildActiveHoverHorizontal,H["--n-arrow-color"]=I.arrowColor,H["--n-arrow-color-hover"]=I.arrowColorHover,H["--n-arrow-color-active"]=I.arrowColorActive,H["--n-arrow-color-active-hover"]=I.arrowColorActiveHover,H["--n-arrow-color-child-active"]=I.arrowColorChildActive,H["--n-arrow-color-child-active-hover"]=I.arrowColorChildActiveHover,H["--n-item-color-hover"]=I.itemColorHover,H["--n-item-color-active"]=I.itemColorActive,H["--n-item-color-active-hover"]=I.itemColorActiveHover,H["--n-item-color-active-collapsed"]=I.itemColorActiveCollapsed),H}),k=o?lt("menu",C(()=>e.inverted?"a":"b"),w,e):void 0,D=qo(),T=O(null),A=O(null);let N=!0;const B=()=>{var V;N?N=!1:(V=T.value)===null||V===void 0||V.sync({showAllItemsBeforeCalculate:!0})};function E(){return document.getElementById(D)}const K=O(-1);function L(V){K.value=e.options.length-V}function te(V){V||(K.value=-1)}const U=C(()=>{const V=K.value;return{children:V===-1?[]:e.options.slice(V)}}),ie=C(()=>{const{childrenField:V,disabledField:_,keyField:I}=e;return Uo([U.value],{getIgnored(j){return ni(j)},getChildren(j){return j[V]},getDisabled(j){return j[_]},getKey(j){var J;return(J=j[I])!==null&&J!==void 0?J:j.name}})}),be=C(()=>Uo([{}]).treeNodes[0]);function ce(){var V;if(K.value===-1)return a(ai,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:be.value,domId:D,isEllipsisPlaceholder:!0});const _=ie.value.treeNodes[0],I=y.value,j=!!(!((V=_.children)===null||V===void 0)&&V.some(J=>I.includes(J.key)));return a(ai,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:j,tmNode:_,domId:D,rawNodes:_.rawNode.children||[],tmNodes:_.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:v,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:f,activePath:y,tmNodes:b,mergedTheme:r,mergedCollapsed:i,cssVars:o?void 0:w,themeClass:k?.themeClass,overflowRef:T,counterRef:A,updateCounter:()=>{},onResize:B,onUpdateOverflow:te,onUpdateCount:L,renderCounter:ce,getCounter:E,onRender:k?.onRender,showOption:$,deriveResponsiveState:B}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:r}=this;r?.();const n=()=>this.tmNodes.map(d=>Xi(d,this.$props)),s=t==="horizontal"&&this.responsive,l=()=>a("div",co(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,s&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),s?a(Va,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:n,counter:this.renderCounter}):n());return s?a(_o,{onResize:this.onResize},{default:l}):l()}}),rC={name:"QrCode",common:De,self:e=>({borderRadius:e.borderRadius})};function nC(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),a("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function aC(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),a("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),a("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),a("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),a("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),a("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function iC(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),a("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),a("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),a("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),a("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),a("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function lC(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},a("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),a("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),a("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const sC=m("result",` + color: var(--n-text-color); + line-height: var(--n-line-height); + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier); +`,[m("result-icon",` + display: flex; + justify-content: center; + transition: color .3s var(--n-bezier); + `,[z("status-image",` + font-size: var(--n-icon-size); + width: 1em; + height: 1em; + `),m("base-icon",` + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),m("result-content",{marginTop:"24px"}),m("result-footer",` + margin-top: 24px; + text-align: center; + `),m("result-header",[z("title",` + margin-top: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + text-align: center; + color: var(--n-title-text-color); + font-size: var(--n-title-font-size); + `),z("description",` + margin-top: 4px; + text-align: center; + font-size: var(--n-font-size); + `)])]),dC={403:nC,404:aC,418:iC,500:lC,info:()=>a(Er,null),success:()=>a(xn,null),warning:()=>a(Cn,null),error:()=>a(bn,null)},cC=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Vy=re({name:"Result",props:cC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Result","-result",sC,T0,e,t),n=C(()=>{const{size:s,status:l}=e,{common:{cubicBezierEaseInOut:d},self:{textColor:c,lineHeight:u,titleTextColor:f,titleFontWeight:v,[le("iconColor",l)]:p,[le("fontSize",s)]:h,[le("titleFontSize",s)]:g,[le("iconSize",s)]:b}}=r.value;return{"--n-bezier":d,"--n-font-size":h,"--n-icon-size":b,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-text-color":f,"--n-icon-color":p||""}}),i=o?lt("result",C(()=>{const{size:s,status:l}=e;let d="";return s&&(d+=s[0]),l&&(d+=l[0]),d}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{status:t,$slots:o,mergedClsPrefix:r,onRender:n}=this;return n?.(),a("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},a("div",{class:`${r}-result-icon`},((e=o.icon)===null||e===void 0?void 0:e.call(o))||a(zt,{clsPrefix:r},{default:()=>dC[t]()})),a("div",{class:`${r}-result-header`},this.title?a("div",{class:`${r}-result-header__title`},this.title):null,this.description?a("div",{class:`${r}-result-header__description`},this.description):null),o.default&&a("div",{class:`${r}-result-content`},o),o.footer&&a("div",{class:`${r}-result-footer`},o.footer()))}}),uC=Object.assign(Object.assign({},Re.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Wy=re({name:"Scrollbar",props:uC,setup(){const e=O(null);return Object.assign(Object.assign({},{scrollTo:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(o[0],o[1])}}),{scrollbarInstRef:e})},render(){return a(Ut,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),fC={name:"Skeleton",common:De,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},hC=S([S("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),m("spin-container",` + position: relative; + `,[m("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[wn()])]),m("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),m("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[R("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),m("spin-description",` + display: inline-block; + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + margin-top: 8px; + `),m("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[R("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]),vC={small:20,medium:18,large:16},pC=Object.assign(Object.assign({},Re.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),Uy=re({name:"Spin",props:pC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Spin","-spin",hC,O0,e,t),n=C(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:u}=r.value,{opacitySpinning:f,color:v,textColor:p}=u,h=typeof d=="number"?Et(d):u[le("size",d)];return{"--n-bezier":c,"--n-opacity-spinning":f,"--n-size":h,"--n-color":v,"--n-text-color":p}}),i=o?lt("spin",C(()=>{const{size:d}=e;return typeof d=="number"?String(d):d[0]}),n,e):void 0,s=rr(e,["spinning","show"]),l=O(!1);return Ft(d=>{let c;if(s.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{l.value=!0},u),d(()=>{clearTimeout(c)});return}}l.value=s.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:C(()=>{const{strokeWidth:d}=e;if(d!==void 0)return d;const{size:c}=e;return vC[typeof c=="number"?"medium":c]}),cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:r,description:n}=this,i=o.icon&&this.rotate,s=(n||o.description)&&a("div",{class:`${r}-spin-description`},n||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?a("div",{class:[`${r}-spin-body`,this.themeClass]},a("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),s):a("div",{class:[`${r}-spin-body`,this.themeClass]},a(Zo,{clsPrefix:r,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),s);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?a("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},a("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),a(qt,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),gC={name:"Split",common:De},mC=m("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[z("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),z("rail-placeholder",` + display: flex; + flex-wrap: none; + `),z("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),m("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[ho({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),z("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),z("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),z("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),S("&:focus",[z("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),R("round",[z("rail","border-radius: calc(var(--n-rail-height) / 2);",[z("button","border-radius: calc(var(--n-button-height) / 2);")])]),at("disabled",[at("icon",[R("rubber-band",[R("pressed",[z("rail",[z("button","max-width: var(--n-button-width-pressed);")])]),z("rail",[S("&:active",[z("button","max-width: var(--n-button-width-pressed);")])]),R("active",[R("pressed",[z("rail",[z("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),z("rail",[S("&:active",[z("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),R("active",[z("rail",[z("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),z("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[z("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[ho()]),z("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),R("active",[z("rail","background-color: var(--n-rail-color-active);")]),R("loading",[z("rail",` + cursor: wait; + `)]),R("disabled",[z("rail",` + cursor: not-allowed; + opacity: .5; + `)])]),bC=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let en;const Ky=re({name:"Switch",props:bC,slots:Object,setup(e){en===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?en=CSS.supports("width","max(1px)"):en=!1:en=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Switch","-switch",mC,j0,e,t),n=vo(e),{mergedSizeRef:i,mergedDisabledRef:s}=n,l=O(e.defaultValue),d=fe(e,"value"),c=$t(d,l),u=C(()=>c.value===e.checkedValue),f=O(!1),v=O(!1),p=C(()=>{const{railStyle:D}=e;if(D)return D({focused:v.value,checked:u.value})});function h(D){const{"onUpdate:value":T,onChange:A,onUpdateValue:N}=e,{nTriggerFormInput:B,nTriggerFormChange:E}=n;T&&ae(T,D),N&&ae(N,D),A&&ae(A,D),l.value=D,B(),E()}function g(){const{nTriggerFormFocus:D}=n;D()}function b(){const{nTriggerFormBlur:D}=n;D()}function y(){e.loading||s.value||(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function x(){v.value=!0,g()}function F(){v.value=!1,b(),f.value=!1}function P(D){e.loading||s.value||D.key===" "&&(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),f.value=!1)}function $(D){e.loading||s.value||D.key===" "&&(D.preventDefault(),f.value=!0)}const w=C(()=>{const{value:D}=i,{self:{opacityDisabled:T,railColor:A,railColorActive:N,buttonBoxShadow:B,buttonColor:E,boxShadowFocus:K,loadingColor:L,textColor:te,iconColor:U,[le("buttonHeight",D)]:ie,[le("buttonWidth",D)]:be,[le("buttonWidthPressed",D)]:ce,[le("railHeight",D)]:V,[le("railWidth",D)]:_,[le("railBorderRadius",D)]:I,[le("buttonBorderRadius",D)]:j},common:{cubicBezierEaseInOut:J}}=r.value;let se,xe,Ie;return en?(se=`calc((${V} - ${ie}) / 2)`,xe=`max(${V}, ${ie})`,Ie=`max(${_}, calc(${_} + ${ie} - ${V}))`):(se=Et((Dt(V)-Dt(ie))/2),xe=Et(Math.max(Dt(V),Dt(ie))),Ie=Dt(V)>Dt(ie)?_:Et(Dt(_)+Dt(ie)-Dt(V))),{"--n-bezier":J,"--n-button-border-radius":j,"--n-button-box-shadow":B,"--n-button-color":E,"--n-button-width":be,"--n-button-width-pressed":ce,"--n-button-height":ie,"--n-height":xe,"--n-offset":se,"--n-opacity-disabled":T,"--n-rail-border-radius":I,"--n-rail-color":A,"--n-rail-color-active":N,"--n-rail-height":V,"--n-rail-width":_,"--n-width":Ie,"--n-box-shadow-focus":K,"--n-loading-color":L,"--n-text-color":te,"--n-icon-color":U}}),k=o?lt("switch",C(()=>i.value[0]),w,e):void 0;return{handleClick:y,handleBlur:F,handleFocus:x,handleKeyup:P,handleKeydown:$,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:s,cssVars:o?void 0:w,themeClass:k?.themeClass,onRender:k?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:r,onRender:n,$slots:i}=this;n?.();const{checked:s,unchecked:l,icon:d,"checked-icon":c,"unchecked-icon":u}=i,f=!(Ar(d)&&Ar(c)&&Ar(u));return a("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},a("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},mt(s,v=>mt(l,p=>v||p?a("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),v),a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),p)):null)),a("div",{class:`${e}-switch__button`},mt(d,v=>mt(c,p=>mt(u,h=>a(dr,null,{default:()=>this.loading?a(Zo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||v)?a("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||v):!this.checked&&(h||v)?a("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||v):null})))),mt(s,v=>v&&a("div",{key:"checked",class:`${e}-switch__checked`},v)),mt(l,v=>v&&a("div",{key:"unchecked",class:`${e}-switch__unchecked`},v)))))}}),Zi="n-tabs",Gc={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},qy=re({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Gc,slots:Object,setup(e){const t=Ee(Zi,null);return t||Go("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return a("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),xC=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Pr(Gc,["displayDirective"])),ii=re({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:xC,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:r,closableRef:n,tabStyleRef:i,addTabStyleRef:s,tabClassRef:l,addTabClassRef:d,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:f,handleAdd:v,activateTab:p,handleClose:h}=Ee(Zi);return{trigger:f,mergedClosable:C(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?n.value:g}),style:i,addStyle:s,tabClass:l,addTabClass:d,clsPrefix:t,value:o,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){v();return}const{name:g}=e,b=++c.id;if(g!==o.value){const{value:y}=u;y?Promise.resolve(y(e.name,o.value)).then(x=>{x&&c.id===b&&p(g)}):p(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:r,label:n,tab:i,value:s,mergedClosable:l,trigger:d,$slots:{default:c}}=this,u=n??i;return a("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?a("div",{class:`${t}-tabs-tab-pad`}):null,a("div",Object.assign({key:o,"data-name":o,"data-disabled":r?!0:void 0},co({class:[`${t}-tabs-tab`,s===o&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:d==="click"?this.activateTab:void 0,onMouseenter:d==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),a("span",{class:`${t}-tabs-tab__label`},e?a(Gt,null,a("div",{class:`${t}-tabs-tab__height-placeholder`}," "),a(zt,{clsPrefix:t},{default:()=>a(yi,null)})):c?c():typeof u=="object"?u:Rt(u??o)),l&&this.type==="card"?a(cr,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),CC=m("tabs",` + box-sizing: border-box; + width: 100%; + display: flex; + flex-direction: column; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[R("segment-type",[m("tabs-rail",[S("&.transition-disabled",[m("tabs-capsule",` + transition: none; + `)])])]),R("top",[m("tab-pane",` + padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); + `)]),R("left",[m("tab-pane",` + padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); + `)]),R("left, right",` + flex-direction: row; + `,[m("tabs-bar",` + width: 2px; + right: 0; + transition: + top .2s var(--n-bezier), + max-height .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `),m("tabs-tab",` + padding: var(--n-tab-padding-vertical); + `)]),R("right",` + flex-direction: row-reverse; + `,[m("tab-pane",` + padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); + `),m("tabs-bar",` + left: 0; + `)]),R("bottom",` + flex-direction: column-reverse; + justify-content: flex-end; + `,[m("tab-pane",` + padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); + `),m("tabs-bar",` + top: 0; + `)]),m("tabs-rail",` + position: relative; + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[m("tabs-capsule",` + border-radius: var(--n-tab-border-radius); + position: absolute; + pointer-events: none; + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + transition: transform 0.3s var(--n-bezier); + `),m("tabs-tab-wrapper",` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[m("tabs-tab",` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[R("active",` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + `),S("&:hover",` + color: var(--n-tab-text-color-hover); + `)])])]),R("flex",[m("tabs-nav",` + width: 100%; + position: relative; + `,[m("tabs-wrapper",` + width: 100%; + `,[m("tabs-tab",` + margin-right: 0; + `)])])]),m("tabs-nav",` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[z("prefix, suffix",` + display: flex; + align-items: center; + `),z("prefix","padding-right: 16px;"),z("suffix","padding-left: 16px;")]),R("top, bottom",[S(">",[m("tabs-nav",[m("tabs-nav-scroll-wrapper",[S("&::before",` + top: 0; + bottom: 0; + left: 0; + width: 20px; + `),S("&::after",` + top: 0; + bottom: 0; + right: 0; + width: 20px; + `),R("shadow-start",[S("&::before",` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),R("shadow-end",[S("&::after",` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),R("left, right",[m("tabs-nav-scroll-content",` + flex-direction: column; + `),S(">",[m("tabs-nav",[m("tabs-nav-scroll-wrapper",[S("&::before",` + top: 0; + left: 0; + right: 0; + height: 20px; + `),S("&::after",` + bottom: 0; + left: 0; + right: 0; + height: 20px; + `),R("shadow-start",[S("&::before",` + box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); + `)]),R("shadow-end",[S("&::after",` + box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),m("tabs-nav-scroll-wrapper",` + flex: 1; + position: relative; + overflow: hidden; + `,[m("tabs-nav-y-scroll",` + height: 100%; + width: 100%; + overflow-y: auto; + scrollbar-width: none; + `,[S("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `)]),S("&::before, &::after",` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + z-index: 1; + `)]),m("tabs-nav-scroll-content",` + display: flex; + position: relative; + min-width: 100%; + min-height: 100%; + width: fit-content; + box-sizing: border-box; + `),m("tabs-wrapper",` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),m("tabs-tab-wrapper",` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),m("tabs-tab",` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[R("disabled",{cursor:"not-allowed"}),z("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),z("label",` + display: flex; + align-items: center; + z-index: 1; + `)]),m("tabs-bar",` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[S("&.transition-disabled",` + transition: none; + `),R("disabled",` + background-color: var(--n-tab-text-color-disabled) + `)]),m("tabs-pane-wrapper",` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),m("tab-pane",` + color: var(--n-pane-text-color); + width: 100%; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[S("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),S("&.next-transition-leave-active, &.prev-transition-leave-active",` + position: absolute; + `),S("&.next-transition-enter-from, &.prev-transition-leave-to",` + transform: translateX(32px); + opacity: 0; + `),S("&.next-transition-leave-to, &.prev-transition-enter-from",` + transform: translateX(-32px); + opacity: 0; + `),S("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` + transform: translateX(0); + opacity: 1; + `)]),m("tabs-tab-pad",` + box-sizing: border-box; + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),R("line-type, bar-type",[m("tabs-tab",` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[S("&:hover",{color:"var(--n-tab-text-color-hover)"}),R("active",` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),R("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),m("tabs-nav",[R("line-type",[R("top",[z("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + bottom: -1px; + `)]),R("left",[z("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + right: -1px; + `)]),R("right",[z("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + left: -1px; + `)]),R("bottom",[z("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + top: -1px; + `)]),z("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-nav-scroll-content",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-bar",` + border-radius: 0; + `)]),R("card-type",[z("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-pad",` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + `),m("tabs-tab-pad",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-tab",` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[R("addable",` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + justify-content: center; + `,[z("height-placeholder",` + width: 0; + font-size: var(--n-tab-font-size); + `),at("disabled",[S("&:hover",` + color: var(--n-tab-text-color-hover); + `)])]),R("closable","padding-right: 8px;"),R("active",` + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),R("disabled","color: var(--n-tab-text-color-disabled);")])]),R("left, right",` + flex-direction: column; + `,[z("prefix, suffix",` + padding: var(--n-tab-padding-vertical); + `),m("tabs-wrapper",` + flex-direction: column; + `),m("tabs-tab-wrapper",` + flex-direction: column; + `,[m("tabs-tab-pad",` + height: var(--n-tab-gap-vertical); + width: 100%; + `)])]),R("top",[R("card-type",[m("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),z("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + `,[R("active",` + border-bottom: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `)])]),R("left",[R("card-type",[m("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),z("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-bottom-left-radius: var(--n-tab-border-radius); + `,[R("active",` + border-right: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-right: 1px solid var(--n-tab-border-color); + `)])]),R("right",[R("card-type",[m("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),z("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-right-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[R("active",` + border-left: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-left: 1px solid var(--n-tab-border-color); + `)])]),R("bottom",[R("card-type",[m("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),z("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-bottom-left-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[R("active",` + border-top: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-top: 1px solid var(--n-tab-border-color); + `)])])])]),Ta=Vu,yC=Object.assign(Object.assign({},Re.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Yy=re({name:"Tabs",props:yC,slots:Object,setup(e,{slots:t}){var o,r,n,i;const{mergedClsPrefixRef:s,inlineThemeDisabled:l}=Qe(e),d=Re("Tabs","-tabs",CC,q0,e,s),c=O(null),u=O(null),f=O(null),v=O(null),p=O(null),h=O(null),g=O(!0),b=O(!0),y=rr(e,["labelSize","size"]),x=rr(e,["activeName","value"]),F=O((r=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(n=Ro(t.default())[0])===null||n===void 0?void 0:n.props)===null||i===void 0?void 0:i.name:null),P=$t(x,F),$={id:0},w=C(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});gt(P,()=>{$.id=0,N(),B()});function k(){var q;const{value:Q}=P;return Q===null?null:(q=c.value)===null||q===void 0?void 0:q.querySelector(`[data-name="${Q}"]`)}function D(q){if(e.type==="card")return;const{value:Q}=u;if(!Q)return;const pe=Q.style.opacity==="0";if(q){const we=`${s.value}-tabs-bar--disabled`,{barWidth:de,placement:me}=e;if(q.dataset.disabled==="true"?Q.classList.add(we):Q.classList.remove(we),["top","bottom"].includes(me)){if(A(["top","maxHeight","height"]),typeof de=="number"&&q.offsetWidth>=de){const je=Math.floor((q.offsetWidth-de)/2)+q.offsetLeft;Q.style.left=`${je}px`,Q.style.maxWidth=`${de}px`}else Q.style.left=`${q.offsetLeft}px`,Q.style.maxWidth=`${q.offsetWidth}px`;Q.style.width="8192px",pe&&(Q.style.transition="none"),Q.offsetWidth,pe&&(Q.style.transition="",Q.style.opacity="1")}else{if(A(["left","maxWidth","width"]),typeof de=="number"&&q.offsetHeight>=de){const je=Math.floor((q.offsetHeight-de)/2)+q.offsetTop;Q.style.top=`${je}px`,Q.style.maxHeight=`${de}px`}else Q.style.top=`${q.offsetTop}px`,Q.style.maxHeight=`${q.offsetHeight}px`;Q.style.height="8192px",pe&&(Q.style.transition="none"),Q.offsetHeight,pe&&(Q.style.transition="",Q.style.opacity="1")}}}function T(){if(e.type==="card")return;const{value:q}=u;q&&(q.style.opacity="0")}function A(q){const{value:Q}=u;if(Q)for(const pe of q)Q.style[pe]=""}function N(){if(e.type==="card")return;const q=k();q?D(q):T()}function B(){var q;const Q=(q=p.value)===null||q===void 0?void 0:q.$el;if(!Q)return;const pe=k();if(!pe)return;const{scrollLeft:we,offsetWidth:de}=Q,{offsetLeft:me,offsetWidth:je}=pe;we>me?Q.scrollTo({top:0,left:me,behavior:"smooth"}):me+je>we+de&&Q.scrollTo({top:0,left:me+je-de,behavior:"smooth"})}const E=O(null);let K=0,L=null;function te(q){const Q=E.value;if(Q){K=q.getBoundingClientRect().height;const pe=`${K}px`,we=()=>{Q.style.height=pe,Q.style.maxHeight=pe};L?(we(),L(),L=null):L=we}}function U(q){const Q=E.value;if(Q){const pe=q.getBoundingClientRect().height,we=()=>{document.body.offsetHeight,Q.style.maxHeight=`${pe}px`,Q.style.height=`${Math.max(K,pe)}px`};L?(L(),L=null,we()):L=we}}function ie(){const q=E.value;if(q){q.style.maxHeight="",q.style.height="";const{paneWrapperStyle:Q}=e;if(typeof Q=="string")q.style.cssText=Q;else if(Q){const{maxHeight:pe,height:we}=Q;pe!==void 0&&(q.style.maxHeight=pe),we!==void 0&&(q.style.height=we)}}}const be={value:[]},ce=O("next");function V(q){const Q=P.value;let pe="next";for(const we of be.value){if(we===Q)break;if(we===q){pe="prev";break}}ce.value=pe,_(q)}function _(q){const{onActiveNameChange:Q,onUpdateValue:pe,"onUpdate:value":we}=e;Q&&ae(Q,q),pe&&ae(pe,q),we&&ae(we,q),F.value=q}function I(q){const{onClose:Q}=e;Q&&ae(Q,q)}function j(){const{value:q}=u;if(!q)return;const Q="transition-disabled";q.classList.add(Q),N(),q.classList.remove(Q)}const J=O(null);function se({transitionDisabled:q}){const Q=c.value;if(!Q)return;q&&Q.classList.add("transition-disabled");const pe=k();pe&&J.value&&(J.value.style.width=`${pe.offsetWidth}px`,J.value.style.height=`${pe.offsetHeight}px`,J.value.style.transform=`translateX(${pe.offsetLeft-Dt(getComputedStyle(Q).paddingLeft)}px)`,q&&J.value.offsetWidth),q&&Q.classList.remove("transition-disabled")}gt([P],()=>{e.type==="segment"&&Tt(()=>{se({transitionDisabled:!1})})}),to(()=>{e.type==="segment"&&se({transitionDisabled:!0})});let xe=0;function Ie(q){var Q;if(q.contentRect.width===0&&q.contentRect.height===0||xe===q.contentRect.width)return;xe=q.contentRect.width;const{type:pe}=e;if((pe==="line"||pe==="bar")&&j(),pe!=="segment"){const{placement:we}=e;Xe((we==="top"||we==="bottom"?(Q=p.value)===null||Q===void 0?void 0:Q.$el:h.value)||null)}}const H=Ta(Ie,64);gt([()=>e.justifyContent,()=>e.size],()=>{Tt(()=>{const{type:q}=e;(q==="line"||q==="bar")&&j()})});const Pe=O(!1);function He(q){var Q;const{target:pe,contentRect:{width:we,height:de}}=q,me=pe.parentElement.parentElement.offsetWidth,je=pe.parentElement.parentElement.offsetHeight,{placement:oe}=e;if(!Pe.value)oe==="top"||oe==="bottom"?meUe.$el.offsetWidth&&(Pe.value=!1):je-de>Ue.$el.offsetHeight&&(Pe.value=!1)}Xe(((Q=p.value)===null||Q===void 0?void 0:Q.$el)||null)}const _e=Ta(He,64);function Ge(){const{onAdd:q}=e;q&&q(),Tt(()=>{const Q=k(),{value:pe}=p;!Q||!pe||pe.scrollTo({left:Q.offsetLeft,top:0,behavior:"smooth"})})}function Xe(q){if(!q)return;const{placement:Q}=e;if(Q==="top"||Q==="bottom"){const{scrollLeft:pe,scrollWidth:we,offsetWidth:de}=q;g.value=pe<=0,b.value=pe+de>=we}else{const{scrollTop:pe,scrollHeight:we,offsetHeight:de}=q;g.value=pe<=0,b.value=pe+de>=we}}const ct=Ta(q=>{Xe(q.target)},64);et(Zi,{triggerRef:fe(e,"trigger"),tabStyleRef:fe(e,"tabStyle"),tabClassRef:fe(e,"tabClass"),addTabStyleRef:fe(e,"addTabStyle"),addTabClassRef:fe(e,"addTabClass"),paneClassRef:fe(e,"paneClass"),paneStyleRef:fe(e,"paneStyle"),mergedClsPrefixRef:s,typeRef:fe(e,"type"),closableRef:fe(e,"closable"),valueRef:P,tabChangeIdRef:$,onBeforeLeaveRef:fe(e,"onBeforeLeave"),activateTab:V,handleClose:I,handleAdd:Ge}),is(()=>{N(),B()}),Ft(()=>{const{value:q}=f;if(!q)return;const{value:Q}=s,pe=`${Q}-tabs-nav-scroll-wrapper--shadow-start`,we=`${Q}-tabs-nav-scroll-wrapper--shadow-end`;g.value?q.classList.remove(pe):q.classList.add(pe),b.value?q.classList.remove(we):q.classList.add(we)});const ot={syncBarPosition:()=>{N()}},Ce=()=>{se({transitionDisabled:!0})},ee=C(()=>{const{value:q}=y,{type:Q}=e,pe={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[Q],we=`${q}${pe}`,{self:{barColor:de,closeIconColor:me,closeIconColorHover:je,closeIconColorPressed:oe,tabColor:Ue,tabBorderColor:it,paneTextColor:Pt,tabFontWeight:xt,tabBorderRadius:pt,tabFontWeightActive:ft,colorSegment:Me,fontWeightStrong:Ze,tabColorSegment:M,closeSize:G,closeIconSize:ve,closeColorHover:Fe,closeColorPressed:Be,closeBorderRadius:W,[le("panePadding",q)]:ge,[le("tabPadding",we)]:$e,[le("tabPaddingVertical",we)]:We,[le("tabGap",we)]:ht,[le("tabGap",`${we}Vertical`)]:rt,[le("tabTextColor",Q)]:ne,[le("tabTextColorActive",Q)]:ze,[le("tabTextColorHover",Q)]:Le,[le("tabTextColorDisabled",Q)]:Je,[le("tabFontSize",q)]:yt},common:{cubicBezierEaseInOut:bt}}=d.value;return{"--n-bezier":bt,"--n-color-segment":Me,"--n-bar-color":de,"--n-tab-font-size":yt,"--n-tab-text-color":ne,"--n-tab-text-color-active":ze,"--n-tab-text-color-disabled":Je,"--n-tab-text-color-hover":Le,"--n-pane-text-color":Pt,"--n-tab-border-color":it,"--n-tab-border-radius":pt,"--n-close-size":G,"--n-close-icon-size":ve,"--n-close-color-hover":Fe,"--n-close-color-pressed":Be,"--n-close-border-radius":W,"--n-close-icon-color":me,"--n-close-icon-color-hover":je,"--n-close-icon-color-pressed":oe,"--n-tab-color":Ue,"--n-tab-font-weight":xt,"--n-tab-font-weight-active":ft,"--n-tab-padding":$e,"--n-tab-padding-vertical":We,"--n-tab-gap":ht,"--n-tab-gap-vertical":rt,"--n-pane-padding-left":Nt(ge,"left"),"--n-pane-padding-right":Nt(ge,"right"),"--n-pane-padding-top":Nt(ge,"top"),"--n-pane-padding-bottom":Nt(ge,"bottom"),"--n-font-weight-strong":Ze,"--n-tab-color-segment":M}}),ue=l?lt("tabs",C(()=>`${y.value[0]}${e.type[0]}`),ee,e):void 0;return Object.assign({mergedClsPrefix:s,mergedValue:P,renderedNames:new Set,segmentCapsuleElRef:J,tabsPaneWrapperRef:E,tabsElRef:c,barElRef:u,addTabInstRef:v,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:Pe,tabWrapperStyle:w,handleNavResize:H,mergedSize:y,handleScroll:ct,handleTabsResize:_e,cssVars:l?void 0:ee,themeClass:ue?.themeClass,animationDirection:ce,renderNameListRef:be,yScrollElRef:h,handleSegmentResize:Ce,onAnimationBeforeLeave:te,onAnimationEnter:U,onAnimationAfterEnter:ie,onRender:ue?.onRender},ot)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:r,addable:n,mergedSize:i,renderNameListRef:s,onRender:l,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:u,prefix:f,suffix:v}}=this;l?.();const p=u?Ro(u()).filter($=>$.type.__TAB_PANE__===!0):[],h=u?Ro(u()).filter($=>$.type.__TAB__===!0):[],g=!h.length,b=t==="card",y=t==="segment",x=!b&&!y&&this.justifyContent;s.value=[];const F=()=>{const $=a("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:a("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?p.map((w,k)=>(s.value.push(w.props.name),Fa(a(ii,Object.assign({},w.props,{internalCreatedByPane:!0,internalLeftPadded:k!==0&&(!x||x==="center"||x==="start"||x==="end")}),w.children?{default:w.children.tab}:void 0)))):h.map((w,k)=>(s.value.push(w.props.name),Fa(k!==0&&!x?Yl(w):w))),!r&&n&&b?ql(n,(g?p.length:h.length)!==0):null,x?null:a("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return a("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},b&&n?a(_o,{onResize:this.handleTabsResize},{default:()=>$}):$,b?a("div",{class:`${e}-tabs-pad`}):null,b?null:a("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},P=y?"top":o;return a("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${P}`],style:this.cssVars},a("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${P}`,`${e}-tabs-nav`]},mt(f,$=>$&&a("div",{class:`${e}-tabs-nav__prefix`},$)),y?a(_o,{onResize:this.handleSegmentResize},{default:()=>a("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},a("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},a("div",{class:`${e}-tabs-wrapper`},a("div",{class:`${e}-tabs-tab`}))),g?p.map(($,w)=>(s.value.push($.props.name),a(ii,Object.assign({},$.props,{internalCreatedByPane:!0,internalLeftPadded:w!==0}),$.children?{default:$.children.tab}:void 0))):h.map(($,w)=>(s.value.push($.props.name),w===0?$:Yl($))))}):a(_o,{onResize:this.handleNavResize},{default:()=>a("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(P)?a(Au,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:F}):a("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},F()))}),r&&n&&b?ql(n,!0):null,mt(v,$=>$&&a("div",{class:`${e}-tabs-nav__suffix`},$))),g&&(this.animated&&(P==="top"||P==="bottom")?a("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Kl(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Kl(p,this.mergedValue,this.renderedNames)))}});function Kl(e,t,o,r,n,i,s){const l=[];return e.forEach(d=>{const{name:c,displayDirective:u,"display-directive":f}=d.props,v=h=>u===h||f===h,p=t===c;if(d.key!==void 0&&(d.key=c),p||v("show")||v("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const h=!v("if");l.push(h?uo(d,[[Eo,p]]):d)}}),s?a(as,{name:`${s}-transition`,onBeforeLeave:r,onEnter:n,onAfterEnter:i},{default:()=>l}):l}function ql(e,t){return a(ii,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Yl(e){const t=an(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Fa(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Xc="n-tree-select";function Gl({position:e,offsetLevel:t,indent:o,el:r}){const n={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")n.left=0,n.top=0,n.bottom=0,n.borderRadius="inherit",n.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";n[i]=0,n.left=`${r.offsetLeft+6-t*o}px`,n.height="2px",n.backgroundColor="var(--n-drop-mark-color)",n.transformOrigin=i,n.borderRadius="1px",n.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return a("div",{style:n})}function wC({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}const $n="n-tree";function SC({props:e,fNodesRef:t,mergedExpandedKeysRef:o,mergedSelectedKeysRef:r,mergedCheckedKeysRef:n,handleCheck:i,handleSelect:s,handleSwitcherClick:l}){const{value:d}=r,c=Ee(Xc,null),u=c?c.pendingNodeKeyRef:O(d.length?d[d.length-1]:null);function f(v){var p;if(!e.keyboard)return{enterBehavior:null};const{value:h}=u;let g=null;if(h===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&h===null){const{value:b}=t;let y=0;for(;yx.key===h);if(!~y)return{enterBehavior:null};if(v.key==="Enter"){const x=b[y];switch(g=((p=e.overrideDefaultNodeClickBehavior)===null||p===void 0?void 0:p.call(e,{option:x.rawNode}))||null,g){case"toggleCheck":i(x,!n.value.includes(x.key));break;case"toggleSelect":s(x);break;case"toggleExpand":l(x);break;case"none":break;case"default":default:g="default",s(x)}}else if(v.key==="ArrowDown")for(v.preventDefault(),y+=1;y=0;){if(!b[y].disabled){u.value=b[y].key;break}y-=1}else if(v.key==="ArrowLeft"){const x=b[y];if(x.isLeaf||!o.value.includes(h)){const F=x.getParent();F&&(u.value=F.key)}else l(x)}else if(v.key==="ArrowRight"){const x=b[y];if(x.isLeaf)return{enterBehavior:null};if(!o.value.includes(h))l(x);else for(y+=1;y{const{clsPrefix:o,expanded:r,hide:n,indent:i,onClick:s}=e;return a("span",{"data-switcher":!0,class:[`${o}-tree-node-switcher`,r&&`${o}-tree-node-switcher--expanded`,n&&`${o}-tree-node-switcher--hide`],style:{width:`${i}px`},onClick:s},a("div",{class:`${o}-tree-node-switcher__icon`},a(dr,null,{default:()=>{if(e.loading)return a(Zo,{clsPrefix:o,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):a(zt,{clsPrefix:o,key:"switcher"},{default:()=>a(Pf,null)})}})))}}});function PC(e){return C(()=>e.leafOnly?"child":e.checkStrategy)}function Jo(e,t){return!!e.rawNode[t]}function Zc(e,t,o,r){e?.forEach(n=>{o(n),Zc(n[t],t,o,r),r(n)})}function $C(e,t,o,r,n){const i=new Set,s=new Set,l=[];return Zc(e,r,d=>{if(l.push(d),n(t,d)){s.add(d[o]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][o]))i.add(l[c][o]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:s}}if(xo&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function TC(e,t,o,r,n){const i=new Set,s=new Set,l=new Set,d=[],c=[],u=[];function f(p){p.forEach(h=>{if(u.push(h),t(o,h)){i.add(h[r]),l.add(h[r]);for(let b=u.length-2;b>=0;--b){const y=u[b][r];if(!s.has(y))s.add(y),i.has(y)&&i.delete(y);else break}}const g=h[n];g&&f(g),u.pop()})}f(e);function v(p,h){p.forEach(g=>{const b=g[r],y=i.has(b),x=s.has(b);if(!y&&!x)return;const F=g[n];if(F)if(y)h.push(g);else{d.push(b);const P=Object.assign(Object.assign({},g),{[n]:[]});h.push(P),v(F,P[n])}else h.push(g)})}return v(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:d}}const Qc=re({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Ee($n),{droppingNodeParentRef:o,droppingMouseNodeRef:r,draggingNodeRef:n,droppingPositionRef:i,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:d,blockLineRef:c,checkboxPlacementRef:u,checkOnClickRef:f,disabledFieldRef:v,showLineRef:p,renderSwitcherIconRef:h,overrideDefaultNodeClickBehaviorRef:g}=t,b=tt(()=>!!e.tmNode.rawNode.checkboxDisabled),y=tt(()=>Jo(e.tmNode,v.value)),x=tt(()=>t.disabledRef.value||y.value),F=C(()=>{const{value:I}=l;if(I)return I({option:e.tmNode.rawNode})}),P=O(null),$={value:null};to(()=>{$.value=P.value.$el});function w(){const I=()=>{const{tmNode:j}=e;if(!j.isLeaf&&!j.shallowLoaded){if(!t.loadingKeysRef.value.has(j.key))t.loadingKeysRef.value.add(j.key);else return;const{onLoadRef:{value:J}}=t;J&&J(j.rawNode).then(se=>{se!==!1&&t.handleSwitcherClick(j)}).finally(()=>{t.loadingKeysRef.value.delete(j.key)})}else t.handleSwitcherClick(j)};h.value?setTimeout(I,0):I()}const k=tt(()=>!y.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),D=tt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),T=tt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),A=tt(()=>{const{value:I}=D;if(!I)return!1;const{value:j}=f,{tmNode:J}=e;return typeof j=="boolean"?!J.disabled&&j:j(e.tmNode.rawNode)});function N(I){const{value:j}=t.expandOnClickRef,{value:J}=k,{value:se}=A;if(!J&&!j&&!se||Jt(I,"checkbox")||Jt(I,"switcher"))return;const{tmNode:xe}=e;J&&t.handleSelect(xe),j&&!xe.isLeaf&&w(),se&&L(!T.value)}function B(I){var j,J;if(!(Jt(I,"checkbox")||Jt(I,"switcher"))){if(!x.value){const se=g.value;let xe=!1;if(se)switch(se({option:e.tmNode.rawNode})){case"toggleCheck":xe=!0,L(!T.value);break;case"toggleSelect":xe=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":xe=!0,w(),xe=!0;break;case"none":xe=!0,xe=!0;return}xe||N(I)}(J=(j=F.value)===null||j===void 0?void 0:j.onClick)===null||J===void 0||J.call(j,I)}}function E(I){c.value||B(I)}function K(I){c.value&&B(I)}function L(I){t.handleCheck(e.tmNode,I)}function te(I){t.handleDragStart({event:I,node:e.tmNode})}function U(I){I.currentTarget===I.target&&t.handleDragEnter({event:I,node:e.tmNode})}function ie(I){I.preventDefault(),t.handleDragOver({event:I,node:e.tmNode})}function be(I){t.handleDragEnd({event:I,node:e.tmNode})}function ce(I){I.currentTarget===I.target&&t.handleDragLeave({event:I,node:e.tmNode})}function V(I){I.preventDefault(),i.value!==null&&t.handleDrop({event:I,node:e.tmNode,dropPosition:i.value})}const _=C(()=>{const{clsPrefix:I}=e,{value:j}=d;if(p.value){const J=[];let se=e.tmNode.parent;for(;se;)se.isLastChild?J.push(a("div",{class:`${I}-tree-node-indent`},a("div",{style:{width:`${j}px`}}))):J.push(a("div",{class:[`${I}-tree-node-indent`,`${I}-tree-node-indent--show-line`]},a("div",{style:{width:`${j}px`}}))),se=se.parent;return J.reverse()}else return si(e.tmNode.level,a("div",{class:`${e.clsPrefix}-tree-node-indent`},a("div",{style:{width:`${j}px`}})))});return{showDropMark:tt(()=>{const{value:I}=n;if(!I)return;const{value:j}=i;if(!j)return;const{value:J}=r;if(!J)return;const{tmNode:se}=e;return se.key===J.key}),showDropMarkAsParent:tt(()=>{const{value:I}=o;if(!I)return!1;const{tmNode:j}=e,{value:J}=i;return J==="before"||J==="after"?I.key===j.key:!1}),pending:tt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:tt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:tt(()=>{var I;return(I=t.highlightKeySetRef.value)===null||I===void 0?void 0:I.has(e.tmNode.key)}),checked:T,indeterminate:tt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:tt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:tt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:x,checkable:D,mergedCheckOnClick:A,checkboxDisabled:b,selectable:k,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:F,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:s,indent:d,checkboxPlacement:u,showLine:p,contentInstRef:P,contentElRef:$,indentNodes:_,handleCheck:L,handleDrop:V,handleDragStart:te,handleDragEnter:U,handleDragOver:ie,handleDragEnd:be,handleDragLeave:ce,handleLineClick:K,handleContentClick:E,handleSwitcherClick:w}},render(){const{tmNode:e,clsPrefix:t,checkable:o,expandOnClick:r,selectable:n,selected:i,checked:s,highlight:l,draggable:d,blockLine:c,indent:u,indentNodes:f,disabled:v,pending:p,internalScrollable:h,nodeProps:g,checkboxPlacement:b}=this,y=d&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,x=h?xs(e.key):void 0,F=b==="right",P=o?a(kC,{indent:u,right:F,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return a("div",Object.assign({class:`${t}-tree-node-wrapper`},y),a("div",Object.assign({},c?g:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:o,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:n,[`${t}-tree-node--clickable`]:n||r||this.mergedCheckOnClick},g?.class],"data-key":x,draggable:d&&c,onClick:this.handleLineClick,onDragstart:d&&c&&!v?this.handleDragStart:void 0}),f,e.isLeaf&&this.showLine?a("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},a("div",{style:{width:`${u}px`}})):a(zC,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),F?null:P,a(RC,{ref:"contentInstRef",clsPrefix:t,checked:s,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:g,onDragstart:d&&!c&&!v?this.handleDragStart:void 0,tmNode:e}),d?this.showDropMark?Gl({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?Gl({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,F?P:null))}}),FC=re({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return a(yn,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>a("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Et(this.height)}},this.nodes.map(t=>a(Qc,{clsPrefix:e,tmNode:t})))})}}),Ia=ho(),IC=m("tree",` + font-size: var(--n-font-size); + outline: none; +`,[S("ul, li",` + margin: 0; + padding: 0; + list-style: none; + `),S(">",[m("tree-node",[S("&:first-child","margin-top: 0;")])]),m("tree-motion-wrapper",[R("expand",[cn({duration:"0.2s"})]),R("collapse",[cn({duration:"0.2s",reverse:!0})])]),m("tree-node-wrapper",` + box-sizing: border-box; + padding: var(--n-node-wrapper-padding); + `),m("tree-node",` + position: relative; + display: flex; + border-radius: var(--n-node-border-radius); + transition: background-color .3s var(--n-bezier); + `,[R("highlight",[m("tree-node-content",[z("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),R("disabled",[m("tree-node-content",` + color: var(--n-node-text-color-disabled); + cursor: not-allowed; + `)]),at("disabled",[R("clickable",[m("tree-node-content",` + cursor: pointer; + `)])])]),R("block-node",[m("tree-node-content",` + flex: 1; + min-width: 0; + `)]),at("block-line",[m("tree-node",[at("disabled",[m("tree-node-content",[S("&:hover","background: var(--n-node-color-hover);")]),R("selectable",[m("tree-node-content",[S("&:active","background: var(--n-node-color-pressed);")])]),R("pending",[m("tree-node-content",` + background: var(--n-node-color-hover); + `)]),R("selected",[m("tree-node-content","background: var(--n-node-color-active);")])]),R("selected",[m("tree-node-content","background: var(--n-node-color-active);")])])]),R("block-line",[m("tree-node",[at("disabled",[S("&:hover","background: var(--n-node-color-hover);"),R("pending",` + background: var(--n-node-color-hover); + `),R("selectable",[at("selected",[S("&:active","background: var(--n-node-color-pressed);")])]),R("selected","background: var(--n-node-color-active);")]),R("selected","background: var(--n-node-color-active);"),R("disabled",` + cursor: not-allowed; + `)])]),R("ellipsis",[m("tree-node",[m("tree-node-content",` + overflow: hidden; + `,[z("text",` + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + `)])])]),m("tree-node-indent",` + flex-grow: 0; + flex-shrink: 0; + `,[R("show-line","position: relative",[S("&::before",` + position: absolute; + left: 50%; + border-left: 1px solid var(--n-line-color); + transition: border-color .3s var(--n-bezier); + transform: translate(-50%); + content: ""; + top: var(--n-line-offset-top); + bottom: var(--n-line-offset-bottom); + `),R("last-child",[S("&::before",` + bottom: 50%; + `)]),R("is-leaf",[S("&::after",` + position: absolute; + content: ""; + left: calc(50% + 0.5px); + right: 0; + bottom: 50%; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-line-color); + `)])]),at("show-line","height: 0;")]),m("tree-node-switcher",` + cursor: pointer; + display: inline-flex; + flex-shrink: 0; + height: var(--n-node-content-height); + align-items: center; + justify-content: center; + transition: transform .15s var(--n-bezier); + vertical-align: bottom; + `,[z("icon",` + position: relative; + height: 14px; + width: 14px; + display: flex; + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + font-size: 14px; + `,[m("icon",[Ia]),m("base-loading",` + color: var(--n-loading-color); + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Ia]),m("base-icon",[Ia])]),R("hide","visibility: hidden;"),R("expanded","transform: rotate(90deg);")]),m("tree-node-checkbox",` + display: inline-flex; + height: var(--n-node-content-height); + vertical-align: bottom; + align-items: center; + justify-content: center; + `),m("tree-node-content",` + user-select: none; + position: relative; + display: inline-flex; + align-items: center; + min-height: var(--n-node-content-height); + box-sizing: border-box; + line-height: var(--n-line-height); + vertical-align: bottom; + padding: 0 6px 0 4px; + cursor: default; + border-radius: var(--n-node-border-radius); + color: var(--n-node-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[S("&:last-child","margin-bottom: 0;"),z("prefix",` + display: inline-flex; + margin-right: 8px; + `),z("text",` + border-bottom: 1px solid #0000; + transition: border-color .3s var(--n-bezier); + flex-grow: 1; + max-width: 100%; + `),z("suffix",` + display: inline-flex; + `)]),z("empty","margin: auto;")]);var BC=function(e,t,o,r){function n(i){return i instanceof o?i:new o(function(s){s(i)})}return new(o||(o=Promise))(function(i,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):n(u.value).then(l,d)}c((r=r.apply(e,[])).next())})};function Xl(e,t,o,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[o]||i.checkboxDisabled)}}}const OC={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},MC=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:wC},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),OC),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),Gy=re({name:"Tree",props:MC,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Qe(e),n=jt("Tree",r,t),i=Re("Tree","-tree",IC,tx,e,t),s=O(null),l=O(null),d=O(null);function c(){var Y;return(Y=d.value)===null||Y===void 0?void 0:Y.listElRef}function u(){var Y;return(Y=d.value)===null||Y===void 0?void 0:Y.itemsElRef}const f=C(()=>{const{filter:Y}=e;if(Y)return Y;const{labelField:he}=e;return(ke,Ae)=>{if(!ke.length)return!0;const Ne=Ae[he];return typeof Ne=="string"?Ne.toLowerCase().includes(ke.toLowerCase()):!1}}),v=C(()=>{const{pattern:Y}=e;return Y?!Y.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:TC(e.data,f.value,Y,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=C(()=>Uo(e.showIrrelevantNodes?e.data:v.value.filteredTree,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),h=Ee(Xc,null),g=e.internalTreeSelect?h.dataTreeMate:C(()=>e.showIrrelevantNodes?p.value:Uo(e.data,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:b}=e,y=O([]);b?.includes("defaultCheckedKeys")?Ft(()=>{y.value=e.defaultCheckedKeys}):y.value=e.defaultCheckedKeys;const x=fe(e,"checkedKeys"),F=$t(x,y),P=C(()=>g.value.getCheckedKeys(F.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),$=PC(e),w=C(()=>P.value.checkedKeys),k=C(()=>{const{indeterminateKeys:Y}=e;return Y!==void 0?Y:P.value.indeterminateKeys}),D=O([]);b?.includes("defaultSelectedKeys")?Ft(()=>{D.value=e.defaultSelectedKeys}):D.value=e.defaultSelectedKeys;const T=fe(e,"selectedKeys"),A=$t(T,D),N=O([]),B=Y=>{N.value=e.defaultExpandAll?g.value.getNonLeafKeys():Y===void 0?e.defaultExpandedKeys:Y};b?.includes("defaultExpandedKeys")?Ft(()=>{B(void 0)}):Ft(()=>{B(e.defaultExpandedKeys)});const E=fe(e,"expandedKeys"),K=$t(E,N),L=C(()=>p.value.getFlattenedNodes(K.value)),{pendingNodeKeyRef:te,handleKeydown:U}=SC({props:e,mergedCheckedKeysRef:F,mergedSelectedKeysRef:A,fNodesRef:L,mergedExpandedKeysRef:K,handleCheck:ve,handleSelect:W,handleSwitcherClick:Be});let ie=null,be=null;const ce=O(new Set),V=C(()=>e.internalHighlightKeySet||v.value.highlightKeySet),_=$t(V,ce),I=O(new Set),j=C(()=>K.value.filter(Y=>!I.value.has(Y)));let J=0;const se=O(null),xe=O(null),Ie=O(null),H=O(null),Pe=O(0),He=C(()=>{const{value:Y}=xe;return Y?Y.parent:null});let _e=!1;gt(fe(e,"data"),()=>{_e=!0,Tt(()=>{_e=!1}),I.value.clear(),te.value=null,Me()},{deep:!1});let Ge=!1;const Xe=()=>{Ge=!0,Tt(()=>{Ge=!1})};let ct;gt(fe(e,"pattern"),(Y,he)=>{if(e.showIrrelevantNodes)if(ct=void 0,Y){const{expandedKeys:ke,highlightKeySet:Ae}=$C(e.data,e.pattern,e.keyField,e.childrenField,f.value);ce.value=Ae,Xe(),de(ke,we(ke),{node:null,action:"filter"})}else ce.value=new Set;else if(!Y.length)ct!==void 0&&(Xe(),de(ct,we(ct),{node:null,action:"filter"}));else{he.length||(ct=K.value);const{expandedKeys:ke}=v.value;ke!==void 0&&(Xe(),de(ke,we(ke),{node:null,action:"filter"}))}});function ot(Y){return BC(this,void 0,void 0,function*(){const{onLoad:he}=e;if(!he){yield Promise.resolve();return}const{value:ke}=I;if(!ke.has(Y.key)){ke.add(Y.key);try{(yield he(Y.rawNode))===!1&&G()}catch{G()}ke.delete(Y.key)}})}Ft(()=>{var Y;const{value:he}=p;if(!he)return;const{getNode:ke}=he;(Y=K.value)===null||Y===void 0||Y.forEach(Ae=>{const Ne=ke(Ae);Ne&&!Ne.shallowLoaded&&ot(Ne)})});const Ce=O(!1),ee=O([]);gt(j,(Y,he)=>{if(!e.animated||Ge){Tt(Q);return}if(_e)return;const ke=Dt(i.value.self.nodeHeight),Ae=new Set(he);let Ne=null,st=null;for(const wt of Y)if(!Ae.has(wt)){if(Ne!==null)return;Ne=wt}const It=new Set(Y);for(const wt of he)if(!It.has(wt)){if(st!==null)return;st=wt}if(Ne===null&&st===null)return;const{virtualScroll:Ot}=e,Qt=(Ot?d.value.listElRef:s.value).offsetHeight,oo=Math.ceil(Qt/ke)+1;let Vt;if(Ne!==null&&(Vt=he),st!==null&&(Vt===void 0?Vt=Y:Vt=Vt.filter(wt=>wt!==st)),Ce.value=!0,ee.value=p.value.getFlattenedNodes(Vt),Ne!==null){const wt=ee.value.findIndex(Z=>Z.key===Ne);if(~wt){const Z=ee.value[wt].children;if(Z){const Te=el(Z,Y);ee.value.splice(wt+1,0,{__motion:!0,mode:"expand",height:Ot?Te.length*ke:void 0,nodes:Ot?Te.slice(0,oo):Te})}}}if(st!==null){const wt=ee.value.findIndex(Z=>Z.key===st);if(~wt){const Z=ee.value[wt].children;if(!Z)return;Ce.value=!0;const Te=el(Z,Y);ee.value.splice(wt+1,0,{__motion:!0,mode:"collapse",height:Ot?Te.length*ke:void 0,nodes:Ot?Te.slice(0,oo):Te})}}});const ue=C(()=>ls(L.value)),q=C(()=>Ce.value?ee.value:L.value);function Q(){const{value:Y}=l;Y&&Y.sync()}function pe(){Ce.value=!1,e.virtualScroll&&Tt(Q)}function we(Y){const{getNode:he}=g.value;return Y.map(ke=>{var Ae;return((Ae=he(ke))===null||Ae===void 0?void 0:Ae.rawNode)||null})}function de(Y,he,ke){const{"onUpdate:expandedKeys":Ae,onUpdateExpandedKeys:Ne}=e;N.value=Y,Ae&&ae(Ae,Y,he,ke),Ne&&ae(Ne,Y,he,ke)}function me(Y,he,ke){const{"onUpdate:checkedKeys":Ae,onUpdateCheckedKeys:Ne}=e;y.value=Y,Ne&&ae(Ne,Y,he,ke),Ae&&ae(Ae,Y,he,ke)}function je(Y,he){const{"onUpdate:indeterminateKeys":ke,onUpdateIndeterminateKeys:Ae}=e;ke&&ae(ke,Y,he),Ae&&ae(Ae,Y,he)}function oe(Y,he,ke){const{"onUpdate:selectedKeys":Ae,onUpdateSelectedKeys:Ne}=e;D.value=Y,Ne&&ae(Ne,Y,he,ke),Ae&&ae(Ae,Y,he,ke)}function Ue(Y){const{onDragenter:he}=e;he&&ae(he,Y)}function it(Y){const{onDragleave:he}=e;he&&ae(he,Y)}function Pt(Y){const{onDragend:he}=e;he&&ae(he,Y)}function xt(Y){const{onDragstart:he}=e;he&&ae(he,Y)}function pt(Y){const{onDragover:he}=e;he&&ae(he,Y)}function ft(Y){const{onDrop:he}=e;he&&ae(he,Y)}function Me(){Ze(),M()}function Ze(){se.value=null}function M(){Pe.value=0,xe.value=null,Ie.value=null,H.value=null,G()}function G(){ie&&(window.clearTimeout(ie),ie=null),be=null}function ve(Y,he){if(e.disabled||Jo(Y,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){W(Y);return}const ke=he?"check":"uncheck",{checkedKeys:Ae,indeterminateKeys:Ne}=g.value[ke](Y.key,w.value,{cascade:e.cascade,checkStrategy:$.value,allowNotLoaded:e.allowCheckingNotLoaded});me(Ae,we(Ae),{node:Y.rawNode,action:ke}),je(Ne,we(Ne))}function Fe(Y){if(e.disabled)return;const{key:he}=Y,{value:ke}=K,Ae=ke.findIndex(Ne=>Ne===he);if(~Ae){const Ne=Array.from(ke);Ne.splice(Ae,1),de(Ne,we(Ne),{node:Y.rawNode,action:"collapse"})}else{const Ne=p.value.getNode(he);if(!Ne||Ne.isLeaf)return;let st;if(e.accordion){const It=new Set(Y.siblings.map(({key:Ot})=>Ot));st=ke.filter(Ot=>!It.has(Ot)),st.push(he)}else st=ke.concat(he);de(st,we(st),{node:Y.rawNode,action:"expand"})}}function Be(Y){e.disabled||Ce.value||Fe(Y)}function W(Y){if(!(e.disabled||!e.selectable)){if(te.value=Y.key,e.internalUnifySelectCheck){const{value:{checkedKeys:he,indeterminateKeys:ke}}=P;e.multiple?ve(Y,!(he.includes(Y.key)||ke.includes(Y.key))):me([Y.key],we([Y.key]),{node:Y.rawNode,action:"check"})}if(e.multiple){const he=Array.from(A.value),ke=he.findIndex(Ae=>Ae===Y.key);~ke?e.cancelable&&he.splice(ke,1):~ke||he.push(Y.key),oe(he,we(he),{node:Y.rawNode,action:~ke?"unselect":"select"})}else A.value.includes(Y.key)?e.cancelable&&oe([],[],{node:Y.rawNode,action:"unselect"}):oe([Y.key],we([Y.key]),{node:Y.rawNode,action:"select"})}}function ge(Y){if(ie&&(window.clearTimeout(ie),ie=null),Y.isLeaf)return;be=Y.key;const he=()=>{if(be!==Y.key)return;const{value:ke}=Ie;if(ke&&ke.key===Y.key&&!K.value.includes(Y.key)){const Ae=K.value.concat(Y.key);de(Ae,we(Ae),{node:Y.rawNode,action:"expand"})}ie=null,be=null};Y.shallowLoaded?ie=window.setTimeout(()=>{he()},1e3):ie=window.setTimeout(()=>{ot(Y).then(()=>{he()})},1e3)}function $e({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||(ze({event:Y,node:he},!1),Ue({event:Y,node:he.rawNode}))}function We({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||it({event:Y,node:he.rawNode})}function ht(Y){Y.target===Y.currentTarget&&M()}function rt({event:Y,node:he}){Me(),!(!e.draggable||e.disabled||Jo(he,e.disabledField))&&Pt({event:Y,node:he.rawNode})}function ne({event:Y,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||(J=Y.clientX,se.value=he,xt({event:Y,node:he.rawNode}))}function ze({event:Y,node:he},ke=!0){var Ae;if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Ne}=se;if(!Ne)return;const{allowDrop:st,indent:It}=e;ke&&pt({event:Y,node:he.rawNode});const Ot=Y.currentTarget,{height:Qt,top:oo}=Ot.getBoundingClientRect(),Vt=Y.clientY-oo;let wt;st({node:he.rawNode,dropPosition:"inside",phase:"drag"})?Vt<=8?wt="before":Vt>=Qt-8?wt="after":wt="inside":Vt<=Qt/2?wt="before":wt="after";const{value:Te}=ue;let Oe,ut;const Wt=Te(he.key);if(Wt===null){M();return}let St=!1;wt==="inside"?(Oe=he,ut="inside"):wt==="before"?he.isFirstChild?(Oe=he,ut="before"):(Oe=L.value[Wt-1],ut="after"):(Oe=he,ut="after"),!Oe.isLeaf&&K.value.includes(Oe.key)&&(St=!0,ut==="after"&&(Oe=L.value[Wt+1],Oe?ut="before":(Oe=he,ut="inside")));const wo=Oe;if(Ie.value=wo,!St&&Ne.isLastChild&&Ne.key===Oe.key&&(ut="after"),ut==="after"){let Fo=J-Y.clientX,go=0;for(;Fo>=It/2&&Oe.parent!==null&&Oe.isLastChild&&go<1;)Fo-=It,go+=1,Oe=Oe.parent;Pe.value=go}else Pe.value=0;if((Ne.contains(Oe)||ut==="inside"&&((Ae=Ne.parent)===null||Ae===void 0?void 0:Ae.key)===Oe.key)&&!(Ne.key===wo.key&&Ne.key===Oe.key)){M();return}if(!st({node:Oe.rawNode,dropPosition:ut,phase:"drag"})){M();return}if(Ne.key===Oe.key)G();else if(be!==Oe.key)if(ut==="inside"){if(e.expandOnDragenter){if(ge(Oe),!Oe.shallowLoaded&&be!==Oe.key){Me();return}}else if(!Oe.shallowLoaded){Me();return}}else G();else ut!=="inside"&&G();H.value=ut,xe.value=Oe}function Le({event:Y,node:he,dropPosition:ke}){if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Ae}=se,{value:Ne}=xe,{value:st}=H;if(!(!Ae||!Ne||!st)&&e.allowDrop({node:Ne.rawNode,dropPosition:st,phase:"drag"})&&Ae.key!==Ne.key){if(st==="before"){const It=Ae.getNext({includeDisabled:!0});if(It&&It.key===Ne.key){M();return}}if(st==="after"){const It=Ae.getPrev({includeDisabled:!0});if(It&&It.key===Ne.key){M();return}}ft({event:Y,node:Ne.rawNode,dragNode:Ae.rawNode,dropPosition:ke}),Me()}}function Je(){Q()}function yt(){Q()}function bt(Y){var he;if(e.virtualScroll||e.internalScrollable){const{value:ke}=l;if(!((he=ke?.containerRef)===null||he===void 0)&&he.contains(Y.relatedTarget))return;te.value=null}else{const{value:ke}=s;if(ke?.contains(Y.relatedTarget))return;te.value=null}}gt(te,Y=>{var he,ke;if(Y!==null){if(e.virtualScroll)(he=d.value)===null||he===void 0||he.scrollTo({key:Y});else if(e.internalScrollable){const{value:Ae}=l;if(Ae===null)return;const Ne=(ke=Ae.contentRef)===null||ke===void 0?void 0:ke.querySelector(`[data-key="${xs(Y)}"]`);if(!Ne)return;Ae.scrollTo({el:Ne})}}}),et($n,{loadingKeysRef:I,highlightKeySetRef:_,displayedCheckedKeysRef:w,displayedIndeterminateKeysRef:k,mergedSelectedKeysRef:A,mergedExpandedKeysRef:K,mergedThemeRef:i,mergedCheckStrategyRef:$,nodePropsRef:fe(e,"nodeProps"),disabledRef:fe(e,"disabled"),checkableRef:fe(e,"checkable"),selectableRef:fe(e,"selectable"),expandOnClickRef:fe(e,"expandOnClick"),onLoadRef:fe(e,"onLoad"),draggableRef:fe(e,"draggable"),blockLineRef:fe(e,"blockLine"),indentRef:fe(e,"indent"),cascadeRef:fe(e,"cascade"),checkOnClickRef:fe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Ie,droppingNodeParentRef:He,draggingNodeRef:se,droppingPositionRef:H,droppingOffsetLevelRef:Pe,fNodesRef:L,pendingNodeKeyRef:te,showLineRef:fe(e,"showLine"),disabledFieldRef:fe(e,"disabledField"),internalScrollableRef:fe(e,"internalScrollable"),internalCheckboxFocusableRef:fe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:fe(e,"renderLabel"),renderPrefixRef:fe(e,"renderPrefix"),renderSuffixRef:fe(e,"renderSuffix"),renderSwitcherIconRef:fe(e,"renderSwitcherIcon"),labelFieldRef:fe(e,"labelField"),multipleRef:fe(e,"multiple"),overrideDefaultNodeClickBehaviorRef:fe(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Be,handleDragEnd:rt,handleDragEnter:$e,handleDragLeave:We,handleDragStart:ne,handleDrop:Le,handleDragOver:ze,handleSelect:W,handleCheck:ve});function Ct(Y,he){var ke,Ae;typeof Y=="number"?(ke=d.value)===null||ke===void 0||ke.scrollTo(Y,he||0):(Ae=d.value)===null||Ae===void 0||Ae.scrollTo(Y)}const X={handleKeydown:U,scrollTo:Ct,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:Y}=P.value;return{keys:Y,options:we(Y)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:Y}=P.value;return{keys:Y,options:we(Y)}}},ye=C(()=>{const{common:{cubicBezierEaseInOut:Y},self:{fontSize:he,nodeBorderRadius:ke,nodeColorHover:Ae,nodeColorPressed:Ne,nodeColorActive:st,arrowColor:It,loadingColor:Ot,nodeTextColor:Qt,nodeTextColorDisabled:oo,dropMarkColor:Vt,nodeWrapperPadding:wt,nodeHeight:Z,lineHeight:Te,lineColor:Oe}}=i.value,ut=Nt(wt,"top"),Wt=Nt(wt,"bottom"),St=Et(Dt(Z)-Dt(ut)-Dt(Wt));return{"--n-arrow-color":It,"--n-loading-color":Ot,"--n-bezier":Y,"--n-font-size":he,"--n-node-border-radius":ke,"--n-node-color-active":st,"--n-node-color-hover":Ae,"--n-node-color-pressed":Ne,"--n-node-text-color":Qt,"--n-node-text-color-disabled":oo,"--n-drop-mark-color":Vt,"--n-node-wrapper-padding":wt,"--n-line-offset-top":`-${ut}`,"--n-line-offset-bottom":`-${Wt}`,"--n-node-content-height":St,"--n-line-height":Te,"--n-line-color":Oe}}),Ke=o?lt("tree",void 0,ye,e):void 0;return Object.assign(Object.assign({},X),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:n,fNodes:q,aip:Ce,selfElRef:s,virtualListInstRef:d,scrollbarInstRef:l,handleFocusout:bt,handleDragLeaveTree:ht,handleScroll:Je,getScrollContainer:c,getScrollContent:u,handleAfterEnter:pe,handleResize:yt,cssVars:o?void 0:ye,themeClass:Ke?.themeClass,onRender:Ke?.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:o}=this;if(!t.length&&o)return o();const{mergedClsPrefix:r,blockNode:n,blockLine:i,draggable:s,disabled:l,ellipsis:d,internalFocusable:c,checkable:u,handleKeydown:f,rtlEnabled:v,handleFocusout:p,scrollbarProps:h}=this,g=c&&!l,b=g?"0":void 0,y=[`${r}-tree`,v&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(i||n)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`,d&&`${r}-tree--ellipsis`],x=P=>"__motion"in P?a(FC,{height:P.height,nodes:P.nodes,clsPrefix:r,mode:P.mode,onAfterEnter:this.handleAfterEnter}):a(Qc,{key:P.key,tmNode:P,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:P,internalScrollablePadding:$}=this,w=Nt($||"0");return a(Gn,Object.assign({},h,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:y,theme:P.peers.Scrollbar,themeOverrides:P.peerOverrides.Scrollbar,tabindex:b,onKeydown:g?f:void 0,onFocusout:g?p:void 0}),{default:()=>{var k;return(k=this.onRender)===null||k===void 0||k.call(this),t.length?a(wr,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Dt(P.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:w.top,paddingBottom:w.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:w.left,paddingRight:w.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:D})=>x(D)}):vt(this.$slots.empty,()=>[a(Xn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:F}=this;return y.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),F?a(Gn,Object.assign({},h,{class:y,tabindex:b,onKeydown:g?f:void 0,onFocusout:g?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>a("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(x))}):a("div",{class:y,tabindex:b,ref:"selfElRef",style:this.cssVars,onKeydown:g?f:void 0,onFocusout:g?p:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(x):vt(this.$slots.empty,()=>[a(Xn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),DC=m("h",` + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + margin: var(--n-margin); + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[S("&:first-child",{marginTop:0}),R("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[R("align-text",{paddingLeft:0},[S("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),S("&::before",` + content: ""; + width: var(--n-bar-width); + border-radius: calc(var(--n-bar-width) / 2); + transition: background-color .3s var(--n-bezier); + left: 0; + top: 0; + bottom: 0; + position: absolute; + `),S("&::before",{backgroundColor:"var(--n-bar-color)"})])]),AC=Object.assign(Object.assign({},Re.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),_C=e=>re({name:`H${e}`,props:AC,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Qe(t),n=Re("Typography","-h",DC,Vi,t,o),i=C(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:d},self:{headerFontWeight:c,headerTextColor:u,[le("headerPrefixWidth",e)]:f,[le("headerFontSize",e)]:v,[le("headerMargin",e)]:p,[le("headerBarWidth",e)]:h,[le("headerBarColor",l)]:g}}=n.value;return{"--n-bezier":d,"--n-font-size":v,"--n-margin":p,"--n-bar-color":g,"--n-bar-width":h,"--n-font-weight":c,"--n-text-color":u,"--n-prefix-width":f}}),s=r?lt(`h${e}`,C(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:o,cssVars:r?void 0:i,themeClass:s?.themeClass,onRender:s?.onRender}},render(){var t;const{prefix:o,alignText:r,mergedClsPrefix:n,cssVars:i,$slots:s}=this;return(t=this.onRender)===null||t===void 0||t.call(this),a(`h${e}`,{class:[`${n}-h`,`${n}-h${e}`,this.themeClass,{[`${n}-h--prefix-bar`]:o,[`${n}-h--align-text`]:r}],style:i},s)}}),Xy=_C("6"),HC=m("p",` + box-sizing: border-box; + transition: color .3s var(--n-bezier); + margin: var(--n-margin); + font-size: var(--n-font-size); + line-height: var(--n-line-height); + color: var(--n-text-color); +`,[S("&:first-child","margin-top: 0;"),S("&:last-child","margin-bottom: 0;")]),EC=Object.assign(Object.assign({},Re.props),{depth:[String,Number]}),Zy=re({name:"P",props:EC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Typography","-p",HC,Vi,e,t),n=C(()=>{const{depth:s}=e,l=s||"1",{common:{cubicBezierEaseInOut:d},self:{pFontSize:c,pLineHeight:u,pMargin:f,pTextColor:v,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":d,"--n-font-size":c,"--n-line-height":u,"--n-margin":f,"--n-text-color":s===void 0?v:p}}),i=o?lt("p",C(()=>`${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),a("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),LC=m("text",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[R("strong",` + font-weight: var(--n-font-weight-strong); + `),R("italic",{fontStyle:"italic"}),R("underline",{textDecoration:"underline"}),R("code",` + line-height: 1.4; + display: inline-block; + font-family: var(--n-font-famliy-mono); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + box-sizing: border-box; + padding: .05em .35em 0 .35em; + border-radius: var(--n-code-border-radius); + font-size: .9em; + color: var(--n-code-text-color); + background-color: var(--n-code-color); + border: var(--n-code-border); + `)]),NC=Object.assign(Object.assign({},Re.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Qy=re({name:"Text",props:NC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Qe(e),r=Re("Typography","-text",LC,Vi,e,t),n=C(()=>{const{depth:s,type:l}=e,d=l==="default"?s===void 0?"textColor":`textColor${s}Depth`:le("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:u,cubicBezierEaseInOut:f},self:{codeTextColor:v,codeBorderRadius:p,codeColor:h,codeBorder:g,[d]:b}}=r.value;return{"--n-bezier":f,"--n-text-color":b,"--n-font-weight-strong":c,"--n-font-famliy-mono":u,"--n-code-border-radius":p,"--n-code-text-color":v,"--n-code-color":h,"--n-code-border":g}}),i=o?lt("text",C(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:rr(e,["as","tag"]),cssVars:o?void 0:n,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t);return this.code?a("code",{class:n,style:this.cssVars},this.delete?a("del",null,i):i):this.delete?a("del",{class:n,style:this.cssVars},i):a(this.compitableTag||"span",{class:n,style:this.cssVars},i)}}),jC=S([m("watermark-container",` + position: relative; + `,[at("selectable",` + user-select: none; + -webkit-user-select: none; + `),R("global-rotate",` + overflow: hidden; + `),R("fullscreen",` + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + position: fixed; + `)]),m("watermark",` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + background-repeat: repeat; + `,[R("fullscreen",` + position: fixed; + `),R("global-rotate",` + position: absolute; + height: max(284vh, 284vw); + width: max(284vh, 284vw); + `)])]);function VC(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const WC=Object.assign(Object.assign({},Re.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Jy=re({name:"Watermark",props:WC,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Qe(e),r=Re("Watermark","-watermark",jC,sx,e,o),n=O(""),i=xo?document.createElement("canvas"):null,s=i?i.getContext("2d"):null,l=O(!1);return is(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const d=VC(s),{xGap:c,yGap:u,width:f,height:v,yOffset:p,xOffset:h,rotate:g,image:b,content:y,fontColor:x,fontStyle:F,fontVariant:P,fontStretch:$,fontWeight:w,fontFamily:k,fontSize:D,lineHeight:T,debug:A}=e,N=(c+f)*d,B=(u+v)*d,E=h*d,K=p*d;if(i.width=N,i.height=B,s){s.translate(0,0);const L=f*d,te=v*d;if(A&&(s.strokeStyle="grey",s.strokeRect(0,0,L,te)),s.rotate(g*(Math.PI/180)),b){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=b,U.onload=()=>{s.globalAlpha=e.imageOpacity;const{imageWidth:ie,imageHeight:be}=e;s.drawImage(U,E,K,(e.imageWidth||(be?U.width*be/U.height:U.width))*d,(e.imageHeight||(ie?U.height*ie/U.width:U.height))*d),n.value=i.toDataURL()}}else if(y){A&&(s.strokeStyle="green",s.strokeRect(0,0,L,te)),s.font=`${F} ${P} ${w} ${$} ${D*d}px/${T*d}px ${k||r.value.self.fontFamily}`,s.fillStyle=x;let U=0;const{textAlign:ie}=e;y.split(` +`).map(be=>{const ce=s.measureText(be).width;return U=Math.max(U,ce),{width:ce,line:be}}).forEach(({line:be,width:ce},V)=>{const _=ie==="left"?0:ie==="center"?(U-ce)/2:U-ce;s.fillText(be,E+_,K+T*d*(V+1))}),n.value=i.toDataURL()}else y||(s.clearRect(0,0,i.width,i.height),n.value=i.toDataURL())}else lf("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=o.value,p=c!==0&&u,h="max(142vh, 142vw)",g=a("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${n.value}), url(${n.value})`:`url(${n.value})`}});return e.fullscreen&&!c?g:a("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),UC=()=>({}),KC={name:"Equation",common:De,self:UC},qC={name:"FloatButtonGroup",common:De,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},ew={name:"dark",common:De,Alert:uh,Anchor:Ch,AutoComplete:_h,Avatar:Ys,AvatarGroup:Kh,BackTop:Yh,Badge:Gh,Breadcrumb:Qh,Button:po,ButtonGroup:Jb,Calendar:bv,Card:rd,Carousel:Rv,Cascader:$v,Checkbox:Ur,Code:id,Collapse:Av,CollapseTransition:Hv,ColorPicker:Lv,DataTable:Op,DatePicker:Wg,Descriptions:dm,Dialog:ac,Divider:mb,Drawer:yb,Dropdown:Ii,DynamicInput:Eb,DynamicTags:Wb,Element:Yb,Empty:$r,Ellipsis:Cd,Equation:KC,Flex:Gb,Form:t0,GradientText:o0,Heatmap:$x,Icon:dg,IconWrapper:Fx,Image:Ix,Input:yo,InputNumber:a0,InputOtp:d0,LegacyTransfer:Ux,Layout:c0,List:v0,LoadingBar:Bm,Log:p0,Menu:x0,Mention:g0,Message:jm,Modal:Cm,Notification:ob,PageHeader:w0,Pagination:gd,Popconfirm:R0,Popover:Tr,Popselect:dd,Progress:Tc,QrCode:rC,Radio:Sd,Rate:P0,Result:F0,Row:f0,Scrollbar:no,Select:hd,Skeleton:fC,Slider:B0,Space:Sc,Spin:M0,Statistic:A0,Steps:E0,Switch:L0,Table:U0,Tabs:Y0,Tag:Ms,Thing:X0,TimePicker:qd,Timeline:Q0,Tooltip:ra,Transfer:ex,Tree:Dc,TreeSelect:ox,Typography:nx,Upload:ix,Watermark:lx,Split:gC,FloatButton:dx,FloatButtonGroup:qC,Marquee:qx};export{Ey as $,my as A,At as B,xx as C,Mo as D,Od as E,Dy as F,$y as G,jy as H,Ny as I,Ly as J,Vy as K,Qy as L,by as M,Sv as N,xy as O,Py as P,Cy as Q,wp as R,Wy as S,Ky as T,_y as U,Fy as V,Ab as W,Ty as X,qy as Y,Zp as Z,Hy as _,Ay as a,pC as a0,vp as a1,ew as a2,Hm as a3,Gm as a4,Im as a5,Jm as a6,ub as a7,My as a8,zy as a9,Jy as aa,cC as ab,ky as ac,Ry as ad,Xy as ae,Zy as af,py as ag,Ih as ah,gy as ai,Gp as aj,Bd as ak,Oy as al,Sy as am,pm as an,yy as ao,yx as b,wv as c,vy as d,Iy as e,fx as f,zx as g,Uy as h,uc as i,Cg as j,Nd as k,Mp as l,cc as m,Gy as n,Rn as o,xp as p,wy as q,By as r,Yy as s,yC as t,Sm as u,ii as v,Vn as w,Mi as x,Wh as y,hy as z}; diff --git a/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js.gz b/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js.gz new file mode 100644 index 00000000..ac3688b6 Binary files /dev/null and b/js/naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js.gz differ diff --git a/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js b/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js deleted file mode 100644 index 2bb8d259..00000000 --- a/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js +++ /dev/null @@ -1 +0,0 @@ -import{d as S}from"./destr@2.0.5-BPvN1X9m.js";import{d as h,a as $}from"./deep-pick-omit@1.2.1-CegYQlcN.js";function p(e,{storage:n,serializer:i,key:t,debug:s,pick:o,omit:d,beforeHydrate:a,afterHydrate:r},c,f=!0){try{f&&(a==null||a(c));const l=n.getItem(t);if(l){const u=i.deserialize(l),g=o?h(u,o):u,z=d?$(g,d):g;e.$patch(z)}f&&(r==null||r(c))}catch(l){s&&console.error("[pinia-plugin-persistedstate]",l)}}function m(e,{storage:n,serializer:i,key:t,debug:s,pick:o,omit:d}){try{const a=o?h(e,o):e,r=d?$(a,d):a,c=i.serialize(r);n.setItem(t,c)}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function y(e,n,i){const{pinia:t,store:s,options:{persist:o=i}}=e;if(!o)return;if(!(s.$id in t.state.value)){const r=t._s.get(s.$id.replace("__hot:",""));r&&Promise.resolve().then(()=>r.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(n);s.$hydrate=({runHooks:r=!0}={})=>{a.forEach(c=>{p(s,c,e,r)})},s.$persist=()=>{a.forEach(r=>{m(s.$state,r)})},a.forEach(r=>{p(s,r,e),s.$subscribe((c,f)=>m(f,r),{detached:!0})})}function k(e={}){return function(n){y(n,i=>({key:(e.key?e.key:t=>t)(i.key??n.store.$id),debug:i.debug??e.debug??!1,serializer:i.serializer??e.serializer??{serialize:t=>JSON.stringify(t),deserialize:t=>S(t)},storage:i.storage??e.storage??window.localStorage,beforeHydrate:i.beforeHydrate,afterHydrate:i.afterHydrate,pick:i.pick,omit:i.omit}),e.auto??!1)}}var O=k();export{O as i}; diff --git a/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js.gz b/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js.gz deleted file mode 100644 index c7547163..00000000 Binary files a/js/pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js.gz and /dev/null differ diff --git a/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js b/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js new file mode 100644 index 00000000..6296a9dd --- /dev/null +++ b/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js @@ -0,0 +1 @@ +import{d as z}from"./destr@2.0.5-Ctyiwlcu.js";import{d as m,a as h}from"./deep-pick-omit@1.2.1-CegYQlcN.js";function y(e,{storage:n,serializer:r,key:i,debug:s,pick:a,omit:d,beforeHydrate:o,afterHydrate:t},c,f=!0){try{f&&o?.(c);const l=n.getItem(i);if(l){const u=r.deserialize(l),g=a?m(u,a):u,$=d?h(g,d):g;e.$patch($)}f&&t?.(c)}catch{}}function p(e,{storage:n,serializer:r,key:i,debug:s,pick:a,omit:d}){try{const o=a?m(e,a):e,t=d?h(o,d):o,c=r.serialize(t);n.setItem(i,c)}catch{}}function S(e,n,r){const{pinia:i,store:s,options:{persist:a=r}}=e;if(!a)return;if(!(s.$id in i.state.value)){const t=i._s.get(s.$id.replace("__hot:",""));t&&Promise.resolve().then(()=>t.$persist());return}const o=(Array.isArray(a)?a:a===!0?[{}]:[a]).map(n);s.$hydrate=({runHooks:t=!0}={})=>{o.forEach(c=>{y(s,c,e,t)})},s.$persist=()=>{o.forEach(t=>{p(s.$state,t)})},o.forEach(t=>{y(s,t,e),s.$subscribe((c,f)=>p(f,t),{detached:!0})})}function b(e={}){return function(n){S(n,r=>({key:(e.key?e.key:i=>i)(r.key??n.store.$id),debug:r.debug??e.debug??!1,serializer:r.serializer??e.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>z(i)},storage:r.storage??e.storage??window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),e.auto??!1)}}var v=b();export{v as i}; diff --git a/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js.gz b/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js.gz new file mode 100644 index 00000000..bc977729 Binary files /dev/null and b/js/pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js.gz differ diff --git a/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js b/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js deleted file mode 100644 index e345277f..00000000 --- a/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js +++ /dev/null @@ -1,5 +0,0 @@ -import{k as M,h as G,z as V,a as g,A as z,t as $,y as T,m as B,v as tt,x as et}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{w as st,n as nt,f as ot,i as ct,k as rt}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";/*! - * pinia v3.0.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let D;const E=t=>D=t,J=Symbol();function I(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var x;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(x||(x={}));function St(){const t=V(!0),c=t.run(()=>M({}));let s=[],e=[];const a=B({install(r){E(a),a._a=r,r.provide(J,a),r.config.globalProperties.$pinia=a,e.forEach(u=>s.push(u)),e=[]},use(r){return this._a?s.push(r):e.push(r),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return a}const K=()=>{};function F(t,c,s,e=K){t.push(c);const a=()=>{const r=t.indexOf(c);r>-1&&(t.splice(r,1),e())};return!s&&tt()&&et(a),a}function p(t,...c){t.slice().forEach(s=>{s(...c)})}const ut=t=>t(),H=Symbol(),R=Symbol();function L(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],a=t[s];I(a)&&I(e)&&t.hasOwnProperty(s)&&!g(e)&&!z(e)?t[s]=L(a,e):t[s]=e}return t}const at=Symbol();function ft(t){return!I(t)||!Object.prototype.hasOwnProperty.call(t,at)}const{assign:h}=Object;function lt(t){return!!(g(t)&&t.effect)}function it(t,c,s,e){const{state:a,actions:r,getters:u}=c,O=s.state.value[t];let y;function b(){O||(s.state.value[t]=a?a():{});const S=T(s.state.value[t]);return h(S,r,Object.keys(u||{}).reduce((v,m)=>(v[m]=B(ot(()=>{E(s);const _=s._s.get(t);return u[m].call(_,_)})),v),{}))}return y=q(t,b,c,s,e,!0),y}function q(t,c,s={},e,a,r){let u;const O=h({actions:{}},s),y={deep:!0};let b,S,v=[],m=[],_;const j=e.state.value[t];!r&&!j&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:x.patchFunction,storeId:t,events:_}):(L(e.state.value[t],o),n={type:x.patchObject,payload:o,storeId:t,events:_});const f=W=Symbol();nt().then(()=>{W===f&&(b=!0)}),S=!0,p(v,n,e.state.value[t])}const Q=r?function(){const{state:n}=s,f=n?n():{};this.$patch(d=>{h(d,f)})}:K;function U(){u.stop(),v=[],m=[],e._s.delete(t)}const A=(o,n="")=>{if(H in o)return o[R]=n,o;const f=function(){E(e);const d=Array.from(arguments),C=[],k=[];function Y(l){C.push(l)}function Z(l){k.push(l)}p(m,{args:d,name:f[R],store:i,after:Y,onError:Z});let w;try{w=o.apply(this&&this.$id===t?this:i,d)}catch(l){throw p(k,l),l}return w instanceof Promise?w.then(l=>(p(C,l),l)).catch(l=>(p(k,l),Promise.reject(l))):(p(C,w),w)};return f[H]=!0,f[R]=n,f},X={_p:e,$id:t,$onAction:F.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const f=F(v,o,n.detached,()=>d()),d=u.run(()=>st(()=>e.state.value[t],C=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:x.direct,events:_},C)},h({},y,n)));return f},$dispose:U},i=G(X);e._s.set(t,i);const P=(e._a&&e._a.runWithContext||ut)(()=>e._e.run(()=>(u=V()).run(()=>c({action:A}))));for(const o in P){const n=P[o];if(g(n)&&!lt(n)||z(n))r||(j&&ft(n)&&(g(n)?n.value=j[o]:L(n,j[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const f=A(n,o);P[o]=f,O.actions[o]=n}}return h(i,P),h($(i),P),Object.defineProperty(i,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{h(n,o)})}}),e._p.forEach(o=>{h(i,u.run(()=>o({store:i,app:e._a,pinia:e,options:O})))}),j&&r&&s.hydrate&&s.hydrate(i.$state,j),b=!0,S=!0,i}/*! #__NO_SIDE_EFFECTS__ */function vt(t,c,s){let e;const a=typeof c=="function";e=a?s:c;function r(u,O){const y=rt();return u=u||(y?ct(J,null):null),u&&E(u),u=D,u._s.has(t)||(a?q(t,c,e,u):it(t,e,u)),u._s.get(t)}return r.$id=t,r}export{St as c,vt as d}; diff --git a/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js.gz b/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js.gz deleted file mode 100644 index 9bea0c0a..00000000 Binary files a/js/pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js.gz and /dev/null differ diff --git a/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js b/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js new file mode 100644 index 00000000..9d0d9da7 --- /dev/null +++ b/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js @@ -0,0 +1 @@ +import{k as M,h as G,z as V,a as g,A as z,t as $,y as T,m as B,v as tt,x as et}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{w as st,n as nt,f as ot,i as ct,k as rt}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";let D;const E=t=>D=t,J=Symbol();function I(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var x;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(x||(x={}));function St(){const t=V(!0),c=t.run(()=>M({}));let s=[],e=[];const a=B({install(r){E(a),a._a=r,r.provide(J,a),r.config.globalProperties.$pinia=a,e.forEach(u=>s.push(u)),e=[]},use(r){return this._a?s.push(r):e.push(r),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return a}const K=()=>{};function F(t,c,s,e=K){t.push(c);const a=()=>{const r=t.indexOf(c);r>-1&&(t.splice(r,1),e())};return!s&&tt()&&et(a),a}function p(t,...c){t.slice().forEach(s=>{s(...c)})}const ut=t=>t(),H=Symbol(),R=Symbol();function L(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],a=t[s];I(a)&&I(e)&&t.hasOwnProperty(s)&&!g(e)&&!z(e)?t[s]=L(a,e):t[s]=e}return t}const at=Symbol();function ft(t){return!I(t)||!Object.prototype.hasOwnProperty.call(t,at)}const{assign:h}=Object;function lt(t){return!!(g(t)&&t.effect)}function it(t,c,s,e){const{state:a,actions:r,getters:u}=c,O=s.state.value[t];let y;function b(){O||(s.state.value[t]=a?a():{});const S=T(s.state.value[t]);return h(S,r,Object.keys(u||{}).reduce((v,m)=>(v[m]=B(ot(()=>{E(s);const _=s._s.get(t);return u[m].call(_,_)})),v),{}))}return y=q(t,b,c,s,e,!0),y}function q(t,c,s={},e,a,r){let u;const O=h({actions:{}},s),y={deep:!0};let b,S,v=[],m=[],_;const j=e.state.value[t];!r&&!j&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:x.patchFunction,storeId:t,events:_}):(L(e.state.value[t],o),n={type:x.patchObject,payload:o,storeId:t,events:_});const f=W=Symbol();nt().then(()=>{W===f&&(b=!0)}),S=!0,p(v,n,e.state.value[t])}const Q=r?function(){const{state:n}=s,f=n?n():{};this.$patch(d=>{h(d,f)})}:K;function U(){u.stop(),v=[],m=[],e._s.delete(t)}const A=(o,n="")=>{if(H in o)return o[R]=n,o;const f=function(){E(e);const d=Array.from(arguments),C=[],k=[];function Y(l){C.push(l)}function Z(l){k.push(l)}p(m,{args:d,name:f[R],store:i,after:Y,onError:Z});let w;try{w=o.apply(this&&this.$id===t?this:i,d)}catch(l){throw p(k,l),l}return w instanceof Promise?w.then(l=>(p(C,l),l)).catch(l=>(p(k,l),Promise.reject(l))):(p(C,w),w)};return f[H]=!0,f[R]=n,f},X={_p:e,$id:t,$onAction:F.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const f=F(v,o,n.detached,()=>d()),d=u.run(()=>st(()=>e.state.value[t],C=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:x.direct,events:_},C)},h({},y,n)));return f},$dispose:U},i=G(X);e._s.set(t,i);const P=(e._a&&e._a.runWithContext||ut)(()=>e._e.run(()=>(u=V()).run(()=>c({action:A}))));for(const o in P){const n=P[o];if(g(n)&&!lt(n)||z(n))r||(j&&ft(n)&&(g(n)?n.value=j[o]:L(n,j[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const f=A(n,o);P[o]=f,O.actions[o]=n}}return h(i,P),h($(i),P),Object.defineProperty(i,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{h(n,o)})}}),e._p.forEach(o=>{h(i,u.run(()=>o({store:i,app:e._a,pinia:e,options:O})))}),j&&r&&s.hydrate&&s.hydrate(i.$state,j),b=!0,S=!0,i}function vt(t,c,s){let e;const a=typeof c=="function";e=a?s:c;function r(u,O){const y=rt();return u=u||(y?ct(J,null):null),u&&E(u),u=D,u._s.has(t)||(a?q(t,c,e,u):it(t,e,u)),u._s.get(t)}return r.$id=t,r}export{St as c,vt as d}; diff --git a/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js.gz b/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js.gz new file mode 100644 index 00000000..661aa6fe Binary files /dev/null and b/js/pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js.gz differ diff --git a/js/preact@10.25.4-CrjB-ZC0.js b/js/preact@10.25.4-HyjdtmFg.js similarity index 89% rename from js/preact@10.25.4-CrjB-ZC0.js rename to js/preact@10.25.4-HyjdtmFg.js index cfbc6ea4..8280367d 100644 --- a/js/preact@10.25.4-CrjB-ZC0.js +++ b/js/preact@10.25.4-HyjdtmFg.js @@ -1 +1 @@ -var I,s,$e,S,ne,xe,Z,Se,X,G,J,T={},Ce=[],De=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,B=Array.isArray;function x(e,_){for(var t in _)e[t]=_[t];return e}function Y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function K(e,_,t){var n,r,i,l={};for(i in _)i=="key"?n=_[i]:i=="ref"?r=_[i]:l[i]=_[i];if(arguments.length>2&&(l.children=arguments.length>3?I.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return D(e,l,n,r,null)}function D(e,_,t,n,r){var i={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++$e,__i:-1,__u:0};return r==null&&s.vnode!=null&&s.vnode(i),i}function r_(){return{current:null}}function C(e){return e.children}function P(e,_){this.props=e,this.context=_}function E(e,_){if(_==null)return e.__?E(e.__,e.__i+1):null;for(var t;__&&S.sort(Z));R.__r=0}function He(e,_,t,n,r,i,l,u,a,c,p){var o,v,f,m,b,y,h=n&&n.__k||Ce,d=_.length;for(a=Le(t,_,h,a,d),o=0;o0?D(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,u=null,(c=l.__i=Re(l,t,a,o))!==-1&&(o--,(u=t[c])&&(u.__u|=2)),u==null||u.__v===null?(c==-1&&v--,typeof l.type!="function"&&(l.__u|=4)):c!=a&&(c==a-1?v--:c==a+1?v++:(c>a?v--:v++,l.__u|=4))):e.__k[i]=null;if(o)for(i=0;i(a!=null&&(2&a.__u)==0?1:0))for(r=t-1,i=t+1;r>=0||i<_.length;){if(r>=0){if((a=_[r])&&(2&a.__u)==0&&l==a.key&&u===a.type)return r;r--}if(i<_.length){if((a=_[i])&&(2&a.__u)==0&&l==a.key&&u===a.type)return i;i++}}return-1}function oe(e,_,t){_[0]=="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||De.test(_)?t:t+"px"}function M(e,_,t,n,r){var i;e:if(_=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||oe(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||oe(e.style,_,t[_])}else if(_[0]=="o"&&_[1]=="n")i=_!=(_=_.replace(Se,"$1")),_=_.toLowerCase()in e||_=="onFocusOut"||_=="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+i]=t,t?n?t.u=n.u:(t.u=X,e.addEventListener(_,i?J:G,i)):e.removeEventListener(_,i?J:G,i);else{if(r=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function ie(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=X++;else if(_.t3;)t.pop()();if(t[1]2&&(l.children=arguments.length>3?I.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return D(e,l,n,r,null)}function D(e,_,t,n,r){var i={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++$e,__i:-1,__u:0};return r==null&&s.vnode!=null&&s.vnode(i),i}function r_(){return{current:null}}function C(e){return e.children}function P(e,_){this.props=e,this.context=_}function E(e,_){if(_==null)return e.__?E(e.__,e.__i+1):null;for(var t;__&&S.sort(Z));R.__r=0}function He(e,_,t,n,r,i,l,u,a,c,p){var o,v,f,m,b,y,h=n&&n.__k||Ce,d=_.length;for(a=Le(t,_,h,a,d),o=0;o0?D(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,u=null,(c=l.__i=Re(l,t,a,o))!==-1&&(o--,(u=t[c])&&(u.__u|=2)),u==null||u.__v===null?(c==-1&&v--,typeof l.type!="function"&&(l.__u|=4)):c!=a&&(c==a-1?v--:c==a+1?v++:(c>a?v--:v++,l.__u|=4))):e.__k[i]=null;if(o)for(i=0;i(a!=null&&(2&a.__u)==0?1:0))for(r=t-1,i=t+1;r>=0||i<_.length;){if(r>=0){if((a=_[r])&&(2&a.__u)==0&&l==a.key&&u===a.type)return r;r--}if(i<_.length){if((a=_[i])&&(2&a.__u)==0&&l==a.key&&u===a.type)return i;i++}}return-1}function oe(e,_,t){_[0]=="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||De.test(_)?t:t+"px"}function M(e,_,t,n,r){var i;e:if(_=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||oe(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||oe(e.style,_,t[_])}else if(_[0]=="o"&&_[1]=="n")i=_!=(_=_.replace(Se,"$1")),_=_.toLowerCase()in e||_=="onFocusOut"||_=="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+i]=t,t?n?t.u=n.u:(t.u=X,e.addEventListener(_,i?J:G,i)):e.removeEventListener(_,i?J:G,i);else{if(r=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function ie(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=X++;else if(_.t3;)t.pop()();if(t[1]0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(E,a,n){n.r(a),n.d(a,"addWrapper",function(){return b}),n.d(a,"capitalizePrint",function(){return i}),n.d(a,"collectStyles",function(){return l}),n.d(a,"addHeader",function(){return e}),n.d(a,"cleanUp",function(){return u}),n.d(a,"isRawHTML",function(){return y});var o=n("./src/js/modal.js"),s=n("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,d){var c="font-family:"+d.font+" !important; font-size: "+d.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,d){for(var c=document.defaultView||window,h="",p=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return d.test(t)}},"./src/js/html.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(l)}a.default={print:function(r,e){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),s.default.send(r,e)}};function b(l,r){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),y=0;y"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(g){p.srcdoc+=''})),p.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(g){t.onError(g)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":b.default.print(t,p);break;case"raw-html":i.default.print(t,p);break;case"json":r.default.print(t,p);break}}}},"./src/js/json.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:f(e)==="object"?e.field:e,displayName:f(e)==="object"?e.displayName:e,columnSize:f(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),s.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,e='';i.repeatTableHeader&&(e+=""),e+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";e+="",i.repeatTableHeader&&(e+=""),e+="";for(var y=0;y";for(var t=0;t1)for(var h=0;h'+d+""}e+=""}return e+="
",e}},"./src/js/modal.js":function(E,a,n){n.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js"),s=n("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}f(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(E,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/functions.js"),f={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var y=document.getElementById(e.frameId);y.onload=function(){if(e.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(y,e)},1e3):b(y,e);return}var t=y.contentWindow||y.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var d=document.createElement("style");d.innerHTML=e.style,t.head.appendChild(d)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(y,e)}):b(y,e)}}};function b(r,e){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){e.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(s.cleanUp)(e)}}function i(r){var e=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(r){return new Promise(function(e){var u=function y(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(y,500):e()};u()})}a.default=f},"./src/js/raw-html.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(E,a,n){},0:function(E,a,n){E.exports=n("./src/index.js")}}).default})}(v)),v.exports}var w=S();const A=O(w);export{A as p}; diff --git a/js/print-js@1.6.0-DO6wNZql.js.gz b/js/print-js@1.6.0-DO6wNZql.js.gz deleted file mode 100644 index 44703211..00000000 Binary files a/js/print-js@1.6.0-DO6wNZql.js.gz and /dev/null differ diff --git a/js/print-js@1.6.0-jNcZ-gME.js b/js/print-js@1.6.0-jNcZ-gME.js new file mode 100644 index 00000000..6524653f --- /dev/null +++ b/js/print-js@1.6.0-jNcZ-gME.js @@ -0,0 +1 @@ +import{g as O}from"./classnames@2.5.1-CU_BXU7G.js";var v={exports:{}},j;function S(){return j||(j=1,(function(M,C){(function(a,n){M.exports=n()})(window,function(){return(function(E){var a={};function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return E[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=E,n.c=a,n.d=function(o,s,f){n.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:f})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,s){if(s&1&&(o=n(o)),s&8||s&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),s&2&&typeof o!="string")for(var b in o)n.d(f,b,(function(i){return o[i]}).bind(null,b));return f},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=0)})({"./src/index.js":(function(E,a,n){n.r(a),n("./src/sass/index.scss");var o=n("./src/js/init.js"),s=o.default.init;typeof window<"u"&&(window.printJS=s),a.default=s}),"./src/js/browser.js":(function(E,a,n){n.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o}),"./src/js/functions.js":(function(E,a,n){n.r(a),n.d(a,"addWrapper",function(){return b}),n.d(a,"capitalizePrint",function(){return i}),n.d(a,"collectStyles",function(){return l}),n.d(a,"addHeader",function(){return e}),n.d(a,"cleanUp",function(){return u}),n.d(a,"isRawHTML",function(){return y});var o=n("./src/js/modal.js"),s=n("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,d){var c="font-family:"+d.font+" !important; font-size: "+d.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,d){for(var c=document.defaultView||window,h="",p=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return d.test(t)}}),"./src/js/html.js":(function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(l)}a.default={print:function(r,e){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),s.default.send(r,e)}};function b(l,r){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),y=0;y"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(g){p.srcdoc+=''})),p.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(g){t.onError(g)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":b.default.print(t,p);break;case"raw-html":i.default.print(t,p);break;case"json":r.default.print(t,p);break}}}}),"./src/js/json.js":(function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:f(e)==="object"?e.field:e,displayName:f(e)==="object"?e.displayName:e,columnSize:f(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),s.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,e='';i.repeatTableHeader&&(e+=""),e+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";e+="",i.repeatTableHeader&&(e+=""),e+="";for(var y=0;y";for(var t=0;t1)for(var h=0;h'+d+""}e+=""}return e+="
",e}}),"./src/js/modal.js":(function(E,a,n){n.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o}),"./src/js/pdf.js":(function(E,a,n){n.r(a);var o=n("./src/js/print.js"),s=n("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}f(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}}),"./src/js/print.js":(function(E,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/functions.js"),f={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var y=document.getElementById(e.frameId);y.onload=function(){if(e.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(y,e)},1e3):b(y,e);return}var t=y.contentWindow||y.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var d=document.createElement("style");d.innerHTML=e.style,t.head.appendChild(d)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(y,e)}):b(y,e)}}};function b(r,e){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){e.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(s.cleanUp)(e)}}function i(r){var e=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(r){return new Promise(function(e){var u=function y(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(y,500):e()};u()})}a.default=f}),"./src/js/raw-html.js":(function(E,a,n){n.r(a);var o=n("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}}),"./src/sass/index.scss":(function(E,a,n){}),0:(function(E,a,n){E.exports=n("./src/index.js")})}).default})})(v)),v.exports}var w=S();const A=O(w);export{A as p}; diff --git a/js/print-js@1.6.0-jNcZ-gME.js.gz b/js/print-js@1.6.0-jNcZ-gME.js.gz new file mode 100644 index 00000000..c534b2a4 Binary files /dev/null and b/js/print-js@1.6.0-jNcZ-gME.js.gz differ diff --git a/js/screenfull@5.2.0-CSmfy_M5.js b/js/screenfull@5.2.0-CSmfy_M5.js deleted file mode 100644 index 6c07ad6b..00000000 --- a/js/screenfull@5.2.0-CSmfy_M5.js +++ /dev/null @@ -1,5 +0,0 @@ -import{g as d}from"./classnames@2.5.1-Dfc4g_b4.js";var o={exports:{}};/*! -* screenfull -* v5.2.0 - 2021-11-03 -* (c) Sindre Sorhus; MIT License -*/var h;function F(){return h||(h=1,function(i){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},f=i.exports,l=function(){for(var e,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,s=r.length,u={};nt(...k.get(t))),A=[]}function J(t,...e){k.set(t,e),!A.includes(t)&&A.push(t)===1&&requestAnimationFrame(S)}function Q(t,e){let{target:r}=t;for(;r;){if(r.dataset&&r.dataset[e]!==void 0)return!0;r=r.parentElement}return!1}function V(t){return t.composedPath()[0]||null}function q(t){if(typeof t=="number")return{"":t.toString()};const e={};return t.split(/ +/).forEach(r=>{if(r==="")return;const[n,i]=r.split(":");i===void 0?e[""]=n:e[n]=i}),e}function X(t,e){var r;if(t==null)return;const n=q(t);if(e===void 0)return n[""];if(typeof e=="string")return(r=n[e])!==null&&r!==void 0?r:n[""];if(Array.isArray(e)){for(let i=e.length-1;i>=0;--i){const a=e[i];if(a in n)return n[a]}return n[""]}else{let i,a=-1;return Object.keys(n).forEach(l=>{const p=Number(l);!Number.isNaN(p)&&e>=p&&p>=a&&(a=p,i=n[l])}),i}}function Y(t){return typeof t=="string"?t.endsWith("px")?Number(t.slice(0,t.length-2)):Number(t):t}function Z(t){if(t!=null)return typeof t=="number"?`${t}px`:t.endsWith("px")?t:`${t}px`}function L(t,e){const r=t.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+t+" is not a valid value.")}return e===void 0?n:n[e]}function O(t,e){const[r,n]=t.split(" ");return{row:r,col:n||r}}const b={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function z(t,e,r){e/=100,r/=100;const n=e*Math.min(r,1-r)+r;return[t,n?(2-2*r/n)*100:0,n*100]}function K(t,e,r){e/=100,r/=100;const n=r-r*e/2,i=Math.min(n,1-n);return[t,i?(r-n)/i*100:0,n*100]}function H(t,e,r){e/=100,r/=100;let n=(i,a=(i+t/60)%6)=>r-r*e*Math.max(Math.min(a,4-a,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function ee(t,e,r){t/=255,e/=255,r/=255;let n=Math.max(t,e,r),i=n-Math.min(t,e,r),a=i&&(n==t?(e-r)/i:n==e?2+(r-t)/i:4+(t-e)/i);return[60*(a<0?a+6:a),n&&i/n*100,n*100]}function te(t,e,r){t/=255,e/=255,r/=255;let n=Math.max(t,e,r),i=n-Math.min(t,e,r),a=1-Math.abs(n+n-i-1),l=i&&(n==t?(e-r)/i:n==e?2+(r-t)/i:4+(t-e)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(n+n-i)*50]}function I(t,e,r){e/=100,r/=100;let n=e*Math.min(r,1-r),i=(a,l=(a+t/30)%12)=>r-n*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const f="^\\s*",h="\\s*$",$="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",F="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",d="([0-9A-Fa-f])",m="([0-9A-Fa-f]{2})",v=new RegExp(`${f}hsl\\s*\\(${F},${$},${$}\\)${h}`),R=new RegExp(`${f}hsv\\s*\\(${F},${$},${$}\\)${h}`),M=new RegExp(`${f}hsla\\s*\\(${F},${$},${$},${F}\\)${h}`),N=new RegExp(`${f}hsva\\s*\\(${F},${$},${$},${F}\\)${h}`),j=new RegExp(`${f}rgb\\s*\\(${F},${F},${F}\\)${h}`),G=new RegExp(`${f}rgba\\s*\\(${F},${F},${F},${F}\\)${h}`),y=new RegExp(`${f}#${d}${d}${d}${h}`),w=new RegExp(`${f}#${m}${m}${m}${h}`),C=new RegExp(`${f}#${d}${d}${d}${d}${h}`),B=new RegExp(`${f}#${m}${m}${m}${m}${h}`);function o(t){return parseInt(t,16)}function U(t){try{let e;if(e=M.exec(t))return[c(e[1]),u(e[5]),u(e[9]),g(e[13])];if(e=v.exec(t))return[c(e[1]),u(e[5]),u(e[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${t}.`)}catch(e){throw e}}function W(t){try{let e;if(e=N.exec(t))return[c(e[1]),u(e[5]),u(e[9]),g(e[13])];if(e=R.exec(t))return[c(e[1]),u(e[5]),u(e[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${t}.`)}catch(e){throw e}}function E(t){try{let e;if(e=w.exec(t))return[o(e[1]),o(e[2]),o(e[3]),1];if(e=j.exec(t))return[s(e[1]),s(e[5]),s(e[9]),1];if(e=G.exec(t))return[s(e[1]),s(e[5]),s(e[9]),g(e[13])];if(e=y.exec(t))return[o(e[1]+e[1]),o(e[2]+e[2]),o(e[3]+e[3]),1];if(e=B.exec(t))return[o(e[1]),o(e[2]),o(e[3]),g(o(e[4])/255)];if(e=C.exec(t))return[o(e[1]+e[1]),o(e[2]+e[2]),o(e[3]+e[3]),g(o(e[4]+e[4])/255)];if(t in b)return E(b[t]);if(v.test(t)||M.test(t)){const[r,n,i,a]=U(t);return[...I(r,n,i),a]}else if(R.test(t)||N.test(t)){const[r,n,i,a]=W(t);return[...H(r,n,i),a]}throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function P(t){return t>1?1:t<0?0:t}function T(t,e,r){return`rgb(${s(t)}, ${s(e)}, ${s(r)})`}function D(t,e,r,n){return`rgba(${s(t)}, ${s(e)}, ${s(r)}, ${P(n)})`}function x(t,e,r,n,i){return s((t*e*(1-n)+r*n)/i)}function ne(t,e){Array.isArray(t)||(t=E(t)),Array.isArray(e)||(e=E(e));const r=t[3],n=e[3],i=g(r+n-r*n);return D(x(t[0],r,e[0],n,i),x(t[1],r,e[1],n,i),x(t[2],r,e[2],n,i),i)}function re(t,e){const[r,n,i,a=1]=Array.isArray(t)?t:E(t);return typeof e.alpha=="number"?D(r,n,i,e.alpha):D(r,n,i,a)}function ie(t,e){const[r,n,i,a=1]=Array.isArray(t)?t:E(t),{lightness:l=1,alpha:p=1}=e;return _([r*l,n*l,i*l,a*p])}function g(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function c(t){const e=Math.round(Number(t));return e>=360||e<0?0:e}function s(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function u(t){const e=Math.round(Number(t));return e>100?100:e<0?0:e}function ae(t){const[e,r,n]=Array.isArray(t)?t:E(t);return T(e,r,n)}function _(t){const[e,r,n]=t;return 3 in t?`rgba(${s(e)}, ${s(r)}, ${s(n)}, ${g(t[3])})`:`rgba(${s(e)}, ${s(r)}, ${s(n)}, 1)`}function se(t){return`hsv(${c(t[0])}, ${u(t[1])}%, ${u(t[2])}%)`}function ue(t){const[e,r,n]=t;return 3 in t?`hsva(${c(e)}, ${u(r)}%, ${u(n)}%, ${g(t[3])})`:`hsva(${c(e)}, ${u(r)}%, ${u(n)}%, 1)`}function oe(t){return`hsl(${c(t[0])}, ${u(t[1])}%, ${u(t[2])}%)`}function le(t){const[e,r,n]=t;return 3 in t?`hsla(${c(e)}, ${u(r)}%, ${u(n)}%, ${g(t[3])})`:`hsla(${c(e)}, ${u(r)}%, ${u(n)}%, 1)`}function Fe(t){if(typeof t=="string"){let n;if(n=w.exec(t))return`${n[0]}FF`;if(n=B.exec(t))return n[0];if(n=y.exec(t))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=C.exec(t))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}const e=`#${t.slice(0,3).map(n=>s(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=t.length===3?"FF":s(t[3]*255).toString(16).padStart(2,"0").toUpperCase();return e+r}function ce(t){if(typeof t=="string"){let e;if(e=w.exec(t))return e[0];if(e=B.exec(t))return e[0].slice(0,7);if(e=y.exec(t)||C.exec(t))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}return`#${t.slice(0,3).map(e=>s(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function fe(t=8){return Math.random().toString(16).slice(2,2+t)}function he(t,e){const r=[];for(let n=0;nn(...N.get(n))),R=[]}function B(n,...t){N.set(n,t),!R.includes(n)&&R.push(n)===1&&requestAnimationFrame(S)}function P(n,t){let{target:r}=n;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function T(n){return n.composedPath()[0]||null}function H(n){if(typeof n=="number")return{"":n.toString()};const t={};return n.split(/ +/).forEach(r=>{if(r==="")return;const[e,i]=r.split(":");i===void 0?t[""]=e:t[e]=i}),t}function _(n,t){var r;if(n==null)return;const e=H(n);if(t===void 0)return e[""];if(typeof t=="string")return(r=e[t])!==null&&r!==void 0?r:e[""];if(Array.isArray(t)){for(let i=t.length-1;i>=0;--i){const u=t[i];if(u in e)return e[u]}return e[""]}else{let i,u=-1;return Object.keys(e).forEach(f=>{const d=Number(f);!Number.isNaN(d)&&t>=d&&d>=u&&(u=d,i=e[f])}),i}}function J(n){return typeof n=="string"?n.endsWith("px")?Number(n.slice(0,n.length-2)):Number(n):n}function Q(n){if(n!=null)return typeof n=="number"?`${n}px`:n.endsWith("px")?n:`${n}px`}function V(n,t){const r=n.trim().split(/\s+/g),e={top:r[0]};switch(r.length){case 1:e.right=r[0],e.bottom=r[0],e.left=r[0];break;case 2:e.right=r[1],e.left=r[1],e.bottom=r[0];break;case 3:e.right=r[1],e.bottom=r[2],e.left=r[1];break;case 4:e.right=r[1],e.bottom=r[2],e.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+n+" is not a valid value.")}return t===void 0?e:e[t]}function X(n,t){const[r,e]=n.split(" ");return{row:r,col:e||r}}const C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Y(n,t,r){t/=100,r/=100;const e=t*Math.min(r,1-r)+r;return[n,e?(2-2*r/e)*100:0,e*100]}function Z(n,t,r){t/=100,r/=100;const e=r-r*t/2,i=Math.min(e,1-e);return[n,i?(r-e)/i*100:0,e*100]}function L(n,t,r){t/=100,r/=100;let e=(i,u=(i+n/60)%6)=>r-r*t*Math.max(Math.min(u,4-u,1),0);return[e(5)*255,e(3)*255,e(1)*255]}function O(n,t,r){n/=255,t/=255,r/=255;let e=Math.max(n,t,r),i=e-Math.min(n,t,r),u=i&&(e==n?(t-r)/i:e==t?2+(r-n)/i:4+(n-t)/i);return[60*(u<0?u+6:u),e&&i/e*100,e*100]}function z(n,t,r){n/=255,t/=255,r/=255;let e=Math.max(n,t,r),i=e-Math.min(n,t,r),u=1-Math.abs(e+e-i-1),f=i&&(e==n?(t-r)/i:e==t?2+(r-n)/i:4+(n-t)/i);return[60*(f<0?f+6:f),u?i/u*100:0,(e+e-i)*50]}function K(n,t,r){t/=100,r/=100;let e=t*Math.min(r,1-r),i=(u,f=(u+n/30)%12)=>r-e*Math.max(Math.min(f-3,9-f,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const h="^\\s*",l="\\s*$",x="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",c="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",p="([0-9A-Fa-f])",m="([0-9A-Fa-f]{2})",I=new RegExp(`${h}hsl\\s*\\(${c},${x},${x}\\)${l}`),j=new RegExp(`${h}hsv\\s*\\(${c},${x},${x}\\)${l}`),q=new RegExp(`${h}hsla\\s*\\(${c},${x},${x},${c}\\)${l}`),G=new RegExp(`${h}hsva\\s*\\(${c},${x},${x},${c}\\)${l}`),U=new RegExp(`${h}rgb\\s*\\(${c},${c},${c}\\)${l}`),W=new RegExp(`${h}rgba\\s*\\(${c},${c},${c},${c}\\)${l}`),E=new RegExp(`${h}#${p}${p}${p}${l}`),M=new RegExp(`${h}#${m}${m}${m}${l}`),A=new RegExp(`${h}#${p}${p}${p}${p}${l}`),v=new RegExp(`${h}#${m}${m}${m}${m}${l}`);function a(n){return parseInt(n,16)}function tt(n){try{let t;if(t=q.exec(n))return[$(t[1]),o(t[5]),o(t[9]),g(t[13])];if(t=I.exec(n))return[$(t[1]),o(t[5]),o(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${n}.`)}catch(t){throw t}}function nt(n){try{let t;if(t=G.exec(n))return[$(t[1]),o(t[5]),o(t[9]),g(t[13])];if(t=j.exec(n))return[$(t[1]),o(t[5]),o(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${n}.`)}catch(t){throw t}}function w(n){try{let t;if(t=M.exec(n))return[a(t[1]),a(t[2]),a(t[3]),1];if(t=U.exec(n))return[s(t[1]),s(t[5]),s(t[9]),1];if(t=W.exec(n))return[s(t[1]),s(t[5]),s(t[9]),g(t[13])];if(t=E.exec(n))return[a(t[1]+t[1]),a(t[2]+t[2]),a(t[3]+t[3]),1];if(t=v.exec(n))return[a(t[1]),a(t[2]),a(t[3]),g(a(t[4])/255)];if(t=A.exec(n))return[a(t[1]+t[1]),a(t[2]+t[2]),a(t[3]+t[3]),g(a(t[4]+t[4])/255)];if(n in C)return w(C[n]);throw new Error(`[seemly/rgba]: Invalid color value ${n}.`)}catch(t){throw t}}function b(n){return n>1?1:n<0?0:n}function k(n,t,r){return`rgb(${s(n)}, ${s(t)}, ${s(r)})`}function F(n,t,r,e){return`rgba(${s(n)}, ${s(t)}, ${s(r)}, ${b(e)})`}function y(n,t,r,e,i){return s((n*t*(1-e)+r*e)/i)}function et(n,t){Array.isArray(n)||(n=w(n)),Array.isArray(t)||(t=w(t));const r=n[3],e=t[3],i=g(r+e-r*e);return F(y(n[0],r,t[0],e,i),y(n[1],r,t[1],e,i),y(n[2],r,t[2],e,i),i)}function rt(n,t){const[r,e,i,u=1]=Array.isArray(n)?n:w(n);return t.alpha?F(r,e,i,t.alpha):F(r,e,i,u)}function it(n,t){const[r,e,i,u=1]=Array.isArray(n)?n:w(n),{lightness:f=1,alpha:d=1}=t;return D([r*f,e*f,i*f,u*d])}function g(n){const t=Math.round(Number(n)*100)/100;return t>1?1:t<0?0:t}function $(n){const t=Math.round(Number(n));return t>=360||t<0?0:t}function s(n){const t=Math.round(Number(n));return t>255?255:t<0?0:t}function o(n){const t=Math.round(Number(n));return t>100?100:t<0?0:t}function st(n){const[t,r,e]=Array.isArray(n)?n:w(n);return k(t,r,e)}function D(n){const[t,r,e]=n;return 3 in n?`rgba(${s(t)}, ${s(r)}, ${s(e)}, ${g(n[3])})`:`rgba(${s(t)}, ${s(r)}, ${s(e)}, 1)`}function ut(n){return`hsv(${$(n[0])}, ${o(n[1])}%, ${o(n[2])}%)`}function ot(n){const[t,r,e]=n;return 3 in n?`hsva(${$(t)}, ${o(r)}%, ${o(e)}%, ${g(n[3])})`:`hsva(${$(t)}, ${o(r)}%, ${o(e)}%, 1)`}function at(n){return`hsl(${$(n[0])}, ${o(n[1])}%, ${o(n[2])}%)`}function ft(n){const[t,r,e]=n;return 3 in n?`hsla(${$(t)}, ${o(r)}%, ${o(e)}%, ${g(n[3])})`:`hsla(${$(t)}, ${o(r)}%, ${o(e)}%, 1)`}function ct(n){if(typeof n=="string"){let e;if(e=M.exec(n))return`${e[0]}FF`;if(e=v.exec(n))return e[0];if(e=E.exec(n))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}FF`;if(e=A.exec(n))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}${e[4]}${e[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${n}.`)}const t=`#${n.slice(0,3).map(e=>s(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=n.length===3?"FF":s(n[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+r}function $t(n){if(typeof n=="string"){let t;if(t=M.exec(n))return t[0];if(t=v.exec(n))return t[0].slice(0,7);if(t=E.exec(n)||A.exec(n))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${n}.`)}return`#${n.slice(0,3).map(t=>s(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ht(n=8){return Math.random().toString(16).slice(2,2+n)}function lt(n,t){const r=[];for(let e=0;ee(m.signTimeStart)+" ~ "+e(m.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:m=>m.tags.map(i=>t(v,{type:"info",bordered:!1,style:"margin-right: 6px"},x(i)?i:{default:()=>[i]}))},{title:"Remark",key:"remark"}]),a=b((()=>{const p=[],i=c().valueOf();for(let l=0;l<30;l++)p.push({key:A(),name:g.Random.cname(),age:l+20,address:g.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:l%2===0?"success":"error",statusText:l%2===0?"在线":"离线",signTimeStart:c(i).add(l*2,"year").valueOf(),signTimeEnd:c(i).add(l+5,"day").valueOf()});return p})()),r=b({footer:!1,action:!1,flexAutoHeight:!0});return{mockPersonList:a,baseColumns:n,switchRef:r}},render(){const{mockPersonList:e,baseColumns:n,switchRef:a}=this;return t(y,{takeoverAutoHeight:!0,data:e,columns:n,"onUpdate:columns":r=>n=r,showPagination:!0,paginationCount:e.length,remote:!1,title:t(s,null,{default:()=>[t(s,{align:"center"},{default:()=>[t(d,{text:!0,focusable:!1},{default:()=>[f("底部区域插槽")]}),t(F,{value:a.footer,"onUpdate:value":r=>a.footer=r},null)]}),t(s,{align:"center"},{default:()=>[t(d,{text:!0,focusable:!1},{default:()=>[f("操作区域插槽")]}),t(F,{value:a.action,"onUpdate:value":r=>a.action=r},null)]})]})},{collapse:()=>t(E,{bordered:!0,open:!1},{default:()=>t(N,null,[t(u,{label:"用户名"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"状态"},{default:()=>[t(T,{clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),t(u,{label:"登陆时间"},{default:()=>[t(h,{type:"datetimerange",clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]})]),action:()=>t(s,null,{default:()=>[t(d,{type:"primary"},{default:()=>[f("查询")]})]})}),tableFooter:()=>a.footer?"表格的底部内容区域插槽,有时候你可能会用上":null,tableAction:()=>a.action?"表格的操作区域内容插槽,有时候可能会用上":null})}});export{Ct as default}; diff --git a/js/table-auto-height-Bd5VtpfW.js.gz b/js/table-auto-height-Bd5VtpfW.js.gz new file mode 100644 index 00000000..266e7014 Binary files /dev/null and b/js/table-auto-height-Bd5VtpfW.js.gz differ diff --git a/js/table-auto-height-CrKWbqPv.js b/js/table-auto-height-CrKWbqPv.js deleted file mode 100644 index 76e1b7f0..00000000 --- a/js/table-auto-height-CrKWbqPv.js +++ /dev/null @@ -1 +0,0 @@ -import{X as y,T as E,Y as k}from"./hooks-CkuihJ2J.js";import{m as A}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{d as c}from"./dayjs@1.11.13-Dcmsq1le.js";import{M as g}from"./mockjs@1.1.0-ege38Uil.js";import{e as s,P as d,J as F,al as u,M as o,H as h,am as T,w as v}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as N,d as t,J as f,F as D,q as S}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as b}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function x(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!S(e)}const Rt=N({name:"TableAutoHeight",setup(){const{format:e}=k(),n=b([{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:m=>e(m.signTimeStart)+" ~ "+e(m.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:m=>m.tags.map(i=>t(v,{type:"info",bordered:!1,style:"margin-right: 6px"},x(i)?i:{default:()=>[i]}))},{title:"Remark",key:"remark"}]),a=b((()=>{const p=[],i=c().valueOf();for(let l=0;l<30;l++)p.push({key:A(),name:g.Random.cname(),age:l+20,address:g.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:l%2===0?"success":"error",statusText:l%2===0?"在线":"离线",signTimeStart:c(i).add(l*2,"year").valueOf(),signTimeEnd:c(i).add(l+5,"day").valueOf()});return p})()),r=b({footer:!1,action:!1,flexAutoHeight:!0});return{mockPersonList:a,baseColumns:n,switchRef:r}},render(){const{mockPersonList:e,baseColumns:n,switchRef:a}=this;return t(y,{takeoverAutoHeight:!0,data:e,columns:n,"onUpdate:columns":r=>n=r,showPagination:!0,paginationCount:e.length,remote:!1,title:t(s,null,{default:()=>[t(s,{align:"center"},{default:()=>[t(d,{text:!0,focusable:!1},{default:()=>[f("底部区域插槽")]}),t(F,{value:a.footer,"onUpdate:value":r=>a.footer=r},null)]}),t(s,{align:"center"},{default:()=>[t(d,{text:!0,focusable:!1},{default:()=>[f("操作区域插槽")]}),t(F,{value:a.action,"onUpdate:value":r=>a.action=r},null)]})]})},{collapse:()=>t(E,{bordered:!0,open:!1},{default:()=>t(D,null,[t(u,{label:"用户名"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"状态"},{default:()=>[t(h,{clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),t(u,{label:"登陆时间"},{default:()=>[t(T,{type:"datetimerange",clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]}),t(u,{label:"演示折叠的条件框"},{default:()=>[t(o,{clearable:!0},null)]})]),action:()=>t(s,null,{default:()=>[t(d,{type:"primary"},{default:()=>[f("查询")]})]})}),tableFooter:()=>a.footer?"表格的底部内容区域插槽,有时候你可能会用上":null,tableAction:()=>a.action?"表格的操作区域内容插槽,有时候可能会用上":null})}});export{Rt as default}; diff --git a/js/table-auto-height-CrKWbqPv.js.gz b/js/table-auto-height-CrKWbqPv.js.gz deleted file mode 100644 index 39cd1f28..00000000 Binary files a/js/table-auto-height-CrKWbqPv.js.gz and /dev/null differ diff --git a/js/table-pro-demo-B3fUrCSq.js b/js/table-pro-demo-B3fUrCSq.js deleted file mode 100644 index 667a63c6..00000000 --- a/js/table-pro-demo-B3fUrCSq.js +++ /dev/null @@ -1 +0,0 @@ -import{j as ae,Z as ue,$ as oe,T as le,z as M,X as re,Y as ie}from"./hooks-CkuihJ2J.js";import{m as se}from"./utils-BPTDWjJB.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./print-js@1.6.0-DO6wNZql.js";import{a as ne}from"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./instance-DHBzlXKU.js";import{M as V}from"./mockjs@1.1.0-ege38Uil.js";import{d as x}from"./dayjs@1.11.13-Dcmsq1le.js";import{e as f,P as r,al as h,M as H,H as me,am as de,N as z,I as J,aj as X,an as b,w as pe}from"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import{m as ce,d as e,J as a,F as fe,q as ge}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as p}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";import"./axios@1.10.0-Dq7h7Pqt.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function ye(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!ge(u)}const Et=ce({name:"TableProDemo",setup(){const{format:u}=ie(),[G,{formModel:v,reset:g}]=ae({RangeTime:null,name:null,status:null}),[D,{runTableRequest:n,getCurrentTableRequestParams:d,print:F,downloadCsv:P,runAsyncTableRequest:O,setPage:A,setPageSize:w,resetTablePagination:I}]=ue(),y=p([]),k=p([{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:o=>u(o.signTimeStart)+" ~ "+u(o.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:o=>o.tags.map(l=>e(pe,{type:"info",bordered:!1,style:"margin-right: 6px"},ye(l)?l:{default:()=>[l]}))},{title:"Remark",key:"remark"}]),C=p(0),R=p(v()),E=p((()=>{const m=[],l=x().valueOf();for(let i=0;i<30;i++)m.push({key:se(),name:V.Random.cname(),age:i+20,address:V.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:i%2===0?"success":"error",statusText:i%2===0?"在线":"离线",signTimeStart:x(l).add(i*2,"year").valueOf(),signTimeEnd:x(l).add(i+5,"day").valueOf()});return m})()),B=p({pagination:!0,manual:!1}),[K,{checkedRowKeysBind:N,getKeys:S,getRows:t,clearKey:Y,clearAll:Z,selectKey:_}]=oe(y,k,{rowKey:"key",onChange:(o,m,l)=>{}}),$=p(!0),T=o=>o==null,Q=o=>new Promise(m=>{const{page:l=1,pageSize:i=10,name:U,status:q,signTimeStart:j,signTimeEnd:L}=o||{};let s=E.value;const te=E.value.length;U&&(s=s.filter(c=>c.name.includes(U))),q&&(s=s.filter(c=>c.status===q)),j&&L&&(s=s.filter(c=>c.signTimeStart>=j&&c.signTimeEnd<=L)),s=s.slice((l-1)*i,l*i),setTimeout(()=>{m({code:0,data:s,total:T(q)&&T(U)&&(T(j)||T(L))?te:s.length,message:"success",page:l,pageSize:i})},1e3)}),{run:W,loading:ee}=ne(Q,{onSuccess:o=>{const{data:m,total:l}=o;y.value=m,C.value=l}});return{tableDataRef:y,baseColumns:k,itemCountRef:C,loadingGetPersonList:ee,runGetPersonList:W,conditionRef:R,radioRef:B,runTableRequest:n,tableProRegister:D,print:F,downloadCsv:P,checkedRowKeysBind:N,checkedRowKeys:K,getKeys:S,getRows:t,clearKey:Y,clearAll:Z,collapseRef:$,selectKey:_,register:G,reset:g,setPage:A,setPageSize:w,resetTablePagination:I}},render(){const{tableDataRef:u,baseColumns:G,itemCountRef:v,loadingGetPersonList:g,runGetPersonList:D,conditionRef:n,radioRef:d,runTableRequest:F,tableProRegister:P,print:O,downloadCsv:A,checkedRowKeysBind:w,getKeys:I,getRows:y,clearKey:k,clearAll:C,selectKey:R,register:E,reset:B,setPage:K,setPageSize:N,resetTablePagination:S}=this;return e(f,{vertical:!0,class:"h-full"},{default:()=>[e(le,{open:this.collapseRef,onRegister:E},{default:()=>e(fe,null,[e(h,{label:"用户名"},{default:()=>[e(H,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(h,{label:"状态"},{default:()=>[e(me,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(h,{label:"登陆时间"},{default:()=>[e(de,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(h,{label:"演示折叠的条件框"},{default:()=>[e(H,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(r,{onClick:()=>B(this.conditionRef)},{default:()=>[a("重置")]}),e(r,{type:"primary",onClick:()=>F(),loading:g},{default:()=>[a("查询")]})]}),collapse:t=>t?e(r,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(M,{name:"dark",size:"18"},null)}):e(r,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(M,{name:"light",size:"18"},null)})}),e(z,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(J,{label:"分页"},{default:()=>[e(X,{value:d.pagination,"onUpdate:value":t=>d.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[a("显示分页")]}),e(b,{value:!1},{default:()=>[a("隐藏分页")]})]})]}),e(J,{label:"自动更新"},{default:()=>[e(X,{value:d.manual,"onUpdate:value":t=>d.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[a("自动更新")]}),e(b,{value:!0},{default:()=>[a("取消自动")]})]})]})]})]}),e(z,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(r,{type:"primary",onClick:()=>O()},{default:()=>[a("打印")]}),e(r,{type:"primary",onClick:()=>A()},{default:()=>[a("下载 csv")]}),e(r,{type:"primary",onClick:()=>K(2)},{default:()=>[a("设置分页页码为 2")]}),e(r,{type:"primary",onClick:()=>N(20)},{default:()=>[a("设置分页每页条数为 20")]}),e(r,{type:"primary",onClick:()=>S()},{default:()=>[a("重置分页")]})]})]}),e(z,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(r,{type:"primary",onClick:()=>{const t=u[1].key;R(t)}},{default:()=>[a("选中第二行")]}),e(r,{type:"primary",onClick:()=>{const t=u[1].key;k(t)}},{default:()=>[a("取消选中第二行")]}),e(r,{type:"primary",onClick:()=>{u==null||u.forEach(t=>R(t.key))}},{default:()=>[a("选中当前页面所有行")]}),e(r,{type:"primary",onClick:()=>{C()}},{default:()=>[a("取消所有已选中行")]})]})]}),e(re,{takeoverAutoHeight:!0,onRegister:P,data:u,columns:this.baseColumns,"onUpdate:columns":t=>this.baseColumns=t,loading:g,paginationCount:v,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:d.pagination,manual:d.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:w},null)]})}});export{Et as default}; diff --git a/js/table-pro-demo-B3fUrCSq.js.gz b/js/table-pro-demo-B3fUrCSq.js.gz deleted file mode 100644 index 8ab6dbd7..00000000 Binary files a/js/table-pro-demo-B3fUrCSq.js.gz and /dev/null differ diff --git a/js/table-pro-demo-Djhkc3wC.js b/js/table-pro-demo-Djhkc3wC.js new file mode 100644 index 00000000..3826fe7b --- /dev/null +++ b/js/table-pro-demo-Djhkc3wC.js @@ -0,0 +1 @@ +import"./instance-Bux9_MkW.js";import{a as ue}from"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import{f as oe,Z as ie,$ as le,T as re,y as M,X as se,Y as ne}from"./hooks-MEhk8snd.js";import{n as me}from"./utils-DJW6-rvp.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{d as L}from"./dayjs@1.11.13-DqFijdaO.js";import{M as H}from"./mockjs@1.1.0-Dou1YATw.js";import{e as y,an as de,B as i,al as T,D as J,R as pe,am as ce,N as j,C as X,aj as Y,ao as b,w as fe}from"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import{m as ge,d as e,J as a,F as ye,t as ke}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as p}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./axios@1.10.0-CIcuZHni.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";function Ce(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!ke(l)}const bt=ge({name:"TableProDemo",setup(){const{format:l}=ne(),{info:G}=de(),[h,{formModel:k,reset:v}]=oe({RangeTime:null,name:null,status:null}),[n,{runTableRequest:m,getCurrentTableRequestParams:O,print:D,downloadCsv:F,runAsyncTableRequest:z,setPage:P,setPageSize:V,resetTablePagination:I}]=ie(),f=p([]),C=p([{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>l(u.signTimeStart)+" ~ "+l(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(fe,{type:"info",bordered:!1,style:"margin-right: 6px"},Ce(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}]),g=p(0),A=p(k()),R=p((()=>{const d=[],o=L().valueOf();for(let r=0;r<30;r++)d.push({key:me(),name:H.Random.cname(),age:r+20,address:H.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:L(o).add(r*2,"year").valueOf(),signTimeEnd:L(o).add(r+5,"day").valueOf()});return d})()),B=p({pagination:!0,manual:!1}),[w,{checkedRowKeysBind:S,getKeys:K,getRows:t,clearKey:Z,clearAll:_,selectKey:$}]=le(f,C,{rowKey:"key",onChange:(u,d,o)=>{}}),Q=p(!0),E=u=>u==null,W=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:N,status:U,signTimeStart:x,signTimeEnd:q}=u||{};let s=R.value;const ae=R.value.length;N&&(s=s.filter(c=>c.name.includes(N))),U&&(s=s.filter(c=>c.status===U)),x&&q&&(s=s.filter(c=>c.signTimeStart>=x&&c.signTimeEnd<=q)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:E(U)&&E(N)&&(E(x)||E(q))?ae:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:ee,loading:te}=ue(W,{onSuccess:u=>{const{data:d,total:o}=u;f.value=d,g.value=o}});return{tableDataRef:f,baseColumns:C,itemCountRef:g,loadingGetPersonList:te,runGetPersonList:ee,conditionRef:A,radioRef:B,runTableRequest:m,tableProRegister:n,print:D,downloadCsv:F,checkedRowKeysBind:S,checkedRowKeys:w,getKeys:K,getRows:t,clearKey:Z,clearAll:_,collapseRef:Q,selectKey:$,register:h,reset:v,setPage:P,setPageSize:V,resetTablePagination:I,infoDialog:G}},render(){const{tableDataRef:l,baseColumns:G,itemCountRef:h,loadingGetPersonList:k,runGetPersonList:v,conditionRef:n,radioRef:m,runTableRequest:O,tableProRegister:D,print:F,downloadCsv:z,checkedRowKeysBind:P,getKeys:V,getRows:I,clearKey:f,clearAll:C,selectKey:g,register:A,reset:R,setPage:B,setPageSize:w,resetTablePagination:S,infoDialog:K}=this;return e(y,{vertical:!0,class:"h-full"},{default:()=>[e(re,{open:this.collapseRef,onRegister:A},{default:()=>e(ye,null,[e(T,{label:"用户名"},{default:()=>[e(J,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(pe,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ce,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(J,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(y,null,{default:()=>[e(i,{onClick:()=>R(this.conditionRef)},{default:()=>[a("重置")]}),e(i,{type:"primary",onClick:()=>O(),loading:k},{default:()=>[a("查询")]})]}),collapse:t=>t?e(i,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(M,{name:"dark",size:"18"},null)}):e(i,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(M,{name:"light",size:"18"},null)})}),e(j,{title:"常用高级拓展功能"},{default:()=>[e(y,null,{default:()=>[e(X,{label:"分页"},{default:()=>[e(Y,{value:m.pagination,"onUpdate:value":t=>m.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[a("显示分页")]}),e(b,{value:!1},{default:()=>[a("隐藏分页")]})]})]}),e(X,{label:"自动更新"},{default:()=>[e(Y,{value:m.manual,"onUpdate:value":t=>m.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[a("自动更新")]}),e(b,{value:!0},{default:()=>[a("取消自动")]})]})]})]})]}),e(j,{title:"useTablePro 部分方法"},{default:()=>[e(y,null,{default:()=>[e(i,{type:"primary",onClick:()=>F()},{default:()=>[a("打印")]}),e(i,{type:"primary",onClick:()=>{K({title:"下载 CSV",content:"下载 CSV",positiveText:"下载",negativeText:"取消",onPositiveClick:()=>{z()}})}},{default:()=>[a("下载 csv")]}),e(i,{type:"primary",onClick:()=>B(2)},{default:()=>[a("设置分页页码为 2")]}),e(i,{type:"primary",onClick:()=>w(20)},{default:()=>[a("设置分页每页条数为 20")]}),e(i,{type:"primary",onClick:()=>S()},{default:()=>[a("重置分页")]})]})]}),e(j,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(y,null,{default:()=>[e(i,{type:"primary",onClick:()=>{const t=l[1].key;g(t)}},{default:()=>[a("选中第二行")]}),e(i,{type:"primary",onClick:()=>{const t=l[1].key;f(t)}},{default:()=>[a("取消选中第二行")]}),e(i,{type:"primary",onClick:()=>{l?.forEach(t=>g(t.key))}},{default:()=>[a("选中当前页面所有行")]}),e(i,{type:"primary",onClick:()=>{C()}},{default:()=>[a("取消所有已选中行")]})]})]}),e(se,{takeoverAutoHeight:!0,onRegister:D,data:l,columns:this.baseColumns,"onUpdate:columns":t=>this.baseColumns=t,loading:k,paginationCount:h,request:v,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:m.pagination,manual:m.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:P},null)]})}});export{bt as default}; diff --git a/js/table-pro-demo-Djhkc3wC.js.gz b/js/table-pro-demo-Djhkc3wC.js.gz new file mode 100644 index 00000000..d679f5e0 Binary files /dev/null and b/js/table-pro-demo-Djhkc3wC.js.gz differ diff --git a/js/treemate@0.3.11-DKekKYbv.js b/js/treemate@0.3.11-DKekKYbv.js deleted file mode 100644 index 29a1ba5e..00000000 --- a/js/treemate@0.3.11-DKekKYbv.js +++ /dev/null @@ -1 +0,0 @@ -function I(e){return Array.isArray(e)?e:[e]}const G={STOP:"STOP"};function M(e,n){const t=n(e);e.children!==void 0&&t!==G.STOP&&e.children.forEach(r=>M(r,n))}function F(e,n={}){const{preserveGroup:t=!1}=n,r=[],s=t?i=>{i.isLeaf||(r.push(i.key),u(i.children))}:i=>{i.isLeaf||(i.isGroup||r.push(i.key),u(i.children))};function u(i){i.forEach(s)}return u(e),r}function R(e,n){const{isLeaf:t}=e;return t!==void 0?t:!n(e)}function j(e){return e.children}function U(e){return e.key}function q(){return!1}function V(e,n){const{isLeaf:t}=e;return!(t===!1&&!Array.isArray(n(e)))}function W(e){return e.disabled===!0}function Z(e,n){return e.isLeaf===!1&&!Array.isArray(n(e))}function P(e){var n;return e==null?[]:Array.isArray(e)?e:(n=e.checkedKeys)!==null&&n!==void 0?n:[]}function x(e){var n;return e==null||Array.isArray(e)?[]:(n=e.indeterminateKeys)!==null&&n!==void 0?n:[]}function z(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)||t.add(r)}),Array.from(t)}function B(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)&&t.delete(r)}),Array.from(t)}function H(e){return(e==null?void 0:e.type)==="group"}function le(e){const n=new Map;return e.forEach((t,r)=>{n.set(t.key,r)}),t=>{var r;return(r=n.get(t))!==null&&r!==void 0?r:null}}class J extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Q(e,n,t,r){return w(n.concat(e),t,r,!1)}function X(e,n){const t=new Set;return e.forEach(r=>{const s=n.treeNodeMap.get(r);if(s!==void 0){let u=s.parent;for(;u!==null&&!(u.disabled||t.has(u.key));)t.add(u.key),u=u.parent}}),t}function Y(e,n,t,r){const s=w(n,t,r,!1),u=w(e,t,r,!0),i=X(e,t),d=[];return s.forEach(f=>{(u.has(f)||i.has(f))&&d.push(f)}),d.forEach(f=>s.delete(f)),s}function E(e,n){const{checkedKeys:t,keysToCheck:r,keysToUncheck:s,indeterminateKeys:u,cascade:i,leafOnly:d,checkStrategy:f,allowNotLoaded:o}=e;if(!i)return r!==void 0?{checkedKeys:z(t,r),indeterminateKeys:Array.from(u)}:s!==void 0?{checkedKeys:B(t,s),indeterminateKeys:Array.from(u)}:{checkedKeys:Array.from(t),indeterminateKeys:Array.from(u)};const{levelTreeNodeMap:h}=n;let c;s!==void 0?c=Y(s,t,n,o):r!==void 0?c=Q(r,t,n,o):c=w(t,n,o,!1);const v=f==="parent",N=f==="child"||d,g=c,A=new Set,C=Math.max.apply(null,Array.from(h.keys()));for(let b=C;b>=0;b-=1){const L=b===0,S=h.get(b);for(const a of S){if(a.isLeaf)continue;const{key:l,shallowLoaded:p}=a;if(N&&p&&a.children.forEach(y=>{!y.disabled&&!y.isLeaf&&y.shallowLoaded&&g.has(y.key)&&g.delete(y.key)}),a.disabled||!p)continue;let m=!0,k=!1,K=!0;for(const y of a.children){const O=y.key;if(!y.disabled){if(K&&(K=!1),g.has(O))k=!0;else if(A.has(O)){k=!0,m=!1;break}else if(m=!1,k)break}}m&&!K?(v&&a.children.forEach(y=>{!y.disabled&&g.has(y.key)&&g.delete(y.key)}),g.add(l)):k&&A.add(l),L&&N&&g.has(l)&&g.delete(l)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(A)}}function w(e,n,t,r){const{treeNodeMap:s,getChildren:u}=n,i=new Set,d=new Set(e);return e.forEach(f=>{const o=s.get(f);o!==void 0&&M(o,h=>{if(h.disabled)return G.STOP;const{key:c}=h;if(!i.has(c)&&(i.add(c),d.add(c),Z(h.rawNode,u))){if(r)return G.STOP;if(!t)throw new J}})}),d}function $(e,{includeGroup:n=!1,includeSelf:t=!0},r){var s;const u=r.treeNodeMap;let i=e==null?null:(s=u.get(e))!==null&&s!==void 0?s:null;const d={keyPath:[],treeNodePath:[],treeNode:i};if(i!=null&&i.ignored)return d.treeNode=null,d;for(;i;)!i.ignored&&(n||!i.isGroup)&&d.treeNodePath.push(i),i=i.parent;return d.treeNodePath.reverse(),t||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(f=>f.key),d}function ee(e){if(e.length===0)return null;const n=e[0];return n.isGroup||n.ignored||n.disabled?n.getNext():n}function te(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s+1)%r]:s===t.length-1?null:t[s+1]}function _(e,n,{loop:t=!1,includeDisabled:r=!1}={}){const s=n==="prev"?ne:te,u={reverse:n==="prev"};let i=!1,d=null;function f(o){if(o!==null){if(o===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!o.disabled||r)&&!o.ignored&&!o.isGroup){d=o;return}if(o.isGroup){const h=T(o,u);h!==null?d=h:f(s(o,t))}else{const h=s(o,!1);if(h!==null)f(h);else{const c=re(o);c!=null&&c.isGroup?f(s(c,t)):t&&f(s(o,!0))}}}}return f(e),d}function ne(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s-1+r)%r]:s===0?null:t[s-1]}function re(e){return e.parent}function T(e,n={}){const{reverse:t=!1}=n,{children:r}=e;if(r){const{length:s}=r,u=t?s-1:0,i=t?-1:s,d=t?-1:1;for(let f=u;f!==i;f+=d){const o=r[f];if(!o.disabled&&!o.ignored)if(o.isGroup){const h=T(o,n);if(h!==null)return h}else return o}}return null}const ie={getChild(){return this.ignored?null:T(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return _(this,"next",e)},getPrev(e={}){return _(this,"prev",e)}};function se(e,n){const t=n?new Set(n):void 0,r=[];function s(u){u.forEach(i=>{r.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||t===void 0||t.has(i.key))&&s(i.children)})}return s(e),r}function ae(e,n){const t=e.key;for(;n;){if(n.key===t)return!0;n=n.parent}return!1}function D(e,n,t,r,s,u=null,i=0){const d=[];return e.forEach((f,o)=>{var h;const c=Object.create(r);if(c.rawNode=f,c.siblings=d,c.level=i,c.index=o,c.isFirstChild=o===0,c.isLastChild=o+1===e.length,c.parent=u,!c.ignored){const v=s(f);Array.isArray(v)&&(c.children=D(v,n,t,r,s,c,i+1))}d.push(c),n.set(c.key,c),t.has(i)||t.set(i,[]),(h=t.get(i))===null||h===void 0||h.push(c)}),d}function oe(e,n={}){var t;const r=new Map,s=new Map,{getDisabled:u=W,getIgnored:i=q,getIsGroup:d=H,getKey:f=U}=n,o=(t=n.getChildren)!==null&&t!==void 0?t:j,h=n.ignoreEmptyChildren?a=>{const l=o(a);return Array.isArray(l)?l.length?l:null:l}:o,c=Object.assign({get key(){return f(this.rawNode)},get disabled(){return u(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return R(this.rawNode,h)},get shallowLoaded(){return V(this.rawNode,h)},get ignored(){return i(this.rawNode)},contains(a){return ae(this,a)}},ie),v=D(e,r,s,c,h);function N(a){if(a==null)return null;const l=r.get(a);return l&&!l.isGroup&&!l.ignored?l:null}function g(a){if(a==null)return null;const l=r.get(a);return l&&!l.ignored?l:null}function A(a,l){const p=g(a);return p?p.getPrev(l):null}function C(a,l){const p=g(a);return p?p.getNext(l):null}function b(a){const l=g(a);return l?l.getParent():null}function L(a){const l=g(a);return l?l.getChild():null}const S={treeNodes:v,treeNodeMap:r,levelTreeNodeMap:s,maxLevel:Math.max(...s.keys()),getChildren:h,getFlattenedNodes(a){return se(v,a)},getNode:N,getPrev:A,getNext:C,getParent:b,getChild:L,getFirstAvailableNode(){return ee(v)},getPath(a,l={}){return $(a,l,S)},getCheckedKeys(a,l={}){const{cascade:p=!0,leafOnly:m=!1,checkStrategy:k="all",allowNotLoaded:K=!1}=l;return E({checkedKeys:P(a),indeterminateKeys:x(a),cascade:p,leafOnly:m,checkStrategy:k,allowNotLoaded:K},S)},check(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToCheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},uncheck(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToUncheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},getNonLeafKeys(a={}){return F(v,a)}};return S}export{oe as a,le as c,se as f}; diff --git a/js/treemate@0.3.11-DKekKYbv.js.gz b/js/treemate@0.3.11-DKekKYbv.js.gz deleted file mode 100644 index 41bf43c8..00000000 Binary files a/js/treemate@0.3.11-DKekKYbv.js.gz and /dev/null differ diff --git a/js/treemate@0.3.11-fnkdj-jo.js b/js/treemate@0.3.11-fnkdj-jo.js new file mode 100644 index 00000000..db9149f5 --- /dev/null +++ b/js/treemate@0.3.11-fnkdj-jo.js @@ -0,0 +1 @@ +function I(e){return Array.isArray(e)?e:[e]}const G={STOP:"STOP"};function M(e,n){const t=n(e);e.children!==void 0&&t!==G.STOP&&e.children.forEach(r=>M(r,n))}function F(e,n={}){const{preserveGroup:t=!1}=n,r=[],s=t?i=>{i.isLeaf||(r.push(i.key),u(i.children))}:i=>{i.isLeaf||(i.isGroup||r.push(i.key),u(i.children))};function u(i){i.forEach(s)}return u(e),r}function R(e,n){const{isLeaf:t}=e;return t!==void 0?t:!n(e)}function j(e){return e.children}function U(e){return e.key}function q(){return!1}function V(e,n){const{isLeaf:t}=e;return!(t===!1&&!Array.isArray(n(e)))}function W(e){return e.disabled===!0}function Z(e,n){return e.isLeaf===!1&&!Array.isArray(n(e))}function P(e){var n;return e==null?[]:Array.isArray(e)?e:(n=e.checkedKeys)!==null&&n!==void 0?n:[]}function x(e){var n;return e==null||Array.isArray(e)?[]:(n=e.indeterminateKeys)!==null&&n!==void 0?n:[]}function z(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)||t.add(r)}),Array.from(t)}function B(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)&&t.delete(r)}),Array.from(t)}function H(e){return e?.type==="group"}function le(e){const n=new Map;return e.forEach((t,r)=>{n.set(t.key,r)}),t=>{var r;return(r=n.get(t))!==null&&r!==void 0?r:null}}class J extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Q(e,n,t,r){return w(n.concat(e),t,r,!1)}function X(e,n){const t=new Set;return e.forEach(r=>{const s=n.treeNodeMap.get(r);if(s!==void 0){let u=s.parent;for(;u!==null&&!(u.disabled||t.has(u.key));)t.add(u.key),u=u.parent}}),t}function Y(e,n,t,r){const s=w(n,t,r,!1),u=w(e,t,r,!0),i=X(e,t),d=[];return s.forEach(f=>{(u.has(f)||i.has(f))&&d.push(f)}),d.forEach(f=>s.delete(f)),s}function E(e,n){const{checkedKeys:t,keysToCheck:r,keysToUncheck:s,indeterminateKeys:u,cascade:i,leafOnly:d,checkStrategy:f,allowNotLoaded:o}=e;if(!i)return r!==void 0?{checkedKeys:z(t,r),indeterminateKeys:Array.from(u)}:s!==void 0?{checkedKeys:B(t,s),indeterminateKeys:Array.from(u)}:{checkedKeys:Array.from(t),indeterminateKeys:Array.from(u)};const{levelTreeNodeMap:h}=n;let c;s!==void 0?c=Y(s,t,n,o):r!==void 0?c=Q(r,t,n,o):c=w(t,n,o,!1);const v=f==="parent",N=f==="child"||d,g=c,A=new Set,C=Math.max.apply(null,Array.from(h.keys()));for(let b=C;b>=0;b-=1){const L=b===0,S=h.get(b);for(const a of S){if(a.isLeaf)continue;const{key:l,shallowLoaded:p}=a;if(N&&p&&a.children.forEach(y=>{!y.disabled&&!y.isLeaf&&y.shallowLoaded&&g.has(y.key)&&g.delete(y.key)}),a.disabled||!p)continue;let m=!0,k=!1,K=!0;for(const y of a.children){const O=y.key;if(!y.disabled){if(K&&(K=!1),g.has(O))k=!0;else if(A.has(O)){k=!0,m=!1;break}else if(m=!1,k)break}}m&&!K?(v&&a.children.forEach(y=>{!y.disabled&&g.has(y.key)&&g.delete(y.key)}),g.add(l)):k&&A.add(l),L&&N&&g.has(l)&&g.delete(l)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(A)}}function w(e,n,t,r){const{treeNodeMap:s,getChildren:u}=n,i=new Set,d=new Set(e);return e.forEach(f=>{const o=s.get(f);o!==void 0&&M(o,h=>{if(h.disabled)return G.STOP;const{key:c}=h;if(!i.has(c)&&(i.add(c),d.add(c),Z(h.rawNode,u))){if(r)return G.STOP;if(!t)throw new J}})}),d}function $(e,{includeGroup:n=!1,includeSelf:t=!0},r){var s;const u=r.treeNodeMap;let i=e==null?null:(s=u.get(e))!==null&&s!==void 0?s:null;const d={keyPath:[],treeNodePath:[],treeNode:i};if(i?.ignored)return d.treeNode=null,d;for(;i;)!i.ignored&&(n||!i.isGroup)&&d.treeNodePath.push(i),i=i.parent;return d.treeNodePath.reverse(),t||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(f=>f.key),d}function ee(e){if(e.length===0)return null;const n=e[0];return n.isGroup||n.ignored||n.disabled?n.getNext():n}function te(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s+1)%r]:s===t.length-1?null:t[s+1]}function _(e,n,{loop:t=!1,includeDisabled:r=!1}={}){const s=n==="prev"?ne:te,u={reverse:n==="prev"};let i=!1,d=null;function f(o){if(o!==null){if(o===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!o.disabled||r)&&!o.ignored&&!o.isGroup){d=o;return}if(o.isGroup){const h=T(o,u);h!==null?d=h:f(s(o,t))}else{const h=s(o,!1);if(h!==null)f(h);else{const c=re(o);c?.isGroup?f(s(c,t)):t&&f(s(o,!0))}}}}return f(e),d}function ne(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s-1+r)%r]:s===0?null:t[s-1]}function re(e){return e.parent}function T(e,n={}){const{reverse:t=!1}=n,{children:r}=e;if(r){const{length:s}=r,u=t?s-1:0,i=t?-1:s,d=t?-1:1;for(let f=u;f!==i;f+=d){const o=r[f];if(!o.disabled&&!o.ignored)if(o.isGroup){const h=T(o,n);if(h!==null)return h}else return o}}return null}const ie={getChild(){return this.ignored?null:T(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return _(this,"next",e)},getPrev(e={}){return _(this,"prev",e)}};function se(e,n){const t=n?new Set(n):void 0,r=[];function s(u){u.forEach(i=>{r.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||t===void 0||t.has(i.key))&&s(i.children)})}return s(e),r}function ae(e,n){const t=e.key;for(;n;){if(n.key===t)return!0;n=n.parent}return!1}function D(e,n,t,r,s,u=null,i=0){const d=[];return e.forEach((f,o)=>{var h;const c=Object.create(r);if(c.rawNode=f,c.siblings=d,c.level=i,c.index=o,c.isFirstChild=o===0,c.isLastChild=o+1===e.length,c.parent=u,!c.ignored){const v=s(f);Array.isArray(v)&&(c.children=D(v,n,t,r,s,c,i+1))}d.push(c),n.set(c.key,c),t.has(i)||t.set(i,[]),(h=t.get(i))===null||h===void 0||h.push(c)}),d}function oe(e,n={}){var t;const r=new Map,s=new Map,{getDisabled:u=W,getIgnored:i=q,getIsGroup:d=H,getKey:f=U}=n,o=(t=n.getChildren)!==null&&t!==void 0?t:j,h=n.ignoreEmptyChildren?a=>{const l=o(a);return Array.isArray(l)?l.length?l:null:l}:o,c=Object.assign({get key(){return f(this.rawNode)},get disabled(){return u(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return R(this.rawNode,h)},get shallowLoaded(){return V(this.rawNode,h)},get ignored(){return i(this.rawNode)},contains(a){return ae(this,a)}},ie),v=D(e,r,s,c,h);function N(a){if(a==null)return null;const l=r.get(a);return l&&!l.isGroup&&!l.ignored?l:null}function g(a){if(a==null)return null;const l=r.get(a);return l&&!l.ignored?l:null}function A(a,l){const p=g(a);return p?p.getPrev(l):null}function C(a,l){const p=g(a);return p?p.getNext(l):null}function b(a){const l=g(a);return l?l.getParent():null}function L(a){const l=g(a);return l?l.getChild():null}const S={treeNodes:v,treeNodeMap:r,levelTreeNodeMap:s,maxLevel:Math.max(...s.keys()),getChildren:h,getFlattenedNodes(a){return se(v,a)},getNode:N,getPrev:A,getNext:C,getParent:b,getChild:L,getFirstAvailableNode(){return ee(v)},getPath(a,l={}){return $(a,l,S)},getCheckedKeys(a,l={}){const{cascade:p=!0,leafOnly:m=!1,checkStrategy:k="all",allowNotLoaded:K=!1}=l;return E({checkedKeys:P(a),indeterminateKeys:x(a),cascade:p,leafOnly:m,checkStrategy:k,allowNotLoaded:K},S)},check(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToCheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},uncheck(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToUncheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},getNonLeafKeys(a={}){return F(v,a)}};return S}export{oe as a,le as c,se as f}; diff --git a/js/treemate@0.3.11-fnkdj-jo.js.gz b/js/treemate@0.3.11-fnkdj-jo.js.gz new file mode 100644 index 00000000..39922b4f Binary files /dev/null and b/js/treemate@0.3.11-fnkdj-jo.js.gz differ diff --git a/js/tslib@2.3.0-BDyQ-Jie.js b/js/tslib@2.3.0-BDyQ-Jie.js deleted file mode 100644 index b3ff0c38..00000000 --- a/js/tslib@2.3.0-BDyQ-Jie.js +++ /dev/null @@ -1,14 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var c=function(n,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])},c(n,t)};function i(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");c(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}export{i as _}; diff --git a/js/tslib@2.3.0-BDyQ-Jie.js.gz b/js/tslib@2.3.0-BDyQ-Jie.js.gz deleted file mode 100644 index 8ebb50e4..00000000 Binary files a/js/tslib@2.3.0-BDyQ-Jie.js.gz and /dev/null differ diff --git a/js/tslib@2.3.0-Cg4x8ZAA.js b/js/tslib@2.3.0-Cg4x8ZAA.js new file mode 100644 index 00000000..f43fb5ab --- /dev/null +++ b/js/tslib@2.3.0-Cg4x8ZAA.js @@ -0,0 +1 @@ +var c=function(n,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])},c(n,t)};function i(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");c(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}export{i as _}; diff --git a/js/tslib@2.3.0-Cg4x8ZAA.js.gz b/js/tslib@2.3.0-Cg4x8ZAA.js.gz new file mode 100644 index 00000000..73a4f4c5 Binary files /dev/null and b/js/tslib@2.3.0-Cg4x8ZAA.js.gz differ diff --git a/js/utils-BPTDWjJB.js b/js/utils-BPTDWjJB.js deleted file mode 100644 index fd802a43..00000000 --- a/js/utils-BPTDWjJB.js +++ /dev/null @@ -1 +0,0 @@ -import{u as ve,a as Pe,b as Fe,L as Re,S as Ie,c as Te,A as je,d as Be}from"./hooks-CkuihJ2J.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import{c as C}from"./crypto-js@4.2.0-BC7ZohPc.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import{z as Me,c as De,r as Oe}from"./lodash-es@4.17.21-UVJw7vmf.js";import{k as Ue,a as Ve,v as ze,x as Ke}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{w as S,j as qe}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";const E=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",W={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},P={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{borderWidth:0,borderColor:"#ccc"}},D={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},O={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},J={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Y={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},N={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},X={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Z={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},G={color:["#fc97af","#87f7cf"]},H={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Q={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Je={color:E,backgroundColor:A,textStyle:W,title:k,line:L,radar:v,bar:P,pie:F,scatter:R,boxplot:I,parallel:T,sankey:j,funnel:B,gauge:M,candlestick:D,graph:O,map:U,geo:V,categoryAxis:z,valueAxis:K,logAxis:q,timeAxis:J,toolbox:Y,legend:N,tooltip:X,timeline:Z,visualMap:G,dataZoom:H,markPoint:Q},Ye=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:P,boxplot:I,candlestick:D,categoryAxis:z,color:E,dataZoom:H,default:Je,funnel:B,gauge:M,geo:V,graph:O,legend:N,line:L,logAxis:q,map:U,markPoint:Q,parallel:T,pie:F,radar:v,sankey:j,scatter:R,textStyle:W,timeAxis:J,timeline:Z,title:k,toolbox:Y,tooltip:X,valueAxis:K,visualMap:G},Symbol.toStringTag,{value:"Module"})),ee=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],te="transparent",oe={},re={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ce={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},se={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pe={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},he={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},ye={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},xe={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},$e={textStyle:{color:"#333333"}},_e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},Ee={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},We={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ne={color:ee,backgroundColor:te,textStyle:oe,title:re,line:le,radar:ce,bar:se,pie:ae,scatter:ne,boxplot:ie,parallel:de,sankey:fe,funnel:ue,gauge:be,candlestick:pe,graph:he,map:ye,geo:me,categoryAxis:Se,valueAxis:ge,logAxis:we,timeAxis:Ce,toolbox:xe,legend:$e,tooltip:_e,timeline:Ee,visualMap:Ae,dataZoom:We,markPoint:ke},Xe=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:te,bar:se,boxplot:ie,candlestick:pe,categoryAxis:Se,color:ee,dataZoom:We,default:Ne,funnel:ue,gauge:be,geo:me,graph:he,legend:$e,line:le,logAxis:we,map:ye,markPoint:ke,parallel:de,pie:ae,radar:ce,sankey:fe,scatter:ne,textStyle:oe,timeAxis:Ce,timeline:Ee,title:re,toolbox:xe,tooltip:_e,valueAxis:ge,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),St=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ye,"/src/app-config/echart-themes/macarons/macarons.json":Xe}),o=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var c;const s=(c=l.match(o))==null?void 0:c[1];if(s)return r.push({name:s,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},gt=e=>{const{getAppTheme:o}=ve(),{theme:t}=o();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:t?"#fff":"#000",maskColor:t?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},wt=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),Ct=(e,o)=>{var s;const{domToImageOptions:t,printOptions:r}=o??{},{create:l}=Pe(e,{...t,beforeCreate:c=>{var a,n;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,c),(n=window.$loadingBar)==null||n.start()},created(c,a){var n,u;(n=t==null?void 0:t.created)==null||n.call(t,c,a),(u=window.$loadingBar)==null||u.finish()},createdError(c){var a,n;(a=t==null?void 0:t.createdError)==null||a.call(t,c),(n=window.$loadingBar)==null||n.error()}});(s=l("jpeg"))==null||s.then(c=>{const{print:a}=Fe(c,{type:"image",base64:!0,targetStyles:["*"],...Me(r,["type","base64"])});a()})},Ze=".n-menu-item-content--selected",Ge=".n-menu-item",He=".n-menu-item-content--child-active",xt=()=>{const e=f(Re),o=(e==null?void 0:e.querySelector(Ze))||(e==null?void 0:e.querySelector(He)),t=f(Ie);let r=0;const l=e==null?void 0:e.querySelector(Ge);if(t){const{height:s}=t.getBoundingClientRect();r=s}if(o&&e){const s=o.getBoundingClientRect(),c=e.getBoundingClientRect();if(!(s.top>=c.top+r&&s.bottom<=c.bottom)){const n=Te(),u=e.scrollTop,p=l?parseInt(window.getComputedStyle(l).marginTop):6;n({top:s.top-c.top+u-r-p,left:0,behavior:"smooth"})}}};var b=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(b||{});const Qe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},$t=()=>Qe,_t=(e,o)=>{const t=document.createElement("a");t.href=e,t.download=o,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},h=(e,o)=>Object.prototype.toString.call(e).includes(o),Et=(e=16,o=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let s=0;for(s=0;s{const e=navigator.userAgent;return/windows/i.test(e)?b.Windows:/macintosh|mac os x/i.test(e)?b.MacOS:/linux/i.test(e)?b.Linux:/android/i.test(e)?b.Android:/iphone|ipad|ipod/i.test(e)?b.IOS:b.Unknown},Wt=(e,o)=>{const t=e.split("?").filter(Boolean)[0],r=o.split("?").filter(Boolean)[0],l=/\/$/;return t.replace(l,"")===r.replace(l,"")},g=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,y=(e,o)=>{const{prefix:t,prefixKey:r}=o??{};return t?(r||je)+e:e};function kt(e,o="sessionStorage",t){const r=y(e,t),l=g(o);return Object.keys(l).includes(r)}function Lt(e,o,t="sessionStorage",r){if(!e){console.error("[setStorage]: Failed to set stored data: key is empty");return}const l=y(e,r),s=g(t);try{s.setItem(l,JSON.stringify(o))}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function vt(e,o="sessionStorage",t){const r=y(e,t),l=g(o),{defaultValue:s}=t??{};try{const c=l.getItem(r);return c===null?s??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),s??null}}const Pt=(e,o,t)=>{if(!e){console.error("[removeStorage]: Failed to remove stored data: key is empty");return}const r=y(e,t),l=window.localStorage,s=window.sessionStorage,c=a=>{Object.keys(a).forEach(n=>a.removeItem(y(n,t)))};switch(e){case"__all__":c(l),c(s);break;case"__all_sessionStorage__":c(s);break;case"__all_localStorage__":c(l);break;default:g(o).removeItem(r)}},Ft=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);l&&(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.add(c)})},{immediate:!0});m(r)},Rt=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);if(l)if(o==="removeAllClass"){const s=l.classList;s.forEach(c=>s.remove(c))}else(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.remove(c)})},{immediate:!0});m(r)},It=(e,o)=>{const t=Ue(!1),l=S(()=>f(e),()=>{const s=f(e);if(!s)t.value=!1;else{const c=s.className,a=o.trim().split(" ").filter(n=>n!=="");t.value=a.some(n=>c.includes(n))}},{immediate:!0});return m(l),t},et=e=>{const o=["webkit","moz","ms","o"],t={};return o.forEach(r=>{t[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},Tt=(e,o)=>{const t=(s,c)=>{s.split(";").forEach(a=>{const[n,u]=a.split(":");if(n&&u){const p=n.trim(),x=u.trim();if(n.startsWith("--"))c.style.setProperty(p,x);else if(n.startsWith("-"))c.style.setProperty(n,u);else{const $=et(p);Object.keys($).forEach(_=>{c.style.setProperty(_,$[_])}),c.style.setProperty(p,x)}}})},l=S(()=>f(e),()=>{const s=f(e);s&&(h(o,"String")?t(o,s):h(o,"Array")?o.forEach(c=>{t(c,s)}):Object.keys(o).forEach(a=>{t(`${a}: ${o[a]}`,s)}))},{immediate:!0});m(l)},jt=(e,o=1,t)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${o})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${o})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${o})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${o})`);if(e.startsWith("#")){const r=e.replace("#","");try{switch(r.length){case 3:return`rgba(${parseInt(r[0]+r[0],16)}, ${parseInt(r[1]+r[1],16)}, ${parseInt(r[2]+r[2],16)}, ${o})`;case 6:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;case 8:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;default:return t||e}}catch{return e}}return e},Bt=(e,o)=>{const{defaultElement:t}={};if(!e)return t?[t]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&t?[t]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),t?[t]:null}},Mt=(e,o="px")=>e==="auto"?e:typeof e=="number"?e.toString()+o:h(e,"String")&&Be.cssUnit.test(e)?e:e+o,d={precision:8,decimal:"."},w=(e,o,t)=>{if(!(e!=null&&e.length))return i(0,d);if(e.length===1)return i(e[0],d);const r=i(o,d);return e.reduce(t,r)},tt=(e,o)=>{const t={...d,...o},r=i(e,t),{type:l="number"}=t;return l==="number"?r.value:r.toString()},Dt=(...e)=>e.length?e.length===1?i(e[0],d).add(0):w(e,0,(o,t)=>o.add(t)):i(0,d),Ot=(...e)=>{if(!e.length)return i(0,d);if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const[o,...t]=e;return w(t,o,(r,l)=>r.subtract(l))},Ut=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(o,t)=>i(o,d).multiply(t)),Vt=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const o=De(e),t=o.shift();return w(o,t,(r,l)=>i(r,d).divide(l))},zt=(e,o,t)=>{if(o<=1)return[e||0];if(!e)return new Array(o).fill(0);const r={...d,...t};return i(e,r).distribute(o).map(s=>tt(s,r))};function ot(e,...o){if(Array.isArray(e))e.forEach(t=>ot(t,...o));else return e(...o)}function f(e,o){var r;if(!e)return o;let t;return typeof e=="function"?t=e():Ve(e)?t=((r=e.value)==null?void 0:r.$el)??e.value:t=e,t}function Kt(e,o){if(!e){const{defaultElement:t=null}=o??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||h(e,"Object"))return()=>e;if(typeof e=="function")return e}function m(e){return ze()?(Ke(e),!0):!1}function qt(e,o){const t=qe(e,o);m(t)}const Le="4cP+dX5FI2EVYzln",Jt=(e,o)=>{try{const r=C.AES.decrypt(e,o||Le).toString(C.enc.Utf8);return JSON.parse(r)}catch(t){console.error(`Unknown error: ${t}`)}},Yt=(e,o)=>C.AES.encrypt(JSON.stringify(e),Le).toString(),Nt=(e,o,t,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, received ${typeof e}`);return}Object.hasOwn(e,o)&&(h(t,"Object")?e[o]={...e[o],...t}:e[o]=t,r==null||r())},Xt=e=>Oe(Object.entries(e).reverse(),(o,[t,r])=>(o[t]=r,o),{});export{It as A,Jt as B,qt as C,Yt as D,kt as E,Vt as F,Ut as G,Ot as H,Dt as I,tt as J,zt as K,$t as a,Tt as b,jt as c,Mt as d,f as e,wt as f,vt as g,St as h,h as i,_t as j,ot as k,gt as l,Et as m,Ft as n,m as o,Ct as p,Bt as q,Kt as r,Lt as s,Xt as t,Nt as u,Wt as v,Pt as w,xt as x,Rt as y,At as z}; diff --git a/js/utils-BPTDWjJB.js.gz b/js/utils-BPTDWjJB.js.gz deleted file mode 100644 index 50dd4ae6..00000000 Binary files a/js/utils-BPTDWjJB.js.gz and /dev/null differ diff --git a/js/utils-DJW6-rvp.js b/js/utils-DJW6-rvp.js new file mode 100644 index 00000000..12f31f1b --- /dev/null +++ b/js/utils-DJW6-rvp.js @@ -0,0 +1 @@ +import{u as Ie,a as ve,b as Te,L as Pe,S as Oe,c as Re,A as Be,d as Fe}from"./hooks-MEhk8snd.js";import{c as a}from"./currency.js@2.0.4-BSkspdt3.js";import{c as C}from"./crypto-js@4.2.0-Bv3pmx0c.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import{z as je,c as Me,r as De}from"./lodash-es@4.17.21-CFdI1ypR.js";import{k as Ue,v as Ve,x as ze,a as Ke}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{w as S,j as qe}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";const $=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",W={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},I={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},O={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},J={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Y={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},N={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},X={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Z={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},G={color:["#fc97af","#87f7cf"]},H={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Q={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Je={color:$,backgroundColor:A,textStyle:W,title:k,line:L,radar:I,bar:v,pie:T,scatter:P,boxplot:O,parallel:R,sankey:B,funnel:F,gauge:j,candlestick:M,graph:D,map:U,geo:V,categoryAxis:z,valueAxis:K,logAxis:q,timeAxis:J,toolbox:Y,legend:N,tooltip:X,timeline:Z,visualMap:G,dataZoom:H,markPoint:Q},Ye=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:v,boxplot:O,candlestick:M,categoryAxis:z,color:$,dataZoom:H,default:Je,funnel:F,gauge:j,geo:V,graph:D,legend:N,line:L,logAxis:q,map:U,markPoint:Q,parallel:R,pie:T,radar:I,sankey:B,scatter:P,textStyle:W,timeAxis:J,timeline:Z,title:k,toolbox:Y,tooltip:X,valueAxis:K,visualMap:G},Symbol.toStringTag,{value:"Module"})),ee=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],te="transparent",oe={},re={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ce={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},se={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pe={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},me={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},ye={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},xe={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Ee={textStyle:{color:"#333333"}},_e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},$e={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},We={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ne={color:ee,backgroundColor:te,textStyle:oe,title:re,line:le,radar:ce,bar:se,pie:ae,scatter:ne,boxplot:ie,parallel:de,sankey:fe,funnel:ue,gauge:be,candlestick:pe,graph:me,map:he,geo:ye,categoryAxis:Se,valueAxis:ge,logAxis:we,timeAxis:Ce,toolbox:xe,legend:Ee,tooltip:_e,timeline:$e,visualMap:Ae,dataZoom:We,markPoint:ke},Xe=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:te,bar:se,boxplot:ie,candlestick:pe,categoryAxis:Se,color:ee,dataZoom:We,default:Ne,funnel:ue,gauge:be,geo:ye,graph:me,legend:Ee,line:le,logAxis:we,map:he,markPoint:ke,parallel:de,pie:ae,radar:ce,sankey:fe,scatter:ne,textStyle:oe,timeAxis:Ce,timeline:$e,title:re,toolbox:xe,tooltip:_e,valueAxis:ge,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),St=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ye,"/src/app-config/echart-themes/macarons/macarons.json":Xe}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{const c=l.match(t)?.[1];if(c)return r.push({name:c,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},gt=e=>{const{getAppTheme:t}=Ie(),{theme:o}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},wt=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),Ct=(e,t)=>{const{domToImageOptions:o,printOptions:r}=t??{},{create:l}=ve(e,{...o,beforeCreate:c=>{o?.beforeCreate?.(c),window.$loadingBar?.start()},created(c,s){o?.created?.(c,s),window.$loadingBar?.finish()},createdError(c){o?.createdError?.(c),window.$loadingBar?.error()}});l("jpeg")?.then(c=>{const{print:s}=Te(c,{type:"image",base64:!0,targetStyles:["*"],...je(r,["type","base64"])});s()})},Ze=".n-menu-item-content--selected",Ge=".n-menu-item",He=".n-menu-item-content--child-active",xt=()=>{const e=f(Pe),t=e?.querySelector(Ze)||e?.querySelector(He),o=f(Oe);let r=0;const l=e?.querySelector(Ge);if(o){const{height:c}=o.getBoundingClientRect();r=c}if(t&&e){const c=t.getBoundingClientRect(),s=e.getBoundingClientRect();if(!(c.top>=s.top+r&&c.bottom<=s.bottom)){const i=Re(),b=e.scrollTop,p=l?parseInt(window.getComputedStyle(l).marginTop):6;i({top:c.top-s.top+b-r-p,left:0,behavior:"smooth"})}}};var u=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(u||{});const Qe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},Et=()=>Qe,_t=(e,t)=>{const o=document.createElement("a");o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)},m=(e,t)=>Object.prototype.toString.call(e).includes(t),$t=(e=16,t=62)=>{const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let c=0;for(c=0;c{const e=navigator.userAgent;return/windows/i.test(e)?u.Windows:/macintosh|mac os x/i.test(e)?u.MacOS:/linux/i.test(e)?u.Linux:/android/i.test(e)?u.Android:/iphone|ipad|ipod/i.test(e)?u.IOS:u.Unknown},Wt=(e,t)=>{const o=e.split("?").filter(Boolean)[0],r=t.split("?").filter(Boolean)[0],l=/\/$/;return o.replace(l,"")===r.replace(l,"")},g=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,h=(e,t)=>{const{prefix:o,prefixKey:r}=t??{};return o?(r||Be)+e:e};function kt(e,t="sessionStorage",o){const r=h(e,o),l=g(t);return Object.keys(l).includes(r)}function Lt(e,t,o="sessionStorage",r){if(!e)return;const l=h(e,r),c=g(o);try{c.setItem(l,JSON.stringify(t))}catch{}}function It(e,t="sessionStorage",o){const r=h(e,o),l=g(t),{defaultValue:c}=o??{};try{const s=l.getItem(r);return s===null?c??null:JSON.parse(s)}catch{return c??null}}const vt=(e,t,o)=>{if(!e)return;const r=h(e,o),l=window.localStorage,c=window.sessionStorage,s=d=>{Object.keys(d).forEach(i=>d.removeItem(h(i,o)))};switch(e){case"__all__":s(l),s(c);break;case"__all_sessionStorage__":s(c);break;case"__all_localStorage__":s(l);break;default:g(t).removeItem(r)}},Tt=(e,t)=>{const r=S(()=>f(e),()=>{const l=f(e);l&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.add(s)})},{immediate:!0});y(r)},Pt=(e,t)=>{const r=S(()=>f(e),()=>{const l=f(e);if(l)if(t==="removeAllClass"){const c=l.classList;c.forEach(s=>c.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.remove(s)})},{immediate:!0});y(r)},Ot=(e,t)=>{const o=Ue(!1),l=S(()=>f(e),()=>{const c=f(e);if(!c)o.value=!1;else{const s=c.className,d=t.trim().split(" ").filter(i=>i!=="");o.value=d.some(i=>s.includes(i))}},{immediate:!0});return y(l),o},et=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(r=>{o[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},Rt=(e,t)=>{const o=(c,s)=>{c.split(";").forEach(d=>{const[i,b]=d.split(":");if(i&&b){const p=i.trim(),x=b.trim();if(i.startsWith("--"))s.style.setProperty(p,x);else if(i.startsWith("-"))s.style.setProperty(i,b);else{const E=et(p);Object.keys(E).forEach(_=>{s.style.setProperty(_,E[_])}),s.style.setProperty(p,x)}}})},l=S(()=>f(e),()=>{const c=f(e);c&&(m(t,"String")?o(t,c):m(t,"Array")?t.forEach(s=>{o(s,c)}):Object.keys(t).forEach(d=>{o(`${d}: ${t[d]}`,c)}))},{immediate:!0});y(l)},Bt=(e,t=1,o)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${t})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${t})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${t})`);if(e.startsWith("#")){const r=e.replace("#","");try{switch(r.length){case 3:return`rgba(${parseInt(r[0]+r[0],16)}, ${parseInt(r[1]+r[1],16)}, ${parseInt(r[2]+r[2],16)}, ${t})`;case 6:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${t})`;default:return o||e}}catch{return e}}return e},Ft=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&o?[o]:l}catch{return o?[o]:null}},jt=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:m(e,"String")&&Fe.cssUnit.test(e)?e:e+t,n={precision:8,decimal:"."},w=(e,t,o)=>{if(!e?.length)return a(0,n);if(e.length===1)return a(e[0],n);const r=a(t,n);return e.reduce(o,r)},tt=(e,t)=>{const o={...n,...t},r=a(e,o),{type:l="number"}=o;return l==="number"?r.value:r.toString()},Mt=(...e)=>e.length?e.length===1?a(e[0],n).add(0):w(e,0,(t,o)=>t.add(o)):a(0,n),Dt=(...e)=>{if(!e.length)return a(0,n);if(e.length===1)return a(e[0],n).subtract(0);if(e.length===2){const[r,l]=e;return a(r,n).subtract(l)}const[t,...o]=e;return w(o,t,(r,l)=>r.subtract(l))},Ut=(...e)=>e.length===1?a(e[0],n).multiply(1):w(e,1,(t,o)=>a(t,n).multiply(o)),Vt=(...e)=>{if(e.length===1)return a(e[0],n).divide(1);if(e.length===2){const[r,l]=e;return a(r,n).divide(l)}const t=Me(e),o=t.shift();return w(t,o,(r,l)=>a(r,n).divide(l))},zt=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const r={...n,...o};return a(e,r).distribute(t).map(c=>tt(c,r))};function ot(e,...t){if(Array.isArray(e))e.forEach(o=>ot(o,...t));else return e(...t)}function y(e){return Ve()?(ze(e),!0):!1}function Kt(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||m(e,"Object"))return()=>e;if(typeof e=="function")return e}function f(e,t){if(!e)return t;let o;return typeof e=="function"?o=e():Ke(e)?o=e.value?.$el??e.value:o=e,o}function qt(e,t){const o=qe(e,t);y(o)}const Le="4cP+dX5FI2EVYzln",Jt=(e,t)=>{try{const r=C.AES.decrypt(e,t||Le).toString(C.enc.Utf8);return JSON.parse(r)}catch{}},Yt=(e,t)=>C.AES.encrypt(JSON.stringify(e),Le).toString(),Nt=(e,t,o,r)=>{!e||typeof e!="object"||Object.hasOwn(e,t)&&(m(o,"Object")?e[t]={...e[t],...o}:e[t]=o,r?.())},Xt=e=>De(Object.entries(e).reverse(),(t,[o,r])=>(t[o]=r,t),{});export{Pt as A,At as B,qt as C,Yt as D,kt as E,Vt as F,Ut as G,Dt as H,Mt as I,tt as J,zt as K,Et as a,Rt as b,Bt as c,jt as d,f as e,wt as f,It as g,St as h,m as i,_t as j,ot as k,gt as l,Tt as m,$t as n,y as o,Ct as p,Ft as q,Kt as r,Lt as s,Xt as t,Nt as u,Wt as v,vt as w,Jt as x,xt as y,Ot as z}; diff --git a/js/utils-DJW6-rvp.js.gz b/js/utils-DJW6-rvp.js.gz new file mode 100644 index 00000000..783f23fc Binary files /dev/null and b/js/utils-DJW6-rvp.js.gz differ diff --git a/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js b/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js deleted file mode 100644 index ba2b10de..00000000 --- a/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js +++ /dev/null @@ -1 +0,0 @@ -import{a as c,o as a}from"./evtd@0.2.4-CI_DDEu_.js";const i="@@mmoContext",I={mounted(n,{value:e}){n[i]={handler:void 0},typeof e=="function"&&(n[i].handler=e,a("mousemoveoutside",n,e))},updated(n,{value:e}){const t=n[i];typeof e=="function"?t.handler?t.handler!==e&&(c("mousemoveoutside",n,t.handler),t.handler=e,a("mousemoveoutside",n,e)):(n[i].handler=e,a("mousemoveoutside",n,e)):t.handler&&(c("mousemoveoutside",n,t.handler),t.handler=void 0)},unmounted(n){const{handler:e}=n[i];e&&c("mousemoveoutside",n,e),n[i].handler=void 0}},o="@@coContext",l={mounted(n,{value:e,modifiers:t}){n[o]={handler:void 0},typeof e=="function"&&(n[o].handler=e,a("clickoutside",n,e,{capture:t.capture}))},updated(n,{value:e,modifiers:t}){const d=n[o];typeof e=="function"?d.handler?d.handler!==e&&(c("clickoutside",n,d.handler,{capture:t.capture}),d.handler=e,a("clickoutside",n,e,{capture:t.capture})):(n[o].handler=e,a("clickoutside",n,e,{capture:t.capture})):d.handler&&(c("clickoutside",n,d.handler,{capture:t.capture}),d.handler=void 0)},unmounted(n,{modifiers:e}){const{handler:t}=n[o];t&&c("clickoutside",n,t,{capture:e.capture}),n[o].handler=void 0}};function x(n,e){console.error(`[vdirs/${n}]: ${e}`)}class f{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:d}=this;if(t!==void 0){e.style.zIndex=`${t}`,d.delete(e);return}const{nextZIndex:s}=this;d.has(e)&&d.get(e)+1===this.nextZIndex||(e.style.zIndex=`${s}`,d.set(e,s),this.nextZIndex=s+1,this.squashState())}unregister(e,t){const{elementZIndex:d}=this;d.has(e)?d.delete(e):t===void 0&&x("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((t,d)=>t[1]-d[1]),this.nextZIndex=2e3,e.forEach(t=>{const d=t[0],s=this.nextZIndex++;`${s}`!==d.style.zIndex&&(d.style.zIndex=`${s}`)})}}const u=new f,r="@@ziContext",p={mounted(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t;n[r]={enabled:!!s,initialized:!1},s&&(u.ensureZIndex(n,d),n[r].initialized=!0)},updated(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t,h=n[r].enabled;s&&!h&&(u.ensureZIndex(n,d),n[r].initialized=!0),n[r].enabled=!!s},unmounted(n,e){if(!n[r].initialized)return;const{value:t={}}=e,{zIndex:d}=t;u.unregister(n,d)}};export{l as c,I as m,p as z}; diff --git a/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js.gz b/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js.gz deleted file mode 100644 index e292dee9..00000000 Binary files a/js/vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js.gz and /dev/null differ diff --git a/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js b/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js new file mode 100644 index 00000000..a8b5cd28 --- /dev/null +++ b/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js @@ -0,0 +1 @@ +import{a,o as c}from"./evtd@0.2.4-w6UMCrcr.js";const i="@@mmoContext",m={mounted(n,{value:e}){n[i]={handler:void 0},typeof e=="function"&&(n[i].handler=e,c("mousemoveoutside",n,e))},updated(n,{value:e}){const t=n[i];typeof e=="function"?t.handler?t.handler!==e&&(a("mousemoveoutside",n,t.handler),t.handler=e,c("mousemoveoutside",n,e)):(n[i].handler=e,c("mousemoveoutside",n,e)):t.handler&&(a("mousemoveoutside",n,t.handler),t.handler=void 0)},unmounted(n){const{handler:e}=n[i];e&&a("mousemoveoutside",n,e),n[i].handler=void 0}},o="@@coContext",l={mounted(n,{value:e,modifiers:t}){n[o]={handler:void 0},typeof e=="function"&&(n[o].handler=e,c("clickoutside",n,e,{capture:t.capture}))},updated(n,{value:e,modifiers:t}){const d=n[o];typeof e=="function"?d.handler?d.handler!==e&&(a("clickoutside",n,d.handler,{capture:t.capture}),d.handler=e,c("clickoutside",n,e,{capture:t.capture})):(n[o].handler=e,c("clickoutside",n,e,{capture:t.capture})):d.handler&&(a("clickoutside",n,d.handler,{capture:t.capture}),d.handler=void 0)},unmounted(n,{modifiers:e}){const{handler:t}=n[o];t&&a("clickoutside",n,t,{capture:e.capture}),n[o].handler=void 0}};class x{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:d}=this;if(t!==void 0){e.style.zIndex=`${t}`,d.delete(e);return}const{nextZIndex:s}=this;d.has(e)&&d.get(e)+1===this.nextZIndex||(e.style.zIndex=`${s}`,d.set(e,s),this.nextZIndex=s+1,this.squashState())}unregister(e,t){const{elementZIndex:d}=this;d.has(e)?d.delete(e):t===void 0&&void 0,this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((t,d)=>t[1]-d[1]),this.nextZIndex=2e3,e.forEach(t=>{const d=t[0],s=this.nextZIndex++;`${s}`!==d.style.zIndex&&(d.style.zIndex=`${s}`)})}}const u=new x,r="@@ziContext",I={mounted(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t;n[r]={enabled:!!s,initialized:!1},s&&(u.ensureZIndex(n,d),n[r].initialized=!0)},updated(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t,h=n[r].enabled;s&&!h&&(u.ensureZIndex(n,d),n[r].initialized=!0),n[r].enabled=!!s},unmounted(n,e){if(!n[r].initialized)return;const{value:t={}}=e,{zIndex:d}=t;u.unregister(n,d)}};export{l as c,m,I as z}; diff --git a/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js.gz b/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js.gz new file mode 100644 index 00000000..ca73c440 Binary files /dev/null and b/js/vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js.gz differ diff --git a/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js b/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js deleted file mode 100644 index 494fc421..00000000 --- a/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js +++ /dev/null @@ -1 +0,0 @@ -import{k as c,n as d,h as j}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{w as x,f as p,g as q,l as S,x as b,v as T}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{o as m,a as v}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const t=c(!!e.value);if(t.value)return d(t);const n=x(e,o=>{o&&(t.value=!0,n())});return d(t)}function Q(e){const t=p(e),n=c(t.value);return x(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function B(){return q()!==null}const C=typeof window<"u";let k,y;const D=()=>{var e,t;k=C?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,y=!1,k!==void 0?k.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let t=!1;S(()=>{y||k==null||k.then(()=>{t||e()})}),b(()=>{t=!0})}const h=c(null);function I(e){if(e.clientX>0||e.clientY>0)h.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:u,height:a}=t.getBoundingClientRect();n>0||o>0?h.value={x:n+u/2,y:o+a/2}:h.value={x:0,y:0}}else h.value=null}}let g=0,_=!0;function A(){if(!C)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&v("click",document,I,!0)})):e(),d(h)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!C)return d(c(!1));const t=c(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function u(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}M===0&&m("click",window,H,!0);const a=()=>{M+=1,m("click",window,u,!0)};return L&&(L=B())?(T(a),b(()=>{M-=1,M===0&&v("click",window,H,!0),v("click",window,u,!0),o()})):a(),d(t)}function J(e,t){return x(e,n=>{n!==void 0&&(t.value=n)}),p(()=>e.value===void 0?t.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,t){return p(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const w={};function N(e=$){if(!C)return p(()=>[]);if(typeof window.matchMedia!="function")return p(()=>[]);const t=c({}),n=Object.keys(e),o=(u,a)=>{u.matches?t.value[a]=!0:t.value[a]=!1};return n.forEach(u=>{const a=e[u];let s,r;w[a]===void 0?(s=window.matchMedia(U(a)),s.addEventListener?s.addEventListener("change",i=>{r.forEach(f=>{f(i,u)})}):s.addListener&&s.addListener(i=>{r.forEach(f=>{f(i,u)})}),r=new Set,w[a]={mql:s,cbs:r}):(s=w[a].mql,r=w[a].cbs),r.add(o),s.matches&&r.forEach(i=>{i(s,u)})}),b(()=>{n.forEach(u=>{const{cbs:a}=w[e[u]];a.has(o)&&a.delete(o)})}),p(()=>{const{value:u}=t;return n.filter(a=>u[a])})}function ee(e={},t){const n=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:u}=e,a=i=>{switch(i.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(f=>{if(f!==i.key)return;const l=o[f];if(typeof l=="function")l(i);else{const{stop:E=!1,prevent:P=!1}=l;E&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},s=i=>{switch(i.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}u!==void 0&&Object.keys(u).forEach(f=>{if(f!==i.key)return;const l=u[f];if(typeof l=="function")l(i);else{const{stop:E=!1,prevent:P=!1}=l;E&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},r=()=>{(t===void 0||t.value)&&(m("keydown",document,a),m("keyup",document,s)),t!==void 0&&x(t,i=>{i?(m("keydown",document,a),m("keyup",document,s)):(v("keydown",document,a),v("keyup",document,s))})};return B()?(T(r),b(()=>{(t===void 0||t.value)&&(v("keydown",document,a),v("keyup",document,s))})):r(),d(n)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; diff --git a/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js.gz b/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js.gz deleted file mode 100644 index 7abe73f3..00000000 Binary files a/js/vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js.gz and /dev/null differ diff --git a/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js b/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js new file mode 100644 index 00000000..9fc2f4cf --- /dev/null +++ b/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js @@ -0,0 +1 @@ +import{k as c,n as d,h as j}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{w as x,f as p,g as q,l as S,x as b,v as T}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{o as m,a as v}from"./evtd@0.2.4-w6UMCrcr.js";function K(e){const t=c(!!e.value);if(t.value)return d(t);const n=x(e,o=>{o&&(t.value=!0,n())});return d(t)}function Q(e){const t=p(e),n=c(t.value);return x(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function B(){return q()!==null}const C=typeof window<"u";let k,y;const D=()=>{var e,t;k=C?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,y=!1,k!==void 0?k.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let t=!1;S(()=>{y||k?.then(()=>{t||e()})}),b(()=>{t=!0})}const h=c(null);function I(e){if(e.clientX>0||e.clientY>0)h.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:u,height:a}=t.getBoundingClientRect();n>0||o>0?h.value={x:n+u/2,y:o+a/2}:h.value={x:0,y:0}}else h.value=null}}let g=0,_=!0;function A(){if(!C)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&v("click",document,I,!0)})):e(),d(h)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!C)return d(c(!1));const t=c(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function u(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}M===0&&m("click",window,H,!0);const a=()=>{M+=1,m("click",window,u,!0)};return L&&(L=B())?(T(a),b(()=>{M-=1,M===0&&v("click",window,H,!0),v("click",window,u,!0),o()})):a(),d(t)}function J(e,t){return x(e,n=>{n!==void 0&&(t.value=n)}),p(()=>e.value===void 0?t.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,t){return p(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const w={};function N(e=$){if(!C)return p(()=>[]);if(typeof window.matchMedia!="function")return p(()=>[]);const t=c({}),n=Object.keys(e),o=(u,a)=>{u.matches?t.value[a]=!0:t.value[a]=!1};return n.forEach(u=>{const a=e[u];let s,r;w[a]===void 0?(s=window.matchMedia(U(a)),s.addEventListener?s.addEventListener("change",i=>{r.forEach(f=>{f(i,u)})}):s.addListener&&s.addListener(i=>{r.forEach(f=>{f(i,u)})}),r=new Set,w[a]={mql:s,cbs:r}):(s=w[a].mql,r=w[a].cbs),r.add(o),s.matches&&r.forEach(i=>{i(s,u)})}),b(()=>{n.forEach(u=>{const{cbs:a}=w[e[u]];a.has(o)&&a.delete(o)})}),p(()=>{const{value:u}=t;return n.filter(a=>u[a])})}function ee(e={},t){const n=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:u}=e,a=i=>{switch(i.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(f=>{if(f!==i.key)return;const l=o[f];if(typeof l=="function")l(i);else{const{stop:E=!1,prevent:P=!1}=l;E&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},s=i=>{switch(i.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}u!==void 0&&Object.keys(u).forEach(f=>{if(f!==i.key)return;const l=u[f];if(typeof l=="function")l(i);else{const{stop:E=!1,prevent:P=!1}=l;E&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},r=()=>{(t===void 0||t.value)&&(m("keydown",document,a),m("keyup",document,s)),t!==void 0&&x(t,i=>{i?(m("keydown",document,a),m("keyup",document,s)):(v("keydown",document,a),v("keyup",document,s))})};return B()?(T(r),b(()=>{(t===void 0||t.value)&&(v("keydown",document,a),v("keyup",document,s))})):r(),d(n)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; diff --git a/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js.gz b/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js.gz new file mode 100644 index 00000000..afff2fd0 Binary files /dev/null and b/js/vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js.gz differ diff --git a/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js b/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js deleted file mode 100644 index b1a18d34..00000000 --- a/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js +++ /dev/null @@ -1 +0,0 @@ -import{k as b,u as v,x as $,h as ee,a as z,y as te,n as ne}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{j as R,w as U,f as C,R as Y,i as se}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{o as ie,q as re,c as V}from"./lodash-es@4.17.21-UVJw7vmf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as _}from"./screenfull@5.2.0-CSmfy_M5.js";const J=(t,{manual:e,ready:n=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const o=b(!1);return R(()=>{!e&&t.options.refreshDeps!==!0&&(o.value=v(n))}),s instanceof Array?U([o,...s],([r])=>{r&&!e&&r&&(i?i():t.refresh())},{deep:!0,immediate:!1}):U(o,r=>{!e&&r&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!v(n))return{stopNow:!0}}}};J.onInit=({ready:t=!0,manual:e})=>({loading:!e&&v(t)});const A=new Map,oe=(t,e,n)=>{const s=A.get(t);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{A.delete(t)},e)),A.set(t,{...n,timer:i})},le=t=>A.get(t),F=new Map,ae=t=>F.get(t),ue=(t,e)=>{F.set(t,e),e.then(n=>(F.delete(t),n)).catch(n=>{throw F.delete(t),n})},E={},ce=[],fe=(t,e)=>{E[t]&&(E[t].forEach(n=>n(e)),ce.forEach(n=>n({type:t,data:e})))},x=(t,e)=>(E[t]||(E[t]=[]),E[t].push(e),function(){const s=E[t].indexOf(e);E[t].splice(s,1)}),de=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:s=0,setCache:i,getCache:o})=>{const r=b(),u=b(),d=(a,f)=>{i?i(f):oe(a,n,f),fe(a,f.data)},c=(a,f=[])=>o?o(f):le(a);return R(()=>{if(!e)return;const a=c(e);a&&Object.hasOwnProperty.call(a,"data")&&(t.state.data=a.data,t.state.params=a.params,(s===-1||new Date().getTime()-a.time<=s)&&(t.state.loading=!1)),r.value=x(e,f=>{t.setState({data:f})})}),$(()=>{var a;(a=r.value)==null||a.call(r)}),e?{name:"cachePlugin",onBefore:a=>{const f=c(e,a);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(a,f)=>{let h=ae(e);return h&&h!==u.value?{servicePromise:h}:(h=a(...f),u.value=h,ue(e,h),{servicePromise:h})},onSuccess:(a,f)=>{var h;e&&((h=r.value)==null||h.call(r),d(e,{data:a,params:f,time:new Date().getTime()}),r.value=x(e,l=>{t.setState({data:l})}))},onMutate:a=>{var f;e&&((f=r.value)==null||f.call(r),d(e,{data:a,params:t.state.params,time:new Date().getTime()}),r.value=x(e,h=>{t.setState({data:h})}))}}:{}},he=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:s,debounceMaxWait:i})=>{const o=b(),r=C(()=>{const u={},d=v(n),c=v(s),a=v(i);return d!==void 0&&(u.leading=d),c!==void 0&&(u.trailing=c),a!==void 0&&(u.maxWait=a),u});return R(u=>{if(v(e)){const d=t.runAsync.bind(t);o.value=ie(c=>{c()},v(e),r.value),t.runAsync=(...c)=>new Promise((a,f)=>{var h;(h=o.value)==null||h.call(o,()=>{d(...c).then(a).catch(f)})}),u(()=>{var c;(c=o.value)==null||c.cancel(),t.runAsync=d})}}),v(e)?{name:"debouncePlugin",onCancel:()=>{var u;(u=o.value)==null||u.cancel()}}:{}};var ve=Object.defineProperty,me=(t,e,n)=>e in t?ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e,n)=>(me(t,typeof e!="symbol"?e+"":e,n),n);class pe{constructor(){j(this,"table",{}),j(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new pe;var be=Object.defineProperty,ge=(t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e,n)=>(ge(t,typeof e!="symbol"?e+"":e,n),n);class _e{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new _e;const we=(t,{loadingDelay:e})=>{const n=b(),s=()=>{n.value&&(clearTimeout(v(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=v(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{s()}}};function L(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Pe=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(){return L()?document.visibilityState!=="hidden":!0}const S=[];function Ee(t){return S.push(t),function(){const n=S.indexOf(t);S.splice(n,1)}}if(L()){const t=()=>{if(H())for(let e=0;e{let i;const o=b(),r=b(0),u=()=>{var d;i&&clearTimeout(i),(d=o.value)==null||d.call(o)};return R(()=>{v(e)||u()}),v(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!n&&!H()?o.value=Ee(()=>{t.refresh()}):t.refresh()},v(e)):r.value=0},onCancel:()=>{u()}}:{}};function Oe(t,e){let n=!1;return(...s)=>{n||(n=!0,t(...s),setTimeout(()=>{n=!1},e))}}function Se(){return L()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function De(t){return D.push(t),function(){const n=D.indexOf(t);n>-1&&D.splice(n,1)}}if(Pe){const t=()=>{if(!(!H()||!Se()))for(let e=0;e{const s=b(),i=()=>{var o;(o=s.value)==null||o.call(s)};return R(o=>{if(v(e)){const r=Oe(t.refresh.bind(t),v(n));s.value=De(()=>{r()})}o(()=>{i()})}),$(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Ae=(t,{retryInterval:e,retryCount:n})=>{const s=b(),i=b(0),o=b(!1);return n?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{o.value=!0,t.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},Fe=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:s})=>{let i=null;const o=C(()=>{const c={};return v(n)!==void 0&&(c.leading=v(n)),v(s)!==void 0&&(c.trailing=v(s)),c}),r=t.runAsync.bind(t),u=b(),d=C(()=>v(e));return U([d,o],c=>{i&&(i.cancel(),t.runAsync=r);const[a,f]=c,h=re(l=>{l()},v(a),f);i=h,u.value=h,t.runAsync=(...l)=>new Promise((w,m)=>{var g;(g=u.value)==null||g.call(u,()=>{r(...l).then(w).catch(m)})})},{immediate:!0}),v(e)?(Y(()=>{var c;(c=u.value)==null||c.cancel()}),{name:"throttlePlugin",onCancel:()=>{var c;(c=u.value)==null||c.cancel()}}):{}},W=t=>typeof t=="function",qe=t=>typeof t=="boolean";var Ce=Object.defineProperty,ye=(t,e,n)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e,n)=>(ye(t,typeof e!="symbol"?e+"":e,n),n);class xe{constructor(e,n,s,i={}){T(this,"pluginImpls"),T(this,"count",0),T(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),T(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var s,i,o;const r=(o=(i=(s=this.pluginImpls)==null?void 0:s.map(u=>{var d;return(d=u[e])==null?void 0:d.call(u,...n)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var n,s,i,o,r,u,d,c,a,f,h;this.count+=1;const l=this.count,{stopNow:w=!1,returnNow:m=!1,...g}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...g}),m)return Promise.resolve(g.data);try{(s=(n=this.options).onBefore)==null||s.call(n,e)}catch(p){return this.setState({error:p,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,p,e),this.runPluginHandler("onError",p,e),new Promise(()=>{})}try{let{servicePromise:p}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const Z=y=>{var N,M,G,I;if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});const P=this.options.formatResult?this.options.formatResult(y):y,k={data:y};return this.setState({data:P,error:void 0,loading:!1}),(M=(N=this.options).onSuccess)==null||M.call(N,P,e),this.runPluginHandler("onSuccess",P,e,k),this.previousValidData=P,(I=(G=this.options).onFinally)==null||I.call(G,e,P,void 0),(this.options.concurrent||l===this.count)&&this.runPluginHandler("onFinally",e,P,void 0),P};p||(p=this.serviceRef.value(...e));const K=await p;return Z(K)}catch(p){if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});throw this.setState({error:p,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,p,e),this.runPluginHandler("onError",p,e),(W((d=this.options)==null?void 0:d.rollbackOnError)&&((c=this.options)!=null&&c.rollbackOnError(e))||qe((a=this.options)==null?void 0:a.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(f=this.options).onFinally)==null||h.call(f,e,void 0,p),(this.options.concurrent||l===this.count)&&this.runPluginHandler("onFinally",e,void 0,p),p}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=W(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const Be=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function Ue(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function $e(t,e={},n=[]){const s=se(Be,{}),{initialData:i=void 0,manual:o=!1,ready:r=!0,...u}={...s??{},...e??{}},d={manual:o,ready:r,initialData:i,...u},c=b(t),a=ee({data:i,loading:!1,params:void 0,error:void 0}),f=(m,g)=>{g?a[g]=m:Ue(m)&&(a.data=m.data,a.loading=m.loading,a.error=m.error,a.params=m.params)},h=n.map(m=>{var g;return(g=m==null?void 0:m.onInit)==null?void 0:g.call(m,d)}).filter(Boolean),l=new xe(c,d,f,Object.assign({},...h,a));l.options=d,l.pluginImpls=n.map(m=>m(l,d));const w=C(()=>z(r)?r.value:r);if(R(()=>{if(!o){const m=l.state.params||e.defaultParams||[];w.value&&l.options.refreshDeps===!0&&c.value&&l.run(...m)}}),!o&&l.options.refreshDeps!==!0){const m=l.state.params||e.defaultParams||[];v(r)&&l.run(...m)}return $(()=>{l.cancel()}),{...te(a),cancel:l.cancel.bind(l),refresh:l.refresh.bind(l),refreshAsync:l.refreshAsync.bind(l),run:l.run.bind(l),runAsync:l.runAsync.bind(l),mutate:l.mutate.bind(l)}}const Le=(t,e)=>function(s,i={},o=[]){let r=t;const u=e||[];for(let d=u.length;d--;)r=u[d](r);return r(s,i,o)};function We(t,e,n){var s;const i=(s=[null,he,we,Re,Te,Fe,J,de,Ae])==null?void 0:s.filter(Boolean);return Le($e,e==null?void 0:e.use)(t,e,[...i])}const He=!!(typeof window<"u"&&window.document&&window.document.createElement);function B(t,e){var n,s;if(!He)return;if(!t)return e;let i;return typeof t=="function"?i=t():z(t)?i=(s=(n=t.value)==null?void 0:n.$el)!=null?s:t.value:i=t,i}var Ne=Object.defineProperty,Me=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q=(t,e,n)=>(Me(t,typeof e!="symbol"?e+"":e,n),n);const O=class{constructor(t){q(this,"subscriptions",new Map),q(this,"emitEffectCache",new Map),q(this,"isGlobal"),this.isGlobal=!!(t!=null&&t.global),this.clear()}static getInstance(){return O.instance||(O.instance=new O({global:!0})),O.instance}subscribe(t,e){this.subscriptions.has(t)||this.subscriptions.set(t,new Set);const n=this.subscriptions.get(t);return n.add(e),this.isGlobal||this.emitEffect(t),()=>{n.delete(e),n.size===0&&this.subscriptions.delete(t)}}emit(t,...e){if(typeof t=="string"||typeof t=="number"){const n=this.subscriptions.get(t);n==null||n.forEach(s=>{s==null||s({params:V(e.length===1?e[0]:e),event:t})}),this.isGlobal||this.emitEffectCache.set(t,{params:V(e.length===1?e[0]:e),event:t})}else throw new TypeError("event must be string or number!")}emitEffect(t){if(this.isGlobal)return;const e=this.emitEffectCache.get(t),n=this.subscriptions.get(t);e&&(n==null||n.forEach(s=>{s==null||s({...e})}))}removeListener(t,e){if(!e)this.subscriptions.delete(t);else{const n=this.subscriptions.get(t);n==null||n.delete(e),n&&n.size===0&&this.subscriptions.delete(t)}}clear(){this.subscriptions.clear(),this.emitEffectCache.clear()}};let X=O;q(X,"instance",null);X.getInstance();const ze=(t,e)=>{const{onExit:n,onEnter:s,defaultElement:i=document.documentElement}={},o=b(n),r=b(s),u=b(!1),d=l=>{u.value=l},c=()=>{var l,w,m;if(_.isEnabled){const g=B(t,i);if(!_.element)(l=o.value)==null||l.call(o),d(!1),_.off("change",c);else{const p=_.element===g;p?(w=r.value)==null||w.call(r):(m=o.value)==null||m.call(o),d(p)}}},a=()=>{const l=B(t,i);if(l&&_.isEnabled)try{_.request(l),_.on("change",c)}catch(w){console.error(w)}},f=()=>{const l=B(t,i);_.isEnabled&&_.element===l&&_.exit()},h=()=>{u.value?f():a()};return Y(()=>{_.isEnabled&&_.off("change",c)}),[ne(u),{enterFullscreen:a,exitFullscreen:f,toggleFullscreen:h,isEnabled:_.isEnabled}]};export{We as a,ze as u}; diff --git a/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js.gz b/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js.gz deleted file mode 100644 index 04f705a5..00000000 Binary files a/js/vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js.gz and /dev/null differ diff --git a/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js b/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js new file mode 100644 index 00000000..3f67ce90 --- /dev/null +++ b/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js @@ -0,0 +1 @@ +import{k as b,u as v,x as $,h as ee,a as z,y as te,n as ne}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{j as R,w as U,f as C,R as Y,i as se}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{o as ie,q as re,c as V}from"./lodash-es@4.17.21-CFdI1ypR.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import{s as _}from"./screenfull@5.2.0-wmrknyQD.js";const J=(t,{manual:e,ready:n=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const o=b(!1);return R(()=>{!e&&t.options.refreshDeps!==!0&&(o.value=v(n))}),s instanceof Array?U([o,...s],([r])=>{r&&!e&&r&&(i?i():t.refresh())},{deep:!0,immediate:!1}):U(o,r=>{!e&&r&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!v(n))return{stopNow:!0}}}};J.onInit=({ready:t=!0,manual:e})=>({loading:!e&&v(t)});const A=new Map,oe=(t,e,n)=>{const s=A.get(t);s?.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{A.delete(t)},e)),A.set(t,{...n,timer:i})},le=t=>A.get(t),F=new Map,ae=t=>F.get(t),ue=(t,e)=>{F.set(t,e),e.then(n=>(F.delete(t),n)).catch(n=>{throw F.delete(t),n})},E={},ce=[],fe=(t,e)=>{E[t]&&(E[t].forEach(n=>n(e)),ce.forEach(n=>n({type:t,data:e})))},x=(t,e)=>(E[t]||(E[t]=[]),E[t].push(e),function(){const s=E[t].indexOf(e);E[t].splice(s,1)}),de=(t,{cacheKey:e,cacheTime:n=300*1e3,staleTime:s=0,setCache:i,getCache:o})=>{const r=b(),u=b(),d=(a,f)=>{i?i(f):oe(a,n,f),fe(a,f.data)},c=(a,f=[])=>o?o(f):le(a);return R(()=>{if(!e)return;const a=c(e);a&&Object.hasOwnProperty.call(a,"data")&&(t.state.data=a.data,t.state.params=a.params,(s===-1||new Date().getTime()-a.time<=s)&&(t.state.loading=!1)),r.value=x(e,f=>{t.setState({data:f})})}),$(()=>{var a;(a=r.value)==null||a.call(r)}),e?{name:"cachePlugin",onBefore:a=>{const f=c(e,a);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f?.data,returnNow:!0}:{data:f?.data}},onRequest:(a,f)=>{let h=ae(e);return h&&h!==u.value?{servicePromise:h}:(h=a(...f),u.value=h,ue(e,h),{servicePromise:h})},onSuccess:(a,f)=>{var h;e&&((h=r.value)==null||h.call(r),d(e,{data:a,params:f,time:new Date().getTime()}),r.value=x(e,l=>{t.setState({data:l})}))},onMutate:a=>{var f;e&&((f=r.value)==null||f.call(r),d(e,{data:a,params:t.state.params,time:new Date().getTime()}),r.value=x(e,h=>{t.setState({data:h})}))}}:{}},he=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:s,debounceMaxWait:i})=>{const o=b(),r=C(()=>{const u={},d=v(n),c=v(s),a=v(i);return d!==void 0&&(u.leading=d),c!==void 0&&(u.trailing=c),a!==void 0&&(u.maxWait=a),u});return R(u=>{if(v(e)){const d=t.runAsync.bind(t);o.value=ie(c=>{c()},v(e),r.value),t.runAsync=(...c)=>new Promise((a,f)=>{var h;(h=o.value)==null||h.call(o,()=>{d(...c).then(a).catch(f)})}),u(()=>{var c;(c=o.value)==null||c.cancel(),t.runAsync=d})}}),v(e)?{name:"debouncePlugin",onCancel:()=>{var u;(u=o.value)==null||u.cancel()}}:{}};var ve=Object.defineProperty,me=(t,e,n)=>e in t?ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e,n)=>(me(t,typeof e!="symbol"?e+"":e,n),n);class pe{constructor(){j(this,"table",{}),j(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new pe;var be=Object.defineProperty,ge=(t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e,n)=>(ge(t,typeof e!="symbol"?e+"":e,n),n);class _e{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new _e;const we=(t,{loadingDelay:e})=>{const n=b(),s=()=>{n.value&&(clearTimeout(v(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=v(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{s()}}};function L(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Pe=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(){return L()?document.visibilityState!=="hidden":!0}const S=[];function Ee(t){return S.push(t),function(){const n=S.indexOf(t);S.splice(n,1)}}if(L()){const t=()=>{if(H())for(let e=0;e{let i;const o=b(),r=b(0),u=()=>{var d;i&&clearTimeout(i),(d=o.value)==null||d.call(o)};return R(()=>{v(e)||u()}),v(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!n&&!H()?o.value=Ee(()=>{t.refresh()}):t.refresh()},v(e)):r.value=0},onCancel:()=>{u()}}:{}};function Oe(t,e){let n=!1;return(...s)=>{n||(n=!0,t(...s),setTimeout(()=>{n=!1},e))}}function Se(){return L()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function De(t){return D.push(t),function(){const n=D.indexOf(t);n>-1&&D.splice(n,1)}}if(Pe){const t=()=>{if(!(!H()||!Se()))for(let e=0;e{const s=b(),i=()=>{var o;(o=s.value)==null||o.call(s)};return R(o=>{if(v(e)){const r=Oe(t.refresh.bind(t),v(n));s.value=De(()=>{r()})}o(()=>{i()})}),$(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Ae=(t,{retryInterval:e,retryCount:n})=>{const s=b(),i=b(0),o=b(!1);return n?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{o.value=!0,t.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},Fe=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:s})=>{let i=null;const o=C(()=>{const c={};return v(n)!==void 0&&(c.leading=v(n)),v(s)!==void 0&&(c.trailing=v(s)),c}),r=t.runAsync.bind(t),u=b(),d=C(()=>v(e));return U([d,o],c=>{i&&(i.cancel(),t.runAsync=r);const[a,f]=c,h=re(l=>{l()},v(a),f);i=h,u.value=h,t.runAsync=(...l)=>new Promise((w,m)=>{var g;(g=u.value)==null||g.call(u,()=>{r(...l).then(w).catch(m)})})},{immediate:!0}),v(e)?(Y(()=>{var c;(c=u.value)==null||c.cancel()}),{name:"throttlePlugin",onCancel:()=>{var c;(c=u.value)==null||c.cancel()}}):{}},W=t=>typeof t=="function",qe=t=>typeof t=="boolean";var Ce=Object.defineProperty,ye=(t,e,n)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e,n)=>(ye(t,typeof e!="symbol"?e+"":e,n),n);class xe{constructor(e,n,s,i={}){T(this,"pluginImpls"),T(this,"count",0),T(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),T(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var s,i,o;const r=(o=(i=(s=this.pluginImpls)==null?void 0:s.map(u=>{var d;return(d=u[e])==null?void 0:d.call(u,...n)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var n,s,i,o,r,u,d,c,a,f,h;this.count+=1;const l=this.count,{stopNow:w=!1,returnNow:m=!1,...g}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...g}),m)return Promise.resolve(g.data);try{(s=(n=this.options).onBefore)==null||s.call(n,e)}catch(p){return this.setState({error:p,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,p,e),this.runPluginHandler("onError",p,e),new Promise(()=>{})}try{let{servicePromise:p}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const Z=y=>{var N,M,G,I;if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});const P=this.options.formatResult?this.options.formatResult(y):y,k={data:y};return this.setState({data:P,error:void 0,loading:!1}),(M=(N=this.options).onSuccess)==null||M.call(N,P,e),this.runPluginHandler("onSuccess",P,e,k),this.previousValidData=P,(I=(G=this.options).onFinally)==null||I.call(G,e,P,void 0),(this.options.concurrent||l===this.count)&&this.runPluginHandler("onFinally",e,P,void 0),P};p||(p=this.serviceRef.value(...e));const K=await p;return Z(K)}catch(p){if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});throw this.setState({error:p,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,p,e),this.runPluginHandler("onError",p,e),(W((d=this.options)==null?void 0:d.rollbackOnError)&&((c=this.options)!=null&&c.rollbackOnError(e))||qe((a=this.options)==null?void 0:a.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(f=this.options).onFinally)==null||h.call(f,e,void 0,p),(this.options.concurrent||l===this.count)&&this.runPluginHandler("onFinally",e,void 0,p),p}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=W(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const Be=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function Ue(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function $e(t,e={},n=[]){const s=se(Be,{}),{initialData:i=void 0,manual:o=!1,ready:r=!0,...u}={...s??{},...e??{}},d={manual:o,ready:r,initialData:i,...u},c=b(t),a=ee({data:i,loading:!1,params:void 0,error:void 0}),f=(m,g)=>{g?a[g]=m:Ue(m)&&(a.data=m.data,a.loading=m.loading,a.error=m.error,a.params=m.params)},h=n.map(m=>{var g;return(g=m?.onInit)==null?void 0:g.call(m,d)}).filter(Boolean),l=new xe(c,d,f,Object.assign({},...h,a));l.options=d,l.pluginImpls=n.map(m=>m(l,d));const w=C(()=>z(r)?r.value:r);if(R(()=>{if(!o){const m=l.state.params||e.defaultParams||[];w.value&&l.options.refreshDeps===!0&&c.value&&l.run(...m)}}),!o&&l.options.refreshDeps!==!0){const m=l.state.params||e.defaultParams||[];v(r)&&l.run(...m)}return $(()=>{l.cancel()}),{...te(a),cancel:l.cancel.bind(l),refresh:l.refresh.bind(l),refreshAsync:l.refreshAsync.bind(l),run:l.run.bind(l),runAsync:l.runAsync.bind(l),mutate:l.mutate.bind(l)}}const Le=(t,e)=>function(s,i={},o=[]){let r=t;const u=e||[];for(let d=u.length;d--;)r=u[d](r);return r(s,i,o)};function We(t,e,n){var s;const i=(s=[null,he,we,Re,Te,Fe,J,de,Ae])==null?void 0:s.filter(Boolean);return Le($e,e?.use)(t,e,[...i])}const He=!!(typeof window<"u"&&window.document&&window.document.createElement);function B(t,e){var n,s;if(!He)return;if(!t)return e;let i;return typeof t=="function"?i=t():z(t)?i=(s=(n=t.value)==null?void 0:n.$el)!=null?s:t.value:i=t,i}var Ne=Object.defineProperty,Me=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q=(t,e,n)=>(Me(t,typeof e!="symbol"?e+"":e,n),n);const O=class{constructor(t){q(this,"subscriptions",new Map),q(this,"emitEffectCache",new Map),q(this,"isGlobal"),this.isGlobal=!!t?.global,this.clear()}static getInstance(){return O.instance||(O.instance=new O({global:!0})),O.instance}subscribe(t,e){this.subscriptions.has(t)||this.subscriptions.set(t,new Set);const n=this.subscriptions.get(t);return n.add(e),this.isGlobal||this.emitEffect(t),()=>{n.delete(e),n.size===0&&this.subscriptions.delete(t)}}emit(t,...e){if(typeof t=="string"||typeof t=="number"){const n=this.subscriptions.get(t);n?.forEach(s=>{s?.({params:V(e.length===1?e[0]:e),event:t})}),this.isGlobal||this.emitEffectCache.set(t,{params:V(e.length===1?e[0]:e),event:t})}else throw new TypeError("event must be string or number!")}emitEffect(t){if(this.isGlobal)return;const e=this.emitEffectCache.get(t),n=this.subscriptions.get(t);e&&n?.forEach(s=>{s?.({...e})})}removeListener(t,e){if(!e)this.subscriptions.delete(t);else{const n=this.subscriptions.get(t);n?.delete(e),n&&n.size===0&&this.subscriptions.delete(t)}}clear(){this.subscriptions.clear(),this.emitEffectCache.clear()}};let X=O;q(X,"instance",null);X.getInstance();const ze=(t,e)=>{const{onExit:n,onEnter:s,defaultElement:i=document.documentElement}={},o=b(n),r=b(s),u=b(!1),d=l=>{u.value=l},c=()=>{var l,w,m;if(_.isEnabled){const g=B(t,i);if(!_.element)(l=o.value)==null||l.call(o),d(!1),_.off("change",c);else{const p=_.element===g;p?(w=r.value)==null||w.call(r):(m=o.value)==null||m.call(o),d(p)}}},a=()=>{const l=B(t,i);if(l&&_.isEnabled)try{_.request(l),_.on("change",c)}catch{}},f=()=>{const l=B(t,i);_.isEnabled&&_.element===l&&_.exit()},h=()=>{u.value?f():a()};return Y(()=>{_.isEnabled&&_.off("change",c)}),[ne(u),{enterFullscreen:a,exitFullscreen:f,toggleFullscreen:h,isEnabled:_.isEnabled}]};export{We as a,ze as u}; diff --git a/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js.gz b/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js.gz new file mode 100644 index 00000000..1a69525c Binary files /dev/null and b/js/vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js.gz differ diff --git a/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js b/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js new file mode 100644 index 00000000..a83f5be6 --- /dev/null +++ b/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js @@ -0,0 +1 @@ +import{D as Et,u as V,c as pt,a as ue,b as ie,i as $,A as vt,s as Rt,g as Ot,N as It,f as De,d as me,C as Tt,p as fe,t as _e,M as ge,e as be,h as de,j as Ee,n as pe,k as Lt,l as Ft,m as Nt,r as kt,o as yt,q as St,v as ht,w as Dt,x as Pt}from"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import{f as y,s as D,c as F,a as d,b as h,g as ve,i as Y,u as B,d as O,v as G,j as X,h as T,e as N,l as U,m as Ct,k as Pe}from"./@intlify_shared@11.1.3-Byx4ULsF.js";import{c as Mt}from"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import{f as x,w as q,m as te,h as Ce,F as Me,g as ae,i as At,l as Vt,R as xt,d as Ut,Q as wt}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{z as Wt,k as jt,s as Ht,a as Yt}from"./@vue_reactivity@3.5.25-CWykDyL9.js";const $t="11.1.3";function Gt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Pe().__INTLIFY_PROD_DEVTOOLS__=!1)}const I={UNEXPECTED_RETURN_TYPE:Tt,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function L(e,...a){return Mt(e,null,void 0)}const Q=D("__translateVNode"),z=D("__datetimeParts"),Z=D("__numberParts"),Bt=D("__setPluralRules"),Xt=D("__injectWithOption"),ee=D("__dispose");function w(e){if(!T(e)||$(e))return e;for(const a in e)if(X(e,a))if(!a.includes("."))T(e[a])&&w(e[a]);else{const s=a.split("."),l=s.length-1;let c=e,u=!1;for(let r=0;r{if("locale"in o&&"resource"in o){const{locale:i,resource:m}=o;i?(r[i]=r[i]||O(),G(m,r[i])):G(m,r)}else d(o)&&G(JSON.parse(o),r)}),c==null&&u)for(const o in r)X(r,o)&&w(r[o]);return r}function Ve(e){return e.type}function Kt(e,a,s){let l=T(a.messages)?a.messages:O();"__i18nGlobal"in s&&(l=Ae(e.locale.value,{messages:l,__i18n:s.__i18nGlobal}));const c=Object.keys(l);c.length&&c.forEach(u=>{e.mergeLocaleMessage(u,l[u])});{if(T(a.datetimeFormats)){const u=Object.keys(a.datetimeFormats);u.length&&u.forEach(r=>{e.mergeDateTimeFormat(r,a.datetimeFormats[r])})}if(T(a.numberFormats)){const u=Object.keys(a.numberFormats);u.length&&u.forEach(r=>{e.mergeNumberFormat(r,a.numberFormats[r])})}}}function Re(e){return Ut(wt,null,e,0)}const Oe="__INTLIFY_META__",Ie=()=>[],Jt=()=>!1;let Te=0;function Le(e){return((a,s,l,c)=>e(s,l,ae()||void 0,c))}const qt=()=>{const e=ae();let a=null;return e&&(a=Ve(e)[Oe])?{[Oe]:a}:null};function xe(e={}){const{__root:a,__injectWithOption:s}=e,l=a===void 0,c=e.flatJson,u=B?jt:Ht;let r=y(e.inheritLocale)?e.inheritLocale:!0;const o=u(a&&r?a.locale.value:d(e.locale)?e.locale:Et),i=u(a&&r?a.fallbackLocale.value:d(e.fallbackLocale)||h(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),m=u(Ae(o.value,e)),_=u(F(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),E=u(F(e.numberFormats)?e.numberFormats:{[o.value]:{}});let v=a?a.missingWarn:y(e.missingWarn)||ve(e.missingWarn)?e.missingWarn:!0,R=a?a.fallbackWarn:y(e.fallbackWarn)||ve(e.fallbackWarn)?e.fallbackWarn:!0,k=a?a.fallbackRoot:y(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,le=Y(e.missing)?e.missing:null,W=Y(e.missing)?Le(e.missing):null,A=Y(e.postTranslation)?e.postTranslation:null,K=a?a.warnHtmlMessage:y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,J=!!e.escapeParameter;const se=a?a.modifiers:F(e.modifiers)?e.modifiers:{};let j=e.pluralRules||a&&a.pluralRules,f;f=(()=>{l&&me(null);const t={version:$t,locale:o.value,fallbackLocale:i.value,messages:m.value,modifiers:se,pluralRules:j,missing:W===null?void 0:W,missingWarn:v,fallbackWarn:R,fallbackFormat:S,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:K,escapeParameter:J,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=_.value,t.numberFormats=E.value,t.__datetimeFormatters=F(f)?f.__datetimeFormatters:void 0,t.__numberFormatters=F(f)?f.__numberFormatters:void 0;const n=pt(t);return l&&me(n),n})(),V(f,o.value,i.value);function We(){return[o.value,i.value,m.value,_.value,E.value]}const je=x({get:()=>o.value,set:t=>{f.locale=t,o.value=t}}),He=x({get:()=>i.value,set:t=>{f.fallbackLocale=t,i.value=t,V(f,o.value,t)}}),Ye=x(()=>m.value),$e=x(()=>_.value),Ge=x(()=>E.value);function Be(){return Y(A)?A:null}function Xe(t){A=t,f.postTranslation=t}function Ke(){return le}function Je(t){t!==null&&(W=Le(t)),le=t,f.missing=W}const P=(t,n,g,b,C,H)=>{We();let M;try{__INTLIFY_PROD_DEVTOOLS__&&Rt(qt()),l||(f.fallbackContext=a?Ot():void 0),M=t(f)}finally{__INTLIFY_PROD_DEVTOOLS__,l||(f.fallbackContext=void 0)}if(g!=="translate exists"&&U(M)&&M===It||g==="translate exists"&&!M){const[dt,Ea]=n();return a&&k?b(a):C(dt)}else{if(H(M))return M;throw L(I.UNEXPECTED_RETURN_TYPE)}};function oe(...t){return P(n=>Reflect.apply(_e,null,[n,...t]),()=>fe(...t),"translate",n=>Reflect.apply(n.t,n,[...t]),n=>n,n=>d(n))}function qe(...t){const[n,g,b]=t;if(b&&!T(b))throw L(I.INVALID_ARGUMENT);return oe(n,g,N({resolvedMessage:!0},b||{}))}function Qe(...t){return P(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"datetime format",n=>Reflect.apply(n.d,n,[...t]),()=>ge,n=>d(n))}function ze(...t){return P(n=>Reflect.apply(pe,null,[n,...t]),()=>Ee(...t),"number format",n=>Reflect.apply(n.n,n,[...t]),()=>ge,n=>d(n))}function Ze(t){return t.map(n=>d(n)||U(n)||y(n)?Re(String(n)):n)}const et={normalize:Ze,interpolate:t=>t,type:"vnode"};function tt(...t){return P(n=>{let g;const b=n;try{b.processor=et,g=Reflect.apply(_e,null,[b,...t])}finally{b.processor=null}return g},()=>fe(...t),"translate",n=>n[Q](...t),n=>[Re(n)],n=>h(n))}function at(...t){return P(n=>Reflect.apply(pe,null,[n,...t]),()=>Ee(...t),"number format",n=>n[Z](...t),Ie,n=>d(n)||h(n))}function nt(...t){return P(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"datetime format",n=>n[z](...t),Ie,n=>d(n)||h(n))}function rt(t){j=t,f.pluralRules=j}function lt(t,n){return P(()=>{if(!t)return!1;const g=d(n)?n:o.value,b=ce(g),C=f.messageResolver(b,t);return $(C)||Lt(C)||d(C)},()=>[t],"translate exists",g=>Reflect.apply(g.te,g,[t,n]),Jt,g=>y(g))}function st(t){let n=null;const g=De(f,i.value,o.value);for(let b=0;b{r&&(o.value=t,f.locale=t,V(f,o.value,i.value))}),q(a.fallbackLocale,t=>{r&&(i.value=t,f.fallbackLocale=t,V(f,o.value,i.value))}));const p={id:Te,locale:je,fallbackLocale:He,get inheritLocale(){return r},set inheritLocale(t){r=t,t&&a&&(o.value=a.locale.value,i.value=a.fallbackLocale.value,V(f,o.value,i.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:Ye,get modifiers(){return se},get pluralRules(){return j||{}},get isGlobal(){return l},get missingWarn(){return v},set missingWarn(t){v=t,f.missingWarn=v},get fallbackWarn(){return R},set fallbackWarn(t){R=t,f.fallbackWarn=R},get fallbackRoot(){return k},set fallbackRoot(t){k=t},get fallbackFormat(){return S},set fallbackFormat(t){S=t,f.fallbackFormat=S},get warnHtmlMessage(){return K},set warnHtmlMessage(t){K=t,f.warnHtmlMessage=t},get escapeParameter(){return J},set escapeParameter(t){J=t,f.escapeParameter=t},t:oe,getLocaleMessage:ce,setLocaleMessage:ct,mergeLocaleMessage:ut,getPostTranslationHandler:Be,setPostTranslationHandler:Xe,getMissingHandler:Ke,setMissingHandler:Je,[Bt]:rt};return p.datetimeFormats=$e,p.numberFormats=Ge,p.rt=qe,p.te=lt,p.tm=ot,p.d=Qe,p.n=ze,p.getDateTimeFormat=it,p.setDateTimeFormat=mt,p.mergeDateTimeFormat=ft,p.getNumberFormat=_t,p.setNumberFormat=gt,p.mergeNumberFormat=bt,p[Xt]=s,p[Q]=tt,p[z]=nt,p[Z]=at,p}const ne={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Qt({slots:e},a){return a.length===1&&a[0]==="default"?(e.default?e.default():[]).reduce((l,c)=>[...l,...c.type===Me?c.children:[c]],[]):a.reduce((s,l)=>{const c=e[l];return c&&(s[l]=c()),s},O())}function Ue(){return Me}const zt=te({name:"i18n-t",props:N({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>U(e)||!isNaN(e)}},ne),setup(e,a){const{slots:s,attrs:l}=a,c=e.i18n||re({useScope:e.scope,__useComponent:!0});return()=>{const u=Object.keys(s).filter(E=>E!=="_"),r=O();e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=d(e.plural)?+e.plural:e.plural);const o=Qt(a,u),i=c[Q](e.keypath,o,r),m=N(O(),l),_=d(e.tag)||T(e.tag)?e.tag:Ue();return Ce(_,m,i)}}}),Fe=zt;function Zt(e){return h(e)&&!d(e[0])}function we(e,a,s,l){const{slots:c,attrs:u}=a;return()=>{const r={part:!0};let o=O();e.locale&&(r.locale=e.locale),d(e.format)?r.key=e.format:T(e.format)&&(d(e.format.key)&&(r.key=e.format.key),o=Object.keys(e.format).reduce((v,R)=>s.includes(R)?N(O(),v,{[R]:e.format[R]}):v,O()));const i=l(e.value,r,o);let m=[r.key];h(i)?m=i.map((v,R)=>{const k=c[v.type],S=k?k({[v.type]:v.value,index:R,parts:i}):[v.value];return Zt(S)&&(S[0].key=`${v.type}-${R}`),S}):d(i)&&(m=[i]);const _=N(O(),u),E=d(e.tag)||T(e.tag)?e.tag:Ue();return Ce(E,_,m)}}const ea=te({name:"i18n-n",props:N({value:{type:Number,required:!0},format:{type:[String,Object]}},ne),setup(e,a){const s=e.i18n||re({useScope:e.scope,__useComponent:!0});return we(e,a,Ft,(...l)=>s[Z](...l))}}),Ne=ea;function ta(e,a){const s=e;if(e.mode==="composition")return s.__getInstance(a)||e.global;{const l=s.__getInstance(a);return l!=null?l.__composer:e.global.__composer}}function aa(e){const a=r=>{const{instance:o,value:i}=r;if(!o||!o.$)throw L(I.UNEXPECTED_ERROR);const m=ta(e,o.$),_=ke(i);return[Reflect.apply(m.t,m,[...ye(_)]),m]};return{created:(r,o)=>{const[i,m]=a(o);B&&e.global===m&&(r.__i18nWatcher=q(m.locale,()=>{o.instance&&o.instance.$forceUpdate()})),r.__composer=m,r.textContent=i},unmounted:r=>{B&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:o})=>{if(r.__composer){const i=r.__composer,m=ke(o);r.textContent=Reflect.apply(i.t,i,[...ye(m)])}},getSSRProps:r=>{const[o]=a(r);return{textContent:o}}}}function ke(e){if(d(e))return{path:e};if(F(e)){if(!("path"in e))throw L(I.REQUIRED_VALUE,"path");return e}else throw L(I.INVALID_VALUE)}function ye(e){const{path:a,locale:s,args:l,choice:c,plural:u}=e,r={},o=l||{};return d(s)&&(r.locale=s),U(c)&&(r.plural=c),U(u)&&(r.plural=u),[a,o,r]}function na(e,a,...s){const l=F(s[0])?s[0]:{};(y(l.globalInstall)?l.globalInstall:!0)&&([Fe.name,"I18nT"].forEach(u=>e.component(u,Fe)),[Ne.name,"I18nN"].forEach(u=>e.component(u,Ne)),[he.name,"I18nD"].forEach(u=>e.component(u,he))),e.directive("t",aa(a))}const ra=D("global-vue-i18n");function Ta(e={}){const a=y(e.globalInjection)?e.globalInjection:!0,s=new Map,[l,c]=la(e),u=D("");function r(_){return s.get(_)||null}function o(_,E){s.set(_,E)}function i(_){s.delete(_)}const m={get mode(){return"composition"},async install(_,...E){if(_.__VUE_I18N_SYMBOL__=u,_.provide(_.__VUE_I18N_SYMBOL__,m),F(E[0])){const k=E[0];m.__composerExtend=k.__composerExtend,m.__vueI18nExtend=k.__vueI18nExtend}let v=null;a&&(v=_a(_,m.global)),na(_,m,...E);const R=_.unmount;_.unmount=()=>{v&&v(),m.dispose(),R()}},get global(){return c},dispose(){l.stop()},__instances:s,__getInstance:r,__setInstance:o,__deleteInstance:i};return m}function re(e={}){const a=ae();if(a==null)throw L(I.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw L(I.NOT_INSTALLED);const s=sa(a),l=ca(s),c=Ve(a),u=oa(e,c);if(u==="global")return Kt(l,e,c),l;if(u==="parent"){let i=ua(s,a,e.__useComponent);return i==null&&(i=l),i}const r=s;let o=r.__getInstance(a);if(o==null){const i=N({},e);"__i18n"in c&&(i.__i18n=c.__i18n),l&&(i.__root=l),o=xe(i),r.__composerExtend&&(o[ee]=r.__composerExtend(o)),ma(r,a,o),r.__setInstance(a,o)}return o}function la(e,a){const s=Wt(),l=s.run(()=>xe(e));if(l==null)throw L(I.UNEXPECTED_ERROR);return[s,l]}function sa(e){const a=At(e.isCE?ra:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw L(e.isCE?I.NOT_INSTALLED_WITH_PROVIDE:I.UNEXPECTED_ERROR);return a}function oa(e,a){return Ct(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}function ca(e){return e.mode==="composition"?e.global:e.global.__composer}function ua(e,a,s=!1){let l=null;const c=a.root;let u=ia(a,s);for(;u!=null;){const r=e;if(e.mode==="composition"&&(l=r.__getInstance(u)),l!=null||c===u)break;u=u.parent}return l}function ia(e,a=!1){return e==null?null:a&&e.vnode.ctx||e.parent}function ma(e,a,s){Vt(()=>{},a),xt(()=>{const l=s;e.__deleteInstance(a);const c=l[ee];c&&(c(),delete l[ee])},a)}const fa=["locale","fallbackLocale","availableLocales"],Se=["t","rt","d","n","tm","te"];function _a(e,a){const s=Object.create(null);return fa.forEach(c=>{const u=Object.getOwnPropertyDescriptor(a,c);if(!u)throw L(I.UNEXPECTED_ERROR);const r=Yt(u.value)?{get(){return u.value.value},set(o){u.value.value=o}}:{get(){return u.get&&u.get()}};Object.defineProperty(s,c,r)}),e.config.globalProperties.$i18n=s,Se.forEach(c=>{const u=Object.getOwnPropertyDescriptor(a,c);if(!u||!u.value)throw L(I.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${c}`,u)}),()=>{delete e.config.globalProperties.$i18n,Se.forEach(c=>{delete e.config.globalProperties[`$${c}`]})}}const ga=te({name:"i18n-d",props:N({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ne),setup(e,a){const s=e.i18n||re({useScope:e.scope,__useComponent:!0});return we(e,a,Nt,(...l)=>s[z](...l))}}),he=ga;Gt();kt(Dt);yt(Pt);St(De);if(__INTLIFY_PROD_DEVTOOLS__){const e=Pe();e.__INTLIFY__=!0,ht(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Ta as c}; diff --git a/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js.gz b/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js.gz new file mode 100644 index 00000000..54b18cf5 Binary files /dev/null and b/js/vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js.gz differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js b/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js deleted file mode 100644 index ef1eb53e..00000000 --- a/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js +++ /dev/null @@ -1,5 +0,0 @@ -import{e as D,r as A,c as F,a as T,b as k,f as _e,i as $,s as J,u as X,v as K,g as L,d as C,k as W,h as Ae,l as Nt,j as he}from"./@intlify_shared@9.13.1-CM6R_CZ5.js";import{D as Rt,u as x,c as pt,a as me,b as fe,s as Lt,g as vt,N as Pt,f as Me,d as ge,C as Ft,p as Ee,t as be,M as de,e as Oe,h as Te,i as Ie,n as Ne,j as Ct,k as St,l as Dt,m as yt,r as kt,o as At,q as ht,v as Mt,w as Vt,x as Ut,y as xt}from"./@intlify_core-base@9.13.1-BNWv53cz.js";import{c as wt}from"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import{f as w,w as z,m as ne,h as Ve,F as Ue,g as re,i as Wt,l as jt,R as Yt,d as Gt,Q as Ht}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{z as Bt,k as $t,s as Xt,a as Jt}from"./@vue_reactivity@3.5.22-BvBzZonp.js";/*! - * vue-i18n v9.13.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const Kt="9.13.1";function qt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(he().__INTLIFY_PROD_DEVTOOLS__=!1)}const Qt=Vt.__EXTEND_POINT__,S=Ae(Qt);S(),S(),S(),S(),S(),S(),S(),S(),S();const xe=Ft.__EXTEND_POINT__,N=Ae(xe),R={UNEXPECTED_RETURN_TYPE:xe,INVALID_ARGUMENT:N(),MUST_BE_CALL_SETUP_TOP:N(),NOT_INSTALLED:N(),NOT_AVAILABLE_IN_LEGACY_MODE:N(),REQUIRED_VALUE:N(),INVALID_VALUE:N(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:N(),NOT_INSTALLED_WITH_PROVIDE:N(),UNEXPECTED_ERROR:N(),NOT_COMPATIBLE_LEGACY_VUE_I18N:N(),BRIDGE_SUPPORT_VUE_2_ONLY:N(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:N(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:N(),__EXTEND_POINT__:N()};function v(e,...l){return wt(e,null,void 0)}const Z=A("__translateVNode"),ee=A("__datetimeParts"),te=A("__numberParts"),zt=A("__setPluralRules"),Zt=A("__injectWithOption"),ae=A("__dispose");function j(e){if(!L(e))return e;for(const l in e)if(K(e,l))if(!l.includes("."))L(e[l])&&j(e[l]);else{const n=l.split("."),o=n.length-1;let s=e,c=!1;for(let r=0;r{if("locale"in u&&"resource"in u){const{locale:m,resource:_}=u;m?(r[m]=r[m]||{},X(_,r[m])):X(_,r)}else T(u)&&X(JSON.parse(u),r)}),s==null&&c)for(const u in r)K(r,u)&&j(r[u]);return r}function We(e){return e.type}function ea(e,l,n){let o=L(l.messages)?l.messages:{};"__i18nGlobal"in n&&(o=we(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const s=Object.keys(o);s.length&&s.forEach(c=>{e.mergeLocaleMessage(c,o[c])});{if(L(l.datetimeFormats)){const c=Object.keys(l.datetimeFormats);c.length&&c.forEach(r=>{e.mergeDateTimeFormat(r,l.datetimeFormats[r])})}if(L(l.numberFormats)){const c=Object.keys(l.numberFormats);c.length&&c.forEach(r=>{e.mergeNumberFormat(r,l.numberFormats[r])})}}}function Re(e){return Gt(Ht,null,e,0)}const pe="__INTLIFY_META__",Le=()=>[],ta=()=>!1;let ve=0;function Pe(e){return(l,n,o,s)=>e(n,o,re()||void 0,s)}const aa=()=>{const e=re();let l=null;return e&&(l=We(e)[pe])?{[pe]:l}:null};function je(e={},l){const{__root:n,__injectWithOption:o}=e,s=n===void 0,c=e.flatJson,r=J?$t:Xt,u=!!e.translateExistCompatible;let m=D(e.inheritLocale)?e.inheritLocale:!0;const _=r(n&&m?n.locale.value:T(e.locale)?e.locale:Rt),b=r(n&&m?n.fallbackLocale.value:T(e.fallbackLocale)||k(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),f=r(we(_.value,e)),g=r(F(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),O=r(F(e.numberFormats)?e.numberFormats:{[_.value]:{}});let p=n?n.missingWarn:D(e.missingWarn)||_e(e.missingWarn)?e.missingWarn:!0,P=n?n.fallbackWarn:D(e.fallbackWarn)||_e(e.fallbackWarn)?e.fallbackWarn:!0,M=n?n.fallbackRoot:D(e.fallbackRoot)?e.fallbackRoot:!0,Y=!!e.fallbackFormat,oe=$(e.missing)?e.missing:null,G=$(e.missing)?Pe(e.missing):null,U=$(e.postTranslation)?e.postTranslation:null,q=n?n.warnHtmlMessage:D(e.warnHtmlMessage)?e.warnHtmlMessage:!0,Q=!!e.escapeParameter;const ce=n?n.modifiers:F(e.modifiers)?e.modifiers:{};let H=e.pluralRules||n&&n.pluralRules,i;i=(()=>{s&&ge(null);const t={version:Kt,locale:_.value,fallbackLocale:b.value,messages:f.value,modifiers:ce,pluralRules:H,missing:G===null?void 0:G,missingWarn:p,fallbackWarn:P,fallbackFormat:Y,unresolving:!0,postTranslation:U===null?void 0:U,warnHtmlMessage:q,escapeParameter:Q,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=O.value,t.__datetimeFormatters=F(i)?i.__datetimeFormatters:void 0,t.__numberFormatters=F(i)?i.__numberFormatters:void 0;const a=pt(t);return s&&ge(a),a})(),x(i,_.value,b.value);function He(){return[_.value,b.value,f.value,g.value,O.value]}const Be=w({get:()=>_.value,set:t=>{_.value=t,i.locale=_.value}}),$e=w({get:()=>b.value,set:t=>{b.value=t,i.fallbackLocale=b.value,x(i,_.value,t)}}),Xe=w(()=>f.value),Je=w(()=>g.value),Ke=w(()=>O.value);function qe(){return $(U)?U:null}function Qe(t){U=t,i.postTranslation=t}function ze(){return oe}function Ze(t){t!==null&&(G=Pe(t)),oe=t,i.missing=G}const h=(t,a,E,d,y,B)=>{He();let V;try{__INTLIFY_PROD_DEVTOOLS__&&Lt(aa()),s||(i.fallbackContext=n?vt():void 0),V=t(i)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(i.fallbackContext=void 0)}if(E!=="translate exists"&&W(V)&&V===Pt||E==="translate exists"&&!V){const[It,pa]=a();return n&&M?d(n):y(It)}else{if(B(V))return V;throw v(R.UNEXPECTED_RETURN_TYPE)}};function ue(...t){return h(a=>Reflect.apply(be,null,[a,...t]),()=>Ee(...t),"translate",a=>Reflect.apply(a.t,a,[...t]),a=>a,a=>T(a))}function et(...t){const[a,E,d]=t;if(d&&!L(d))throw v(R.INVALID_ARGUMENT);return ue(a,E,C({resolvedMessage:!0},d||{}))}function tt(...t){return h(a=>Reflect.apply(Te,null,[a,...t]),()=>Oe(...t),"datetime format",a=>Reflect.apply(a.d,a,[...t]),()=>de,a=>T(a))}function at(...t){return h(a=>Reflect.apply(Ne,null,[a,...t]),()=>Ie(...t),"number format",a=>Reflect.apply(a.n,a,[...t]),()=>de,a=>T(a))}function nt(t){return t.map(a=>T(a)||W(a)||D(a)?Re(String(a)):a)}const rt={normalize:nt,interpolate:t=>t,type:"vnode"};function lt(...t){return h(a=>{let E;const d=a;try{d.processor=rt,E=Reflect.apply(be,null,[d,...t])}finally{d.processor=null}return E},()=>Ee(...t),"translate",a=>a[Z](...t),a=>[Re(a)],a=>k(a))}function st(...t){return h(a=>Reflect.apply(Ne,null,[a,...t]),()=>Ie(...t),"number format",a=>a[te](...t),Le,a=>T(a)||k(a))}function ot(...t){return h(a=>Reflect.apply(Te,null,[a,...t]),()=>Oe(...t),"datetime format",a=>a[ee](...t),Le,a=>T(a)||k(a))}function ct(t){H=t,i.pluralRules=H}function ut(t,a){return h(()=>{if(!t)return!1;const E=T(a)?a:_.value,d=ie(E),y=i.messageResolver(d,t);return u?y!=null:Ct(y)||St(y)||T(y)},()=>[t],"translate exists",E=>Reflect.apply(E.te,E,[t,a]),ta,E=>D(E))}function it(t){let a=null;const E=Me(i,b.value,_.value);for(let d=0;d{m&&(_.value=t,i.locale=t,x(i,_.value,b.value))}),z(n.fallbackLocale,t=>{m&&(b.value=t,i.fallbackLocale=t,x(i,_.value,b.value))}));const I={id:ve,locale:Be,fallbackLocale:$e,get inheritLocale(){return m},set inheritLocale(t){m=t,t&&n&&(_.value=n.locale.value,b.value=n.fallbackLocale.value,x(i,_.value,b.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Xe,get modifiers(){return ce},get pluralRules(){return H||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(t){p=t,i.missingWarn=p},get fallbackWarn(){return P},set fallbackWarn(t){P=t,i.fallbackWarn=P},get fallbackRoot(){return M},set fallbackRoot(t){M=t},get fallbackFormat(){return Y},set fallbackFormat(t){Y=t,i.fallbackFormat=Y},get warnHtmlMessage(){return q},set warnHtmlMessage(t){q=t,i.warnHtmlMessage=t},get escapeParameter(){return Q},set escapeParameter(t){Q=t,i.escapeParameter=t},t:ue,getLocaleMessage:ie,setLocaleMessage:mt,mergeLocaleMessage:ft,getPostTranslationHandler:qe,setPostTranslationHandler:Qe,getMissingHandler:ze,setMissingHandler:Ze,[zt]:ct};return I.datetimeFormats=Je,I.numberFormats=Ke,I.rt=et,I.te=ut,I.tm=_t,I.d=tt,I.n=at,I.getDateTimeFormat=gt,I.setDateTimeFormat=Et,I.mergeDateTimeFormat=bt,I.getNumberFormat=dt,I.setNumberFormat=Ot,I.mergeNumberFormat=Tt,I[Zt]=o,I[Z]=lt,I[ee]=ot,I[te]=st,I}const le={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function na({slots:e},l){return l.length===1&&l[0]==="default"?(e.default?e.default():[]).reduce((o,s)=>[...o,...s.type===Ue?s.children:[s]],[]):l.reduce((n,o)=>{const s=e[o];return s&&(n[o]=s()),n},{})}function Ye(e){return Ue}const ra=ne({name:"i18n-t",props:C({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>W(e)||!isNaN(e)}},le),setup(e,l){const{slots:n,attrs:o}=l,s=e.i18n||se({useScope:e.scope,__useComponent:!0});return()=>{const c=Object.keys(n).filter(f=>f!=="_"),r={};e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=T(e.plural)?+e.plural:e.plural);const u=na(l,c),m=s[Z](e.keypath,u,r),_=C({},o),b=T(e.tag)||L(e.tag)?e.tag:Ye();return Ve(b,_,m)}}}),Fe=ra;function la(e){return k(e)&&!T(e[0])}function Ge(e,l,n,o){const{slots:s,attrs:c}=l;return()=>{const r={part:!0};let u={};e.locale&&(r.locale=e.locale),T(e.format)?r.key=e.format:L(e.format)&&(T(e.format.key)&&(r.key=e.format.key),u=Object.keys(e.format).reduce((g,O)=>n.includes(O)?C({},g,{[O]:e.format[O]}):g,{}));const m=o(e.value,r,u);let _=[r.key];k(m)?_=m.map((g,O)=>{const p=s[g.type],P=p?p({[g.type]:g.value,index:O,parts:m}):[g.value];return la(P)&&(P[0].key=`${g.type}-${O}`),P}):T(m)&&(_=[m]);const b=C({},c),f=T(e.tag)||L(e.tag)?e.tag:Ye();return Ve(f,b,_)}}const sa=ne({name:"i18n-n",props:C({value:{type:Number,required:!0},format:{type:[String,Object]}},le),setup(e,l){const n=e.i18n||se({useScope:e.scope,__useComponent:!0});return Ge(e,l,Dt,(...o)=>n[te](...o))}}),Ce=sa,oa=ne({name:"i18n-d",props:C({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},le),setup(e,l){const n=e.i18n||se({useScope:e.scope,__useComponent:!0});return Ge(e,l,yt,(...o)=>n[ee](...o))}}),Se=oa;function ca(e,l){const n=e;if(e.mode==="composition")return n.__getInstance(l)||e.global;{const o=n.__getInstance(l);return o!=null?o.__composer:e.global.__composer}}function ua(e){const l=r=>{const{instance:u,modifiers:m,value:_}=r;if(!u||!u.$)throw v(R.UNEXPECTED_ERROR);const b=ca(e,u.$),f=De(_);return[Reflect.apply(b.t,b,[...ye(f)]),b]};return{created:(r,u)=>{const[m,_]=l(u);J&&e.global===_&&(r.__i18nWatcher=z(_.locale,()=>{u.instance&&u.instance.$forceUpdate()})),r.__composer=_,r.textContent=m},unmounted:r=>{J&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:u})=>{if(r.__composer){const m=r.__composer,_=De(u);r.textContent=Reflect.apply(m.t,m,[...ye(_)])}},getSSRProps:r=>{const[u]=l(r);return{textContent:u}}}}function De(e){if(T(e))return{path:e};if(F(e)){if(!("path"in e))throw v(R.REQUIRED_VALUE,"path");return e}else throw v(R.INVALID_VALUE)}function ye(e){const{path:l,locale:n,args:o,choice:s,plural:c}=e,r={},u=o||{};return T(n)&&(r.locale=n),W(s)&&(r.plural=s),W(c)&&(r.plural=c),[l,u,r]}function ia(e,l,...n){const o=F(n[0])?n[0]:{},s=!!o.useI18nComponentName;(D(o.globalInstall)?o.globalInstall:!0)&&([s?"i18n":Fe.name,"I18nT"].forEach(r=>e.component(r,Fe)),[Ce.name,"I18nN"].forEach(r=>e.component(r,Ce)),[Se.name,"I18nD"].forEach(r=>e.component(r,Se))),e.directive("t",ua(l))}const _a=A("global-vue-i18n");function Sa(e={},l){const n=D(e.globalInjection)?e.globalInjection:!0,o=!0,s=new Map,[c,r]=ma(e),u=A("");function m(f){return s.get(f)||null}function _(f,g){s.set(f,g)}function b(f){s.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return o},async install(g,...O){if(g.__VUE_I18N_SYMBOL__=u,g.provide(g.__VUE_I18N_SYMBOL__,f),F(O[0])){const M=O[0];f.__composerExtend=M.__composerExtend,f.__vueI18nExtend=M.__vueI18nExtend}let p=null;n&&(p=Ia(g,f.global)),ia(g,f,...O);const P=g.unmount;g.unmount=()=>{p&&p(),f.dispose(),P()}},get global(){return r},dispose(){c.stop()},__instances:s,__getInstance:m,__setInstance:_,__deleteInstance:b};return f}}function se(e={}){const l=re();if(l==null)throw v(R.MUST_BE_CALL_SETUP_TOP);if(!l.isCE&&l.appContext.app!=null&&!l.appContext.app.__VUE_I18N_SYMBOL__)throw v(R.NOT_INSTALLED);const n=fa(l),o=Ea(n),s=We(l),c=ga(e,s);if(c==="global")return ea(o,e,s),o;if(c==="parent"){let m=ba(n,l,e.__useComponent);return m==null&&(m=o),m}const r=n;let u=r.__getInstance(l);if(u==null){const m=C({},e);"__i18n"in s&&(m.__i18n=s.__i18n),o&&(m.__root=o),u=je(m),r.__composerExtend&&(u[ae]=r.__composerExtend(u)),Oa(r,l,u),r.__setInstance(l,u)}return u}function ma(e,l,n){const o=Bt();{const s=o.run(()=>je(e));if(s==null)throw v(R.UNEXPECTED_ERROR);return[o,s]}}function fa(e){{const l=Wt(e.isCE?_a:e.appContext.app.__VUE_I18N_SYMBOL__);if(!l)throw v(e.isCE?R.NOT_INSTALLED_WITH_PROVIDE:R.UNEXPECTED_ERROR);return l}}function ga(e,l){return Nt(e)?"__i18n"in l?"local":"global":e.useScope?e.useScope:"local"}function Ea(e){return e.mode==="composition"?e.global:e.global.__composer}function ba(e,l,n=!1){let o=null;const s=l.root;let c=da(l,n);for(;c!=null;){const r=e;if(e.mode==="composition"&&(o=r.__getInstance(c)),o!=null||s===c)break;c=c.parent}return o}function da(e,l=!1){return e==null?null:l&&e.vnode.ctx||e.parent}function Oa(e,l,n){jt(()=>{},l),Yt(()=>{const o=n;e.__deleteInstance(l);const s=o[ae];s&&(s(),delete o[ae])},l)}const Ta=["locale","fallbackLocale","availableLocales"],ke=["t","rt","d","n","tm","te"];function Ia(e,l){const n=Object.create(null);return Ta.forEach(s=>{const c=Object.getOwnPropertyDescriptor(l,s);if(!c)throw v(R.UNEXPECTED_ERROR);const r=Jt(c.value)?{get(){return c.value.value},set(u){c.value.value=u}}:{get(){return c.get&&c.get()}};Object.defineProperty(n,s,r)}),e.config.globalProperties.$i18n=n,ke.forEach(s=>{const c=Object.getOwnPropertyDescriptor(l,s);if(!c||!c.value)throw v(R.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,c)}),()=>{delete e.config.globalProperties.$i18n,ke.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}qt();kt(Ut);At(xt);ht(Me);if(__INTLIFY_PROD_DEVTOOLS__){const e=he();e.__INTLIFY__=!0,Mt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Sa as c}; diff --git a/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js.gz b/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js.gz deleted file mode 100644 index a351d64b..00000000 Binary files a/js/vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js.gz and /dev/null differ diff --git a/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js b/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js deleted file mode 100644 index 70c1f374..00000000 --- a/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js +++ /dev/null @@ -1,9 +0,0 @@ -import{i as j,R as ct,M as lt,L as ut,m as Fe,f as L,h as Ke,y as he,w as ft,n as ht}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{s as dt,u as $,d as pt,h as mt,k as gt}from"./@vue_reactivity@3.5.22-BvBzZonp.js";/*! - * vue-router v4.6.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const W=typeof document<"u";function We(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&We(e.default)}const O=Object.assign;function de(e,t){const n={};for(const r in t){const s=t[r];n[r]=B(s)?s.map(e):e(s)}return n}const ee=()=>{},B=Array.isArray;function we(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Qe=/#/g,vt=/&/g,Et=/\//g,At=/=/g,yt=/\?/g,ze=/\+/g,Nt=/%5B/g,Ot=/%5D/g,Ye=/%5E/g,_t=/%60/g,Je=/%7B/g,Ct=/%7C/g,Xe=/%7D/g,Pt=/%20/g;function ye(e){return e==null?"":encodeURI(""+e).replace(Ct,"|").replace(Nt,"[").replace(Ot,"]")}function It(e){return ye(e).replace(Je,"{").replace(Xe,"}").replace(Ye,"^")}function Re(e){return ye(e).replace(ze,"%2B").replace(Pt,"+").replace(Qe,"%23").replace(vt,"%26").replace(_t,"`").replace(Je,"{").replace(Xe,"}").replace(Ye,"^")}function wt(e){return Re(e).replace(At,"%3D")}function St(e){return ye(e).replace(Qe,"%23").replace(yt,"%3F")}function bt(e){return St(e).replace(Et,"%2F")}function te(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tt=/\/$/,Dt=e=>e.replace(Tt,"");function pe(e,t,n="/"){let r,s={},f="",h="";const g=t.indexOf("#");let i=t.indexOf("?");return i=g>=0&&i>g?-1:i,i>=0&&(r=t.slice(0,i),f=t.slice(i,g>0?g:t.length),s=e(f.slice(1))),g>=0&&(r=r||t.slice(0,g),h=t.slice(g,t.length)),r=Bt(r??t,n),{fullPath:r+f+h,path:r,query:s,hash:te(h)}}function xt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Se(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gt(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Q(t.matched[r],n.matched[s])&&Ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!kt(e[n],t[n]))return!1;return!0}function kt(e,t){return B(e)?be(e,t):B(t)?be(t,e):e===t}function be(e,t){return B(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Bt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let f=n.length-1,h,g;for(h=0;h1&&f--;else break;return n.slice(0,f).join("/")+"/"+r.slice(h).join("/")}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ve=function(e){return e.pop="pop",e.push="push",e}({}),me=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Lt(e){if(!e)if(W){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dt(e)}const Vt=/^[^#]+#/;function Mt(e,t){return e.replace(Vt,"#")+t}function Ut(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const se=()=>({left:window.scrollX,top:window.scrollY});function Ht(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Ut(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Te(e,t){return(history.state?history.state.position-t:-1)+e}const Ee=new Map;function jt(e,t){Ee.set(e,t)}function qt(e){const t=Ee.get(e);return Ee.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function $e(e){return typeof e=="string"||typeof e=="symbol"}let w=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const et=Symbol("");w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return O(new Error,{type:e,[et]:!0},t)}function V(e,t){return e instanceof Error&&et in e&&(t==null||!!(e.type&t))}const Kt=["params","query","hash"];function Wt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Kt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Qt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Re(s)):[r&&Re(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function zt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=B(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const tt=Symbol(""),xe=Symbol(""),oe=Symbol(""),Ne=Symbol(""),Ae=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yt(e,t,n){const r=()=>{e[t].delete(n)};ct(r),lt(r),ut(()=>{e[t].add(n)}),e[t].add(n)}function Cn(e){const t=j(tt,{}).value;t&&Yt(t,"updateGuards",e)}function H(e,t,n,r,s,f=h=>h()){const h=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((g,i)=>{const u=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[s]===h&&typeof c=="function"&&h.push(c),g())},d=f(()=>e.call(r&&r.instances[s],t,n,u));let a=Promise.resolve(d);e.length<3&&(a=a.then(u)),a.catch(c=>i(c))})}function ge(e,t,n,r,s=f=>f()){const f=[];for(const h of e)for(const g in h.components){let i=h.components[g];if(!(t!=="beforeRouteEnter"&&!h.instances[g]))if(We(i)){const u=(i.__vccOpts||i)[t];u&&f.push(H(u,n,r,h,g,s))}else{let u=i();f.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${g}" at "${h.path}"`);const a=Rt(d)?d.default:d;h.mods[g]=d,h.components[g]=a;const c=(a.__vccOpts||a)[t];return c&&H(c,n,r,h,g,s)()}))}}return f}function Jt(e,t){const n=[],r=[],s=[],f=Math.max(t.matched.length,e.matched.length);for(let h=0;hQ(u,g))?r.push(g):n.push(g));const i=e.matched[h];i&&(t.matched.find(u=>Q(u,i))||s.push(i))}return[n,r,s]}/*! - * vue-router v4.6.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let Xt=()=>location.protocol+"//"+location.host;function nt(e,t){const{pathname:n,search:r,hash:s}=t,f=e.indexOf("#");if(f>-1){let h=s.includes(e.slice(f))?e.slice(f).length:1,g=s.slice(h);return g[0]!=="/"&&(g="/"+g),Se(g,"")}return Se(n,e)+r+s}function Zt(e,t,n,r){let s=[],f=[],h=null;const g=({state:c})=>{const l=nt(e,location),N=n.value,_=t.value;let P=0;if(c){if(n.value=l,t.value=c,h&&h===N){h=null;return}P=_?c.position-_.position:0}else r(l);s.forEach(I=>{I(n.value,N,{delta:P,type:ve.pop,direction:P?P>0?me.forward:me.back:me.unknown})})};function i(){h=n.value}function u(c){s.push(c);const l=()=>{const N=s.indexOf(c);N>-1&&s.splice(N,1)};return f.push(l),l}function d(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(O({},c.state,{scroll:se()}),"")}}function a(){for(const c of f)c();f=[],window.removeEventListener("popstate",g),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",g),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:u,destroy:a}}function Ge(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?se():null}}function $t(e){const{history:t,location:n}=window,r={value:nt(e,n)},s={value:t.state};s.value||f(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function f(i,u,d){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Xt()+e+i;try{t[d?"replaceState":"pushState"](u,"",c),s.value=u}catch(l){console.error(l),n[d?"replace":"assign"](c)}}function h(i,u){f(i,O({},t.state,Ge(s.value.back,i,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=i}function g(i,u){const d=O({},s.value,t.state,{forward:i,scroll:se()});f(d.current,d,!0),f(i,O({},Ge(r.value,i,null),{position:d.position+1},u),!1),r.value=i}return{location:r,state:s,push:g,replace:h}}function en(e){e=Lt(e);const t=$t(e),n=Zt(e,t.state,t.location,t.replace);function r(f,h=!0){h||n.pauseListeners(),history.go(f)}const s=O({location:"",base:e,go:r,createHref:Mt.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Pn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),en(e)}let F=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var T=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(T||{});const tn={type:F.Static,value:""},nn=/[a-zA-Z0-9_]/;function rn(e){if(!e)return[[]];if(e==="/")return[[tn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(l){throw new Error(`ERR (${n})/"${u}": ${l}`)}let n=T.Static,r=n;const s=[];let f;function h(){f&&s.push(f),f=[]}let g=0,i,u="",d="";function a(){u&&(n===T.Static?f.push({type:F.Static,value:u}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(f.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),f.push({type:F.Param,value:u,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),u="")}function c(){u+=i}for(;gt.length?t.length===1&&t[0]===D.Static+D.Segment?1:-1:0}function rt(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function un(e,t,n){const r=an(rn(e.path),n),s=O(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fn(e,t){const n=[],r=new Map;t=we(ln,t);function s(a){return r.get(a)}function f(a,c,l){const N=!l,_=Ve(a);_.aliasOf=l&&l.record;const P=we(t,a),I=[_];if("alias"in a){const k=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of k)I.push(Ve(O({},_,{components:l?l.record.components:_.components,path:q,aliasOf:l?l.record:_})))}let y,C;for(const k of I){const{path:q}=k;if(c&&q[0]!=="/"){const M=c.record.path,G=M[M.length-1]==="/"?"":"/";k.path=c.record.path+(q&&G+q)}if(y=un(k,c,P),l?l.alias.push(y):(C=C||y,C!==y&&C.alias.push(y),N&&a.name&&!Me(y)&&h(a.name)),st(y)&&i(y),_.children){const M=_.children;for(let G=0;G{h(C)}:ee}function h(a){if($e(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function g(){return n}function i(a){const c=pn(a,n);n.splice(c,0,a),a.record.name&&!Me(a)&&r.set(a.record.name,a)}function u(a,c){let l,N={},_,P;if("name"in a&&a.name){if(l=r.get(a.name),!l)throw z(w.MATCHER_NOT_FOUND,{location:a});P=l.record.name,N=O(Le(c.params,l.keys.filter(C=>!C.optional).concat(l.parent?l.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),a.params&&Le(a.params,l.keys.map(C=>C.name))),_=l.stringify(N)}else if(a.path!=null)_=a.path,l=n.find(C=>C.re.test(_)),l&&(N=l.parse(_),P=l.record.name);else{if(l=c.name?r.get(c.name):n.find(C=>C.re.test(c.path)),!l)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=l.record.name,N=O({},c.params,a.params),_=l.stringify(N)}const I=[];let y=l;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:_,params:N,matched:I,meta:dn(I)}}e.forEach(a=>f(a));function d(){n.length=0,r.clear()}return{addRoute:f,resolve:u,removeRoute:h,clearRoutes:d,getRoutes:g,getRecordMatcher:s}}function Le(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ve(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:hn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function hn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Me(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dn(e){return e.reduce((t,n)=>O(t,n.meta),{})}function pn(e,t){let n=0,r=t.length;for(;n!==r;){const f=n+r>>1;rt(e,t[f])<0?r=f:n=f+1}const s=mn(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function mn(e){let t=e;for(;t=t.parent;)if(st(t)&&rt(e,t)===0)return t}function st({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ue(e){const t=j(oe),n=j(Ne),r=L(()=>{const i=$(e.to);return t.resolve(i)}),s=L(()=>{const{matched:i}=r.value,{length:u}=i,d=i[u-1],a=n.matched;if(!d||!a.length)return-1;const c=a.findIndex(Q.bind(null,d));if(c>-1)return c;const l=He(i[u-2]);return u>1&&He(d)===l&&a[a.length-1].path!==l?a.findIndex(Q.bind(null,i[u-2])):c}),f=L(()=>s.value>-1&&An(n.params,r.value.params)),h=L(()=>s.value>-1&&s.value===n.matched.length-1&&Ze(n.params,r.value.params));function g(i={}){if(En(i)){const u=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:f,isExactActive:h,navigate:g}}function gn(e){return e.length===1?e[0]:e}const Rn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ue,setup(e,{slots:t}){const n=mt(Ue(e)),{options:r}=j(oe),s=L(()=>({[je(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[je(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const f=t.default&&gn(t.default(n));return e.custom?f:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},f)}}}),vn=Rn;function En(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function An(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!B(s)||s.length!==r.length||r.some((f,h)=>f!==s[h]))return!1}return!0}function He(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const je=(e,t,n)=>e??t??n,yn=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=j(Ae),s=L(()=>e.route||r.value),f=j(xe,0),h=L(()=>{let u=$(f);const{matched:d}=s.value;let a;for(;(a=d[u])&&!a.components;)u++;return u}),g=L(()=>s.value.matched[h.value]);he(xe,L(()=>h.value+1)),he(tt,g),he(Ae,s);const i=gt();return ft(()=>[i.value,g.value,e.name],([u,d,a],[c,l,N])=>{d&&(d.instances[a]=u,l&&l!==d&&u&&u===c&&(d.leaveGuards.size||(d.leaveGuards=l.leaveGuards),d.updateGuards.size||(d.updateGuards=l.updateGuards))),u&&d&&(!l||!Q(d,l)||!c)&&(d.enterCallbacks[a]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=s.value,d=e.name,a=g.value,c=a&&a.components[d];if(!c)return qe(n.default,{Component:c,route:u});const l=a.props[d],N=l?l===!0?u.params:typeof l=="function"?l(u):l:null,P=Ke(c,O({},N,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[d]=null)},ref:i}));return qe(n.default,{Component:P,route:u})||P}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=yn;function In(e){const t=fn(e.routes,e),n=e.parseQuery||Qt,r=e.stringifyQuery||De,s=e.history,f=Z(),h=Z(),g=Z(),i=dt(U);let u=U;W&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=de.bind(null,o=>""+o),a=de.bind(null,bt),c=de.bind(null,te);function l(o,m){let p,R;return $e(o)?(p=t.getRecordMatcher(o),R=m):R=o,t.addRoute(R,p)}function N(o){const m=t.getRecordMatcher(o);m&&t.removeRoute(m)}function _(){return t.getRoutes().map(o=>o.record)}function P(o){return!!t.getRecordMatcher(o)}function I(o,m){if(m=O({},m||i.value),typeof o=="string"){const v=pe(n,o,m.path),b=t.resolve({path:v.path},m),X=s.createHref(v.fullPath);return O(v,b,{params:c(b.params),hash:te(v.hash),redirectedFrom:void 0,href:X})}let p;if(o.path!=null)p=O({},o,{path:pe(n,o.path,m.path).path});else{const v=O({},o.params);for(const b in v)v[b]==null&&delete v[b];p=O({},o,{params:a(v)}),m.params=a(m.params)}const R=t.resolve(p,m),A=o.hash||"";R.params=d(c(R.params));const S=xt(r,O({},o,{hash:It(A),path:R.path})),E=s.createHref(S);return O({fullPath:S,hash:A,query:r===De?zt(o.query):o.query||{}},R,{redirectedFrom:void 0,href:E})}function y(o){return typeof o=="string"?pe(n,o,i.value.path):O({},o)}function C(o,m){if(u!==o)return z(w.NAVIGATION_CANCELLED,{from:m,to:o})}function k(o){return G(o)}function q(o){return k(O(y(o),{replace:!0}))}function M(o,m){const p=o.matched[o.matched.length-1];if(p&&p.redirect){const{redirect:R}=p;let A=typeof R=="function"?R(o,m):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),O({query:o.query,hash:o.hash,params:A.path!=null?{}:o.params},A)}}function G(o,m){const p=u=I(o),R=i.value,A=o.state,S=o.force,E=o.replace===!0,v=M(p,R);if(v)return G(O(y(v),{state:typeof v=="object"?O({},A,v.state):A,force:S,replace:E}),m||p);const b=p;b.redirectedFrom=m;let X;return!S&&Gt(r,R,p)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Ie(R,R,!0,!1)),(X?Promise.resolve(X):Oe(b,R)).catch(x=>V(x)?V(x,w.NAVIGATION_GUARD_REDIRECT)?x:le(x):ce(x,b,R)).then(x=>{if(x){if(V(x,w.NAVIGATION_GUARD_REDIRECT))return G(O({replace:E},y(x.to),{state:typeof x.to=="object"?O({},A,x.to.state):A,force:S}),m||b)}else x=Ce(b,R,!0,E,A);return _e(b,R,x),x})}function ot(o,m){const p=C(o,m);return p?Promise.reject(p):Promise.resolve()}function ie(o){const m=re.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(o):o()}function Oe(o,m){let p;const[R,A,S]=Jt(o,m);p=ge(R.reverse(),"beforeRouteLeave",o,m);for(const v of R)v.leaveGuards.forEach(b=>{p.push(H(b,o,m))});const E=ot.bind(null,o,m);return p.push(E),K(p).then(()=>{p=[];for(const v of f.list())p.push(H(v,o,m));return p.push(E),K(p)}).then(()=>{p=ge(A,"beforeRouteUpdate",o,m);for(const v of A)v.updateGuards.forEach(b=>{p.push(H(b,o,m))});return p.push(E),K(p)}).then(()=>{p=[];for(const v of S)if(v.beforeEnter)if(B(v.beforeEnter))for(const b of v.beforeEnter)p.push(H(b,o,m));else p.push(H(v.beforeEnter,o,m));return p.push(E),K(p)}).then(()=>(o.matched.forEach(v=>v.enterCallbacks={}),p=ge(S,"beforeRouteEnter",o,m,ie),p.push(E),K(p))).then(()=>{p=[];for(const v of h.list())p.push(H(v,o,m));return p.push(E),K(p)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function _e(o,m,p){g.list().forEach(R=>ie(()=>R(o,m,p)))}function Ce(o,m,p,R,A){const S=C(o,m);if(S)return S;const E=m===U,v=W?history.state:{};p&&(R||E?s.replace(o.fullPath,O({scroll:E&&v&&v.scroll},A)):s.push(o.fullPath,A)),i.value=o,Ie(o,m,p,E),le()}let Y;function it(){Y||(Y=s.listen((o,m,p)=>{if(!J.listening)return;const R=I(o),A=M(R,J.currentRoute.value);if(A){G(O(A,{replace:!0,force:!0}),R).catch(ee);return}u=R;const S=i.value;W&&jt(Te(S.fullPath,p.delta),se()),Oe(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(O(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!p.delta&&p.type===ve.pop&&s.go(-1,!1)}).catch(ee),Promise.reject()):(p.delta&&s.go(-p.delta,!1),ce(E,R,S))).then(E=>{E=E||Ce(R,S,!1),E&&(p.delta&&!V(E,w.NAVIGATION_CANCELLED)?s.go(-p.delta,!1):p.type===ve.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),_e(R,S,E)}).catch(ee)}))}let ae=Z(),Pe=Z(),ne;function ce(o,m,p){le(o);const R=Pe.list();return R.length?R.forEach(A=>A(o,m,p)):console.error(o),Promise.reject(o)}function at(){return ne&&i.value!==U?Promise.resolve():new Promise((o,m)=>{ae.add([o,m])})}function le(o){return ne||(ne=!o,it(),ae.list().forEach(([m,p])=>o?p(o):m()),ae.reset()),o}function Ie(o,m,p,R){const{scrollBehavior:A}=e;if(!W||!A)return Promise.resolve();const S=!p&&qt(Te(o.fullPath,0))||(R||!p)&&history.state&&history.state.scroll||null;return ht().then(()=>A(o,m,S)).then(E=>E&&Ht(E)).catch(E=>ce(E,o,m))}const ue=o=>s.go(o);let fe;const re=new Set,J={currentRoute:i,listening:!0,addRoute:l,removeRoute:N,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:_,resolve:I,options:e,push:k,replace:q,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:f.add,beforeResolve:h.add,afterEach:g.add,onError:Pe.add,isReady:at,install(o){o.component("RouterLink",vn),o.component("RouterView",Nn),o.config.globalProperties.$router=J,Object.defineProperty(o.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),W&&!fe&&i.value===U&&(fe=!0,k(s.location).catch(R=>{}));const m={};for(const R in U)Object.defineProperty(m,R,{get:()=>i.value[R],enumerable:!0});o.provide(oe,J),o.provide(Ne,pt(m)),o.provide(Ae,i);const p=o.unmount;re.add(o),o.unmount=function(){re.delete(o),re.size<1&&(u=U,Y&&Y(),Y=null,i.value=U,fe=!1,ne=!1),p()}}};function K(o){return o.reduce((m,p)=>m.then(()=>ie(p)),Promise.resolve())}return J}function wn(){return j(oe)}function Sn(e){return j(Ne)}export{Nn as R,Sn as a,Pn as b,In as c,Cn as o,wn as u}; diff --git a/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js.gz b/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js.gz deleted file mode 100644 index 21e9c870..00000000 Binary files a/js/vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js.gz and /dev/null differ diff --git a/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js b/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js new file mode 100644 index 00000000..4b2054e4 --- /dev/null +++ b/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js @@ -0,0 +1 @@ +import{i as j,R as ct,M as lt,L as ut,m as Fe,f as L,h as Ke,y as he,w as ft,n as ht}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{s as dt,u as $,d as pt,h as mt,k as gt}from"./@vue_reactivity@3.5.25-CWykDyL9.js";const W=typeof document<"u";function We(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&We(e.default)}const O=Object.assign;function de(e,t){const n={};for(const r in t){const s=t[r];n[r]=B(s)?s.map(e):e(s)}return n}const ee=()=>{},B=Array.isArray;function we(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Qe=/#/g,vt=/&/g,Et=/\//g,At=/=/g,yt=/\?/g,ze=/\+/g,Nt=/%5B/g,Ot=/%5D/g,Ye=/%5E/g,_t=/%60/g,Je=/%7B/g,Ct=/%7C/g,Xe=/%7D/g,Pt=/%20/g;function ye(e){return e==null?"":encodeURI(""+e).replace(Ct,"|").replace(Nt,"[").replace(Ot,"]")}function It(e){return ye(e).replace(Je,"{").replace(Xe,"}").replace(Ye,"^")}function Re(e){return ye(e).replace(ze,"%2B").replace(Pt,"+").replace(Qe,"%23").replace(vt,"%26").replace(_t,"`").replace(Je,"{").replace(Xe,"}").replace(Ye,"^")}function wt(e){return Re(e).replace(At,"%3D")}function St(e){return ye(e).replace(Qe,"%23").replace(yt,"%3F")}function bt(e){return St(e).replace(Et,"%2F")}function te(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tt=/\/$/,Dt=e=>e.replace(Tt,"");function pe(e,t,n="/"){let r,s={},f="",h="";const g=t.indexOf("#");let i=t.indexOf("?");return i=g>=0&&i>g?-1:i,i>=0&&(r=t.slice(0,i),f=t.slice(i,g>0?g:t.length),s=e(f.slice(1))),g>=0&&(r=r||t.slice(0,g),h=t.slice(g,t.length)),r=Bt(r??t,n),{fullPath:r+f+h,path:r,query:s,hash:te(h)}}function xt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Se(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gt(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Q(t.matched[r],n.matched[s])&&Ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!kt(e[n],t[n]))return!1;return!0}function kt(e,t){return B(e)?be(e,t):B(t)?be(t,e):e===t}function be(e,t){return B(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Bt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let f=n.length-1,h,g;for(h=0;h1&&f--;else break;return n.slice(0,f).join("/")+"/"+r.slice(h).join("/")}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ve=(function(e){return e.pop="pop",e.push="push",e})({}),me=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Lt(e){if(!e)if(W){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dt(e)}const Vt=/^[^#]+#/;function Mt(e,t){return e.replace(Vt,"#")+t}function Ut(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const se=()=>({left:window.scrollX,top:window.scrollY});function Ht(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Ut(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Te(e,t){return(history.state?history.state.position-t:-1)+e}const Ee=new Map;function jt(e,t){Ee.set(e,t)}function qt(e){const t=Ee.get(e);return Ee.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function $e(e){return typeof e=="string"||typeof e=="symbol"}let w=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const et=Symbol("");w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return O(new Error,{type:e,[et]:!0},t)}function V(e,t){return e instanceof Error&&et in e&&(t==null||!!(e.type&t))}const Kt=["params","query","hash"];function Wt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Kt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Qt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Re(s)):[r&&Re(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function zt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=B(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const tt=Symbol(""),xe=Symbol(""),oe=Symbol(""),Ne=Symbol(""),Ae=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yt(e,t,n){const r=()=>{e[t].delete(n)};ct(r),lt(r),ut(()=>{e[t].add(n)}),e[t].add(n)}function Cn(e){const t=j(tt,{}).value;t&&Yt(t,"updateGuards",e)}function H(e,t,n,r,s,f=h=>h()){const h=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((g,i)=>{const u=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[s]===h&&typeof c=="function"&&h.push(c),g())},d=f(()=>e.call(r&&r.instances[s],t,n,u));let a=Promise.resolve(d);e.length<3&&(a=a.then(u)),a.catch(c=>i(c))})}function ge(e,t,n,r,s=f=>f()){const f=[];for(const h of e)for(const g in h.components){let i=h.components[g];if(!(t!=="beforeRouteEnter"&&!h.instances[g]))if(We(i)){const u=(i.__vccOpts||i)[t];u&&f.push(H(u,n,r,h,g,s))}else{let u=i();f.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${g}" at "${h.path}"`);const a=Rt(d)?d.default:d;h.mods[g]=d,h.components[g]=a;const c=(a.__vccOpts||a)[t];return c&&H(c,n,r,h,g,s)()}))}}return f}function Jt(e,t){const n=[],r=[],s=[],f=Math.max(t.matched.length,e.matched.length);for(let h=0;hQ(u,g))?r.push(g):n.push(g));const i=e.matched[h];i&&(t.matched.find(u=>Q(u,i))||s.push(i))}return[n,r,s]}let Xt=()=>location.protocol+"//"+location.host;function nt(e,t){const{pathname:n,search:r,hash:s}=t,f=e.indexOf("#");if(f>-1){let h=s.includes(e.slice(f))?e.slice(f).length:1,g=s.slice(h);return g[0]!=="/"&&(g="/"+g),Se(g,"")}return Se(n,e)+r+s}function Zt(e,t,n,r){let s=[],f=[],h=null;const g=({state:c})=>{const l=nt(e,location),N=n.value,_=t.value;let P=0;if(c){if(n.value=l,t.value=c,h&&h===N){h=null;return}P=_?c.position-_.position:0}else r(l);s.forEach(I=>{I(n.value,N,{delta:P,type:ve.pop,direction:P?P>0?me.forward:me.back:me.unknown})})};function i(){h=n.value}function u(c){s.push(c);const l=()=>{const N=s.indexOf(c);N>-1&&s.splice(N,1)};return f.push(l),l}function d(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(O({},c.state,{scroll:se()}),"")}}function a(){for(const c of f)c();f=[],window.removeEventListener("popstate",g),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",g),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:u,destroy:a}}function Ge(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?se():null}}function $t(e){const{history:t,location:n}=window,r={value:nt(e,n)},s={value:t.state};s.value||f(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function f(i,u,d){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Xt()+e+i;try{t[d?"replaceState":"pushState"](u,"",c),s.value=u}catch{n[d?"replace":"assign"](c)}}function h(i,u){f(i,O({},t.state,Ge(s.value.back,i,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=i}function g(i,u){const d=O({},s.value,t.state,{forward:i,scroll:se()});f(d.current,d,!0),f(i,O({},Ge(r.value,i,null),{position:d.position+1},u),!1),r.value=i}return{location:r,state:s,push:g,replace:h}}function en(e){e=Lt(e);const t=$t(e),n=Zt(e,t.state,t.location,t.replace);function r(f,h=!0){h||n.pauseListeners(),history.go(f)}const s=O({location:"",base:e,go:r,createHref:Mt.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Pn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),en(e)}let F=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const tn={type:F.Static,value:""},nn=/[a-zA-Z0-9_]/;function rn(e){if(!e)return[[]];if(e==="/")return[[tn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(l){throw new Error(`ERR (${n})/"${u}": ${l}`)}let n=T.Static,r=n;const s=[];let f;function h(){f&&s.push(f),f=[]}let g=0,i,u="",d="";function a(){u&&(n===T.Static?f.push({type:F.Static,value:u}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(f.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),f.push({type:F.Param,value:u,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),u="")}function c(){u+=i}for(;gt.length?t.length===1&&t[0]===D.Static+D.Segment?1:-1:0}function rt(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function un(e,t,n){const r=an(rn(e.path),n),s=O(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fn(e,t){const n=[],r=new Map;t=we(ln,t);function s(a){return r.get(a)}function f(a,c,l){const N=!l,_=Ve(a);_.aliasOf=l&&l.record;const P=we(t,a),I=[_];if("alias"in a){const k=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of k)I.push(Ve(O({},_,{components:l?l.record.components:_.components,path:q,aliasOf:l?l.record:_})))}let y,C;for(const k of I){const{path:q}=k;if(c&&q[0]!=="/"){const M=c.record.path,G=M[M.length-1]==="/"?"":"/";k.path=c.record.path+(q&&G+q)}if(y=un(k,c,P),l?l.alias.push(y):(C=C||y,C!==y&&C.alias.push(y),N&&a.name&&!Me(y)&&h(a.name)),st(y)&&i(y),_.children){const M=_.children;for(let G=0;G{h(C)}:ee}function h(a){if($e(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function g(){return n}function i(a){const c=pn(a,n);n.splice(c,0,a),a.record.name&&!Me(a)&&r.set(a.record.name,a)}function u(a,c){let l,N={},_,P;if("name"in a&&a.name){if(l=r.get(a.name),!l)throw z(w.MATCHER_NOT_FOUND,{location:a});P=l.record.name,N=O(Le(c.params,l.keys.filter(C=>!C.optional).concat(l.parent?l.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),a.params&&Le(a.params,l.keys.map(C=>C.name))),_=l.stringify(N)}else if(a.path!=null)_=a.path,l=n.find(C=>C.re.test(_)),l&&(N=l.parse(_),P=l.record.name);else{if(l=c.name?r.get(c.name):n.find(C=>C.re.test(c.path)),!l)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=l.record.name,N=O({},c.params,a.params),_=l.stringify(N)}const I=[];let y=l;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:_,params:N,matched:I,meta:dn(I)}}e.forEach(a=>f(a));function d(){n.length=0,r.clear()}return{addRoute:f,resolve:u,removeRoute:h,clearRoutes:d,getRoutes:g,getRecordMatcher:s}}function Le(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ve(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:hn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function hn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Me(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dn(e){return e.reduce((t,n)=>O(t,n.meta),{})}function pn(e,t){let n=0,r=t.length;for(;n!==r;){const f=n+r>>1;rt(e,t[f])<0?r=f:n=f+1}const s=mn(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function mn(e){let t=e;for(;t=t.parent;)if(st(t)&&rt(e,t)===0)return t}function st({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ue(e){const t=j(oe),n=j(Ne),r=L(()=>{const i=$(e.to);return t.resolve(i)}),s=L(()=>{const{matched:i}=r.value,{length:u}=i,d=i[u-1],a=n.matched;if(!d||!a.length)return-1;const c=a.findIndex(Q.bind(null,d));if(c>-1)return c;const l=He(i[u-2]);return u>1&&He(d)===l&&a[a.length-1].path!==l?a.findIndex(Q.bind(null,i[u-2])):c}),f=L(()=>s.value>-1&&An(n.params,r.value.params)),h=L(()=>s.value>-1&&s.value===n.matched.length-1&&Ze(n.params,r.value.params));function g(i={}){if(En(i)){const u=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:f,isExactActive:h,navigate:g}}function gn(e){return e.length===1?e[0]:e}const Rn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ue,setup(e,{slots:t}){const n=mt(Ue(e)),{options:r}=j(oe),s=L(()=>({[je(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[je(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const f=t.default&&gn(t.default(n));return e.custom?f:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},f)}}}),vn=Rn;function En(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function An(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!B(s)||s.length!==r.length||r.some((f,h)=>f!==s[h]))return!1}return!0}function He(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const je=(e,t,n)=>e??t??n,yn=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=j(Ae),s=L(()=>e.route||r.value),f=j(xe,0),h=L(()=>{let u=$(f);const{matched:d}=s.value;let a;for(;(a=d[u])&&!a.components;)u++;return u}),g=L(()=>s.value.matched[h.value]);he(xe,L(()=>h.value+1)),he(tt,g),he(Ae,s);const i=gt();return ft(()=>[i.value,g.value,e.name],([u,d,a],[c,l,N])=>{d&&(d.instances[a]=u,l&&l!==d&&u&&u===c&&(d.leaveGuards.size||(d.leaveGuards=l.leaveGuards),d.updateGuards.size||(d.updateGuards=l.updateGuards))),u&&d&&(!l||!Q(d,l)||!c)&&(d.enterCallbacks[a]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=s.value,d=e.name,a=g.value,c=a&&a.components[d];if(!c)return qe(n.default,{Component:c,route:u});const l=a.props[d],N=l?l===!0?u.params:typeof l=="function"?l(u):l:null,P=Ke(c,O({},N,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[d]=null)},ref:i}));return qe(n.default,{Component:P,route:u})||P}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=yn;function In(e){const t=fn(e.routes,e),n=e.parseQuery||Qt,r=e.stringifyQuery||De,s=e.history,f=Z(),h=Z(),g=Z(),i=dt(U);let u=U;W&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=de.bind(null,o=>""+o),a=de.bind(null,bt),c=de.bind(null,te);function l(o,m){let p,R;return $e(o)?(p=t.getRecordMatcher(o),R=m):R=o,t.addRoute(R,p)}function N(o){const m=t.getRecordMatcher(o);m&&t.removeRoute(m)}function _(){return t.getRoutes().map(o=>o.record)}function P(o){return!!t.getRecordMatcher(o)}function I(o,m){if(m=O({},m||i.value),typeof o=="string"){const v=pe(n,o,m.path),b=t.resolve({path:v.path},m),X=s.createHref(v.fullPath);return O(v,b,{params:c(b.params),hash:te(v.hash),redirectedFrom:void 0,href:X})}let p;if(o.path!=null)p=O({},o,{path:pe(n,o.path,m.path).path});else{const v=O({},o.params);for(const b in v)v[b]==null&&delete v[b];p=O({},o,{params:a(v)}),m.params=a(m.params)}const R=t.resolve(p,m),A=o.hash||"";R.params=d(c(R.params));const S=xt(r,O({},o,{hash:It(A),path:R.path})),E=s.createHref(S);return O({fullPath:S,hash:A,query:r===De?zt(o.query):o.query||{}},R,{redirectedFrom:void 0,href:E})}function y(o){return typeof o=="string"?pe(n,o,i.value.path):O({},o)}function C(o,m){if(u!==o)return z(w.NAVIGATION_CANCELLED,{from:m,to:o})}function k(o){return G(o)}function q(o){return k(O(y(o),{replace:!0}))}function M(o,m){const p=o.matched[o.matched.length-1];if(p&&p.redirect){const{redirect:R}=p;let A=typeof R=="function"?R(o,m):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),O({query:o.query,hash:o.hash,params:A.path!=null?{}:o.params},A)}}function G(o,m){const p=u=I(o),R=i.value,A=o.state,S=o.force,E=o.replace===!0,v=M(p,R);if(v)return G(O(y(v),{state:typeof v=="object"?O({},A,v.state):A,force:S,replace:E}),m||p);const b=p;b.redirectedFrom=m;let X;return!S&&Gt(r,R,p)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Ie(R,R,!0,!1)),(X?Promise.resolve(X):Oe(b,R)).catch(x=>V(x)?V(x,w.NAVIGATION_GUARD_REDIRECT)?x:le(x):ce(x,b,R)).then(x=>{if(x){if(V(x,w.NAVIGATION_GUARD_REDIRECT))return G(O({replace:E},y(x.to),{state:typeof x.to=="object"?O({},A,x.to.state):A,force:S}),m||b)}else x=Ce(b,R,!0,E,A);return _e(b,R,x),x})}function ot(o,m){const p=C(o,m);return p?Promise.reject(p):Promise.resolve()}function ie(o){const m=re.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(o):o()}function Oe(o,m){let p;const[R,A,S]=Jt(o,m);p=ge(R.reverse(),"beforeRouteLeave",o,m);for(const v of R)v.leaveGuards.forEach(b=>{p.push(H(b,o,m))});const E=ot.bind(null,o,m);return p.push(E),K(p).then(()=>{p=[];for(const v of f.list())p.push(H(v,o,m));return p.push(E),K(p)}).then(()=>{p=ge(A,"beforeRouteUpdate",o,m);for(const v of A)v.updateGuards.forEach(b=>{p.push(H(b,o,m))});return p.push(E),K(p)}).then(()=>{p=[];for(const v of S)if(v.beforeEnter)if(B(v.beforeEnter))for(const b of v.beforeEnter)p.push(H(b,o,m));else p.push(H(v.beforeEnter,o,m));return p.push(E),K(p)}).then(()=>(o.matched.forEach(v=>v.enterCallbacks={}),p=ge(S,"beforeRouteEnter",o,m,ie),p.push(E),K(p))).then(()=>{p=[];for(const v of h.list())p.push(H(v,o,m));return p.push(E),K(p)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function _e(o,m,p){g.list().forEach(R=>ie(()=>R(o,m,p)))}function Ce(o,m,p,R,A){const S=C(o,m);if(S)return S;const E=m===U,v=W?history.state:{};p&&(R||E?s.replace(o.fullPath,O({scroll:E&&v&&v.scroll},A)):s.push(o.fullPath,A)),i.value=o,Ie(o,m,p,E),le()}let Y;function it(){Y||(Y=s.listen((o,m,p)=>{if(!J.listening)return;const R=I(o),A=M(R,J.currentRoute.value);if(A){G(O(A,{replace:!0,force:!0}),R).catch(ee);return}u=R;const S=i.value;W&&jt(Te(S.fullPath,p.delta),se()),Oe(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(O(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!p.delta&&p.type===ve.pop&&s.go(-1,!1)}).catch(ee),Promise.reject()):(p.delta&&s.go(-p.delta,!1),ce(E,R,S))).then(E=>{E=E||Ce(R,S,!1),E&&(p.delta&&!V(E,w.NAVIGATION_CANCELLED)?s.go(-p.delta,!1):p.type===ve.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),_e(R,S,E)}).catch(ee)}))}let ae=Z(),Pe=Z(),ne;function ce(o,m,p){le(o);const R=Pe.list();return R.length&&R.forEach(A=>A(o,m,p)),Promise.reject(o)}function at(){return ne&&i.value!==U?Promise.resolve():new Promise((o,m)=>{ae.add([o,m])})}function le(o){return ne||(ne=!o,it(),ae.list().forEach(([m,p])=>o?p(o):m()),ae.reset()),o}function Ie(o,m,p,R){const{scrollBehavior:A}=e;if(!W||!A)return Promise.resolve();const S=!p&&qt(Te(o.fullPath,0))||(R||!p)&&history.state&&history.state.scroll||null;return ht().then(()=>A(o,m,S)).then(E=>E&&Ht(E)).catch(E=>ce(E,o,m))}const ue=o=>s.go(o);let fe;const re=new Set,J={currentRoute:i,listening:!0,addRoute:l,removeRoute:N,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:_,resolve:I,options:e,push:k,replace:q,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:f.add,beforeResolve:h.add,afterEach:g.add,onError:Pe.add,isReady:at,install(o){o.component("RouterLink",vn),o.component("RouterView",Nn),o.config.globalProperties.$router=J,Object.defineProperty(o.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),W&&!fe&&i.value===U&&(fe=!0,k(s.location).catch(R=>{}));const m={};for(const R in U)Object.defineProperty(m,R,{get:()=>i.value[R],enumerable:!0});o.provide(oe,J),o.provide(Ne,pt(m)),o.provide(Ae,i);const p=o.unmount;re.add(o),o.unmount=function(){re.delete(o),re.size<1&&(u=U,Y&&Y(),Y=null,i.value=U,fe=!1,ne=!1),p()}}};function K(o){return o.reduce((m,p)=>m.then(()=>ie(p)),Promise.resolve())}return J}function wn(){return j(oe)}function Sn(e){return j(Ne)}export{Nn as R,Sn as a,Pn as b,In as c,Cn as o,wn as u}; diff --git a/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js.gz b/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js.gz new file mode 100644 index 00000000..2c879ac4 Binary files /dev/null and b/js/vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js.gz differ diff --git a/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js b/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js deleted file mode 100644 index 09af103c..00000000 --- a/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js +++ /dev/null @@ -1 +0,0 @@ -import{m as be,d as ot,p as we,f as ye,j as Ce,w as Ae,l as Pe,x as Be}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as qt}from"./@vue_reactivity@3.5.22-BvBzZonp.js";const ke={defineProvider:{type:Object,default:void 0},maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:n=>[0,1,2,3].includes(n)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function De(n,t,e){const r=ne(t),i=n-1;let o=0;switch(e){case Z.L:o=rt[i][0];break;case Z.M:o=rt[i][1];break;case Z.Q:o=rt[i][2];break;case Z.H:o=rt[i][3];break}return r<=o}function Te(n,t){for(var e=1,r=ne(n),i=0,o=rt.length;irt.length)throw new Error("Too long data");return e}function ne(n){var t=encodeURI(n).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(n)?3:0)}class Ee{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(o[0]=240|(s&1835008)>>>18,o[1]=128|(s&258048)>>>12,o[2]=128|(s&4032)>>>6,o[3]=128|s&63):s>2048?(o[0]=224|(s&61440)>>>12,o[1]=128|(s&4032)>>>6,o[2]=128|s&63):s>128?(o[0]=192|(s&1984)>>>6,o[1]=128|s&63):o[0]=s,e.push(o)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!De(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ee(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ut.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=M.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=M.getBCHTypeInfo(r);for(var o=0;o<15;o++){var s=!t&&(i>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!t&&(i>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,o=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>o&1)==1),M.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,o--,o==-1&&(s++,o=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=at.getRSBlocks(t,e),o=new Se;for(var s=0;sa*8)throw new Error(`code length overflow. (${o.getLengthInBits()}>${a*8})`);for(o.getLengthInBits()+4<=a*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=a*8||(o.put(ut.PAD0,8),o.getLengthInBits()>=a*8));)o.put(ut.PAD1,8);return ut.createBytes(o,i)}static createBytes(t,e){let r=0,i=0,o=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let h=0;for(var c=0;c=0;)e^=M.G15<=0;)e^=M.G18<>>=1;return e}static getPatternPosition(t){return M.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new vt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return G.EXP_TABLE[t]}}G.EXP_TABLE=new Array(256);G.LOG_TABLE=new Array(256);G._constructor=function(){for(var n=0;n<8;n++)G.EXP_TABLE[n]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Vt(n,t){for(var e="",r=0,i=-1,o=0,s,a=0;a<=n.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,o=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,o=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+n.slice(i+1,a):e=n.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return e}function xe(n,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+n+r:r}var dt={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),et(o),o.length!==0&&(t=o+"/"+t,e=o.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else o>c&&(t.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var p=t.charCodeAt(r+f),C=e.charCodeAt(s+f);if(p!==C)break;p===47&&(h=f)}var D="";for(f=r+h+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+e.slice(s+h):(s+=h,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,o=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return xe("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,o;i?(e.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,h=t.length-1,f=0;h>=o;--h){if(r=t.charCodeAt(h),r===47){if(!c){a=h+1;break}continue}l===-1&&(c=!1,l=h+1),r===46?s===-1?s=h:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Ie{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",o="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:o}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[o]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Le(n,{filename:t="",extension:e="",format:T,page:i,quality:o,matte:s,density:a,outline:l,archive:C}={}){var{fromMime:h,toMime:f,expected:p}=new Ie,C=C||"canvas",D=T||e.replace(/@\d+x$/i,"")||_e(t),T=h(f(D)||D),I=f(T),g=n.length;if(!D)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${D}" (expected ${p})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let v,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),v=isFinite(y)?y:isFinite(v)?v:-1,"{}")),w=i>0?i-1:i<0?g+i:void 0;if(isFinite(w)&&w<0||w>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${w} is out of bounds)`:`Canvas has pages 1–${g} (${w} is out of bounds)`);if(n=isFinite(w)?[n[w]]:P||T=="pdf"?n:n.slice(-1),o===void 0)o=.92;else if(typeof o!="number"||!isFinite(o)||o<0||o>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||se(t,D)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:I,pages:n,padding:v,quality:o,matte:s,density:a,outline:l,archive:C}}class Dt{static for(t){return new Dt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,o=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}Dt.prototype.table=(()=>{var n,t,e,r=[];for(n=0;n<256;n++){for(e=n,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[n]=e}return r})();function It(n){let t=new Uint8Array(n),e=new DataView(t.buffer),r={array:t,view:e,size:n,set8(i,o){return e.setUint8(i,o),r},set16(i,o){return e.setUint16(i,o,!0),r},set32(i,o){return e.setUint32(i,o,!0),r},bytes(i,o){return t.set(o,i),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=Tt.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+o.length,l=16,{offset:c}=this,h=It(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,Dt.for(o)).set32(14,o.length).set32(18,o.length).set16(22,i.length);c+=s;let f=It(s+o.length+l).set32(0,67324752).bytes(4,h.array).bytes(30,i).bytes(s,o);c+=o.length,f.set32(a,134695760).bytes(a+4,h.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:h,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:p})=>46+p.length+f,0),e=It(t+22),r=0;for(var{offset:i,name:o,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:h}of this.files)l.set(h.array,c),c+=h.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(n,t,e,r)=>{if(r){let{width:i,height:o}=n,s=Object.assign(document.createElement("canvas"),{width:i,height:o}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,o),a.drawImage(n,0,0),n=s}return new Promise((i,o)=>n.toBlob(i,t,e))},Me=(...n)=>Ft(...n).then(t=>t.arrayBuffer()),Re=async(n,t,e,r,i)=>{ae(i,await Ft(n,t,e,r))},Ne=async(n,t,e,r,i,o,s)=>{let a=h=>o.replace("{}",String(h+1).padStart(s,"0")),l=se(i,".zip")||"archive",c=new Tt(l);await Promise.all(n.map(async(h,f)=>{let p=a(f);await c.add(p,await Ft(h,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(n,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",n),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},Oe=(n,t,e)=>n.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(o.fillStyle=e,o.fillRect(0,0,i.width,i.height)),o.scale(t,t),o.drawImage(s,0,0),i}),$e={asBuffer:Me,asDownload:Re,asZipDownload:Ne,atScale:Oe,options:Le},{asBuffer:Lt,asDownload:Fe,asZipDownload:Ue,atScale:Mt,options:Rt}=$e,Jt=Symbol.for("toDataURL");let je=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[o,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,o,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:h}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:h});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,h]=a.length?a:[c,h];return Object.assign(r,{width:c,height:h}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:h,padding:f,mime:p,quality:C,matte:D,density:T,archive:I}=c,g=Mt(c.pages,T);return f==null?Fe(g[0],p,C,D,a):Ue(g,p,C,D,I,h,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:p,pages:C,density:D}=c,T=Mt(C,D,p)[0];return Lt(T,h,f,p)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:p,pages:C,density:D}=c,T=Mt(C,D,p)[0],I=T[T===r?Jt:"toDataURL"](h,f);return Promise.resolve(I)}})}};const Ge={Canvas:je},wt=(n,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>wt(n,i,e,r));else if(typeof t=="function")t(n,e,r,wt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},wt(n,t[i],e,r[i])):r[i]=t[i](n,e,r,wt)}return e},gt=(n,t)=>(e,r,i,o)=>{t(e,r,i)&&o(e,n,r,i)},ze=(n,t)=>(e,r,i,o)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(o(e,n,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},He=n=>({data:n,pos:0}),W=()=>n=>n.data[n.pos++],le=(n=0)=>t=>t.data[t.pos+n],it=n=>t=>t.data.subarray(t.pos,t.pos+=n),Et=n=>t=>t.data.subarray(t.pos,t.pos+n),Ot=n=>t=>Array.from(it(n)(t)).map(e=>String.fromCharCode(e)).join(""),ft=n=>t=>{const e=it(2)(t);return n?(e[1]<<8)+e[0]:(e[0]<<8)+e[1]},ce=(n,t)=>(e,r,i)=>{const o=typeof t=="function"?t(e,r,i):t,s=it(n),a=new Array(o);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=n[s];return a.length?o[s]=Ke(r,a.index,a.length):o[s]=r[a.index],o},{})};var St={blocks:n=>{const e=[],r=n.data.length;for(var i=0,o=W()(n);o!==0&&o;o=W()(n)){if(n.pos+o>=r){const c=r-n.pos;e.push(it(c)(n)),i+=c;break}e.push(it(o)(n)),i+=o}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Et(2)(n);return t[0]===33&&t[1]===249}),Ze=gt({image:[{code:W()},{descriptor:[{left:ft(!0)},{top:ft(!0)},{width:ft(!0)},{height:ft(!0)},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:ce(3,(n,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(n,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},St]}]},n=>le()(n)===44),qe=gt({text:[{codes:it(2)},{blockSize:W()},{preData:(n,t,e)=>it(e.text.blockSize)(n)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===1}),Ve=gt({application:[{codes:it(2)},{blockSize:W()},{id:(n,t,e)=>Ot(e.blockSize)(n)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===255}),Je=gt({comment:[{codes:it(2)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===254}),We=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ft(!0)},{height:ft(!0)},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:ce(3,(n,t)=>Math.pow(2,t.lsd.gct.size+1))},(n,t)=>t.lsd.gct.exists),{frames:ze([Xe,Ve,Je,Ze,qe],n=>{var t=le()(n);return t===33||t===44})}],Ye=(n,t)=>{const e=new Array(n.length),r=n.length/t,i=function(h,f){const p=n.slice(f*t,(f+1)*t);e.splice.apply(e,[h*t,t].concat(p))},o=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=o[l];c{const o=e;var s,a,l,c,h,f,p,w,C,D,d,T,m,y,S,B;const I=new Array(e),g=new Array(4096),v=new Array(4096),P=new Array(4097);for(T=n,a=1<>=c,w-=c,C>s||C==h)break;if(C==a){c=T+1,l=(1<a;)P[y++]=v[C],C=g[C];m=v[C]&255,P[y++]=m,s<4096&&(g[s]=p,v[s]=m,s++,(s&l)===0&&s<4096&&(c++,l+=s)),p=f}y--,I[B++]=P[y],D++}for(D=B;D{const t=new Uint8Array(n);return wt(He(t),We)},er=n=>{const t=n.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!n.image){console.warn("gif frame does not have associated image.");return}const{image:r}=n,i=r.descriptor.width*r.descriptor.height;var o=Qe(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(o=Ye(o,r.descriptor.width));const s={pixels:o,dims:{top:n.image.descriptor.top,left:n.image.descriptor.left,width:n.image.descriptor.width,height:n.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,n.gce&&(s.delay=(n.gce.delay||10)*10,s.disposalType=n.gce.extras.disposal,n.gce.extras.transparentColorGiven&&(s.transparentIndex=n.gce.transparentColorIndex)),s.patch=er(s),s},ir=(n,t)=>n.frames.filter(e=>e.image).map(e=>rr(e,n.gct));var or=100,K=256,Wt=K-1,ct=4,ue=16,jt=1<>Gt,sr=jt<>3,$t=6,lr=1<<$t,cr=ar*lr,ur=30,fe=10,Ct=1<>3);var g,v;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,v,P,d,w){e[v][0]-=g*(e[v][0]-P)/Ct,e[v][1]-=g*(e[v][1]-d)/Ct,e[v][2]-=g*(e[v][2]-w)/Ct}function h(g,v,P,d,w){for(var m=Math.abs(v-g),y=Math.min(v+g,K),B=v+1,S=v-1,R=1,u,N;Bm;)N=s[R++],Bm&&(u=e[S--],u[0]-=N*(u[0]-P)/pt,u[1]-=N*(u[1]-d)/pt,u[2]-=N*(u[2]-w)/pt)}function f(g,v,P){var d=2147483647,w=d,m=-1,y=m,B,S,R,u,N;for(B=0;B>ue-ct),u>Gt,o[B]-=N,i[B]+=N<>1,v=y+1;v>1,v=y+1;v<256;v++)r[v]=Wt}function C(g,v,P){for(var d,w,m,y=1e3,B=-1,S=r[v],R=S-1;S=0;)S=y?S=K:(S++,m<0&&(m=-m),d=w[0]-g,d<0&&(d=-d),m+=d,m=0&&(w=e[R],m=v-w[1],m>=y?R=-1:(R--,m<0&&(m=-m),d=w[0]-g,d<0&&(d=-d),m+=d,m>$t;for(B<=1&&(B=0),g=0;g=v&&(O-=v),g++,w===0&&(w=1),g%w===0)for(m-=m/P,y-=y/ur,B=y>>$t,B<=1&&(B=0),A=0;A=254&&S(O)}function w(A){m(bt),f=T+2,C=!0,N(T,A)}function m(A){for(var O=0;O=0){lt=z-j,j===0&&(lt=1);do if((j-=lt)<0&&(j+=z),s[j]===b){Y=a[j];continue t}while(s[j]>=0)}N(Y,O),Y=ht,f<1<0&&(A.writeByte(h),A.writeBytes(o,0,h),h=0)}function R(A){return(1<0?l|=A<=8;)d(l&255,O),l>>=8,c-=8;if((f>p||C)&&(C?(p=R(P=D),C=!1):(++P,P==At?p=1<0;)d(l&255,O),l>>=8,c-=8;S(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var n="",t=0;tr+i.length,0));return n.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};q.prototype.writeByte=function(n){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=n};q.prototype.writeUTFBytes=function(n){for(var t=n.length,e=0;e=0&&(this.dispose=n)};$.prototype.setRepeat=function(n){this.repeat=n};$.prototype.setTransparent=function(n){this.transparent=n};$.prototype.addFrame=function(n){this.image=n,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(n){n<1&&(n=1),this.sample=n};$.prototype.setDither=function(n){n===!0&&(n="FloydSteinberg"),this.dither=n};$.prototype.setGlobalPalette=function(n){this.globalPalette=n};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new dr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(n){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+h=0&&S+c>16,(n&65280)>>8,n&255,t)};$.prototype.findClosestRGB=function(n,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(n,t,e);for(var i=0,o=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|n),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var n=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var n=new pr(this.width,this.height,this.indexedPixels,this.colorDepth);n.encode(this.out)};$.prototype.stream=function(){return this.out};var vr=globalThis&&globalThis.__awaiter||function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(f){s(f)}}function l(h){try{c(r.throw(h))}catch(f){s(f)}}function c(h){h.done?o(h.value):i(h.value).then(a,l)}c((r=r.apply(n,t||[])).next())})};const{Canvas:nt}=Ge,Bt=.4;function ie(n){if(!n)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(n.slice(0,4)=="data"){let o=new Image;o.onload=function(){e(o),t(o)},o.onerror=function(){r("Image load error"),t(o)},o.src=n;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=n})}class L{constructor(t){const e=Object.assign({},t);if(Object.keys(L.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:L.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(L.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},L.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:L.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=L.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new nt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ut(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,o,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+o,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e,r+o,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,o,s=-4;const a={r:0,g:0,b:0};let l=0;o=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const h=new nt(i,o).getContext("2d");if(!h)return r;h.drawImage(t,0,0);let f;try{f=h.getImageData(0,0,i,o)}catch{return r}for(;(s+=5*4)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,o=0,s=1){t.fillRect((e+o)*i,(r+o)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,o=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((h,f)=>{L._drawDot(t,e-2+f,r-2,i,o,s),L._drawDot(t,e+2,r-2+f,i,o,s),L._drawDot(t,e+2-f,r+2,i,o,s),L._drawDot(t,e-2,r+2-f,i,o,s)}),L._drawDot(t,e,r,i,o,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((h,f)=>{L._drawDot(t,e-1+f,r-1,i,o,s),L._drawDot(t,e+1,r-1+f,i,o,s),L._drawDot(t,e+1-f,r+1,i,o,s),L._drawDot(t,e-1,r+1-f,i,o,s)})),t.fillStyle=c}_draw(){var t,e,r,i,o,s,a,l,c,h,f,p,C,D,T,I,g,v,P;return vr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,w=this.options.size;let m=this.options.margin;(m<0||m*2>=w)&&(m=0);const y=Math.ceil(m),B=w-2*m,S=this.options.whiteMargin,R=this.options.backgroundDimming,u=Math.ceil(B/d),N=u*d,A=N+2*y,O=new nt(A,A),b=O.getContext("2d");this._clear(),b.save(),b.translate(y,y);const ht=new nt(A,A),j=ht.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const k=tr(this.options.gifBackground);if(Y=k,lt=ir(k),this.options.autoColor){let E=0,x=0,_=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],_+=U[2])}E=~~(E/H),x=~~(x/H),_=~~(_/H),this.options.colorDark=`rgb(${E},${x},${_})`}}else if(this.options.backgroundImage){const k=yield ie(this.options.backgroundImage);if(this.options.autoColor){const E=L._getAverageRGB(k);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}j.drawImage(k,0,0,k.width,k.height,0,0,A,A),j.rect(0,0,A,A),j.fillStyle=R,j.fill()}else j.rect(0,0,A,A),j.fillStyle=this.options.colorLight,j.fill();const z=M.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let k=0;k=d-8)||E>=d-8&&k<8,H=k==6&&E>=8&&E<=d-8||E==6&&k>=8&&k<=d-8;let F=_||H;for(let X=1;X=z[X]-2&&k<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*u+(F?0:zt*u),tt=k*u+(F?0:zt*u);if(b.strokeStyle=x?this.options.colorDark:this.options.colorLight,b.lineWidth=.5,b.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||b.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u);else{const X=E=d-4-5&&k=d-4-5;!F&&!X&&b.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u)}}const J=z[z.length-1],pe=this.options.colorLight;if(b.fillStyle=pe,b.fillRect(0,0,8*u,8*u),b.fillRect(0,(d-8)*u,8*u,8*u),b.fillRect((d-8)*u,0,8*u,8*u),!((o=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||o===void 0)&&o.protectors&&(b.fillRect(8*u,6*u,(d-8-8)*u,u),b.fillRect(6*u,8*u,u,(d-8-8)*u)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&L._drawAlignProtector(b,J,J,u),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let k=0;k=1)&&(E=.2),x<0&&(x=0),_<0&&(_=0);const H=N*E,F=.5*(A-H),U=F;b.restore(),b.fillStyle=this.options.logoBackgroundColor,b.save(),L._prepareRoundedCornerClip(b,F-x,U-x,H+2*x,H+2*x,_+x),b.clip();const tt=b.globalCompositeOperation;b.globalCompositeOperation="destination-out",b.fill(),b.globalCompositeOperation=tt,b.restore(),b.save(),L._prepareRoundedCornerClip(b,F,U,H,H,_),b.clip(),b.drawImage(k,F,U,H,H),b.restore(),b.save(),b.translate(y,y)}if(Y){let k,E,x,_,H,F;if(lt.forEach(function(U){k||(k=new $(w,w),k.setDelay(U.delay),k.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new nt(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!_||!F||tt!==_.width||X!==_.height)&&(_=new nt(tt,X),H=_.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(_.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new nt(A,A),mt=yt.getContext("2d");mt.drawImage(E.getContext("2d").canvas,0,0,A,A),mt.rect(0,0,A,A),mt.fillStyle=R,mt.fill(),mt.drawImage(O.getContext("2d").canvas,0,0,A,A);const _t=new nt(w,w),Zt=_t.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,w,w),k.addFrame(Zt.getImageData(0,0,_t.width,_t.height).data)}),!k)throw new Error("No frames.");if(k.finish(),oe(this.canvas)){const tt=k.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${globalThis.btoa(tt)}`)}return Promise.resolve(Buffer.from(k.stream().toFlattenUint8Array()))}else{j.drawImage(O.getContext("2d").canvas,0,0,A,A),b.drawImage(ht.getContext("2d").canvas,-y,-y,A,A);const k=new nt(w,w);k.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,w,w),this.canvas=k;const x=this.options.gifBackground?"gif":"png";return oe(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}L.CorrectLevel=Z;L.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};L.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:L.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function oe(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function kt(n,...t){if(Array.isArray(n))n.forEach(e=>kt(e,...t));else return n(...t)}const mr=(n,t)=>{const e=document.createElement("a");e.href=n,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},br=n=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=o=>{e(o)},i.onabort=o=>{e(o)},i.readAsArrayBuffer(r.response)},r.open("GET",n),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(n,t){const{expose:e}=t,r=ye(()=>{const{defineProvider:p,size:C,logoCornerRadius:D,maskColor:T}=n,I={"--ray-qrcode-width":C+"px","--ray-qrcode-height":C+"px","--ray-qrcode-border-radius":D+"px","--ray-qrcode-mask-color":T};return Object.assign({},I,p)}),i=qt();let o;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:p}=n;if(p)try{o=await br(p)}catch(C){console.error(C)}},c=()=>{const{gifBackgroundURL:p,gifBackground:C,...D}=n;new L({...D,gifBackground:o??void 0}).draw().then(T=>{const{onSuccess:I}=n;I&&kt(I,T),i.value=T}).catch(T=>{const{onError:I}=n;I&&kt(I,T)})},h=()=>{if(t.slots.errorAction)return;const{onReload:p}=n;p&&kt(p)},f=p=>i.value&&typeof i.value=="string"?new Promise(C=>{mr(i.value,p),C()}):Promise.reject();return Ce(()=>{n.watchText?a=Ae(()=>n.text,()=>c()):a==null||a()}),e({downloadQRCode:f}),Pe(async()=>{await l(),c()}),Be(()=>{a==null||a()}),{qrcodeURL:i,errorActionClick:h,cssVars:r,isClick:s}},render(){return ot("div",{class:"ray-qrcode",style:[this.cssVars]},[ot("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?ot("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):ot("div",{class:"ray-qrcode__spin"},null):null,ot("img",we({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?ot("div",{class:"ray-qrcode__error"},[ot("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),ot("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():ot("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(n){n.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js.gz b/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js.gz deleted file mode 100644 index f63f43a8..00000000 Binary files a/js/vue3-next-qrcode@3.0.2_vue@3.5.22_typescript@5.8.3_-FTo3zMQ0.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js b/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js new file mode 100644 index 00000000..09fab437 --- /dev/null +++ b/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js @@ -0,0 +1 @@ +import{m as be,d as ot,p as we,f as ye,j as Ce,w as Ae,l as Pe,x as Be}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as qt}from"./@vue_reactivity@3.5.25-CWykDyL9.js";const ke={defineProvider:{type:Object,default:void 0},maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:n=>[0,1,2,3].includes(n)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function De(n,t,e){const r=ne(t),i=n-1;let o=0;switch(e){case Z.L:o=rt[i][0];break;case Z.M:o=rt[i][1];break;case Z.Q:o=rt[i][2];break;case Z.H:o=rt[i][3];break}return r<=o}function Te(n,t){for(var e=1,r=ne(n),i=0,o=rt.length;irt.length)throw new Error("Too long data");return e}function ne(n){var t=encodeURI(n).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(n)?3:0)}class Ee{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(o[0]=240|(s&1835008)>>>18,o[1]=128|(s&258048)>>>12,o[2]=128|(s&4032)>>>6,o[3]=128|s&63):s>2048?(o[0]=224|(s&61440)>>>12,o[1]=128|(s&4032)>>>6,o[2]=128|s&63):s>128?(o[0]=192|(s&1984)>>>6,o[1]=128|s&63):o[0]=s,e.push(o)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!De(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ee(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ut.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=M.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=M.getBCHTypeInfo(r);for(var o=0;o<15;o++){var s=!t&&(i>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!t&&(i>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,o=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>o&1)==1),M.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,o--,o==-1&&(s++,o=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=at.getRSBlocks(t,e),o=new Se;for(var s=0;sa*8)throw new Error(`code length overflow. (${o.getLengthInBits()}>${a*8})`);for(o.getLengthInBits()+4<=a*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=a*8||(o.put(ut.PAD0,8),o.getLengthInBits()>=a*8));)o.put(ut.PAD1,8);return ut.createBytes(o,i)}static createBytes(t,e){let r=0,i=0,o=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let h=0;for(var c=0;c=0;)e^=M.G15<=0;)e^=M.G18<>>=1;return e}static getPatternPosition(t){return M.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new vt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return G.EXP_TABLE[t]}}G.EXP_TABLE=new Array(256);G.LOG_TABLE=new Array(256);G._constructor=(function(){for(var n=0;n<8;n++)G.EXP_TABLE[n]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Vt(n,t){for(var e="",r=0,i=-1,o=0,s,a=0;a<=n.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,o=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,o=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+n.slice(i+1,a):e=n.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return e}function xe(n,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+n+r:r}var dt={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),et(o),o.length!==0&&(t=o+"/"+t,e=o.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else o>c&&(t.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var p=t.charCodeAt(r+f),C=e.charCodeAt(s+f);if(p!==C)break;p===47&&(h=f)}var D="";for(f=r+h+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+e.slice(s+h):(s+=h,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,o=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return xe("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,o;i?(e.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,h=t.length-1,f=0;h>=o;--h){if(r=t.charCodeAt(h),r===47){if(!c){a=h+1;break}continue}l===-1&&(c=!1,l=h+1),r===46?s===-1?s=h:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Ie{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",o="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:o}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[o]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Le(n,{filename:t="",extension:e="",format:T,page:i,quality:o,matte:s,density:a,outline:l,archive:C}={}){var{fromMime:h,toMime:f,expected:p}=new Ie,C=C||"canvas",D=T||e.replace(/@\d+x$/i,"")||_e(t),T=h(f(D)||D),I=f(T),g=n.length;if(!D)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${D}" (expected ${p})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let v,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),v=isFinite(y)?y:isFinite(v)?v:-1,"{}")),w=i>0?i-1:i<0?g+i:void 0;if(isFinite(w)&&w<0||w>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${w} is out of bounds)`:`Canvas has pages 1–${g} (${w} is out of bounds)`);if(n=isFinite(w)?[n[w]]:P||T=="pdf"?n:n.slice(-1),o===void 0)o=.92;else if(typeof o!="number"||!isFinite(o)||o<0||o>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||se(t,D)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:I,pages:n,padding:v,quality:o,matte:s,density:a,outline:l,archive:C}}class Dt{static for(t){return new Dt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,o=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}Dt.prototype.table=(()=>{var n,t,e,r=[];for(n=0;n<256;n++){for(e=n,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[n]=e}return r})();function It(n){let t=new Uint8Array(n),e=new DataView(t.buffer),r={array:t,view:e,size:n,set8(i,o){return e.setUint8(i,o),r},set16(i,o){return e.setUint16(i,o,!0),r},set32(i,o){return e.setUint32(i,o,!0),r},bytes(i,o){return t.set(o,i),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=Tt.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+o.length,l=16,{offset:c}=this,h=It(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,Dt.for(o)).set32(14,o.length).set32(18,o.length).set16(22,i.length);c+=s;let f=It(s+o.length+l).set32(0,67324752).bytes(4,h.array).bytes(30,i).bytes(s,o);c+=o.length,f.set32(a,134695760).bytes(a+4,h.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:h,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:p})=>46+p.length+f,0),e=It(t+22),r=0;for(var{offset:i,name:o,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:h}of this.files)l.set(h.array,c),c+=h.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(n,t,e,r)=>{if(r){let{width:i,height:o}=n,s=Object.assign(document.createElement("canvas"),{width:i,height:o}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,o),a.drawImage(n,0,0),n=s}return new Promise((i,o)=>n.toBlob(i,t,e))},Me=(...n)=>Ft(...n).then(t=>t.arrayBuffer()),Re=async(n,t,e,r,i)=>{ae(i,await Ft(n,t,e,r))},Ne=async(n,t,e,r,i,o,s)=>{let a=h=>o.replace("{}",String(h+1).padStart(s,"0")),l=se(i,".zip")||"archive",c=new Tt(l);await Promise.all(n.map(async(h,f)=>{let p=a(f);await c.add(p,await Ft(h,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(n,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",n),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},Oe=(n,t,e)=>n.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(o.fillStyle=e,o.fillRect(0,0,i.width,i.height)),o.scale(t,t),o.drawImage(s,0,0),i}),$e={asBuffer:Me,asDownload:Re,asZipDownload:Ne,atScale:Oe,options:Le},{asBuffer:Lt,asDownload:Fe,asZipDownload:Ue,atScale:Mt,options:Rt}=$e,Jt=Symbol.for("toDataURL");let je=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[o,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,o,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:h}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:h});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,h]=a.length?a:[c,h];return Object.assign(r,{width:c,height:h}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:h,padding:f,mime:p,quality:C,matte:D,density:T,archive:I}=c,g=Mt(c.pages,T);return f==null?Fe(g[0],p,C,D,a):Ue(g,p,C,D,I,h,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:p,pages:C,density:D}=c,T=Mt(C,D,p)[0];return Lt(T,h,f,p)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:p,pages:C,density:D}=c,T=Mt(C,D,p)[0],I=T[T===r?Jt:"toDataURL"](h,f);return Promise.resolve(I)}})}};const Ge={Canvas:je},wt=(n,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>wt(n,i,e,r));else if(typeof t=="function")t(n,e,r,wt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},wt(n,t[i],e,r[i])):r[i]=t[i](n,e,r,wt)}return e},gt=(n,t)=>(e,r,i,o)=>{t(e,r,i)&&o(e,n,r,i)},ze=(n,t)=>(e,r,i,o)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(o(e,n,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},He=n=>({data:n,pos:0}),W=()=>n=>n.data[n.pos++],le=(n=0)=>t=>t.data[t.pos+n],it=n=>t=>t.data.subarray(t.pos,t.pos+=n),Et=n=>t=>t.data.subarray(t.pos,t.pos+n),Ot=n=>t=>Array.from(it(n)(t)).map(e=>String.fromCharCode(e)).join(""),ft=n=>t=>{const e=it(2)(t);return n?(e[1]<<8)+e[0]:(e[0]<<8)+e[1]},ce=(n,t)=>(e,r,i)=>{const o=typeof t=="function"?t(e,r,i):t,s=it(n),a=new Array(o);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=n[s];return a.length?o[s]=Ke(r,a.index,a.length):o[s]=r[a.index],o},{})};var St={blocks:n=>{const e=[],r=n.data.length;for(var i=0,o=W()(n);o!==0&&o;o=W()(n)){if(n.pos+o>=r){const c=r-n.pos;e.push(it(c)(n)),i+=c;break}e.push(it(o)(n)),i+=o}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Et(2)(n);return t[0]===33&&t[1]===249}),Ze=gt({image:[{code:W()},{descriptor:[{left:ft(!0)},{top:ft(!0)},{width:ft(!0)},{height:ft(!0)},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:ce(3,(n,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(n,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},St]}]},n=>le()(n)===44),qe=gt({text:[{codes:it(2)},{blockSize:W()},{preData:(n,t,e)=>it(e.text.blockSize)(n)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===1}),Ve=gt({application:[{codes:it(2)},{blockSize:W()},{id:(n,t,e)=>Ot(e.blockSize)(n)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===255}),Je=gt({comment:[{codes:it(2)},St]},n=>{var t=Et(2)(n);return t[0]===33&&t[1]===254}),We=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ft(!0)},{height:ft(!0)},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:ce(3,(n,t)=>Math.pow(2,t.lsd.gct.size+1))},(n,t)=>t.lsd.gct.exists),{frames:ze([Xe,Ve,Je,Ze,qe],n=>{var t=le()(n);return t===33||t===44})}],Ye=(n,t)=>{const e=new Array(n.length),r=n.length/t,i=function(h,f){const p=n.slice(f*t,(f+1)*t);e.splice.apply(e,[h*t,t].concat(p))},o=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=o[l];c{const o=e;var s,a,l,c,h,f,p,w,C,D,d,T,m,y,S,B;const I=new Array(e),g=new Array(4096),v=new Array(4096),P=new Array(4097);for(T=n,a=1<>=c,w-=c,C>s||C==h)break;if(C==a){c=T+1,l=(1<a;)P[y++]=v[C],C=g[C];m=v[C]&255,P[y++]=m,s<4096&&(g[s]=p,v[s]=m,s++,(s&l)===0&&s<4096&&(c++,l+=s)),p=f}y--,I[B++]=P[y],D++}for(D=B;D{const t=new Uint8Array(n);return wt(He(t),We)},er=n=>{const t=n.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!n.image)return;const{image:r}=n,i=r.descriptor.width*r.descriptor.height;var o=Qe(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(o=Ye(o,r.descriptor.width));const s={pixels:o,dims:{top:n.image.descriptor.top,left:n.image.descriptor.left,width:n.image.descriptor.width,height:n.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,n.gce&&(s.delay=(n.gce.delay||10)*10,s.disposalType=n.gce.extras.disposal,n.gce.extras.transparentColorGiven&&(s.transparentIndex=n.gce.transparentColorIndex)),s.patch=er(s),s},ir=(n,t)=>n.frames.filter(e=>e.image).map(e=>rr(e,n.gct));var or=100,K=256,Wt=K-1,ct=4,ue=16,jt=1<>Gt,sr=jt<>3,$t=6,lr=1<<$t,cr=ar*lr,ur=30,fe=10,Ct=1<>3);var g,v;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,v,P,d,w){e[v][0]-=g*(e[v][0]-P)/Ct,e[v][1]-=g*(e[v][1]-d)/Ct,e[v][2]-=g*(e[v][2]-w)/Ct}function h(g,v,P,d,w){for(var m=Math.abs(v-g),y=Math.min(v+g,K),B=v+1,S=v-1,R=1,u,N;Bm;)N=s[R++],Bm&&(u=e[S--],u[0]-=N*(u[0]-P)/pt,u[1]-=N*(u[1]-d)/pt,u[2]-=N*(u[2]-w)/pt)}function f(g,v,P){var d=2147483647,w=d,m=-1,y=m,B,S,R,u,N;for(B=0;B>ue-ct),u>Gt,o[B]-=N,i[B]+=N<>1,v=y+1;v>1,v=y+1;v<256;v++)r[v]=Wt}function C(g,v,P){for(var d,w,m,y=1e3,B=-1,S=r[v],R=S-1;S=0;)S=y?S=K:(S++,m<0&&(m=-m),d=w[0]-g,d<0&&(d=-d),m+=d,m=0&&(w=e[R],m=v-w[1],m>=y?R=-1:(R--,m<0&&(m=-m),d=w[0]-g,d<0&&(d=-d),m+=d,m>$t;for(B<=1&&(B=0),g=0;g=v&&(O-=v),g++,w===0&&(w=1),g%w===0)for(m-=m/P,y-=y/ur,B=y>>$t,B<=1&&(B=0),A=0;A=254&&S(O)}function w(A){m(bt),f=T+2,C=!0,N(T,A)}function m(A){for(var O=0;O=0){lt=z-j,j===0&&(lt=1);do if((j-=lt)<0&&(j+=z),s[j]===b){Y=a[j];continue t}while(s[j]>=0)}N(Y,O),Y=ht,f<1<0&&(A.writeByte(h),A.writeBytes(o,0,h),h=0)}function R(A){return(1<0?l|=A<=8;)d(l&255,O),l>>=8,c-=8;if((f>p||C)&&(C?(p=R(P=D),C=!1):(++P,P==At?p=1<0;)d(l&255,O),l>>=8,c-=8;S(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var n="",t=0;tr+i.length,0));return n.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};q.prototype.writeByte=function(n){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=n};q.prototype.writeUTFBytes=function(n){for(var t=n.length,e=0;e=0&&(this.dispose=n)};$.prototype.setRepeat=function(n){this.repeat=n};$.prototype.setTransparent=function(n){this.transparent=n};$.prototype.addFrame=function(n){this.image=n,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(n){n<1&&(n=1),this.sample=n};$.prototype.setDither=function(n){n===!0&&(n="FloydSteinberg"),this.dither=n};$.prototype.setGlobalPalette=function(n){this.globalPalette=n};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new dr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(n){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+h=0&&S+c>16,(n&65280)>>8,n&255,t)};$.prototype.findClosestRGB=function(n,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(n,t,e);for(var i=0,o=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|n),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var n=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var n=new pr(this.width,this.height,this.indexedPixels,this.colorDepth);n.encode(this.out)};$.prototype.stream=function(){return this.out};var vr=globalThis&&globalThis.__awaiter||function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(f){s(f)}}function l(h){try{c(r.throw(h))}catch(f){s(f)}}function c(h){h.done?o(h.value):i(h.value).then(a,l)}c((r=r.apply(n,t||[])).next())})};const{Canvas:nt}=Ge,Bt=.4;function ie(n){if(!n)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(n.slice(0,4)=="data"){let o=new Image;o.onload=function(){e(o),t(o)},o.onerror=function(){r("Image load error"),t(o)},o.src=n;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=n})}class L{constructor(t){const e=Object.assign({},t);if(Object.keys(L.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:L.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(L.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},L.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:L.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=L.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new nt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ut(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,o,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+o,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e,r+o,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,o,s=-4;const a={r:0,g:0,b:0};let l=0;o=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const h=new nt(i,o).getContext("2d");if(!h)return r;h.drawImage(t,0,0);let f;try{f=h.getImageData(0,0,i,o)}catch{return r}for(;(s+=20)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,o=0,s=1){t.fillRect((e+o)*i,(r+o)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,o=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((h,f)=>{L._drawDot(t,e-2+f,r-2,i,o,s),L._drawDot(t,e+2,r-2+f,i,o,s),L._drawDot(t,e+2-f,r+2,i,o,s),L._drawDot(t,e-2,r+2-f,i,o,s)}),L._drawDot(t,e,r,i,o,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((h,f)=>{L._drawDot(t,e-1+f,r-1,i,o,s),L._drawDot(t,e+1,r-1+f,i,o,s),L._drawDot(t,e+1-f,r+1,i,o,s),L._drawDot(t,e-1,r+1-f,i,o,s)})),t.fillStyle=c}_draw(){var t,e,r,i,o,s,a,l,c,h,f,p,C,D,T,I,g,v,P;return vr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,w=this.options.size;let m=this.options.margin;(m<0||m*2>=w)&&(m=0);const y=Math.ceil(m),B=w-2*m,S=this.options.whiteMargin,R=this.options.backgroundDimming,u=Math.ceil(B/d),N=u*d,A=N+2*y,O=new nt(A,A),b=O.getContext("2d");this._clear(),b.save(),b.translate(y,y);const ht=new nt(A,A),j=ht.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const k=tr(this.options.gifBackground);if(Y=k,lt=ir(k),this.options.autoColor){let E=0,x=0,_=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],_+=U[2])}E=~~(E/H),x=~~(x/H),_=~~(_/H),this.options.colorDark=`rgb(${E},${x},${_})`}}else if(this.options.backgroundImage){const k=yield ie(this.options.backgroundImage);if(this.options.autoColor){const E=L._getAverageRGB(k);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}j.drawImage(k,0,0,k.width,k.height,0,0,A,A),j.rect(0,0,A,A),j.fillStyle=R,j.fill()}else j.rect(0,0,A,A),j.fillStyle=this.options.colorLight,j.fill();const z=M.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let k=0;k=d-8)||E>=d-8&&k<8,H=k==6&&E>=8&&E<=d-8||E==6&&k>=8&&k<=d-8;let F=_||H;for(let X=1;X=z[X]-2&&k<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*u+(F?0:zt*u),tt=k*u+(F?0:zt*u);if(b.strokeStyle=x?this.options.colorDark:this.options.colorLight,b.lineWidth=.5,b.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||b.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u);else{const X=E=d-4-5&&k=d-4-5;!F&&!X&&b.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u)}}const J=z[z.length-1],pe=this.options.colorLight;if(b.fillStyle=pe,b.fillRect(0,0,8*u,8*u),b.fillRect(0,(d-8)*u,8*u,8*u),b.fillRect((d-8)*u,0,8*u,8*u),!((o=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||o===void 0)&&o.protectors&&(b.fillRect(8*u,6*u,(d-8-8)*u,u),b.fillRect(6*u,8*u,u,(d-8-8)*u)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&L._drawAlignProtector(b,J,J,u),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let k=0;k=1)&&(E=.2),x<0&&(x=0),_<0&&(_=0);const H=N*E,F=.5*(A-H),U=F;b.restore(),b.fillStyle=this.options.logoBackgroundColor,b.save(),L._prepareRoundedCornerClip(b,F-x,U-x,H+2*x,H+2*x,_+x),b.clip();const tt=b.globalCompositeOperation;b.globalCompositeOperation="destination-out",b.fill(),b.globalCompositeOperation=tt,b.restore(),b.save(),L._prepareRoundedCornerClip(b,F,U,H,H,_),b.clip(),b.drawImage(k,F,U,H,H),b.restore(),b.save(),b.translate(y,y)}if(Y){let k,E,x,_,H,F;if(lt.forEach(function(U){k||(k=new $(w,w),k.setDelay(U.delay),k.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new nt(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!_||!F||tt!==_.width||X!==_.height)&&(_=new nt(tt,X),H=_.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(_.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new nt(A,A),mt=yt.getContext("2d");mt.drawImage(E.getContext("2d").canvas,0,0,A,A),mt.rect(0,0,A,A),mt.fillStyle=R,mt.fill(),mt.drawImage(O.getContext("2d").canvas,0,0,A,A);const _t=new nt(w,w),Zt=_t.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,w,w),k.addFrame(Zt.getImageData(0,0,_t.width,_t.height).data)}),!k)throw new Error("No frames.");if(k.finish(),oe(this.canvas)){const tt=k.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${globalThis.btoa(tt)}`)}return Promise.resolve(Buffer.from(k.stream().toFlattenUint8Array()))}else{j.drawImage(O.getContext("2d").canvas,0,0,A,A),b.drawImage(ht.getContext("2d").canvas,-y,-y,A,A);const k=new nt(w,w);k.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,w,w),this.canvas=k;const x=this.options.gifBackground?"gif":"png";return oe(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}L.CorrectLevel=Z;L.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};L.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:L.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function oe(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function kt(n,...t){if(Array.isArray(n))n.forEach(e=>kt(e,...t));else return n(...t)}const mr=(n,t)=>{const e=document.createElement("a");e.href=n,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},br=n=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=o=>{e(o)},i.onabort=o=>{e(o)},i.readAsArrayBuffer(r.response)},r.open("GET",n),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(n,t){const{expose:e}=t,r=ye(()=>{const{defineProvider:p,size:C,logoCornerRadius:D,maskColor:T}=n,I={"--ray-qrcode-width":C+"px","--ray-qrcode-height":C+"px","--ray-qrcode-border-radius":D+"px","--ray-qrcode-mask-color":T};return Object.assign({},I,p)}),i=qt();let o;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:p}=n;if(p)try{o=await br(p)}catch{}},c=()=>{const{gifBackgroundURL:p,gifBackground:C,...D}=n;new L({...D,gifBackground:o??void 0}).draw().then(T=>{const{onSuccess:I}=n;I&&kt(I,T),i.value=T}).catch(T=>{const{onError:I}=n;I&&kt(I,T)})},h=()=>{if(t.slots.errorAction)return;const{onReload:p}=n;p&&kt(p)},f=p=>i.value&&typeof i.value=="string"?new Promise(C=>{mr(i.value,p),C()}):Promise.reject();return Ce(()=>{n.watchText?a=Ae(()=>n.text,()=>c()):a?.()}),e({downloadQRCode:f}),Pe(async()=>{await l(),c()}),Be(()=>{a?.()}),{qrcodeURL:i,errorActionClick:h,cssVars:r,isClick:s}},render(){return ot("div",{class:"ray-qrcode",style:[this.cssVars]},[ot("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?ot("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):ot("div",{class:"ray-qrcode__spin"},null):null,ot("img",we({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?ot("div",{class:"ray-qrcode__error"},[ot("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),ot("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():ot("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(n){n.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js.gz b/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js.gz new file mode 100644 index 00000000..e2f3a020 Binary files /dev/null and b/js/vue3-next-qrcode@3.0.2_vue@3.5.25_typescript@5.9.3_-BLwb1SCN.js.gz differ diff --git a/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js b/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js deleted file mode 100644 index 8b137891..00000000 --- a/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js.gz b/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js.gz deleted file mode 100644 index 7bb6dce8..00000000 Binary files a/js/vue@3.5.22_typescript@5.8.3-l0sNRNKZ.js.gz and /dev/null differ diff --git a/js/birpc@2.3.0-l0sNRNKZ.js b/js/vue@3.5.25_typescript@5.9.3-l0sNRNKZ.js similarity index 100% rename from js/birpc@2.3.0-l0sNRNKZ.js rename to js/vue@3.5.25_typescript@5.9.3-l0sNRNKZ.js diff --git a/js/birpc@2.3.0-l0sNRNKZ.js.gz b/js/vue@3.5.25_typescript@5.9.3-l0sNRNKZ.js.gz similarity index 100% rename from js/birpc@2.3.0-l0sNRNKZ.js.gz rename to js/vue@3.5.25_typescript@5.9.3-l0sNRNKZ.js.gz diff --git a/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js b/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js deleted file mode 100644 index ead58072..00000000 --- a/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,e as De,a as Ne}from"./seemly@0.3.9-DfXeAbNj.js";import{J as _e,F as Ie,N as je,m as W,y as Ee,g as Fe,x as ne,i as re,O as Ce,h as z,T as Pe,f as D,l as R,w as Q,n as Ae,U as Be,p as Ue,L as qe,M as Ke}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{k as C,o as N}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import{C as et}from"./css-render@0.15.14-C5toWlUr.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function ke(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return ke(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Fe())===null||e===void 0?void 0:e.proxy);const t=re("VBinder",null),r=C(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=ke(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return ne(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=re("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Ce(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class Oe{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ft=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=re("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=C(null),o=C(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),ne(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Ce(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Fe().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),ne(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=C(0),o=C(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new Oe(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=re(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ct=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;qe(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),Ke(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=C(null),h=C(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new Oe(s.length,c);return s.forEach((I,F)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(F,A)}),$}),d=C(0),f=C(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),F=[];for(let S=$;S<=I;++S)F.push(c[S]);return F}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:F,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(F!==void 0){const le=u.value.get(F);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:F,offsetHeight:S}=l.value;if(I>F){const A=$.get(s);I+A<=F+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:F}=x,S=u.value.get(s),A=F.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;F.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=F.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:C(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ue(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=C(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=C(null),r=C(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),ne(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ct as a,Ft as b,Et as c,Bt as d,At as e,Me as r}; diff --git a/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js.gz b/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js.gz deleted file mode 100644 index 6a7f91bd..00000000 Binary files a/js/vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js.gz and /dev/null differ diff --git a/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js b/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js new file mode 100644 index 00000000..8527bf21 --- /dev/null +++ b/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js @@ -0,0 +1 @@ +import{a as Z,o as fe}from"./evtd@0.2.4-w6UMCrcr.js";import{B as Te,d as pe,z as G,e as Ye,a as De}from"./seemly@0.3.10-8_5gPa5q.js";import{J as Ne,F as ze,N as _e,m as W,y as Ie,g as Ee,x as ne,i as re,O as Fe,h as z,T as je,f as D,l as R,w as Q,n as Ce,U as Ae,p as Pe,L as Ue,M as qe}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{k as C,o as N}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import{h as Ke,u as q,o as Ge,i as Je}from"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import{z as Qe}from"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import{R as Ze}from"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import{C as Re}from"./css-render@0.15.14-DTtBB2Mk.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(Ne(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===ze){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==_e&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function Be(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function et(n,e){const t=Be();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=Be();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function tt(n){return n.nodeType===9?null:n.parentNode}function We(n){if(n===null)return null;const e=tt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return We(e)}const zt=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ie("VBinder",(e=Ee())===null||e===void 0?void 0:e.proxy);const t=re("VBinder",null),r=C(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=We(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{Te(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return ne(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),It=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=re("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});const{c:B}=Re(),ie="vueuc-style";function ve(n){return n&-n}class ke{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=ve(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(je,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},we={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},rt={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},ot={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},it={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ge={top:!0,bottom:!1,left:!0,right:!1},ye={top:"end",bottom:"start",left:"end",right:"start"};function lt(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ge[m]?g:-g:a=ge[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=it[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=we[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=ye[f],h=p(v,f,x)):(l=ye[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Et=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=re("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=C(null),o=C(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();at.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),ne(()=>{b()}),Ge(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?et(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=lt(E,i,H,_,V,a),s=st(U,a),{left:c,top:y,transform:$}=ut(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ce().then(l).catch(d=>{})};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Je(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(nt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Qe,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class dt{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Ze)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const xe=new dt,Me=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ee().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){return}o.nextElementSibling!==null&&(xe.registerHandler(o.nextElementSibling,r),e=!0)}),ne(()=>{e&&xe.unregisterHandler(t.$el.nextElementSibling)})},render(){return Ae(this.$slots,"default")}});let te;function ft(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function $e(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Oe="VVirtualListXScroll";function ct({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=C(0),o=C(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new ke(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ie(Oe,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Se=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=re(Oe);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),ht=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();ht.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ct({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=C(null),h=C(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new ke(s.length,c);return s.forEach((I,F)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(F,A)}),$}),d=C(0),f=C(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),F=[];for(let S=$;S<=I;++S)F.push(c[S]);return F}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:F,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(F!==void 0){const le=u.value.get(F);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:F,offsetHeight:S}=l.value;if(I>F){const A=$.get(s);I+A<=F+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:F}=x,S=u.value.get(s),A=F.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;F.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=F.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ft();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/$e(),y.scrollLeft+=s.deltaX/$e(),P(),T=!0,Te(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:C(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z(Me,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Pe(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Se,{index:p,item:l}):void 0,d=w!=null?z(Se,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z(Me,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),pt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),Ct=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=C(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return mt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ce(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Ae(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Le(n){return n instanceof HTMLElement}function Ve(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Le(t)&&(Xe(t)||He(t)))return!0}return!1}function Xe(n){if(!vt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function vt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Bt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=Ye(),t=C(null),r=C(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),ne(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(De(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=be(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=be(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?Ve(M):He(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(ze,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{zt as B,Bt as F,nt as L,Me as V,Ft as a,Et as b,It as c,At as d,Ct as e,xe as r}; diff --git a/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js.gz b/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js.gz new file mode 100644 index 00000000..63f89d99 Binary files /dev/null and b/js/vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js.gz differ diff --git a/js/zh-CN-B2ZX_Lvi.js b/js/zh-CN-B2ZX_Lvi.js deleted file mode 100644 index 8b8ea204..00000000 --- a/js/zh-CN-B2ZX_Lvi.js +++ /dev/null @@ -1 +0,0 @@ -import{E as eo}from"./hooks-CkuihJ2J.js";import"./dayjs@1.11.13-Dcmsq1le.js";import"./print-js@1.6.0-DO6wNZql.js";import"./vue-hooks-plus@2.4.1_vue@3.5.22_typescript@5.8.3_-BzR0ILoJ.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CSmfy_M5.js";import"./jsbarcode@3.11.6-_Q8BloHp.js";import"./@logicflow_core@2.0.10-9WfPQnfd.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-BC7ZohPc.js";import"./lodash-es@4.17.21-UVJw7vmf.js";import"./naive-ui@2.42.0_vue@3.5.22_typescript@5.8.3_-B-2U36al.js";import"./date-fns@3.6.0-BMcLdxE-.js";import"./seemly@0.3.9-DfXeAbNj.js";import"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import"./@vue_reactivity@3.5.22-BvBzZonp.js";import"./@vue_shared@3.5.22-Dikn8ojA.js";import"./vueuc@0.4.65_vue@3.5.22_typescript@5.8.3_-DO3TRUEm.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.22_typescript@5.8.3_-sfXRLDlE.js";import"./vooks@0.2.12_vue@3.5.22_typescript@5.8.3_-VLnMYPF3.js";import"./vdirs@0.1.8_vue@3.5.22_typescript@5.8.3_-BAjskub0.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.22-Ieyd1mDe.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-7cEoHFIO.js";import"./async-validator@4.2.5-9PlIezaS.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@13.1.0_vue@3.5.22_typescript@5.8.3_-CMmEUp66.js";import"./@vueuse_shared@13.1.0_vue@3.5.22_typescript@5.8.3_-5MQZzf_V.js";import"./utils-BPTDWjJB.js";import"./pinia-plugin-persistedstate@4.4.1_@nuxt_kit@3.15.0_rollup@4.40.0__pinia@3.0.3_typescript@5.8._z3r6ibho6sncadeyaqibeixgtm-Nz2jvMPc.js";import"./destr@2.0.5-BPvN1X9m.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.8.3_vue@3.5.22_typescript@5.8.3_-DN8CPY6I.js";import"./html-to-image@1.11.13-C6a6vdc2.js";import"./vue-router@4.6.3_vue@3.5.22_typescript@5.8.3_-DWPAxlpM.js";import"./interactjs@1.10.27-BJB5VkCx.js";import"./classnames@2.5.1-Dfc4g_b4.js";import"./vue-i18n@9.13.1_vue@3.5.22_typescript@5.8.3_-C2xKEF9G.js";import"./@intlify_shared@9.13.1-CM6R_CZ5.js";import"./@intlify_core-base@9.13.1-BNWv53cz.js";import"./@intlify_message-compiler@9.13.1-4K4Nd_mc.js";import"./echarts@6.0.0-BTrF8XjC.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./zrender@6.0.0-Dzb6jg8s.js";import"./mobx@5.15.7-DLDjekon.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-OHXNXF9n.js";import"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";const o="当前环境不支持全屏",no={isEnabledFullscreen:o},io=Object.freeze(Object.defineProperty({__proto__:null,default:no,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",ro={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},so=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:ro},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",s="锁屏",c="设置",l="Github",p="全屏",m="退出全屏",a="搜索",co={Reload:r,Lock:s,Setting:c,Github:l,FullScreen:p,CancelFullScreen:m,Search:a},lo=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:p,Github:l,Lock:s,Reload:r,Search:a,Setting:c,default:co},Symbol.toStringTag,{value:"Module"})),_="请求",g="条形码",u="缓存工具函数",d="数字精度",b="右键菜单",f="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="拖拽卡片",C="可视化",j="流程图",v="表单",D="Mock 数据",M="模态框",P="多级菜单(缓存)",z="办公",N="文档",R="演示",I="表格",k="二维码",L="依赖项",x="关于",F="页面详情模式",w="分段器",A="SVG 图标",E="表格",G="自适应高度表格",$="高级表格",H="模板内置 Api",Q="滚动动画",po={Axios:_,Barcode:g,CacheDemo:u,CalculatePrecision:d,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,DraggableCard:y,Echart:C,Error:"错误页",Flow:j,Form:v,Mock:D,Modal:M,MultiMenu:P,Office:z,Office_Document:N,Office_Presentation:R,Office_Spreadsheet:I,QRCode:k,Rely:L,RelyAbout:x,RouterDemo:F,Segment:w,SvgIcon:A,Table:E,TableAutoHeight:G,TablePro:$,TemplateHooks:H,scrollReveal:Q},mo=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:g,CacheDemo:u,CalculatePrecision:d,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,DraggableCard:y,Echart:C,Flow:j,Form:v,Mock:D,Modal:M,MultiMenu:P,Office:z,Office_Document:N,Office_Presentation:R,Office_Spreadsheet:I,QRCode:k,Rely:L,RelyAbout:x,RouterDemo:F,Segment:w,SvgIcon:A,Table:E,TableAutoHeight:G,TablePro:$,TemplateHooks:H,default:po,scrollReveal:Q},Symbol.toStringTag,{value:"Module"})),B="项目配置",V={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},q="界面显示",ao={Title:B,ThemeOptions:V,InterfaceDisplay:q},_o=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:q,ThemeOptions:V,Title:B,default:ao},Symbol.toStringTag,{value:"Module"})),J="注册",K="登录",U="扫码登陆",W="请输入用户名",X="请输入密码",Y="登 陆",Z="用户名",oo="密码",to="开箱即用的中后台管理系统",go={Register:J,Signing:K,QRCodeSigning:U,NamePlaceholder:W,PasswordPlaceholder:X,Login:Y,Name:Z,Password:oo,RayTemplate:to},uo=Object.freeze(Object.defineProperty({__proto__:null,Login:Y,Name:Z,NamePlaceholder:W,Password:oo,PasswordPlaceholder:X,QRCodeSigning:U,RayTemplate:to,Register:J,Signing:K,default:go},Symbol.toStringTag,{value:"Module"})),bo=Object.assign({"./zh-CN/globalMessage.json":io,"./zh-CN/headerSettingOptions.json":so,"./zh-CN/headerTooltip.json":lo,"./zh-CN/menu.json":mo,"./zh-CN/setting.json":_o,"./zh-CN/views/login/index.json":uo}),ft={message:{...eo(bo,"zh-CN")}};export{ft as default}; diff --git a/js/zh-CN-B2ZX_Lvi.js.gz b/js/zh-CN-B2ZX_Lvi.js.gz deleted file mode 100644 index c131251b..00000000 Binary files a/js/zh-CN-B2ZX_Lvi.js.gz and /dev/null differ diff --git a/js/zh-CN-HLgExb6j.js b/js/zh-CN-HLgExb6j.js new file mode 100644 index 00000000..538f3933 --- /dev/null +++ b/js/zh-CN-HLgExb6j.js @@ -0,0 +1 @@ +import{x as eo}from"./hooks-MEhk8snd.js";import"./dayjs@1.11.13-DqFijdaO.js";import"./print-js@1.6.0-jNcZ-gME.js";import"./vue-hooks-plus@2.4.1_vue@3.5.25_typescript@5.9.3_-CTUohtp4.js";import"./js-cookie@3.0.5-W_rRtFe1.js";import"./screenfull@5.2.0-wmrknyQD.js";import"./jsbarcode@3.11.6-DMXogPYv.js";import"./@logicflow_core@2.0.10-BJ3yfRtr.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CY9_LSXq.js";import"./preact@10.25.4-HyjdtmFg.js";import"./currency.js@2.0.4-BSkspdt3.js";import"./crypto-js@4.2.0-Bv3pmx0c.js";import"./@vueuse_core@13.1.0_vue@3.5.25_typescript@5.9.3_-D95kAPXK.js";import"./@vueuse_shared@13.1.0_vue@3.5.25_typescript@5.9.3_-eMpvzBVj.js";import"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import"./@vue_reactivity@3.5.25-CWykDyL9.js";import"./@vue_shared@3.5.25-ClSOc5xY.js";import"./lodash-es@4.17.21-CFdI1ypR.js";import"./naive-ui@2.43.2_vue@3.5.25_typescript@5.9.3_-CuzQtRgy.js";import"./date-fns@4.1.0-D7sOP3Nv.js";import"./seemly@0.3.10-8_5gPa5q.js";import"./vueuc@0.4.65_vue@3.5.25_typescript@5.9.3_-BiVDcjr0.js";import"./evtd@0.2.4-w6UMCrcr.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.25_typescript@5.9.3_-DbFiQpGI.js";import"./vooks@0.2.12_vue@3.5.25_typescript@5.9.3_-CkUeikoP.js";import"./vdirs@0.1.8_vue@3.5.25_typescript@5.9.3_-D2i3_uv1.js";import"./@juggle_resize-observer@3.4.0-DB6f1vmu.js";import"./css-render@0.15.14-DTtBB2Mk.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.25-qbdLeVMc.js";import"./treemate@0.3.11-fnkdj-jo.js";import"./date-fns-tz@3.2.0_date-fns@4.1.0-D_9zH1c_.js";import"./async-validator@4.2.5-B7g11KvB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-DQkPmH6r.js";import"./utils-DJW6-rvp.js";import"./pinia-plugin-persistedstate@4.4.1_pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3__-BC_H5euo.js";import"./destr@2.0.5-Ctyiwlcu.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@3.0.3_typescript@5.9.3_vue@3.5.25_typescript@5.9.3_-Bshsd_Oe.js";import"./html-to-image@1.11.13-DOj4Zvaj.js";import"./vue-i18n@11.1.3_vue@3.5.25_typescript@5.9.3_-DnWoR0oZ.js";import"./@intlify_core-base@11.1.3-Cez6J5Vx.js";import"./@intlify_shared@11.1.3-Byx4ULsF.js";import"./@intlify_message-compiler@11.1.3-DphV8pYf.js";import"./echarts@6.0.0-DFotDgc6.js";import"./tslib@2.3.0-Cg4x8ZAA.js";import"./zrender@6.0.0-Co73lGCa.js";import"./interactjs@1.10.27-C3ZPOoID.js";import"./classnames@2.5.1-CU_BXU7G.js";import"./vue-router@4.6.3_vue@3.5.25_typescript@5.9.3_-kLD3n5ZM.js";import"./mobx@5.15.7-iy9XXgsZ.js";import"./uuid@9.0.1-CtRu48qb.js";import"./mousetrap@1.6.5-B3zpTV0k.js";import"./mobx-utils@5.6.2_mobx@5.15.7-BeM5AP8N.js";const o="当前环境不支持全屏",no={isEnabledFullscreen:o},io=Object.freeze(Object.defineProperty({__proto__:null,default:no,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",ro={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},so=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:ro},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",s="锁屏",c="设置",l="Github",p="全屏",m="退出全屏",a="搜索",co={Reload:r,Lock:s,Setting:c,Github:l,FullScreen:p,CancelFullScreen:m,Search:a},lo=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:p,Github:l,Lock:s,Reload:r,Search:a,Setting:c,default:co},Symbol.toStringTag,{value:"Module"})),_="请求",g="条形码",u="缓存工具函数",d="数字精度",b="右键菜单",f="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="拖拽卡片",C="可视化",j="流程图",v="表单",D="Mock 数据",M="模态框",P="多级菜单(缓存)",z="办公",N="文档",R="演示",I="表格",k="二维码",x="依赖项",L="关于",F="页面详情模式",w="分段器",A="SVG 图标",E="表格",G="自适应高度表格",$="高级表格",H="模板内置 Api",Q="滚动动画",po={Axios:_,Barcode:g,CacheDemo:u,CalculatePrecision:d,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,DraggableCard:y,Echart:C,Error:"错误页",Flow:j,Form:v,Mock:D,Modal:M,MultiMenu:P,Office:z,Office_Document:N,Office_Presentation:R,Office_Spreadsheet:I,QRCode:k,Rely:x,RelyAbout:L,RouterDemo:F,Segment:w,SvgIcon:A,Table:E,TableAutoHeight:G,TablePro:$,TemplateHooks:H,scrollReveal:Q},mo=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:g,CacheDemo:u,CalculatePrecision:d,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,DraggableCard:y,Echart:C,Flow:j,Form:v,Mock:D,Modal:M,MultiMenu:P,Office:z,Office_Document:N,Office_Presentation:R,Office_Spreadsheet:I,QRCode:k,Rely:x,RelyAbout:L,RouterDemo:F,Segment:w,SvgIcon:A,Table:E,TableAutoHeight:G,TablePro:$,TemplateHooks:H,default:po,scrollReveal:Q},Symbol.toStringTag,{value:"Module"})),B="项目配置",V={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},q="界面显示",ao={Title:B,ThemeOptions:V,InterfaceDisplay:q},_o=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:q,ThemeOptions:V,Title:B,default:ao},Symbol.toStringTag,{value:"Module"})),J="注册",K="登录",U="扫码登陆",W="请输入用户名",X="请输入密码",Y="登 陆",Z="用户名",oo="密码",to="开箱即用的中后台管理系统",go={Register:J,Signing:K,QRCodeSigning:U,NamePlaceholder:W,PasswordPlaceholder:X,Login:Y,Name:Z,Password:oo,RayTemplate:to},uo=Object.freeze(Object.defineProperty({__proto__:null,Login:Y,Name:Z,NamePlaceholder:W,Password:oo,PasswordPlaceholder:X,QRCodeSigning:U,RayTemplate:to,Register:J,Signing:K,default:go},Symbol.toStringTag,{value:"Module"})),bo=Object.assign({"./zh-CN/globalMessage.json":io,"./zh-CN/headerSettingOptions.json":so,"./zh-CN/headerTooltip.json":lo,"./zh-CN/menu.json":mo,"./zh-CN/setting.json":_o,"./zh-CN/views/login/index.json":uo}),ft={message:{...eo(bo,"zh-CN")}};export{ft as default}; diff --git a/js/zh-CN-HLgExb6j.js.gz b/js/zh-CN-HLgExb6j.js.gz new file mode 100644 index 00000000..dca1efa4 Binary files /dev/null and b/js/zh-CN-HLgExb6j.js.gz differ diff --git a/js/zrender@6.0.0-Co73lGCa.js b/js/zrender@6.0.0-Co73lGCa.js new file mode 100644 index 00000000..233a344e --- /dev/null +++ b/js/zrender@6.0.0-Co73lGCa.js @@ -0,0 +1,8 @@ +import{_ as W}from"./tslib@2.3.0-Cg4x8ZAA.js";var Dn=12,fs="sans-serif",$t=Dn+"px "+fs,hs=20,us=100,vs="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ls(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var f=0;f"u"&&typeof self<"u"?Y.worker=!0:!Y.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Y.node=!0,Y.svgSupported=!0):xs(navigator.userAgent,Y);function xs(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var f=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in f||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var po=(function(){function r(t){this.value=t}return r})(),Ds=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new po(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),ve=(function(){function r(t){this._list=new Ds,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=e:s=new po(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),tn=new ve(50);function Is(r){if(typeof r=="string"){var t=tn.get(r);return t&&t.image}else return r}function _o(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=tn.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!hi(t)&&a.pending.push(o)):(t=gr.loadImage(r,Gn,Gn),t.__zrImageSrc=r,tn.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Gn(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tu||v>l||c>_||g>d)return!1;var p=!(u=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ut.x=Qt.x=e.x,Ut.y=Kt.y=e.y,Vt.x=Kt.x=e.x+e.width,Vt.y=Qt.y=e.y+e.height,Ut.transform(i),Kt.transform(i),Vt.transform(i),Qt.transform(i),t.x=vr(Ut.x,Vt.x,Qt.x,Kt.x),t.y=vr(Ut.y,Vt.y,Qt.y,Kt.y);var f=Rr(Ut.x,Vt.x,Qt.x,Kt.x),h=Rr(Ut.y,Vt.y,Qt.y,Kt.y);t.width=f-t.x,t.height=h-t.y},r})(),Bs=new B(0,0,0,0),zs=new B(0,0,0,0);function $n(r,t,e,i,n,a,o,s){var f=rn(t-e),h=rn(i-r),u=vr(f,h),v=qn[n],l=qn[1-n],c=Hs[n];t=h||!ft.bidirectional)&&(jr[v]=-h,jr[l]=0,ft.useDir&&ft.calcDirMTV())))}function yo(){var r=0,t=new z,e=new z,i={minTv:new z,maxTv:new z,useDir:!1,dirMinTv:new z,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Rr(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,f=Math.sin(r),h=Math.cos(r),u=f*a.y+h*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*h/u,e.y=s*f/u,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()=Zn)){r=r||$t;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=gr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?pi=Zn:n>2&&pi++,t}}var pi=0,Zn=5;function mo(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=Ws(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Et(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=gr.measureText(t,r.font).width,e.put(t,i)),i}function Un(r,t,e,i){var n=Et(At(t),r),a=ui(t),o=kr(0,n,e),s=dr(0,a,i),f=new B(o,s,n,a);return f}function lv(r,t,e,i){var n=((r||"")+"").split(` +`),a=n.length;if(a===1)return Un(n[0],t,e,i);for(var o=new B(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function ks(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,f=e.x,h=e.y,u="left",v="top";if(i instanceof Array)f+=le(i[0],e.width),h+=le(i[1],e.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return r=r||{},r.x=f,r.y=h,r.align=u,r.verticalAlign=v,r}var _i=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ns(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(` +`);a=To(e,i,n,a);for(var s=!1,f={},h=0,u=o.length;h=s;h++)f-=s;var u=Et(o,e);return u>f&&(e="",u=0),f=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=f,n.containerWidth=r,n}function wo(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Et(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var f=s===0?Ys(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,f),o=Et(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Ys(r,t,e){for(var i=0,n=0,a=r.length;nd&&c){var m=Math.floor(d/l);_=_||p.length>m,p=p.slice(0,m),y=p.length*l}if(n&&u&&g!=null)for(var T=To(g,h,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w_&&gi(a,o.substring(_,d),t,c),gi(a,g[2],t,c,g[1]),_=_i.lastIndex}_v){var tt=a.lines.length;D>0?(M.tokens=M.tokens.slice(0,D),L(M,R,P),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length0&&_+i.accumWidth>i.width&&(u=t.split(` +`),h=!0),i.accumWidth=_}else{var g=bo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}u||(u=t.split(` +`));for(var d=At(f),p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Us=oi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Vs(r){return Zs(r)?!!Us[r]:!0}function bo(r,t,e,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=At(t),l=0;le:n+u+_>e){u?(s||f)&&(g?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=c,h+=_,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=c,u=_)):g?(a.push(f),o.push(h),f=c,h=_):(a.push(c),o.push(_));continue}u+=_,g?(f+=c,h+=_):(f&&(s+=f,f="",h=0),s+=c)}return f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function Qn(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;B.set(Kn,kr(e,o,n),dr(i,s,a),o,s),B.intersect(t,Kn,null,Jn);var f=Jn.outIntersectRect;r.outerWidth=f.width,r.outerHeight=f.height,r.baseX=kr(f.x,f.width,n,!0),r.baseY=dr(f.y,f.height,a,!0)}}var Kn=new B(0,0,0,0),Jn={outIntersectRect:{},clamp:!0};function Fn(r){return r!=null?r+="":r=""}function Qs(r){var t=Fn(r.text),e=r.font,i=Et(At(e),t),n=ui(e);return nn(r,i,n,null)}function nn(r,t,e,i){var n=new B(kr(r.x||0,t,r.textAlign),dr(r.y||0,e,r.textBaseline),t,e),a=i??(Co(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Co(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}function Yr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Ks(r){return[r[0],r[1]]}function jn(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Js(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function js(r){return Math.sqrt(tf(r))}function tf(r){return r[0]*r[0]+r[1]*r[1]}function yi(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function rf(r,t){var e=js(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function an(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var ef=an;function nf(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Hr=nf;function af(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function oe(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function xr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Dr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ta=As,ra=5e-5;function Jt(r){return r>ra||r<-ra}var jt=[],mr=[],mi=ne(),Ti=Math.abs,On=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Jt(this.rotation)||Jt(this.x)||Jt(this.y)||Jt(this.scaleX-1)||Jt(this.scaleY-1)||Jt(this.skewX)||Jt(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(ta(i),this.invTransform=null);return}i=i||ne(),e?this.getLocalTransform(i):ta(i),t&&(e?di(i,t,i):Es(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(jt);var i=jt[0]<0?-1:1,n=jt[1]<0?-1:1,a=((jt[0]-i)*e+i)/jt[0]||0,o=((jt[1]-n)*e+n)/jt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ne(),go(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ne(),di(mr,t.invTransform,e),e=mr);var i=this.originX,n=this.originY;(i||n)&&(mi[4]=i,mi[5]=n,di(mr,e,mi),mr[4]-=i,mr[5]-=n,e=mr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&oe(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&oe(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Ti(t[0]-1)>1e-10&&Ti(t[3]-1)>1e-10?Math.sqrt(Ti(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){of(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;e[4]=-_*a-l*g*o,e[5]=-g*o-c*_*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=l*o,h&&Fs(e,e,h),e[4]+=i+u,e[5]+=n+v,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),ce=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function of(r,t){for(var e=0;e-Ze&&rZe||r<-Ze}function j(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function ia(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Po(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),f=3*(t-r),h=r-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Gt(u)&&Gt(v))if(Gt(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Gt(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Xt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-ye(-m,me):m=ye(m,me),T<0?T=-ye(-T,me):T=ye(T,me);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Xt(u*u*u)),w=Math.acos(b)/3,L=Xt(u),C=Math.cos(w),_=(-s-2*L*C)/(3*o),p=(-s+L*(C+ea*Math.sin(w)))/(3*o),M=(-s+L*(C-ea*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),M>=0&&M<=1&&(a[c++]=M)}}return c}function So(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,f=0;if(Gt(o)){if(Lo(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Gt(u))n[0]=-a/(2*o);else if(u>0){var v=Xt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function Zt(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,f=(i-e)*n+e,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=r,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function sf(r,t,e,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;It[0]=f,It[1]=h;for(var y=0;y<1;y+=.05)ct[0]=j(r,e,n,o,y),ct[1]=j(t,i,a,s,y),d=Hr(It,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Gt(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Xt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function Ro(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Ue(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function uf(r,t,e,i,n,a,o,s,f){var h,u=.005,v=1/0;It[0]=o,It[1]=s;for(var l=0;l<1;l+=.05){ct[0]=it(r,e,n,l),ct[1]=it(t,i,a,l);var c=Hr(It,ct);c=0&&c=1?1:Po(0,i,a,1,f,s)&&j(0,n,o,1,s[0])}}}var cf=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Or,this.ondestroy=t.ondestroy||Or,this.onrestart=t.onrestart||Or,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Wr(t)?t:se[t]||xo(t)},r})(),aa={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qt(r){return r=Math.round(r),r<0?0:r>255?255:r}function on(r){return r<0?0:r>1?1:r}function wi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qt(parseFloat(t)/100*255):qt(parseInt(t,10))}function pr(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?on(parseFloat(t)/100):on(parseFloat(t))}function bi(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Te(r,t,e){return r+(t-r)*e}function vt(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function sn(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Do=new ve(20),we=null;function Tr(r,t){we&&sn(we,t),we=Do.put(r,we||t.slice())}function zt(r,t){if(r){t=t||[];var e=Do.get(r);if(e)return sn(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in aa)return sn(t,aa[i]),Tr(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Tr(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Tr(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=pr(h.pop());case"rgb":if(h.length>=3)return vt(t,wi(h[0]),wi(h[1]),wi(h[2]),h.length===3?u:pr(h[3])),Tr(r,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=pr(h[3]),fn(h,t),Tr(r,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return fn(h,t),Tr(r,t),t;default:return}}vt(t,0,0,0,1)}}function fn(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=pr(r[1]),n=pr(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,qt(bi(o,a,e+1/3)*255),qt(bi(o,a,e)*255),qt(bi(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function df(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,f,h;if(o===0)f=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,v=((a-e)/6+o/2)/o,l=((a-i)/6+o/2)/o;t===a?f=l-v:e===a?f=1/3+u-l:i===a&&(f=2/3+v-u),f<0&&(f+=1),f>1&&(f-=1)}var c=[f*360,h,s];return r[3]!=null&&c.push(r[3]),c}}function oa(r,t){var e=zt(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vi(e,e.length===4?"rgba":"rgb")}}function cv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=vi([qt(Te(o[0],s[0],f)),qt(Te(o[1],s[1],f)),qt(Te(o[2],s[2],f)),on(Te(o[3],s[3],f))],"rgba");return e?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function dv(r,t,e,i){var n=zt(r);if(r)return n=df(n),e!=null&&(n[1]=pr(Wr(e)?e(n[1]):e)),i!=null&&(n[2]=pr(Wr(i)?i(n[2]):i)),vi(fn(n),"rgba")}function vi(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ve(r,t){var e=zt(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var sa=new ve(100);function pv(r){if($e(r)){var t=sa.get(r);return t||(t=oa(r,-.1),sa.put(r,t)),t}else if(si(r)){var e=N({},r);return e.colorStops=Ot(r.colorStops,function(i){return{offset:i.offset,color:oa(i.color,-.1)}}),e}return r}function pf(r){return r.type==="linear"}function _f(r){return r.type==="radial"}(function(){return Y.hasGlobalWindow&&Wr(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var hn=Array.prototype.slice;function Bt(r,t,e){return(t-r)*e+r}function Ci(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ha,f=e;if(Ft(e)){var h=Tf(e);s=h,(h===1&&!We(e[0])||h===2&&!We(e[0][0]))&&(o=!0)}else if(We(e)&&!ws(e))s=Ce;else if($e(e))if(!isNaN(+e))s=Ce;else{var u=zt(e);u&&(f=u,s=te)}else if(si(e)){var v=N({},f);v.colorStops=Ot(e.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),pf(e)?s=un:_f(e)&&(s=vn),f=v}a===0?this.valType=s:(s!==this.valType||s===ha)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:e,percent:0};return i&&(l.easing=i,l.easingFunc=Wr(i)?i:se[i]||xo(i)),n.push(l),l},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=Me(n),h=ua(n),u=0;u=0&&!(o[u].percent<=e);u--);u=l(u,s-2)}else{for(u=v;ue);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=e;var d=_.percent-c.percent,p=d===0?1:l((e-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?qr:t[f];if((Me(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(Me(a))a===Ge?Ci(y,c[n],_[n],p):gf(y,c[n],_[n],p);else if(ua(a)){var m=c[n],T=_[n],b=a===un;t[f]={type:b?"linear":"radial",x:Bt(m.x,T.x,p),y:Bt(m.y,T.y,p),colorStops:Ot(m.colorStops,function(L,C){var M=T.colorStops[C];return{offset:Bt(L.offset,M.offset,p),color:Ye(Ci([],L.color,M.color,p))}}),global:T.global},b?(t[f].x2=Bt(m.x2,T.x2,p),t[f].y2=Bt(m.y2,T.y2,p)):t[f].r=Bt(m.r,T.r,p)}else if(h)Ci(y,c[n],_[n],p),i||(t[f]=Ye(y));else{var w=Bt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Ce?t[i]=t[i]+n:e===te?(zt(t[i],qr),be(qr,qr,n,1),t[i]=Ye(qr)):e===Ge?be(t[i],t[i],n,1):e===Io&&fa(t[i],t[i],n,1)},r})(),Hn=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){En("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,ut(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ne(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ne(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),Gr=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s=0:i.inside,T=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(T=i.insideFill,b=i.insideStroke,(T==null||T==="auto")&&(T=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(T),w=!0)):(T=i.outsideFill,b=i.outsideStroke,(T==null||T==="auto")&&(T=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(T),w=!0)),T=T||"#000",(T!==p.fill||b!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(f=!0,p.fill=T,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ht,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?dn:cn},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&zt(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,vi(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Yt(t))for(var i=t,n=ut(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Mi,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Mi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Dt(s,t)>=0&&(e||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){En("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,e,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,e,i,u),l&&l.useState(t,e,i,u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ht),h}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,e,l),d&&d.useStates(t,e,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ht)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=Dt(n,t),o=Dt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(_,g){e.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,M=void 0,P=void 0;if(s){M={},l&&(C={});for(var T=0;T1e-4){s[0]=r-e,s[1]=t-i,f[0]=r+e,f[1]=t+i;return}if(Pe[0]=Ii(n)*e+r,Pe[1]=Di(n)*i+t,Se[0]=Ii(a)*e+r,Se[1]=Di(a)*i+t,h(s,Pe,Se),u(f,Pe,Se),n=n%tr,n<0&&(n=n+tr),a=a%tr,a<0&&(a=a+tr),n>a&&!o?a+=tr:nn&&(Re[0]=Ii(c)*e+r,Re[1]=Di(c)*i+t,h(s,Re,s),u(f,Re,f))}var O={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rr=[],er=[],Mt=[],Wt=[],Lt=[],Pt=[],Ai=Math.min,Ei=Math.max,ir=Math.cos,nr=Math.sin,Ht=Math.abs,_n=Math.PI,Nt=_n*2,Fi=typeof Float32Array<"u",$r=[];function Oi(r){var t=Math.round(r/_n*1e8)/1e8;return t%2*_n}function Ff(r,t){var e=Oi(r[0]);e<0&&(e+=Nt);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Nt?n=e+Nt:t&&e-n>=Nt?n=e-Nt:!t&&e>n?n=e+(Nt-Oi(e-n)):t&&e0&&(this._ux=Ht(i/Qe/t)||0,this._uy=Ht(i/Qe/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ht(t-this._xi),n=Ht(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(O.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(O.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(O.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),$r[0]=n,$r[1]=a,Ff($r,o),n=$r[0],a=$r[1];var s=a-n;return this.addData(O.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=ir(a)*i+t,this._yi=nr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(O.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(O.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Fi&&(this.data=new Float32Array(e));for(var i=0;i0&&o))for(var s=0;su.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Mt[0]=Mt[1]=Lt[0]=Lt[1]=Number.MAX_VALUE,Wt[0]=Wt[1]=Pt[0]=Pt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Ht(m)>n||l===e-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case O.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],L=t[l++];g=ff(a,o,T,b,d,p,w,L,10),a=w,o=L;break}case O.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=vf(a,o,T,b,d,p,10),a=d,o=p;break}case O.A:var C=t[l++],M=t[l++],P=t[l++],R=t[l++],D=t[l++],x=t[l++],S=x+D;l+=1,_&&(s=ir(D)*P+C,f=nr(D)*R+M),g=Ei(P,R)*Ai(Nt,Math.abs(x)),a=ir(S)*P+C,o=nr(S)*R+M;break;case O.R:{s=a=t[l++],f=o=t[l++];var A=t[l++],E=t[l++];g=A*2+E*2;break}case O.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=e<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),L){case O.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case O.L:{v=i[w++],l=i[w++];var M=Ht(v-h),P=Ht(l-u);if(M>n||P>a){if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+v*D,u*(1-D)+l*D);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var x=M*M+P*P;x>m&&(T=v,b=l,m=x)}break}case O.C:{var S=i[w++],A=i[w++],E=i[w++],H=i[w++],k=i[w++],tt=i[w++];if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;Zt(h,S,E,k,D,rr),Zt(u,A,H,tt,D,er),t.bezierCurveTo(rr[1],er[1],rr[2],er[2],rr[3],er[3]);break t}d+=R}t.bezierCurveTo(S,A,E,H,k,tt),h=k,u=tt;break}case O.Q:{var S=i[w++],A=i[w++],E=i[w++],H=i[w++];if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;Ue(h,S,E,D,rr),Ue(u,A,H,D,er),t.quadraticCurveTo(rr[1],er[1],rr[2],er[2]);break t}d+=R}t.quadraticCurveTo(S,A,E,H),h=E,u=H;break}case O.A:var G=i[w++],q=i[w++],X=i[w++],$=i[w++],U=i[w++],pt=i[w++],Tt=i[w++],wt=!i[w++],bt=X>$?X:$,rt=Ht(X-$)>.001,V=U+pt,I=!1;if(c){var R=_[p++];d+R>y&&(V=U+pt*(y-d)/R,I=!0),d+=R}if(rt&&t.ellipse?t.ellipse(G,q,X,$,Tt,U,V,wt):t.arc(G,q,bt,U,V,wt),I)break t;C&&(s=ir(U)*X+G,f=nr(U)*$+q),h=ir(V)*X+G,u=nr(V)*$+q;break;case O.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var F=i[w++],Xr=i[w++];if(c){var R=_[p++];if(d+R>y){var Ct=y-d;t.moveTo(v,l),t.lineTo(v+Ai(Ct,F),l),Ct-=F,Ct>0&&t.lineTo(v+F,l+Ai(Ct,Xr)),Ct-=Xr,Ct>0&&t.lineTo(v+Ei(F-Ct,0),l+Xr),Ct-=F,Ct>0&&t.lineTo(v,l+Ei(Xr-Ct,0));break t}d+=R}t.rect(v,l,F,Xr);break;case O.Z:if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+s*D,u*(1-D)+f*D);break t}d+=R}t.closePath(),h=s,u=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=O,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function br(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+v&&u>i+v&&u>a+v&&u>s+v||ur+v&&h>e+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fr+h&&s>e+h&&s>n+h||se||u+hn&&(n+=Zr);var l=Math.atan2(f,s);return l<0&&(l+=Zr),l>=i&&l<=n||l+Zr>=i&&l+Zr<=n}function ar(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var kt=yr.CMD,or=Math.PI*2,zf=1e-4;function Wf(r,t){return Math.abs(r-t)t&&h>i&&h>a&&h>s||h1&&kf(),c=j(t,i,a,s,lt[0]),l>1&&(_=j(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=it(t,i,a,h),l=0;le||s<-e)return 0;var f=Math.sqrt(e*e-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=or-1e-4){i=0,n=or;var u=a?1:-1;return o>=J[0]+r&&o<=J[1]+r?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=or,n+=or);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+r>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=or+g),(g>=i&&g<=n||g+or>=i&&g+or<=n)&&(g>Math.PI/2&&g1&&(e||(s+=ar(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case kt.M:u=a[_++],v=a[_++],f=u,h=v;break;case kt.L:if(e){if(br(f,h,a[_],a[_+1],t,i,n))return!0}else s+=ar(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.C:if(e){if(Of(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Nf(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.Q:if(e){if(Hf(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Yf(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var L=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=ar(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(e){if(Bf(p,y,T,b,b+w,L,t,C,n))return!0}else s+=Gf(p,y,T,b,b+w,L,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case kt.R:u=f=a[_++],v=h=a[_++];var M=a[_++],P=a[_++];if(l=u+M,c=v+P,e){if(br(u,v,l,v,t,i,n)||br(l,v,l,c,t,i,n)||br(l,c,u,c,t,i,n)||br(u,c,u,v,t,i,n))return!0}else s+=ar(l,v,l,c,i,n),s+=ar(u,c,u,v,i,n);break;case kt.Z:if(e){if(br(f,h,u,v,t,i,n))return!0}else s+=ar(f,h,u,v,i,n);f=u,h=v;break}}return!e&&!Wf(h,v)&&(s+=ar(f,h,u,v,i,n)||0),s!==0}function Xf(r,t,e){return Oo(r,0,!1,t,e)}function qf(r,t,e,i){return Oo(r,t,!0,e,i)}var Ho=mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_r),$f={style:mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ci.style)},Hi=ce.concat(["invisible","culling","z","z2","zlevel","parent"]),Z=(function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){e.buildPath(f,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?cn:i>.2?bf:dn}else if(e)return dn}return cn},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if($e(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ve(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Sr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),qf(s,f/h,e,i)))return!0}if(this.hasFill())return Xf(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Sr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:N(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Sr)},t.prototype.createStyle=function(e){return fi(Ho,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=N({},n.shape),N(h,i.shape)):(h=N({},a?this.shape:n.shape),N(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=N({},this.shape);for(var u={},v=ut(h),l=0;ln&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),r.moveTo(e+s,i),r.lineTo(e+n-f,i),f!==0&&r.arc(e+n-f,i+f,f,-Math.PI/2,0),r.lineTo(e+n,i+a-h),h!==0&&r.arc(e+n-h,i+a-h,h,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ir=Math.round;function Jf(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ir(i*2)===Ir(n*2)&&(r.x1=r.x2=Ar(i,s,!0)),Ir(a*2)===Ir(o*2)&&(r.y1=r.y2=Ar(a,s,!0))),r}}function jf(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ar(i,s,!0),r.y=Ar(n,s,!0),r.width=Math.max(Ar(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Ar(n+o,s,!1)-r.y,o===0?0:1)),r}}function Ar(r,t,e){if(!t)return r;var i=Ir(r*2);return(i+Ir(t))%2===0?i/2:(i+(e?1:-1))/2}var th=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),rh={},zn=(function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new th},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var f=jf(rh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Kf(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Z);zn.prototype.type="rect";var _a={fill:"#000"},ga=2,St={},eh={style:mt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ci.style)},ih=(function(r){W(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=_a,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,D=0;D=0&&(S=w[x],S.align==="right");)this._placeToken(S,e,C,p,D,"right",m),M-=S.width,D-=S.width,x--;for(R+=(u-(R-d)-(y-D)-M)/2;P<=x;)S=w[P],this._placeToken(S,e,C,p,R+S.width/2,"center",m),R+=S.width,P++;p+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,f){var h=i.rich[e.styleName]||{};h.text=e.text;var u=e.verticalAlign,v=a+n/2;u==="top"?v=a+e.height/2:u==="bottom"&&(v=a+n-e.height/2);var l=!e.isLineHolder&&Bi(h);l&&this._renderBackground(h,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,v-e.height/2,e.width,e.height);var c=!!h.backgroundColor,_=e.textPadding;_&&(o=Ca(o,s,_),v-=e.height/2-_[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ke),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=!1,b=ba("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),w=wa("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=ga,T=!0,p.stroke):null),L=h.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=o,d.y=v,L&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=e.font||$t,d.opacity=ke(h.opacity,i.opacity,1),ma(d,h),w&&(d.lineWidth=ke(h.lineWidth,i.lineWidth,m),d.lineDash=dt(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=w),b&&(d.fill=b),g.setBoundingRect(nn(d,e.contentWidth,e.contentHeight,T?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var f=e.backgroundColor,h=e.borderWidth,u=e.borderColor,v=f&&f.image,l=f&&!v,c=e.borderRadius,_=this,g,d;if(l||e.lineHeight||h&&u){g=this._getOrCreateChild(zn),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=dt(e.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Bn),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=dt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=e.shadowBlur||0,T.shadowColor=e.shadowColor||"transparent",T.shadowOffsetX=e.shadowOffsetX||0,T.shadowOffsetY=e.shadowOffsetY||0,T.opacity=ke(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return sh(e)&&(i=[e.fontStyle,e.fontWeight,oh(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Jr(i)||e.textFont||e.font},t})(pe),nh={left:!0,right:1,center:1},ah={top:1,bottom:1,middle:1},ya=["fontStyle","fontWeight","fontSize","fontFamily"];function oh(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Dn+"px":r+"px"}function ma(r,t){for(var e=0;e1&&(o*=zi(_),s*=zi(_));var g=(n===a?-1:1)*zi((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(r+e)/2+Ie(v)*d-De(v)*p,m=(t+i)/2+De(v)*d+Ie(v)*p,T=Sa([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],L=Sa(b,w);if(gn(b,w)<=-1&&(L=Ur),gn(b,w)>=1&&(L=0),L<0){var C=Math.round(L/Ur*1e6)/1e6;L=Ur*2+C%2*Ur}u.addData(h,y,m,o,s,T,L,v,a)}var vh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ch(r){var t=new yr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=yr.CMD,f=r.match(vh);if(!f)return t;for(var h=0;h=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=Dt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=Dt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;nS*S+A*A&&(C=P,M=R),{cx:C,cy:M,x0:-u,y0:-v,x1:C*(n/b-1),y1:M*(n/b-1)}}function Th(r){var t;if(ue(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function wh(r,t){var e,i=ee(t.r,0),n=ee(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=xa(h-f),_=c>Wi&&c%Wi;if(_>_t&&(c=_),!(i>_t))r.moveTo(u,v);else if(c>Wi-_t)r.moveTo(u+i*Mr(f),v+i*sr(f)),r.arc(u,v,i,f,h,!l),n>_t&&(r.moveTo(u+n*Mr(h),v+n*sr(h)),r.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,L=void 0,C=void 0,M=void 0,P=void 0,R=void 0,D=void 0,x=void 0,S=void 0,A=i*Mr(f),E=i*sr(f),H=n*Mr(h),k=n*sr(h),tt=c>_t;if(tt){var G=t.cornerRadius;G&&(e=Th(G),g=e[0],d=e[1],p=e[2],y=e[3]);var q=xa(i-n)/2;if(m=Rt(q,p),T=Rt(q,y),b=Rt(q,g),w=Rt(q,d),M=L=ee(m,T),P=C=ee(b,w),(L>_t||C>_t)&&(R=i*Mr(h),D=i*sr(h),x=n*Mr(f),S=n*sr(f),c_t){var rt=Rt(p,M),V=Rt(y,M),I=Ae(x,S,A,E,i,rt,l),F=Ae(R,D,H,k,i,V,l);r.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),M0&&r.arc(u+I.cx,v+I.cy,rt,K(I.y0,I.x0),K(I.y1,I.x1),!l),r.arc(u,v,i,K(I.cy+I.y1,I.cx+I.x1),K(F.cy+F.y1,F.cx+F.x1),!l),V>0&&r.arc(u+F.cx,v+F.cy,V,K(F.y1,F.x1),K(F.y0,F.x0),!l))}else r.moveTo(u+A,v+E),r.arc(u,v,i,f,h,!l);if(!(n>_t)||!tt)r.lineTo(u+H,v+k);else if(P>_t){var rt=Rt(g,P),V=Rt(d,P),I=Ae(H,k,R,D,n,-V,l),F=Ae(A,E,x,S,n,-rt,l);r.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&r.arc(u+I.cx,v+I.cy,V,K(I.y0,I.x0),K(I.y1,I.x1),!l),r.arc(u,v,n,K(I.cy+I.y1,I.cx+I.x1),K(F.cy+F.y1,F.cx+F.x1),l),rt>0&&r.arc(u+F.cx,v+F.cy,rt,K(F.y1,F.x1),K(F.y0,F.x0),!l))}else r.lineTo(u+H,v+k),r.arc(u,v,n,h,f,l)}r.closePath()}}}var bh=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),yn=(function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bh},t.prototype.buildPath=function(e,i){wh(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Z);yn.prototype.type="sector";var Ch=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Mh=(function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ch},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(Z);Mh.prototype.type="ring";function Lh(r,t,e,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=r.length;l=2){if(i){var a=Lh(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;shr[1]){if(a=!1,Q.negativeSize||i)return a;var f=Ee(hr[0]-fr[1]),h=Ee(fr[0]-hr[1]);ki(f,h)>Oe.len()&&(f=h||!Q.bidirectional)&&(z.scale(Fe,s,-h*n),Q.useDir&&Q.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,f=o,h=1;h>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){st(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function kh(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=r[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(r[h].offsetLeft,r[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=e?Ia(s,o):Ia(o,s))}function Zo(r){return r.nodeName.toUpperCase()==="CANVAS"}var Nh=/([&<>"'])/g,Yh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pv(r){return r==null?"":(r+"").replace(Nh,function(t,e){return Yh[e]})}var Lr=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Gh=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Lr(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Lr(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,f=this._dropTarget;this._dropTarget=s,e!==s&&(f&&s!==f&&this.handler.dispatchToElement(new Lr(f,t),"dragleave",t.event),s&&s!==f&&this.handler.dispatchToElement(new Lr(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Lr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Lr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Xh=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yi=[],qh=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function wn(r,t,e,i){return e=e||{},i?Aa(r,t,e):qh&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Aa(r,t,e),e}function Aa(r,t,e){if(Y.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Zo(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Tn(Yi,r,i,n)){e.zrX=Yi[0],e.zrY=Yi[1];return}}e.zrX=e.zrY=0}function Wn(r){return r||window.event}function gt(r,t,e){if(t=Wn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&wn(r,o,t,e)}else{wn(r,t,t,e);var a=$h(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Xh.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $h(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function Zh(r,t,e,i){r.addEventListener(t,e,i)}function Uh(r,t,e,i){r.removeEventListener(t,e,i)}var Vh=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Qh=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=Ea(i)/Ea(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Kh(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},Uo="silent";function Jh(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:jh}}function jh(){Vh(this.event)}var tu=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Gr),Vr=(function(){function r(t,e){this.x=t,this.y=e}return r})(),ru=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xi=new B(0,0,0,0),Vo=(function(r){W(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Vr(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new tu,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Gh(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(st(ru,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Qo(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Vr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(f,"mousemove",e),h&&h!==s&&this.dispatchToElement(f,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Vr(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Jh(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Vr(e,i);if(Fa(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new B(e-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(Xi.copy(l.getBoundingRect()),l.transform&&Xi.applyTransform(l.transform),Xi.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function eu(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Uo:!0}return!1}function Fa(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=eu(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Uo)){t.target=o;break}}}function Qo(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Ko=32,Qr=7;function iu(r){for(var t=0;r>=Ko;)t|=r&1,r>>=1;return r+t}function Oa(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function nu(r,t,e){for(e--;t>>1,n(a,r[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;h>0;)r[o+h]=r[o+h-1],h--}r[o]=a}}function qi(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(r,t[e+u])>0?o=u+1:f=u}return f}function $i(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(r,t[e+u])<0?f=u:o=u+1}return f}function au(r,t){var e=Qr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=Qr||L>=Qr);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),_===1){for(p=0;p=0;p--)r[w+p]=r[b+p];r[T]=o[m];return}for(var L=e;;){var C=0,M=0,P=!1;do if(t(o[m],r[y])<0){if(r[T--]=r[y--],C++,M=0,--_===0){P=!0;break}}else if(r[T--]=o[m--],M++,C=0,--d===1){P=!0;break}while((C|M)=0;p--)r[w+p]=r[b+p];if(_===0){P=!0;break}}if(r[T--]=o[m--],--d===1){P=!0;break}if(M=d-qi(r[y],o,0,d,d-1,t),M!==0){for(T-=M,m-=M,d-=M,w=T+1,b=m+1,p=0;p=Qr||M>=Qr);if(P)break;L<0&&(L=0),L+=2}if(e=L,e<1&&(e=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)r[w+p]=r[b+p];r[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Ha(r,e,e+f,e+a,t),a=f}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Ba=!1;function Zi(){Ba||(Ba=!0)}function za(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var su=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=za}return r.prototype.traverse=function(t,e){for(var i=0;i=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),je;je=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};function Er(){return new Date().getTime()}var fu=(function(r){W(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Er()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(je(i),!e._paused&&e.update())}je(i)},t.prototype.start=function(){this._running||(this._time=Er(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Er(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Er()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Hn(e,i.loop);return this.addAnimator(n),n},t})(Gr),hu=300,Ui=Y.domSupported,Vi=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Ot(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Wa={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ka=!1;function bn(r){var t=r.pointerType;return t==="pen"||t==="touch"}function uu(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Qi(r){r&&(r.zrByTouch=!0)}function vu(r,t){return gt(r.dom,new lu(r,t),!0)}function Jo(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var lu=(function(){function r(t,e){this.stopPropagation=Or,this.stopImmediatePropagation=Or,this.preventDefault=Or,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),yt={mousedown:function(r){r=gt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=gt(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=gt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=gt(this.dom,r);var t=r.toElement||r.relatedTarget;Jo(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ka=!0,r=gt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ka||(r=gt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=gt(this.dom,r),Qi(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),yt.mousemove.call(this,r),yt.mousedown.call(this,r)},touchmove:function(r){r=gt(this.dom,r),Qi(r),this.handler.processGesture(r,"change"),yt.mousemove.call(this,r)},touchend:function(r){r=gt(this.dom,r),Qi(r),this.handler.processGesture(r,"end"),yt.mouseup.call(this,r),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e=0&&lr(f)?f:.5;var h=r.createRadialGradient(o,s,0,o,s,f);return h}function Mn(r,t,e){for(var i=t.type==="radial"?bu(r,t,e):wu(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:We(r)?[r]:ue(r)?r:null}function ts(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Mu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Ot(e,function(a){return a/n}),i/=n)}return[e,i]}var Lu=new yr(!0);function ti(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ya(r){return typeof r=="string"&&r!=="none"}function ri(r){var t=r.fill;return t!=null&&t!=="none"}function Ga(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Xa(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Ln(r,t,e){var i=_o(t.image,t.__image,e);if(hi(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ps),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Pu(r,t,e,i){var n,a=ti(e),o=ri(e),s=e.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Lu,v=t.__dirty;if(!i){var l=e.fill,c=e.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?Mn(r,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?Mn(r,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?Ln(r,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?Ln(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),_?r.fillStyle=y:d&&(T?r.fillStyle=T:o=!1),g?r.strokeStyle=m:p&&(b?r.strokeStyle=b:a=!1)}var L=t.getGlobalScale();u.setScale(L[0],L[1],t.segmentIgnoreThreshold);var C,M;r.setLineDash&&e.lineDash&&(n=ts(t),C=n[0],M=n[1]);var P=!0;(h||v&Sr)&&(u.setDPR(r.dpr),f?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,f?s:1),C&&(r.setLineDash(C),r.lineDashOffset=M),i||(e.strokeFirst?(a&&Xa(r,e),o&&Ga(r,e)):(o&&Ga(r,e),a&&Xa(r,e))),C&&r.setLineDash([])}function Su(r,t,e){var i=t.__image=_o(e.image,t.__image,t,t.onload);if(!(!i||!hi(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var h=e.sx||0,u=e.sy||0;r.drawImage(i,h,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var h=e.sx,u=e.sy,v=o-h,l=s-u;r.drawImage(i,h,u,v,l,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Ru(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||$t,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=ts(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ti(e)&&r.strokeText(n,e.x,e.y),ri(e)&&r.fillText(n,e.x,e.y)):(ri(e)&&r.fillText(n,e.x,e.y),ti(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var qa=["shadowBlur","shadowOffsetX","shadowOffsetY"],$a=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rs(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ot(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?_r.opacity:o}(i||t.blend!==e.blend)&&(a||(ot(r,n),a=!0),r.globalCompositeOperation=t.blend||_r.blend);for(var s=0;s2&&i.push(n),n=[x,S]}function u(x,S,A,E){Fr(x,A)&&Fr(S,E)||n.push(x,S,A,E,A,E)}function v(x,S,A,E,H,k){var tt=Math.abs(S-x),G=Math.tan(tt/4)*4/3,q=SC:R2&&i.push(n),i}function Sn(r,t,e,i,n,a,o,s,f,h){if(Fr(r,e)&&Fr(t,i)&&Fr(n,o)&&Fr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-r,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=e-r,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var M=[],P=[];Zt(r,e,n,o,.5,M),Zt(t,i,a,s,.5,P),Sn(M[0],P[0],M[1],P[1],M[2],P[2],M[3],P[3],f,h),Sn(M[4],P[4],M[5],P[5],M[6],P[6],M[7],P[7],f,h)}function Ou(r,t){var e=Pn(r),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=is([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=is([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=r[s]/o.length,l=0;l1?null:new z(g*f+r,g*h+t)}function zu(r,t,e){var i=new z;z.sub(i,e,t),i.normalize();var n=new z;z.sub(n,r,t);var a=n.dot(i);return a}function Pr(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Wu(r,t,e){for(var i=r.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),Wu(t,h,u)}function ei(r,t,e,i){if(e===1)i.push(t);else{var n=Math.floor(e/2),a=r(t);ei(r,a[0],n,i),ei(r,a[1],e-n,i)}return i}function ku(r,t){for(var e=[],i=0;i0;h/=2){var u=0,v=0;(r&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(r=h-1-r,t=h-1-t),f=r,r=t,t=f)}return s}function ni(r){var t=1/0,e=1/0,i=-1/0,n=-1/0,a=Ot(r,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),e=Math.min(v,e),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=Ot(a,function(s,f){return{cp:s,z:Vu(s[0],s[1],t,e,i,n),path:r[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function ss(r){return Gu(r.path,r.count)}function xn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Dv(r,t,e){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}S.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=e,!e.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(e.dom,h.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?ze:0),this._needsManuallyCompositing),u.__builtin__||En("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,e(f),a=u),n.__dirty&ht&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}e(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,st(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Kr(i[t],e,!0):i[t]=e;for(var n=0;n"u"&&typeof self<"u"?Y.worker=!0:!Y.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Y.node=!0,Y.svgSupported=!0):hs(navigator.userAgent,Y);function hs(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var f=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in f||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var xn=12,us="sans-serif",$t=xn+"px "+us,vs=20,ls=100,cs="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ds(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){st(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function ks(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=r[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(r[h].offsetLeft,r[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=e?Gn(s,o):Gn(o,s))}function lo(r){return r.nodeName.toUpperCase()==="CANVAS"}var Ns=/([&<>"'])/g,Ys={"&":"&","<":"<",">":">",'"':""","'":"'"};function dv(r){return r==null?"":(r+"").replace(Ns,function(t,e){return Ys[e]})}var Gs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pi=[],Xs=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function en(r,t,e,i){return e=e||{},i?Xn(r,t,e):Xs&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Xn(r,t,e),e}function Xn(r,t,e){if(Y.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(lo(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(rn(pi,r,i,n)){e.zrX=pi[0],e.zrY=pi[1];return}}e.zrX=e.zrY=0}function En(r){return r||window.event}function _t(r,t,e){if(t=En(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&en(r,o,t,e)}else{en(r,t,t,e);var a=qs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Gs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function qs(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function $s(r,t,e,i){r.addEventListener(t,e,i)}function Zs(r,t,e,i){r.removeEventListener(t,e,i)}var Us=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Vs=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=qn(i)/qn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Qs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ne(){return[1,0,0,1,0,0]}function Ks(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Js(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function gi(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],f=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=f,r}function $n(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function js(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(e),v=Math.cos(e);return r[0]=n*v+s*u,r[1]=-n*u+s*v,r[2]=a*v+f*u,r[3]=-a*u+v*f,r[4]=v*(o-i[0])+u*(h-i[1])+i[0],r[5]=v*(h-i[1])-u*(o-i[0])+i[1],r}function tf(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function co(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=e*o-a*i;return f?(f=1/f,r[0]=o*f,r[1]=-a*f,r[2]=-i*f,r[3]=e*f,r[4]=(i*s-o*n)*f,r[5]=(a*n-e*s)*f,r):null}var z=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),vr=Math.min,xr=Math.max,nn=Math.abs,Zn=["x","y"],rf=["width","height"],Ut=new z,Vt=new z,Qt=new z,Kt=new z,ft=po(),Jr=ft.minTv,an=ft.maxTv,ae=[0,0],B=function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=vr(t.x,this.x),i=vr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xr(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xr(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=ne();return $n(a,a,[-e.x,-e.y]),tf(a,a,[i,n]),$n(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&z.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(ef,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(nf,e.x,e.y,e.width,e.height));var s=!!i;ft.reset(n,s);var f=ft.touchThreshold,h=t.x+f,u=t.x+t.width-f,v=t.y+f,l=t.y+t.height-f,c=e.x+f,_=e.x+e.width-f,g=e.y+f,d=e.y+e.height-f;if(h>u||v>l||c>_||g>d)return!1;var p=!(u=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ut.x=Qt.x=e.x,Ut.y=Kt.y=e.y,Vt.x=Kt.x=e.x+e.width,Vt.y=Qt.y=e.y+e.height,Ut.transform(i),Kt.transform(i),Vt.transform(i),Qt.transform(i),t.x=vr(Ut.x,Vt.x,Qt.x,Kt.x),t.y=vr(Ut.y,Vt.y,Qt.y,Kt.y);var f=xr(Ut.x,Vt.x,Qt.x,Kt.x),h=xr(Ut.y,Vt.y,Qt.y,Kt.y);t.width=f-t.x,t.height=h-t.y},r}(),ef=new B(0,0,0,0),nf=new B(0,0,0,0);function Un(r,t,e,i,n,a,o,s){var f=nn(t-e),h=nn(i-r),u=vr(f,h),v=Zn[n],l=Zn[1-n],c=rf[n];t=h||!ft.bidirectional)&&(Jr[v]=-h,Jr[l]=0,ft.useDir&&ft.calcDirMTV())))}function po(){var r=0,t=new z,e=new z,i={minTv:new z,maxTv:new z,useDir:!1,dirMinTv:new z,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=xr(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,f=Math.sin(r),h=Math.cos(r),u=f*a.y+h*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*h/u,e.y=s*f/u,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(yi.copy(l.getBoundingRect()),l.transform&&yi.applyTransform(l.transform),yi.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function hf(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?_o:!0}return!1}function Vn(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=hf(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==_o)){t.target=o;break}}}function yo(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var mo=32,qr=7;function uf(r){for(var t=0;r>=mo;)t|=r&1,r>>=1;return r+t}function Qn(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function vf(r,t,e){for(e--;t>>1,n(a,r[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;h>0;)r[o+h]=r[o+h-1],h--}r[o]=a}}function mi(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(r,t[e+u])>0?o=u+1:f=u}return f}function Ti(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(r,t[e+u])<0?f=u:o=u+1}return f}function lf(r,t){var e=qr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=qr||L>=qr);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),_===1){for(p=0;p=0;p--)r[w+p]=r[b+p];r[T]=o[m];return}for(var L=e;;){var C=0,M=0,P=!1;do if(t(o[m],r[y])<0){if(r[T--]=r[y--],C++,M=0,--_===0){P=!0;break}}else if(r[T--]=o[m--],M++,C=0,--d===1){P=!0;break}while((C|M)=0;p--)r[w+p]=r[b+p];if(_===0){P=!0;break}}if(r[T--]=o[m--],--d===1){P=!0;break}if(M=d-mi(r[y],o,0,d,d-1,t),M!==0){for(T-=M,m-=M,d-=M,w=T+1,b=m+1,p=0;p=qr||M>=qr);if(P)break;L<0&&(L=0),L+=2}if(e=L,e<1&&(e=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)r[w+p]=r[b+p];r[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Kn(r,e,e+f,e+a,t),a=f}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var It=1,ke=2,jr=4,Jn=!1;function wi(){Jn||(Jn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jn(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var df=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jn}return r.prototype.traverse=function(t,e){for(var i=0;i=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Ue;Ue=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var oe={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-oe.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?oe.bounceIn(r*2)*.5:oe.bounceOut(r*2-1)*.5+.5}},_e=Math.pow,Xt=Math.sqrt,To=1e-8,wo=1e-4,ta=Xt(3),ge=1/3,Dt=Nr(),lt=Nr(),Hr=Nr();function Gt(r){return r>-1e-8&&rTo||r<-1e-8}function j(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function ra(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Co(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),f=3*(t-r),h=r-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Gt(u)&&Gt(v))if(Gt(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Gt(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Xt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-_e(-m,ge):m=_e(m,ge),T<0?T=-_e(-T,ge):T=_e(T,ge);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Xt(u*u*u)),w=Math.acos(b)/3,L=Xt(u),C=Math.cos(w),_=(-s-2*L*C)/(3*o),p=(-s+L*(C+ta*Math.sin(w)))/(3*o),M=(-s+L*(C-ta*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),M>=0&&M<=1&&(a[c++]=M)}}return c}function Mo(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,f=0;if(Gt(o)){if(bo(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Gt(u))n[0]=-a/(2*o);else if(u>0){var v=Xt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function Zt(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,f=(i-e)*n+e,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=r,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function pf(r,t,e,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Dt[0]=f,Dt[1]=h;for(var y=0;y<1;y+=.05)lt[0]=j(r,e,n,o,y),lt[1]=j(t,i,a,s,y),d=Or(Dt,lt),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Gt(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Xt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function Lo(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Ve(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function yf(r,t,e,i,n,a,o,s,f){var h,u=.005,v=1/0;Dt[0]=o,Dt[1]=s;for(var l=0;l<1;l+=.05){lt[0]=it(r,e,n,l),lt[1]=it(t,i,a,l);var c=Or(Dt,lt);c=0&&c=1?1:Co(0,i,a,1,f,s)&&j(0,n,o,1,s[0])}}}var wf=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Fr,this.ondestroy=t.ondestroy||Fr,this.onrestart=t.onrestart||Fr,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=zr(t)?t:oe[t]||Po(t)},r}(),So=function(){function r(t){this.value=t}return r}(),bf=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new So(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),ue=function(){function r(t){this._list=new bf,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=e:s=new So(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),ia={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qt(r){return r=Math.round(r),r<0?0:r>255?255:r}function on(r){return r<0?0:r>1?1:r}function bi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qt(parseFloat(t)/100*255):qt(parseInt(t,10))}function dr(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?on(parseFloat(t)/100):on(parseFloat(t))}function Ci(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function ye(r,t,e){return r+(t-r)*e}function ut(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function sn(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Ro=new ue(20),me=null;function Tr(r,t){me&&sn(me,t),me=Ro.put(r,me||t.slice())}function zt(r,t){if(r){t=t||[];var e=Ro.get(r);if(e)return sn(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in ia)return sn(t,ia[i]),Tr(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ut(t,0,0,0,1);return}return ut(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Tr(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ut(t,0,0,0,1);return}return ut(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Tr(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?ut(t,+h[0],+h[1],+h[2],1):ut(t,0,0,0,1);u=dr(h.pop());case"rgb":if(h.length>=3)return ut(t,bi(h[0]),bi(h[1]),bi(h[2]),h.length===3?u:dr(h[3])),Tr(r,t),t;ut(t,0,0,0,1);return;case"hsla":if(h.length!==4){ut(t,0,0,0,1);return}return h[3]=dr(h[3]),fn(h,t),Tr(r,t),t;case"hsl":if(h.length!==3){ut(t,0,0,0,1);return}return fn(h,t),Tr(r,t),t;default:return}}ut(t,0,0,0,1)}}function fn(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=dr(r[1]),n=dr(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ut(t,qt(Ci(o,a,e+1/3)*255),qt(Ci(o,a,e)*255),qt(Ci(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Cf(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,f,h;if(o===0)f=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,v=((a-e)/6+o/2)/o,l=((a-i)/6+o/2)/o;t===a?f=l-v:e===a?f=1/3+u-l:i===a&&(f=2/3+v-u),f<0&&(f+=1),f>1&&(f-=1)}var c=[f*360,h,s];return r[3]!=null&&c.push(r[3]),c}}function na(r,t){var e=zt(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return fi(e,e.length===4?"rgba":"rgb")}}function pv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=fi([qt(ye(o[0],s[0],f)),qt(ye(o[1],s[1],f)),qt(ye(o[2],s[2],f)),on(ye(o[3],s[3],f))],"rgba");return e?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function _v(r,t,e,i){var n=zt(r);if(r)return n=Cf(n),e!=null&&(n[1]=dr(zr(e)?e(n[1]):e)),i!=null&&(n[2]=dr(zr(i)?i(n[2]):i)),fi(fn(n),"rgba")}function fi(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Qe(r,t){var e=zt(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var aa=new ue(100);function gv(r){if($e(r)){var t=aa.get(r);return t||(t=na(r,-.1),aa.put(r,t)),t}else if(oi(r)){var e=N({},r);return e.colorStops=Ot(r.colorStops,function(i){return{offset:i.offset,color:na(i.color,-.1)}}),e}return r}function Mf(r){return r.type==="linear"}function Lf(r){return r.type==="radial"}(function(){return Y.hasGlobalWindow&&zr(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var hn=Array.prototype.slice;function Bt(r,t,e){return(t-r)*e+r}function Mi(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=sa,f=e;if(Ft(e)){var h=xf(e);s=h,(h===1&&!ze(e[0])||h===2&&!ze(e[0][0]))&&(o=!0)}else if(ze(e)&&!Cs(e))s=we;else if($e(e))if(!isNaN(+e))s=we;else{var u=zt(e);u&&(f=u,s=te)}else if(oi(e)){var v=N({},f);v.colorStops=Ot(e.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),Mf(e)?s=un:Lf(e)&&(s=vn),f=v}a===0?this.valType=s:(s!==this.valType||s===sa)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:e,percent:0};return i&&(l.easing=i,l.easingFunc=zr(i)?i:oe[i]||Po(i)),n.push(l),l},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=be(n),h=fa(n),u=0;u=0&&!(o[u].percent<=e);u--);u=l(u,s-2)}else{for(u=v;ue);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=e;var d=_.percent-c.percent,p=d===0?1:l((e-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?$r:t[f];if((be(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(be(a))a===Ge?Mi(y,c[n],_[n],p):Pf(y,c[n],_[n],p);else if(fa(a)){var m=c[n],T=_[n],b=a===un;t[f]={type:b?"linear":"radial",x:Bt(m.x,T.x,p),y:Bt(m.y,T.y,p),colorStops:Ot(m.colorStops,function(L,C){var M=T.colorStops[C];return{offset:Bt(L.offset,M.offset,p),color:Ye(Mi([],L.color,M.color,p))}}),global:T.global},b?(t[f].x2=Bt(m.x2,T.x2,p),t[f].y2=Bt(m.y2,T.y2,p)):t[f].r=Bt(m.r,T.r,p)}else if(h)Mi(y,c[n],_[n],p),i||(t[f]=Ye(y));else{var w=Bt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===we?t[i]=t[i]+n:e===te?(zt(t[i],$r),Te($r,$r,n,1),t[i]=Ye($r)):e===Ge?Te(t[i],t[i],n,1):e===xo&&oa(t[i],t[i],n,1)},r}(),Fn=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){An("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,ht(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ne(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ne(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Dr(){return new Date().getTime()}var If=function(r){W(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Dr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Ue(i),!e._paused&&e.update())}Ue(i)},t.prototype.start=function(){this._running||(this._time=Dr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Dr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Dr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Fn(e,i.loop);return this.addAnimator(n),n},t}(Yr),Af=300,Li=Y.domSupported,Pi=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Ot(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),ha={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ua=!1;function ln(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Ef(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Si(r){r&&(r.zrByTouch=!0)}function Ff(r,t){return _t(r.dom,new Of(r,t),!0)}function Do(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var Of=function(){function r(t,e){this.stopPropagation=Fr,this.stopImmediatePropagation=Fr,this.preventDefault=Fr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),gt={mousedown:function(r){r=_t(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=_t(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=_t(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=_t(this.dom,r);var t=r.toElement||r.relatedTarget;Do(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ua=!0,r=_t(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ua||(r=_t(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=_t(this.dom,r),Si(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),gt.mousemove.call(this,r),gt.mousedown.call(this,r)},touchmove:function(r){r=_t(this.dom,r),Si(r),this.handler.processGesture(r,"change"),gt.mousemove.call(this,r)},touchend:function(r){r=_t(this.dom,r),Si(r),this.handler.processGesture(r,"end"),gt.mouseup.call(this,r),+new Date-+this.__lastTouchMomentkf||r<-5e-5}var jt=[],wr=[],xi=ne(),Di=Math.abs,On=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Jt(this.rotation)||Jt(this.x)||Jt(this.y)||Jt(this.scaleX-1)||Jt(this.scaleY-1)||Jt(this.skewX)||Jt(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(la(i),this.invTransform=null);return}i=i||ne(),e?this.getLocalTransform(i):la(i),t&&(e?gi(i,t,i):Js(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(jt);var i=jt[0]<0?-1:1,n=jt[1]<0?-1:1,a=((jt[0]-i)*e+i)/jt[0]||0,o=((jt[1]-n)*e+n)/jt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ne(),co(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ne(),gi(wr,t.invTransform,e),e=wr);var i=this.originX,n=this.originY;(i||n)&&(xi[4]=i,xi[5]=n,gi(wr,e,xi),wr[4]-=i,wr[5]-=n,e=wr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&ie(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ie(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Di(t[0]-1)>1e-10&&Di(t[3]-1)>1e-10?Math.sqrt(Di(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Nf(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;e[4]=-_*a-l*g*o,e[5]=-g*o-c*_*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=l*o,h&&js(e,e,h),e[4]+=i+u,e[5]+=n+v,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),ve=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nf(r,t){for(var e=0;e=ca)){r=r||$t;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=gr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?Ii=ca:n>2&&Ii++,t}}var Ii=0,ca=5;function Ao(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=Yf(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Et(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=gr.measureText(t,r.font).width,e.put(t,i)),i}function da(r,t,e,i){var n=Et(At(t),r),a=hi(t),o=Wr(0,n,e),s=pr(0,a,i),f=new B(o,s,n,a);return f}function yv(r,t,e,i){var n=((r||"")+"").split(` -`),a=n.length;if(a===1)return da(n[0],t,e,i);for(var o=new B(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Gf(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,f=e.x,h=e.y,u="left",v="top";if(i instanceof Array)f+=le(i[0],e.width),h+=le(i[1],e.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return r=r||{},r.x=f,r.y=h,r.align=u,r.verticalAlign=v,r}var Ai="__zr_normal__",Ei=ve.concat(["ignore"]),Xf=ai(ve,function(r,t){return r[t]=!0,r},{ignore:!1}),br={},qf=new B(0,0,0,0),Me=[],ui=function(){function r(t){this.id=oo(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;a.copyTransform(e);var u=i.position!=null,v=i.autoOverflowArea,l=void 0;if((v||u)&&(l=qf,i.layoutRect?l.copy(i.layoutRect):l.copy(this.getBoundingRect()),n||l.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(br,i,l):Gf(br,i,l),a.x=br.x,a.y=br.y,o=br.align,s=br.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var _=void 0,g=void 0;c==="center"?(_=l.width*.5,g=l.height*.5):(_=le(c[0],l.width),g=le(c[1],l.height)),h=!0,a.originX=-a.x+_+(n?0:l.x),a.originY=-a.y+g+(n?0:l.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],h||(a.originX=-d[0],a.originY=-d[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var y=p.overflowRect=p.overflowRect||new B(0,0,0,0);a.getLocalTransform(Me),co(Me,Me),B.copy(y,l),y.applyTransform(Me)}else p.overflowRect=null;var m=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,T=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(T=i.insideFill,b=i.insideStroke,(T==null||T==="auto")&&(T=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(T),w=!0)):(T=i.outsideFill,b=i.outsideStroke,(T==null||T==="auto")&&(T=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(T),w=!0)),T=T||"#000",(T!==p.fill||b!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(f=!0,p.fill=T,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=It,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_n:pn},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&zt(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,fi(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Yt(t))for(var i=t,n=ht(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ai,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Ai,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(xt(s,t)>=0&&(e||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){An("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,e,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,e,i,u),l&&l.useState(t,e,i,u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),h}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,e,l),d&&d.useStates(t,e,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=xt(n,t),o=xt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(_,g){e.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,M=void 0,P=void 0;if(s){M={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=xt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=xt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e=s;h++)f-=s;var u=Et(o,e);return u>f&&(e="",u=0),f=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=f,n.containerWidth=r,n}function zo(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Et(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var f=s===0?rh(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,f),o=Et(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function rh(r,t,e){for(var i=0,n=0,a=r.length;nd&&c){var m=Math.floor(d/l);_=_||p.length>m,p=p.slice(0,m),y=p.length*l}if(n&&u&&g!=null)for(var T=Bo(g,h,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w_&&Bi(a,o.substring(_,d),t,c),Bi(a,g[2],t,c,g[1]),_=Hi.lastIndex}_v){var tt=a.lines.length;D>0?(M.tokens=M.tokens.slice(0,D),L(M,R,P),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length0&&_+i.accumWidth>i.width&&(u=t.split(` -`),h=!0),i.accumWidth=_}else{var g=Wo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}u||(u=t.split(` -`));for(var d=At(f),p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var sh=ai(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function fh(r){return oh(r)?!!sh[r]:!0}function Wo(r,t,e,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=At(t),l=0;le:n+u+_>e){u?(s||f)&&(g?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=c,h+=_,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=c,u=_)):g?(a.push(f),o.push(h),f=c,h=_):(a.push(c),o.push(_));continue}u+=_,g?(f+=c,h+=_):(f&&(s+=f,f="",h=0),s+=c)}return f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function ga(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;B.set(ya,Wr(e,o,n),pr(i,s,a),o,s),B.intersect(t,ya,null,ma);var f=ma.outIntersectRect;r.outerWidth=f.width,r.outerHeight=f.height,r.baseX=Wr(f.x,f.width,n,!0),r.baseY=pr(f.y,f.height,a,!0)}}var ya=new B(0,0,0,0),ma={outIntersectRect:{},clamp:!0};function Hn(r){return r!=null?r+="":r=""}function hh(r){var t=Hn(r.text),e=r.font,i=Et(At(e),t),n=hi(e);return yn(r,i,n,null)}function yn(r,t,e,i){var n=new B(Wr(r.x||0,t,r.textAlign),pr(r.y||0,e,r.textBaseline),t,e),a=i??(ko(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function ko(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var mn="__zr_style_"+Math.round(Math.random()*10),_r={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},li={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_r[mn]=!0;var Ta=["z","z2","invisible"],uh=["invisible"],de=function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=ht(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,f[0]=r+e,f[1]=t+i;return}if(Le[0]=Ni(n)*e+r,Le[1]=ki(n)*i+t,Pe[0]=Ni(a)*e+r,Pe[1]=ki(a)*i+t,h(s,Le,Pe),u(f,Le,Pe),n=n%tr,n<0&&(n=n+tr),a=a%tr,a<0&&(a=a+tr),n>a&&!o?a+=tr:nn&&(Se[0]=Ni(c)*e+r,Se[1]=ki(c)*i+t,h(s,Se,s),u(f,Se,f))}var O={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rr=[],er=[],Ct=[],Wt=[],Mt=[],Lt=[],Yi=Math.min,Gi=Math.max,ir=Math.cos,nr=Math.sin,Ht=Math.abs,Tn=Math.PI,Nt=Tn*2,Xi=typeof Float32Array<"u",Zr=[];function qi(r){var t=Math.round(r/Tn*1e8)/1e8;return t%2*Tn}function ph(r,t){var e=qi(r[0]);e<0&&(e+=Nt);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Nt?n=e+Nt:t&&e-n>=Nt?n=e-Nt:!t&&e>n?n=e+(Nt-qi(e-n)):t&&e0&&(this._ux=Ht(i/Ke/t)||0,this._uy=Ht(i/Ke/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ht(t-this._xi),n=Ht(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(O.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(O.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(O.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Zr[0]=n,Zr[1]=a,ph(Zr,o),n=Zr[0],a=Zr[1];var s=a-n;return this.addData(O.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=ir(a)*i+t,this._yi=nr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(O.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(O.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Xi&&(this.data=new Float32Array(e));for(var i=0;i0&&o))for(var s=0;su.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ct[0]=Ct[1]=Mt[0]=Mt[1]=Number.MAX_VALUE,Wt[0]=Wt[1]=Lt[0]=Lt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Ht(m)>n||l===e-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case O.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],L=t[l++];g=_f(a,o,T,b,d,p,w,L,10),a=w,o=L;break}case O.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=mf(a,o,T,b,d,p,10),a=d,o=p;break}case O.A:var C=t[l++],M=t[l++],P=t[l++],R=t[l++],D=t[l++],x=t[l++],S=x+D;l+=1,_&&(s=ir(D)*P+C,f=nr(D)*R+M),g=Gi(P,R)*Yi(Nt,Math.abs(x)),a=ir(S)*P+C,o=nr(S)*R+M;break;case O.R:{s=a=t[l++],f=o=t[l++];var A=t[l++],E=t[l++];g=A*2+E*2;break}case O.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=e<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),L){case O.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case O.L:{v=i[w++],l=i[w++];var M=Ht(v-h),P=Ht(l-u);if(M>n||P>a){if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+v*D,u*(1-D)+l*D);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var x=M*M+P*P;x>m&&(T=v,b=l,m=x)}break}case O.C:{var S=i[w++],A=i[w++],E=i[w++],H=i[w++],k=i[w++],tt=i[w++];if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;Zt(h,S,E,k,D,rr),Zt(u,A,H,tt,D,er),t.bezierCurveTo(rr[1],er[1],rr[2],er[2],rr[3],er[3]);break t}d+=R}t.bezierCurveTo(S,A,E,H,k,tt),h=k,u=tt;break}case O.Q:{var S=i[w++],A=i[w++],E=i[w++],H=i[w++];if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;Ve(h,S,E,D,rr),Ve(u,A,H,D,er),t.quadraticCurveTo(rr[1],er[1],rr[2],er[2]);break t}d+=R}t.quadraticCurveTo(S,A,E,H),h=E,u=H;break}case O.A:var G=i[w++],q=i[w++],X=i[w++],$=i[w++],U=i[w++],dt=i[w++],mt=i[w++],Tt=!i[w++],wt=X>$?X:$,rt=Ht(X-$)>.001,V=U+dt,I=!1;if(c){var R=_[p++];d+R>y&&(V=U+dt*(y-d)/R,I=!0),d+=R}if(rt&&t.ellipse?t.ellipse(G,q,X,$,mt,U,V,Tt):t.arc(G,q,wt,U,V,Tt),I)break t;C&&(s=ir(U)*X+G,f=nr(U)*$+q),h=ir(V)*X+G,u=nr(V)*$+q;break;case O.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var F=i[w++],Gr=i[w++];if(c){var R=_[p++];if(d+R>y){var bt=y-d;t.moveTo(v,l),t.lineTo(v+Yi(bt,F),l),bt-=F,bt>0&&t.lineTo(v+F,l+Yi(bt,Gr)),bt-=Gr,bt>0&&t.lineTo(v+Gi(F-bt,0),l+Gr),bt-=F,bt>0&&t.lineTo(v,l+Gi(Gr-bt,0));break t}d+=R}t.rect(v,l,F,Gr);break;case O.Z:if(c){var R=_[p++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+s*D,u*(1-D)+f*D);break t}d+=R}t.closePath(),h=s,u=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=O,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Cr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+v&&u>i+v&&u>a+v&&u>s+v||ur+v&&h>e+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fr+h&&s>e+h&&s>n+h||se||u+hn&&(n+=Ur);var l=Math.atan2(f,s);return l<0&&(l+=Ur),l>=i&&l<=n||l+Ur>=i&&l+Ur<=n}function ar(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var kt=yr.CMD,or=Math.PI*2,mh=1e-4;function Th(r,t){return Math.abs(r-t)t&&h>i&&h>a&&h>s||h1&&wh(),c=j(t,i,a,s,vt[0]),l>1&&(_=j(t,i,a,s,vt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=it(t,i,a,h),l=0;le||s<-e)return 0;var f=Math.sqrt(e*e-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=or-1e-4){i=0,n=or;var u=a?1:-1;return o>=J[0]+r&&o<=J[1]+r?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=or,n+=or);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+r>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=or+g),(g>=i&&g<=n||g+or>=i&&g+or<=n)&&(g>Math.PI/2&&g1&&(e||(s+=ar(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case kt.M:u=a[_++],v=a[_++],f=u,h=v;break;case kt.L:if(e){if(Cr(f,h,a[_],a[_+1],t,i,n))return!0}else s+=ar(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.C:if(e){if(_h(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=bh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.Q:if(e){if(gh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Ch(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case kt.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var L=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=ar(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(e){if(yh(p,y,T,b,b+w,L,t,C,n))return!0}else s+=Mh(p,y,T,b,b+w,L,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case kt.R:u=f=a[_++],v=h=a[_++];var M=a[_++],P=a[_++];if(l=u+M,c=v+P,e){if(Cr(u,v,l,v,t,i,n)||Cr(l,v,l,c,t,i,n)||Cr(l,c,u,c,t,i,n)||Cr(u,c,u,v,t,i,n))return!0}else s+=ar(l,v,l,c,i,n),s+=ar(u,c,u,v,i,n);break;case kt.Z:if(e){if(Cr(f,h,u,v,t,i,n))return!0}else s+=ar(f,h,u,v,i,n);f=u,h=v;break}}return!e&&!Th(h,v)&&(s+=ar(f,h,u,v,i,n)||0),s!==0}function Lh(r,t,e){return Yo(r,0,!1,t,e)}function Ph(r,t,e,i){return Yo(r,t,!0,e,i)}var Go=yt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_r),Sh={style:yt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},li.style)},$i=ve.concat(["invisible","culling","z","z2","zlevel","parent"]),Z=function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){e.buildPath(f,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<$i.length;++s)n[$i[s]]=this[$i[s]];n.__dirty|=It}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=ht(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a.5?pn:i>.2?Wf:_n}else if(e)return _n}return pn},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if($e(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Qe(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&jr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Ph(s,f/h,e,i)))return!0}if(this.hasFill())return Lh(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=jr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:N(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&jr)},t.prototype.createStyle=function(e){return si(Go,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=N({},n.shape),N(h,i.shape)):(h=N({},a?this.shape:n.shape),N(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=N({},this.shape);for(var u={},v=ht(h),l=0;ln&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),r.moveTo(e+s,i),r.lineTo(e+n-f,i),f!==0&&r.arc(e+n-f,i+f,f,-Math.PI/2,0),r.lineTo(e+n,i+a-h),h!==0&&r.arc(e+n-h,i+a-h,h,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ir=Math.round;function Eh(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ir(i*2)===Ir(n*2)&&(r.x1=r.x2=Ar(i,s,!0)),Ir(a*2)===Ir(o*2)&&(r.y1=r.y2=Ar(a,s,!0))),r}}function Fh(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ar(i,s,!0),r.y=Ar(n,s,!0),r.width=Math.max(Ar(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Ar(n+o,s,!1)-r.y,o===0?0:1)),r}}function Ar(r,t,e){if(!t)return r;var i=Ir(r*2);return(i+Ir(t))%2===0?i/2:(i+(e?1:-1))/2}var Oh=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),Hh={},zn=function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Oh},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var f=Fh(Hh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Ah(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Z);zn.prototype.type="rect";var La={fill:"#000"},Pa=2,Pt={},Bh={style:yt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},li.style)},zh=function(r){W(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=La,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,D=0;D=0&&(S=w[x],S.align==="right");)this._placeToken(S,e,C,p,D,"right",m),M-=S.width,D-=S.width,x--;for(R+=(u-(R-d)-(y-D)-M)/2;P<=x;)S=w[P],this._placeToken(S,e,C,p,R+S.width/2,"center",m),R+=S.width,P++;p+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,f){var h=i.rich[e.styleName]||{};h.text=e.text;var u=e.verticalAlign,v=a+n/2;u==="top"?v=a+e.height/2:u==="bottom"&&(v=a+n-e.height/2);var l=!e.isLineHolder&&Zi(h);l&&this._renderBackground(h,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,v-e.height/2,e.width,e.height);var c=!!h.backgroundColor,_=e.textPadding;_&&(o=Aa(o,s,_),v-=e.height/2-_[0]-e.innerHeight/2);var g=this._getOrCreateChild(Je),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=!1,b=Ia("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),w=Da("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=Pa,T=!0,p.stroke):null),L=h.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=o,d.y=v,L&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=e.font||$t,d.opacity=We(h.opacity,i.opacity,1),Ra(d,h),w&&(d.lineWidth=We(h.lineWidth,i.lineWidth,m),d.lineDash=ct(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=w),b&&(d.fill=b),g.setBoundingRect(yn(d,e.contentWidth,e.contentHeight,T?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var f=e.backgroundColor,h=e.borderWidth,u=e.borderColor,v=f&&f.image,l=f&&!v,c=e.borderRadius,_=this,g,d;if(l||e.lineHeight||h&&u){g=this._getOrCreateChild(zn),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=ct(e.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Bn),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=ct(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=e.shadowBlur||0,T.shadowColor=e.shadowColor||"transparent",T.shadowOffsetX=e.shadowOffsetX||0,T.shadowOffsetY=e.shadowOffsetY||0,T.opacity=We(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Yh(e)&&(i=[e.fontStyle,e.fontWeight,Nh(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Kr(i)||e.textFont||e.font},t}(de),Wh={left:!0,right:1,center:1},kh={top:1,bottom:1,middle:1},Sa=["fontStyle","fontWeight","fontSize","fontFamily"];function Nh(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?xn+"px":r+"px"}function Ra(r,t){for(var e=0;e1&&(o*=Ui(_),s*=Ui(_));var g=(n===a?-1:1)*Ui((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(r+e)/2+De(v)*d-xe(v)*p,m=(t+i)/2+xe(v)*d+De(v)*p,T=Ha([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],L=Ha(b,w);if(wn(b,w)<=-1&&(L=Vr),wn(b,w)>=1&&(L=0),L<0){var C=Math.round(L/Vr*1e6)/1e6;L=Vr*2+C%2*Vr}u.addData(h,y,m,o,s,T,L,v,a)}var $h=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Uh(r){var t=new yr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=yr.CMD,f=r.match($h);if(!f)return t;for(var h=0;hS*S+A*A&&(C=P,M=R),{cx:C,cy:M,x0:-u,y0:-v,x1:C*(n/b-1),y1:M*(n/b-1)}}function ru(r){var t;if(he(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function eu(r,t){var e,i=re(t.r,0),n=re(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=za(h-f),_=c>Vi&&c%Vi;if(_>pt&&(c=_),!(i>pt))r.moveTo(u,v);else if(c>Vi-pt)r.moveTo(u+i*Lr(f),v+i*sr(f)),r.arc(u,v,i,f,h,!l),n>pt&&(r.moveTo(u+n*Lr(h),v+n*sr(h)),r.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,L=void 0,C=void 0,M=void 0,P=void 0,R=void 0,D=void 0,x=void 0,S=void 0,A=i*Lr(f),E=i*sr(f),H=n*Lr(h),k=n*sr(h),tt=c>pt;if(tt){var G=t.cornerRadius;G&&(e=ru(G),g=e[0],d=e[1],p=e[2],y=e[3]);var q=za(i-n)/2;if(m=St(q,p),T=St(q,y),b=St(q,g),w=St(q,d),M=L=re(m,T),P=C=re(b,w),(L>pt||C>pt)&&(R=i*Lr(h),D=i*sr(h),x=n*Lr(f),S=n*sr(f),cpt){var rt=St(p,M),V=St(y,M),I=Ie(x,S,A,E,i,rt,l),F=Ie(R,D,H,k,i,V,l);r.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),M0&&r.arc(u+I.cx,v+I.cy,rt,K(I.y0,I.x0),K(I.y1,I.x1),!l),r.arc(u,v,i,K(I.cy+I.y1,I.cx+I.x1),K(F.cy+F.y1,F.cx+F.x1),!l),V>0&&r.arc(u+F.cx,v+F.cy,V,K(F.y1,F.x1),K(F.y0,F.x0),!l))}else r.moveTo(u+A,v+E),r.arc(u,v,i,f,h,!l);if(!(n>pt)||!tt)r.lineTo(u+H,v+k);else if(P>pt){var rt=St(g,P),V=St(d,P),I=Ie(H,k,R,D,n,-V,l),F=Ie(A,E,x,S,n,-rt,l);r.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&r.arc(u+I.cx,v+I.cy,V,K(I.y0,I.x0),K(I.y1,I.x1),!l),r.arc(u,v,n,K(I.cy+I.y1,I.cx+I.x1),K(F.cy+F.y1,F.cx+F.x1),l),rt>0&&r.arc(u+F.cx,v+F.cy,rt,K(F.y1,F.x1),K(F.y0,F.x0),!l))}else r.lineTo(u+H,v+k),r.arc(u,v,n,h,f,l)}r.closePath()}}}var iu=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),bn=function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new iu},t.prototype.buildPath=function(e,i){eu(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Z);bn.prototype.type="sector";var nu=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),au=function(r){W(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new nu},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(Z);au.prototype.type="ring";function ou(r,t,e,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=r.length;l=2){if(i){var a=ou(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;shr[1]){if(a=!1,Q.negativeSize||i)return a;var f=Ae(hr[0]-fr[1]),h=Ae(fr[0]-hr[1]);Qi(f,h)>Fe.len()&&(f=h||!Q.bidirectional)&&(z.scale(Ee,s,-h*n),Q.useDir&&Q.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,f=o,h=1;h=0&&lr(f)?f:.5;var h=r.createRadialGradient(o,s,0,o,s,f);return h}function Cn(r,t,e){for(var i=t.type==="radial"?bu(r,t,e):wu(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ze(r)?[r]:he(r)?r:null}function jo(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Mu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Ot(e,function(a){return a/n}),i/=n)}return[e,i]}var Lu=new yr(!0);function je(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function ka(r){return typeof r=="string"&&r!=="none"}function ti(r){var t=r.fill;return t!=null&&t!=="none"}function Na(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Ya(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Mn(r,t,e){var i=Ho(t.image,t.__image,e);if(vi(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Rs),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Pu(r,t,e,i){var n,a=je(e),o=ti(e),s=e.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Lu,v=t.__dirty;if(!i){var l=e.fill,c=e.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?Cn(r,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?Cn(r,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?Mn(r,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?Mn(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),_?r.fillStyle=y:d&&(T?r.fillStyle=T:o=!1),g?r.strokeStyle=m:p&&(b?r.strokeStyle=b:a=!1)}var L=t.getGlobalScale();u.setScale(L[0],L[1],t.segmentIgnoreThreshold);var C,M;r.setLineDash&&e.lineDash&&(n=jo(t),C=n[0],M=n[1]);var P=!0;(h||v&jr)&&(u.setDPR(r.dpr),f?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,f?s:1),C&&(r.setLineDash(C),r.lineDashOffset=M),i||(e.strokeFirst?(a&&Ya(r,e),o&&Na(r,e)):(o&&Na(r,e),a&&Ya(r,e))),C&&r.setLineDash([])}function Su(r,t,e){var i=t.__image=Ho(e.image,t.__image,t,t.onload);if(!(!i||!vi(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var h=e.sx||0,u=e.sy||0;r.drawImage(i,h,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var h=e.sx,u=e.sy,v=o-h,l=s-u;r.drawImage(i,h,u,v,l,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Ru(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||$t,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=jo(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(je(e)&&r.strokeText(n,e.x,e.y),ti(e)&&r.fillText(n,e.x,e.y)):(ti(e)&&r.fillText(n,e.x,e.y),je(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Ga=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ts(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ot(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?_r.opacity:o}(i||t.blend!==e.blend)&&(a||(ot(r,n),a=!0),r.globalCompositeOperation=t.blend||_r.blend);for(var s=0;s2&&i.push(n),n=[x,S]}function u(x,S,A,E){Er(x,A)&&Er(S,E)||n.push(x,S,A,E,A,E)}function v(x,S,A,E,H,k){var tt=Math.abs(S-x),G=Math.tan(tt/4)*4/3,q=SC:R2&&i.push(n),i}function Pn(r,t,e,i,n,a,o,s,f,h){if(Er(r,e)&&Er(t,i)&&Er(n,o)&&Er(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-r,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=e-r,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var M=[],P=[];Zt(r,e,n,o,.5,M),Zt(t,i,a,s,.5,P),Pn(M[0],P[0],M[1],P[1],M[2],P[2],M[3],P[3],f,h),Pn(M[4],P[4],M[5],P[5],M[6],P[6],M[7],P[7],f,h)}function Ou(r,t){var e=Ln(r),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=es([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=es([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=r[s]/o.length,l=0;l1?null:new z(g*f+r,g*h+t)}function zu(r,t,e){var i=new z;z.sub(i,e,t),i.normalize();var n=new z;z.sub(n,r,t);var a=n.dot(i);return a}function Pr(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Wu(r,t,e){for(var i=r.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),Wu(t,h,u)}function ri(r,t,e,i){if(e===1)i.push(t);else{var n=Math.floor(e/2),a=r(t);ri(r,a[0],n,i),ri(r,a[1],e-n,i)}return i}function ku(r,t){for(var e=[],i=0;i0;h/=2){var u=0,v=0;(r&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(r=h-1-r,t=h-1-t),f=r,r=t,t=f)}return s}function ii(r){var t=1/0,e=1/0,i=-1/0,n=-1/0,a=Ot(r,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),e=Math.min(v,e),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=Ot(a,function(s,f){return{cp:s,z:Vu(s[0],s[1],t,e,i,n),path:r[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function os(r){return Gu(r.path,r.count)}function Rn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Dv(r,t,e){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}S.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=e,!e.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(e.dom,h.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?Be:0),this._needsManuallyCompositing),u.__builtin__||An("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,e(f),a=u),n.__dirty&It&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}e(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,st(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Qr(i[t],e,!0):i[t]=e;for(var n=0;n { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; - -// mock-data-1762682965388.js -import { transformMockData, transformRawData } from "vite-plugin-mock-dev-server/server"; - -// mock/demo/person.mock.ts -var person_mock_exports = {}; -__export(person_mock_exports, { - getPersonList: () => getPersonList -}); -import { defineMock } from "vite-plugin-mock-dev-server/helper"; - -// mock/shared/utils.ts -function array(length) { - return new Array(length).fill(0); -} -function pagination(pageCurrent, pageSize, array2) { - const offset = (pageCurrent - 1) * Number(pageSize); - return offset + Number(pageSize) >= array2.length ? array2.slice(offset, array2.length) : array2.slice(offset, offset + Number(pageSize)); -} -function stringify(value) { - return JSON.stringify(value); -} -function response(res, code, msg, params) { - const basic = { - code, - msg, - data: res, - ...params - }; - return basic; -} - -// mock/shared/database.ts -import Mock from "mockjs"; -function tableMock(option) { - return { - ...option, - id: Mock.Random.guid(), - address: Mock.Random.county(true), - email: Mock.Random.email(), - name: Mock.Random.cname(), - age: Mock.Random.integer(18, 60), - createDate: Mock.Random.date() - }; -} - -// mock/demo/person.mock.ts -var getPersonList = defineMock({ - url: "/api/list", - method: "GET", - delay: 500, - response: (req, res) => { - const { - query: { page, pageSize, email } - } = req; - let list = array(100).map(() => tableMock()); - let length = list.length; - if (!page || !pageSize) { - res.end( - stringify( - response(list, 200, "\u8BF7\u6C42\u6210\u529F", { - total: length - }) - ) - ); - } else { - list = pagination(page, pageSize, list); - if (email) { - list = list.filter((curr) => curr.email.includes(email)); - length = list.length; - } - res.end( - stringify( - response(list, 200, "\u8BF7\u6C42\u6210\u529F", { - total: length - }) - ) - ); - } - } -}); - -// mock-data-1762682965388.js -var exporters = [ - [person_mock_exports, "mock/demo/person.mock.ts"] -]; -var mockList = exporters.map(([mod, filepath]) => { - const raw = mod.default || mod; - return transformRawData(raw, filepath); -}); -var mock_data_1762682965388_default = transformMockData(mockList); +// mock-data-1766828655390.js +import { processMockData, processRawData } from "vite-plugin-mock-dev-server/server"; +var exporters = []; +var mockList = exporters.map(([mod, filepath]) => processRawData(mod.default || mod, filepath)); +var mock_data_1766828655390_default = processMockData(mockList); export { - mock_data_1762682965388_default as default + mock_data_1766828655390_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index d1b23b2f..3c5674f6 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ diff --git a/mockServer/package.json b/mockServer/package.json index 18435432..6d9e7d30 100644 --- a/mockServer/package.json +++ b/mockServer/package.json @@ -6,9 +6,8 @@ }, "dependencies": { "connect": "^3.7.0", - "vite-plugin-mock-dev-server": "^1.8.2", - "cors": "^2.8.5", - "mockjs": "1.1.0" + "vite-plugin-mock-dev-server": "^2.0.4", + "cors": "^2.8.5" }, "pnpm": { "peerDependencyRules": { diff --git a/mockServer/package.json.gz b/mockServer/package.json.gz index 1cdfb52f..39724b02 100644 Binary files a/mockServer/package.json.gz and b/mockServer/package.json.gz differ