From 0a1cc014139226a3dc0cc29fab57a4b4830d5353 Mon Sep 17 00:00:00 2001 From: xlsea Date: Mon, 25 Dec 2023 12:09:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=202.6.0=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=96=B0=E5=A2=9E=E9=AB=98=E4=BA=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/lib/assets/index-0c08PtDs.css | 1 + .../assets/{index-DCVlofVc.js => index-al5i8Tol.js} | 10 +++++----- frontend/public/lib/assets/index-yucufyR8.css | 1 - frontend/public/lib/index.html | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 frontend/public/lib/assets/index-0c08PtDs.css rename frontend/public/lib/assets/{index-DCVlofVc.js => index-al5i8Tol.js} (72%) delete mode 100644 frontend/public/lib/assets/index-yucufyR8.css diff --git a/frontend/public/lib/assets/index-0c08PtDs.css b/frontend/public/lib/assets/index-0c08PtDs.css new file mode 100644 index 000000000..0424f01ff --- /dev/null +++ b/frontend/public/lib/assets/index-0c08PtDs.css @@ -0,0 +1 @@ +.icon[data-v-0b5d97d7]{margin:0;padding:8px;display:flex;flex-wrap:wrap}.icon .anticon[data-v-0b5d97d7]{font-size:20px}.icon p[data-v-0b5d97d7]{margin-bottom:0}.popover[data-v-bcac1bce]{display:flex;align-items:center;justify-content:space-around}.popover .popover-item[data-v-bcac1bce]{height:42px;display:flex;font-size:13px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.popover .popover-item span[data-v-bcac1bce]{margin-inline-start:0}.popover .popover-item .anticon[data-v-bcac1bce]{font-size:16px}.drawer-title[data-v-81f091c8]{display:flex;align-items:center;justify-content:space-between}.cm-scroller::-webkit-scrollbar{width:8px;height:8px}.cm-scroller::-webkit-scrollbar-thumb{background:#9c9c9c9c;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.3)}.cm-scroller::-webkit-scrollbar-track{background:#282c34}.top-tips[data-v-d5c01266]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#646a73}.or-branch-link-tip[data-v-d5c01266]{margin:10px 0;color:#646a73}.condition-group-editor[data-v-d5c01266]{-webkit-user-select:none;user-select:none;border-radius:4px;border:1px solid #e4e5e7;position:relative;margin-bottom:16px}.condition-group-editor .branch-delete-icon[data-v-d5c01266]{font-size:18px}.condition-group-editor .header[data-v-d5c01266]{background-color:#f4f6f8;padding:0 12px;font-size:14px;color:#171e31;height:36px;display:flex;align-items:center}.condition-group-editor .header span[data-v-d5c01266]{flex:1}.condition-group-editor .main-content[data-v-d5c01266]{padding:0 12px}.condition-group-editor .main-content .condition-relation[data-v-d5c01266]{color:#9ca2a9;align-items:center;height:36px;display:flex;justify-content:space-between;padding:0 2px}.condition-group-editor .main-content .condition-content-box[data-v-d5c01266]{display:flex;justify-content:space-between;align-items:center}.condition-group-editor .main-content .condition-content-box div[data-v-d5c01266]{width:100%;min-width:120px}.condition-group-editor .main-content .condition-content-box div[data-v-d5c01266]:not(:first-child){margin-left:16px}.condition-group-editor .main-content .cell-box div[data-v-d5c01266]{padding:16px 0;width:100%;min-width:120px;color:#909399;font-size:14px;font-weight:600;text-align:center}.condition-group-editor .main-content .condition-content[data-v-d5c01266]{display:flex;flex-direction:column}.condition-group-editor .main-content .condition-content[data-v-d5c01266] .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.condition-group-editor .main-content .condition-content .content[data-v-d5c01266]{flex:1;padding:0 0 4px;display:flex;align-items:center;min-height:31.6px;flex-wrap:wrap}.condition-group-editor .sub-content[data-v-d5c01266]{padding:12px}.cron-body-row{margin-bottom:8px}.cron-body-row .symbol{color:#1677ff;margin-right:6px}.content[data-v-f5d6a5c7]{line-height:136%}.workflow-design{width:100%}.workflow-design .box-scale{display:inline-block;position:relative;width:100%;align-items:flex-start;justify-content:center;flex-wrap:wrap;min-width:min-content}.workflow-design .node-wrap{display:inline-flex;width:100%;flex-flow:column wrap;justify-content:flex-start;align-items:center;padding:0;position:relative;z-index:1}.workflow-design .node-wrap-box{display:inline-flex;flex-direction:column;position:relative;width:220px;min-height:72px;flex-shrink:0;background:#fff;border-radius:4px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .node-wrap-box:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent}.workflow-design .start-node-disabled{cursor:default;border:1px solid #00000036;box-shadow:0 2px 5px #00000036}.workflow-design .node-wrap-box.start-node:before{content:none}.workflow-design .node-wrap-box .title{height:24px;line-height:24px;color:#fff;padding-left:16px;padding-right:30px;border-radius:4px 4px 0 0;position:relative;display:flex;align-items:center}.workflow-design .node-wrap-box .title .text{text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .node-wrap-box .title .icon{margin-right:5px}.workflow-design .node-wrap-box .title .close{font-size:15px;position:absolute;top:50%;transform:translateY(-50%);right:10px;display:none}.workflow-design .node-wrap-box .content{position:relative;padding:15px}.workflow-design .node-wrap-box .content .placeholder{color:#999}.workflow-design .node-wrap-box-hover:hover .close{display:block}.workflow-design .add-node-btn-box{width:240px;display:inline-flex;flex-shrink:0;position:relative;z-index:1}.workflow-design .add-node-btn-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .add-node-btn{-webkit-user-select:none;user-select:none;width:240px;padding:32px 0;display:flex;justify-content:center;flex-shrink:0;flex-grow:1}.workflow-design .add-branch{justify-content:center;padding:0 10px;position:absolute;top:-16px;left:50%;transform:translate(-50%);transform-origin:center center;z-index:1;display:inline-flex;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:500;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;border-radius:20px;padding:8px 15px!important;color:#67c23a;background-color:#f0f9eb;border:1px solid #dcdfe6;border-color:#b3e19d}.workflow-design .add-branch:hover{color:#fff;border-color:#b3e19d;background-color:#67c23a}.workflow-design .branch-wrap{display:inline-flex;width:100%}.workflow-design .branch-box-wrap{display:flex;flex-flow:column wrap;align-items:center;min-height:270px;width:100%;flex-shrink:0}.workflow-design .col-box{display:inline-flex;flex-direction:column;align-items:center;position:relative}.workflow-design .branch-box{display:flex;overflow:visible;min-height:180px;height:auto;border-bottom:2px solid #ccc;border-top:2px solid #ccc;position:relative}.workflow-design .branch-box .col-box{background-color:#f0f2f5}.workflow-design .branch-box .col-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .condition-node{display:inline-flex;flex-direction:column;min-height:270px}.workflow-design .condition-node-box{padding-top:30px;padding-right:50px;padding-left:50px;justify-content:center;align-items:center;flex-grow:1;position:relative;display:inline-flex;flex-direction:column}.workflow-design .condition-node-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .auto-judge{position:relative;width:220px;min-height:72px;background:#fff;border-radius:4px;padding:15px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .auto-judge:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent;background:#efefef}.workflow-design .auto-judge .title{line-height:16px}.workflow-design .auto-judge .title .text{width:139px;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .node-title{width:130px;color:#15bc83;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .close{font-size:15px;position:absolute;top:15px;right:15px;color:#999;display:none}.workflow-design .auto-judge .title .priority-title{position:absolute;top:15px;right:15px;color:#999}.workflow-design .auto-judge .content{line-height:136%;position:relative;padding-top:15px;min-height:59px}.workflow-design .auto-judge .content .placeholder{color:#999}.workflow-design .auto-judge-hover:hover .close{display:block}.workflow-design .auto-judge-hover:hover .priority-title{display:none}.workflow-design .top-left-cover-line,.workflow-design .top-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;top:-2px}.workflow-design .bottom-left-cover-line,.workflow-design .bottom-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;bottom:-2px}.workflow-design .top-left-cover-line{left:-1px}.workflow-design .top-right-cover-line{right:-1px}.workflow-design .bottom-left-cover-line{left:-1px}.workflow-design .bottom-right-cover-line{right:-1px}.workflow-design .end-node{border-radius:50%;font-size:14px;color:#191f2566;text-align:left}.workflow-design .end-node-circle{width:10px;height:10px;margin:auto;border-radius:50%;background:#ccc}.workflow-design .end-node-text{margin-top:5px;text-align:center}.workflow-design .auto-judge-hover:hover .sort-left,.workflow-design .auto-judge-hover:hover .sort-right{display:flex}.workflow-design .auto-judge .sort-left{position:absolute;top:0;bottom:0;z-index:1;left:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-right{position:absolute;top:0;bottom:0;z-index:1;right:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-left:hover,.workflow-design .auto-judge .sort-right:hover{background:#eee}.workflow-design .auto-judge:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .auto-judge-def:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.workflow-design .node-wrap-box:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .node-wrap-box-hover:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.workflow-design .node-error{cursor:default}.workflow-design .node-error-waiting:after{border:1px solid #64a6ea;box-shadow:0 0 6px #64a6ea}.workflow-design .node-error-running:after{border:1px solid #1b7ee5;box-shadow:0 0 6px #1b7ee5}.workflow-design .node-error-success:after{border:1px solid #087da1;box-shadow:0 0 6px #087da1}.workflow-design .node-error-fail:after{border:1px solid #f52d80;box-shadow:0 0 6px #f52d80}.workflow-design .node-error-stop:after{border:1px solid #ac2df5;box-shadow:0 0 6px #ac2df5}.workflow-design .node-error-cancel:after{border:1px solid #f5732d;box-shadow:0 0 6px #f5732d}.workflow-design .error-tip{cursor:default;position:absolute;top:0;right:0;transform:translate(150%);font-size:24px}.tags-list{margin-top:15px;width:100%}.add-node-popover-body li{display:inline-block;width:80px;text-align:center;padding:10px 0}.add-node-popover-body li i{border:1px solid var(--el-border-color-light);width:40px;height:40px;border-radius:50%;text-align:center;line-height:38px;font-size:18px;cursor:pointer}.add-node-popover-body li i:hover{border:1px solid #3296fa;background:#3296fa;color:#fff!important}.add-node-popover-body li p{font-size:12px;margin-top:5px}.node-wrap-drawer__title{padding-right:40px}.node-wrap-drawer__title label{cursor:pointer}.node-wrap-drawer__title label:hover{border-bottom:1px dashed #409eff}.node-wrap-drawer__title .node-wrap-drawer__title-edit{color:#409eff;margin-left:10px;vertical-align:middle}.dark .workflow-design .node-wrap-box,.dark .workflow-design .auto-judge{background:#2b2b2b}.dark .workflow-design .col-box{background:var(--el-bg-color)}.dark .workflow-design .top-left-cover-line,.dark .workflow-design .top-right-cover-line,.dark .workflow-design .bottom-left-cover-line,.dark .workflow-design .bottom-right-cover-line{background-color:var(--el-bg-color)}.dark .workflow-design .node-wrap-box:before,.dark .workflow-design .auto-judge:before{background-color:var(--el-bg-color)}.dark .workflow-design .branch-box .add-branch{background:var(--el-bg-color)}.dark .workflow-design .end-node .end-node-text{color:#ccc}.dark .workflow-design .auto-judge .sort-left:hover,.dark .workflow-design .auto-judge .sort-right:hover{background:var(--el-bg-color)}.buttons[data-v-9401efd8]{width:calc(100vw - 16px);box-shadow:0 1px 4px #00152914;background-color:#fff;box-sizing:border-box;text-align:right;padding:8px}body{background-color:#f0f2f5}body .work-flow{margin-top:16px}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/frontend/public/lib/assets/index-DCVlofVc.js b/frontend/public/lib/assets/index-al5i8Tol.js similarity index 72% rename from frontend/public/lib/assets/index-DCVlofVc.js rename to frontend/public/lib/assets/index-al5i8Tol.js index 207cd6695..e83c8a48e 100644 --- a/frontend/public/lib/assets/index-DCVlofVc.js +++ b/frontend/public/lib/assets/index-al5i8Tol.js @@ -1,21 +1,21 @@ -var e,t,n=Object.getOwnPropertyNames,o=(e={"assets/index-DCVlofVc.js"(e,t){function n(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const o={},r=[],i=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===S(e),g=e=>"[object Set]"===S(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,O=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,S=e=>w.call(e),$=e=>"[object Object]"===S(e),x=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,T=k((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),M=/\B([A-Z])/g,I=k((e=>e.replace(M,"-$1").toLowerCase())),E=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),A=k((e=>e?`on${E(e)}`:"")),D=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let j;const N=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function _(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(L);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;nv(e)?e:null==e?"":h(e)||y(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,V,2):String(e),V=(e,t)=>t&&t.__v_isRef?V(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[U(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>U(e)))}:b(t)?U(t):!y(t)||h(t)||$(t)?t:String(t),U=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let K;class G{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=K,!e&&K&&(this.index=(K.scopes||(K.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=K;try{return K=this,e()}finally{K=t}}}on(){K=this}off(){K=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ne=e=>(e.w&ae)>0,oe=e=>(e.n&ae)>0,re=new WeakMap;let ie,le=0,ae=1;const se=Symbol(""),ce=Symbol("");class ue{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=K){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ie,t=pe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ie,ie=this,pe=!0,ae=1<<++le,le<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||!b(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(l.get(n)),t){case"add":h(e)?x(n)&&a.push(l.get("length")):(a.push(l.get(se)),f(e)&&a.push(l.get(ce)));break;case"delete":h(e)||(a.push(l.get(se)),f(e)&&a.push(l.get(ce)));break;case"set":f(e)&&a.push(l.get(se))}if(1===a.length)a[0]&&ye(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);ye(te(e))}}function ye(e,t){const n=h(e)?e:[...e];for(const o of n)o.computed&&Oe(o);for(const o of n)o.computed||Oe(o)}function Oe(e,t){(e!==ie||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const we=n("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),$e=xe();function xe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=dt(this);for(let t=0,r=this.length;t{e[t]=function(...e){fe();const n=dt(this)[t].apply(this,e);return ge(),n}})),e}function Ce(e){const t=dt(this);return me(t,0,e),t.hasOwnProperty(e)}class ke{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?nt:tt:r?et:Je).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&p($e,t))return Reflect.get($e,t,n);if("hasOwnProperty"===t)return Ce}const l=Reflect.get(e,t,n);return(b(t)?Se.has(t):we(t))?l:(o||me(e,0,t),r?l:vt(l)?i&&x(t)?l:l.value:y(l)?o?it(l):rt(l):l)}}class Pe extends ke{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(st(r)&&vt(r)&&!vt(n))return!1;if(!this._shallow&&(ct(n)||st(n)||(r=dt(r),n=dt(n)),!h(e)&&vt(r)&&!vt(n)))return r.value=n,!0;const i=h(e)&&x(t)?Number(t)e,De=e=>Reflect.getPrototypeOf(e);function Re(e,t,n=!1,o=!1){const r=dt(e=e.__v_raw),i=dt(t);n||(D(t,i)&&me(r,0,t),me(r,0,i));const{has:l}=De(r),a=o?Ae:n?ft:ht;return l.call(r,t)?a(e.get(t)):l.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function ze(e,t=!1){const n=this.__v_raw,o=dt(n),r=dt(e);return t||(D(e,r)&&me(o,0,e),me(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Be(e,t=!1){return e=e.__v_raw,!t&&me(dt(e),0,se),Reflect.get(e,"size",e)}function je(e){e=dt(e);const t=dt(this);return De(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function Ne(e,t){t=dt(t);const n=dt(this),{has:o,get:r}=De(n);let i=o.call(n,e);i||(e=dt(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?D(t,l)&&be(n,"set",e,t):be(n,"add",e,t),this}function _e(e){const t=dt(this),{has:n,get:o}=De(t);let r=n.call(t,e);r||(e=dt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&be(t,"delete",e,void 0),i}function Qe(){const e=dt(this),t=0!==e.size,n=e.clear();return t&&be(e,"clear",void 0,void 0),n}function Le(e,t){return function(n,o){const r=this,i=r.__v_raw,l=dt(i),a=t?Ae:e?ft:ht;return!e&&me(l,0,se),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function He(e,t,n){return function(...o){const r=this.__v_raw,i=dt(r),l=f(i),a="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,c=r[e](...o),u=n?Ae:t?ft:ht;return!t&&me(i,0,s?ce:se),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Fe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function We(){const e={get(e){return Re(this,e)},get size(){return Be(this)},has:ze,add:je,set:Ne,delete:_e,clear:Qe,forEach:Le(!1,!1)},t={get(e){return Re(this,e,!1,!0)},get size(){return Be(this)},has:ze,add:je,set:Ne,delete:_e,clear:Qe,forEach:Le(!1,!0)},n={get(e){return Re(this,e,!0)},get size(){return Be(this,!0)},has(e){return ze.call(this,e,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Le(!0,!1)},o={get(e){return Re(this,e,!0,!0)},get size(){return Be(this,!0)},has(e){return ze.call(this,e,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Le(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=He(r,!1,!1),n[r]=He(r,!0,!1),t[r]=He(r,!1,!0),o[r]=He(r,!0,!0)})),[e,n,t,o]}const[Xe,Ye,Ze,Ve]=We();function Ue(e,t){const n=t?e?Ve:Ze:e?Ye:Xe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const Ke={get:Ue(!1,!1)},Ge={get:Ue(!1,!0)},qe={get:Ue(!0,!1)},Je=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap;function ot(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>S(e).slice(8,-1))(e))}function rt(e){return st(e)?e:lt(e,!1,Me,Ke,Je)}function it(e){return lt(e,!0,Ie,qe,tt)}function lt(e,t,n,o,r){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=ot(e);if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function at(e){return st(e)?at(e.__v_raw):!(!e||!e.__v_isReactive)}function st(e){return!(!e||!e.__v_isReadonly)}function ct(e){return!(!e||!e.__v_isShallow)}function ut(e){return at(e)||st(e)}function dt(e){const t=e&&e.__v_raw;return t?dt(t):e}function pt(e){return z(e,"__v_skip",!0),e}const ht=e=>y(e)?rt(e):e,ft=e=>y(e)?it(e):e;function gt(e){pe&&ie&&ve((e=dt(e)).dep||(e.dep=te()))}function mt(e,t){const n=(e=dt(e)).dep;n&&ye(n)}function vt(e){return!(!e||!0!==e.__v_isRef)}function bt(e){return Ot(e,!1)}function yt(e){return Ot(e,!0)}function Ot(e,t){return vt(e)?e:new wt(e,t)}class wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:dt(e),this._value=t?e:ht(e)}get value(){return gt(this),this._value}set value(e){const t=this.__v_isShallow||ct(e)||st(e);e=t?e:dt(e),D(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ht(e),mt(this))}}function St(e){return vt(e)?e.value:e}const $t={get:(e,t,n)=>St(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return vt(r)&&!vt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function xt(e){return at(e)?e:new Proxy(e,$t)}function Ct(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=Mt(e,n);return t}class kt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=dt(this._object),t=this._key,null==(n=re.get(e))?void 0:n.get(t);var e,t,n}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Tt(e,t,n){return vt(e)?e:m(e)?new Pt(e):y(e)&&arguments.length>1?Mt(e,t,n):bt(e)}function Mt(e,t,n){const o=e[t];return vt(o)?o:new kt(e,t,n)}class It{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,mt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=dt(this);return gt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Et(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Dt(i,t,n)}return r}function At(e,t,n,o){if(m(e)){const r=Et(e,t,n,o);return r&&O(r)&&r.catch((e=>{Dt(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=Bt[o],i=Vt(r);iVt(e)-Vt(t))),Qt=0;Qt<_t.length;Qt++)_t[Qt]();_t=null,Qt=0}}const Vt=e=>null==e.id?1/0:e.id,Ut=(e,t)=>{const n=Vt(e)-Vt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kt(e){zt=!1,Rt=!0,Bt.sort(Ut);try{for(jt=0;jtv(e)?e.trim():e))),t&&(i=n.map(B))}let s,c=r[s=A(t)]||r[s=A(T(t))];!c&&l&&(c=r[s=A(I(t))]),c&&At(c,e,6,i);const u=r[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,At(u,e,6,i)}}function qt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={},a=!1;if(!m(e)){const o=e=>{const n=qt(e,t,!0);n&&(a=!0,c(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(h(i)?i.forEach((e=>l[e]=null)):c(l,i),y(e)&&o.set(e,l),l):(y(e)&&o.set(e,null),null)}function Jt(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,I(t))||p(e,t))}let en=null,tn=null;function nn(e){const t=en;return en=e,tn=e&&e.type.__scopeId||null,t}function on(e){tn=e}function rn(){tn=null}function ln(e,t=en,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&sr(-1);const r=nn(t);let i;try{i=e(...n)}finally{nn(r),o._d&&sr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function an(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:a,attrs:c,emit:u,render:d,renderCache:p,data:h,setupState:f,ctx:g,inheritAttrs:m}=e;let v,b;const y=nn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=Sr(d.call(t,e,p,i,f,h,g)),b=c}else{const e=t;v=Sr(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),b=t.props?c:sn(c)}}catch(w){rr.length=0,Dt(w,e,1),v=br(nr)}let O=v;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O;e.length&&7&t&&(l&&e.some(s)&&(b=cn(b,l)),O=yr(O,b))}return n.dirs&&(O=yr(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),v=O,nn(y),v}const sn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},cn=(e,t)=>{const n={};for(const o in e)s(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function un(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.value,g=ct(e)):at(e)?(p=()=>e,r=!0):h(e)?(v=!0,g=e.some((e=>at(e)||ct(e))),p=()=>e.map((e=>vt(e)?e.value:at(e)?Sn(e):m(e)?Et(e,d,2):void 0))):p=m(e)?t?()=>Et(e,d,2):()=>{if(!d||!d.isUnmounted)return f&&f(),At(e,d,3,[y])}:i,t&&r){const e=p;p=()=>Sn(e())}let b,y=e=>{f=$.onStop=()=>{Et(e,d,4),f=$.onStop=void 0}};if(Br){if(y=i,t?n&&At(t,d,3,[p(),v?[]:void 0,y]):p(),"sync"!==l)return i;{const e=Wr();b=e.__watcherHandles||(e.__watcherHandles=[])}}let O=v?new Array(e.length).fill(vn):vn;const w=()=>{if($.active)if(t){const e=$.run();(r||g||(v?e.some(((e,t)=>D(e,O[t]))):D(e,O)))&&(f&&f(),At(t,d,3,[e,O===vn?void 0:v&&O[0]===vn?[]:O,y]),O=e)}else $.run()};let S;w.allowRecurse=!!t,"sync"===l?S=w:"post"===l?S=()=>Wo(w,d&&d.suspense):(w.pre=!0,d&&(w.id=d.uid),S=()=>Wt(w));const $=new ue(p,S);t?n?w():O=$.run():"post"===l?Wo($.run.bind($),d&&d.suspense):$.run();const x=()=>{$.stop(),d&&d.scope&&u(d.scope.effects,$)};return b&&b.push(x),x}function On(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?wn(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const l=Tr;Dr(this);const a=yn(r,i.bind(o),n);return l?Dr(l):Rr(),a}function wn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Sn(e,t)}));else if($(e))for(const n in e)Sn(e[n],t);return e}function $n(e,t){const n=en;if(null===n)return e;const r=Qr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0})),Kn((()=>{e.isUnmounting=!0})),e}const Tn=[Function,Array],Mn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tn,onEnter:Tn,onAfterEnter:Tn,onEnterCancelled:Tn,onBeforeLeave:Tn,onLeave:Tn,onAfterLeave:Tn,onLeaveCancelled:Tn,onBeforeAppear:Tn,onAppear:Tn,onAfterAppear:Tn,onAppearCancelled:Tn},In={name:"BaseTransition",props:Mn,setup(e,{slots:t}){const n=Mr(),o=Pn();let r;return()=>{const i=t.default&&Bn(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1)for(const e of i)if(e.type!==nr){l=e;break}const a=dt(e),{mode:s}=a;if(o.isLeaving)return Dn(l);const c=Rn(l);if(!c)return Dn(l);const u=An(c,a,o,n);zn(c,u);const d=n.subTree,p=d&&Rn(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==nr&&(!hr(c,p)||h)){const e=An(p,a,o,n);if(zn(p,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},Dn(l);"in-out"===s&&c.type!==nr&&(e.delayLeave=(e,t,n)=>{En(o,p)[String(p.key)]=p,e[Cn]=()=>{t(),e[Cn]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function En(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function An(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,O=String(e.key),w=En(n,e),S=(e,t)=>{e&&At(e,o,9,t)},$=(e,t)=>{const n=t[1];S(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},x={mode:i,persisted:l,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[Cn]&&t[Cn](!0);const i=w[O];i&&hr(e,i)&&i.el[Cn]&&i.el[Cn](),S(o,[t])},enter(e){let t=s,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||s,o=b||c,i=y||u}let l=!1;const a=e[kn]=t=>{l||(l=!0,S(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e[kn]=void 0)};t?$(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[kn]&&t[kn](!0),n.isUnmounting)return o();S(d,[t]);let i=!1;const l=t[Cn]=n=>{i||(i=!0,o(),S(n?g:f,[t]),t[Cn]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?$(p,[t,l]):l()},clone:e=>An(e,t,n,o)};return x}function Dn(e){if(_n(e))return(e=yr(e)).children=null,e}function Rn(e){return _n(e)?e.children?e.children[0]:void 0:e}function zn(e,t){6&e.shapeFlag&&e.component?zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bn(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ic({name:e.name},t,{setup:e}))():e}const Nn=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function Qn(e,t){Hn(e,"a",t)}function Ln(e,t){Hn(e,"da",t)}function Hn(e,t,n=Tr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)_n(e.parent.vnode)&&Fn(o,t,n,e),e=e.parent}}function Fn(e,t,n,o){const r=Wn(t,e,o,!0);Gn((()=>{u(o[t],r)}),n)}function Wn(e,t,n=Tr,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fe(),Dr(n);const r=At(t,n,e,o);return Rr(),ge(),r});return o?r.unshift(i):r.push(i),i}}const Xn=e=>(t,n=Tr)=>(!Br||"sp"===e)&&Wn(e,((...e)=>t(...e)),n),Yn=Xn("bm"),Zn=Xn("m"),Vn=Xn("bu"),Un=Xn("u"),Kn=Xn("bum"),Gn=Xn("um"),qn=Xn("sp"),Jn=Xn("rtg"),eo=Xn("rtc");function to(e,t=Tr){Wn("ec",e,t)}function no(e,t,n,o){let r;const i=n&&n[o];if(h(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o!pr(e)||e.type!==nr&&!(e.type===er&&!ro(e.children))))?e:null}const io=e=>e?zr(e)?Qr(e)||e.proxy:io(e.parent):null,lo=c(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=>io(e.parent),$root:e=>io(e.root),$emit:e=>e.emit,$options:e=>mo(e),$forceUpdate:e=>e.f||(e.f=()=>Wt(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>On.bind(e)}),ao=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),so={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:a,type:s,appContext:c}=e;let u;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(ao(r,t))return a[t]=1,r[t];if(i!==o&&p(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return a[t]=3,l[t];if(n!==o&&p(n,t))return a[t]=4,n[t];po&&(a[t]=0)}}const d=lo[t];let h,f;return d?("$attrs"===t&&me(e,0,t),d(e)):(h=s.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(a[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return ao(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(l[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},a){let s;return!!n[a]||e!==o&&p(e,a)||ao(t,a)||(s=l[0])&&p(s,a)||p(r,a)||p(lo,a)||p(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function co(){return function(){const e=Mr();return e.setupContext||(e.setupContext=_r(e))}().attrs}function uo(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let po=!0;function ho(e){const t=mo(e),n=e.proxy,o=e.ctx;po=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:a,watch:s,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:b,deactivated:O,beforeDestroy:w,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:k,renderTriggered:P,errorCaptured:T,serverPrefetch:M,expose:I,inheritAttrs:E,components:A,directives:D,filters:R}=t;if(u&&function(e,t,n=i){h(e)&&(e=Oo(e));for(const o in e){const n=e[o];let r;r=y(n)?"default"in n?Mo(n.from||o,n.default,!0):Mo(n.from||o):Mo(n),vt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);y(t)&&(e.data=rt(t))}if(po=!0,l)for(const h in l){const e=l[h],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,a=Lr({get:t,set:r});Object.defineProperty(o,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const i in s)go(s[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{To(t,e[t])}))}function z(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&fo(d,e,"c"),z(Yn,p),z(Zn,f),z(Vn,g),z(Un,v),z(Qn,b),z(Ln,O),z(to,T),z(eo,k),z(Jn,P),z(Kn,S),z(Gn,x),z(qn,M),h(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===i&&(e.render=C),null!=E&&(e.inheritAttrs=E),A&&(e.components=A),D&&(e.directives=D)}function fo(e,t,n){At(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function go(e,t,n,o){const r=o.includes(".")?wn(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&bn(r,n)}else if(m(e))bn(r,e.bind(n));else if(y(e))if(h(e))e.forEach((e=>go(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&bn(r,o,e)}}function mo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:r.length||n||o?(s={},r.length&&r.forEach((e=>vo(s,e,l,!0))),vo(s,t,l)):s=t,y(t)&&i.set(t,s),s}function vo(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&vo(e,i,n,!0),r&&r.forEach((t=>vo(e,t,n,!0)));for(const l in t)if(o&&"expose"===l);else{const o=bo[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const bo={data:yo,props:$o,emits:$o,methods:So,computed:So,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:So,directives:So,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=wo(e[o],t[o]);return n},provide:yo,inject:function(e,t){return So(Oo(e),Oo(t))}};function yo(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function Oo(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(a,...t)):m(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,s,c){if(!l){const u=br(n,o);return u.appContext=r,s&&t?t(u,i):e(u,i,c),l=!0,a._container=i,i.__vue_app__=a,Qr(u.component)||u.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){Po=a;try{return e()}finally{Po=null}}};return a}}let Po=null;function To(e,t){if(Tr){let n=Tr.provides;const o=Tr.parent&&Tr.parent.provides;o===n&&(n=Tr.provides=Object.create(o)),n[e]=t}}function Mo(e,t,n=!1){const o=Tr||en;if(o||Po){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Po._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function Io(e,t,n,o=!1){const r={},i={};z(i,fr,1),e.propsDefaults=Object.create(null),Eo(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:lt(r,!1,Ee,Ge,et):e.type.props?e.props=r:e.props=i,e.attrs=i}function Eo(e,t,n,r){const[i,l]=e.propsOptions;let a,s=!1;if(t)for(let o in t){if(C(o))continue;const c=t[o];let u;i&&p(i,u=T(o))?l&&l.includes(u)?(a||(a={}))[u]=c:n[u]=c:Jt(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,s=!0)}if(l){const t=dt(n),r=a||o;for(let o=0;o{d=!0;const[n,o]=Do(e,t,!0);c(s,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!d)return y(e)&&i.set(e,r),r;if(h(a))for(let r=0;r-1,n[1]=o<0||t-1||p(n,"default"))&&u.push(e)}}}const f=[s,u];return y(e)&&i.set(e,f),f}function Ro(e){return"$"!==e[0]}function zo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Bo(e,t){return zo(e)===zo(t)}function jo(e,t){return h(t)?t.findIndex((t=>Bo(t,e))):m(t)&&Bo(t,e)?0:-1}const No=e=>"_"===e[0]||"$stable"===e,_o=e=>h(e)?e.map(Sr):[Sr(e)],Qo=(e,t,n)=>{if(t._n)return t;const o=ln(((...e)=>_o(t(...e))),n);return o._c=!1,o},Lo=(e,t,n)=>{const o=e._ctx;for(const r in e){if(No(r))continue;const n=e[r];if(m(n))t[r]=Qo(0,n,o);else if(null!=n){const e=_o(n);t[r]=()=>e}}},Ho=(e,t)=>{const n=_o(t);e.slots.default=()=>n};function Fo(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Fo(e,t&&(h(t)?t[o]:t),n,r,i)));if(Nn(r)&&!i)return;const l=4&r.shapeFlag?Qr(r.component)||r.component.proxy:r.el,a=i?null:l,{i:s,r:c}=e,d=t&&t.r,f=s.refs===o?s.refs={}:s.refs,g=s.setupState;if(null!=d&&d!==c&&(v(d)?(f[d]=null,p(g,d)&&(g[d]=null)):vt(d)&&(d.value=null)),m(c))Et(c,s,12,[a,f]);else{const t=v(c),o=vt(c);if(t||o){const r=()=>{if(e.f){const n=t?p(g,c)?g[c]:f[c]:c.value;i?h(n)&&u(n,l):h(n)?n.includes(l)||n.push(l):t?(f[c]=[l],p(g,c)&&(g[c]=f[c])):(c.value=[l],e.k&&(f[e.k]=c.value))}else t?(f[c]=a,p(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,Wo(r,n)):r()}}}const Wo=function(e,t){var n;t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):(h(n=e)?Nt.push(...n):_t&&_t.includes(n,n.allowRecurse?Qt+1:Qt)||Nt.push(n),Xt())};function Xo(e){return function(e,t){N().__VUE__=!0;const{insert:n,remove:l,patchProp:a,createElement:s,createText:u,createComment:d,setText:h,setElementText:f,parentNode:g,nextSibling:m,setScopeId:v=i,insertStaticContent:b}=e,y=(e,t,n,o=null,r=null,i=null,l=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!hr(e,t)&&(o=te(e),U(e,r,i,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case tr:w(e,t,n,o);break;case nr:S(e,t,n,o);break;case or:null==e&&$(t,n,o,l);break;case er:_(e,t,n,o,r,i,l,a,s);break;default:1&d?P(e,t,n,o,r,i,l,a,s):6&d?Q(e,t,n,o,r,i,l,a,s):(64&d||128&d)&&c.process(e,t,n,o,r,i,l,a,s,oe)}null!=u&&r&&Fo(u,e&&e.ref,i,t||e,!t)},w=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},$=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},x=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),l(e),e=n;l(t)},P=(e,t,n,o,r,i,l,a,s)=>{l=l||"svg"===t.type,null==e?M(t,n,o,r,i,l,a,s):D(e,t,r,i,l,a,s)},M=(e,t,o,r,i,l,c,u)=>{let d,p;const{type:h,props:g,shapeFlag:m,transition:v,dirs:b}=e;if(d=e.el=s(e.type,l,g&&g.is,g),8&m?f(d,e.children):16&m&&A(e.children,d,null,r,i,l&&"foreignObject"!==h,c,u),b&&xn(e,null,r,"created"),E(d,e,e.scopeId,c,r),g){for(const t in g)"value"===t||C(t)||a(d,t,null,g[t],l,e.children,r,i,ee);"value"in g&&a(d,"value",null,g.value),(p=g.onVnodeBeforeMount)&&Cr(p,r,e)}b&&xn(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,v);y&&v.beforeEnter(d),n(d,t,o),((p=g&&g.onVnodeMounted)||y||b)&&Wo((()=>{p&&Cr(p,r,e),y&&v.enter(d),b&&xn(e,null,r,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let i=0;i{for(let c=s;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,g=t.props||o;let m;n&&Yo(n,!1),(m=g.onVnodeBeforeUpdate)&&Cr(m,n,t,e),p&&xn(t,e,n,"beforeUpdate"),n&&Yo(n,!0);const v=i&&"foreignObject"!==t.type;if(d?B(e.dynamicChildren,d,c,n,r,v,l):s||X(e,t,c,null,n,r,v,l,!1),u>0){if(16&u)j(c,t,h,g,n,r,i);else if(2&u&&h.class!==g.class&&a(c,"class",null,g.class,i),4&u&&a(c,"style",h.style,g.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{m&&Cr(m,n,t,e),p&&xn(t,e,n,"updated")}),r)},B=(e,t,n,o,r,i,l)=>{for(let a=0;a{if(n!==r){if(n!==o)for(const o in n)C(o)||o in r||a(e,o,n[o],null,s,t.children,i,l,ee);for(const o in r){if(C(o))continue;const c=r[o],u=n[o];c!==u&&"value"!==o&&a(e,o,u,c,s,t.children,i,l,ee)}"value"in r&&a(e,"value",n.value,r.value)}},_=(e,t,o,r,i,l,a,s,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(s=s?s.concat(g):g),null==e?(n(d,o,r),n(p,o,r),A(t.children,o,p,i,l,a,s,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,o,i,l,a,s),(null!=t.key||i&&t===i.subTree)&&Zo(e,t,!0)):X(e,t,o,p,i,l,a,s,c)},Q=(e,t,n,o,r,i,l,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,s):L(t,n,o,r,i,l,s):H(e,t,s)},L=(e,t,n,r,i,l,a)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||kr,l={uid:Pr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new G(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Do(r,i),emitsOptions:qt(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=Gt.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);if(_n(e)&&(s.ctx.renderer=oe),function(e,t=!1){Br=t;const{props:n,children:o}=e.vnode,r=zr(e);Io(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=dt(t),z(t,"_",n)):Lo(t,e.slots={})}else e.slots={},t&&Ho(e,t);z(e.slots,fr,1)})(e,o);r&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,so));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?_r(e):null;Dr(e),fe();const r=Et(o,e,0,[e.props,n]);if(ge(),Rr(),O(r)){if(r.then(Rr,Rr),t)return r.then((n=>{jr(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=r}else jr(e,r,t)}else Nr(e)}(e,t);Br=!1}(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=br(nr);S(null,e,t,n)}}else F(s,e,t,n,i,l,a)},H=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!a||a&&a.$stable)||o!==l&&(o?!l||un(o,l,c):!!l);if(1024&s)return!0;if(16&s)return o?un(o,l,c):!!l;if(8&s){const e=t.dynamicProps;for(let t=0;tjt&&Bt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},F=(e,t,n,o,r,i,l)=>{const a=()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:s,vnode:c}=e,u=n;Yo(e,!1),n?(n.el=c.el,W(e,n,l)):n=c,o&&R(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Cr(t,s,n,c),Yo(e,!0);const d=an(e),p=e.subTree;e.subTree=d,y(p,d,g(p.el),te(p),e,r,i),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),a&&Wo(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Wo((()=>Cr(t,s,n,c)),r)}else{let l;const{el:a,props:s}=t,{bm:c,m:u,parent:d}=e,p=Nn(t);if(Yo(e,!1),c&&R(c),!p&&(l=s&&s.onVnodeBeforeMount)&&Cr(l,d,t),Yo(e,!0),a&&ie){const n=()=>{e.subTree=an(e),ie(a,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=an(e);y(null,l,n,o,e,r,i),t.el=l.el}if(u&&Wo(u,r),!p&&(l=s&&s.onVnodeMounted)){const e=t;Wo((()=>Cr(l,d,e)),r)}(256&t.shapeFlag||d&&Nn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Wo(e.a,r),e.isMounted=!0,t=n=o=null}},s=e.effect=new ue(a,(()=>Wt(c)),e.scope),c=e.update=()=>s.run();c.id=e.uid,Yo(e,!0),c()},W=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=dt(r),[s]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;Eo(e,t,r,i)&&(c=!0);for(const i in a)t&&(p(t,i)||(o=I(i))!==i&&p(t,o))||(s?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Ao(s,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&p(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let l=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?l=!1:(c(i,t),n||1!==e||delete i._):(l=!t.$stable,Lo(t,i)),a=t}else t&&(Ho(e,t),a={default:1});if(l)for(const o in i)No(o)||null!=a[o]||delete i[o]})(e,t.children,n),fe(),Yt(e),ge()},X=(e,t,n,o,r,i,l,a,s=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void Z(c,d,n,o,r,i,l,a,s);if(256&p)return void Y(c,d,n,o,r,i,l,a,s)}8&h?(16&u&&ee(c,r,i),d!==c&&f(n,d)):16&u?16&h?Z(c,d,n,o,r,i,l,a,s):ee(c,r,i,!0):(8&u&&f(n,""),16&h&&A(d,n,o,r,i,l,a,s))},Y=(e,t,n,o,i,l,a,s,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?ee(e,i,l,!0,!1,p):A(t,n,o,i,l,a,s,c,p)},Z=(e,t,n,o,i,l,a,s,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?$r(t[u]):Sr(t[u]);if(!hr(o,r))break;y(o,r,n,null,i,l,a,s,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?$r(t[h]):Sr(t[h]);if(!hr(o,r))break;y(o,r,n,null,i,l,a,s,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)U(e[u],i,l,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?$r(t[u]):Sr(t[u]);null!=e.key&&m.set(e.key,u)}let v,b=0;const O=h-g+1;let w=!1,S=0;const $=new Array(O);for(u=0;u=O){U(o,i,l,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=h;v++)if(0===$[v-g]&&hr(o,t[v])){r=v;break}void 0===r?U(o,i,l,!0):($[r-g]=u+1,r>=S?S=r:w=!0,y(o,t[r],n,null,i,l,a,s,c),b++)}const x=w?function(e){const t=e.slice(),n=[0];let o,r,i,l,a;const s=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}($):r;for(v=x.length-1,u=O-1;u>=0;u--){const e=g+u,r=t[e],p=e+1{const{el:l,type:a,transition:s,children:c,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)a.move(e,t,o,oe);else if(a!==er)if(a!==or)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(l),n(l,t,o),Wo((()=>s.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=s,a=()=>n(l,t,o),c=()=>{e(l,(()=>{a(),i&&i()}))};r?r(l,a,c):c()}else n(l,t,o);else x(e,t,o);else{n(l,t,o);for(let e=0;e{const{type:i,props:l,ref:a,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=a&&Fo(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!Nn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Cr(g,t,e),6&u)J(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&xn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,oe,o):c&&(i!==er||d>0&&64&d)?ee(c,t,n,!1,!0):(i===er&&384&d||!r&&16&u)&&ee(s,t,n),o&&K(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&Wo((()=>{g&&Cr(g,t,e),h&&xn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===er)return void q(n,o);if(t===or)return void k(e);const i=()=>{l(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,l=()=>t(n,i);o?o(e.el,i,l):l()}else i()},q=(e,t)=>{let n;for(;e!==t;)n=m(e),l(e),e=n;l(t)},J=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:a}=e;o&&R(o),r.stop(),i&&(i.active=!1,U(l,e,t,n)),a&&Wo(a,t),Wo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Yt(),Zt(),t._vnode=e},oe={p:y,um:U,m:V,r:K,mt:L,mc:A,pc:X,pbc:B,n:te,o:e};let re,ie;return t&&([re,ie]=t(oe)),{render:ne,hydrate:re,createApp:ko(ne,re)}}(e)}function Yo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zo(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let i=0;ie&&(e.disabled||""===e.disabled),Uo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ko=(e,t)=>{const n=e&&e.to;return v(n)?t?t(n):null:n};function Go(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:s,children:c,props:u}=e,d=2===i;if(d&&o(l,t,n),(!d||Vo(u))&&16&s)for(let p=0;p{16&b&&u(y,e,t,r,i,l,a,s)};v?m(n,c):d&&m(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Vo(e.props),m=g?n:u,b=g?o:h;if(l=l||Uo(u),O?(p(e.dynamicChildren,O,m,r,i,l,a),Zo(e,t,!0)):s||d(e,t,m,b,r,i,l,a,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Go(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ko(t.props,f);e&&Go(t,e,null,c,0)}else g&&Go(t,u,h,c,1)}Jo(t)},remove(e,t,n,o,{um:r,o:{remove:i}},l){const{shapeFlag:a,children:s,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),l&&i(c),16&a){const e=l||!Vo(p);for(let o=0;o0?ir||r:null,rr.pop(),ir=rr[rr.length-1]||null,ar>0&&ir&&ir.push(e),e}function ur(e,t,n,o,r,i){return cr(vr(e,t,n,o,r,i,!0))}function dr(e,t,n,o,r){return cr(br(e,t,n,o,r,!0))}function pr(e){return!!e&&!0===e.__v_isVNode}function hr(e,t){return e.type===t.type&&e.key===t.key}const fr="__vInternal",gr=({key:e})=>null!=e?e:null,mr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||vt(e)||m(e)?{i:en,r:e,k:t,f:!!n}:e:null);function vr(e,t=null,n=null,o=0,r=null,i=(e===er?0:1),l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gr(t),ref:t&&mr(t),scopeId:tn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:en};return a?(xr(s,n),128&i&&e.normalize(s)):n&&(s.shapeFlag|=v(n)?8:16),ar>0&&!l&&ir&&(s.patchFlag>0||6&i)&&32!==s.patchFlag&&ir.push(s),s}const br=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==hn||(e=nr),pr(e)){const o=yr(e,t,!0);return n&&xr(o,n),ar>0&&!i&&ir&&(6&o.shapeFlag?ir[ir.indexOf(e)]=o:ir.push(o)),o.patchFlag|=-2,o}var l;if(m(l=e)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=function(e){return e?ut(e)||fr in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=W(e)),y(n)&&(ut(n)&&!h(n)&&(n=c({},n)),t.style=_(n))}const a=v(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:y(e)?4:m(e)?2:0;return vr(e,t,n,o,r,a,i,!0)};function yr(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;nTr||en;let Ir,Er,Ar="__VUE_INSTANCE_SETTERS__";(Er=N()[Ar])||(Er=N()[Ar]=[]),Er.push((e=>Tr=e)),Ir=e=>{Er.length>1?Er.forEach((t=>t(e))):Er[0](e)};const Dr=e=>{Ir(e),e.scope.on()},Rr=()=>{Tr&&Tr.scope.off(),Ir(null)};function zr(e){return 4&e.vnode.shapeFlag}let Br=!1;function jr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=xt(t)),Nr(e)}function Nr(e,t,n){const o=e.type;e.render||(e.render=o.render||i),Dr(e),fe();try{ho(e)}finally{ge(),Rr()}}function _r(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(me(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Qr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xt(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in lo?lo[n](e):void 0,has:(e,t)=>t in e||t in lo}))}const Lr=(e,t)=>function(e,t,n=!1){let o,r;const l=m(e);return l?(o=e,r=i):(o=e.get,r=e.set),new It(o,r,l||!r,n)}(e,0,Br);function Hr(e,t,n){const o=arguments.length;return 2===o?y(t)&&!h(t)?pr(t)?br(e,null,[t]):br(e,t):br(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&pr(n)&&(n=[n]),br(e,t,n))}const Fr=Symbol.for("v-scx"),Wr=()=>Mo(Fr),Xr="3.3.11",Yr="undefined"!=typeof document?document:null,Zr=Yr&&Yr.createElement("template"),Vr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Yr.createElementNS("http://www.w3.org/2000/svg",e):Yr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Yr.createTextNode(e),createComment:e=>Yr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Zr.innerHTML=o?`${e}`:e;const r=Zr.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ur="transition",Kr="animation",Gr=Symbol("_vtc"),qr=(e,{slots:t})=>Hr(In,oi(e),t);qr.displayName="Transition";const Jr={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},ei=qr.props=c({},Mn,Jr),ti=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},ni=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function oi(e){const t={};for(const c in e)c in Jr||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:u=l,appearToClass:d=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(y(e))return[ri(e.enter),ri(e.leave)];{const t=ri(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:b,onEnter:O,onEnterCancelled:w,onLeave:S,onLeaveCancelled:$,onBeforeAppear:x=b,onAppear:C=O,onAppearCancelled:k=w}=t,P=(e,t,n)=>{li(e,t?d:a),li(e,t?u:l),n&&n()},T=(e,t)=>{e._isLeaving=!1,li(e,p),li(e,f),li(e,h),t&&t()},M=e=>(t,n)=>{const r=e?C:O,l=()=>P(t,e,n);ti(r,[t,l]),ai((()=>{li(t,e?s:i),ii(t,e?d:a),ni(r)||ci(t,o,m,l)}))};return c(t,{onBeforeEnter(e){ti(b,[e]),ii(e,i),ii(e,l)},onBeforeAppear(e){ti(x,[e]),ii(e,s),ii(e,u)},onEnter:M(!1),onAppear:M(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);ii(e,p),hi(),ii(e,h),ai((()=>{e._isLeaving&&(li(e,p),ii(e,f),ni(S)||ci(e,o,v,n))})),ti(S,[e,n])},onEnterCancelled(e){P(e,!1),ti(w,[e])},onAppearCancelled(e){P(e,!0),ti(k,[e])},onLeaveCancelled(e){T(e),ti($,[e])}})}function ri(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function ii(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Gr]||(e[Gr]=new Set)).add(t)}function li(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Gr];n&&(n.delete(t),n.size||(e[Gr]=void 0))}function ai(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let si=0;function ci(e,t,n,o){const r=e._endId=++si,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:s}=ui(e,t);if(!l)return o();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${Ur}Delay`),i=o(`${Ur}Duration`),l=di(r,i),a=o(`${Kr}Delay`),s=o(`${Kr}Duration`),c=di(a,s);let u=null,d=0,p=0;return t===Ur?l>0&&(u=Ur,d=l,p=i.length):t===Kr?c>0&&(u=Kr,d=c,p=s.length):(d=Math.max(l,c),u=d>0?l>c?Ur:Kr:null,p=u?u===Ur?i.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Ur&&/\b(transform|all)(,|$)/.test(o(`${Ur}Property`).toString())}}function di(e,t){for(;e.lengthpi(t)+pi(e[n]))))}function pi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function hi(){return document.body.offsetHeight}const fi=Symbol("_vod"),gi={beforeMount(e,{value:t},{transition:n}){e[fi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):mi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),mi(e,!0),o.enter(e)):o.leave(e,(()=>{mi(e,!1)})):mi(e,t))},beforeUnmount(e,{value:t}){mi(e,t)}};function mi(e,t){e.style.display=t?e[fi]:"none"}const vi=/\s*!important$/;function bi(e,t,n){if(h(n))n.forEach((n=>bi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Oi[t];if(n)return n;let o=T(t);if("filter"!==o&&o in e)return Oi[t]=o;o=E(o);for(let r=0;r{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();At(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ci||(ki.then((()=>Ci=0)),Ci=Date.now()),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,l,a)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,a),i[t]=void 0)}}const xi=/(?:Once|Passive|Capture)$/;let Ci=0;const ki=Promise.resolve(),Pi=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ti=new WeakMap,Mi=new WeakMap,Ii=Symbol("_moveCb"),Ei=Symbol("_enterCb"),Ai={name:"TransitionGroup",props:c({},ei,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mr(),o=Pn();let r,i;return Un((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[Gr];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:l}=ui(o);return i.removeChild(o),l}(r[0].el,n.vnode.el,t))return;r.forEach(Ri),r.forEach(zi);const o=r.filter(Bi);hi(),o.forEach((e=>{const n=e.el,o=n.style;ii(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ii]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ii]=null,li(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const l=dt(e),a=oi(l);let s=l.tag||er;r=i,i=t.default?Bn(t.default()):[];for(let e=0;ee.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ji.some((n=>e[`${n}Key`]&&!t.includes(n)))},_i=(e,t)=>e._withMods||(e._withMods=(n,...o)=>{for(let e=0;e{"class"===t?function(e,t,n){const o=e[Gr];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=v(n);if(n&&!r){if(t&&!v(t))for(const e in t)null==n[e]&&bi(o,e,"");for(const e in n)bi(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),fi in e&&(o.display=i)}}(e,n,o):a(t)?s(t)||$i(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Pi(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Pi(t)||!v(n))&&t in e}(e,t,o,r))?function(e,t,n,o,r,i,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){e._value=n;const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value"):e.value)!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Y(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(c){}s&&e.removeAttribute(t)}(e,t,o,i,l,c,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(wi,t.slice(6,t.length)):e.setAttributeNS(wi,t,n);else{const o=X(t);null==n||o&&!Y(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},Vr);let Li;function Hi(){return Li||(Li=Xo(Qi))}const Fi=(...e)=>{Hi().render(...e)},Wi=(...e)=>{const t=Hi().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return v(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t}; +var e,t,n=Object.getOwnPropertyNames,o=(e={"assets/index-al5i8Tol.js"(e,t){function n(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const o={},r=[],i=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===S(e),g=e=>"[object Set]"===S(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,O=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,S=e=>w.call(e),$=e=>"[object Object]"===S(e),x=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,T=k((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),M=/\B([A-Z])/g,I=k((e=>e.replace(M,"-$1").toLowerCase())),E=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),A=k((e=>e?`on${E(e)}`:"")),D=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let j;const N=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function _(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(L);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;nv(e)?e:null==e?"":h(e)||y(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[U(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>U(e)))}:b(t)?U(t):!y(t)||h(t)||$(t)?t:String(t),U=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let K;class G{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=K,!e&&K&&(this.index=(K.scopes||(K.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=K;try{return K=this,e()}finally{K=t}}}on(){K=this}off(){K=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ne=e=>(e.w&ae)>0,oe=e=>(e.n&ae)>0,re=new WeakMap;let ie,le=0,ae=1;const se=Symbol(""),ce=Symbol("");class ue{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=K){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ie,t=pe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ie,ie=this,pe=!0,ae=1<<++le,le<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||!b(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(l.get(n)),t){case"add":h(e)?x(n)&&a.push(l.get("length")):(a.push(l.get(se)),f(e)&&a.push(l.get(ce)));break;case"delete":h(e)||(a.push(l.get(se)),f(e)&&a.push(l.get(ce)));break;case"set":f(e)&&a.push(l.get(se))}if(1===a.length)a[0]&&ye(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);ye(te(e))}}function ye(e,t){const n=h(e)?e:[...e];for(const o of n)o.computed&&Oe(o);for(const o of n)o.computed||Oe(o)}function Oe(e,t){(e!==ie||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const we=n("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),$e=xe();function xe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=dt(this);for(let t=0,r=this.length;t{e[t]=function(...e){fe();const n=dt(this)[t].apply(this,e);return ge(),n}})),e}function Ce(e){const t=dt(this);return me(t,0,e),t.hasOwnProperty(e)}class ke{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?nt:tt:r?et:Je).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&p($e,t))return Reflect.get($e,t,n);if("hasOwnProperty"===t)return Ce}const l=Reflect.get(e,t,n);return(b(t)?Se.has(t):we(t))?l:(o||me(e,0,t),r?l:vt(l)?i&&x(t)?l:l.value:y(l)?o?it(l):rt(l):l)}}class Pe extends ke{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(st(r)&&vt(r)&&!vt(n))return!1;if(!this._shallow&&(ct(n)||st(n)||(r=dt(r),n=dt(n)),!h(e)&&vt(r)&&!vt(n)))return r.value=n,!0;const i=h(e)&&x(t)?Number(t)e,De=e=>Reflect.getPrototypeOf(e);function Re(e,t,n=!1,o=!1){const r=dt(e=e.__v_raw),i=dt(t);n||(D(t,i)&&me(r,0,t),me(r,0,i));const{has:l}=De(r),a=o?Ae:n?ft:ht;return l.call(r,t)?a(e.get(t)):l.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function ze(e,t=!1){const n=this.__v_raw,o=dt(n),r=dt(e);return t||(D(e,r)&&me(o,0,e),me(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Be(e,t=!1){return e=e.__v_raw,!t&&me(dt(e),0,se),Reflect.get(e,"size",e)}function je(e){e=dt(e);const t=dt(this);return De(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function Ne(e,t){t=dt(t);const n=dt(this),{has:o,get:r}=De(n);let i=o.call(n,e);i||(e=dt(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?D(t,l)&&be(n,"set",e,t):be(n,"add",e,t),this}function _e(e){const t=dt(this),{has:n,get:o}=De(t);let r=n.call(t,e);r||(e=dt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&be(t,"delete",e,void 0),i}function Qe(){const e=dt(this),t=0!==e.size,n=e.clear();return t&&be(e,"clear",void 0,void 0),n}function Le(e,t){return function(n,o){const r=this,i=r.__v_raw,l=dt(i),a=t?Ae:e?ft:ht;return!e&&me(l,0,se),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function He(e,t,n){return function(...o){const r=this.__v_raw,i=dt(r),l=f(i),a="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,c=r[e](...o),u=n?Ae:t?ft:ht;return!t&&me(i,0,s?ce:se),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Fe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function We(){const e={get(e){return Re(this,e)},get size(){return Be(this)},has:ze,add:je,set:Ne,delete:_e,clear:Qe,forEach:Le(!1,!1)},t={get(e){return Re(this,e,!1,!0)},get size(){return Be(this)},has:ze,add:je,set:Ne,delete:_e,clear:Qe,forEach:Le(!1,!0)},n={get(e){return Re(this,e,!0)},get size(){return Be(this,!0)},has(e){return ze.call(this,e,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Le(!0,!1)},o={get(e){return Re(this,e,!0,!0)},get size(){return Be(this,!0)},has(e){return ze.call(this,e,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Le(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=He(r,!1,!1),n[r]=He(r,!0,!1),t[r]=He(r,!1,!0),o[r]=He(r,!0,!0)})),[e,n,t,o]}const[Xe,Ye,Ve,Ze]=We();function Ue(e,t){const n=t?e?Ze:Ve:e?Ye:Xe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const Ke={get:Ue(!1,!1)},Ge={get:Ue(!1,!0)},qe={get:Ue(!0,!1)},Je=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap;function ot(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>S(e).slice(8,-1))(e))}function rt(e){return st(e)?e:lt(e,!1,Me,Ke,Je)}function it(e){return lt(e,!0,Ie,qe,tt)}function lt(e,t,n,o,r){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=ot(e);if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function at(e){return st(e)?at(e.__v_raw):!(!e||!e.__v_isReactive)}function st(e){return!(!e||!e.__v_isReadonly)}function ct(e){return!(!e||!e.__v_isShallow)}function ut(e){return at(e)||st(e)}function dt(e){const t=e&&e.__v_raw;return t?dt(t):e}function pt(e){return z(e,"__v_skip",!0),e}const ht=e=>y(e)?rt(e):e,ft=e=>y(e)?it(e):e;function gt(e){pe&&ie&&ve((e=dt(e)).dep||(e.dep=te()))}function mt(e,t){const n=(e=dt(e)).dep;n&&ye(n)}function vt(e){return!(!e||!0!==e.__v_isRef)}function bt(e){return Ot(e,!1)}function yt(e){return Ot(e,!0)}function Ot(e,t){return vt(e)?e:new wt(e,t)}class wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:dt(e),this._value=t?e:ht(e)}get value(){return gt(this),this._value}set value(e){const t=this.__v_isShallow||ct(e)||st(e);e=t?e:dt(e),D(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ht(e),mt(this))}}function St(e){return vt(e)?e.value:e}const $t={get:(e,t,n)=>St(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return vt(r)&&!vt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function xt(e){return at(e)?e:new Proxy(e,$t)}function Ct(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=Mt(e,n);return t}class kt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=dt(this._object),t=this._key,null==(n=re.get(e))?void 0:n.get(t);var e,t,n}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Tt(e,t,n){return vt(e)?e:m(e)?new Pt(e):y(e)&&arguments.length>1?Mt(e,t,n):bt(e)}function Mt(e,t,n){const o=e[t];return vt(o)?o:new kt(e,t,n)}class It{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ue(e,(()=>{this._dirty||(this._dirty=!0,mt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=dt(this);return gt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Et(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Dt(i,t,n)}return r}function At(e,t,n,o){if(m(e)){const r=Et(e,t,n,o);return r&&O(r)&&r.catch((e=>{Dt(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=Bt[o],i=Zt(r);iZt(e)-Zt(t))),Qt=0;Qt<_t.length;Qt++)_t[Qt]();_t=null,Qt=0}}const Zt=e=>null==e.id?1/0:e.id,Ut=(e,t)=>{const n=Zt(e)-Zt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kt(e){zt=!1,Rt=!0,Bt.sort(Ut);try{for(jt=0;jtv(e)?e.trim():e))),t&&(i=n.map(B))}let s,c=r[s=A(t)]||r[s=A(T(t))];!c&&l&&(c=r[s=A(I(t))]),c&&At(c,e,6,i);const u=r[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,At(u,e,6,i)}}function qt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={},a=!1;if(!m(e)){const o=e=>{const n=qt(e,t,!0);n&&(a=!0,c(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(h(i)?i.forEach((e=>l[e]=null)):c(l,i),y(e)&&o.set(e,l),l):(y(e)&&o.set(e,null),null)}function Jt(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,I(t))||p(e,t))}let en=null,tn=null;function nn(e){const t=en;return en=e,tn=e&&e.type.__scopeId||null,t}function on(e){tn=e}function rn(){tn=null}function ln(e,t=en,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&sr(-1);const r=nn(t);let i;try{i=e(...n)}finally{nn(r),o._d&&sr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function an(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:a,attrs:c,emit:u,render:d,renderCache:p,data:h,setupState:f,ctx:g,inheritAttrs:m}=e;let v,b;const y=nn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=Sr(d.call(t,e,p,i,f,h,g)),b=c}else{const e=t;v=Sr(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),b=t.props?c:sn(c)}}catch(w){rr.length=0,Dt(w,e,1),v=br(nr)}let O=v;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O;e.length&&7&t&&(l&&e.some(s)&&(b=cn(b,l)),O=yr(O,b))}return n.dirs&&(O=yr(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),v=O,nn(y),v}const sn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},cn=(e,t)=>{const n={};for(const o in e)s(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function un(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.value,g=ct(e)):at(e)?(p=()=>e,r=!0):h(e)?(v=!0,g=e.some((e=>at(e)||ct(e))),p=()=>e.map((e=>vt(e)?e.value:at(e)?Sn(e):m(e)?Et(e,d,2):void 0))):p=m(e)?t?()=>Et(e,d,2):()=>{if(!d||!d.isUnmounted)return f&&f(),At(e,d,3,[y])}:i,t&&r){const e=p;p=()=>Sn(e())}let b,y=e=>{f=$.onStop=()=>{Et(e,d,4),f=$.onStop=void 0}};if(Br){if(y=i,t?n&&At(t,d,3,[p(),v?[]:void 0,y]):p(),"sync"!==l)return i;{const e=Wr();b=e.__watcherHandles||(e.__watcherHandles=[])}}let O=v?new Array(e.length).fill(vn):vn;const w=()=>{if($.active)if(t){const e=$.run();(r||g||(v?e.some(((e,t)=>D(e,O[t]))):D(e,O)))&&(f&&f(),At(t,d,3,[e,O===vn?void 0:v&&O[0]===vn?[]:O,y]),O=e)}else $.run()};let S;w.allowRecurse=!!t,"sync"===l?S=w:"post"===l?S=()=>Wo(w,d&&d.suspense):(w.pre=!0,d&&(w.id=d.uid),S=()=>Wt(w));const $=new ue(p,S);t?n?w():O=$.run():"post"===l?Wo($.run.bind($),d&&d.suspense):$.run();const x=()=>{$.stop(),d&&d.scope&&u(d.scope.effects,$)};return b&&b.push(x),x}function On(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?wn(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const l=Tr;Dr(this);const a=yn(r,i.bind(o),n);return l?Dr(l):Rr(),a}function wn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Sn(e,t)}));else if($(e))for(const n in e)Sn(e[n],t);return e}function $n(e,t){const n=en;if(null===n)return e;const r=Qr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0})),Kn((()=>{e.isUnmounting=!0})),e}const Tn=[Function,Array],Mn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tn,onEnter:Tn,onAfterEnter:Tn,onEnterCancelled:Tn,onBeforeLeave:Tn,onLeave:Tn,onAfterLeave:Tn,onLeaveCancelled:Tn,onBeforeAppear:Tn,onAppear:Tn,onAfterAppear:Tn,onAppearCancelled:Tn},In={name:"BaseTransition",props:Mn,setup(e,{slots:t}){const n=Mr(),o=Pn();let r;return()=>{const i=t.default&&Bn(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1)for(const e of i)if(e.type!==nr){l=e;break}const a=dt(e),{mode:s}=a;if(o.isLeaving)return Dn(l);const c=Rn(l);if(!c)return Dn(l);const u=An(c,a,o,n);zn(c,u);const d=n.subTree,p=d&&Rn(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==nr&&(!hr(c,p)||h)){const e=An(p,a,o,n);if(zn(p,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},Dn(l);"in-out"===s&&c.type!==nr&&(e.delayLeave=(e,t,n)=>{En(o,p)[String(p.key)]=p,e[Cn]=()=>{t(),e[Cn]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function En(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function An(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,O=String(e.key),w=En(n,e),S=(e,t)=>{e&&At(e,o,9,t)},$=(e,t)=>{const n=t[1];S(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},x={mode:i,persisted:l,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[Cn]&&t[Cn](!0);const i=w[O];i&&hr(e,i)&&i.el[Cn]&&i.el[Cn](),S(o,[t])},enter(e){let t=s,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||s,o=b||c,i=y||u}let l=!1;const a=e[kn]=t=>{l||(l=!0,S(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e[kn]=void 0)};t?$(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[kn]&&t[kn](!0),n.isUnmounting)return o();S(d,[t]);let i=!1;const l=t[Cn]=n=>{i||(i=!0,o(),S(n?g:f,[t]),t[Cn]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?$(p,[t,l]):l()},clone:e=>An(e,t,n,o)};return x}function Dn(e){if(_n(e))return(e=yr(e)).children=null,e}function Rn(e){return _n(e)?e.children?e.children[0]:void 0:e}function zn(e,t){6&e.shapeFlag&&e.component?zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bn(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ic({name:e.name},t,{setup:e}))():e}const Nn=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function Qn(e,t){Hn(e,"a",t)}function Ln(e,t){Hn(e,"da",t)}function Hn(e,t,n=Tr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)_n(e.parent.vnode)&&Fn(o,t,n,e),e=e.parent}}function Fn(e,t,n,o){const r=Wn(t,e,o,!0);Gn((()=>{u(o[t],r)}),n)}function Wn(e,t,n=Tr,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;fe(),Dr(n);const r=At(t,n,e,o);return Rr(),ge(),r});return o?r.unshift(i):r.push(i),i}}const Xn=e=>(t,n=Tr)=>(!Br||"sp"===e)&&Wn(e,((...e)=>t(...e)),n),Yn=Xn("bm"),Vn=Xn("m"),Zn=Xn("bu"),Un=Xn("u"),Kn=Xn("bum"),Gn=Xn("um"),qn=Xn("sp"),Jn=Xn("rtg"),eo=Xn("rtc");function to(e,t=Tr){Wn("ec",e,t)}function no(e,t,n,o){let r;const i=n&&n[o];if(h(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o!pr(e)||e.type!==nr&&!(e.type===er&&!ro(e.children))))?e:null}const io=e=>e?zr(e)?Qr(e)||e.proxy:io(e.parent):null,lo=c(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=>io(e.parent),$root:e=>io(e.root),$emit:e=>e.emit,$options:e=>mo(e),$forceUpdate:e=>e.f||(e.f=()=>Wt(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>On.bind(e)}),ao=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),so={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:a,type:s,appContext:c}=e;let u;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(ao(r,t))return a[t]=1,r[t];if(i!==o&&p(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return a[t]=3,l[t];if(n!==o&&p(n,t))return a[t]=4,n[t];po&&(a[t]=0)}}const d=lo[t];let h,f;return d?("$attrs"===t&&me(e,0,t),d(e)):(h=s.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(a[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return ao(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(l[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},a){let s;return!!n[a]||e!==o&&p(e,a)||ao(t,a)||(s=l[0])&&p(s,a)||p(r,a)||p(lo,a)||p(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function co(){return function(){const e=Mr();return e.setupContext||(e.setupContext=_r(e))}().attrs}function uo(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let po=!0;function ho(e){const t=mo(e),n=e.proxy,o=e.ctx;po=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:a,watch:s,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:b,deactivated:O,beforeDestroy:w,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:k,renderTriggered:P,errorCaptured:T,serverPrefetch:M,expose:I,inheritAttrs:E,components:A,directives:D,filters:R}=t;if(u&&function(e,t,n=i){h(e)&&(e=Oo(e));for(const o in e){const n=e[o];let r;r=y(n)?"default"in n?Mo(n.from||o,n.default,!0):Mo(n.from||o):Mo(n),vt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);y(t)&&(e.data=rt(t))}if(po=!0,l)for(const h in l){const e=l[h],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,a=Lr({get:t,set:r});Object.defineProperty(o,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const i in s)go(s[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{To(t,e[t])}))}function z(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&fo(d,e,"c"),z(Yn,p),z(Vn,f),z(Zn,g),z(Un,v),z(Qn,b),z(Ln,O),z(to,T),z(eo,k),z(Jn,P),z(Kn,S),z(Gn,x),z(qn,M),h(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===i&&(e.render=C),null!=E&&(e.inheritAttrs=E),A&&(e.components=A),D&&(e.directives=D)}function fo(e,t,n){At(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function go(e,t,n,o){const r=o.includes(".")?wn(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&bn(r,n)}else if(m(e))bn(r,e.bind(n));else if(y(e))if(h(e))e.forEach((e=>go(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&bn(r,o,e)}}function mo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:r.length||n||o?(s={},r.length&&r.forEach((e=>vo(s,e,l,!0))),vo(s,t,l)):s=t,y(t)&&i.set(t,s),s}function vo(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&vo(e,i,n,!0),r&&r.forEach((t=>vo(e,t,n,!0)));for(const l in t)if(o&&"expose"===l);else{const o=bo[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const bo={data:yo,props:$o,emits:$o,methods:So,computed:So,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:So,directives:So,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=wo(e[o],t[o]);return n},provide:yo,inject:function(e,t){return So(Oo(e),Oo(t))}};function yo(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function Oo(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(a,...t)):m(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,s,c){if(!l){const u=br(n,o);return u.appContext=r,s&&t?t(u,i):e(u,i,c),l=!0,a._container=i,i.__vue_app__=a,Qr(u.component)||u.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){Po=a;try{return e()}finally{Po=null}}};return a}}let Po=null;function To(e,t){if(Tr){let n=Tr.provides;const o=Tr.parent&&Tr.parent.provides;o===n&&(n=Tr.provides=Object.create(o)),n[e]=t}}function Mo(e,t,n=!1){const o=Tr||en;if(o||Po){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Po._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function Io(e,t,n,o=!1){const r={},i={};z(i,fr,1),e.propsDefaults=Object.create(null),Eo(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:lt(r,!1,Ee,Ge,et):e.type.props?e.props=r:e.props=i,e.attrs=i}function Eo(e,t,n,r){const[i,l]=e.propsOptions;let a,s=!1;if(t)for(let o in t){if(C(o))continue;const c=t[o];let u;i&&p(i,u=T(o))?l&&l.includes(u)?(a||(a={}))[u]=c:n[u]=c:Jt(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,s=!0)}if(l){const t=dt(n),r=a||o;for(let o=0;o{d=!0;const[n,o]=Do(e,t,!0);c(s,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!d)return y(e)&&i.set(e,r),r;if(h(a))for(let r=0;r-1,n[1]=o<0||t-1||p(n,"default"))&&u.push(e)}}}const f=[s,u];return y(e)&&i.set(e,f),f}function Ro(e){return"$"!==e[0]}function zo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Bo(e,t){return zo(e)===zo(t)}function jo(e,t){return h(t)?t.findIndex((t=>Bo(t,e))):m(t)&&Bo(t,e)?0:-1}const No=e=>"_"===e[0]||"$stable"===e,_o=e=>h(e)?e.map(Sr):[Sr(e)],Qo=(e,t,n)=>{if(t._n)return t;const o=ln(((...e)=>_o(t(...e))),n);return o._c=!1,o},Lo=(e,t,n)=>{const o=e._ctx;for(const r in e){if(No(r))continue;const n=e[r];if(m(n))t[r]=Qo(0,n,o);else if(null!=n){const e=_o(n);t[r]=()=>e}}},Ho=(e,t)=>{const n=_o(t);e.slots.default=()=>n};function Fo(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Fo(e,t&&(h(t)?t[o]:t),n,r,i)));if(Nn(r)&&!i)return;const l=4&r.shapeFlag?Qr(r.component)||r.component.proxy:r.el,a=i?null:l,{i:s,r:c}=e,d=t&&t.r,f=s.refs===o?s.refs={}:s.refs,g=s.setupState;if(null!=d&&d!==c&&(v(d)?(f[d]=null,p(g,d)&&(g[d]=null)):vt(d)&&(d.value=null)),m(c))Et(c,s,12,[a,f]);else{const t=v(c),o=vt(c);if(t||o){const r=()=>{if(e.f){const n=t?p(g,c)?g[c]:f[c]:c.value;i?h(n)&&u(n,l):h(n)?n.includes(l)||n.push(l):t?(f[c]=[l],p(g,c)&&(g[c]=f[c])):(c.value=[l],e.k&&(f[e.k]=c.value))}else t?(f[c]=a,p(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,Wo(r,n)):r()}}}const Wo=function(e,t){var n;t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):(h(n=e)?Nt.push(...n):_t&&_t.includes(n,n.allowRecurse?Qt+1:Qt)||Nt.push(n),Xt())};function Xo(e){return function(e,t){N().__VUE__=!0;const{insert:n,remove:l,patchProp:a,createElement:s,createText:u,createComment:d,setText:h,setElementText:f,parentNode:g,nextSibling:m,setScopeId:v=i,insertStaticContent:b}=e,y=(e,t,n,o=null,r=null,i=null,l=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!hr(e,t)&&(o=te(e),U(e,r,i,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case tr:w(e,t,n,o);break;case nr:S(e,t,n,o);break;case or:null==e&&$(t,n,o,l);break;case er:_(e,t,n,o,r,i,l,a,s);break;default:1&d?P(e,t,n,o,r,i,l,a,s):6&d?Q(e,t,n,o,r,i,l,a,s):(64&d||128&d)&&c.process(e,t,n,o,r,i,l,a,s,oe)}null!=u&&r&&Fo(u,e&&e.ref,i,t||e,!t)},w=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},$=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},x=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),l(e),e=n;l(t)},P=(e,t,n,o,r,i,l,a,s)=>{l=l||"svg"===t.type,null==e?M(t,n,o,r,i,l,a,s):D(e,t,r,i,l,a,s)},M=(e,t,o,r,i,l,c,u)=>{let d,p;const{type:h,props:g,shapeFlag:m,transition:v,dirs:b}=e;if(d=e.el=s(e.type,l,g&&g.is,g),8&m?f(d,e.children):16&m&&A(e.children,d,null,r,i,l&&"foreignObject"!==h,c,u),b&&xn(e,null,r,"created"),E(d,e,e.scopeId,c,r),g){for(const t in g)"value"===t||C(t)||a(d,t,null,g[t],l,e.children,r,i,ee);"value"in g&&a(d,"value",null,g.value),(p=g.onVnodeBeforeMount)&&Cr(p,r,e)}b&&xn(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,v);y&&v.beforeEnter(d),n(d,t,o),((p=g&&g.onVnodeMounted)||y||b)&&Wo((()=>{p&&Cr(p,r,e),y&&v.enter(d),b&&xn(e,null,r,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let i=0;i{for(let c=s;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,g=t.props||o;let m;n&&Yo(n,!1),(m=g.onVnodeBeforeUpdate)&&Cr(m,n,t,e),p&&xn(t,e,n,"beforeUpdate"),n&&Yo(n,!0);const v=i&&"foreignObject"!==t.type;if(d?B(e.dynamicChildren,d,c,n,r,v,l):s||X(e,t,c,null,n,r,v,l,!1),u>0){if(16&u)j(c,t,h,g,n,r,i);else if(2&u&&h.class!==g.class&&a(c,"class",null,g.class,i),4&u&&a(c,"style",h.style,g.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{m&&Cr(m,n,t,e),p&&xn(t,e,n,"updated")}),r)},B=(e,t,n,o,r,i,l)=>{for(let a=0;a{if(n!==r){if(n!==o)for(const o in n)C(o)||o in r||a(e,o,n[o],null,s,t.children,i,l,ee);for(const o in r){if(C(o))continue;const c=r[o],u=n[o];c!==u&&"value"!==o&&a(e,o,u,c,s,t.children,i,l,ee)}"value"in r&&a(e,"value",n.value,r.value)}},_=(e,t,o,r,i,l,a,s,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(s=s?s.concat(g):g),null==e?(n(d,o,r),n(p,o,r),A(t.children,o,p,i,l,a,s,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,o,i,l,a,s),(null!=t.key||i&&t===i.subTree)&&Vo(e,t,!0)):X(e,t,o,p,i,l,a,s,c)},Q=(e,t,n,o,r,i,l,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,s):L(t,n,o,r,i,l,s):H(e,t,s)},L=(e,t,n,r,i,l,a)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||kr,l={uid:Pr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new G(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Do(r,i),emitsOptions:qt(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=Gt.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);if(_n(e)&&(s.ctx.renderer=oe),function(e,t=!1){Br=t;const{props:n,children:o}=e.vnode,r=zr(e);Io(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=dt(t),z(t,"_",n)):Lo(t,e.slots={})}else e.slots={},t&&Ho(e,t);z(e.slots,fr,1)})(e,o);r&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,so));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?_r(e):null;Dr(e),fe();const r=Et(o,e,0,[e.props,n]);if(ge(),Rr(),O(r)){if(r.then(Rr,Rr),t)return r.then((n=>{jr(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=r}else jr(e,r,t)}else Nr(e)}(e,t);Br=!1}(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=br(nr);S(null,e,t,n)}}else F(s,e,t,n,i,l,a)},H=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!a||a&&a.$stable)||o!==l&&(o?!l||un(o,l,c):!!l);if(1024&s)return!0;if(16&s)return o?un(o,l,c):!!l;if(8&s){const e=t.dynamicProps;for(let t=0;tjt&&Bt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},F=(e,t,n,o,r,i,l)=>{const a=()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:s,vnode:c}=e,u=n;Yo(e,!1),n?(n.el=c.el,W(e,n,l)):n=c,o&&R(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Cr(t,s,n,c),Yo(e,!0);const d=an(e),p=e.subTree;e.subTree=d,y(p,d,g(p.el),te(p),e,r,i),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),a&&Wo(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Wo((()=>Cr(t,s,n,c)),r)}else{let l;const{el:a,props:s}=t,{bm:c,m:u,parent:d}=e,p=Nn(t);if(Yo(e,!1),c&&R(c),!p&&(l=s&&s.onVnodeBeforeMount)&&Cr(l,d,t),Yo(e,!0),a&&ie){const n=()=>{e.subTree=an(e),ie(a,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=an(e);y(null,l,n,o,e,r,i),t.el=l.el}if(u&&Wo(u,r),!p&&(l=s&&s.onVnodeMounted)){const e=t;Wo((()=>Cr(l,d,e)),r)}(256&t.shapeFlag||d&&Nn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Wo(e.a,r),e.isMounted=!0,t=n=o=null}},s=e.effect=new ue(a,(()=>Wt(c)),e.scope),c=e.update=()=>s.run();c.id=e.uid,Yo(e,!0),c()},W=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=dt(r),[s]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;Eo(e,t,r,i)&&(c=!0);for(const i in a)t&&(p(t,i)||(o=I(i))!==i&&p(t,o))||(s?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Ao(s,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&p(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let l=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?l=!1:(c(i,t),n||1!==e||delete i._):(l=!t.$stable,Lo(t,i)),a=t}else t&&(Ho(e,t),a={default:1});if(l)for(const o in i)No(o)||null!=a[o]||delete i[o]})(e,t.children,n),fe(),Yt(e),ge()},X=(e,t,n,o,r,i,l,a,s=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void V(c,d,n,o,r,i,l,a,s);if(256&p)return void Y(c,d,n,o,r,i,l,a,s)}8&h?(16&u&&ee(c,r,i),d!==c&&f(n,d)):16&u?16&h?V(c,d,n,o,r,i,l,a,s):ee(c,r,i,!0):(8&u&&f(n,""),16&h&&A(d,n,o,r,i,l,a,s))},Y=(e,t,n,o,i,l,a,s,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?ee(e,i,l,!0,!1,p):A(t,n,o,i,l,a,s,c,p)},V=(e,t,n,o,i,l,a,s,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?$r(t[u]):Sr(t[u]);if(!hr(o,r))break;y(o,r,n,null,i,l,a,s,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?$r(t[h]):Sr(t[h]);if(!hr(o,r))break;y(o,r,n,null,i,l,a,s,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)U(e[u],i,l,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?$r(t[u]):Sr(t[u]);null!=e.key&&m.set(e.key,u)}let v,b=0;const O=h-g+1;let w=!1,S=0;const $=new Array(O);for(u=0;u=O){U(o,i,l,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=h;v++)if(0===$[v-g]&&hr(o,t[v])){r=v;break}void 0===r?U(o,i,l,!0):($[r-g]=u+1,r>=S?S=r:w=!0,y(o,t[r],n,null,i,l,a,s,c),b++)}const x=w?function(e){const t=e.slice(),n=[0];let o,r,i,l,a;const s=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}($):r;for(v=x.length-1,u=O-1;u>=0;u--){const e=g+u,r=t[e],p=e+1{const{el:l,type:a,transition:s,children:c,shapeFlag:u}=e;if(6&u)Z(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)a.move(e,t,o,oe);else if(a!==er)if(a!==or)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(l),n(l,t,o),Wo((()=>s.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=s,a=()=>n(l,t,o),c=()=>{e(l,(()=>{a(),i&&i()}))};r?r(l,a,c):c()}else n(l,t,o);else x(e,t,o);else{n(l,t,o);for(let e=0;e{const{type:i,props:l,ref:a,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=a&&Fo(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!Nn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Cr(g,t,e),6&u)J(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&xn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,oe,o):c&&(i!==er||d>0&&64&d)?ee(c,t,n,!1,!0):(i===er&&384&d||!r&&16&u)&&ee(s,t,n),o&&K(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&Wo((()=>{g&&Cr(g,t,e),h&&xn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===er)return void q(n,o);if(t===or)return void k(e);const i=()=>{l(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,l=()=>t(n,i);o?o(e.el,i,l):l()}else i()},q=(e,t)=>{let n;for(;e!==t;)n=m(e),l(e),e=n;l(t)},J=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:a}=e;o&&R(o),r.stop(),i&&(i.active=!1,U(l,e,t,n)),a&&Wo(a,t),Wo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Yt(),Vt(),t._vnode=e},oe={p:y,um:U,m:Z,r:K,mt:L,mc:A,pc:X,pbc:B,n:te,o:e};let re,ie;return t&&([re,ie]=t(oe)),{render:ne,hydrate:re,createApp:ko(ne,re)}}(e)}function Yo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Vo(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let i=0;ie&&(e.disabled||""===e.disabled),Uo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ko=(e,t)=>{const n=e&&e.to;return v(n)?t?t(n):null:n};function Go(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:s,children:c,props:u}=e,d=2===i;if(d&&o(l,t,n),(!d||Zo(u))&&16&s)for(let p=0;p{16&b&&u(y,e,t,r,i,l,a,s)};v?m(n,c):d&&m(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Zo(e.props),m=g?n:u,b=g?o:h;if(l=l||Uo(u),O?(p(e.dynamicChildren,O,m,r,i,l,a),Vo(e,t,!0)):s||d(e,t,m,b,r,i,l,a,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Go(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ko(t.props,f);e&&Go(t,e,null,c,0)}else g&&Go(t,u,h,c,1)}Jo(t)},remove(e,t,n,o,{um:r,o:{remove:i}},l){const{shapeFlag:a,children:s,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),l&&i(c),16&a){const e=l||!Zo(p);for(let o=0;o0?ir||r:null,rr.pop(),ir=rr[rr.length-1]||null,ar>0&&ir&&ir.push(e),e}function ur(e,t,n,o,r,i){return cr(vr(e,t,n,o,r,i,!0))}function dr(e,t,n,o,r){return cr(br(e,t,n,o,r,!0))}function pr(e){return!!e&&!0===e.__v_isVNode}function hr(e,t){return e.type===t.type&&e.key===t.key}const fr="__vInternal",gr=({key:e})=>null!=e?e:null,mr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||vt(e)||m(e)?{i:en,r:e,k:t,f:!!n}:e:null);function vr(e,t=null,n=null,o=0,r=null,i=(e===er?0:1),l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gr(t),ref:t&&mr(t),scopeId:tn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:en};return a?(xr(s,n),128&i&&e.normalize(s)):n&&(s.shapeFlag|=v(n)?8:16),ar>0&&!l&&ir&&(s.patchFlag>0||6&i)&&32!==s.patchFlag&&ir.push(s),s}const br=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==hn||(e=nr),pr(e)){const o=yr(e,t,!0);return n&&xr(o,n),ar>0&&!i&&ir&&(6&o.shapeFlag?ir[ir.indexOf(e)]=o:ir.push(o)),o.patchFlag|=-2,o}var l;if(m(l=e)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=function(e){return e?ut(e)||fr in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=W(e)),y(n)&&(ut(n)&&!h(n)&&(n=c({},n)),t.style=_(n))}const a=v(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:y(e)?4:m(e)?2:0;return vr(e,t,n,o,r,a,i,!0)};function yr(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;nTr||en;let Ir,Er,Ar="__VUE_INSTANCE_SETTERS__";(Er=N()[Ar])||(Er=N()[Ar]=[]),Er.push((e=>Tr=e)),Ir=e=>{Er.length>1?Er.forEach((t=>t(e))):Er[0](e)};const Dr=e=>{Ir(e),e.scope.on()},Rr=()=>{Tr&&Tr.scope.off(),Ir(null)};function zr(e){return 4&e.vnode.shapeFlag}let Br=!1;function jr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=xt(t)),Nr(e)}function Nr(e,t,n){const o=e.type;e.render||(e.render=o.render||i),Dr(e),fe();try{ho(e)}finally{ge(),Rr()}}function _r(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(me(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Qr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xt(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in lo?lo[n](e):void 0,has:(e,t)=>t in e||t in lo}))}const Lr=(e,t)=>function(e,t,n=!1){let o,r;const l=m(e);return l?(o=e,r=i):(o=e.get,r=e.set),new It(o,r,l||!r,n)}(e,0,Br);function Hr(e,t,n){const o=arguments.length;return 2===o?y(t)&&!h(t)?pr(t)?br(e,null,[t]):br(e,t):br(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&pr(n)&&(n=[n]),br(e,t,n))}const Fr=Symbol.for("v-scx"),Wr=()=>Mo(Fr),Xr="3.3.11",Yr="undefined"!=typeof document?document:null,Vr=Yr&&Yr.createElement("template"),Zr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Yr.createElementNS("http://www.w3.org/2000/svg",e):Yr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Yr.createTextNode(e),createComment:e=>Yr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Vr.innerHTML=o?`${e}`:e;const r=Vr.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ur="transition",Kr="animation",Gr=Symbol("_vtc"),qr=(e,{slots:t})=>Hr(In,oi(e),t);qr.displayName="Transition";const Jr={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},ei=qr.props=c({},Mn,Jr),ti=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},ni=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function oi(e){const t={};for(const c in e)c in Jr||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:u=l,appearToClass:d=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(y(e))return[ri(e.enter),ri(e.leave)];{const t=ri(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:b,onEnter:O,onEnterCancelled:w,onLeave:S,onLeaveCancelled:$,onBeforeAppear:x=b,onAppear:C=O,onAppearCancelled:k=w}=t,P=(e,t,n)=>{li(e,t?d:a),li(e,t?u:l),n&&n()},T=(e,t)=>{e._isLeaving=!1,li(e,p),li(e,f),li(e,h),t&&t()},M=e=>(t,n)=>{const r=e?C:O,l=()=>P(t,e,n);ti(r,[t,l]),ai((()=>{li(t,e?s:i),ii(t,e?d:a),ni(r)||ci(t,o,m,l)}))};return c(t,{onBeforeEnter(e){ti(b,[e]),ii(e,i),ii(e,l)},onBeforeAppear(e){ti(x,[e]),ii(e,s),ii(e,u)},onEnter:M(!1),onAppear:M(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);ii(e,p),hi(),ii(e,h),ai((()=>{e._isLeaving&&(li(e,p),ii(e,f),ni(S)||ci(e,o,v,n))})),ti(S,[e,n])},onEnterCancelled(e){P(e,!1),ti(w,[e])},onAppearCancelled(e){P(e,!0),ti(k,[e])},onLeaveCancelled(e){T(e),ti($,[e])}})}function ri(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function ii(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Gr]||(e[Gr]=new Set)).add(t)}function li(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Gr];n&&(n.delete(t),n.size||(e[Gr]=void 0))}function ai(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let si=0;function ci(e,t,n,o){const r=e._endId=++si,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:s}=ui(e,t);if(!l)return o();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${Ur}Delay`),i=o(`${Ur}Duration`),l=di(r,i),a=o(`${Kr}Delay`),s=o(`${Kr}Duration`),c=di(a,s);let u=null,d=0,p=0;return t===Ur?l>0&&(u=Ur,d=l,p=i.length):t===Kr?c>0&&(u=Kr,d=c,p=s.length):(d=Math.max(l,c),u=d>0?l>c?Ur:Kr:null,p=u?u===Ur?i.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Ur&&/\b(transform|all)(,|$)/.test(o(`${Ur}Property`).toString())}}function di(e,t){for(;e.lengthpi(t)+pi(e[n]))))}function pi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function hi(){return document.body.offsetHeight}const fi=Symbol("_vod"),gi={beforeMount(e,{value:t},{transition:n}){e[fi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):mi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),mi(e,!0),o.enter(e)):o.leave(e,(()=>{mi(e,!1)})):mi(e,t))},beforeUnmount(e,{value:t}){mi(e,t)}};function mi(e,t){e.style.display=t?e[fi]:"none"}const vi=/\s*!important$/;function bi(e,t,n){if(h(n))n.forEach((n=>bi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Oi[t];if(n)return n;let o=T(t);if("filter"!==o&&o in e)return Oi[t]=o;o=E(o);for(let r=0;r{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();At(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ci||(ki.then((()=>Ci=0)),Ci=Date.now()),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,l,a)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,a),i[t]=void 0)}}const xi=/(?:Once|Passive|Capture)$/;let Ci=0;const ki=Promise.resolve(),Pi=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ti=new WeakMap,Mi=new WeakMap,Ii=Symbol("_moveCb"),Ei=Symbol("_enterCb"),Ai={name:"TransitionGroup",props:c({},ei,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mr(),o=Pn();let r,i;return Un((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[Gr];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:l}=ui(o);return i.removeChild(o),l}(r[0].el,n.vnode.el,t))return;r.forEach(Ri),r.forEach(zi);const o=r.filter(Bi);hi(),o.forEach((e=>{const n=e.el,o=n.style;ii(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ii]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ii]=null,li(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const l=dt(e),a=oi(l);let s=l.tag||er;r=i,i=t.default?Bn(t.default()):[];for(let e=0;ee.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ji.some((n=>e[`${n}Key`]&&!t.includes(n)))},_i=(e,t)=>e._withMods||(e._withMods=(n,...o)=>{for(let e=0;e{"class"===t?function(e,t,n){const o=e[Gr];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=v(n);if(n&&!r){if(t&&!v(t))for(const e in t)null==n[e]&&bi(o,e,"");for(const e in n)bi(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),fi in e&&(o.display=i)}}(e,n,o):a(t)?s(t)||$i(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Pi(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Pi(t)||!v(n))&&t in e}(e,t,o,r))?function(e,t,n,o,r,i,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){e._value=n;const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value"):e.value)!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Y(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(c){}s&&e.removeAttribute(t)}(e,t,o,i,l,c,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(wi,t.slice(6,t.length)):e.setAttributeNS(wi,t,n);else{const o=X(t);null==n||o&&!Y(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},Zr);let Li;function Hi(){return Li||(Li=Xo(Qi))}const Fi=(...e)=>{Hi().render(...e)},Wi=(...e)=>{const t=Hi().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return v(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t}; /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let Xi;const Yi=e=>Xi=e,Zi=Symbol();function Vi(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ui,Ki;(Ki=Ui||(Ui={})).direct="direct",Ki.patchObject="patch object",Ki.patchFunction="patch function";const Gi=()=>{};function qi(e,t,n,o=Gi){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&J()&&ee(r),r}function Ji(e,...t){e.slice().forEach((e=>{e(...t)}))}const el=e=>e();function tl(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Vi(r)&&Vi(o)&&e.hasOwnProperty(n)&&!vt(o)&&!at(o)?e[n]=tl(r,o):e[n]=o}return e}const nl=Symbol(),{assign:ol}=Object;function rl(e,t,n={},o,r,i){let l;const a=ol({actions:{}},n),s={deep:!0};let c,u,d,p=[],h=[];const f=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:Ui.patchFunction,storeId:e,events:d}):(tl(o.state.value[e],t),n={type:Ui.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();Ft().then((()=>{g===r&&(c=!0)})),u=!0,Ji(p,n,o.state.value[e])}i||f||(o.state.value[e]={}),bt({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ol(e,t)}))}:Gi;function b(t,n){return function(){Yi(o);const r=Array.from(arguments),i=[],l=[];let a;Ji(h,{args:r,name:t,store:y,after:function(e){i.push(e)},onError:function(e){l.push(e)}});try{a=n.apply(this&&this.$id===e?this:y,r)}catch(s){throw Ji(l,s),s}return a instanceof Promise?a.then((e=>(Ji(i,e),e))).catch((e=>(Ji(l,e),Promise.reject(e)))):(Ji(i,a),a)}}const y=rt({_p:o,$id:e,$onAction:qi.bind(null,h),$patch:m,$reset:v,$subscribe(t,n={}){const r=qi(p,t,n.detached,(()=>i())),i=l.run((()=>bn((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Ui.direct,events:d},o)}),ol({},s,n))));return r},$dispose:function(){l.stop(),p=[],h=[],o._s.delete(e)}});o._s.set(e,y);const O=(o._a&&o._a.runWithContext||el)((()=>o._e.run((()=>(l=q()).run(t)))));for(const $ in O){const t=O[$];if(vt(t)&&(!vt(S=t)||!S.effect)||at(t))i||(!f||Vi(w=t)&&w.hasOwnProperty(nl)||(vt(t)?t.value=f[$]:tl(t,f[$])),o.state.value[e][$]=t);else if("function"==typeof t){const e=b($,t);O[$]=e,a.actions[$]=t}}var w,S;return ol(y,O),ol(dt(y),O),Object.defineProperty(y,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ol(t,e)}))}}),o._p.forEach((e=>{ol(y,l.run((()=>e({store:y,app:o._a,pinia:o,options:a}))))})),f&&i&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function il(e){return(il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ll(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=il(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:String(t)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sl(e){for(var t=1;tnull!==e&&"object"==typeof e,pl=/^on[^a-z]/,hl=e=>pl.test(e),fl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gl=/-(\w)/g,ml=fl((e=>e.replace(gl,((e,t)=>t?t.toUpperCase():"")))),vl=/\B([A-Z])/g,bl=fl((e=>e.replace(vl,"-$1").toLowerCase())),yl=fl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ol=Object.prototype.hasOwnProperty,wl=(e,t)=>Ol.call(e,t);function Sl(e){return"number"==typeof e?`${e}px`:e}function $l(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):null!=e?e:t}function xl(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){kl&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Il?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){kl&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ml.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Al=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),Wl="undefined"!=typeof WeakMap?new WeakMap:new Cl,Xl=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=El.getInstance(),o=new Fl(t,n,this);Wl.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){Xl.prototype[e]=function(){var t;return(t=Wl.get(this))[e].apply(t,arguments)}}));const Yl=void 0!==Pl.ResizeObserver?Pl.ResizeObserver:Xl,Zl=e=>null!=e&&""!==e,Vl=(e,t)=>{const n=cl({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},Ul=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,l=t.length;ivoid 0!==e[t],Gl=Symbol("skipFlatten"),ql=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{Array.isArray(e)?o.push(...ql(e,t)):e&&e.type===er?e.key===Gl?o.push(e):o.push(...ql(e.children,t)):e&&pr(e)?t&&!ia(e)?o.push(e):t||o.push(e):Zl(e)&&o.push(e)})),o},Jl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(pr(e))return e.type===er?"default"===t?ql(e.children):[]:e.children&&e.children[t]?ql(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return ql(o)}},ea=e=>{var t;let n=(null===(t=null==e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},ta=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],i=bl(o);(void 0!==r||i in n)&&(t[o]=r)}))}else if(pr(e)&&"object"==typeof e.type){const n=e.props||{},o={};Object.keys(n).forEach((e=>{o[ml(e)]=n[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const n=function(e,t,n,o){const r=e[n];if(null!=r){const e=wl(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&"function"==typeof e?e():e}r.type===Boolean&&(wl(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t},na=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const i=e[n];if(void 0!==i)return"function"==typeof i&&r?i(o):i;t=e.$slots[n],t=r&&t?t(o):t}else if(pr(e)){const i=e.props&&e.props[n];if(void 0!==i&&null!==e.props)return"function"==typeof i&&r?i(o):i;e.type===er?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=r&&t?t(o):t)}return Array.isArray(t)&&(t=ql(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t};function oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?cl(cl({},n),e.$attrs):cl(cl({},n),e.props),Ul(n)[t?"onEvents":"events"]}function ra(e,t){let n=((pr(e)?e.props:e.$attrs)||{}).style||{};if("string"==typeof n)n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},o=/:(.+)/;return"object"==typeof e?e:(e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?ml(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(n,t);else if(t&&n){const e={};return Object.keys(n).forEach((t=>e[ml(t)]=n[t])),e}return n}function ia(e){return e&&(e.type===nr||e.type===er&&0===e.children.length||e.type===tr&&""===e.children.trim())}function la(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{Array.isArray(t)?e.push(...t):(null==t?void 0:t.type)===er?e.push(...la(t.children)):e.push(t)})),e.filter((e=>!ia(e)))}function aa(e){if(e){const t=la(e);return t.length?t:void 0}return e}function sa(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function ca(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var o,r;return null!==(o=t[n])&&void 0!==o?o:null===(r=e[n])||void 0===r?void 0:r.call(e)}const ua=jn({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=rt({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},a=t=>{const{onResize:n}=e,r=t[0].target,{width:i,height:l}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,c=Math.floor(i),u=Math.floor(l);if(o.width!==c||o.height!==u||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:c,height:u,offsetWidth:a,offsetHeight:s};cl(o,e),n&&Promise.resolve().then((()=>{n(cl(cl({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},s=Mr(),c=()=>{const{disabled:t}=e;if(t)return void l();const n=ea(s);n!==r&&(l(),r=n),!i&&n&&(i=new Yl(a),i.observe(n))};return Zn((()=>{c()})),Un((()=>{c()})),Gn((()=>{l()})),bn((()=>e.disabled),(()=>{c()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let da=e=>setTimeout(e,16),pa=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(da=e=>window.requestAnimationFrame(e),pa=e=>window.cancelAnimationFrame(e));let ha=0;const fa=new Map;function ga(e){fa.delete(e)}function ma(e){ha+=1;const t=ha;return function n(o){if(0===o)ga(t),e();else{const e=da((()=>{n(o-1)}));fa.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}function va(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r()=>{t=null,e(...n)})(o))}};return n.cancel=()=>{ma.cancel(t),t=null},n}ma.cancel=e=>{const t=fa.get(e);return ga(t),pa(t)};const ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Oa(){return{type:[Function,Array]}}function wa(e){return{type:Object,default:e}}function Sa(e){return{type:Boolean,default:e}}function $a(e){return{type:Function,default:e}}function xa(e,t){const n={validator:()=>!0,default:e};return n}function Ca(e){return{type:Array,default:e}}function ka(e){return{type:String,default:e}}function Pa(e,t){return e?{type:e,default:t}:xa(t)}let Ta=!1;try{const e=Object.defineProperty({},"passive",{get(){Ta=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(Eue){}const Ma=Ta;function Ia(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0!==r||!Ma||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Ea(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Aa(e,t,n){if(void 0!==n&&t.top>e.top-n)return`${n+t.top}px`}function Da(e,t,n){if(void 0!==n&&t.bottomt.target===e));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},za.push(n),Ra.forEach((t=>{n.eventHandlers[t]=Ia(e,t,(()=>{n.affixList.forEach((e=>{const{lazyUpdatePosition:t}=e.exposed;t()}),!("touchstart"!==t&&"touchmove"!==t||!Ma)&&{passive:!0})}))})))}function ja(e){const t=za.find((t=>{const n=t.affixList.some((t=>t===e));return n&&(t.affixList=t.affixList.filter((t=>t!==e))),n}));t&&0===t.affixList.length&&(za=za.filter((e=>e!==t)),Ra.forEach((e=>{const n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}const Na="anticon",_a=Symbol("GlobalFormContextKey"),Qa=Symbol("configProvider"),La={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Lr((()=>Na)),getPopupContainer:Lr((()=>()=>document.body)),direction:Lr((()=>"ltr"))},Ha=()=>Mo(Qa,La),Fa=Symbol("DisabledContextKey"),Wa=()=>Mo(Fa,bt(void 0)),Xa=e=>{const t=Wa();return To(Fa,Lr((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},Ya={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Za={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Va={lang:cl({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:cl({},Za)},Ua="${label} is not a valid ${type}",Ka={locale:"en",Pagination:Ya,DatePicker:Va,TimePicker:Za,Calendar:Va,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ua,method:Ua,array:Ua,object:Ua,number:Ua,date:Ua,boolean:Ua,integer:Ua,float:Ua,regexp:Ua,email:Ua,url:Ua,hex:Ua},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},Ga=jn({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=Mo("localeData",{}),r=Lr((()=>{const{componentName:t="global",defaultLocale:n}=e,r=n||Ka[t||"global"],{antLocale:i}=o,l=t&&i?i[t]:{};return cl(cl({},"function"==typeof r?r():r),l||{})})),i=Lr((()=>{const{antLocale:e}=o,t=e&&e.locale;return e&&e.exist&&!t?Ka.locale:t}));return()=>{const t=e.children||n.default,{antLocale:l}=o;return null==t?void 0:t(r.value,i.value,l)}}});function qa(e,t,n){const o=Mo("localeData",{});return[Lr((()=>{const{antLocale:r}=o,i=St(t)||Ka[e||"global"],l=e&&r?r[e]:{};return cl(cl(cl({},"function"==typeof i?i():i),l||{}),St(n)||{})}))]}function Ja(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const es=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}},ts="data-token-hash",ns="data-css-hash",os="__cssinjs_instance__";function rs(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ns}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[os]=t[os]||e,t[os]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${ns}]`)).forEach((t=>{var n;const r=t.getAttribute(ns);o[r]?t[os]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new es(e)}const is=Symbol("StyleContextKey"),ls={cache:rs(),defaultCache:!0,hashPriority:"low"},as=()=>{const e=(()=>{var e,t,n;const o=Mr();let r;if(o&&o.appContext){const i=null===(n=null===(t=null===(e=o.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;i?r=i:(r=rs(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=rs();return r})();return Mo(is,yt(cl(cl({},ls),{cache:e})))},ss=e=>{const t=as(),n=yt(cl(cl({},ls),{cache:rs()}));return bn([()=>St(e),t],(()=>{const o=cl({},t.value),r=St(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:i}=r;o.cache=o.cache||rs(),o.defaultCache=!i&&t.value.defaultCache,n.value=o}),{immediate:!0}),To(is,n),n},cs=ya(jn({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:Sa(),mock:ka(),cache:wa(),defaultCache:Sa(),hashPriority:ka(),container:Pa(),ssrInline:Sa(),transformers:Ca(),linters:Ca()},setup(e,t){let{slots:n}=t;return ss(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function us(e,t,n,o){const r=as(),i=yt(""),l=yt();mn((()=>{i.value=[e,...t.value].join("%")}));const a=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return 0==t-1?(null==o||o(n,!1),null):[t-1,n]}))};return bn(i,((e,t)=>{t&&a(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),l.value=r.value.cache.get(i.value)[1]}),{immediate:!0}),Kn((()=>{a(i.value)})),l}function ds(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function ps(e,t){return!!e&&!!e.contains&&e.contains(t)}const hs="data-vc-order",fs=new Map;function gs(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function ms(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function vs(e){return Array.from((fs.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ds())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(hs,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),(null==n?void 0:n.nonce)&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const i=ms(t),{firstChild:l}=i;if(o){if("queue"===o){const e=vs(i).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(hs))));if(e.length)return i.insertBefore(r,e[e.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vs(ms(t)).find((n=>n.getAttribute(gs(t))===e))}function Os(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=ys(e,t);n&&ms(t).removeChild(n)}function ws(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,i;!function(e,t){const n=fs.get(e);if(!n||!ps(document,n)){const n=bs("",t),{parentNode:o}=n;fs.set(e,o),e.removeChild(n)}}(ms(n),n);const l=ys(t,n);if(l)return(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&l.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(l.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const a=bs(e,n);return a.setAttribute(gs(n),t),a}class Ss{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),(null==n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>Ss.MAX_CACHE_SIZE+Ss.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n0),Ms+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const Es=new Ss;function As(e){const t=Array.isArray(e)?e:[e];return Es.has(t)||Es.set(t,new Is(t)),Es.get(t)}const Ds=new WeakMap;function Rs(e){let t=Ds.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof Is?o.id:o&&"object"==typeof o?Rs(o):o})),Ds.set(e,t)),t}const zs=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Bs="_bAmBoO_";let js;function Ns(){return void 0===js&&(js=function(e,t,n){var o,r;if(ds()){ws(e,zs);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);const l=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Bs);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),Os(zs),l}return!1}(`@layer ${zs} { .${zs} { content: "${Bs}"!important; } }`,(e=>{e.className=zs}))),js}const _s={},Qs=new Map;function Ls(e,t){Qs.set(e,(Qs.get(e)||0)-1);const n=Array.from(Qs.keys()),o=n.filter((e=>(Qs.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${ts}="${e}"]`).forEach((e=>{var n;e[os]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Qs.delete(e)}))}function Hs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt({});const o=as(),r=Lr((()=>cl({},...t.value))),i=Lr((()=>Rs(r.value))),l=Lr((()=>Rs(n.value.override||_s))),a=us("token",Lr((()=>[n.value.salt||"",e.value.id,i.value,l.value])),(()=>{const{salt:t="",override:o=_s,formatToken:i,getComputedToken:l}=n.value,a=l?l(r.value,o,e.value):((e,t,n,o)=>{let r=cl(cl({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r})(r.value,o,e.value,i),s=function(e,t){return Ja(`${t}_${Rs(e)}`)}(a,t);a._tokenKey=s,function(e){Qs.set(e,(Qs.get(e)||0)+1)}(s);const c=`css-${Ja(s)}`;return a._hashId=c,[a,c]}),(e=>{var t;Ls(e[0]._tokenKey,null===(t=o.value)||void 0===t?void 0:t.cache.instanceId)}));return a}var Fs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ws="comm",Xs="rule",Ys="decl",Zs=Math.abs,Vs=String.fromCharCode;function Us(e){return e.trim()}function Ks(e,t,n){return e.replace(t,n)}function Gs(e,t){return e.indexOf(t)}function qs(e,t){return 0|e.charCodeAt(t)}function Js(e,t,n){return e.slice(t,n)}function ec(e){return e.length}function tc(e,t){return t.push(e),e}var nc=1,oc=1,rc=0,ic=0,lc=0,ac="";function sc(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:nc,column:oc,length:l,return:"",siblings:a}}function cc(){return lc=ic2||hc(lc)>3?"":" "}function mc(e,t){for(;--t&&cc()&&!(lc<48||lc>102||lc>57&&lc<65||lc>70&&lc<97););return pc(e,dc()+(t<6&&32==uc()&&32==cc()))}function vc(e){for(;cc();)switch(lc){case e:return ic;case 34:case 39:34!==e&&39!==e&&vc(lc);break;case 40:41===e&&vc(e);break;case 92:cc()}return ic}function bc(e,t){for(;cc()&&e+lc!==57&&(e+lc!==84||47!==uc()););return"/*"+pc(t,ic-1)+"*"+Vs(47===e?e:cc())}function yc(e){for(;!hc(uc());)cc();return pc(e,ic)}function Oc(e){return function(e){return ac="",e}(wc("",null,null,null,[""],e=function(e){return nc=oc=1,rc=ec(ac=e),ic=0,[]}(e),0,[0],e))}function wc(e,t,n,o,r,i,l,a,s){for(var c=0,u=0,d=l,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",O=r,w=i,S=o,$=y;m;)switch(f=b,b=cc()){case 40:if(108!=f&&58==qs($,d-1)){-1!=Gs($+=Ks(fc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:$+=fc(b);break;case 9:case 10:case 13:case 32:$+=gc(f);break;case 92:$+=mc(dc()-1,7);continue;case 47:switch(uc()){case 42:case 47:tc($c(bc(cc(),dc()),t,n,s),s);break;default:$+="/"}break;case 123*g:a[c++]=ec($)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&($=Ks($,/\f/g,"")),h>0&&ec($)-d&&tc(h>32?xc($+";",o,n,d-1,s):xc(Ks($," ","")+";",o,n,d-2,s),s);break;case 59:$+=";";default:if(tc(S=Sc($,t,n,c,u,r,a,y,O=[],w=[],d,i),i),123===b)if(0===u)wc($,t,S,S,O,i,d,a,w);else switch(99===p&&110===qs($,3)?100:p){case 100:case 108:case 109:case 115:wc(e,S,S,o&&tc(Sc(e,S,S,0,0,r,a,y,r,O=[],d,w),w),r,w,d,a,o?O:w);break;default:wc($,S,S,S,[""],w,0,a,w)}}c=u=h=0,g=v=1,y=$="",d=l;break;case 58:d=1+ec($),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==(lc=ic>0?qs(ac,--ic):0,oc--,10===lc&&(oc=1,nc--),lc))continue;switch($+=Vs(b),b*g){case 38:v=u>0?1:($+="\f",-1);break;case 44:a[c++]=(ec($)-1)*v,v=1;break;case 64:45===uc()&&($+=fc(cc())),p=uc(),u=d=ec(y=$+=yc(dc())),b++;break;case 45:45===f&&2==ec($)&&(g=0)}}return i}function Sc(e,t,n,o,r,i,l,a,s,c,u,d){for(var p=r-1,h=0===r?i:[""],f=function(e){return e.length}(h),g=0,m=0,v=0;g0?h[b]+" "+y:Ks(y,/&\f/g,h[b])))&&(s[v++]=O);return sc(e,t,n,0===r?Xs:a,s,c,u,d)}function $c(e,t,n,o){return sc(e,t,n,Ws,Vs(lc),Js(e,2,-2),0,o)}function xc(e,t,n,o,r){return sc(e,t,n,Ys,Js(e,0,o),Js(e,o+1,-1),o,r)}function Cc(e,t){for(var n="",o=0;o ")}`:""}`)}function Tc(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const Mc=(e,t,n)=>{const o=function(e){return e.parentSelectors.reduce(((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t),"")}(n),r=o.match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(Tc)&&Pc("Concat ':not' selector not support in legacy browsers.",n)},Ic=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void Pc(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){const o=t.split(" ").map((e=>e.trim()));4===o.length&&o[1]!==o[3]&&Pc(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":return void("left"!==t&&"right"!==t||Pc(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n));case"borderRadius":return void("string"==typeof t&&t.split("/").map((e=>e.trim())).reduce(((e,t)=>{if(e)return e;const n=t.split(" ").map((e=>e.trim()));return n.length>=2&&n[0]!==n[1]||3===n.length&&n[1]!==n[2]||4===n.length&&n[2]!==n[3]||e}),!1)&&Pc(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n))}},Ec=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&Pc("Should not use more than one `&` in a selector.",n)},Ac="data-ant-cssinjs-cache-path";let Dc,Rc=!0;function zc(e){return function(){var e;if(!Dc&&(Dc={},ds())){const t=document.createElement("div");t.className=Ac,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");Dc[t]=n}));const o=document.querySelector(`style[${Ac}]`);o&&(Rc=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!Dc[e]}const Bc=ds(),jc="_multi_value_";function Nc(e){return Cc(Oc(e),kc).replace(/\{%%%\:[^;];}/g,";")}const _c=new Set,Qc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:l,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",p={};function h(e){const n=e.getName(i);if(!p[n]){const[o]=Qc(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(i)}${o}`}}const f=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]);if(f.forEach((e=>{const l="string"!=typeof e||n?e:{};if("string"==typeof l)d+=`${l}\n`;else if(l._keyframe)h(l);else{const e=c.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),l);Object.keys(e).forEach((l=>{var a;const c=e[l];if("object"!=typeof c||!c||"animationName"===l&&c._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||jc in e)}(c)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;Fs[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(h(t),o=t.getName(i)),d+=`${n}:${o};`};const t=null!==(a=null==c?void 0:c.value)&&void 0!==a?a:c;"object"==typeof c&&(null==c?void 0:c[jc])&&Array.isArray(t)?t.forEach((t=>{e(l,t)})):e(l,t)}else{let e=!1,a=l.trim(),u=!1;(n||o)&&i?a.startsWith("@")?e=!0:a=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${i}${r}${o.slice(i.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(l,i,s):!n||i||"&"!==a&&""!==a||(a="",u=!0);const[h,f]=Qc(c,t,{root:u,injectHash:e,parentSelectors:[...r,a]});p=cl(cl({},p),f),d+=`${a}${h}`}}))}})),n){if(l&&Ns()){const e=l.split(","),t=e[e.length-1].trim();d=`@layer ${t} {${d}}`,e.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Lc(e,t){const n=as(),o=Lr((()=>e.value.token._tokenKey)),r=Lr((()=>[o.value,...e.value.path]));let i=Bc;return us("style",r,(()=>{const{path:l,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,p=r.value.join("|");if(zc(p)){const[e,t]=function(e){const t=Dc[e];let n=null;if(t&&ds())if(Rc)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${ns}="${Dc[e]}"]`);t?n=t.innerHTML:delete Dc[e]}return[n,t]}(p);if(e)return[e,o.value,t,{},u,d]}const h=t(),{hashPriority:f,container:g,transformers:m,linters:v,cache:b}=n.value,[y,O]=Qc(h,{hashId:a,hashPriority:f,layer:s,path:l.join("-"),transformers:m,linters:v}),w=Nc(y),S=function(e,t){return Ja(`${e.join("%")}${t}`)}(r.value,w);if(i){const e={mark:ns,prepend:"queue",attachTo:g,priority:d},t="function"==typeof c?c():c;t&&(e.csp={nonce:t});const n=ws(w,S,e);n[os]=b.instanceId,n.setAttribute(ts,o.value),Object.keys(O).forEach((e=>{_c.has(e)||(_c.add(e),ws(Nc(O[e]),`_effect-${e}`,{mark:ns,prepend:"queue",attachTo:g}))}))}return[w,o.value,S,O,u,d]}),((e,t)=>{let[,,o]=e;(t||n.value.autoClear)&&Bc&&Os(o,{mark:ns})})),e=>e}const Hc=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}};function Fc(e){return e.notSplit=!0,e}const Wc={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Fc(["borderTop","borderBottom"]),borderBlockStart:Fc(["borderTop"]),borderBlockEnd:Fc(["borderBottom"]),borderInline:Fc(["borderLeft","borderRight"]),borderInlineStart:Fc(["borderLeft"]),borderInlineEnd:Fc(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Xc(e){return{_skip_check_:!0,value:e}}const Yc=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g,Zc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(e,o)=>{if(!o)return e;const r=parseFloat(o);if(r<=1)return e;const i=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(r/t,n);return`${i}rem`};return{visit:e=>{const t=cl({},e);return Object.entries(e).forEach((e=>{let[n,i]=e;if("string"==typeof i&&i.includes("px")){const e=i.replace(Yc,r);t[n]=e}Fs[n]||"number"!=typeof i||0===i||(t[n]=`${i}px`.replace(Yc,r));const l=n.trim();if(l.startsWith("@")&&l.includes("px")&&o){const e=n.replace(Yc,r);t[e]=t[n],delete t[n]}})),t}}},Vc={Theme:Is,createTheme:As,useStyleRegister:Lc,useCacheToken:Hs,createCache:rs,useStyleInject:as,useStyleProvider:ss,Keyframes:Hc,extractStyle:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="style%",o=Array.from(e.cache.keys()).filter((e=>e.startsWith(n))),r={},i={};let l="";function a(e,n,o){const r=cl(cl({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{[ts]:n,[ns]:o}),i=Object.keys(r).map((e=>{const t=r[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:``}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,l,s,c,u,d]=e.cache.get(t)[1];if(u)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let h=a(o,l,s,p);return i[n]=s,c&&Object.keys(c).forEach((e=>{r[e]||(r[e]=!0,h+=a(Nc(c[e]),l,`_effect-${e}`,p))})),[d,h]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{let[,t]=e;l+=t})),l+=a(`.${Ac}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(i)}";}`,void 0,void 0,{[Ac]:Ac}),l},legacyLogicalPropertiesTransformer:{visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=Wc[n];if(!r||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{const e=function(e){if("number"==typeof e)return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce(((e,t)=>(t.includes("(")?(n+=t,o+=t.split("(").length-1):t.includes(")")?(n+=` ${t}`,o-=t.split(")").length-1,0===o&&(e.push(n),n="")):o>0?n+=` ${t}`:e.push(t),e)),[])}(o);r.length&&r.notSplit?r.forEach((e=>{t[e]=Xc(o)})):1===r.length?t[r[0]]=Xc(o):2===r.length?r.forEach(((n,o)=>{var r;t[n]=Xc(null!==(r=e[o])&&void 0!==r?r:e[0])})):4===r.length?r.forEach(((n,o)=>{var r,i;t[n]=Xc(null!==(i=null!==(r=e[o])&&void 0!==r?r:e[o-2])&&void 0!==i?i:e[0])})):t[n]=o}})),t}},px2remTransformer:Zc,logicalPropertiesLinter:Ic,legacyNotSelectorLinter:Mc,parentSelectorLinter:Ec,StyleProvider:cs},Uc=Vc,Kc="4.0.6",Gc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function qc(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Jc(e){return Math.min(1,Math.max(0,e))}function eu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(100*Number(e),"%"):e}function nu(e){return 1===e.length?"0"+e:String(e)}function ou(e,t,n){e=qc(e,255),t=qc(t,255),n=qc(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=0,a=(o+r)/2;if(o===r)l=0,i=0;else{var s=o-r;switch(l=a>.5?s/(2-o-r):s/(o+r),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iu(e,t,n){e=qc(e,255),t=qc(t,255),n=qc(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=o,a=o-r,s=0===o?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=uu(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=eu(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=iu(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=iu(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ou(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ou(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),lu(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,l=[nu(Math.round(e).toString(16)),nu(Math.round(t).toString(16)),nu(Math.round(n).toString(16)),nu((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*qc(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*qc(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+lu(this.r,this.g,this.b,!1),t=0,n=Object.entries(cu);t=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jc(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jc(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jc(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,l=[],a=1/t;t--;)l.push(new e({h:o,s:r,v:i})),i=(i+a)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,l=1;l=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function wu(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Su(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function $u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=uu(e),r=5;r>0;r-=1){var i=bu(o),l=yu(uu({h:Ou(i,r,!0),s:wu(i,r,!0),v:Su(i,r,!0)}));n.push(l)}n.push(yu(o));for(var a=1;a<=4;a+=1){var s=bu(o),c=yu(uu({h:Ou(s,a),s:wu(s,a),v:Su(s,a)}));n.push(c)}return"dark"===t.theme?vu.map((function(e){var o,r,i,l=e.index,a=e.opacity;return yu((o=uu(t.backgroundColor||"#141414"),r=uu(n[l]),i=100*a/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var xu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Cu={},ku={};Object.keys(xu).forEach((function(e){Cu[e]=$u(xu[e]),Cu[e].primary=Cu[e][5],ku[e]=$u(xu[e],{theme:"dark",backgroundColor:"#141414"}),ku[e].primary=ku[e][5]}));var Pu=Cu.gold,Tu=Cu.blue;const Mu=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},Iu={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Eu=cl(cl({},Iu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),Au=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}},Du=(e,t)=>new mu(e).setAlpha(t).toRgbString(),Ru=(e,t)=>new mu(e).darken(t).toHexString(),zu=e=>{const t=$u(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Bu=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Du(o,.88),colorTextSecondary:Du(o,.65),colorTextTertiary:Du(o,.45),colorTextQuaternary:Du(o,.25),colorFill:Du(o,.15),colorFillSecondary:Du(o,.06),colorFillTertiary:Du(o,.04),colorFillQuaternary:Du(o,.02),colorBgLayout:Ru(n,4),colorBgContainer:Ru(n,0),colorBgElevated:Ru(n,0),colorBgSpotlight:Du(o,.85),colorBorder:Ru(n,15),colorBorderSecondary:Ru(n,6)}},ju=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Nu(e){return e>=0&&e<=255}function _u(e,t){const{r:n,g:o,b:r,a:i}=new mu(e).toRgb();if(i<1)return e;const{r:l,g:a,b:s}=new mu(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-l*(1-c))/c),t=Math.round((o-a*(1-c))/c),i=Math.round((r-s*(1-c))/c);if(Nu(e)&&Nu(t)&&Nu(i))return new mu({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new mu({r:n,g:o,b:r,a:1}).toRgbString()}function Qu(e){const{override:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{delete o[e]}));const r=cl(cl({},n),o),i=1200,l=1600,a=2e3;return cl(cl(cl({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:_u(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:_u(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:_u(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:_u(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:l,screenXXLMin:l,screenXXLMax:1999,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new mu("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new mu("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new mu("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Lu=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Hu=(e,t,n,o,r)=>{const i=e/2,l=i,a=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,h=2*i-a,f=s,g=2*i-0,m=l,v=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,`path('M 0 ${l} A ${n} ${n} 0 0 0 ${a} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${h} ${f} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'}}};function Fu(e,t){return Gc.reduce(((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],l=e[`${o}-6`],a=e[`${o}-7`];return cl(cl({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))}),{})}const Wu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xu=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Yu=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Zu=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Vu=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Uu=e=>({"&:focus-visible":cl({},Vu(e))});function Ku(e,t,n){return o=>{const r=Lr((()=>null==o?void 0:o.value)),[i,l,a]=ad(),{getPrefixCls:s,iconPrefixCls:c}=Ha(),u=Lr((()=>s()));return Lc(Lr((()=>({theme:i.value,token:l.value,hashId:a.value,path:["Shared",u.value]}))),(()=>[{"&":Yu(l.value)}])),[Lc(Lr((()=>({theme:i.value,token:l.value,hashId:a.value,path:[e,r.value,c.value]}))),(()=>{const{token:o,flush:i}=function(e){let t,n=e,o=ed;return Gu&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(qu&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)}),{token:n,keys:t,flush:o}}(l.value),s=cl(cl({},"function"==typeof n?n(o):n),l.value[e]),d=Ju(o,{componentCls:`.${r.value}`,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},s),p=t(d,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:l.value[e]});return i(e,s),[Zu(l.value,r.value),p]})),a]}}const Gu="undefined"!=typeof CSSINJS_STATISTIC;let qu=!0;function Ju(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),qu=!0,o}function ed(){}function td(e){return vt(e)?rt(new Proxy({},{get:(t,n,o)=>Reflect.get(e.value,n,o),set:(t,n,o)=>(e.value[n]=o,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})})):rt(e)}const nd=As((function(e){const t=Object.keys(Iu).map((t=>{const n=$u(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=cl(cl({},e),t)),{});return cl(cl(cl(cl(cl(cl(cl({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(r),h=n(i),f=n(l),g=n(a);return cl(cl({},o(c,u)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new mu("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zu,generateNeutralColorPalettes:Bu})),ju(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Mu(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return cl({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},Au(o))}(e))})),od={token:Eu,hashed:!0},rd=Symbol("DesignTokenContext"),id=bt(),ld=jn({props:{value:wa()},setup(e,t){let{slots:n}=t;var o;return o=td(Lr((()=>e.value))),To(rd,o),mn((()=>{id.value=o})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function ad(){const e=Mo(rd,id.value||od),t=Lr((()=>`${Kc}-${e.hashed||""}`)),n=Lr((()=>e.theme||nd)),o=Hs(n,Lr((()=>[Eu,e.token])),Lr((()=>({salt:t.value,override:cl({override:e.token},e.components),formatToken:Qu}))));return[n,Lr((()=>o.value[0])),Lr((()=>e.hashed?o.value[1]:""))]}const sd=jn({compatConfig:{MODE:3},setup(){const[,e]=ad(),t=Lr((()=>new mu(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>br("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(24 31.67)"},[br("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),br("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),br("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),br("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),br("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),br("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),br("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[br("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),br("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});sd.PRESENTED_IMAGE_DEFAULT=!0;const cd=sd,ud=jn({compatConfig:{MODE:3},setup(){const[,e]=ad(),t=Lr((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new mu(t).onBackground(r).toHexString(),shadowColor:new mu(n).onBackground(r).toHexString(),contentColor:new mu(o).onBackground(r).toHexString()}}));return()=>br("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[br("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[br("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),br("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[br("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),br("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});ud.PRESENTED_IMAGE_SIMPLE=!0;const dd=ud,pd=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hd=Ku("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=Ju(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[pd(o)]})),fd=br(cd,null,null),gd=br(dd,null,null),md=jn({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:wa(),image:xa(),description:xa()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=$d("empty",e),[l,a]=hd(i);return()=>{var t,s;const c=i.value,u=cl(cl({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||fd,description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:h,class:f=""}=u,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=void 0!==p?p:e.description;let o=null;return o="string"==typeof d?br("img",{alt:"string"==typeof t?t:"empty",src:d},null):d,br("div",sl({class:xl(c,f,a.value,{[`${c}-normal`]:d===gd,[`${c}-rtl`]:"rtl"===r.value})},g),[br("div",{class:`${c}-image`,style:h},[o]),t&&br("p",{class:`${c}-description`},[t]),n.default&&br("div",{class:`${c}-footer`},[la(n.default())])])}},null))}}});md.PRESENTED_IMAGE_DEFAULT=fd,md.PRESENTED_IMAGE_SIMPLE=gd;const vd=ya(md),bd=e=>{const{prefixCls:t}=$d("empty",e);return(e=>{switch(e){case"Table":case"List":return br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return br(vd,null,null)}})(e.componentName)};function yd(e){return br(bd,{componentName:e},null)}const Od=Symbol("SizeContextKey"),wd=()=>Mo(Od,bt(void 0)),Sd=e=>{const t=wd();return To(Od,Lr((()=>e.value||t.value))),e},$d=(e,t)=>{const n=wd(),o=Wa(),r=Mo(Qa,cl(cl({},La),{renderEmpty:e=>Hr(bd,{componentName:e})})),i=Lr((()=>r.getPrefixCls(e,t.prefixCls))),l=Lr((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=r.direction)||void 0===n?void 0:n.value})),a=Lr((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:r.iconPrefixCls.value})),s=Lr((()=>r.getPrefixCls())),c=Lr((()=>{var e;return null===(e=r.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),u=r.renderEmpty,d=r.space,p=r.pageHeader,h=r.form,f=Lr((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=r.getTargetContainer)||void 0===n?void 0:n.value})),g=Lr((()=>{var e,n,o;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(o=r.getPopupContainer)||void 0===o?void 0:o.value})),m=Lr((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=r.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),v=Lr((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=r.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==m.value})),b=Lr((()=>t.size||n.value)),y=Lr((()=>{var e,n,o;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(o=null===(n=r.input)||void 0===n?void 0:n.value)||void 0===o?void 0:o.autocomplete})),O=Lr((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:o.value})),w=Lr((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:r.csp}));return{configProvider:r,prefixCls:i,direction:l,size:b,getTargetContainer:f,getPopupContainer:g,space:d,pageHeader:p,form:h,autoInsertSpaceInButton:c,renderEmpty:u,virtual:v,dropdownMatchSelectWidth:m,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:y,csp:w,iconPrefixCls:a,disabled:O,select:r.select}};function xd(e,t){const n=cl({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},kd=Ku("Affix",(e=>{const t=Ju(e,{zIndexPopup:e.zIndexBase+10});return[Cd(t)]}));function Pd(){return"undefined"!=typeof window?window:null}var Td,Md;(Md=Td||(Td={}))[Md.None=0]="None",Md[Md.Prepare=1]="Prepare";const Id=ya(jn({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Pd},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=yt(),a=yt(),s=rt({affixStyle:void 0,placeholderStyle:void 0,status:Td.None,lastAffix:!1,prevTarget:null,timeout:null}),c=Mr(),u=Lr((()=>void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop)),d=Lr((()=>e.offsetBottom)),p=()=>{cl(s,{status:Td.Prepare,affixStyle:void 0,placeholderStyle:void 0}),c.update()},h=va((()=>{p()})),f=va((()=>{const{target:t}=e,{affixStyle:n}=s;if(t&&n){const e=t();if(e&&l.value){const t=Ea(e),o=Ea(l.value),r=Aa(o,t,u.value),i=Da(o,t,d.value);if(void 0!==r&&n.top===r||void 0!==i&&n.bottom===i)return}}p()}));r({updatePosition:h,lazyUpdatePosition:f}),bn((()=>e.target),(e=>{const t=(null==e?void 0:e())||null;s.prevTarget!==t&&(ja(c),t&&(Ba(t,c),h()),s.prevTarget=t)})),bn((()=>[e.offsetTop,e.offsetBottom]),h),Zn((()=>{const{target:t}=e;t&&(s.timeout=setTimeout((()=>{Ba(t(),c),h()})))})),Un((()=>{(()=>{const{status:t,lastAffix:n}=s,{target:r}=e;if(t!==Td.Prepare||!a.value||!l.value||!r)return;const i=r();if(!i)return;const c={status:Td.None},p=Ea(l.value);if(0===p.top&&0===p.left&&0===p.width&&0===p.height)return;const h=Ea(i),f=Aa(p,h,u.value),g=Da(p,h,d.value);if(0!==p.top||0!==p.left||0!==p.width||0!==p.height){if(void 0!==f){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",top:f,width:e,height:t},c.placeholderStyle={width:e,height:t}}else if(void 0!==g){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",bottom:g,width:e,height:t},c.placeholderStyle={width:e,height:t}}c.lastAffix=!!c.affixStyle,n!==c.lastAffix&&o("change",c.lastAffix),cl(s,c)}})()})),Gn((()=>{clearTimeout(s.timeout),ja(c),h.cancel(),f.cancel()}));const{prefixCls:g}=$d("affix",e),[m,v]=kd(g);return()=>{var t;const{affixStyle:o,placeholderStyle:r}=s,c=xl({[g.value]:o,[v.value]:!0}),u=xd(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return m(br(ua,{onResize:h},{default:()=>[br("div",sl(sl(sl({},u),i),{},{ref:l}),[o&&br("div",{style:r,"aria-hidden":"true"},null),br("div",{class:c,ref:a,style:o},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}))}}}));function Ed(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Ad(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Dd(e,t){if(e.clientHeightt||i>e&&l=t&&a>=n?i-e-o:l>t&&an?l-t+r:0}var zd=function(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof l?l:function(e){return e!==l};if(!Ed(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],h=e;Ed(h)&&s(h);){if((h=null==(u=(c=h).parentElement)?c.getRootNode().host||null:u)===d){p.push(h);break}null!=h&&h===document.body&&Dd(h)&&!Dd(document.documentElement)||null!=h&&Dd(h,a)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,O=b.width,w=b.top,S=b.right,$=b.bottom,x=b.left,C="start"===r||"nearest"===r?w:"end"===r?$:w+y/2,k="center"===i?x+O/2:"end"===i?S:x,P=[],T=0;T=0&&x>=0&&$<=g&&S<=f&&w>=D&&$<=z&&x>=B&&S<=R)return P;var j=getComputedStyle(M),N=parseInt(j.borderLeftWidth,10),_=parseInt(j.borderTopWidth,10),Q=parseInt(j.borderRightWidth,10),L=parseInt(j.borderBottomWidth,10),H=0,F=0,W="offsetWidth"in M?M.offsetWidth-M.clientWidth-N-Q:0,X="offsetHeight"in M?M.offsetHeight-M.clientHeight-_-L:0,Y="offsetWidth"in M?0===M.offsetWidth?0:A/M.offsetWidth:0,Z="offsetHeight"in M?0===M.offsetHeight?0:E/M.offsetHeight:0;if(d===M)H="start"===r?C:"end"===r?C-g:"nearest"===r?Rd(v,v+g,g,_,L,v+C,v+C+y,y):C-g/2,F="start"===i?k:"center"===i?k-f/2:"end"===i?k-f:Rd(m,m+f,f,N,Q,m+k,m+k+O,O),H=Math.max(0,H+v),F=Math.max(0,F+m);else{H="start"===r?C-D-_:"end"===r?C-z+L+X:"nearest"===r?Rd(D,z,E,_,L+X,C,C+y,y):C-(D+E/2)+X/2,F="start"===i?k-B-N:"center"===i?k-(B+A/2)+W/2:"end"===i?k-R+Q+W:Rd(B,R,A,N,Q+W,k,k+O,O);var V=M.scrollLeft,U=M.scrollTop;C+=U-(H=Math.max(0,Math.min(U+H/Z,M.scrollHeight-E/Z+X))),k+=V-(F=Math.max(0,Math.min(V+F/Y,M.scrollWidth-A/Y+W)))}P.push({el:M,top:H,left:F})}return P};function Bd(e){return e===Object(e)&&0!==Object.keys(e).length}function jd(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Bd(t)&&"function"==typeof t.behavior)return t.behavior(n?zd(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Bd(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(zd(e,o),o.behavior)}}function Nd(e){return null!=e&&e===e.window}function _d(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return Nd(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Nd(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}function Qd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),l=_d(i,!0),a=Date.now(),s=()=>{const t=Date.now()-a,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,l,e,r);Nd(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{To(Hd,e)},Wd=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:cl(cl({},Xu(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":cl(cl({},Wu),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Xd=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},Yd=Ku("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,i=Ju(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Wd(i),Xd(i)]})),Zd=jn({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Vl({prefixCls:String,href:String,title:xa(),target:String,customTitleProps:wa()},{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:i,scrollTo:l,unregisterLink:a,registerLink:s,activeLink:c}=Mo(Hd,{registerLink:Ld,unregisterLink:Ld,scrollTo:Ld,activeLink:Lr((()=>"")),handleClick:Ld,direction:Lr((()=>"vertical"))}),{prefixCls:u}=$d("anchor",e),d=t=>{const{href:n}=e;i(t,{title:r,href:n}),l(n)};return bn((()=>e.href),((e,t)=>{Ft((()=>{a(t),s(e)}))})),Zn((()=>{s(e.href)})),Kn((()=>{a(e.href)})),()=>{var t;const{href:i,target:l,title:a=n.title,customTitleProps:s={}}=e,p=u.value;r="function"==typeof a?a(s):a;const h=c.value===i,f=xl(`${p}-link`,{[`${p}-link-active`]:h},o.class),g=xl(`${p}-link-title`,{[`${p}-link-title-active`]:h});return br("div",sl(sl({},o),{},{class:f}),[br("a",{class:g,href:i,title:"string"==typeof r?r:"",target:l,onClick:d},[n.customTitle?n.customTitle(s):r]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});function Vd(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function Jd(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var ep=Object.prototype,tp=ep.toString,np=ep.hasOwnProperty,op=/^\s*function (\w+)/;function rp(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(op);return o?o[1]:""}return""}var ip=function(e){var t,n;return!1!==Jd(e)&&"function"==typeof(t=e.constructor)&&!1!==Jd(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},lp=function(e){return e},ap=function(e,t){return np.call(e,t)},sp=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},cp=Array.isArray||function(e){return"[object Array]"===tp.call(e)},up=function(e){return"[object Function]"===tp.call(e)},dp=function(e){return ip(e)&&ap(e,"_vueTypes_name")},pp=function(e){return ip(e)&&(ap(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return ap(e,t)})))};function hp(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function fp(e,t,n){var o;void 0===n&&(n=!1);var r=!0,i="";o=ip(e)?e:{type:e};var l=dp(o)?o._vueTypes_name+" - ":"";if(pp(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&void 0===t)return r;cp(o.type)?(r=o.type.some((function(e){return!0===fp(e,t,!0)})),i=o.type.map((function(e){return rp(e)})).join(" or ")):r="Array"===(i=rp(o))?cp(t):"Object"===i?ip(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";var t=e.constructor.toString().match(op);return t?t[1]:""}(t)===i:t instanceof o.type}if(!r){var a=l+'value "'+t+'" should be of type "'+i+'"';return!1===n?(lp(a),!1):a}if(ap(o,"validator")&&up(o.validator)){var s=lp,c=[];if(lp=function(e){c.push(e)},r=o.validator(t),lp=s,!r){var u=(c.length>1?"* ":"")+c.join("\n* ");return c.length=0,!1===n?(lp(u),r):u}}return r}function gp(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?up(e)||!0===fp(this,e,!0)?(this.default=cp(e)?function(){return[].concat(e)}:ip(e)?function(){return Object.assign({},e)}:e,this):(lp(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return up(o)&&(n.validator=hp(o,n)),n}function mp(e,t){var n=gp(e,t);return Object.defineProperty(n,"validate",{value:function(e){return up(this.validator)&&lp(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=hp(e,this),this}})}function vp(e,t,n){var o,r,i=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(i._vueTypes_name=e,!ip(n))return i;var l,a,s=n.validator,c=qd(n,["validator"]);if(up(s)){var u=i.validator;u&&(u=null!==(a=(l=u).__original)&&void 0!==a?a:l),i.validator=hp(u?function(e){return u.call(this,e)&&s.call(this,e)}:s,i)}return Object.assign(i,c)}function bp(e){return e.replace(/^(?!\s*$)/gm," ")}var yp=function(){function e(){}return e.extend=function(e){var t=this;if(cp(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,i=e.getter,l=void 0!==i&&i,a=qd(e,["name","validate","getter"]);if(ap(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,c=a.type;return dp(c)?(delete a.type,Object.defineProperty(this,n,l?{get:function(){return vp(n,c,a)}}:{value:function(){var e,t=vp(n,c,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=l?{get:function(){var e=Object.assign({},a);return r?mp(n,e):gp(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?mp(n,o):gp(n,o),o.validator&&(e.validator=(t=o.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,s))},Ud(e,null,[{key:"any",get:function(){return mp("any",{})}},{key:"func",get:function(){return mp("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return mp("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return mp("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return mp("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return mp("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return mp("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return gp("integer",{type:Number,validator:function(e){return sp(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return gp("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function Op(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return Gd(n,t),Ud(n,null,[{key:"sensibleDefaults",get:function(){return Kd({},this.defaults)},set:function(t){this.defaults=!1!==t?Kd({},!0!==t?t:e):{}}}]),n}(yp)).defaults=Kd({},e),t}yp.defaults={},yp.custom=function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return gp(e.name||"<>",{validator:function(n){var o=e(n);return o||lp(this._vueTypes_name+" - "+t),o}})},yp.oneOf=function(e){if(!cp(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return gp("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||lp(t),o}})},yp.instanceOf=function(e){return gp("instanceOf",{type:e})},yp.oneOfType=function(e){if(!cp(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some((function(e){return-1===i.indexOf(e)}))){var l=n.filter((function(e){return-1===i.indexOf(e)}));return lp(1===l.length?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return i.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(lp('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var i=fp(e[n],o[n],!0);return"string"==typeof i&&lp('shape - "'+n+'" property validation error:\n '+bp(i)),!0===i}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},yp.utils={validate:function(e,t){return!0===fp(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?mp(e,t):gp(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}Gd(t,e)}(Op());const wp=Op({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function Sp(e){return e.default=void 0,e}wp.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const $p=wp,xp=(e,t,n)=>{Ps(e,`[ant-design-vue: ${t}] ${n}`)};function Cp(){return window}function kp(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Pp=/#([\S ]+)$/,Tp=jn({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Ca(),direction:$p.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function},setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{prefixCls:l,getTargetContainer:a,direction:s}=$d("anchor",e),c=Lr((()=>{var t;return null!==(t=e.direction)&&void 0!==t?t:"vertical"})),u=bt(null),d=bt(),p=rt({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),h=bt(null),f=Lr((()=>{const{getContainer:t}=e;return t||(null==a?void 0:a.value)||Cp})),g=t=>{const{getCurrentAnchor:o}=e;h.value!==t&&(h.value="function"==typeof o?o(t):t,n("change",t))},m=t=>{const{offsetTop:n,targetOffset:o}=e;g(t);const r=Pp.exec(t);if(!r)return;const i=document.getElementById(r[1]);if(!i)return;const l=f.value();let a=_d(l,!0)+kp(i,l);a-=void 0!==o?o:n||0,p.animating=!0,Qd(a,{callback:()=>{p.animating=!1},getContainer:f.value})};i({scrollTo:m});const v=()=>{if(p.animating)return;const{offsetTop:t,bounds:n,targetOffset:o}=e,r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=[],o=f.value();return p.links.forEach((r=>{const i=Pp.exec(r.toString());if(!i)return;const l=document.getElementById(i[1]);if(l){const i=kp(l,o);it.top>e.top?t:e)).link:""}(void 0!==o?o:t||0,n);g(r)};Fd({registerLink:e=>{p.links.includes(e)||p.links.push(e)},unregisterLink:e=>{const t=p.links.indexOf(e);-1!==t&&p.links.splice(t,1)},activeLink:h,scrollTo:m,handleClick:(e,t)=>{n("click",e,t)},direction:c}),Zn((()=>{Ft((()=>{const e=f.value();p.scrollContainer=e,p.scrollEvent=Ia(p.scrollContainer,"scroll",v),v()}))})),Kn((()=>{p.scrollEvent&&p.scrollEvent.remove()})),Un((()=>{if(p.scrollEvent){const e=f.value();p.scrollContainer!==e&&(p.scrollContainer=e,p.scrollEvent.remove(),p.scrollEvent=Ia(p.scrollContainer,"scroll",v),v())}(()=>{const e=d.value.querySelector(`.${l.value}-link-title-active`);if(e&&u.value){const t="horizontal"===c.value;u.value.style.top=t?"":`${e.offsetTop+e.clientHeight/2}px`,u.value.style.height=t?"":`${e.clientHeight}px`,u.value.style.left=t?`${e.offsetLeft}px`:"",u.value.style.width=t?`${e.clientWidth}px`:"",t&&jd(e,{scrollMode:"if-needed",block:"nearest"})}})()}));const b=e=>Array.isArray(e)?e.map((e=>{const{children:t,key:n,href:o,target:i,class:l,style:a,title:s}=e;return br(Zd,{key:n,href:o,target:i,class:l,style:a,title:s,customTitleProps:e},{default:()=>["vertical"===c.value?b(t):null],customTitle:r.customTitle})})):null,[y,O]=Yd(l);return()=>{var t;const{offsetTop:n,affix:i,showInkInFixed:a}=e,p=l.value,g=xl(`${p}-ink`,{[`${p}-ink-visible`]:h.value}),m=xl(O.value,e.wrapperClass,`${p}-wrapper`,{[`${p}-wrapper-horizontal`]:"horizontal"===c.value,[`${p}-rtl`]:"rtl"===s.value}),v=xl(p,{[`${p}-fixed`]:!i&&!a}),w=cl({maxHeight:n?`calc(100vh - ${n}px)`:"100vh"},e.wrapperStyle),S=br("div",{class:m,style:w,ref:d},[br("div",{class:v},[br("span",{class:g,ref:u},null),Array.isArray(e.items)?b(e.items):null===(t=r.default)||void 0===t?void 0:t.call(r)])]);return y(i?br(Id,sl(sl({},o),{},{offsetTop:n,target:f.value}),{default:()=>[S]}):S)}}});function Mp(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),null!=n?n:void 0!==o?o:`rc-index-key-${t}`}function Ip(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function Ep(e){const t=cl({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Ap(){return""}function Dp(e){return e?e.ownerDocument:window.document}function Rp(){}Tp.Link=Zd,Tp.install=function(e){return e.component(Tp.name,Tp),e.component(Tp.Link.name,Tp.Link),e};const zp=()=>({action:$p.oneOfType([$p.string,$p.arrayOf($p.string)]).def([]),showAction:$p.any.def([]),hideAction:$p.any.def([]),getPopupClassNameFromAlign:$p.any.def(Ap),onPopupVisibleChange:Function,afterPopupVisibleChange:$p.func.def(Rp),popup:$p.any,popupStyle:{type:Object,default:void 0},prefixCls:$p.string.def("rc-trigger-popup"),popupClassName:$p.string.def(""),popupPlacement:String,builtinPlacements:$p.object,popupTransitionName:String,popupAnimation:$p.any,mouseEnterDelay:$p.number.def(0),mouseLeaveDelay:$p.number.def(.1),zIndex:Number,focusDelay:$p.number.def(0),blurDelay:$p.number.def(.15),getPopupContainer:Function,getDocument:$p.func.def(Dp),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:$p.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),Bp={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},jp=cl(cl({},Bp),{mobile:{type:Object}}),Np=cl(cl({},Bp),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _p(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function Qp(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:l}=e;if(!r)return null;let a={};return(l||i)&&(a=_p({prefixCls:t,transitionName:l,animation:i})),br(qr,sl({appear:!0},a),{default:()=>{return[$n(br("div",{style:{zIndex:o},class:`${t}-mask`},null),[[(e="if",fn("directives",e)),n]])];var e}})}Qp.displayName="Mask";const Lp=jn({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:jp,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=bt();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:i,prefixCls:l,mobile:{popupClassName:a,popupStyle:s,popupMotion:c={},popupRender:u}={}}=e,d=cl({zIndex:n},s);let p=ql(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=br("div",{class:`${l}-content`},[p])),u&&(p=u(p));const h=xl(l,a);return br(qr,sl({ref:r},c),{default:()=>[i?br("div",{class:h,style:d},[p]):null]})}}});var Hp=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Eue){i(Eue)}}function a(e){try{s(o.throw(e))}catch(Eue){i(Eue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Fp=["measure","align",null,"motion"];function Wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xp(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function zh(e){var t,n,o;if(Ih.isWindow(e)||9===e.nodeType){var r=Ih.getWindow(e);t={left:Ih.getWindowScrollLeft(r),top:Ih.getWindowScrollTop(r)},n=Ih.viewportWidth(r),o=Ih.viewportHeight(r)}else t=Ih.offset(e),n=Ih.outerWidth(e),o=Ih.outerHeight(e);return t.width=n,t.height=o,t}function Bh(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,l=e.left,a=e.top;return"c"===n?a+=i/2:"b"===n&&(a+=i),"c"===o?l+=r/2:"r"===o&&(l+=r),{left:l,top:a}}function jh(e,t,n,o,r){var i=Bh(t,n[1]),l=Bh(e,n[0]),a=[l.left-i.left,l.top-i.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function Nh(e,t,n){return e.leftn.right}function _h(e,t,n){return e.topn.bottom}function Qh(e,t,n){var o=[];return Ih.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Lh(e,t){return e[t]=-e[t],e}function Hh(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Fh(e,t){e[0]=Hh(e[0],t.width),e[1]=Hh(e[1],t.height)}function Wh(e,t,n,o){var r=n.points,i=n.offset||[0,0],l=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;i=[].concat(i),l=[].concat(l);var c={},u=0,d=Rh(s,!(!(a=a||{})||!a.alwaysByViewport)),p=zh(s);Fh(i,p),Fh(l,t);var h=jh(p,t,r,i,l),f=Ih.merge(p,h);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&Nh(h,p,d)){var g=Qh(r,/[lr]/gi,{l:"r",r:"l"}),m=Lh(i,0),v=Lh(l,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),Ih.mix(r,i)}(h,p,d,c))}return f.width!==p.width&&Ih.css(s,"width",Ih.width(s)+f.width-p.width),f.height!==p.height&&Ih.css(s,"height",Ih.height(s)+f.height-p.height),Ih.offset(s,{left:f.left,top:f.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:l,overflow:c}}function Xh(e,t,n){var o=n.target||t,r=zh(o),i=!function(e,t){var n=Rh(e,t),o=zh(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Wh(e,r,n,i)}function Yh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(Array.isArray(e)&&(r=la(e)[0]),!r)return null;const i=yr(r,t,o);return i.props=n?cl(cl({},i.props),t):i.props,Ts("object"!=typeof i.props.class),i}function Zh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.map((e=>Yh(e,t,n)))}function Vh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(e))return e.map((e=>Vh(e,t,n,o)));{const r=Yh(e,t,n,o);return Array.isArray(r.children)&&(r.children=Vh(r.children)),r}}Xh.__getOffsetParent=Ah,Xh.__getVisibleRectForElement=Rh;const Uh=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Kh(e,t){let n=null,o=null;const r=new Yl((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:i,height:l}=r.getBoundingClientRect(),a=Math.floor(i),s=Math.floor(l);n===a&&o===s||Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function Gh(e,t){return e===t||e!=e&&t!=t}function qh(e,t){for(var n=e.length;n--;)if(Gh(e[n][0],t))return n;return-1}var Jh=Array.prototype.splice;function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ef.prototype.set=function(e,t){var n=this.__data__,o=qh(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};const tf="object"==typeof global&&global&&global.Object===Object&&global;var nf="object"==typeof self&&self&&self.Object===Object&&self;const of=tf||nf||Function("return this")(),rf=of.Symbol;var lf=Object.prototype,af=lf.hasOwnProperty,sf=lf.toString,cf=rf?rf.toStringTag:void 0,uf=Object.prototype.toString,df=rf?rf.toStringTag:void 0;function pf(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":df&&df in Object(e)?function(e){var t=af.call(e,cf),n=e[cf];try{e[cf]=void 0;var o=!0}catch(Eue){}var r=sf.call(e);return o&&(t?e[cf]=n:delete e[cf]),r}(e):function(e){return uf.call(e)}(e)}function hf(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ff(e){if(!hf(e))return!1;var t=pf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const gf=of["__core-js_shared__"];var mf,vf=(mf=/[^.]+$/.exec(gf&&gf.keys&&gf.keys.IE_PROTO||""))?"Symbol(src)_1."+mf:"",bf=Function.prototype.toString;function yf(e){if(null!=e){try{return bf.call(e)}catch(Eue){}try{return e+""}catch(Eue){}}return""}var Of=/^\[object .+?Constructor\]$/,wf=Function.prototype,Sf=Object.prototype,$f=wf.toString,xf=Sf.hasOwnProperty,Cf=RegExp("^"+$f.call(xf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kf(e){return!(!hf(e)||(t=e,vf&&vf in t))&&(ff(e)?Cf:Of).test(yf(e));var t}function Pf(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kf(n)?n:void 0}const Tf=Pf(of,"Map"),Mf=Pf(Object,"create");var If=Object.prototype.hasOwnProperty,Ef=Object.prototype.hasOwnProperty;function Af(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new Bf:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var pg={};function hg(e){return function(t){return e(t)}}pg["[object Float32Array]"]=pg["[object Float64Array]"]=pg["[object Int8Array]"]=pg["[object Int16Array]"]=pg["[object Int32Array]"]=pg["[object Uint8Array]"]=pg["[object Uint8ClampedArray]"]=pg["[object Uint16Array]"]=pg["[object Uint32Array]"]=!0,pg["[object Arguments]"]=pg["[object Array]"]=pg["[object ArrayBuffer]"]=pg["[object Boolean]"]=pg["[object DataView]"]=pg["[object Date]"]=pg["[object Error]"]=pg["[object Function]"]=pg["[object Map]"]=pg["[object Number]"]=pg["[object Object]"]=pg["[object RegExp]"]=pg["[object Set]"]=pg["[object String]"]=pg["[object WeakMap]"]=!1;var fg="object"==typeof e&&e&&!e.nodeType&&e,gg=fg&&"object"==typeof t&&t&&!t.nodeType&&t,mg=gg&&gg.exports===fg&&tf.process;const vg=function(){try{var e=gg&&gg.require&&gg.require("util").types;return e||mg&&mg.binding&&mg.binding("util")}catch(Eue){}}();var bg=vg&&vg.isTypedArray;const yg=bg?hg(bg):function(e){return qf(e)&&dg(e.length)&&!!pg[pf(e)]};var Og=Object.prototype.hasOwnProperty;function wg(e,t){var n=Yf(e),o=!n&&rg(e),r=!n&&!o&&sg(e),i=!n&&!o&&!r&&yg(e),l=n||o||r||i,a=l?function(e,t){for(var n=-1,o=Array(e);++n{let n=!1,o=null;function r(){clearTimeout(o)}return[function i(l){if(n&&!0!==l)r(),o=setTimeout((()=>{n=!1,i()}),t.value);else{if(!1===e())return;n=!0,r(),o=setTimeout((()=>{n=!1}),t.value)}},()=>{n=!1,r()}]})((()=>{const{disabled:t,target:n,align:o,onAlign:l}=e;if(!t&&n&&i.value){const e=i.value;let t;const w=tm(n),S=nm(n);r.value.element=w,r.value.point=S,r.value.align=o;const{activeElement:$}=document;return w&&Uh(w)?t=Xh(e,w,o):S&&(a=e,s=S,c=o,p=Ih.getDocument(a),h=p.defaultView||p.parentWindow,f=Ih.getWindowScrollLeft(h),g=Ih.getWindowScrollTop(h),m=Ih.viewportWidth(h),v=Ih.viewportHeight(h),b={left:u="pageX"in s?s.pageX:f+s.clientX,top:d="pageY"in s?s.pageY:g+s.clientY,width:0,height:0},y=u>=0&&u<=f+m&&d>=0&&d<=g+v,O=[c.points[0],"cc"],t=Wh(a,b,Xp(Xp({},c),{},{points:O}),y)),function(e,t){e!==document.activeElement&&ps(t,e)&&"function"==typeof e.focus&&e.focus()}($,e),l&&t&&l(e,t),!0}var a,s,c,u,d,p,h,f,g,m,v,b,y,O;return!1}),Lr((()=>e.monitorBufferTime))),s=bt({cancel:()=>{}}),c=bt({cancel:()=>{}}),u=()=>{const t=e.target,n=tm(t),o=nm(t);var a,u;i.value!==c.value.element&&(c.value.cancel(),c.value.element=i.value,c.value.cancel=Kh(i.value,l)),r.value.element===n&&((a=r.value.point)===(u=o)||a&&u&&("pageX"in u&&"pageY"in u?a.pageX===u.pageX&&a.pageY===u.pageY:"clientX"in u&&"clientY"in u&&a.clientX===u.clientX&&a.clientY===u.clientY))&&em(r.value.align,e.align)||(l(),s.value.element!==n&&(s.value.cancel(),s.value.element=n,s.value.cancel=Kh(n,l)))};Zn((()=>{Ft((()=>{u()}))})),Un((()=>{Ft((()=>{u()}))})),bn((()=>e.disabled),(e=>{e?a():l()}),{immediate:!0,flush:"post"});const d=bt(null);return bn((()=>e.monitorWindowResize),(e=>{e?d.value||(d.value=Ia(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)}),{flush:"post"}),Gn((()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()})),n({forceAlign:()=>l(!0)}),()=>{const e=null==o?void 0:o.default();return e?Yh(e[0],{ref:i},!0,!0):null}}});ba("bottomLeft","bottomRight","topLeft","topRight");const rm=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",im=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cl(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},lm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cl(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},am=(e,t,n)=>void 0!==n?n:`${e}-${t}`,sm=jn({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Bp,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=yt(),l=yt(),a=yt(),[s,c]=(e=>{const t=yt({width:0,height:0});return[Lr((()=>{const n={};if(e.value){const{width:o,height:r}=t.value;-1!==e.value.indexOf("height")&&r?n.height=`${r}px`:-1!==e.value.indexOf("minHeight")&&r&&(n.minHeight=`${r}px`),-1!==e.value.indexOf("width")&&o?n.width=`${o}px`:-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth=`${o}px`)}return n})),function(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}]})(Tt(e,"stretch")),u=yt(!1);let d;bn((()=>e.visible),(t=>{clearTimeout(d),t?d=setTimeout((()=>{u.value=e.visible})):u.value=!1}),{immediate:!0});const[p,h]=((e,t)=>{const n=yt(null),o=yt(),r=yt(!1);function i(e){r.value||(n.value=e)}function l(){ma.cancel(o.value)}return bn(e,(()=>{i("measure")}),{immediate:!0,flush:"post"}),Zn((()=>{bn(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=ma((()=>Hp(void 0,void 0,void 0,(function*(){const e=Fp.indexOf(n.value),t=Fp[e+1];t&&-1!==e&&i(t)})))))}),{immediate:!0,flush:"post"})})),Kn((()=>{r.value=!0,l()})),[n,function(e){l(),o.value=ma((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}i(t),null==e||e()}))}]})(u,(()=>{e.stretch&&c(e.getRootDomNode())})),f=yt(),g=()=>{var e;null===(e=i.value)||void 0===e||e.forceAlign()},m=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),i=a.value;a.value!==r&&(a.value=r),"align"===p.value&&(i!==r?Promise.resolve().then((()=>{g()})):h((()=>{var e;null===(e=f.value)||void 0===e||e.call(f)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},v=Lr((()=>{const t="object"==typeof e.animation?e.animation:_p(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{h(),p.value="stable",null==n||n(e)}})),t})),b=()=>new Promise((e=>{f.value=e}));bn([v,p],(()=>{v.value||"motion"!==p.value||h()}),{immediate:!0}),n({forceAlign:g,getElement:()=>l.value.$el||l.value});const y=Lr((()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==p.value&&"stable"!==p.value}));return()=>{var t;const{zIndex:n,align:c,prefixCls:d,destroyPopupOnHide:h,onMouseenter:f,onMouseleave:g,onTouchstart:O=(()=>{}),onMousedown:w}=e,S=p.value,$=[cl(cl({},s.value),{zIndex:n,opacity:"motion"!==S&&"stable"!==S&&u.value?0:null,pointerEvents:u.value||"stable"===S?null:"none"}),o.style];let x=ql(null===(t=r.default)||void 0===t?void 0:t.call(r,{visible:e.visible}));x.length>1&&(x=br("div",{class:`${d}-content`},[x]));const C=xl(d,o.class,a.value),k=u.value||!e.visible?im(v.value.name,v.value):{};return br(qr,sl(sl({ref:l},k),{},{onBeforeEnter:b}),{default:()=>!h||e.visible?$n(br(om,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:i,monitorWindowResize:!0,disabled:y.value,align:c,onAlign:m},{default:()=>br("div",{class:C,onMouseenter:f,onMouseleave:g,onMousedown:_i(w,["capture"]),[Ma?"onTouchstartPassive":"onTouchstart"]:_i(O,["capture"]),style:$},[x])}),[[gi,u.value]]):null})}}}),cm=jn({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Np,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=yt(!1),l=yt(!1),a=yt(),s=yt();return bn([()=>e.visible,()=>e.mobile],(()=>{i.value=e.visible,e.visible&&e.mobile&&(l.value=!0)}),{immediate:!0,flush:"post"}),r({forceAlign:()=>{var e;null===(e=a.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=cl(cl(cl({},e),n),{visible:i.value}),r=l.value?br(Lp,sl(sl({},t),{},{mobile:e.mobile,ref:a}),{default:o.default}):br(sm,sl(sl({},t),{},{ref:a}),{default:o.default});return br("div",{ref:s},[br(Qp,t,null),r])}}});function um(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dm(e,t,n){return cl(cl({},e[t]||{}),n)}const pm={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps(ta(this),cl(cl({},this.$data),n));if(null===e)return;n=cl(cl({},n),e||{})}cl(this.$data,n),this._.isMounted&&this.$forceUpdate(),Ft((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:Lr((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let i=!1;return(t||n||o)&&(i=!0),!t&&r&&(i=!1),i}))})},gm=jn({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:$p.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:o}=t,r=!0;const{shouldRender:i}=(()=>{fm({},{inTriggerContext:!1});const e=Mo(hm,{shouldRender:Lr((()=>!1)),inTriggerContext:!1});return{shouldRender:Lr((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function l(){i.value&&(n=e.getContainer())}Yn((()=>{r=!1,l()})),Zn((()=>{n||l()}));const a=bn(i,(()=>{i.value&&!n&&(n=e.getContainer()),n&&a()}));return Un((()=>{Ft((()=>{var t;i.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return i.value?r?null===(e=o.default)||void 0===e?void 0:e.call(o):n?br(qo,{to:n},o):null:null}}});let mm;function vm(e){if("undefined"==typeof document)return 0;if(e||void 0===mm){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;o===r&&(r=t.clientWidth),document.body.removeChild(t),mm=o-r}return mm}function bm(e){const t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?vm():n}const ym=`vc-util-locker-${Date.now()}`;let Om=0;function wm(e){const t=Lr((()=>!!e&&!!e.value));Om+=1;const n=`${ym}_${Om}`;mn((e=>{if(ds()){if(t.value){const e=vm();ws(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else Os(n);e((()=>{Os(n)}))}}),{flush:"post"})}let Sm=0;const $m=ds(),xm=e=>{if(!$m)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body},Cm=jn({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:$p.any,visible:{type:Boolean,default:void 0},autoLock:Sa(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=yt(),r=yt(),i=yt(),l=ds()&&document.createElement("div"),a=()=>{var e,t;o.value===l&&(null===(t=null===(e=o.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(o.value)),o.value=null};let s=null;const c=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||o.value&&!o.value.parentNode)||(s=xm(e.getContainer),!!s&&(s.appendChild(o.value),!0))},u=()=>$m?(o.value||(o.value=l,c(!0)),d(),o.value):null,d=()=>{const{wrapperClassName:t}=e;o.value&&t&&t!==o.value.className&&(o.value.className=t)};Un((()=>{d(),c()}));const p=Mr();return wm(Lr((()=>e.autoLock&&e.visible&&ds()&&(o.value===document.body||o.value===l)))),Zn((()=>{let t=!1;bn([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,i]=n,[l,c]=o;$m&&(s=xm(e.getContainer),s===document.body&&(r&&!l?Sm+=1:t&&(Sm-=1))),t&&("function"==typeof i&&"function"==typeof c?i.toString()!==c.toString():i!==c)&&a(),t=!0}),{immediate:!0,flush:"post"}),Ft((()=>{c()||(i.value=ma((()=>{p.update()})))}))})),Kn((()=>{const{visible:t}=e;$m&&s===document.body&&(Sm=t&&Sm?Sm-1:Sm),a(),ma.cancel(i.value)})),()=>{const{forceRender:t,visible:o}=e;let i=null;const l={getOpenCount:()=>Sm,getContainer:u};return(t||o||r.value)&&(i=br(gm,{getContainer:u,ref:r,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,l)}})),i}}}),km=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Pm=jn({compatConfig:{MODE:3},name:"Trigger",mixins:[pm],inheritAttrs:!1,props:zp(),setup(e){const t=Lr((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?dm(o,t,n):n})),n=yt(null);return{vcTriggerContext:Mo("vcTriggerContext",{}),popupRef:n,setPopupRef:e=>{n.value=e},triggerRef:yt(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,km.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){To("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),fm(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ma.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let t;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ia(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ia(t,"touchstart",this.onDocumentClick,!!Ma&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Ia(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Ia(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&ps(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){ps(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();ps(n,t)&&!this.isContextMenuOnly()||ps(o,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:ea(this.triggerRef);return ea(r(n))}try{const e="#comment"===(null===(o=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.nodeName)?null:ea(this.triggerRef);if(e)return e}catch(i){}return ea(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:l,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let l=0;lna(this,"popup"))})},attachParent(e){ma.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||0===t.length)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=ma((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Kl(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=1e3*t;if(this.clearDelayTimer(),o){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=oa(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=la(Jl(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=oa(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[Ma?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Ma?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=e=>{!e||e.relatedTarget&&ps(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const l=xl(r&&r.props&&r.props.class,e.class);l&&(i.class=l);const a=Yh(r,cl(cl({},i),{ref:"triggerRef"}),!0,!0),s=br(Cm,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return br(er,null,[a,s])}}),Tm=jn({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:$p.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:$p.oneOfType([Number,Boolean]).def(!0),popupElement:$p.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=Lr((()=>{const{dropdownMatchSelectWidth:t}=e;return(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}})(t)})),l=bt();return r({getPopupElement:()=>l.value}),()=>{const t=cl(cl({},e),o),{empty:r=!1}=t,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("div",{ref:l,onMouseenter:x,onFocusin:C,onFocusout:k},[T])})}}}),Mm={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Mm.F1&&t<=Mm.F12)return!1;switch(t){case Mm.ALT:case Mm.CAPS_LOCK:case Mm.CONTEXT_MENU:case Mm.CTRL:case Mm.DOWN:case Mm.END:case Mm.ESC:case Mm.HOME:case Mm.INSERT:case Mm.LEFT:case Mm.MAC_FF_META:case Mm.META:case Mm.NUMLOCK:case Mm.NUM_CENTER:case Mm.PAGE_DOWN:case Mm.PAGE_UP:case Mm.PAUSE:case Mm.PRINT_SCREEN:case Mm.RIGHT:case Mm.SHIFT:case Mm.UP:case Mm.WIN_KEY:case Mm.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Mm.ZERO&&e<=Mm.NINE)return!0;if(e>=Mm.NUM_ZERO&&e<=Mm.NUM_MULTIPLY)return!0;if(e>=Mm.A&&e<=Mm.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Mm.SPACE:case Mm.QUESTION_MARK:case Mm.NUM_PLUS:case Mm.NUM_MINUS:case Mm.NUM_PERIOD:case Mm.NUM_DIVISION:case Mm.SEMICOLON:case Mm.DASH:case Mm.EQUALS:case Mm.COMMA:case Mm.PERIOD:case Mm.SLASH:case Mm.APOSTROPHE:case Mm.SINGLE_QUOTE:case Mm.OPEN_SQUARE_BRACKET:case Mm.BACKSLASH:case Mm.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Im=Mm,Em=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:i,customizeIconProps:l,onMousedown:a,onClick:s}=e;let c;return c="function"==typeof i?i(l):i,br("span",{class:r,onMousedown:e=>{e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[void 0!==c?c:br("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};Em.inheritAttrs=!1,Em.displayName="TransBtn",Em.props={class:String,customizeIcon:$p.any,customizeIconProps:$p.any,onMousedown:Function,onClick:Function};const Am=Em;function Dm(e){e.target.composing=!0}function Rm(e){e.target.composing&&(e.target.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(e.target,"input"))}function zm(e,t,n,o){e.addEventListener(t,n,o)}const Bm={created(e,t){t.modifiers&&t.modifiers.lazy||(zm(e,"compositionstart",Dm),zm(e,"compositionend",Rm),zm(e,"change",Rm))}},jm=jn({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:{inputRef:$p.any,prefixCls:String,id:String,inputElement:$p.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),attrs:$p.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup(e){let t=null;const n=Mo("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:i,inputElement:l,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:p,value:h,onKeydown:f,onMousedown:g,onChange:m,onPaste:v,onCompositionstart:b,onCompositionend:y,onFocus:O,onBlur:w,open:S,inputRef:$,attrs:x}=e;let C=l||$n(br("input",null,null),[[Bm]]);const k=C.props||{},{onKeydown:P,onInput:T,onFocus:M,onBlur:I,onMousedown:E,onCompositionstart:A,onCompositionend:D,style:R}=k;return C=Yh(C,cl(cl(cl(cl(cl({type:"search"},k),{id:i,ref:$,disabled:a,tabindex:s,autocomplete:u||"off",autofocus:c,class:xl(`${r}-selection-search-input`,null===(o=null==C?void 0:C.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":p}),x),{value:d?h:"",readonly:!d,unselectable:d?null:"on",style:cl(cl({},R),{opacity:d?null:0}),onKeydown:e=>{f(e),P&&P(e)},onMousedown:e=>{g(e),E&&E(e)},onInput:e=>{m(e),T&&T(e)},onCompositionstart(e){b(e),A&&A(e)},onCompositionend(e){y(e),D&&D(e)},onPaste:v,onFocus:function(){clearTimeout(t),M&&M(arguments.length<=0?void 0:arguments[0]),O&&O(arguments.length<=0?void 0:arguments[0]),null==n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,o=new Array(e),r=0;r{I&&I(o[0]),w&&w(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===C.type?{}:{type:"search"}),!0,!0),C}}}),Nm=jm,_m="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function Qm(e,t){return 0===e.indexOf(t)}function Lm(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:cl({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||Qm(n,"aria-"))||t.data&&Qm(n,"data-")||t.attr&&(_m.includes(n)||_m.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const Hm=Symbol("OverflowContextProviderKey"),Fm=jn({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return To(Hm,Lr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Wm=void 0,Xm=jn({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:$p.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:$p.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const r=Lr((()=>e.responsive&&!e.display)),i=bt();function l(t){e.registerSize(e.itemKey,t)}return o({itemNodeRef:i}),Gn((()=>{l(null)})),()=>{var t;const{prefixCls:o,invalidate:a,item:s,renderItem:c,responsive:u,registerSize:d,itemKey:p,display:h,order:f,component:g="div"}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{offsetWidth:t}=e;l(t)}},{default:()=>br(g,sl(sl(sl({class:xl(!a&&o),style:y},O),m),{},{ref:i}),{default:()=>[b]})})}}});var Ym=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnull)));return()=>{var t;if(!r.value){const{component:r="div"}=e,i=Ym(e,["component"]);return br(r,sl(sl({},i),o),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const i=r.value,{className:l}=i,a=Ym(i,["className"]),{class:s}=o,c=Ym(o,["class"]);return br(Fm,{value:null},{default:()=>[br(Xm,sl(sl(sl({class:xl(l,s)},a),c),e),n)]})}}}),Vm="responsive",Um="invalidate";function Km(e){return`+ ${e.length} ...`}const Gm=jn({name:"Overflow",inheritAttrs:!1,props:{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:$p.any,component:String,itemComponent:$p.any,onVisibleChange:Function,ssr:String,onMousedown:Function},emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=Lr((()=>"full"===e.ssr)),l=yt(null),a=Lr((()=>l.value||0)),s=yt(new Map),c=yt(0),u=yt(0),d=yt(0),p=yt(null),h=yt(null),f=Lr((()=>null===h.value&&i.value?Number.MAX_SAFE_INTEGER:h.value||0)),g=yt(!1),m=Lr((()=>`${e.prefixCls}-item`)),v=Lr((()=>Math.max(c.value,u.value))),b=Lr((()=>!(!e.data.length||e.maxCount!==Vm))),y=Lr((()=>e.maxCount===Um)),O=Lr((()=>b.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),w=Lr((()=>{let t=e.data;return b.value?t=null===l.value&&i.value?e.data:e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):"number"==typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),S=Lr((()=>b.value?e.data.slice(f.value+1):e.data.slice(w.value.length))),$=(t,n)=>{var o;return"function"==typeof e.itemKey?e.itemKey(t):null!==(o=e.itemKey&&(null==t?void 0:t[e.itemKey]))&&void 0!==o?o:n},x=Lr((()=>e.renderItem||(e=>e))),C=(t,n)=>{h.value=t,n||(g.value=t{l.value=t.clientWidth},P=(e,t)=>{const n=new Map(s.value);null===t?n.delete(e):n.set(e,t),s.value=n},T=(e,t)=>{c.value=u.value,u.value=t},M=(e,t)=>{d.value=t},I=e=>s.value.get($(w.value[e],e));return bn([a,s,u,d,()=>e.itemKey,w],(()=>{if(a.value&&v.value&&w.value){let t=d.value;const n=w.value.length,o=n-1;if(!n)return C(0),void(p.value=null);for(let e=0;ea.value){C(e-1),p.value=t-n-d.value+u.value;break}}e.suffix&&I(0)+d.value>a.value&&(p.value=null)}})),()=>{const t=g.value&&!!S.value.length,{itemComponent:o,renderRawItem:i,renderRawRest:l,renderRest:a,prefixCls:s="rc-overflow",suffix:c,component:u="div",id:d,onMousedown:h}=e,{class:v,style:C}=n,I=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=$(e,t);return br(Fm,{key:n,value:cl(cl({},A),{order:t,item:e,itemKey:n,registerSize:P,display:t<=f.value})},{default:()=>[i(e,t)]})}:(e,t)=>{const n=$(e,t);return br(Xm,sl(sl({},A),{},{order:t,key:n,item:e,renderItem:x.value,itemKey:n,registerSize:P,display:t<=f.value}),null)};let R=()=>null;const z={order:t?f.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:T,display:t};if(l)l&&(R=()=>br(Fm,{value:cl(cl({},A),z)},{default:()=>[l(S.value)]}));else{const e=a||Km;R=()=>br(Xm,sl(sl({},A),z),{default:()=>"function"==typeof e?e(S.value):e})}return br(ua,{disabled:!b.value,onResize:k},{default:()=>{var e;return br(u,sl({id:d,class:xl(!y.value&&s,v),style:C,onMousedown:h},I),{default:()=>[w.value.map(D),O.value?R():null,c&&br(Xm,sl(sl({},A),{},{order:f.value,class:`${m.value}-suffix`,registerSize:M,display:!0,style:E}),{default:()=>c}),null===(e=r.default)||void 0===e?void 0:e.call(r)]})}})}}});Gm.Item=Zm,Gm.RESPONSIVE=Vm,Gm.INVALIDATE=Um;const qm=Gm,Jm=Symbol("TreeSelectLegacyContextPropsKey");function ev(){return Mo(Jm,{})}const tv={id:String,prefixCls:String,values:$p.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:$p.any,placeholder:$p.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),removeIcon:$p.any,choiceTransitionName:String,maxTagCount:$p.oneOfType([$p.number,$p.string]),maxTagTextLength:Number,maxTagPlaceholder:$p.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},nv=e=>{e.preventDefault(),e.stopPropagation()},ov=jn({name:"MultipleSelectSelector",inheritAttrs:!1,props:tv,setup(e){const t=yt(),n=yt(0),o=yt(!1),r=ev(),i=Lr((()=>`${e.prefixCls}-selection`)),l=Lr((()=>e.open||"tags"===e.mode?e.searchValue:"")),a=Lr((()=>"tags"===e.mode||e.showSearch&&(e.open||o.value)));function s(t,n,o,r,l){return br("span",{class:xl(`${i.value}-item`,{[`${i.value}-item-disabled`]:o}),title:"string"==typeof t||"number"==typeof t?t.toString():void 0},[br("span",{class:`${i.value}-item-content`},[n]),r&&br(Am,{class:`${i.value}-item-remove`,onMousedown:nv,onClick:l,customizeIcon:e.removeIcon},{default:()=>[Or("×")]})])}function c(t){const{disabled:n,label:o,value:i,option:l}=t,a=!e.disabled&&!n;let c=o;if("number"==typeof e.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const t=String(c);t.length>e.maxTagTextLength&&(c=`${t.slice(0,e.maxTagTextLength)}...`)}const u=n=>{var o;n&&n.stopPropagation(),null===(o=e.onRemove)||void 0===o||o.call(e,t)};return"function"==typeof e.tagRender?function(t,n,o,i,l,a){var s;let c=a;return r.keyEntities&&(c=(null===(s=r.keyEntities[t])||void 0===s?void 0:s.node)||{}),br("span",{key:t,onMousedown:t=>{nv(t),e.onToggleOpen(!open)}},[e.tagRender({label:n,value:t,disabled:o,closable:i,onClose:l,option:c})])}(i,c,n,a,u,l):s(o,c,n,a,u)}function u(t){const{maxTagPlaceholder:n=(e=>`+ ${e.length} ...`)}=e,o="function"==typeof n?n(t):n;return s(o,o,!1)}return Zn((()=>{bn(l,(()=>{n.value=t.value.scrollWidth}),{flush:"post",immediate:!0})})),()=>{const{id:r,prefixCls:s,values:d,open:p,inputRef:h,placeholder:f,disabled:g,autofocus:m,autocomplete:v,activeDescendantId:b,tabindex:y,onInputChange:O,onInputPaste:w,onInputKeyDown:S,onInputMouseDown:$,onInputCompositionStart:x,onInputCompositionEnd:C}=e,k=br("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[br(Nm,{inputRef:h,open:p,prefixCls:s,id:r,inputElement:null,disabled:g,autofocus:m,autocomplete:v,editable:a.value,activeDescendantId:b,value:l.value,onKeydown:S,onMousedown:$,onChange:O,onPaste:w,onCompositionstart:x,onCompositionend:C,tabindex:y,attrs:Lm(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),br("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[l.value,Or(" ")])]),P=br(qm,{prefixCls:`${i.value}-overflow`,data:d,renderItem:c,renderRest:u,suffix:k,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return br(er,null,[P,!d.length&&!l.value&&br("span",{class:`${i.value}-placeholder`},[f])])}}}),rv={inputElement:$p.any,id:String,prefixCls:String,values:$p.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:$p.any,placeholder:$p.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},iv=jn({name:"SingleSelector",setup(e){const t=yt(!1),n=Lr((()=>"combobox"===e.mode)),o=Lr((()=>n.value||e.showSearch)),r=Lr((()=>{let o=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(o=e.activeValue),o})),i=ev();bn([n,()=>e.activeValue],(()=>{n.value&&(t.value=!1)}),{immediate:!0});const l=Lr((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch||!r.value))),a=Lr((()=>{const t=e.values[0];return!t||"string"!=typeof t.label&&"number"!=typeof t.label?void 0:t.label.toString()})),s=()=>{if(e.values[0])return null;const t=l.value?{visibility:"hidden"}:void 0;return br("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])};return()=>{var c,u,d,p;const{inputElement:h,prefixCls:f,id:g,values:m,inputRef:v,disabled:b,autofocus:y,autocomplete:O,activeDescendantId:w,open:S,tabindex:$,optionLabelRender:x,onInputKeyDown:C,onInputMouseDown:k,onInputChange:P,onInputPaste:T,onInputCompositionStart:M,onInputCompositionEnd:I}=e,E=m[0];let A=null;if(E&&i.customSlots){const e=null!==(c=E.key)&&void 0!==c?c:E.value,t=(null===(u=i.keyEntities[e])||void 0===u?void 0:u.node)||{};A=i.customSlots[null===(d=t.slots)||void 0===d?void 0:d.title]||i.customSlots.title||E.label,"function"==typeof A&&(A=A(t))}else A=x&&E?x(E.option):null==E?void 0:E.label;return br(er,null,[br("span",{class:`${f}-selection-search`},[br(Nm,{inputRef:v,prefixCls:f,id:g,open:S,inputElement:h,disabled:b,autofocus:y,autocomplete:O,editable:o.value,activeDescendantId:w,value:r.value,onKeydown:C,onMousedown:k,onChange:e=>{t.value=!0,P(e)},onPaste:T,onCompositionstart:M,onCompositionend:I,tabindex:$,attrs:Lm(e,!0)},null)]),!n.value&&E&&!l.value&&br("span",{class:`${f}-selection-item`,title:a.value},[br(er,{key:null!==(p=E.key)&&void 0!==p?p:E.value},[A])]),s()])}}});iv.props=rv,iv.inheritAttrs=!1;const lv=iv;function av(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return Kn((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function sv(){const e=t=>{e.current=t};return e}const cv=jn({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:$p.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:$p.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),disabled:{type:Boolean,default:void 0},placeholder:$p.any,removeIcon:$p.any,maxTagCount:$p.oneOfType([$p.number,$p.string]),maxTagTextLength:Number,maxTagPlaceholder:$p.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=sv();let r=!1;const[i,l]=av(0),a=t=>{const{which:n}=t;var o;n!==Im.UP&&n!==Im.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==Im.ENTER||"tags"!==e.mode||r||e.open||e.onSearchSubmit(t.target.value),o=n,[Im.ESC,Im.SHIFT,Im.BACKSPACE,Im.TAB,Im.WIN_KEY,Im.ALT,Im.META,Im.WIN_KEY_RIGHT,Im.CTRL,Im.SEMICOLON,Im.EQUALS,Im.CAPS_LOCK,Im.CONTEXT_MENU,Im.F1,Im.F2,Im.F3,Im.F4,Im.F5,Im.F6,Im.F7,Im.F8,Im.F9,Im.F10,Im.F11,Im.F12].includes(o)||e.onToggleOpen(!0)},s=()=>{l(!0)};let c=null;const u=t=>{!1!==e.onSearch(t,!0,r)&&e.onToggleOpen(!0)},d=()=>{r=!0},p=t=>{r=!1,"combobox"!==e.mode&&u(t.target.value)},h=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const e=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,c)}c=null,u(n)},f=e=>{const{clipboardData:t}=e,n=t.getData("text");c=n},g=e=>{let{target:t}=e;t!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus())},m=t=>{const n=i();t.target===o.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:r}=e,i={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:h,onInputPaste:f,onInputCompositionStart:d,onInputCompositionEnd:p},l=br("multiple"===r||"tags"===r?ov:lv,sl(sl({},e),i),null);return br("div",{ref:n,class:`${t}-selector`,onClick:g,onMousedown:m},[l])}}}),uv=Symbol("BaseSelectContextKey");function dv(){return Mo(uv,{})}const pv=()=>{if("undefined"==typeof navigator||"undefined"==typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},hv=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],fv=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:$p.any,placeholder:$p.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:$p.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:$p.any,clearIcon:$p.any,removeIcon:$p.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function gv(e){return"tags"===e||"multiple"===e}const mv=jn({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Vl(cl(cl({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:$p.any,emptyOptions:Boolean}),fv()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Lr((()=>gv(e.mode))),l=Lr((()=>void 0!==e.showSearch?e.showSearch:i.value||"combobox"===e.mode)),a=yt(!1);Zn((()=>{a.value=pv()}));const s=ev(),c=yt(null),u=sv(),d=yt(null),p=yt(null),h=yt(null),f=bt(!1),[g,m,v]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=yt(!1);let n;const o=()=>{clearTimeout(n)};return Zn((()=>{o()})),[t,(r,i)=>{o(),n=setTimeout((()=>{t.value=r,i&&i()}),e)},o]}();o({focus:()=>{var e;null===(e=p.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=p.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=h.value)||void 0===t?void 0:t.scrollTo(e)}});const b=Lr((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),y=void 0!==e.open?e.open:e.defaultOpen,O=yt(y),w=yt(y),S=t=>{O.value=void 0!==e.open?e.open:t,w.value=O.value};bn((()=>e.open),(()=>{S(e.open)}));const $=Lr((()=>!e.notFoundContent&&e.emptyOptions));mn((()=>{w.value=O.value,(e.disabled||$.value&&w.value&&"combobox"===e.mode)&&(w.value=!1)}));const x=Lr((()=>!$.value&&w.value)),C=t=>{const n=void 0!==t?t:!w.value;w.value===n||e.disabled||(S(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},k=Lr((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),P=(t,n,o)=>{var r,i;let l=!0,a=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const s=o?null:function(e,t){if(!t||!t.length)return null;let n=!1;const o=function e(t,o){let[r,...i]=o;if(!r)return[t];const l=t.split(r);return n=n||l.length>1,l.reduce(((t,n)=>[...t,...e(n,i)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(i=e.onSearchSplit)||void 0===i||i.call(e,s),C(!1),l=!1),e.onSearch&&b.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),l},T=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};bn(w,(()=>{w.value||i.value||"combobox"===e.mode||P("",!1,!1)}),{immediate:!0,flush:"post"}),bn((()=>e.disabled),(()=>{O.value&&e.disabled&&S(!1),e.disabled&&!f.value&&m(!1)}),{immediate:!0});const[M,I]=av(),E=function(t){var n;const o=M(),{which:r}=t;if(r===Im.ENTER&&("combobox"!==e.mode&&t.preventDefault(),w.value||C(!0)),I(!!b.value),r===Im.BACKSPACE&&!o&&i.value&&!b.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const o=t[e];if(!o.disabled){t.splice(e,1),n=o;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var l=arguments.length,a=new Array(l>1?l-1:0),s=1;s1?n-1:0),r=1;r{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},R=yt(!1),z=bt(!1),B=()=>{z.value=!0},j=()=>{z.value=!1};To("VCSelectContainerEvent",{focus:function(){m(!0),e.disabled||(e.onFocus&&!R.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&C(!0)),R.value=!0},blur:function(){if(z.value)return;if(f.value=!0,m(!1,(()=>{R.value=!1,f.value=!1,C(!1)})),e.disabled)return;const t=b.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const N=[];Zn((()=>{N.forEach((e=>clearTimeout(e))),N.splice(0,N.length)})),Kn((()=>{N.forEach((e=>clearTimeout(e))),N.splice(0,N.length)}));const _=function(t){var n,o;const{target:r}=t,i=null===(n=d.value)||void 0===n?void 0:n.getPopupElement();if(i&&i.contains(r)){const e=setTimeout((()=>{var t;const n=N.indexOf(e);-1!==n&&N.splice(n,1),v(),a.value||i.contains(document.activeElement)||null===(t=p.value)||void 0===t||t.focus()}));N.push(e)}for(var l=arguments.length,s=new Array(l>1?l-1:0),c=1;c{L.update()};return Zn((()=>{bn(x,(()=>{var e;if(x.value){const t=Math.ceil(null===(e=c.value)||void 0===e?void 0:e.offsetWidth);Q.value===t||Number.isNaN(t)||(Q.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,i,l;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a);const s=[null===(r=e[0])||void 0===r?void 0:r.value,null===(l=null===(i=e[1])||void 0===i?void 0:i.value)||void 0===l?void 0:l.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}Zn((()=>{window.addEventListener("mousedown",o)})),Kn((()=>{window.removeEventListener("mousedown",o)}))}([c,d],x,C),function(e){To(uv,e)}(td(cl(cl({},Ct(e)),{open:w,triggerOpen:x,showSearch:l,multiple:i,toggleOpen:C}))),()=>{const t=cl(cl({},e),n),{prefixCls:o,id:a,open:f,defaultOpen:m,mode:v,showSearch:y,searchValue:O,onSearch:S,allowClear:$,clearIcon:M,showArrow:I,inputIcon:R,disabled:z,loading:N,getInputElement:L,getPopupContainer:F,placement:W,animation:X,transitionName:Y,dropdownStyle:Z,dropdownClassName:V,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:G,showAction:q,direction:J,tokenSeparators:ee,tagRender:te,optionLabelRender:ne,onPopupScroll:oe,onDropdownVisibleChange:re,onFocus:ie,onBlur:le,onKeyup:ae,onKeydown:se,onMousedown:ce,onClear:ue,omitDomProps:de,getRawInputElement:pe,displayValues:he,onDisplayValuesChange:fe,emptyOptions:ge,activeDescendantId:me,activeValue:ve,OptionList:be}=t,ye=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{C(e)}),hv.forEach((e=>{delete Se[e]})),null==de||de.forEach((e=>{delete Se[e]}));const xe=void 0!==I?I:N||!i.value&&"combobox"!==v;let Ce,ke;xe&&(Ce=br(Am,{class:xl(`${o}-arrow`,{[`${o}-arrow-loading`]:N}),customizeIcon:R,customizeIconProps:{loading:N,searchValue:b.value,open:w.value,focused:g.value,showSearch:l.value}},null));const Pe=()=>{null==ue||ue(),fe([],{type:"clear",values:he}),P("",!1,!1)};!z&&$&&(he.length||b.value)&&(ke=br(Am,{class:`${o}-clear`,onMousedown:Pe,customizeIcon:M},{default:()=>[Or("×")]}));const Te=br(be,{ref:h},cl(cl({},s.customSlots),{option:r.option})),Me=xl(o,n.class,{[`${o}-focused`]:g.value,[`${o}-multiple`]:i.value,[`${o}-single`]:!i.value,[`${o}-allow-clear`]:$,[`${o}-show-arrow`]:xe,[`${o}-disabled`]:z,[`${o}-loading`]:N,[`${o}-open`]:w.value,[`${o}-customize-input`]:Oe,[`${o}-show-search`]:l.value}),Ie=br(Tm,{ref:d,disabled:z,prefixCls:o,visible:x.value,popupElement:Te,containerWidth:Q.value,animation:X,transitionName:Y,dropdownStyle:Z,dropdownClassName:V,direction:J,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:G,placement:W,getPopupContainer:F,empty:ge,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:$e,onPopupMouseEnter:H,onPopupFocusin:B,onPopupFocusout:j},{default:()=>we?sa(we)&&Yh(we,{ref:u},!1,!0):br(cv,sl(sl({},e),{},{domRef:u,prefixCls:o,inputElement:Oe,ref:p,id:a,showSearch:l.value,mode:v,activeDescendantId:me,tagRender:te,optionLabelRender:ne,values:he,open:w.value,onToggleOpen:C,activeValue:ve,searchValue:b.value,onSearch:P,onSearchSubmit:T,onRemove:D,tokenWithEnter:k.value}),null)});let Ee;return Ee=we?Ie:br("div",sl(sl({},Se),{},{class:Me,ref:c,onMousedown:_,onKeydown:E,onKeyup:A}),[g.value&&!w.value&&br("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${he.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),Ie,Ce,ke]),Ee}}}),vv=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:i}=e,{slots:l}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=cl(cl({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),br("div",{style:s},[br(ua,{onResize:e=>{let{offsetHeight:t}=e;t&&i&&i()}},{default:()=>[br("div",{style:c,class:xl({[`${r}-holder-inner`]:r})},[null===(a=l.default)||void 0===a?void 0:a.call(l)])]})])};vv.displayName="Filter",vv.inheritAttrs=!1,vv.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const bv=vv,yv=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const i=ql(null===(r=o.default)||void 0===r?void 0:r.call(o));return i&&i.length?yr(i[0],{ref:n}):i};yv.props={setRef:{type:Function,default:()=>{}}};const Ov=yv;function wv(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Sv=jn({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:sv(),thumbRef:sv(),visibleTimeout:null,state:rt({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!Ma&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Ma&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!Ma&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!Ma&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Ma&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Ma&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),ma.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;cl(this.state,{dragging:!0,pageY:wv(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(ma.cancel(this.moveRaf),t){const t=o+(wv(e)-n),i=this.getEnableScrollRange(),l=this.getEnableHeightRange(),a=l?t/l:0,s=Math.ceil(a*i);this.moveRaf=ma((()=>{r(s)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,20),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return 0===e||0===t?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",i=this.showScroll(),l=i&&t;return br("div",{ref:this.scrollbarRef,class:xl(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[br("div",{ref:this.thumbRef,class:xl(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}}),$v="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),xv=(e,t)=>{let n=!1,o=null;return function(r){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const l=r<0&&e.value||r>0&&t.value;return i&&l?(clearTimeout(o),n=!1):l&&!n||(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&l}},Cv=[],kv={overflowY:"auto",overflowAnchor:"none"},Pv=jn({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:$p.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=Lr((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),r=Lr((()=>{const{height:t,itemHeight:n,data:r}=e;return o.value&&r&&n*r.length>t})),i=rt({scrollTop:0,scrollMoving:!1}),l=Lr((()=>e.data||Cv)),a=yt([]);bn(l,(()=>{a.value=dt(l.value).slice()}),{immediate:!0});const s=yt((e=>{}));bn((()=>e.itemKey),(e=>{s.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const c=yt(),u=yt(),d=yt(),p=e=>s.value(e),h={getKey:p};function f(e){let t;t="function"==typeof e?e(i.scrollTop):e;const n=function(e){let t=e;return Number.isNaN(w.value)||(t=Math.min(t,w.value)),t=Math.max(t,0),t}(t);c.value&&(c.value.scrollTop=n),i.scrollTop=n}const[g,m,v,b]=function(e,t,n,o){const r=new Map,i=new Map,l=bt(Symbol("update"));let a;function s(){ma.cancel(a)}function c(){s(),a=ma((()=>{r.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;i.get(t)!==n&&(l.value=Symbol("update"),i.set(t,e.offsetHeight))}}))}))}return bn(e,(()=>{l.value=Symbol("update")})),Gn((()=>{s()})),[function(e,i){const l=t(e),a=r.get(l);i?(r.set(l,i.$el||i),c()):r.delete(l),!a!=!i&&(i?null==n||n(e):null==o||o(e))},c,i,l]}(a,p,null,null),y=rt({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=yt(0);Zn((()=>{Ft((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),Un((()=>{Ft((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),bn([o,a],(()=>{o.value||cl(y,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})}),{immediate:!0}),bn([o,a,O,r],(()=>{o.value&&!r.value&&cl(y,{scrollHeight:O.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(i.scrollTop=c.value.scrollTop)}),{immediate:!0}),bn([r,o,()=>i.scrollTop,a,b,()=>e.height,O],(()=>{if(!o.value||!r.value)return;let t,n,l,s=0;const c=a.value.length,u=a.value,d=i.scrollTop,{itemHeight:h,height:f}=e,g=d+f;for(let e=0;e=d&&(t=e,n=s),void 0===l&&a>g&&(l=e),s=a}void 0===t&&(t=0,n=0,l=Math.ceil(f/h)),void 0===l&&(l=c-1),l=Math.min(l+1,c),cl(y,{scrollHeight:s,start:t,end:l,offset:n})}),{immediate:!0});const w=Lr((()=>y.scrollHeight-e.height)),S=Lr((()=>i.scrollTop<=0)),$=Lr((()=>i.scrollTop>=w.value)),x=xv(S,$),[C,k]=function(e,t,n,o){let r=0,i=null,l=null,a=!1;const s=xv(t,n);return[function(t){if(!e.value)return;ma.cancel(i);const{deltaY:n}=t;r+=n,l=n,s(n)||($v||t.preventDefault(),i=ma((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===l)}]}(o,S,$,(e=>{f((t=>t+e))}));function P(e){o.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,i=null,l=null;const a=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",c))},s=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(l),l=setInterval((()=>{o*=.9333333333333333,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(l)}),16)}},c=()=>{o=!1,a()},u=e=>{a(),1!==e.touches.length||o||(o=!0,r=Math.ceil(e.touches[0].pageY),i=e.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",c))},d=()=>{};Zn((()=>{document.addEventListener("touchmove",d,{passive:!1}),bn(e,(e=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(l),e&&t.value.addEventListener("touchstart",u,{passive:!1})}),{immediate:!0})})),Kn((()=>{document.removeEventListener("touchmove",d)}))}(o,c,((e,t)=>!x(e,t)&&(C({preventDefault(){},deltaY:e}),!0)));const T=()=>{c.value&&(c.value.removeEventListener("wheel",C,!!Ma&&{passive:!1}),c.value.removeEventListener("DOMMouseScroll",k),c.value.removeEventListener("MozMousePixelScroll",P))};mn((()=>{Ft((()=>{c.value&&(T(),c.value.addEventListener("wheel",C,!!Ma&&{passive:!1}),c.value.addEventListener("DOMMouseScroll",k),c.value.addEventListener("MozMousePixelScroll",P))}))})),Kn((()=>{T()}));const M=function(e,t,n,o,r,i,l,a){let s;return c=>{if(null==c)return void a();ma.cancel(s);const u=t.value,d=o.itemHeight;if("number"==typeof c)l(c);else if(c&&"object"==typeof c){let t;const{align:o}=c;"index"in c?({index:t}=c):t=u.findIndex((e=>r(e)===c.key));const{offset:a=0}=c,p=(c,h)=>{if(c<0||!e.value)return;const f=e.value.clientHeight;let g=!1,m=h;if(f){const i=h||o;let s=0,c=0,p=0;const v=Math.min(u.length,t);for(let e=0;e<=v;e+=1){const o=r(u[e]);c=s;const i=n.get(o);p=c+(void 0===i?d:i),s=p,e===t&&void 0===i&&(g=!0)}const b=e.value.scrollTop;let y=null;switch(i){case"top":y=c-a;break;case"bottom":y=p-f+a;break;default:cb+f&&(m="bottom")}null!==y&&y!==b&&l(y)}s=ma((()=>{g&&i(),p(c-1,m)}),2)};p(5)}}}(c,a,v,e,p,m,f,(()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}));n({scrollTo:M});const I=Lr((()=>{let t=null;return e.height&&(t=cl({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},kv),o.value&&(t.overflowY="hidden",i.scrollMoving&&(t.pointerEvents="none"))),t}));return bn([()=>y.start,()=>y.end,a],(()=>{if(e.onVisibleChange){const t=a.value.slice(y.start,y.end+1);e.onVisibleChange(t,a.value)}}),{flush:"post"}),{state:i,mergedData:a,componentStyle:I,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==i.scrollTop&&f(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){f(e)},componentRef:c,useVirtual:o,calRes:y,collectHeight:m,setInstance:g,sharedConfig:h,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}}},render(){const e=cl(cl({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:i,itemKey:l,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:p}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[br(bv,{prefixCls:t,height:m,offset:v,onInnerResize:x,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,i){let{getKey:l}=i;return e.slice(t,n+1).map(((e,n)=>{const i=r(e,t+n,{}),a=l(e);return br(Ov,{key:a,setRef:t=>o(e,t)},{default:()=>[i]})}))}(P,b,y,k,u,C)})]}),$&&br(Sv,{ref:"scrollBarRef",prefixCls:t,scrollTop:g,height:n,scrollHeight:m,count:P.length,onScroll:S,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Tv(e,t,n){const o=bt(e());return bn(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}const Mv=Symbol("SelectContextKey");function Iv(e){return"string"==typeof e||"number"==typeof e}const Ev=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:o}=t;const r=dv(),i=Mo(Mv,{}),l=Lr((()=>`${r.prefixCls}-item`)),a=Tv((()=>i.flattenOptions),[()=>r.open,()=>i.flattenOptions],(e=>e[0])),s=sv(),c=e=>{e.preventDefault()},u=e=>{s.current&&s.current.scrollTo("number"==typeof e?{index:e}:e)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=a.value.length;for(let o=0;o1&&void 0!==arguments[1]&&arguments[1];p.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=a.value[e];o?i.onActiveValue(o.value,e,n):i.onActiveValue(null,-1,n)};bn([()=>a.value.length,()=>r.searchValue],(()=>{h(!1!==i.defaultActiveFirstOption?d(0):-1)}),{immediate:!0});const f=e=>i.rawValues.has(e)&&"combobox"!==r.mode;bn([()=>r.open,()=>r.searchValue],(()=>{if(!r.multiple&&r.open&&1===i.rawValues.size){const e=Array.from(i.rawValues)[0],t=dt(a.value).findIndex((t=>{let{data:n}=t;return n[i.fieldNames.value]===e}));-1!==t&&(h(t),Ft((()=>{u(t)})))}r.open&&Ft((()=>{var e;null===(e=s.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const g=e=>{void 0!==e&&i.onSelect(e,{selected:!i.rawValues.has(e)}),r.multiple||r.toggleOpen(!1)},m=e=>"function"==typeof e.label?e.label():e.label;function v(e){const t=a.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:i}=t,l=Lm(n,!0),s=m(t);return t?br("div",sl(sl({"aria-label":"string"!=typeof s||i?null:s},l),{},{key:e,role:i?"presentation":"option",id:`${r.id}_list_${e}`,"aria-selected":f(o)}),[o]):null}return n({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case Im.N:case Im.P:case Im.UP:case Im.DOWN:{let e=0;if(t===Im.UP?e=-1:t===Im.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Im.N?e=1:t===Im.P&&(e=-1)),0!==e){const t=d(p.activeIndex+e,e);u(t),h(t,!0)}break}case Im.ENTER:{const t=a.value[p.activeIndex];t&&!t.data.disabled?g(t.value):g(void 0),r.open&&e.preventDefault();break}case Im.ESC:r.toggleOpen(!1),r.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{u(e)}}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=r,{menuItemSelectedIcon:u,fieldNames:d,virtual:b,listHeight:y,listItemHeight:O}=i,w=o.option,{activeIndex:S}=p,$=Object.keys(d).map((e=>d[e]));return 0===a.value.length?br("div",{role:"listbox",id:`${e}_list`,class:`${l.value}-empty`,onMousedown:c},[t]):br(er,null,[br("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[v(S-1),v(S),v(S+1)]),br(Pv,{itemKey:"key",ref:s,data:a.value,height:y,itemHeight:O,fullHeight:!1,onMousedown:c,onScroll:n,virtual:b},{default:(e,t)=>{var n;const{group:o,groupOption:r,data:i,value:a}=e,{key:s}=i,c="function"==typeof e.label?e.label():e.label;if(o){const e=null!==(n=i.title)&&void 0!==n?n:Iv(c)&&c;return br("div",{class:xl(l.value,`${l.value}-group`),title:e},[w?w(i):void 0!==c?c:s])}const{disabled:d,title:p,children:v,style:b,class:y,className:O}=i,x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{x.onMousemove&&x.onMousemove(e),S===t||d||h(t)},onClick:e=>{d||g(a),x.onClick&&x.onClick(e)},style:b}),[br("div",{class:`${P}-content`},[w?w(i):E]),sa(u)||k,I&&br(Am,{class:`${l.value}-option-state`,customizeIcon:u,customizeIconProps:{isSelected:k}},{default:()=>[k?"✓":null]})])}})])}}}),Av=Ev;function Dv(e){const t=e,{key:n,children:o}=t,r=t.props,{value:i,disabled:l}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1];return ql(e).map(((e,n)=>{var o;if(!sa(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:i,children:l,props:a}=e;if(t||!r)return Dv(e);const s=l&&l.default?l.default():void 0,c=(null==a?void 0:a.label)||(null===(o=l.label)||void 0===o?void 0:o.call(l))||i;return cl(cl({key:`__RC_SELECT_GRP__${null===i?n:String(i)}__`},a),{label:c,options:Rv(s||[])})})).filter((e=>e))}function zv(e,t,n){const o=yt(),r=yt(),i=yt(),l=yt([]);return bn([e,t],(()=>{e.value?l.value=dt(e.value).slice():l.value=Rv(t.value)}),{immediate:!0,deep:!0}),mn((()=>{const e=l.value,t=new Map,a=new Map,s=n.value;!function e(n){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:bt("");const t=`rc_select_${function(){let e;return jv?(e=Bv,Bv+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function _v(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Qv(e,t){return _v(e).join("").toUpperCase().includes(t)}function Lv(e,t){const{defaultValue:n,value:o=bt()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=St(o)),void 0!==n&&(r="function"==typeof n?n():n);const i=bt(r),l=bt(r);return mn((()=>{let e=void 0!==o.value?o.value:i.value;t.postState&&(e=t.postState(e)),l.value=e})),bn(o,(()=>{i.value=o.value})),[l,function(e){const n=l.value;i.value=e,dt(l.value)!==e&&t.onChange&&t.onChange(e,n)}]}function Hv(e){const t=bt("function"==typeof e?e():e);return[t,function(e){t.value=e}]}const Fv=["inputValue"];function Wv(){return cl(cl({},fv()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:$p.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:$p.any,defaultValue:$p.any,onChange:Function,children:Array})}const Xv=jn({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Vl(Wv(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>gv(e.mode))),a=Lr((()=>!(e.options||!e.children))),s=Lr((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),c=Lr((()=>Ip(e.fieldNames,a.value))),[u,d]=Lv("",{value:Lr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),p=zv(Tt(e,"options"),Tt(e,"children"),c),{valueOptions:h,labelOptions:f,options:g}=p,m=t=>_v(t).map((t=>{var n,o;let r,i,l,a;var s;(s=t)&&"object"==typeof s?(l=t.key,i=t.label,r=null!==(n=t.value)&&void 0!==n?n:l):r=t;const u=h.value.get(r);return u&&(void 0===i&&(i=null==u?void 0:u[e.optionLabelProp||c.value.label]),void 0===l&&(l=null!==(o=null==u?void 0:u.key)&&void 0!==o?o:r),a=null==u?void 0:u.disabled),{label:i,value:r,key:l,disabled:a,option:u}})),[v,b]=Lv(e.defaultValue,{value:Tt(e,"value")}),y=Lr((()=>{var t;const n=m(v.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[O,w]=((e,t)=>{const n=yt({values:new Map,options:new Map});return[Lr((()=>{const{values:o,options:r}=n.value,i=e.value.map((e=>{var t;return void 0===e.label?cl(cl({},e),{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,a=new Map;return i.forEach((e=>{l.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),n.value.values=l,n.value.options=a,i})),e=>t.value.get(e)||n.value.options.get(e)]})(y,h),S=Lr((()=>{if(!e.mode&&1===O.value.length){const e=O.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return O.value.map((e=>{var t;return cl(cl({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),$=Lr((()=>new Set(O.value.map((e=>e.value)))));mn((()=>{var t;if("combobox"===e.mode){const e=null===(t=O.value[0])||void 0===t?void 0:t.value;null!=e&&d(String(e))}}),{flush:"post"});const x=(e,t)=>{const n=null!=t?t:e;return{[c.value.value]:e,[c.value.label]:n}},C=yt();mn((()=>{if("tags"!==e.mode)return void(C.value=g.value);const t=g.value.slice();[...O.value].sort(((e,t)=>e.value{const n=e.value;(e=>h.value.has(e))(n)||t.push(x(n,e.label))})),C.value=t}));const k=(P=C,T=c,M=u,I=s,E=Tt(e,"optionFilterProp"),Lr((()=>{const e=M.value,t=null==E?void 0:E.value,n=null==I?void 0:I.value;if(!e||!1===n)return P.value;const{options:o,label:r,value:i}=T.value,l=[],a="function"==typeof n,s=e.toUpperCase(),c=a?n:(e,n)=>t?Qv(n[t],s):n[o]?Qv(n["children"!==r?r:"label"],s):Qv(n[i],s),u=a?e=>Ep(e):e=>e;return P.value.forEach((t=>{if(t[o])if(c(e,u(t)))l.push(t);else{const n=t[o].filter((t=>c(e,u(t))));n.length&&l.push(cl(cl({},t),{[o]:n}))}else c(e,u(t))&&l.push(t)})),l})));var P,T,M,I,E;const A=Lr((()=>"tags"!==e.mode||!u.value||k.value.some((t=>t[e.optionFilterProp||"value"]===u.value))?k.value:[x(u.value),...k.value])),D=Lr((()=>e.filterSort?[...A.value].sort(((t,n)=>e.filterSort(t,n))):A.value)),R=Lr((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:i,options:l}=Ip(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(l in t)){const e=t[i];o.push({key:Mp(t,o.length),groupOption:a,data:t,label:s,value:e})}else{let r=s;void 0===r&&n&&(r=t.label),o.push({key:Mp(t,o.length),group:!0,data:t,label:r}),e(t[l],!0)}}))}(e,!1),o}(D.value,{fieldNames:c.value,childrenAsData:a.value}))),z=t=>{const n=m(t);if(b(n),e.onChange&&(n.length!==O.value.length||n.some(((e,t)=>{var n;return(null===(n=O.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>cl(cl({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>Ep(w(e.value))));e.onChange(l.value?t:t[0],l.value?o:o[0])}},[B,j]=Hv(null),[N,_]=Hv(0),Q=Lr((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),L=(t,n)=>{const o=()=>{var n;const o=w(t),r=null==o?void 0:o[c.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==o?void 0:o.key)&&void 0!==n?n:t}:t,Ep(o)]};if(n&&e.onSelect){const[t,n]=o();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=o();e.onDeselect(t,n)}},H=(e,t)=>{z(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((e=>{L(e.value,!1)}))},F=(t,n)=>{var o;if(d(t),j(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&z(t),null===(o=e.onSearch)||void 0===o||o.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...$.value,e]));z(t),L(e,!0),d("")}}},W=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=f.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...$.value,...n]));z(o),o.forEach((e=>{L(e,!0)}))},X=Lr((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){To(Mv,e)}(td(cl(cl({},p),{flattenOptions:R,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&j(String(t))},defaultActiveFirstOption:Q,onSelect:(t,n)=>{let o;const r=!l.value||n.selected;o=r?l.value?[...O.value,t]:[t]:O.value.filter((e=>e.value!==t)),z(o),L(t,r),"combobox"===e.mode?j(""):l.value&&!e.autoClearSearchValue||(d(""),j(""))},menuItemSelectedIcon:Tt(e,"menuItemSelectedIcon"),rawValues:$,fieldNames:c,virtual:X,listHeight:Tt(e,"listHeight"),listItemHeight:Tt(e,"listItemHeight"),childrenAsData:a})));const Y=bt();n({focus(){var e;null===(e=Y.value)||void 0===e||e.focus()},blur(){var e;null===(e=Y.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=Y.value)||void 0===t||t.scrollTo(e)}});const Z=Lr((()=>xd(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>br(mv,sl(sl(sl({},Z.value),o),{},{id:i,prefixCls:e.prefixCls,ref:Y,omitDomProps:Fv,mode:e.mode,displayValues:S.value,onDisplayValuesChange:H,searchValue:u.value,onSearch:F,onSearchSplit:W,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Av,emptyOptions:!R.value.length,activeValue:B.value,activeDescendantId:`${i}_list_${N.value}`}),r)}}),Yv=()=>null;Yv.isSelectOption=!0,Yv.displayName="ASelectOption";const Zv=Yv,Vv=()=>null;Vv.isSelectOptGroup=!0,Vv.displayName="ASelectOptGroup";const Uv=Vv,Kv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Gv=Symbol("iconContext"),qv=function(){return Mo(Gv,{prefixCls:bt("anticon"),rootClassName:bt(""),csp:bt()})};function Jv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var eb="data-vc-order",tb=new Map;function nb(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"vc-icon-key"}function ob(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rb(e){return Array.from((tb.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ib(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jv())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(eb,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=ob(t),l=i.firstChild;if(o){if("queue"===o){var a=rb(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(eb))}));if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function lb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n,o,r=tb.get(e);if(!(r&&(n=document,o=r,n&&n.contains&&n.contains(o)))){var i=ib("",t),l=i.parentNode;tb.set(e,l),e.removeChild(i)}}(ob(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rb(ob(t)).find((function(n){return n.getAttribute(nb(t))===e}))}(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var r=ib(e,n);return r.setAttribute(nb(n),t),r}function ab(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vb(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t&&(r=r.replace(/anticon/g,t.value)),Ft((function(){if(Jv()){var e=fb(o.vnode.el);lb(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null}}}),kb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Pb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,r=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}xb(Tu.primary);var Ab=function(e,t){var n,o=Mb({},e,t.attrs),r=o.class,i=o.icon,l=o.spin,a=o.rotate,s=o.tabindex,c=o.twoToneColor,u=o.onClick,d=Eb(o,kb),p=qv(),h=p.prefixCls,f=p.rootClassName,g=(Ib(n={},f.value,!!f.value),Ib(n,h.value,!0),Ib(n,"".concat(h.value,"-").concat(i.name),Boolean(i.name)),Ib(n,"".concat(h.value,"-spin"),!!l||"loading"===i.name),n),m=s;void 0===m&&u&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Pb(pb(c),2),y=b[0],O=b[1];return br("span",Mb({role:"img","aria-label":i.name},d,{onClick:u,class:[g,r],tabindex:m}),[br(wb,{icon:i,primaryColor:y,secondaryColor:O,style:v},null),br(Cb,null,null)])};Ab.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Ab.displayName="AntdIcon",Ab.inheritAttrs=!1,Ab.getTwoToneColor=function(){var e=wb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ab.setTwoToneColor=xb;const Db=Ab;function Rb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:i,feedbackIcon:l,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),p=null!=c?c:br(oy,null,null),h=e=>br(er,null,[!1!==a&&e,i&&l]);let f=null;if(void 0!==s)f=h(s);else if(n)f=h(br(Hb,{spin:!0},null));else{const e=`${r}-suffix`;f=t=>{let{open:n,showSearch:o}=t;return h(br(n&&o?sy:jb,{class:e},null))}}let g=null;g=void 0!==u?u:o?br(Zb,null,null):null;let m=null;return m=void 0!==d?d:br(qb,null,null),{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:m}}function uy(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=rt({});return To(t,o),mn((()=>{cl(o,e,n||{})})),o},useInject:()=>Mo(t,e)||{}}}const dy=Symbol("ContextProps"),py=Symbol("InternalContextProps"),hy={id:Lr((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},fy={addFormItemField:()=>{},removeFormItemField:()=>{}},gy=()=>{const e=Mo(py,fy),t=Symbol("FormItemFieldKey"),n=Mr();return e.addFormItemField(t,n.type),Kn((()=>{e.removeFormItemField(t)})),To(py,fy),To(dy,hy),Mo(dy,hy)},my=jn({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return To(py,fy),To(dy,hy),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),vy=uy({}),by=jn({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return vy.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function yy(e,t,n){return xl({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Oy=(e,t)=>t||e,wy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Sy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},$y=Ku("Space",(e=>[Sy(e),wy(e)]));function xy(e){return"symbol"==typeof e||qf(e)&&"[object Symbol]"==pf(e)}function Cy(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n0){if(++Yy>=800)return arguments[0]}else Yy=0;return Xy.apply(void 0,arguments)});const Ky=Uy;function Gy(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i-1}function eO(e,t,n){"__proto__"==t&&Wy?Wy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tO=Object.prototype.hasOwnProperty;function nO(e,t,n){var o=e[t];tO.call(e,t)&&Gh(o,n)&&(void 0!==n||t in e)||eO(e,t,n)}function oO(e,t,n,o){var r=!n;n||(n={});for(var i=-1,l=t.length;++i0&&n(a)?t>1?SO(a,t-1,n,o,r):Xf(r,a):o||(r[r.length]=a)}return r}function $O(e){return null!=e&&e.length?SO(e,1):[]}function xO(e){return Ky(iO(e,void 0,$O),e+"")}const CO=xg(Object.getPrototypeOf,Object);var kO=Function.prototype,PO=Object.prototype,TO=kO.toString,MO=PO.hasOwnProperty,IO=TO.call(Object);function EO(e){if(!qf(e)||"[object Object]"!=pf(e))return!1;var t=CO(e);if(null===t)return!0;var n=MO.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&TO.call(n)==IO}var AO="object"==typeof e&&e&&!e.nodeType&&e,DO=AO&&"object"==typeof t&&t&&!t.nodeType&&t,RO=DO&&DO.exports===AO?of.Buffer:void 0,zO=RO?RO.allocUnsafe:void 0;const BO=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xf(t,Gf(e)),e=CO(e);return t}:Vf;function jO(e){return Zf(e,sO,BO)}var NO=Object.prototype.hasOwnProperty;function _O(e){var t=new e.constructor(e.byteLength);return new Qf(t).set(new Qf(e)),t}var QO=/\w*$/,LO=rf?rf.prototype:void 0,HO=LO?LO.valueOf:void 0;function FO(e,t,n){var o,r,i,l=e.constructor;switch(t){case"[object ArrayBuffer]":return _O(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return function(e,t){var n=t?_O(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?_O(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(i=new(r=e).constructor(r.source,QO.exec(r))).lastIndex=r.lastIndex,i;case"[object Symbol]":return o=e,HO?Object(HO.call(o)):{}}}var WO=vg&&vg.isMap;const XO=WO?hg(WO):function(e){return qf(e)&&"[object Map]"==Zg(e)};var YO=vg&&vg.isSet;const ZO=YO?hg(YO):function(e){return qf(e)&&"[object Set]"==Zg(e)};var VO,UO="[object Arguments]",KO="[object Function]",GO="[object Object]",qO={};function JO(e,t,n,o,r,i){var l,a=1&t,s=2&t,c=4&t;if(n&&(l=r?n(e,o,r,i):n(e)),void 0!==l)return l;if(!hf(e))return e;var u=Yf(e);if(u){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&NO.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n=t||n<0||d&&e-c>=i}function g(){var e=fw();if(f(e))return m(e);a=setTimeout(g,function(e){var n=t-(e-s);return d?mw(n,i-(e-c)):n}(e))}function m(e){return a=void 0,p&&o?h(e):(o=r=void 0,l)}function v(){var e=fw(),n=f(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(g,t),u?h(e):l}(s);if(d)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=By(t)||0,hf(n)&&(u=!!n.leading,i=(d="maxWait"in n)?gw(By(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=s=r=a=void 0},v.flush=function(){return void 0===a?l:m(fw())},v}function bw(e,t,n){for(var o=-1,r=null==e?0:e.length;++o-1?o[r?e[i]:i]:void 0});var Sw=Math.min;function $w(e){return function(e){return qf(e)&&Tg(e)}(e)?e:[]}var xw=function(e,t){return Ky(iO(e,t,_y),e+"")}((function(e){var t=Cy(e,$w);return t.length&&t[0]===e[0]?function(e,t,n){for(var o=n?bw:Jy,r=e[0].length,i=e.length,l=i,a=Array(i),s=1/0,c=[];l--;){var u=e[l];l&&t&&(u=Cy(u,hg(t))),s=Sw(u.length,s),a[l]=!n&&(t||r>=120&&u.length>=120)?new Bf(l&&u):void 0}u=e[0];var d=-1,p=a[0];e:for(;++dr?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o1),t})),oO(e,jO(e),n),o&&(n=JO(n,7,Iw));for(var r=t.length;r--;)Mw(n,t[r]);return n}));function Aw(e,t,n,o){if(!hf(e))return e;for(var r=-1,i=(t=vO(t,e)).length,l=i-1,a=e;null!=a&&++r=200){var c=t?null:_w(e);if(c)return Hf(c);l=!1,r=Nf,s=new Bf}else s=t?[]:a;e:for(;++o{const n=Lw.useInject(),o=Lr((()=>{if(!n||Tw(n))return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,l="vertical"===o?"-vertical-":"-";return xl({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:r,[`${e.value}-compact${l}last-item`]:i,[`${e.value}-compact${l}item-rtl`]:"rtl"===t.value})}));return{compactSize:Lr((()=>null==n?void 0:n.compactSize)),compactDirection:Lr((()=>null==n?void 0:n.compactDirection)),compactItemClassnames:o}},Fw=jn({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Lw.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Ww=jn({name:"CompactItem",props:{compactSize:String,compactDirection:$p.oneOf(ba("horizontal","vertical")).def("horizontal"),isFirstItem:Sa(),isLastItem:Sa()},setup(e,t){let{slots:n}=t;return Lw.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Xw=jn({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:$p.oneOf(ba("horizontal","vertical")).def("horizontal"),align:$p.oneOf(ba("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d("space-compact",e),l=Lw.useInject(),[a,s]=$y(r),c=Lr((()=>xl(r.value,s.value,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const i=ql((null===(t=o.default)||void 0===t?void 0:t.call(o))||[]);return 0===i.length?null:a(br("div",sl(sl({},n),{},{class:[c.value,n.class]}),[i.map(((t,n)=>{var o;const a=t&&t.key||`${r.value}-item-${n}`,s=!l||Tw(l);return br(Ww,{key:a,compactSize:null!==(o=e.size)&&void 0!==o?o:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null==l?void 0:l.isFirstItem)),isLastItem:n===i.length-1&&(s||(null==l?void 0:l.isLastItem))},{default:()=>[t]})}))]))}}}),Yw=e=>({animationDuration:e,animationFillMode:"both"}),Zw=e=>({animationDuration:e,animationFillMode:"both"}),Vw=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:cl(cl({},Yw(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:cl(cl({},Zw(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Uw=new Hc("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Kw=new Hc("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Gw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Vw(o,Uw,Kw,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},qw=new Hc("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jw=new Hc("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eS=new Hc("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tS=new Hc("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nS=new Hc("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oS=new Hc("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rS={"move-up":{inKeyframes:new Hc("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Hc("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:qw,outKeyframes:Jw},"move-left":{inKeyframes:eS,outKeyframes:tS},"move-right":{inKeyframes:nS,outKeyframes:oS}},iS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=rS[t];return[Vw(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lS=new Hc("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),aS=new Hc("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),sS=new Hc("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),cS=new Hc("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),uS=new Hc("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),dS=new Hc("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pS=new Hc("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hS=new Hc("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fS={"slide-up":{inKeyframes:lS,outKeyframes:aS},"slide-down":{inKeyframes:sS,outKeyframes:cS},"slide-left":{inKeyframes:uS,outKeyframes:dS},"slide-right":{inKeyframes:pS,outKeyframes:hS}},gS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=fS[t];return[Vw(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},mS=new Hc("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vS=new Hc("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bS=new Hc("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yS=new Hc("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),OS=new Hc("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wS=new Hc("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),SS=new Hc("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$S=new Hc("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xS=new Hc("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),CS=new Hc("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kS=new Hc("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),PS=new Hc("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TS={zoom:{inKeyframes:mS,outKeyframes:vS},"zoom-big":{inKeyframes:bS,outKeyframes:yS},"zoom-big-fast":{inKeyframes:bS,outKeyframes:yS},"zoom-left":{inKeyframes:SS,outKeyframes:$S},"zoom-right":{inKeyframes:xS,outKeyframes:CS},"zoom-up":{inKeyframes:OS,outKeyframes:wS},"zoom-down":{inKeyframes:kS,outKeyframes:PS}},MS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=TS[t];return[Vw(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ES=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},AS=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:lS},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:sS},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:aS},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:cS},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:cl(cl({},ES(e)),{color:e.colorTextDisabled}),[`${o}`]:cl(cl({},ES(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":cl({flex:"auto"},Wu),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]};function DS(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function RS(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[l]=DS(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:l-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function zS(e){const{componentCls:t}=e,n=Ju(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=DS(e);return[RS(e),RS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},RS(Ju(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function BS(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:cl(cl({},Xu(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function jS(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[BS(e),BS(Ju(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},BS(Ju(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function NS(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${l}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":cl(cl({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function _S(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function QS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:cl(cl({},NS(e,o,t)),_S(n,o,t))}}const LS=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},HS=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:cl(cl({},n?{[`${o}-selector`]:{borderColor:r}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},FS=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},WS=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:cl(cl({},LS(e)),FS(e)),[`${t}-selection-item`]:cl({flex:1,fontWeight:"normal"},Wu),[`${t}-selection-placeholder`]:cl(cl({},Wu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},XS=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},WS(e),jS(e),zS(e),AS(e),{[`${t}-rtl`]:{direction:"rtl"}},HS(t,Ju(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),HS(`${t}-status-error`,Ju(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),HS(`${t}-status-warning`,Ju(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),QS(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},YS=Ku("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Ju(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[XS(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),ZS=()=>cl(cl({},xd(Wv(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Pa([Array,Object,String,Number]),defaultValue:Pa([Array,Object,String,Number]),notFoundContent:$p.any,suffixIcon:$p.any,itemIcon:$p.any,size:ka(),mode:ka(),bordered:Sa(!0),transitionName:String,choiceTransitionName:ka(""),popupClassName:String,dropdownClassName:String,placement:ka(),status:ka(),"onUpdate:value":$a()}),VS="SECRET_COMBOBOX_MODE_DO_NOT_USE",US=jn({compatConfig:{MODE:3},name:"ASelect",Option:Zv,OptGroup:Uv,inheritAttrs:!1,props:Vl(ZS(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:VS,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:i}=t;const l=bt(),a=gy(),s=vy.useInject(),c=Lr((()=>Oy(s.status,e.status))),u=Lr((()=>{const{mode:t}=e;if("combobox"!==t)return t===VS?"combobox":t})),{prefixCls:d,direction:p,configProvider:h,renderEmpty:f,size:g,getPrefixCls:m,getPopupContainer:v,disabled:b,select:y}=$d("select",e),{compactSize:O,compactItemClassnames:w}=Hw(d,p),S=Lr((()=>O.value||g.value)),$=Wa(),x=Lr((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:$.value})),[C,k]=YS(d),P=Lr((()=>m())),T=Lr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft")),M=Lr((()=>am(P.value,rm(T.value),e.transitionName))),I=Lr((()=>xl({[`${d.value}-lg`]:"large"===S.value,[`${d.value}-sm`]:"small"===S.value,[`${d.value}-rtl`]:"rtl"===p.value,[`${d.value}-borderless`]:!e.bordered,[`${d.value}-in-form-item`]:s.isFormItemInput},yy(d.value,c.value,s.hasFeedback),w.value,k.value))),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n{o("blur",e),a.onFieldBlur()};i({blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},scrollTo:e=>{var t;null===(t=l.value)||void 0===t||t.scrollTo(e)}});const D=Lr((()=>"multiple"===u.value||"tags"===u.value)),R=Lr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(D.value||"combobox"===u.value)));return()=>{var t,o,i,c;const{notFoundContent:h,listHeight:g=256,listItemHeight:m=24,popupClassName:b,dropdownClassName:O,virtual:w,dropdownMatchSelectWidth:S,id:$=a.id.value,placeholder:P=(null===(t=r.placeholder)||void 0===t?void 0:t.call(r)),showArrow:T}=e,{hasFeedback:z,feedbackIcon:B}=s;let j;j=void 0!==h?h:r.notFoundContent?r.notFoundContent():"combobox"===u.value?null:(null==f?void 0:f("Select"))||br(bd,{componentName:"Select"},null);const{suffixIcon:N,itemIcon:_,removeIcon:Q,clearIcon:L}=cy(cl(cl({},e),{multiple:D.value,prefixCls:d.value,hasFeedback:z,feedbackIcon:B,showArrow:R.value}),r),H=xd(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),F=xl(b||O,{[`${d.value}-dropdown-${p.value}`]:"rtl"===p.value},k.value);return C(br(Xv,sl(sl(sl({ref:l,virtual:w,dropdownMatchSelectWidth:S},H),n),{},{showSearch:null!==(o=e.showSearch)&&void 0!==o?o:null===(i=null==y?void 0:y.value)||void 0===i?void 0:i.showSearch,placeholder:P,listHeight:g,listItemHeight:m,mode:u.value,prefixCls:d.value,direction:p.value,inputIcon:N,menuItemSelectedIcon:_,removeIcon:Q,clearIcon:L,notFoundContent:j,class:[I.value,n.class],getPopupContainer:null==v?void 0:v.value,dropdownClassName:F,onChange:E,onBlur:A,id:$,dropdownRender:H.dropdownRender||r.dropdownRender,transitionName:M.value,children:null===(c=r.default)||void 0===c?void 0:c.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:z||T,disabled:x.value}),{option:r.option}))}}});US.install=function(e){return e.component(US.name,US),e.component(US.Option.displayName,US.Option),e.component(US.OptGroup.displayName,US.OptGroup),e};const KS=US.Option,GS=US.OptGroup,qS=US,JS=()=>null;JS.isSelectOption=!0,JS.displayName="AAutoCompleteOption";const e$=JS,t$=()=>null;t$.isSelectOptGroup=!0,t$.displayName="AAutoCompleteOptGroup";const n$=t$,o$=e$,r$=n$,i$=jn({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:cl(cl({},xd(ZS(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;Ts(),Ts(),Ts(!e.dropdownClassName);const i=bt(),l=()=>{var e;const t=ql(null===(e=n.default)||void 0===e?void 0:e.call(n));return t.length?t[0]:void 0};r({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()}});const{prefixCls:a}=$d("select",e);return()=>{var t,r,s;const{size:c,dataSource:u,notFoundContent:d=(null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n))}=e;let p;const{class:h}=o,f={[h]:!!h,[`${a.value}-lg`]:"large"===c,[`${a.value}-sm`]:"small"===c,[`${a.value}-show-search`]:!0,[`${a.value}-auto-complete`]:!0};if(void 0===e.options){const e=(null===(r=n.dataSource)||void 0===r?void 0:r.call(n))||(null===(s=n.options)||void 0===s?void 0:s.call(n))||[];p=e.length&&function(e){var t,n;return(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.isSelectOption)||(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.isSelectOptGroup)}(e[0])?e:u?u.map((e=>{if(sa(e))return e;switch(typeof e){case"string":return br(e$,{key:e,value:e},{default:()=>[e]});case"object":return br(e$,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}const g=xd(cl(cl(cl({},e),o),{mode:qS.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:d,class:f,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return br(qS,g,sl({default:()=>[p]},xd(n,["default","dataSource","options"])))}}}),l$=cl(i$,{Option:e$,OptGroup:n$,install:e=>(e.component(i$.name,i$),e.component(e$.displayName,e$),e.component(n$.displayName,n$),e)}),a$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function s$(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),F$=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:p,alertPaddingHorizontal:h,paddingMD:f,paddingContentHorizontalLG:g}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${h}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:g,paddingBlock:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},W$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":H$(r,o,n,e,t),"&-info":H$(h,p,d,e,t),"&-warning":H$(a,l,i,e,t),"&-error":cl(cl({},H$(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},X$=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}},Y$=e=>[F$(e),W$(e),X$(e)],Z$=Ku("Alert",(e=>{const{fontSizeHeading3:t}=e,n=Ju(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[Y$(n)]})),V$={success:E$,info:L$,error:oy,warning:B$},U$={success:d$,info:w$,error:k$,warning:m$},K$=ba("success","info","warning","error"),G$=ya(jn({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:{type:$p.oneOf(K$),closable:{type:Boolean,default:void 0},closeText:$p.any,message:$p.any,description:$p.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:$p.any,closeIcon:$p.any,onClose:Function},setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,direction:a}=$d("alert",e),[s,c]=Z$(l),u=yt(!1),d=yt(!1),p=yt(),h=e=>{e.preventDefault();const t=p.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,u.value=!0,o("close",e)},f=()=>{var t;u.value=!1,d.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)},g=Lr((()=>{const{type:t}=e;return void 0!==t?t:e.banner?"warning":"info"}));i({animationEnd:f});const m=yt({});return()=>{var t,o,i,v,b,y,O,w,S,$;const{banner:x,closeIcon:C=(null===(t=n.closeIcon)||void 0===t?void 0:t.call(n))}=e;let{closable:k,showIcon:P}=e;const T=null!==(o=e.closeText)&&void 0!==o?o:null===(i=n.closeText)||void 0===i?void 0:i.call(n),M=null!==(v=e.description)&&void 0!==v?v:null===(b=n.description)||void 0===b?void 0:b.call(n),I=null!==(y=e.message)&&void 0!==y?y:null===(O=n.message)||void 0===O?void 0:O.call(n),E=null!==(w=e.icon)&&void 0!==w?w:null===(S=n.icon)||void 0===S?void 0:S.call(n),A=null===($=n.action)||void 0===$?void 0:$.call(n);P=!(!x||void 0!==P)||P;const D=(M?U$:V$)[g.value]||null;T&&(k=!0);const R=l.value,z=xl(R,{[`${R}-${g.value}`]:!0,[`${R}-closing`]:u.value,[`${R}-with-description`]:!!M,[`${R}-no-icon`]:!P,[`${R}-banner`]:!!x,[`${R}-closable`]:k,[`${R}-rtl`]:"rtl"===a.value,[c.value]:!0}),B=k?br("button",{type:"button",onClick:h,class:`${R}-close-icon`,tabindex:0},[T?br("span",{class:`${R}-close-text`},[T]):void 0===C?br(qb,null,null):C]):null,j=E&&(sa(E)?Yh(E,{class:`${R}-icon`}):br("span",{class:`${R}-icon`},[E]))||br(D,{class:`${R}-icon`},null),N=im(`${R}-motion`,{appear:!1,css:!0,onAfterLeave:f,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight="0px"}});return s(d.value?null:br(qr,N,{default:()=>[$n(br("div",sl(sl({role:"alert"},r),{},{style:[r.style,m.value],class:[r.class,z],"data-show":!u.value,ref:p}),[P?j:null,br("div",{class:`${R}-content`},[I?br("div",{class:`${R}-message`},[I]):null,M?br("div",{class:`${R}-description`},[M]):null]),A?br("div",{class:`${R}-action`},[A]):null,B]),[[gi,!u.value]])]}))}}})),q$=["xxxl","xxl","xl","lg","md","sm","xs"];function J$(){const[,e]=ad();return Lr((()=>{const t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`}))(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch:e=>(r=e,n.forEach((e=>e(r))),n.size>=1),subscribe(e){return n.size||this.register(),o+=1,n.set(o,e),e(r),o},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(cl(cl({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}))}function ex(){const e=yt({});let t=null;const n=J$();return Zn((()=>{t=n.value.subscribe((t=>{e.value=t}))})),Gn((()=>{n.value.unsubscribe(t)})),e}function tx(e){const t=yt();return mn((()=>{t.value=e()}),{flush:"sync"}),t}const nx=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:l,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:h,borderRadiusSM:f,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,lineHeight:e-2*g+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${g}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(l,c,p)),{"&-lg":cl({},v(a,u,h)),"&-sm":cl({},v(s,d,f)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ox=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},rx=Ku("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Ju(e,{avatarBg:n,avatarColor:t});return[nx(o),ox(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+l)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}})),ix=Symbol("AvatarContextKey"),lx=jn({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:$p.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=yt(!0),i=yt(!1),l=yt(1),a=yt(null),s=yt(null),{prefixCls:c}=$d("avatar",e),[u,d]=rx(c),p=Mo(ix,{}),h=Lr((()=>"default"===e.size?p.size:e.size)),f=ex(),g=tx((()=>{if("object"!=typeof e.size)return;const t=q$.find((e=>f.value[e]));return e.size[t]})),m=()=>{if(!a.value||!s.value)return;const t=a.value.offsetWidth,n=s.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(r.value=!1)};return bn((()=>e.src),(()=>{Ft((()=>{r.value=!0,l.value=1}))})),bn((()=>e.gap),(()=>{Ft((()=>{m()}))})),Zn((()=>{Ft((()=>{m(),i.value=!0}))})),()=>{var t,f;const{shape:b,src:y,alt:O,srcset:w,draggable:S,crossOrigin:$}=e,x=null!==(t=p.shape)&&void 0!==t?t:b,C=ca(n,e,"icon"),k=c.value,P={[`${o.class}`]:!!o.class,[k]:!0,[`${k}-lg`]:"large"===h.value,[`${k}-sm`]:"small"===h.value,[`${k}-${x}`]:!0,[`${k}-image`]:y&&r.value,[`${k}-icon`]:C,[d.value]:!0},T="number"==typeof h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:C?h.value/2+"px":"18px"}:{},M=null===(f=n.default)||void 0===f?void 0:f.call(n);let I;if(y&&r.value)I=br("img",{draggable:S,src:y,srcset:w,onError:v,alt:O,crossorigin:$},null);else if(C)I=C;else if(i.value||1!==l.value){const e=`scale(${l.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof h.value?{lineHeight:`${h.value}px`}:{};I=br(ua,{onResize:m},{default:()=>[br("span",{class:`${k}-string`,ref:a,style:cl(cl({},n),t)},[M])]})}else I=br("span",{class:`${k}-string`,ref:a,style:{opacity:0}},[M]);return u(br("span",sl(sl({},o),{},{ref:s,class:P,style:[T,(E=!!C,g.value?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:(E?g.value/2:18)+"px"}:{}),o.style]}),[I]));var E}}}),ax={adjustX:1,adjustY:1},sx=[0,0],cx={left:{points:["cr","cl"],overflow:ax,offset:[-4,0],targetOffset:sx},right:{points:["cl","cr"],overflow:ax,offset:[4,0],targetOffset:sx},top:{points:["bc","tc"],overflow:ax,offset:[0,-4],targetOffset:sx},bottom:{points:["tc","bc"],overflow:ax,offset:[0,4],targetOffset:sx},topLeft:{points:["bl","tl"],overflow:ax,offset:[0,-4],targetOffset:sx},leftTop:{points:["tr","tl"],overflow:ax,offset:[-4,0],targetOffset:sx},topRight:{points:["br","tr"],overflow:ax,offset:[0,-4],targetOffset:sx},rightTop:{points:["tl","tr"],overflow:ax,offset:[4,0],targetOffset:sx},bottomRight:{points:["tr","br"],overflow:ax,offset:[0,4],targetOffset:sx},rightBottom:{points:["bl","br"],overflow:ax,offset:[4,0],targetOffset:sx},bottomLeft:{points:["tl","bl"],overflow:ax,offset:[0,4],targetOffset:sx},leftBottom:{points:["br","bl"],overflow:ax,offset:[-4,0],targetOffset:sx}},ux=jn({compatConfig:{MODE:3},name:"TooltipContent",props:{prefixCls:String,id:String,overlayInnerStyle:$p.any},setup(e,t){let{slots:n}=t;return()=>{var t;return br("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}});function dx(){}const px=jn({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:$p.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:$p.string.def("right"),transitionName:String,animation:$p.any,afterVisibleChange:$p.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:$p.string.def("rc-tooltip"),mouseEnterDelay:$p.number.def(.1),mouseLeaveDelay:$p.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:$p.object.def((()=>({}))),arrowContent:$p.any.def(null),tipId:String,builtinPlacements:$p.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=yt(),l=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[br("div",{class:`${t}-arrow`,key:"arrow"},[ca(n,e,"arrowContent")]),br(ux,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=yt(!1),s=yt(!1);return mn((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"==typeof t)a.value=t;else if(t&&"object"==typeof t){const{keepParent:e}=t;a.value=!0===e,s.value=!1===e}})),()=>{const{overlayClassName:t,trigger:r,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d,prefixCls:p,afterVisibleChange:h,transitionName:f,animation:g,placement:m,align:v,destroyTooltipOnHide:b,defaultVisible:y}=e,O=cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:wa(),overlayInnerStyle:wa(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:wa(),builtinPlacements:wa(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),fx={adjustX:1,adjustY:1},gx={adjustX:0,adjustY:0},mx=[0,0];function vx(e){return"boolean"==typeof e?e?fx:gx:cl(cl({},gx),e)}function bx(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach((e=>{l[e]=i?cl(cl({},l[e]),{overflow:vx(r),targetOffset:mx}):cl(cl({},cx[e]),{overflow:vx(r)}),l[e].ignoreShake=!0})),l}function yx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`)),wx=["success","processing","error","default","warning"];function Sx(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Gc.includes(e):[...Ox,...Gc].includes(e)}function $x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}function xx(e){const{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:o,limitVerticalRadius:r}=e,i=t/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(n>12?n+2:12)-i;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:r?8-i:l}}function Cx(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:l,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:h}=xx({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:l,limitVerticalRadius:d}),f=o/2+r;return{[n]:{[`${n}-arrow`]:[cl(cl({position:"absolute",zIndex:1,display:"block"},Hu(o,i,l,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[$x(["&-placement-topLeft","&-placement-top","&-placement-topRight"],c)]:{paddingBottom:f},[$x(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],c)]:{paddingTop:f},[$x(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],c)]:{paddingRight:{_skip_check_:!0,value:f}},[$x(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],c)]:{paddingLeft:{_skip_check_:!0,value:f}}}}}const kx=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:cl(cl(cl(cl({},Xu(e)),{position:"absolute",zIndex:l,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Fu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Cx(Ju(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},Px=()=>cl(cl({},hx()),{title:$p.any}),Tx=ya(jn({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Vl(Px(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,getPopupContainer:a,direction:s,rootPrefixCls:c}=$d("tooltip",e),u=Lr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),d=bt(yx([e.open,e.visible])),p=bt();let h;bn(u,(e=>{ma.cancel(h),h=ma((()=>{d.value=!!e}))}));const f=()=>{var t;const o=null!==(t=e.title)&&void 0!==t?t:n.title;return!o&&0!==o},g=e=>{const t=f();void 0===u.value&&(d.value=!t&&e),t||(o("update:visible",e),o("visibleChange",e),o("update:open",e),o("openChange",e))};i({getPopupDomNode:()=>p.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.forcePopupAlign()}});const m=Lr((()=>{const{builtinPlacements:t,arrowPointAtCenter:n,autoAdjustOverflow:o}=e;return t||bx({arrowPointAtCenter:n,autoAdjustOverflow:o})})),v=e=>e||""===e,b=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&v(e.props.disabled)||!0===t.__ANT_SWITCH&&(v(e.props.disabled)||v(e.props.loading))||!0===t.__ANT_RADIO&&v(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=cl({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(ra(e),["position","left","right","top","bottom","float","display","zIndex"]),o=cl(cl({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=Yh(e,{style:cl(cl({},n),{pointerEvents:"none"})},!0);return br("span",{style:o,class:`${l.value}-disabled-compatible-wrapper`},[r])}return e},y=()=>{var t,o;return null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n)},O=(e,t)=>{const n=m.value,o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?r.top=n.height-t.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(r.top=-t.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?r.left=n.width-t.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},w=Lr((()=>function(e,t){const n=Sx(t),o=xl({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}(l.value,e.color))),S=Lr((()=>r["data-popover-inject"])),[$,x]=((e,t)=>Ku("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:i}=e,l=Ju(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:i>4?4:i});return[kx(l),MS(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(l,Lr((()=>!S.value)));return()=>{var t,o;const{openClassName:i,overlayClassName:h,overlayStyle:v,overlayInnerStyle:S}=e;let C=null!==(o=la(null===(t=n.default)||void 0===t?void 0:t.call(n)))&&void 0!==o?o:null;C=1===C.length?C[0]:C;let k=d.value;if(void 0===u.value&&f()&&(k=!1),!C)return null;const P=b(!sa(C)||1===(T=C).length&&T[0].type===er?br("span",null,[C]):C);var T;const M=xl({[i||`${l.value}-open`]:!0,[P.props&&P.props.class]:P.props&&P.props.class}),I=xl(h,{[`${l.value}-rtl`]:"rtl"===s.value},w.value.className,x.value),E=cl(cl({},w.value.overlayStyle),S),A=w.value.arrowStyle,D=cl(cl(cl({},r),e),{prefixCls:l.value,getPopupContainer:null==a?void 0:a.value,builtinPlacements:m.value,visible:k,ref:p,overlayClassName:I,overlayStyle:cl(cl({},A),v),overlayInnerStyle:E,onVisibleChange:g,onPopupAlign:O,transitionName:am(c.value,"zoom-big-fast",e.transitionName)});return $(br(px,D,{default:()=>[d.value?Yh(P,{class:M}):P],arrowContent:()=>br("span",{class:`${l.value}-arrow-content`},null),overlay:y}))}}})),Mx=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:p}=e;return[{[t]:cl(cl({},Xu(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:o}})},Cx(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},Ix=e=>{const{componentCls:t}=e;return{[t]:Gc.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},Ex=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:c}=e,u=l-Math.round(a*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}},Ax=Ku("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Ju(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[Mx(r),Ix(r),o&&Ex(r),MS(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),Dx=ya(jn({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Vl(cl(cl({},hx()),{content:xa(),title:xa()}),cl(cl({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=bt();Ts(void 0===e.visible),n({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:l,configProvider:a}=$d("popover",e),[s,c]=Ax(l),u=Lr((()=>a.getPrefixCls())),d=()=>{var t,n;const{title:r=la(null===(t=o.title)||void 0===t?void 0:t.call(o)),content:i=la(null===(n=o.content)||void 0===n?void 0:n.call(o))}=e,a=!!(Array.isArray(r)?r.length:r),s=!!(Array.isArray(i)?i.length:r);return a||s?br(er,null,[a&&br("div",{class:`${l.value}-title`},[r]),br("div",{class:`${l.value}-inner-content`},[i])]):null};return()=>{const t=xl(e.overlayClassName,c.value);return s(br(Tx,sl(sl(sl({},xd(e,["title","content"])),r),{},{prefixCls:l.value,ref:i,overlayClassName:t,transitionName:am(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}})),Rx=jn({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("avatar",e),l=Lr((()=>`${r.value}-group`)),[a,s]=rx(r);return mn((()=>{(e=>{To(ix,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:r,maxStyle:c,maxPopoverTrigger:u="hover",shape:d}=e,p={[l.value]:!0,[`${l.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[s.value]:!0},h=ca(n,e),f=ql(h).map(((e,t)=>Yh(e,{key:`avatar-key-${t}`}))),g=f.length;if(r&&r[br(lx,{style:c,shape:d},{default:()=>["+"+(g-r)]})]})),a(br("div",sl(sl({},o),{},{class:p,style:o.style}),[e]))}return a(br("div",sl(sl({},o),{},{class:p,style:o.style}),[f]))}}});function zx(e){let t,{prefixCls:n,value:o,current:r,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),br("p",{style:t,class:xl(`${n}-only-unit`,{current:r})},[o])}function Bx(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}lx.Group=Rx,lx.install=function(e){return e.component(lx.name,lx),e.component(Rx.name,Rx),e};const jx=jn({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=Lr((()=>Number(e.value))),n=Lr((()=>Math.abs(e.count))),o=rt({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=bt();return bn(t,(()=>{clearTimeout(i.value),i.value=setTimeout((()=>{r()}),1e3)}),{flush:"post"}),Gn((()=>{clearTimeout(i.value)})),()=>{let i,l={};const a=t.value;if(o.prevValue===a||Number.isNaN(a)||Number.isNaN(o.prevValue))i=[zx(cl(cl({},e),{current:!0}))],l={transition:"none"};else{i=[];const t=a+10,r=[];for(let e=a;e<=t;e+=1)r.push(e);const s=r.findIndex((e=>e%10===o.prevValue));i=r.map(((t,n)=>{const o=t%10;return zx(cl(cl({},e),{value:o,offset:n-s,current:n===s}))}));const c=o.prevCountr()},[i])}}}),Nx=jn({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:{prefixCls:String,count:$p.any,component:String,title:$p.any,show:Boolean},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r}=$d("scroll-number",e);return()=>{var t;const i=cl(cl({},e),n),{prefixCls:l,count:a,title:s,show:c,component:u="sup",class:d,style:p}=i,h=cl(cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(jx,{prefixCls:r.value,count:Number(a),value:t,key:e.length-n},null)))}p&&p.borderColor&&(h.style=cl(cl({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const g=la(null===(t=o.default)||void 0===t?void 0:t.call(o));return g&&g.length?Yh(g,{class:xl(`${r.value}-custom-component`)},!1):br(u,h,{default:()=>[f]})}}}),_x=new Hc("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Qx=new Hc("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Lx=new Hc("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Hx=new Hc("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Fx=new Hc("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Wx=new Hc("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Xx=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:i,badgeHeightSm:l,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,p=`${o}-ribbon`,h=`${o}-ribbon-wrapper`,f=Fu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}})),g=Fu(e,((e,t)=>{let{darkColor:n}=t;return{[`&${p}-color-${e}`]:{background:n,color:n}}}));return{[t]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Wx,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:_x,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),f),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Qx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Lx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Hx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Fx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${p}`]:cl(cl(cl(cl({},Xu(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${p}-text`]:{color:e.colorTextLightSolid},[`${p}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:u/2+"px solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),g),{[`&${p}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${p}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${p}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${p}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Yx=Ku("Badge",(e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:i,colorBorderBg:l}=e,a=Math.round(t*n),s=Ju(e,{badgeFontHeight:a,badgeShadowSize:r,badgeZIndex:"auto",badgeHeight:a-2*r,badgeTextColor:e.colorBgContainer,badgeFontWeight:"normal",badgeFontSize:o,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:l,badgeHeightSm:t,badgeDotSize:o/2,badgeFontSizeSm:o,badgeStatusSize:o/2,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Xx(s)]})),Zx=jn({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:{prefix:String,color:{type:String},text:$p.any,placement:{type:String,default:"end"}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d("ribbon",e),[l,a]=Yx(r),s=Lr((()=>Sx(e.color,!1))),c=Lr((()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-color-${e.color}`]:s.value}]));return()=>{var t,i;const{class:u,style:d}=n,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r!isNaN(parseFloat(e))&&isFinite(e),Ux=jn({compatConfig:{MODE:3},name:"ABadge",Ribbon:Zx,inheritAttrs:!1,props:{count:$p.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:$p.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("badge",e),[l,a]=Yx(r),s=Lr((()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count)),c=Lr((()=>"0"===s.value||0===s.value)),u=Lr((()=>null===e.count||c.value&&!e.showZero)),d=Lr((()=>(null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color)&&u.value)),p=Lr((()=>e.dot&&!c.value)),h=Lr((()=>p.value?"":s.value)),f=Lr((()=>(null===h.value||void 0===h.value||""===h.value||c.value&&!e.showZero)&&!p.value)),g=bt(e.count),m=bt(h.value),v=bt(p.value);bn([()=>e.count,h,p],(()=>{f.value||(g.value=e.count,m.value=h.value,v.value=p.value)}),{immediate:!0});const b=Lr((()=>Sx(e.color,!1))),y=Lr((()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value}))),O=Lr((()=>e.color&&!b.value?{background:e.color,color:e.color}:{})),w=Lr((()=>({[`${r.value}-dot`]:v.value,[`${r.value}-count`]:!v.value,[`${r.value}-count-sm`]:"small"===e.size,[`${r.value}-multiple-words`]:!v.value&&m.value&&m.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value})));return()=>{var t,s;const{offset:c,title:u,color:p}=e,h=o.style,v=ca(n,e,"text"),S=r.value,$=g.value;let x=ql(null===(t=n.default)||void 0===t?void 0:t.call(n));x=x.length?x:null;const C=!(f.value&&!n.count),k=(()=>{if(!c)return cl({},h);const e={marginTop:Vx(c[1])?`${c[1]}px`:c[1]};return"rtl"===i.value?e.left=`${parseInt(c[0],10)}px`:e.right=-parseInt(c[0],10)+"px",cl(cl({},e),h)})(),P=null!=u?u:"string"==typeof $||"number"==typeof $?$:void 0,T=C||!v?null:br("span",{class:`${S}-status-text`},[v]),M="object"==typeof $||void 0===$&&n.count?Yh(null!=$?$:null===(s=n.count)||void 0===s?void 0:s.call(n),{style:k},!1):null,I=xl(S,{[`${S}-status`]:d.value,[`${S}-not-a-wrapper`]:!x,[`${S}-rtl`]:"rtl"===i.value},o.class,a.value);if(!x&&d.value){const e=k.color;return l(br("span",sl(sl({},o),{},{class:I,style:k}),[br("span",{class:y.value,style:O.value},null),br("span",{style:{color:e},class:`${S}-status-text`},[v])]))}const E=im(x?`${S}-zoom`:"",{appear:!1});let A=cl(cl({},k),e.numberStyle);return p&&!b.value&&(A=A||{},A.background=p),l(br("span",sl(sl({},o),{},{class:I}),[x,br(qr,E,{default:()=>[$n(br(Nx,{prefixCls:e.scrollNumberPrefixCls,show:C,class:w.value,count:m.value,title:P,style:A,key:"scrollNumber"},{default:()=>[M]}),[[gi,C]])]}),T]))}}});Ux.install=function(e){return e.component(Ux.name,Ux),e.component(Zx.name,Zx),e};const Kx={adjustX:1,adjustY:1},Gx=[0,0],qx={topLeft:{points:["bl","tl"],overflow:Kx,offset:[0,-4],targetOffset:Gx},topCenter:{points:["bc","tc"],overflow:Kx,offset:[0,-4],targetOffset:Gx},topRight:{points:["br","tr"],overflow:Kx,offset:[0,-4],targetOffset:Gx},bottomLeft:{points:["tl","bl"],overflow:Kx,offset:[0,4],targetOffset:Gx},bottomCenter:{points:["tc","bc"],overflow:Kx,offset:[0,4],targetOffset:Gx},bottomRight:{points:["tr","br"],overflow:Kx,offset:[0,4],targetOffset:Gx}},Jx=jn({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:$p.string.def("rc-dropdown"),transitionName:String,overlayClassName:$p.string.def(""),openClassName:String,animation:$p.any,align:$p.object,overlayStyle:{type:Object,default:void 0},placement:$p.string.def("bottomLeft"),overlay:$p.any,trigger:$p.oneOfType([$p.string,$p.arrayOf($p.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:$p.array,hideAction:$p.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:$p.number.def(.15),mouseLeaveDelay:$p.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:r}=t;const i=bt(!!e.visible);bn((()=>e.visible),(e=>{void 0!==e&&(i.value=e)}));const l=bt();r({triggerRef:l});const a=t=>{void 0===e.visible&&(i.value=!1),o("overlayClick",t)},s=t=>{void 0===e.visible&&(i.value=t),o("visibleChange",t)},c=()=>{var t;const o=null===(t=n.overlay)||void 0===t?void 0:t.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:a};return br(er,{key:Gl},[e.arrow&&br("div",{class:`${e.prefixCls}-arrow`},null),Yh(o,r,!1)])},u=Lr((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),d=()=>{var t;const o=null===(t=n.default)||void 0===t?void 0:t.call(n);return i.value&&o?Yh(o[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):o},p=Lr((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:r,trigger:a,placement:h,align:f,getPopupContainer:g,transitionName:m,animation:v,overlayClassName:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},tC=Ku("Wave",(e=>[eC(e)]));function nC(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function oC(e){return Number.isNaN(e)?0:e}const rC=jn({props:{target:wa(),className:String},setup(e){const t=yt(null),[n,o]=Hv(null),[r,i]=Hv([]),[l,a]=Hv(0),[s,c]=Hv(0),[u,d]=Hv(0),[p,h]=Hv(0),[f,g]=Hv(!1);function m(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return nC(t)?t:nC(n)?n:nC(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:l,borderTopWidth:s}=n;a(r?t.offsetLeft:oC(-parseFloat(l))),c(r?t.offsetTop:oC(-parseFloat(s))),d(t.offsetWidth),h(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:p,borderBottomLeftRadius:f,borderBottomRightRadius:g}=n;i([u,p,g,f].map((e=>oC(parseFloat(e)))))}let v,b,y;const O=()=>{clearTimeout(y),ma.cancel(b),null==v||v.disconnect()},w=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(Fi(null,n),n.parentElement&&n.parentElement.removeChild(n))};Zn((()=>{O(),y=setTimeout((()=>{w()}),5e3);const{target:t}=e;t&&(b=ma((()=>{m(),g(!0)})),"undefined"!=typeof ResizeObserver&&(v=new ResizeObserver(m),v.observe(t)))})),Kn((()=>{O()}));const S=e=>{"opacity"===e.propertyName&&w()};return()=>{if(!f.value)return null;const o={left:`${l.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${p.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),br(qr,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[br("div",{ref:t,class:e.className,style:o,onTransitionend:S},null)]})}}});function iC(e,t){return function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),Fi(br(rC,{target:e,className:t},null),n)}(ea(e),t.value)}}const lC=jn({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=Mr(),{prefixCls:r}=$d("wave",e),[,i]=tC(r),l=iC(o,Lr((()=>xl(r.value,i.value))));let a;const s=()=>{ea(o).removeEventListener("click",a,!0)};return Zn((()=>{bn((()=>e.disabled),(()=>{s(),Ft((()=>{const t=ea(o);null==t||t.removeEventListener("click",a,!0),t&&1===t.nodeType&&!e.disabled&&(a=e=>{"INPUT"===e.target.tagName||!Uh(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||l()},t.addEventListener("click",a,!0))}))}),{immediate:!0,flush:"post"})})),Kn((()=>{s()})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});function aC(e){return"danger"===e?{danger:!0}:{type:e}}const sC=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:$p.any,href:String,target:String,title:String,onClick:Oa(),onMousedown:Oa()}),cC=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},uC=e=>{Ft((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},dC=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},pC=jn({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:e=>()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return br("span",{class:`${n}-loading-icon`},[br(Hb,null,null)]);const r=!!o;return br(qr,{name:`${n}-loading-icon-motion`,onBeforeEnter:cC,onEnter:uC,onAfterEnter:dC,onBeforeLeave:uC,onLeave:e=>{setTimeout((()=>{cC(e)}))},onAfterLeave:dC},{default:()=>[r?br("span",{class:`${n}-loading-icon`},[br(Hb,null,null)]):null]})}}),hC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fC=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},hC(`${t}-primary`,r),hC(`${t}-danger`,i)]}};function gC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:cl(cl({},gC(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const vC=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":cl({},Uu(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},bC=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),yC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),OC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),wC=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),SC=(e,t,n,o,r,i,l)=>({[`&${e}-background-ghost`]:cl(cl({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},bC(cl({backgroundColor:"transparent"},i),cl({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),$C=e=>({"&:disabled":cl({},wC(e))}),xC=e=>cl({},$C(e)),CC=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),kC=e=>cl(cl(cl(cl(cl({},xC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),bC({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),SC(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:cl(cl(cl({color:e.colorError,borderColor:e.colorError},bC({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),SC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),$C(e))}),PC=e=>cl(cl(cl(cl(cl({},xC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),bC({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),SC(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:cl(cl(cl({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},bC({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),SC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$C(e))}),TC=e=>cl(cl({},kC(e)),{borderStyle:"dashed"}),MC=e=>cl(cl(cl({color:e.colorLink},bC({color:e.colorLinkHover},{color:e.colorLinkActive})),CC(e)),{[`&${e.componentCls}-dangerous`]:cl(cl({color:e.colorError},bC({color:e.colorErrorHover},{color:e.colorErrorActive})),CC(e))}),IC=e=>cl(cl(cl({},bC({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),CC(e)),{[`&${e.componentCls}-dangerous`]:cl(cl({color:e.colorError},CC(e)),bC({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),EC=e=>cl(cl({},wC(e)),{[`&${e.componentCls}:hover`]:cl({},wC(e))}),AC=e=>{const{componentCls:t}=e;return{[`${t}-default`]:kC(e),[`${t}-primary`]:PC(e),[`${t}-dashed`]:TC(e),[`${t}-link`]:MC(e),[`${t}-text`]:IC(e),[`${t}-disabled`]:EC(e)}},DC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:l,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${Math.max(0,(r-i*l)/2-a)}px ${c-a}px`,borderRadius:s,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${u}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:yC(e)},{[`${n}${n}-round${t}`]:OC(e)}]},RC=e=>DC(e),zC=e=>{const t=Ju(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return DC(t,`${e.componentCls}-sm`)},BC=e=>{const t=Ju(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return DC(t,`${e.componentCls}-lg`)},jC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},NC=Ku("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Ju(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[vC(o),zC(o),RC(o),BC(o),jC(o),AC(o),fC(o),QS(e,{focus:!1}),mC(e)]})),_C=uy(),QC=jn({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=$d("btn-group",e),[,,i]=ad();_C.useProvide(rt({size:Lr((()=>e.size))}));const l=Lr((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:xp(!t,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${n}`]:n,[`${o.value}-rtl`]:"rtl"===r.value,[i.value]:!0}}));return()=>{var e;return br("div",{class:l.value},[ql(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),LC=/^[\u4e00-\u9fa5]{2}$/,HC=LC.test.bind(LC);function FC(e){return"text"===e||"link"===e}const WC=jn({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Vl(sC(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,autoInsertSpaceInButton:a,direction:s,size:c}=$d("btn",e),[u,d]=NC(l),p=_C.useInject(),h=Wa(),f=Lr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:h.value})),g=yt(null),m=yt(void 0);let v=!1;const b=yt(!1),y=yt(!1),O=Lr((()=>!1!==a.value)),{compactSize:w,compactItemClassnames:S}=Hw(l,s),$=Lr((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));bn($,(e=>{clearTimeout(m.value),"number"==typeof $.value?m.value=setTimeout((()=>{b.value=e}),$.value):b.value=e}),{immediate:!0});const x=Lr((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:i}=e,a=l.value,u=w.value||(null==p?void 0:p.size)||c.value,h=u&&{large:"lg",small:"sm",middle:void 0}[u]||"";return[S.value,{[d.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${t}`]:t,[`${a}-${h}`]:h,[`${a}-loading`]:b.value,[`${a}-background-ghost`]:o&&!FC(t),[`${a}-two-chinese-chars`]:y.value&&O.value,[`${a}-block`]:r,[`${a}-dangerous`]:!!i,[`${a}-rtl`]:"rtl"===s.value}]})),C=()=>{const e=g.value;if(!e||!1===a.value)return;const t=e.textContent;v&&HC(t)?y.value||(y.value=!0):y.value&&(y.value=!1)},k=e=>{b.value||f.value?e.preventDefault():r("click",e)},P=e=>{r("mousedown",e)};return mn((()=>{xp(!(e.ghost&&FC(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),Zn(C),Un(C),Kn((()=>{m.value&&clearTimeout(m.value)})),i({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()}}),()=>{var t,r;const{icon:i=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,a=ql(null===(r=n.default)||void 0===r?void 0:r.call(n));v=1===a.length&&!i&&!FC(e.type);const{type:s,htmlType:c,href:d,title:p,target:h}=e,m=b.value?"loading":i,y=cl(cl({},o),{title:p,disabled:f.value,class:[x.value,o.class,{[`${l.value}-icon-only`]:0===a.length&&!!m}],onClick:k,onMousedown:P});f.value||delete y.disabled;const w=i&&!b.value?i:br(pC,{existIcon:!!i,prefixCls:l.value,loading:!!b.value},null),S=a.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===tr){let t=e.children.trim();return HC(t)&&(t=t.split("").join(n)),br("span",null,[t])}return e})(e,v&&O.value)));if(void 0!==d)return u(br("a",sl(sl({},y),{},{href:d,target:h,ref:g}),[w,S]));let $=br("button",sl(sl({},y),{},{ref:g,type:c}),[w,S]);if(!FC(s)){const e=function(){return $}();$=br(lC,{ref:"wave",disabled:!!b.value},{default:()=>[e]})}return u($)}}});WC.Group=QC,WC.install=function(e){return e.component(WC.name,WC),e.component(QC.name,QC),e};const XC=()=>({arrow:Pa([Boolean,Object]),trigger:{type:[Array,String]},menu:wa(),overlay:$p.any,visible:Sa(),open:Sa(),disabled:Sa(),danger:Sa(),autofocus:Sa(),align:wa(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:wa(),forceRender:Sa(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Sa(),destroyPopupOnHide:Sa(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),YC=sC(),ZC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function VC(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},JC=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},ek=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:i,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:h,fontSizeIcon:f,controlPaddingHorizontal:g,colorBgElevated:m,boxShadowPopoverArrow:v}=e;return[{[t]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:l/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`\n &-show-arrow${t}-placement-topLeft,\n &-show-arrow${t}-placement-top,\n &-show-arrow${t}-placement-topRight\n `]:{paddingBottom:r},[`\n &-show-arrow${t}-placement-bottomLeft,\n &-show-arrow${t}-placement-bottom,\n &-show-arrow${t}-placement-bottomRight\n `]:{paddingTop:r},[`${t}-arrow`]:cl({position:"absolute",zIndex:1,display:"block"},Hu(l,e.borderRadiusXS,e.borderRadiusOuter,m,v)),[`\n &-placement-top > ${t}-arrow,\n &-placement-topLeft > ${t}-arrow,\n &-placement-topRight > ${t}-arrow\n `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`\n &-placement-bottom > ${t}-arrow,\n &-placement-bottomLeft > ${t}-arrow,\n &-placement-bottomRight > ${t}-arrow\n `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lS},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:sS},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:aS},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:cS}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:cl(cl({padding:p,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Uu(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${g}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:cl(cl({clear:"both",margin:0,padding:`${u}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Uu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down"),MS(e,"zoom-big")]]},tk=Ku("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:l,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,p=(i-l*a)/2,{dropdownArrowOffset:h}=xx({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),f=Ju(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:h,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[ek(f),qC(f),JC(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),nk=WC.Group,ok=jn({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Vl(cl(cl({},XC()),{type:YC.type,size:String,htmlType:YC.htmlType,href:String,disabled:Sa(),prefixCls:String,icon:$p.any,title:String,loading:YC.loading,onClick:Oa()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const i=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)},{prefixCls:l,direction:a,getPopupContainer:s}=$d("dropdown",e),c=Lr((()=>`${l.value}-button`)),[u,d]=tk(l);return()=>{var t,r;const l=cl(cl({},e),o),{type:p="default",disabled:h,danger:f,loading:g,htmlType:m,class:v="",overlay:b=(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),trigger:y,align:O,open:w,visible:S,onVisibleChange:$,placement:x=("rtl"===a.value?"bottomLeft":"bottomRight"),href:C,title:k,icon:P=(null===(r=n.icon)||void 0===r?void 0:r.call(n))||br(GC,null,null),mouseEnterDelay:T,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:E,destroyPopupOnHide:A,onClick:D,"onUpdate:open":R}=l,z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[n.leftButton?n.leftButton({button:j}):j,br(hk,B,{default:()=>[n.rightButton?n.rightButton({button:N}):N],overlay:()=>b})]}))}}}),rk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function ik(e){for(var t=1;tMo(ck,void 0),dk=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:l,validator:a,onClick:s,expandIcon:c}=uk()||{};To(ck,{prefixCls:Lr((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null==r?void 0:r.value})),mode:Lr((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),selectable:Lr((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==l?void 0:l.value})),validator:null!==(t=e.validator)&&void 0!==t?t:a,onClick:null!==(n=e.onClick)&&void 0!==n?n:s,expandIcon:null!==(o=e.expandIcon)&&void 0!==o?o:null==c?void 0:c.value})},pk=jn({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Vl(XC(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,rootPrefixCls:l,direction:a,getPopupContainer:s}=$d("dropdown",e),[c,u]=tk(i),d=Lr((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`}));dk({prefixCls:Lr((()=>`${i.value}-menu`)),expandIcon:Lr((()=>br("span",{class:`${i.value}-menu-submenu-arrow`},[br(sk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]))),mode:Lr((()=>"vertical")),selectable:Lr((()=>!1)),onClick:()=>{},validator:e=>{Ts()}});const p=()=>{var t,o,r;const l=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),a=Array.isArray(l)?l[0]:l;if(!a)return null;const s=a.props||{};xp(!s.mode||"vertical"===s.mode,"Dropdown",`mode="${s.mode}" is not supported for Dropdown's Menu.`);const{selectable:c=!1,expandIcon:u=(null===(r=null===(o=a.children)||void 0===o?void 0:o.expandIcon)||void 0===r?void 0:r.call(o))}=s,d=void 0!==u&&sa(u)?u:br("span",{class:`${i.value}-menu-submenu-arrow`},[br(sk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return sa(a)?Yh(a,{mode:"vertical",selectable:c,expandIcon:()=>d}):a},h=Lr((()=>{const t=e.placement;if(!t)return"rtl"===a.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return xp(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),f=Lr((()=>"boolean"==typeof e.visible?e.visible:e.open)),g=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)};return()=>{var t,r;const{arrow:l,trigger:m,disabled:v,overlayClassName:b}=e,y=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],O=Yh(y,cl({class:xl(null===(r=null==y?void 0:y.props)||void 0===r?void 0:r.class,{[`${i.value}-rtl`]:"rtl"===a.value},`${i.value}-trigger`)},v?{disabled:v}:{})),w=xl(b,u.value,{[`${i.value}-rtl`]:"rtl"===a.value}),S=v?[]:m;let $;S&&S.includes("contextmenu")&&($=!0);const x=bx({arrowPointAtCenter:"object"==typeof l&&l.pointAtCenter,autoAdjustOverflow:!0}),C=xd(cl(cl(cl({},e),o),{visible:f.value,builtinPlacements:x,overlayClassName:w,arrow:!!l,alignPoint:$,prefixCls:i.value,getPopupContainer:null==s?void 0:s.value,transitionName:d.value,trigger:S,onVisibleChange:g,placement:h.value}),["overlay","onUpdate:visible"]);return c(br(Jx,C,{default:()=>[O],overlay:p}))}}});pk.Button=ok;const hk=pk,fk=jn({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:String,href:String,separator:$p.any,dropdownProps:wa(),overlay:$p.any,onClick:Oa()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i}=$d("breadcrumb",e),l=e=>{r("click",e)};return()=>{var t;const r=null!==(t=ca(n,e,"separator"))&&void 0!==t?t:"/",a=ca(n,e),{class:s,style:c}=o,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const r=ca(n,e,"overlay");return r?br(hk,sl(sl({},e.dropdownProps),{},{overlay:r,placement:"bottom"}),{default:()=>[br("span",{class:`${o}-overlay-link`},[t,br(jb,null,null)])]}):t})(d,i.value),null!=a?br("li",{class:s,style:c},[d,r&&br("span",{class:`${i.value}-separator`},[r])]):null}}});function gk(e,t){return function(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{To(mk,e)},bk=()=>Mo(mk),yk=Symbol("ForceRenderKey"),Ok=()=>Mo(yk,!1),wk=Symbol("menuFirstLevelContextKey"),Sk=e=>{To(wk,e)},$k=jn({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=cl({},bk());return void 0!==e.mode&&(o.mode=Tt(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=Tt(e,"overflowDisabled")),vk(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),xk=vk,Ck=Symbol("siderCollapsed"),kk=Symbol("siderHookProvider"),Pk="$$__vc-menu-more__key",Tk=Symbol("KeyPathContext"),Mk=()=>Mo(Tk,{parentEventKeys:Lr((()=>[])),parentKeys:Lr((()=>[])),parentInfo:{}}),Ik=Symbol("measure"),Ek=jn({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return To(Ik,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Ak=()=>Mo(Ik,!1),Dk=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Mk(),i=Lr((()=>[...o.value,e])),l=Lr((()=>[...r.value,t]));return To(Tk,{parentEventKeys:i,parentKeys:l,parentInfo:n}),l};function Rk(e){const{mode:t,rtl:n,inlineIndent:o}=bk();return Lr((()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*o.value+"px"}:{paddingLeft:e.value*o.value+"px"}))}let zk=0;const Bk=jn({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:$p.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=Mr(),l=Ak(),a="symbol"==typeof i.vnode.key?String(i.vnode.key):i.vnode.key;xp("symbol"!=typeof i.vnode.key,"MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++zk}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=Mk(),{prefixCls:d,activeKeys:p,disabled:h,changeActiveKeys:f,rtl:g,inlineCollapsed:m,siderCollapsed:v,onItemClick:b,selectedKeys:y,registerMenuInfo:O,unRegisterMenuInfo:w}=bk(),S=Mo(wk,!0),$=yt(!1),x=Lr((()=>[...u.value,a]));O(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Kn((()=>{w(s)})),bn(p,(()=>{$.value=!!p.value.find((e=>e===a))}),{immediate:!0});const C=Lr((()=>h.value||e.disabled)),k=Lr((()=>y.value.includes(a))),P=Lr((()=>{const t=`${d.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:$.value,[`${t}-selected`]:k.value,[`${t}-disabled`]:C.value}})),T=t=>({key:a,eventKey:s,keyPath:x.value,eventKeyPath:[...c.value,s],domEvent:t,item:cl(cl({},e),r)}),M=e=>{if(C.value)return;const t=T(e);o("click",e),b(t)},I=e=>{C.value||(f(x.value),o("mouseenter",e))},E=e=>{C.value||(f([]),o("mouseleave",e))},A=e=>{if(o("keydown",e),e.which===Im.ENTER){const t=T(e);o("click",e),b(t)}},D=e=>{f(x.value),o("focus",e)},R=(e,t)=>{const n=br("span",{class:`${d.value}-title-content`},[t]);return(!e||sa(t)&&"span"===t.type)&&t&&m.value&&S&&"string"==typeof t?br("div",{class:`${d.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},z=Rk(Lr((()=>x.value.length)));return()=>{var t,o,i,s,c;if(l)return null;const u=null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n),p=ql(null===(i=n.default)||void 0===i?void 0:i.call(n)),h=p.length;let f=u;void 0===u?f=S&&h?p:"":!1===u&&(f="");const b={title:f};v.value||m.value||(b.title=null,b.open=!1);const y={};"option"===e.role&&(y["aria-selected"]=k.value);const O=null!==(s=e.icon)&&void 0!==s?s:null===(c=n.icon)||void 0===c?void 0:c.call(n,e);return br(Tx,sl(sl({},b),{},{placement:g.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[br(qm.Item,sl(sl(sl({component:"li"},r),{},{id:e.id,style:cl(cl({},r.style||{}),z.value),class:[P.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:1===(O?h+1:h)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},y),{},{onMouseenter:I,onMouseleave:E,onClick:M,onKeydown:A,onFocus:D,title:"string"==typeof u?u:void 0}),{default:()=>[Yh("function"==typeof O?O(e.originItemValue):O,{class:`${d.value}-item-icon`},!1),R(O,p)]})]})}}}),jk={adjustX:1,adjustY:1},Nk={topLeft:{points:["bl","tl"],overflow:jk,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jk,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:jk,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:jk,offset:[4,0]}},_k={topLeft:{points:["bl","tl"],overflow:jk,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jk,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:jk,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:jk,offset:[4,0]}},Qk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Lk=jn({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=yt(!1),{getPopupContainer:i,rtl:l,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:p,defaultMotions:h,rootClassName:f}=bk(),g=Ok(),m=Lr((()=>l.value?cl(cl({},_k),c.value):cl(cl({},Nk),c.value))),v=Lr((()=>Qk[e.mode])),b=yt();bn((()=>e.visible),(e=>{ma.cancel(b.value),b.value=ma((()=>{r.value=e}))}),{immediate:!0}),Kn((()=>{ma.cancel(b.value)}));const y=e=>{o("visibleChange",e)},O=Lr((()=>{var t,n;const o=p.value||(null===(t=h.value)||void 0===t?void 0:t[e.mode])||(null===(n=h.value)||void 0===n?void 0:n.other),r="function"==typeof o?o():o;return r?im(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:o,mode:c,popupOffset:p,disabled:h}=e;return br(Pm,{prefixCls:t,popupClassName:xl(`${t}-popup`,{[`${t}-rtl`]:l.value},o,f.value),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:i.value,builtinPlacements:m.value,popupPlacement:v.value,popupVisible:r.value,popupAlign:p&&{offset:p},action:h?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:y,forceRender:g||d.value,popupAnimation:O.value},{popup:n.popup,default:n.default})}}}),Hk=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:l}=bk();return br("ul",sl(sl({},o),{},{class:xl(i.value,`${i.value}-sub`,`${i.value}-${"inline"===l.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};Hk.displayName="SubMenuList";const Fk=Hk,Wk=jn({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=Lr((()=>"inline")),{motion:r,mode:i,defaultMotions:l}=bk(),a=Lr((()=>i.value===o.value)),s=bt(!a.value),c=Lr((()=>!!a.value&&e.open));bn(i,(()=>{a.value&&(s.value=!1)}),{flush:"post"});const u=Lr((()=>{var t,n;const i=r.value||(null===(t=l.value)||void 0===t?void 0:t[o.value])||(null===(n=l.value)||void 0===n?void 0:n.other);return cl(cl({},"function"==typeof i?i():i),{appear:e.keyPath.length<=1})}));return()=>{var t;return s.value?null:br($k,{mode:o.value},{default:()=>[br(qr,u.value,{default:()=>[$n(br(Fk,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[gi,c.value]])]})]})}}});let Xk=0;const Yk=jn({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:$p.any,title:$p.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,l;Sk(!1);const a=Ak(),s=Mr(),c="symbol"==typeof s.vnode.key?String(s.vnode.key):s.vnode.key;xp("symbol"!=typeof s.vnode.key,"SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=Zl(c)?c:`sub_menu_${++Xk}_$$_not_set_key`,d=null!==(i=e.eventKey)&&void 0!==i?i:Zl(c)?`sub_menu_${++Xk}_$$_${c}`:u,{parentEventKeys:p,parentInfo:h,parentKeys:f}=Mk(),g=Lr((()=>[...f.value,u])),m=yt([]),v={eventKey:d,key:u,parentEventKeys:p,childrenEventKeys:m,parentKeys:f};null===(l=h.childrenEventKeys)||void 0===l||l.value.push(d),Kn((()=>{var e;h.childrenEventKeys&&(h.childrenEventKeys.value=null===(e=h.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=d)))})),Dk(d,u,v);const{prefixCls:b,activeKeys:y,disabled:O,changeActiveKeys:w,mode:S,inlineCollapsed:$,openKeys:x,overflowDisabled:C,onOpenChange:k,registerMenuInfo:P,unRegisterMenuInfo:T,selectedSubMenuKeys:M,expandIcon:I,theme:E}=bk(),A=null!=c,D=!a&&(Ok()||!A);(e=>{To(yk,e)})(D),(a&&A||!a&&!A||D)&&(P(d,v),Kn((()=>{T(d)})));const R=Lr((()=>`${b.value}-submenu`)),z=Lr((()=>O.value||e.disabled)),B=yt(),j=yt(),N=Lr((()=>x.value.includes(u))),_=Lr((()=>!C.value&&N.value)),Q=Lr((()=>M.value.includes(u))),L=yt(!1);bn(y,(()=>{L.value=!!y.value.find((e=>e===u))}),{immediate:!0});const H=e=>{z.value||(r("titleClick",e,u),"inline"===S.value&&k(u,!N.value))},F=e=>{z.value||(w(g.value),r("mouseenter",e))},W=e=>{z.value||(w([]),r("mouseleave",e))},X=Rk(Lr((()=>g.value.length))),Y=e=>{"inline"!==S.value&&k(u,e)},Z=()=>{w(g.value)},V=d&&`${d}-popup`,U=Lr((()=>xl(b.value,`${b.value}-${e.theme||E.value}`,e.popupClassName))),K=Lr((()=>"inline"!==S.value&&g.value.length>1?"vertical":S.value)),G=Lr((()=>"horizontal"===S.value?"vertical":S.value)),q=Lr((()=>"horizontal"===K.value?"vertical":K.value)),J=()=>{var t,o;const r=R.value,i=null!==(t=e.icon)&&void 0!==t?t:null===(o=n.icon)||void 0===o?void 0:o.call(n,e),l=e.expandIcon||n.expandIcon||I.value,a=((t,n)=>{if(!n)return $.value&&!f.value.length&&t&&"string"==typeof t?br("div",{class:`${b.value}-inline-collapsed-noicon`},[t.charAt(0)]):br("span",{class:`${b.value}-title-content`},[t]);const o=sa(t)&&"span"===t.type;return br(er,null,[Yh("function"==typeof n?n(e.originItemValue):n,{class:`${b.value}-item-icon`},!1),o?t:br("span",{class:`${b.value}-title-content`},[t])])})(ca(n,e,"title"),i);return br("div",{style:X.value,class:`${r}-title`,tabindex:z.value?null:-1,ref:B,title:"string"==typeof a?a:null,"data-menu-id":u,"aria-expanded":_.value,"aria-haspopup":!0,"aria-controls":V,"aria-disabled":z.value,onClick:H,onFocus:Z},[a,"horizontal"!==S.value&&l?l(cl(cl({},e),{isOpen:_.value})):br("i",{class:`${r}-arrow`},null)])};return()=>{var t;if(a)return A?null===(t=n.default)||void 0===t?void 0:t.call(n):null;const r=R.value;let i=()=>null;if(C.value||"inline"===S.value)i=()=>br(Lk,null,{default:J});else{const t="horizontal"===S.value?[0,8]:[10,0];i=()=>br(Lk,{mode:K.value,prefixCls:r,visible:!e.internalPopupClose&&_.value,popupClassName:U.value,popupOffset:e.popupOffset||t,disabled:z.value,onVisibleChange:Y},{default:()=>[J()],popup:()=>br($k,{mode:q.value},{default:()=>[br(Fk,{id:V,ref:j},{default:n.default})]})})}return br($k,{mode:G.value},{default:()=>[br(qm.Item,sl(sl({component:"li"},o),{},{role:"none",class:xl(r,`${r}-${S.value}`,o.class,{[`${r}-open`]:_.value,[`${r}-active`]:L.value,[`${r}-selected`]:Q.value,[`${r}-disabled`]:z.value}),onMouseenter:F,onMouseleave:W,"data-submenu-id":u}),{default:()=>br(er,null,[i(),!C.value&&br(Wk,{id:V,open:_.value,keyPath:g.value},{default:n.default})])})]})}}});function Zk(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Vk(e,t){e.classList?e.classList.add(t):Zk(e,t)||(e.className=`${e.className} ${t}`)}function Uk(e,t){if(e.classList)e.classList.remove(t);else if(Zk(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Kk=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:e,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",Vk(t,e)},onEnter:e=>{Ft((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(Uk(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{Vk(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(Uk(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},Gk=jn({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:$p.any,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=bk(),i=Lr((()=>`${r.value}-item-group`)),l=Ak();return()=>{var t,r;return l?null===(t=n.default)||void 0===t?void 0:t.call(n):br("li",sl(sl({},o),{},{onClick:e=>e.stopPropagation(),class:i.value}),[br("div",{title:"string"==typeof e.title?e.title:void 0,class:`${i.value}-title`},[ca(n,e,"title")]),br("ul",{class:`${i.value}-list`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])}}}),qk=jn({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=bk(),n=Lr((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>br("li",{class:n.value},null)}});function Jk(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"==typeof e){const r=e,{label:i,children:l,key:a,type:s}=r,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[o]})}t.set(u,h),n&&n.childrenEventKeys.push(u);const o=Jk(l,t,{childrenEventKeys:p,parentKeys:[].concat(d,u)});return br(Yk,sl(sl({key:u},c),{},{title:i,originItemValue:e}),{default:()=>[o]})}return"divider"===s?br(qk,sl({key:u},c),null):(h.isLeaf=!0,t.set(u,h),br(Bk,sl(sl({key:u},c),{},{originItemValue:e}),{default:()=>[i]}))}return null})).filter((e=>e))}const eP=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:l,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tP=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},nP=e=>cl({},Vu(e)),oP=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:l,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:f,menuItemPaddingInline:g,motionDurationMid:m,colorItemTextHover:v,lineType:b,colorSplit:y,colorItemTextDisabled:O,colorDangerItemText:w,colorDangerItemTextHover:S,colorDangerItemTextSelected:$,colorDangerItemBgActive:x,colorDangerItemBgSelected:C,colorItemBgHover:k,menuSubMenuBg:P,colorItemTextSelectedHorizontal:T,colorItemBgSelectedHorizontal:M}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:cl({},nP(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:cl({},nP(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:cl(cl({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:M,"&::after":{borderBottomWidth:c,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},rP=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:l,marginXXS:a}=e;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:r+i+l}}},iP=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:f}=e,g={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":cl({[`&${t}-root`]:{boxShadow:"none"}},rP(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:cl(cl({},rP(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*l}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:cl(cl({},Wu),{paddingInline:h})}}]},lP=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},aP=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},sP=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:h,radiusSubMenuItem:f,menuArrowSize:g,menuArrowOffset:m,lineType:v,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lP(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:h,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:cl(cl(cl({borderRadius:h},lP(e)),aP(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),aP(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*g}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},cP=[],uP=jn({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:{id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:l}=$d("menu",e),a=uk(),s=Lr((()=>{var t;return l("menu",e.prefixCls||(null===(t=null==a?void 0:a.prefixCls)||void 0===t?void 0:t.value))})),[c,u]=((e,t)=>Ku("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:i,colorError:l,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:c,fontSize:u}=e,d=u/7*5,p=Ju(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),h=new mu(s).setAlpha(.65).toRgbString(),f=Ju(p,{colorItemText:h,colorItemTextHover:s,colorGroupTitle:h,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:i,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new mu(s).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:i},cl({},o));return[sP(p),eP(p),iP(p),oP(p,"light"),oP(f,"dark"),tP(p),IS(p),gS(p,"slide-up"),gS(p,"slide-down"),MS(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:i,colorTextDescription:l,colorBgContainer:a,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:h}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:i,colorItemTextHover:i,colorItemTextHoverHorizontal:t,colorGroupTitle:l,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:h,colorItemBgActive:c,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e))(s,Lr((()=>!a))),d=yt(new Map),p=Mo(Ck,bt(void 0)),h=Lr((()=>void 0!==p.value?p.value:e.inlineCollapsed)),{itemsNodes:f}=function(e){const t=yt([]),n=yt(!1),o=yt(new Map);return bn((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Jk(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}(e),g=yt(!1);Zn((()=>{g.value=!0})),mn((()=>{xp(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),xp(!(void 0!==p.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const m=bt([]),v=bt([]),b=bt({});bn(d,(()=>{const e={};for(const t of d.value.values())e[t.key]=t;b.value=e}),{flush:"post"}),mn((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?b.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?Qw([].concat(St(n.parentKeys),e.activeKey)):[],gk(m.value,t)||(m.value=t)}})),bn((()=>e.selectedKeys),(e=>{e&&(v.value=e.slice())}),{immediate:!0,deep:!0});const y=bt([]);bn([b,v],(()=>{let e=[];v.value.forEach((t=>{const n=b.value[t];n&&(e=e.concat(St(n.parentKeys)))})),e=Qw(e),gk(y.value,e)||(y.value=e)}),{immediate:!0});const O=bt([]);let w;bn((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.value;gk(O.value,e)||(O.value=e.slice())}),{immediate:!0,deep:!0});const S=Lr((()=>!!e.disabled)),$=Lr((()=>"rtl"===i.value)),x=bt("vertical"),C=yt(!1);mn((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!h.value?(x.value=e.mode,C.value=!1):(x.value="vertical",C.value=h.value),(null===(t=null==a?void 0:a.mode)||void 0===t?void 0:t.value)&&(x.value=a.mode.value)}));const k=Lr((()=>"inline"===x.value)),P=e=>{O.value=e,o("update:openKeys",e),o("openChange",e)},T=bt(O.value),M=yt(!1);bn(O,(()=>{k.value&&(T.value=O.value)}),{immediate:!0}),bn(k,(()=>{M.value?k.value?O.value=T.value:P(cP):M.value=!0}),{immediate:!0});const I=Lr((()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${x.value}`]:!0,[`${s.value}-inline-collapsed`]:C.value,[`${s.value}-rtl`]:$.value,[`${s.value}-${e.theme}`]:!0}))),E=Lr((()=>l())),A=Lr((()=>({horizontal:{name:`${E.value}-slide-up`},inline:Kk,other:{name:`${E.value}-zoom-big`}})));Sk(!0);const D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=d.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...D(St(r)))})),t},R=bt(0),z=Lr((()=>{var t;return e.expandIcon||n.expandIcon||(null===(t=null==a?void 0:a.expandIcon)||void 0===t?void 0:t.value)?t=>{let o=e.expandIcon||n.expandIcon;return o="function"==typeof o?o(t):o,Yh(o,{class:`${s.value}-submenu-expand-icon`},!1)}:null}));return xk({prefixCls:s,activeKeys:m,openKeys:O,selectedKeys:v,changeActiveKeys:t=>{clearTimeout(w),w=setTimeout((()=>{void 0===e.activeKey&&(m.value=t),o("update:activeKey",t[t.length-1])}))},disabled:S,rtl:$,mode:x,inlineIndent:Lr((()=>e.inlineIndent)),subMenuCloseDelay:Lr((()=>e.subMenuCloseDelay)),subMenuOpenDelay:Lr((()=>e.subMenuOpenDelay)),builtinPlacements:Lr((()=>e.builtinPlacements)),triggerSubMenuAction:Lr((()=>e.triggerSubMenuAction)),getPopupContainer:Lr((()=>e.getPopupContainer)),inlineCollapsed:C,theme:Lr((()=>e.theme)),siderCollapsed:p,defaultMotions:Lr((()=>g.value?A.value:null)),motion:Lr((()=>g.value?e.motion:null)),overflowDisabled:yt(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=b.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=O.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==x.value){const e=D(St(o));r=Qw(r.filter((t=>!e.includes(t))))}gk(O,r)||P(r)},onItemClick:t=>{var n;o("click",t),(t=>{if(e.selectable){const{key:n}=t,r=v.value.includes(n);let i;i=e.multiple?r?v.value.filter((e=>e!==n)):[...v.value,n]:[n];const l=cl(cl({},t),{selectedKeys:i});gk(i,v.value)||(void 0===e.selectedKeys&&(v.value=i),o("update:selectedKeys",i),r&&e.multiple?o("deselect",l):o("select",l))}"inline"!==x.value&&!e.multiple&&O.value.length&&P(cP)})(t),null===(n=null==a?void 0:a.onClick)||void 0===n||n.call(a)},registerMenuInfo:(e,t)=>{d.value.set(e,t),d.value=new Map(d.value)},unRegisterMenuInfo:e=>{d.value.delete(e),d.value=new Map(d.value)},selectedSubMenuKeys:y,expandIcon:z,forceSubMenuRender:Lr((()=>e.forceSubMenuRender)),rootClassName:u}),()=>{var t,o;const i=f.value||ql(null===(t=n.default)||void 0===t?void 0:t.call(n)),l=R.value>=i.length-1||"horizontal"!==x.value||e.disabledOverflow,a="horizontal"!==x.value||e.disabledOverflow?i:i.map(((e,t)=>br($k,{key:e.key,overflowDisabled:t>R.value},{default:()=>e}))),d=(null===(o=n.overflowedIndicator)||void 0===o?void 0:o.call(n))||br(GC,null,null);return c(br(qm,sl(sl({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Bk,class:[I.value,r.class,u.value],role:"menu",id:e.id,data:a,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?i.slice(-t):null;return br(er,null,[br(Yk,{eventKey:Pk,key:Pk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n}),br(Ek,null,{default:()=>[br(Yk,{eventKey:Pk,key:Pk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n})]})])},maxCount:"horizontal"!==x.value||e.disabledOverflow?qm.INVALIDATE:qm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{R.value=e}}),{default:()=>[br(qo,{to:"body"},{default:()=>[br("div",{style:{display:"none"},"aria-hidden":!0},[br(Ek,null,{default:()=>[a]})])]})]}))}}});uP.install=function(e){return e.component(uP.name,uP),e.component(Bk.name,Bk),e.component(Yk.name,Yk),e.component(qk.name,qk),e.component(Gk.name,Gk),e},uP.Item=Bk,uP.Divider=qk,uP.SubMenu=Yk,uP.ItemGroup=Gk;const dP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:cl(cl({},Xu(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:cl({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Uu(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},pP=Ku("Breadcrumb",(e=>{const t=Ju(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[dP(t)]}));function hP(e){const{route:t,params:n,routes:o,paths:r}=e,i=o.indexOf(t)===o.length-1,l=function(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(t,n);return i?br("span",null,[l]):br("a",{href:`#/${r.join("/")}`},[l])}const fP=jn({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:{prefixCls:String,routes:{type:Array},params:$p.any,separator:$p.any,itemRender:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("breadcrumb",e),[l,a]=pP(r),s=(e,t)=>(e=(e||"").replace(/^\//,""),Object.keys(t).forEach((n=>{e=e.replace(`:${n}`,t[n])})),e),c=(e,t,n)=>{const o=[...e],r=s(t||"",n);return r&&o.push(r),o};return()=>{var t;let u;const{routes:d,params:p={}}=e,h=ql(ca(n,e)),f=null!==(t=ca(n,e,"separator"))&&void 0!==t?t:"/",g=e.itemRender||n.itemRender||hP;d&&d.length>0?u=(e=>{let{routes:t=[],params:n={},separator:o,itemRender:r=hP}=e;const i=[];return t.map((e=>{const l=s(e.path,n);l&&i.push(l);const a=[...i];let u=null;e.children&&e.children.length&&(u=br(uP,{items:e.children.map((e=>({key:e.path||e.breadcrumbName,label:r({route:e,params:n,routes:t,paths:c(a,e.path,n)})})))},null));const d={separator:o};return u&&(d.overlay=u),br(fk,sl(sl({},d),{},{key:l||e.breadcrumbName}),{default:()=>[r({route:e,params:n,routes:t,paths:a})]})}))})({routes:d,params:p,separator:f,itemRender:g}):h.length&&(u=h.map(((e,t)=>(Ts("object"==typeof e.type&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR)),yr(e,{separator:f,key:t})))));const m={[r.value]:!0,[`${r.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[a.value]:!0};return l(br("nav",sl(sl({},o),{},{class:m}),[br("ol",null,[u])]))}}}),gP=jn({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:{prefixCls:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=$d("breadcrumb",e);return()=>{var e;const{separator:t,class:i}=o,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?a:"/"])}}});function mP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}fP.Item=fk,fP.Separator=gP,fP.install=function(e){return e.component(fP.name,fP),e.component(fk.name,fk),e.component(gP.name,gP),e},"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var vP={exports:{}};vP.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",l="hour",a="day",s="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(o,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()1)return e(l[0])}else{var a=t.name;O[a]=t,r=a}return!o&&r&&(y=r),r||!o&&y},x=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=b;C.l=$,C.i=S,C.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)25){var i=r(this).startOf(o).add(1,o).date(t),l=r(this).endOf(n);if(i.isBefore(l))return 1}var a=r(this).startOf(o).date(t).startOf(n).subtract(1,"millisecond"),s=this.diff(a,n,!0);return s<0?r(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}($P);const xP=mP($P.exports);var CP={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}(CP);const kP=mP(CP.exports);var PP={exports:{}};!function(e,t){var n,o;e.exports=(n="month",o="quarter",function(e,t){var r=t.prototype;r.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=r.add;r.add=function(e,t){return e=Number(e),this.$utils().p(t)===o?this.add(3*e,n):i.bind(this)(e,t)};var l=r.startOf;r.startOf=function(e,t){var r=this.$utils(),i=!!r.u(t)||t;if(r.p(e)===o){var a=this.quarter()-1;return i?this.month(3*a).startOf(n).startOf("day"):this.month(3*a+2).endOf(n).endOf("day")}return l.bind(this)(e,t)}})}(PP);const TP=mP(PP.exports);var MP={exports:{}};!function(e,t){e.exports=function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return o.bind(this)(i)}}}(MP);const IP=mP(MP.exports);var EP={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,o=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,o=i.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,a("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[n,a("day")],Do:[r,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],M:[o,a("month")],MM:[n,a("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=l(e)}],YYYY:[/\d{4}/,a("year")],Z:s,ZZ:s};function p(n){var o,r;o=n,r=i&&i.formats;for(var l=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=l.length,s=0;s-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),r=o.year,i=o.month,l=o.day,a=o.hours,s=o.minutes,c=o.seconds,u=o.milliseconds,d=o.zone,h=new Date,f=l||(r||i?1:h.getDate()),g=r||h.getFullYear(),m=0;r&&!i||(m=i>0?i-1:h.getMonth());var v=a||0,b=s||0,y=c||0,O=u||0;return d?new Date(Date.UTC(g,m,f,v,b,y,O+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,b,y,O)):new Date(g,m,f,v,b,y,O)}catch(w){return new Date("")}}(t,a,o),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),i={}}else if(a instanceof Array)for(var h=a.length,f=1;f<=h;f+=1){l[1]=a[f-1];var g=n.apply(this,l);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===h&&(this.$d=new Date(""))}else r.call(this,e)}}}()}(EP);const AP=mP(EP.exports);bP.extend(AP),bP.extend(IP),bP.extend(OP),bP.extend(SP),bP.extend(xP),bP.extend(kP),bP.extend(TP),bP.extend(((e,t)=>{const n=t.prototype,o=n.format;n.format=function(e){const t=(e||"").replace("Wo","wo");return o.bind(this)(t)}}));const DP={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},RP=e=>DP[e]||e.split("_")[0],zP=()=>{ks(Cs,!1,"Not match any format. Please help to fire a issue about this.")},BP=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function jP(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let i=0;it)return e;r+=n.length}}const NP=(e,t)=>{if(!e)return null;if(bP.isDayjs(e))return e;const n=t.matchAll(BP);let o=bP(e,t);if(null===n)return o;for(const r of n){const t=r[0],n=r.index;if("Q"===t){const t=e.slice(n-1,n),r=jP(e,n,t).match(/\d+/)[0];o=o.quarter(parseInt(r))}if("wo"===t.toLowerCase()){const t=e.slice(n-1,n),r=jP(e,n,t).match(/\d+/)[0];o=o.week(parseInt(r))}"ww"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length)))),"w"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length+1))))}return o},_P={getNow:()=>bP(),getFixedDate:e=>bP(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>bP().locale(RP(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(RP(e)).weekday(0),getWeek:(e,t)=>t.locale(RP(e)).week(),getShortWeekDays:e=>bP().locale(RP(e)).localeData().weekdaysMin(),getShortMonths:e=>bP().locale(RP(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(RP(e)).format(n),parse:(e,t,n)=>{const o=RP(e);for(let r=0;rArray.isArray(e)?e.map((e=>NP(e,t))):NP(e,t),toString:(e,t)=>Array.isArray(e)?e.map((e=>bP.isDayjs(e)?e.format(t):e)):bP.isDayjs(e)?e.format(t):e};function QP(e){const t=co();return cl(cl({},e),t)}const LP=Symbol("PanelContextProps"),HP=e=>{To(LP,e)},FP=()=>Mo(LP,{}),WP={visibility:"hidden"};function XP(e,t){let{slots:n}=t;var o;const r=QP(e),{prefixCls:i,prevIcon:l="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:p,onNext:h}=r,{hideNextBtn:f,hidePrevBtn:g}=FP();return br("div",{class:i},[u&&br("button",{type:"button",onClick:u,tabindex:-1,class:`${i}-super-prev-btn`,style:g.value?WP:{}},[s]),p&&br("button",{type:"button",onClick:p,tabindex:-1,class:`${i}-prev-btn`,style:g.value?WP:{}},[l]),br("div",{class:`${i}-view`},[null===(o=n.default)||void 0===o?void 0:o.call(n)]),h&&br("button",{type:"button",onClick:h,tabindex:-1,class:`${i}-next-btn`,style:f.value?WP:{}},[a]),d&&br("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:f.value?WP:{}},[c])])}function YP(e){const t=QP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:i,onNextDecades:l}=t,{hideHeader:a}=FP();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/sT)*sT,d=u+sT-1;return br(XP,sl(sl({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:l}),{default:()=>[u,Or("-"),d]})}function ZP(e,t,n,o,r){let i=e.setHour(t,n);return i=e.setMinute(i,o),i=e.setSecond(i,r),i}function VP(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function UP(e,t){const n=e.getYear(t),o=e.getMonth(t)+1,r=e.getEndDate(e.getFixedDate(`${n}-${o}-01`));return`${n}-${o<10?`0${o}`:`${o}`}-${e.getDate(r)}`}function KP(e){const{prefixCls:t,disabledDate:n,onSelect:o,picker:r,rowNum:i,colNum:l,prefixColumn:a,rowClassName:s,baseDate:c,getCellClassName:u,getCellText:d,getCellNode:p,getCellDate:h,generateConfig:f,titleCell:g,headerCells:m}=QP(e),{onDateMouseenter:v,onDateMouseleave:b,mode:y}=FP(),O=`${t}-cell`,w=[];for(let S=0;S{e.stopPropagation(),m||o(s)},onMouseenter:()=>{!m&&v&&v(s)},onMouseleave:()=>{!m&&b&&b(s)}},[p?p(s):br("div",{class:`${O}-inner`},[d(s)])]))}w.push(br("tr",{key:S,class:s&&s(t)},[e]))}return br("div",{class:`${t}-body`},[br("table",{class:`${t}-content`},[m&&br("thead",null,[br("tr",null,[m])]),br("tbody",null,[w])])])}function GP(e){const t=QP(e),n=aT-1,{prefixCls:o,viewDate:r,generateConfig:i}=t,l=`${o}-cell`,a=i.getYear(r),s=Math.floor(a/aT)*aT,c=Math.floor(a/sT)*sT,u=c+sT-1,d=i.setYear(r,c-Math.ceil((12*aT-sT)/2));return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:d,getCellText:e=>{const t=i.getYear(e);return`${t}-${t+n}`},getCellClassName:e=>{const t=i.getYear(e);return{[`${l}-in-view`]:c<=t&&t+n<=u,[`${l}-selected`]:t===s}},getCellDate:(e,t)=>i.addYear(e,t*aT)}),null)}XP.displayName="Header",XP.inheritAttrs=!1,YP.displayName="DecadeHeader",YP.inheritAttrs=!1,KP.displayName="PanelBody",KP.inheritAttrs=!1,GP.displayName="DecadeBody",GP.inheritAttrs=!1;const qP=new Map;function JP(e,t,n){if(qP.get(e)&&ma.cancel(qP.get(e)),n<=0)return void qP.set(e,ma((()=>{e.scrollTop=t})));const o=(t-e.scrollTop)/n*10;qP.set(e,ma((()=>{e.scrollTop+=o,e.scrollTop!==t&&JP(e,t,n-10)})))}function eT(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:i,onEnter:l}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Im.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Im.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Im.UP:if(r)return r(-1),!0;break;case Im.DOWN:if(r)return r(1),!0;break;case Im.PAGE_UP:if(i)return i(-1),!0;break;case Im.PAGE_DOWN:if(i)return i(1),!0;break;case Im.ENTER:if(l)return l(),!0}return!1}function tT(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function nT(e,t,n){const o="time"===e?8:10,r="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let oT=null;const rT=new Set,iT={year:e=>"month"===e||"date"===e?"year":e,month:e=>"date"===e?"month":e,quarter:e=>"month"===e||"date"===e?"quarter":e,week:e=>"date"===e?"week":e,time:null,date:null};function lT(e,t){return e.some((e=>e&&e.contains(t)))}const aT=10,sT=10*aT;function cT(e){const t=QP(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:i,operationRef:l,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;l.value={onKeydown:e=>eT(e,{onLeftRight:e=>{a(r.addYear(i,e*aT),"key")},onCtrlLeftRight:e=>{a(r.addYear(i,e*sT),"key")},onUpDown:e=>{a(r.addYear(i,e*aT*3),"key")},onEnter:()=>{s("year",i)}})};const u=e=>{const t=r.addYear(i,e*sT);o(t),s(null,t)};return br("div",{class:c},[br(YP,sl(sl({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),br(GP,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{a(e,"mouse"),s("year",e)}}),null)])}function uT(e,t){return!e&&!t||!(!e||!t)&&void 0}function dT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)}function pT(e,t){return Math.floor(e.getMonth(t)/3)+1}function hT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:dT(e,t,n)&&pT(e,t)===pT(e,n)}function fT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:dT(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function gT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function mT(e,t,n,o){const r=uT(n,o);return"boolean"==typeof r?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function vT(e,t,n){return gT(e,t,n)&&function(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function bT(e,t,n,o){return!!(t&&n&&o)&&!gT(e,t,o)&&!gT(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function yT(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*o);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function OT(e,t){let{generateConfig:n,locale:o,format:r}=t;return"function"==typeof r?r(e):n.locale.format(o.locale,e,r)}function wT(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return e&&"function"!=typeof r[0]?n.locale.parse(o.locale,e,r):null}function ST(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const i=(e,n,i)=>{let l=n;for(;l<=i;){let n;switch(e){case"date":if(n=r.setDate(t,l),!o(n))return!1;break;case"month":if(n=r.setMonth(t,l),!ST({cellDate:n,mode:"month",generateConfig:r,disabledDate:o}))return!1;break;case"year":if(n=r.setYear(t,l),!ST({cellDate:n,mode:"year",generateConfig:r,disabledDate:o}))return!1}l+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":return i("date",1,r.getDate(r.getEndDate(t)));case"quarter":{const e=3*Math.floor(r.getMonth(t)/3);return i("month",e,e+2)}case"year":return i("month",0,11);case"decade":{const e=r.getYear(t),n=Math.floor(e/aT)*aT;return i("year",n,n+aT-1)}}}function $T(e){const t=QP(e),{hideHeader:n}=FP();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:i,value:l,format:a}=t;return br(XP,{prefixCls:`${o}-header`},{default:()=>[l?OT(l,{locale:i,format:a,generateConfig:r}):" "]})}cT.displayName="DecadePanel",cT.inheritAttrs=!1,$T.displayName="TimeHeader",$T.inheritAttrs=!1;const xT=jn({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=FP(),n=bt(null),o=bt(new Map),r=bt();return bn((()=>e.value),(()=>{const r=o.value.get(e.value);r&&!1!==t.value&&JP(n.value,r.offsetTop,120)})),Kn((()=>{var e;null===(e=r.value)||void 0===e||e.call(r)})),bn(t,(()=>{var i;null===(i=r.value)||void 0===i||i.call(r),Ft((()=>{if(t.value){const t=o.value.get(e.value);t&&(r.value=function(e,t){let n;return function o(){Uh(e)?t():n=ma((()=>{o()}))}(),()=>{ma.cancel(n)}}(t,(()=>{JP(n.value,t.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),()=>{const{prefixCls:t,units:r,onSelect:i,value:l,active:a,hideDisabledOptions:s}=e,c=`${t}-cell`;return br("ul",{class:xl(`${t}-column`,{[`${t}-column-active`]:a}),ref:n,style:{position:"relative"}},[r.map((e=>s&&e.disabled?null:br("li",{key:e.value,ref:t=>{o.value.set(e.value,t)},class:xl(c,{[`${c}-disabled`]:e.disabled,[`${c}-selected`]:l===e.value}),onClick:()=>{e.disabled||i(e.value)}},[br("div",{class:`${c}-inner`},[e.label])])))])}}});function CT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);for(;o.length{!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n&&"name"!==n||n.startsWith("data-__")||(t[n]=e[n])})),t}function TT(e,t){return e?e[t]:null}function MT(e,t,n){const o=[TT(e,0),TT(e,1)];return o[n]="function"==typeof t?t(o[n]):t,o[0]||o[1]?o:null}function IT(e,t,n,o){const r=[];for(let i=e;i<=t;i+=n)r.push({label:CT(i,2),value:i,disabled:(o||[]).includes(i)});return r}const ET=jn({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=Lr((()=>e.value?e.generateConfig.getHour(e.value):-1)),n=Lr((()=>!!e.use12Hours&&t.value>=12)),o=Lr((()=>e.use12Hours?t.value%12:t.value)),r=Lr((()=>e.value?e.generateConfig.getMinute(e.value):-1)),i=Lr((()=>e.value?e.generateConfig.getSecond(e.value):-1)),l=bt(e.generateConfig.getNow()),a=bt(),s=bt(),c=bt();Vn((()=>{l.value=e.generateConfig.getNow()})),mn((()=>{if(e.disabledTime){const t=e.disabledTime(l);[a.value,s.value,c.value]=[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}));const u=(t,n,o,r)=>{let i=e.value||e.generateConfig.getNow();const l=Math.max(0,n),a=Math.max(0,o),s=Math.max(0,r);return i=ZP(e.generateConfig,i,e.use12Hours&&t?l+12:l,a,s),i},d=Lr((()=>{var t;return IT(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,a.value&&a.value())})),p=Lr((()=>{if(!e.use12Hours)return[!1,!1];const t=[!0,!0];return d.value.forEach((e=>{let{disabled:n,value:o}=e;n||(o>=12?t[1]=!1:t[0]=!1)})),t})),h=Lr((()=>e.use12Hours?d.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map((e=>{const t=e.value%12,n=0===t?"12":CT(t,2);return cl(cl({},e),{label:n,value:t})})):d.value)),f=Lr((()=>{var n;return IT(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,s.value&&s.value(t.value))})),g=Lr((()=>{var n;return IT(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,c.value&&c.value(t.value,r.value))}));return()=>{const{prefixCls:t,operationRef:l,activeColumnIndex:a,showHour:s,showMinute:c,showSecond:d,use12Hours:m,hideDisabledOptions:v,onSelect:b}=e,y=[],O=`${t}-content`,w=`${t}-time-panel`;function S(e,t,n,o,r){!1!==e&&y.push({node:Yh(t,{prefixCls:w,value:n,active:a===y.length,onSelect:r,units:o,hideDisabledOptions:v}),onSelect:r,value:n,units:o})}l.value={onUpDown:e=>{const t=y[a];if(t){const n=t.units.findIndex((e=>e.value===t.value)),o=t.units.length;for(let r=1;r{b(u(n.value,e,r.value,i.value),"mouse")})),S(c,br(xT,{key:"minute"},null),r.value,f.value,(e=>{b(u(n.value,o.value,e,i.value),"mouse")})),S(d,br(xT,{key:"second"},null),i.value,g.value,(e=>{b(u(n.value,o.value,r.value,e),"mouse")}));let $=-1;return"boolean"==typeof n.value&&($=n.value?1:0),S(!0===m,br(xT,{key:"12hours"},null),$,[{label:"AM",value:0,disabled:p.value[0]},{label:"PM",value:1,disabled:p.value[1]}],(e=>{b(u(!!e,o.value,r.value,i.value),"mouse")})),br("div",{class:O},[y.map((e=>{let{node:t}=e;return t}))])}}});function AT(e){const t=QP(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:i,operationRef:l,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:p}=t,h=`${r}-time-panel`,f=bt(),g=bt(-1),m=[a,s,c,u].filter((e=>!1!==e)).length;return l.value={onKeydown:e=>eT(e,{onLeftRight:e=>{g.value=(g.value+e+m)%m},onUpDown:e=>{-1===g.value?g.value=0:f.value&&f.value.onUpDown(e)},onEnter:()=>{d(p||n.getNow(),"key"),g.value=-1}}),onBlur:()=>{g.value=-1}},br("div",{class:xl(h,{[`${h}-active`]:i})},[br($T,sl(sl({},t),{},{format:o,prefixCls:r}),null),br(ET,sl(sl({},t),{},{prefixCls:r,activeColumnIndex:g.value,operationRef:f}),null)])}function DT(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:i,isSameCell:l,offsetCell:a,today:s,value:c}=e;return function(e){const u=a(e,-1),d=a(e,1),p=TT(o,0),h=TT(o,1),f=TT(r,0),g=TT(r,1),m=bT(n,f,g,e);function v(e){return l(p,e)}function b(e){return l(h,e)}const y=l(f,e),O=l(g,e),w=(m||O)&&(!i(u)||b(u)),S=(m||y)&&(!i(d)||v(d));return{[`${t}-in-view`]:i(e),[`${t}-in-range`]:bT(n,p,h,e),[`${t}-range-start`]:v(e),[`${t}-range-end`]:b(e),[`${t}-range-start-single`]:v(e)&&!h,[`${t}-range-end-single`]:b(e)&&!p,[`${t}-range-start-near-hover`]:v(e)&&(l(u,f)||bT(n,f,g,u)),[`${t}-range-end-near-hover`]:b(e)&&(l(d,g)||bT(n,f,g,d)),[`${t}-range-hover`]:m,[`${t}-range-hover-start`]:y,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:S,[`${t}-range-hover-edge-start-near-range`]:w&&l(u,h),[`${t}-range-hover-edge-end-near-range`]:S&&l(d,p),[`${t}-today`]:l(s,e),[`${t}-selected`]:l(c,e)}}}AT.displayName="TimePanel",AT.inheritAttrs=!1;const RT=Symbol("RangeContextProps"),zT=()=>Mo(RT,{rangedValue:bt(),hoverRangedValue:bt(),inRange:bt(),panelPosition:bt()}),BT=jn({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:bt(e.value.rangedValue),hoverRangedValue:bt(e.value.hoverRangedValue),inRange:bt(e.value.inRange),panelPosition:bt(e.value.panelPosition)};return(e=>{To(RT,e)})(o),bn((()=>e.value),(()=>{Object.keys(e.value).forEach((t=>{o[t]&&(o[t].value=e.value[t])}))})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function jT(e){const t=QP(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:i,rowCount:l,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=zT(),p=function(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r);let l=t.addDate(r,o-i);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}(i.locale,o,a),h=`${n}-cell`,f=o.locale.getWeekFirstDay(i.locale),g=o.getNow(),m=[],v=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);r&&m.push(br("th",{key:"empty","aria-label":"empty cell"},null));for(let O=0;O<7;O+=1)m.push(br("th",{key:O},[v[(O+f)%7]]));const b=DT({cellPrefixCls:h,today:g,value:s,generateConfig:o,rangedValue:r?null:u.value,hoverRangedValue:r?null:d.value,isSameCell:(e,t)=>gT(o,e,t),isInView:e=>fT(o,e,a),offsetCell:(e,t)=>o.addDate(e,t)}),y=c?e=>c({current:e,today:g}):void 0;return br(KP,sl(sl({},t),{},{rowNum:l,colNum:7,baseDate:p,getCellNode:y,getCellText:o.getDate,getCellClassName:b,getCellDate:o.addDate,titleCell:e=>OT(e,{locale:i,format:"YYYY-MM-DD",generateConfig:o}),headerCells:m}),null)}function NT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextMonth:l,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:p}=FP();if(p.value)return null;const h=`${n}-header`,f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),g=o.getMonth(i),m=br("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})]),v=br("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?OT(i,{locale:r,format:r.monthFormat,generateConfig:o}):f[g]]),b=r.monthBeforeYear?[v,m]:[m,v];return br(XP,sl(sl({},t),{},{prefixCls:h,onSuperPrev:c,onPrev:a,onNext:l,onSuperNext:s}),{default:()=>[b]})}function _T(e){const t=QP(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:i,operationRef:l,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:p}=t,h=`${n}-${o}-panel`;l.value={onKeydown:e=>eT(e,cl({onLeftRight:e=>{p(a.addDate(s||c,e),"key")},onCtrlLeftRight:e=>{p(a.addYear(s||c,e),"key")},onUpDown:e=>{p(a.addDate(s||c,7*e),"key")},onPageUpDown:e=>{p(a.addMonth(s||c,e),"key")}},r))};const f=e=>{const t=a.addYear(c,e);u(t),d(null,t)},g=e=>{const t=a.addMonth(c,e);u(t),d(null,t)};return br("div",{class:xl(h,{[`${h}-active`]:i})},[br(NT,sl(sl({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onPrevMonth:()=>{g(-1)},onNextMonth:()=>{g(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),br(jT,sl(sl({},t),{},{onSelect:e=>p(e,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:6}),null)])}jT.displayName="DateBody",jT.inheritAttrs=!1,jT.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"],NT.displayName="DateHeader",NT.inheritAttrs=!1,_T.displayName="DatePanel",_T.inheritAttrs=!1;const QT=function(){for(var e=arguments.length,t=new Array(e),n=0;n{h.value.onBlur&&h.value.onBlur(e),d.value=null};o.value={onKeydown:e=>{if(e.which===Im.TAB){const t=function(e){const t=QT.indexOf(d.value)+e;return QT[t]||null}(e.shiftKey?-1:1);return d.value=t,t&&e.preventDefault(),!0}if(d.value){const t="date"===d.value?p:h;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return!![Im.LEFT,Im.RIGHT,Im.UP,Im.DOWN].includes(e.which)&&(d.value="date",!0)},onBlur:g,onClose:g};const m=(e,t)=>{let n=e;"date"===t&&!i&&f.defaultValue?(n=r.setHour(n,r.getHour(f.defaultValue)),n=r.setMinute(n,r.getMinute(f.defaultValue)),n=r.setSecond(n,r.getSecond(f.defaultValue))):"time"===t&&!i&&l&&(n=r.setYear(n,r.getYear(l)),n=r.setMonth(n,r.getMonth(l)),n=r.setDate(n,r.getDate(l))),c&&c(n,"mouse")},v=a?a(i||null):{};return br("div",{class:xl(u,{[`${u}-active`]:d.value})},[br(_T,sl(sl({},t),{},{operationRef:p,active:"date"===d.value,onSelect:e=>{m(VP(r,e,i||"object"!=typeof s?null:s.defaultValue),"date")}}),null),br(AT,sl(sl(sl(sl({},t),{},{format:void 0},f),v),{},{disabledTime:null,defaultValue:void 0,operationRef:h,active:"time"===d.value,onSelect:e=>{m(e,"time")}}),null)])}function HT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,value:i}=t,l=`${n}-cell`,a=`${n}-week-panel-row`;return br(_T,sl(sl({},t),{},{panelName:"week",prefixColumn:e=>br("td",{key:"week",class:xl(l,`${l}-week`)},[o.locale.getWeek(r.locale,e)]),rowClassName:e=>xl(a,{[`${a}-selected`]:mT(o,r.locale,i,e)}),keyboardConfig:{onLeftRight:null}}),null)}function FT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=FP();if(c.value)return null;const u=`${n}-header`;return br(XP,sl(sl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:s,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function WT(e){const t=QP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=zT(),u=DT({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(e,t)=>fT(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,t)}),d=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),p=l.setMonth(i,0),h=a?e=>a({current:e,locale:o}):void 0;return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:p,getCellNode:h,getCellText:e=>o.monthFormat?OT(e,{locale:o,format:o.monthFormat,generateConfig:l}):d[l.getMonth(e)],getCellClassName:u,getCellDate:l.addMonth,titleCell:e=>OT(e,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}function XT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addMonth(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addMonth(l||a,3*e),"key")},onEnter:()=>{s("date",l||a)}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return br("div",{class:u},[br(FT,sl(sl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),br(WT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse"),s("date",e)}}),null)])}function YT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=FP();if(c.value)return null;const u=`${n}-header`;return br(XP,sl(sl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:s,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function ZT(e){const t=QP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=zT(),c=DT({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>hT(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,3*t)}),u=l.setDate(l.setMonth(i,0),1);return br(KP,sl(sl({},t),{},{rowNum:1,colNum:4,baseDate:u,getCellText:e=>OT(e,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(e,t)=>l.addMonth(e,3*t),titleCell:e=>OT(e,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}function VT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addMonth(l||a,3*e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addYear(l||a,e),"key")}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return br("div",{class:u},[br(YT,sl(sl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),br(ZT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse")}}),null)])}function UT(e){const t=QP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:i,onNextDecade:l,onDecadeClick:a}=t,{hideHeader:s}=FP();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/GT)*GT,p=d+GT-1;return br(XP,sl(sl({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Or("-"),p])]})}function KT(e){const t=QP(e),{prefixCls:n,value:o,viewDate:r,locale:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=zT(),c=`${n}-cell`,u=l.getYear(r),d=Math.floor(u/GT)*GT,p=d+GT-1,h=l.setYear(r,d-Math.ceil((12-GT)/2)),f=DT({cellPrefixCls:c,value:o,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>dT(l,e,t),isInView:e=>{const t=l.getYear(e);return d<=t&&t<=p},offsetCell:(e,t)=>l.addYear(e,t)});return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:h,getCellText:l.getYear,getCellClassName:f,getCellDate:l.addYear,titleCell:e=>OT(e,{locale:i,format:"YYYY",generateConfig:l})}),null)}LT.displayName="DatetimePanel",LT.inheritAttrs=!1,HT.displayName="WeekPanel",HT.inheritAttrs=!1,FT.displayName="MonthHeader",FT.inheritAttrs=!1,WT.displayName="MonthBody",WT.inheritAttrs=!1,XT.displayName="MonthPanel",XT.inheritAttrs=!1,YT.displayName="QuarterHeader",YT.inheritAttrs=!1,ZT.displayName="QuarterBody",ZT.inheritAttrs=!1,VT.displayName="QuarterPanel",VT.inheritAttrs=!1,UT.displayName="YearHeader",UT.inheritAttrs=!1,KT.displayName="YearBody",KT.inheritAttrs=!1;const GT=10;function qT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addYear(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e*GT),"key")},onUpDown:e=>{c(i.addYear(l||a,3*e),"key")},onEnter:()=>{u("date"===s?"date":"month",l||a)}})};const p=e=>{const t=i.addYear(a,10*e);r(t),u(null,t)};return br("div",{class:d},[br(UT,sl(sl({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{u("decade",a)}}),null),br(KT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{u("date"===s?"date":"month",e),c(e,"mouse")}}),null)])}function JT(e,t,n){return n?br("div",{class:`${e}-footer-extra`},[n(t)]):null}function eM(e){let t,n,{prefixCls:o,components:r={},needConfirmButton:i,onNow:l,onOk:a,okDisabled:s,showNow:c,locale:u}=e;if(i){const e=r.button||"button";l&&!1!==c&&(t=br("li",{class:`${o}-now`},[br("a",{class:`${o}-now-btn`,onClick:l},[u.now])])),n=i&&br("li",{class:`${o}-ok`},[br(e,{disabled:s,onClick:e=>{e.stopPropagation(),a&&a()}},{default:()=>[u.ok]})])}return t||n?br("ul",{class:`${o}-ranges`},[t,n]):null}qT.displayName="YearPanel",qT.inheritAttrs=!1;const tM=jn({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=Lr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),r=Lr((()=>24%e.hourStep==0)),i=Lr((()=>60%e.minuteStep==0)),l=Lr((()=>60%e.secondStep==0)),a=FP(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:p,panelPosition:h,rangedValue:f,hoverRangedValue:g}=zT(),m=bt({}),[v,b]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue,postState:t=>!t&&(null==d?void 0:d.value)&&"time"===e.picker?d.value:t}),[y,O]=Lv(null,{value:Tt(e,"pickerValue"),defaultValue:e.defaultPickerValue||v.value,postState:t=>{const{generateConfig:n,showTime:o,defaultValue:r}=e,i=n.getNow();return t?!v.value&&e.showTime?VP(n,Array.isArray(t)?t[0]:t,"object"==typeof o?o.defaultValue||i:r||i):t:i}}),w=t=>{O(t),e.onPickerValueChange&&e.onPickerValueChange(t)},S=t=>{const n=iT[e.picker];return n?n(t):t},[$,x]=Lv((()=>"time"===e.picker?"time":S("date")),{value:Tt(e,"mode")});bn((()=>e.picker),(()=>{x(e.picker)}));const C=bt($.value),k=(t,n)=>{const{onPanelChange:o,generateConfig:r}=e,i=S(t||$.value);var l;l=$.value,C.value=l,x(i),o&&($.value!==i||vT(r,y.value,y.value))&&o(n,i)},P=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{picker:r,generateConfig:i,onSelect:l,onChange:a,disabledDate:s}=e;($.value===r||o)&&(b(t),l&&l(t),c&&c(t,n),!a||vT(i,t,v.value)||(null==s?void 0:s(t))||a(t))},T=e=>!(!m.value||!m.value.onKeydown)&&([Im.LEFT,Im.RIGHT,Im.UP,Im.DOWN,Im.PAGE_UP,Im.PAGE_DOWN,Im.ENTER].includes(e.which)&&e.preventDefault(),m.value.onKeydown(e)),M=e=>{m.value&&m.value.onBlur&&m.value.onBlur(e)},I=()=>{const{generateConfig:t,hourStep:n,minuteStep:o,secondStep:a}=e,s=t.getNow(),c=function(e,t,n,o,r,i){const l=Math.floor(e/o)*o;if(l{const{prefixCls:t,direction:n}=e;return xl(`${t}-panel`,{[`${t}-panel-has-range`]:f&&f.value&&f.value[0]&&f.value[1],[`${t}-panel-has-range-hover`]:g&&g.value&&g.value[0]&&g.value[1],[`${t}-panel-rtl`]:"rtl"===n})}));return HP(cl(cl({},a),{mode:$,hideHeader:Lr((()=>{var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=a.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:Lr((()=>p.value&&"right"===h.value)),hideNextBtn:Lr((()=>p.value&&"left"===h.value))})),bn((()=>e.value),(()=>{e.value&&O(e.value)})),()=>{const{prefixCls:t="ant-picker",locale:r,generateConfig:i,disabledDate:l,picker:a="date",tabindex:c=0,showNow:d,showTime:p,showToday:f,renderExtraFooter:g,onMousedown:b,onOk:O,components:S}=e;let x;s&&"right"!==h.value&&(s.value={onKeydown:T,onClose:()=>{m.value&&m.value.onClose&&m.value.onClose()}});const A=cl(cl(cl({},n),e),{operationRef:m,prefixCls:t,viewDate:y.value,value:v.value,onViewDateChange:w,sourceMode:C.value,onPanelChange:k,disabledDate:l});switch(delete A.onChange,delete A.onSelect,$.value){case"decade":x=br(cT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"year":x=br(qT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"month":x=br(XT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"quarter":x=br(VT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"week":x=br(HT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"time":delete A.showTime,x=br(AT,sl(sl(sl({},A),"object"==typeof p?p:null),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;default:x=br(p?LT:_T,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null)}let D,R,z;if((null==u?void 0:u.value)||(D=JT(t,$.value,g),R=eM({prefixCls:t,components:S,needConfirmButton:o.value,okDisabled:!v.value||l&&l(v.value),locale:r,showNow:d,onNow:o.value&&I,onOk:()=>{v.value&&(P(v.value,"submit",!0),O&&O(v.value))}})),f&&"date"===$.value&&"date"===a&&!p){const e=i.getNow(),n=`${t}-today-btn`,o=l&&l(e);z=br("a",{class:xl(n,o&&`${n}-disabled`),"aria-disabled":o,onClick:()=>{o||P(e,"mouse",!0)}},[r.today])}return br("div",{tabindex:c,class:xl(E.value,n.class),style:n.style,onKeydown:T,onBlur:M,onMousedown:b},[x,D||R||z?br("div",{class:`${t}-footer`},[D,R,z]):null])}}}),nM=e=>br(tM,e),oM={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function rM(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:i,dropdownClassName:l,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:p}=QP(e),h=`${o}-dropdown`;return br(Pm,{showAction:[],hideAction:[],popupPlacement:void 0!==d?d:"rtl"===p?"bottomRight":"bottomLeft",builtinPlacements:oM,prefixCls:h,popupTransitionName:s,popupAlign:a,popupVisible:i,popupClassName:xl(l,{[`${h}-range`]:u,[`${h}-rtl`]:"rtl"===p}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const iM=jn({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup:e=>()=>e.presets.length?br("div",{class:`${e.prefixCls}-presets`},[br("ul",null,[e.presets.map(((t,n)=>{let{label:o,value:r}=t;return br("li",{key:n,onClick:()=>{e.onClick(r)},onMouseenter:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,r)},onMouseleave:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,null)}},[o])}))])]):null});function lM(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:i,onKeydown:l,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const p=yt(!1),h=yt(!1),f=yt(!1),g=yt(!1),m=yt(!1),v=Lr((()=>({onMousedown:()=>{p.value=!0,r(!0)},onKeydown:e=>{if(l(e,(()=>{m.value=!0})),!m.value){switch(e.which){case Im.ENTER:return t.value?!1!==s()&&(p.value=!0):r(!0),void e.preventDefault();case Im.TAB:return void(p.value&&t.value&&!e.shiftKey?(p.value=!1,e.preventDefault()):!p.value&&t.value&&!i(e)&&e.shiftKey&&(p.value=!0,e.preventDefault()));case Im.ESC:return p.value=!0,void c()}t.value||[Im.SHIFT].includes(e.which)?p.value||i(e):r(!0)}},onFocus:e=>{p.value=!0,h.value=!0,u&&u(e)},onBlur:e=>{!f.value&&o(document.activeElement)?(a.value?setTimeout((()=>{let{activeElement:e}=document;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;o(e)&&c()}),0):t.value&&(r(!1),g.value&&s()),h.value=!1,d&&d(e)):f.value=!1}})));bn(t,(()=>{g.value=!1})),bn(n,(()=>{g.value=!0}));const b=yt();return Zn((()=>{var e;b.value=(e=e=>{const n=function(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t.value){const e=o(n);e?h.value&&!e||r(!1):(f.value=!0,ma((()=>{f.value=!1})))}},!oT&&"undefined"!=typeof window&&window.addEventListener&&(oT=e=>{[...rT].forEach((t=>{t(e)}))},window.addEventListener("mousedown",oT)),rT.add(e),()=>{rT.delete(e),0===rT.size&&(window.removeEventListener("mousedown",oT),oT=null)})})),Kn((()=>{b.value&&b.value()})),[v,{focused:h,typing:p}]}function aM(e){let{valueTexts:t,onTextChange:n}=e;const o=bt("");function r(){o.value=t.value[0]}return bn((()=>[...t.value]),(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every((e=>e!==o.value))&&r()}),{immediate:!0}),[o,function(e){o.value=e,n(e)},r]}function sM(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=Tv((()=>{if(!e.value)return[[""],""];let t="";const i=[];for(let l=0;lt[0]!==e[0]||!gk(t[1],e[1])));return[Lr((()=>i.value[0])),Lr((()=>i.value[1]))]}function cM(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=bt(null);let l;function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ma.cancel(l),t?i.value=e:l=ma((()=>{i.value=e}))}const[,s]=sM(i,{formatList:n,generateConfig:o,locale:r});function c(){a(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return bn(e,(()=>{c(!0)})),Kn((()=>{ma.cancel(l)})),[s,function(e){a(e)},c]}function uM(e,t){return Lr((()=>(null==e?void 0:e.value)?e.value:(null==t?void 0:t.value)?(Ps(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map((e=>{const n=t.value[e];return{label:e,value:"function"==typeof n?n():n}}))):[]))}const dM=jn({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=bt(null),i=uM(Lr((()=>e.presets))),l=Lr((()=>{var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),a=Lr((()=>"date"===l.value&&!!e.showTime||"time"===l.value)),s=Lr((()=>kT(tT(e.format,l.value,e.showTime,e.use12Hours)))),c=bt(null),u=bt(null),d=bt(null),[p,h]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue}),f=bt(p.value),g=e=>{f.value=e},m=bt(null),[v,b]=Lv(!1,{value:Tt(e,"open"),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&m.value&&m.value.onClose&&m.value.onClose()}}),[y,O]=sM(f,{formatList:s,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")}),[w,S,$]=aM({valueTexts:y,onTextChange:t=>{const n=wT(t,{locale:e.locale,formatList:s.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||g(n)}}),x=t=>{const{onChange:n,generateConfig:o,locale:r}=e;g(t),h(t),n&&!vT(o,p.value,t)&&n(t,t?OT(t,{generateConfig:o,locale:r,format:s.value[0]}):"")},C=t=>{e.disabled&&t||b(t)},k=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),C(!0))},[P,{focused:T,typing:M}]=lM({blurToCancel:a,open:v,value:w,triggerOpen:C,forwardKeydown:e=>!!(v.value&&m.value&&m.value.onKeydown)&&m.value.onKeydown(e),isClickOutside:e=>!lT([c.value,u.value,d.value],e),onSubmit:()=>!(!f.value||e.disabledDate&&e.disabledDate(f.value)||(x(f.value),C(!1),$(),0)),onCancel:()=>{C(!1),g(p.value),$()},onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)},onFocus:t=>{var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}});bn([v,y],(()=>{v.value||(g(p.value),y.value.length&&""!==y.value[0]?O.value!==w.value&&$():S(""))})),bn(l,(()=>{v.value||$()})),bn(p,(()=>{g(p.value)}));const[I,E,A]=cM(w,{formatList:s,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")});return HP({operationRef:m,hideHeader:Lr((()=>"time"===l.value)),onSelect:(e,t)=>{("submit"===t||"key"!==t&&!a.value)&&(x(e),C(!1))},open:v,defaultOpenValue:Tt(e,"defaultOpenValue"),onDateMouseenter:E,onDateMouseleave:A}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:t="rc-picker",id:o,tabindex:l,dropdownClassName:a,dropdownAlign:h,popupStyle:m,transitionName:b,generateConfig:y,locale:O,inputReadOnly:$,allowClear:E,autofocus:D,picker:R="date",defaultOpenValue:z,suffixIcon:B,clearIcon:j,disabled:N,placeholder:_,getPopupContainer:Q,panelRender:L,onMousedown:H,onMouseenter:F,onMouseleave:W,onContextmenu:X,onClick:Y,onSelect:Z,direction:V,autocomplete:U="off"}=e,K=cl(cl(cl({},e),n),{class:xl({[`${t}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let G=br("div",{class:`${t}-panel-layout`},[br(iM,{prefixCls:t,presets:i.value,onClick:e=>{x(e),C(!1)}},null),br(nM,sl(sl({},K),{},{generateConfig:y,value:f.value,locale:O,tabindex:-1,onSelect:e=>{null==Z||Z(e),g(e)},direction:V,onPanelChange:(t,n)=>{const{onPanelChange:o}=e;A(!0),null==o||o(t,n)}}),null)]);L&&(G=L(G));const q=br("div",{class:`${t}-panel-container`,ref:c,onMousedown:e=>{e.preventDefault()}},[G]);let J,ee;B&&(J=br("span",{class:`${t}-suffix`},[B])),E&&p.value&&!N&&(ee=br("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),x(null),C(!1)},class:`${t}-clear`,role:"button"},[j||br("span",{class:`${t}-clear-btn`},null)]));const te=cl(cl(cl(cl({id:o,tabindex:l,disabled:N,readonly:$||"function"==typeof s.value[0]||!M.value,value:I.value||w.value,onInput:e=>{S(e.target.value)},autofocus:D,placeholder:_,ref:r,title:w.value},P.value),{size:nT(R,s.value[0],y)}),PT(e)),{autocomplete:U}),ne=e.inputRender?e.inputRender(te):br("input",te,null),oe="rtl"===V?"bottomRight":"bottomLeft";return br("div",{ref:d,class:xl(t,n.class,{[`${t}-disabled`]:N,[`${t}-focused`]:T.value,[`${t}-rtl`]:"rtl"===V}),style:n.style,onMousedown:H,onMouseup:k,onMouseenter:F,onMouseleave:W,onContextmenu:X,onClick:Y},[br("div",{class:xl(`${t}-input`,{[`${t}-input-placeholder`]:!!I.value}),ref:u},[ne,J,ee]),br(rM,{visible:v.value,popupStyle:m,prefixCls:t,dropdownClassName:a,dropdownAlign:h,getPopupContainer:Q,transitionName:b,popupPlacement:oe,direction:V},{default:()=>[br("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>q})])}}});function pM(e,t,n,o){const r=yT(e,n,o,1);function i(n){return n(e,t)?"same":n(r,t)?"closing":"far"}switch(n){case"year":return i(((e,t)=>function(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(o,e,t)));case"quarter":case"month":return i(((e,t)=>dT(o,e,t)));default:return i(((e,t)=>fT(o,e,t)))}}function hM(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const i=bt([TT(o,0),TT(o,1)]),l=bt(null),a=Lr((()=>TT(t.value,0))),s=Lr((()=>TT(t.value,1))),c=e=>i.value[e]?i.value[e]:TT(l.value,e)||function(e,t,n,o){const r=TT(e,0),i=TT(e,1);if(0===t)return r;if(r&&i)switch(pM(r,i,n,o)){case"same":case"closing":return r;default:return yT(i,n,o,-1)}return r}(t.value,e,n.value,r.value)||a.value||s.value||r.value.getNow(),u=bt(null),d=bt(null);return mn((()=>{u.value=c(0),d.value=c(1)})),[u,d,function(e,n){if(e){let o=MT(l.value,e,n);i.value=MT(i.value,null,n)||[null,null];const r=(n+1)%2;TT(t.value,r)||(o=MT(o,e,r)),l.value=o}else(a.value||s.value)&&(l.value=null)}]}function fM(e){return!!J()&&(ee(e),!0)}function gM(e){var t;const n="function"==typeof(o=e)?o():St(o);var o;return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function mM(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=yt(),o=()=>n.value=Boolean(e());return o(),function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mr()?Zn(e):t?e():Ft(e)}(o,t),n}var vM;const bM="undefined"!=typeof window;bM&&(null===(vM=null===window||void 0===window?void 0:window.navigator)||void 0===vM?void 0:vM.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const yM=bM?window:void 0;function OM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=yM}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro&&"ResizeObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=bn((()=>gM(e)),(e=>{a(),l.value&&o&&e&&(i=new ResizeObserver(t),i.observe(e,r))}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fM(c),{isSupported:l,stop:c}}function wM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:0,height:0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{box:o="content-box"}=n,r=yt(t.width),i=yt(t.height);return OM(e,(e=>{let[t]=e;const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;n?(r.value=n.reduce(((e,t)=>{let{inlineSize:n}=t;return e+n}),0),i.value=n.reduce(((e,t)=>{let{blockSize:n}=t;return e+n}),0)):(r.value=t.contentRect.width,i.value=t.contentRect.height)}),n),bn((()=>gM(e)),(e=>{r.value=e?t.width:0,i.value=e?t.height:0})),{width:r,height:i}}function SM(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function $M(e,t,n,o){return!!e||!(!o||!o[t])||!!n[(t+1)%2]}const xM=jn({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets"],setup(e,t){let{attrs:n,expose:o}=t;const r=Lr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),i=uM(Lr((()=>e.presets)),Lr((()=>e.ranges))),l=bt({}),a=bt(null),s=bt(null),c=bt(null),u=bt(null),d=bt(null),p=bt(null),h=bt(null),f=bt(null),g=Lr((()=>kT(tT(e.format,e.picker,e.showTime,e.use12Hours)))),[m,v]=Lv(0,{value:Tt(e,"activePickerIndex")}),b=bt(null),y=Lr((()=>{const{disabled:t}=e;return Array.isArray(t)?t:[t||!1,t||!1]})),[O,w]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue,postState:t=>"time"!==e.picker||e.order?SM(t,e.generateConfig):t}),[S,$,x]=hM({values:O,picker:Tt(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Tt(e,"generateConfig")}),[C,k]=Lv(O.value,{postState:t=>{let n=t;if(y.value[0]&&y.value[1])return n;for(let o=0;o<2;o+=1)!y.value[o]||TT(n,o)||TT(e.allowEmpty,o)||(n=MT(n,e.generateConfig.getNow(),o));return n}}),[P,T]=Lv([e.picker,e.picker],{value:Tt(e,"mode")});bn((()=>e.picker),(()=>{T([e.picker,e.picker])}));const[M,I]=function(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:i,disabled:l,generateConfig:a}=e;const s=Lr((()=>TT(r.value,0))),c=Lr((()=>TT(r.value,1)));function u(e){return a.value.locale.getWeekFirstDate(o.value.locale,e)}function d(e){return 100*a.value.getYear(e)+a.value.getMonth(e)}function p(e){return 10*a.value.getYear(e)+pT(a.value,e)}return[e=>{var o;if(i&&(null===(o=null==i?void 0:i.value)||void 0===o?void 0:o.call(i,e)))return!0;if(l[1]&&c)return!gT(a.value,e,c.value)&&a.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return p(e)>p(c.value);case"month":return d(e)>d(c.value);case"week":return u(e)>u(c.value);default:return!gT(a.value,e,c.value)&&a.value.isAfter(e,c.value)}return!1},e=>{var o;if(null===(o=i.value)||void 0===o?void 0:o.call(i,e))return!0;if(l[0]&&s)return!gT(a.value,e,c.value)&&a.value.isAfter(s.value,e);if(t.value[0]&&s.value)switch(n.value){case"quarter":return p(e)!y.value[m.value]&&e,onChange:t=>{var n;null===(n=e.onOpenChange)||void 0===n||n.call(e,t),!t&&b.value&&b.value.onClose&&b.value.onClose()}}),D=Lr((()=>E.value&&0===m.value)),R=Lr((()=>E.value&&1===m.value)),z=bt(0),B=bt(0),j=bt(0),{width:N}=wM(a);bn([E,N],(()=>{!E.value&&a.value&&(j.value=N.value)}));const{width:_}=wM(s),{width:Q}=wM(f),{width:L}=wM(c),{width:H}=wM(d);bn([m,E,_,Q,L,H,()=>e.direction],(()=>{B.value=0,E.value&&m.value?c.value&&d.value&&s.value&&(B.value=L.value+H.value,_.value&&Q.value&&B.value>_.value-Q.value-("rtl"===e.direction||f.value.offsetLeft>B.value?0:f.value.offsetLeft)&&(z.value=B.value)):0===m.value&&(z.value=0)}),{immediate:!0});const F=bt();function W(e,t){if(e)clearTimeout(F.value),l.value[t]=!0,v(t),A(e),E.value||x(null,t);else if(m.value===t){A(e);const t=l.value;F.value=setTimeout((()=>{t===l.value&&(l.value={})}))}}function X(e){W(!0,e),setTimeout((()=>{const t=[p,h][e];t.value&&t.value.focus()}),0)}function Y(t,n){let o=t,r=TT(o,0),i=TT(o,1);const{generateConfig:a,locale:s,picker:c,order:u,onCalendarChange:d,allowEmpty:p,onChange:h,showTime:f}=e;r&&i&&a.isAfter(r,i)&&("week"===c&&!mT(a,s.locale,r,i)||"quarter"===c&&!hT(a,r,i)||"week"!==c&&"quarter"!==c&&"time"!==c&&!(f?vT(a,r,i):gT(a,r,i))?(0===n?(o=[r,null],i=null):(r=null,o=[null,i]),l.value={[n]:!0}):"time"===c&&!1===u||(o=SM(o,a))),k(o);const v=o&&o[0]?OT(o[0],{generateConfig:a,locale:s,format:g.value[0]}):"",b=o&&o[1]?OT(o[1],{generateConfig:a,locale:s,format:g.value[0]}):"";d&&d(o,[v,b],{range:0===n?"start":"end"});const S=$M(r,0,y.value,p),$=$M(i,1,y.value,p);(null===o||S&&$)&&(w(o),!h||vT(a,TT(O.value,0),r)&&vT(a,TT(O.value,1),i)||h(o,[v,b]));let x=null;0!==n||y.value[1]?1!==n||y.value[0]||(x=0):x=1,null===x||x===m.value||l.value[x]&&TT(o,x)||!TT(o,n)?W(!1,n):X(x)}const Z=e=>!!(E&&b.value&&b.value.onKeydown)&&b.value.onKeydown(e),V={formatList:g,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")},[U,K]=sM(Lr((()=>TT(C.value,0))),V),[G,q]=sM(Lr((()=>TT(C.value,1))),V),J=(t,n)=>{const o=wT(t,{locale:e.locale,formatList:g.value,generateConfig:e.generateConfig});o&&!(0===n?M:I)(o)&&(k(MT(C.value,o,n)),x(o,n))},[ee,te,ne]=aM({valueTexts:U,onTextChange:e=>J(e,0)}),[oe,re,ie]=aM({valueTexts:G,onTextChange:e=>J(e,1)}),[le,ae]=Hv(null),[se,ce]=Hv(null),[ue,de,pe]=cM(ee,V),[he,fe,ge]=cM(oe,V),me=(t,n)=>({forwardKeydown:Z,onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},isClickOutside:e=>!lT([s.value,c.value,u.value,a.value],e),onFocus:n=>{var o;v(t),null===(o=e.onFocus)||void 0===o||o.call(e,n)},triggerOpen:e=>{W(e,t)},onSubmit:()=>{if(!C.value||e.disabledDate&&e.disabledDate(C.value[t]))return!1;Y(C.value,t),n()},onCancel:()=>{W(!1,t),k(O.value),n()}}),[ve,{focused:be,typing:ye}]=lM(cl(cl({},me(0,ne)),{blurToCancel:r,open:D,value:ee,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),[Oe,{focused:we,typing:Se}]=lM(cl(cl({},me(1,ie)),{blurToCancel:r,open:R,value:oe,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),$e=t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),E.value||p.value.contains(t.target)||h.value.contains(t.target)||(y.value[0]?y.value[1]||X(1):X(0))},xe=t=>{var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),!E.value||!be.value&&!we.value||p.value.contains(t.target)||h.value.contains(t.target)||t.preventDefault()},Ce=Lr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[0])?OT(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""})),ke=Lr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[1])?OT(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}));bn([E,U,G],(()=>{E.value||(k(O.value),U.value.length&&""!==U.value[0]?K.value!==ee.value&&ne():te(""),G.value.length&&""!==G.value[0]?q.value!==oe.value&&ie():re(""))})),bn([Ce,ke],(()=>{k(O.value)})),o({focus:()=>{p.value&&p.value.focus()},blur:()=>{p.value&&p.value.blur(),h.value&&h.value.blur()}});const Pe=Lr((()=>E.value&&se.value&&se.value[0]&&se.value[1]&&e.generateConfig.isAfter(se.value[1],se.value[0])?se.value:null));function Te(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{generateConfig:o,showTime:r,dateRender:i,direction:l,disabledTime:a,prefixCls:s,locale:c}=e;let u=r;if(r&&"object"==typeof r&&r.defaultValue){const e=r.defaultValue;u=cl(cl({},r),{defaultValue:TT(e,m.value)||void 0})}let d=null;return i&&(d=e=>{let{current:t,today:n}=e;return i({current:t,today:n,info:{range:m.value?"end":"start"}})}),br(BT,{value:{inRange:!0,panelPosition:t,rangedValue:le.value||C.value,hoverRangedValue:Pe.value}},{default:()=>[br(nM,sl(sl(sl({},e),n),{},{dateRender:d,showTime:u,mode:P.value[m.value],generateConfig:o,style:void 0,direction:l,disabledDate:0===m.value?M:I,disabledTime:e=>!!a&&a(e,0===m.value?"start":"end"),class:xl({[`${s}-panel-focused`]:0===m.value?!ye.value:!Se.value}),value:TT(C.value,m.value),locale:c,tabIndex:-1,onPanelChange:(n,r)=>{var i,l,a;0===m.value&&pe(!0),1===m.value&&ge(!0),i=MT(P.value,r,m.value),l=MT(C.value,n,m.value),T(i),null===(a=e.onPanelChange)||void 0===a||a.call(e,l,i);let s=n;"right"===t&&P.value[m.value]===r&&(s=yT(s,r,o,-1)),x(s,m.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===m.value?TT(C.value,1):TT(C.value,0)}),null)]})}return HP({operationRef:b,hideHeader:Lr((()=>"time"===e.picker)),onDateMouseenter:e=>{ce(MT(C.value,e,m.value)),0===m.value?de(e):fe(e)},onDateMouseleave:()=>{ce(MT(C.value,null,m.value)),0===m.value?pe():ge()},hideRanges:Lr((()=>!0)),onSelect:(e,t)=>{const n=MT(C.value,e,m.value);"submit"===t||"key"!==t&&!r.value?(Y(n,m.value),0===m.value?pe():ge()):k(n)},open:E}),()=>{const{prefixCls:t="rc-picker",id:o,popupStyle:l,dropdownClassName:v,transitionName:b,dropdownAlign:w,getPopupContainer:k,generateConfig:T,locale:M,placeholder:I,autofocus:A,picker:D="date",showTime:R,separator:N="~",disabledDate:_,panelRender:Q,allowClear:L,suffixIcon:H,clearIcon:F,inputReadOnly:X,renderExtraFooter:Z,onMouseenter:V,onMouseleave:U,onMouseup:K,onOk:G,components:q,direction:J,autocomplete:ne="off"}=e,ie="rtl"===J?{right:`${B.value}px`}:{left:`${B.value}px`},le=br("div",{class:xl(`${t}-range-wrapper`,`${t}-${D}-range-wrapper`),style:{minWidth:`${j.value}px`}},[br("div",{ref:f,class:`${t}-range-arrow`,style:ie},null),function(){let e;const n=JT(t,P.value[m.value],Z),o=eM({prefixCls:t,components:q,needConfirmButton:r.value,okDisabled:!TT(C.value,m.value)||_&&_(C.value[m.value]),locale:M,onOk:()=>{TT(C.value,m.value)&&(Y(C.value,m.value),G&&G(C.value))}});if("time"===D||R)e=Te();else{const t=0===m.value?S.value:$.value,n=yT(t,D,T),o=P.value[m.value]===D,r=Te(!!o&&"left",{pickerValue:t,onPickerValueChange:e=>{x(e,m.value)}}),i=Te("right",{pickerValue:n,onPickerValueChange:e=>{x(yT(e,D,T,-1),m.value)}});e=br(er,null,"rtl"===J?[i,o&&r]:[r,o&&i])}let l=br("div",{class:`${t}-panel-layout`},[br(iM,{prefixCls:t,presets:i.value,onClick:e=>{Y(e,null),W(!1,m.value)},onHover:e=>{ae(e)}},null),br("div",null,[br("div",{class:`${t}-panels`},[e]),(n||o)&&br("div",{class:`${t}-footer`},[n,o])])]);return Q&&(l=Q(l)),br("div",{class:`${t}-panel-container`,style:{marginLeft:`${z.value}px`},ref:s,onMousedown:e=>{e.preventDefault()}},[l])}()]);let se,ce;H&&(se=br("span",{class:`${t}-suffix`},[H])),L&&(TT(O.value,0)&&!y.value[0]||TT(O.value,1)&&!y.value[1])&&(ce=br("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=O.value;y.value[0]||(t=MT(t,null,0)),y.value[1]||(t=MT(t,null,1)),Y(t,null),W(!1,m.value)},class:`${t}-clear`},[F||br("span",{class:`${t}-clear-btn`},null)]));const de={size:nT(D,g.value[0],T)};let pe=0,fe=0;c.value&&u.value&&d.value&&(0===m.value?fe=c.value.offsetWidth:(pe=B.value,fe=u.value.offsetWidth));const ge="rtl"===J?{right:`${pe}px`}:{left:`${pe}px`};return br("div",sl({ref:a,class:xl(t,`${t}-range`,n.class,{[`${t}-disabled`]:y.value[0]&&y.value[1],[`${t}-focused`]:0===m.value?be.value:we.value,[`${t}-rtl`]:"rtl"===J}),style:n.style,onClick:$e,onMouseenter:V,onMouseleave:U,onMousedown:xe,onMouseup:K},PT(e)),[br("div",{class:xl(`${t}-input`,{[`${t}-input-active`]:0===m.value,[`${t}-input-placeholder`]:!!ue.value}),ref:c},[br("input",sl(sl(sl({id:o,disabled:y.value[0],readonly:X||"function"==typeof g.value[0]||!ye.value,value:ue.value||ee.value,onInput:e=>{te(e.target.value)},autofocus:A,placeholder:TT(I,0)||"",ref:p},ve.value),de),{},{autocomplete:ne}),null)]),br("div",{class:`${t}-range-separator`,ref:d},[N]),br("div",{class:xl(`${t}-input`,{[`${t}-input-active`]:1===m.value,[`${t}-input-placeholder`]:!!he.value}),ref:u},[br("input",sl(sl(sl({disabled:y.value[1],readonly:X||"function"==typeof g.value[0]||!Se.value,value:he.value||oe.value,onInput:e=>{re(e.target.value)},placeholder:TT(I,1)||"",ref:h},Oe.value),de),{},{autocomplete:ne}),null)]),br("div",{class:`${t}-active-bar`,style:cl(cl({},ge),{width:`${fe}px`,position:"absolute"})},null),se,ce,br(rM,{visible:E.value,popupStyle:l,prefixCls:t,dropdownClassName:v,dropdownAlign:w,getPopupContainer:k,transitionName:b,range:!0,direction:J},{default:()=>[br("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>le})])}}}),CM=xM,kM={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:$p.any,required:Boolean},PM=jn({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Vl(kM,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=bt(void 0===e.checked?e.defaultChecked:e.checked),l=bt();bn((()=>e.checked),(()=>{i.value=e.checked})),r({focus(){var e;null===(e=l.value)||void 0===e||e.focus()},blur(){var e;null===(e=l.value)||void 0===e||e.blur()}});const a=bt(),s=t=>{if(e.disabled)return;void 0===e.checked&&(i.value=t.target.checked),t.shiftKey=a.value;const n={target:cl(cl({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(l.value.checked=!!e.checked),o("change",n),a.value=!1},c=e=>{o("click",e),a.value=e.shiftKey};return()=>{const{prefixCls:t,name:o,id:r,type:a,disabled:u,readonly:d,tabindex:p,autofocus:h,value:f,required:g}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=$[t]),e)),{}),C=xl(t,v,{[`${t}-checked`]:i.value,[`${t}-disabled`]:u}),k=cl(cl({name:o,id:r,type:a,readonly:d,disabled:u,tabindex:p,class:`${t}-input`,checked:!!i.value,autofocus:h,value:f},x),{onChange:s,onClick:c,onFocus:b,onBlur:y,onKeydown:O,onKeypress:w,onKeyup:S,required:g});return br("span",{class:C},[br("input",sl({ref:l},k),null),br("span",{class:`${t}-inner`},null)])}}}),TM=Symbol("radioGroupContextKey"),MM=Symbol("radioOptionTypeContextKey"),IM=new Hc("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),EM=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:cl(cl({},Xu(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},AM=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:h,colorTextDisabled:f,paddingXS:g,radioDotDisabledColor:m,lineType:v,radioDotDisabledSize:b,wireframe:y,colorWhite:O}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:cl(cl({},Xu(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${v} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:IM,animationDuration:i,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:cl(cl({},Xu(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${w}`]:{borderColor:o},[`${t}-input:focus-visible + ${w}`]:cl({},Vu(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:y?o:O,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:o,backgroundColor:y?c:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/r})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},DM=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:l,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:p,controlHeightLG:h,controlHeightSM:f,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:O,radioButtonHoverColor:w,radioButtonActiveColor:S,radioSolidCheckedColor:$,colorTextDisabled:x,colorBgContainerDisabled:C,radioDisabledButtonCheckedColor:k,radioDisabledButtonCheckedBg:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*r+"px",background:d,border:`${r}px ${i} ${l}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${l}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:h,fontSize:p,lineHeight:h-2*r+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:f,paddingInline:g-r,paddingBlock:0,lineHeight:f-2*r+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":cl({},Vu(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:O,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:$,background:y,borderColor:y,"&:hover":{color:$,background:w,borderColor:w},"&:active":{color:$,background:S,borderColor:S}},"&-disabled":{color:x,backgroundColor:C,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:C,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:P,borderColor:l,boxShadow:"none"}}}},RM=Ku("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:l,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:p,controlOutlineWidth:h,colorTextLightSolid:f,wireframe:g}=e,m=`0 0 0 ${h}px ${a}`,v=l-8,b=Ju(e,{radioFocusShadow:m,radioButtonFocusShadow:m,radioSize:l,radioDotSize:g?v:l-2*(4+n),radioDotDisabledSize:v,radioCheckedColor:d,radioDotDisabledColor:r,radioSolidCheckedColor:f,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:u,radioButtonHoverColor:s,radioButtonActiveColor:c,radioButtonPaddingHorizontal:t-n,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[EM(b),AM(b),DM(b)]})),zM=()=>({prefixCls:String,checked:Sa(),disabled:Sa(),isGroup:Sa(),value:$p.any,name:String,id:String,autofocus:Sa(),onChange:$a(),onFocus:$a(),onBlur:$a(),onClick:$a(),"onUpdate:checked":$a(),"onUpdate:value":$a()}),BM=jn({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:zM(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:i}=t;const l=gy(),a=vy.useInject(),s=Mo(MM,void 0),c=Mo(TM,void 0),u=Wa(),d=Lr((()=>{var e;return null!==(e=g.value)&&void 0!==e?e:u.value})),p=bt(),{prefixCls:h,direction:f,disabled:g}=$d("radio",e),m=Lr((()=>"button"===(null==c?void 0:c.optionType.value)||"button"===s?`${h.value}-button`:h.value)),v=Wa(),[b,y]=RM(h);o({focus:()=>{p.value.focus()},blur:()=>{p.value.blur()}});const O=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),l.onFieldChange()},w=e=>{n("change",e),c&&c.onChange&&c.onChange(e)};return()=>{var t;const n=c,{prefixCls:o,id:s=l.id.value}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.value),(e=>{d.value=e,p.value=!1})),(e=>{To(TM,e)})({onChange:t=>{const n=d.value,{value:r}=t.target;"value"in e||(d.value=r),p.value||r===n||(p.value=!0,o("update:value",r),o("change",t),i.onFieldChange()),Ft((()=>{p.value=!1}))},value:d,disabled:Lr((()=>e.disabled)),name:Lr((()=>e.name)),optionType:Lr((()=>e.optionType))}),()=>{var t;const{options:o,buttonStyle:p,id:h=i.id.value}=e,f=`${l.value}-group`,g=xl(f,`${f}-${p}`,{[`${f}-${s.value}`]:s.value,[`${f}-rtl`]:"rtl"===a.value},r.class,u.value);let m=null;return m=o&&o.length>0?o.map((t=>{if("string"==typeof t||"number"==typeof t)return br(BM,{key:t,prefixCls:l.value,disabled:e.disabled,value:t,checked:d.value===t},{default:()=>[t]});const{value:n,disabled:o,label:r}=t;return br(BM,{key:`radio-group-value-options-${n}`,prefixCls:l.value,disabled:o||e.disabled,value:n,checked:d.value===n},{default:()=>[r]})})):null===(t=n.default)||void 0===t?void 0:t.call(n),c(br("div",sl(sl({},r),{},{class:g,id:h}),[m]))}}}),NM=jn({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:zM(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=$d("radio",e);return(e=>{To(MM,e)})("button"),()=>{var t;return br(BM,sl(sl(sl({},o),e),{},{prefixCls:r.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function _M(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:i,value:l,onChange:a,divRef:s}=e,c=o.getYear(l||o.getNow());let u=c-10,d=u+20;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const p=r&&"年"===r.year?"年":"",h=[];for(let f=u;f{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),l=o.getMonth(t);i===o.getYear(r)&&l>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&ls.value},null)}function QM(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:i,locale:l,onChange:a,divRef:s}=e,c=i.getMonth(r||i.getNow());let u=0,d=11;if(o){const[e,t]=o,n=i.getYear(r);i.getYear(t)===n&&(d=i.getMonth(t)),i.getYear(e)===n&&(u=i.getMonth(e))}const p=l.shortMonths||i.locale.getShortMonths(l.locale),h=[];for(let f=u;f<=d;f+=1)h.push({label:p[f],value:f});return br(qS,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:h,onChange:e=>{a(i.setMonth(r,e))},getPopupContainer:()=>s.value},null)}function LM(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:i}=e;return br(jM,{onChange:e=>{let{target:{value:t}}=e;i(t)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[br(NM,{value:"month"},{default:()=>[n.month]}),br(NM,{value:"year"},{default:()=>[n.year]})]})}BM.Group=jM,BM.Button=NM,BM.install=function(e){return e.component(BM.name,BM),e.component(BM.Group.name,BM.Group),e.component(BM.Button.name,BM.Button),e},_M.inheritAttrs=!1,QM.inheritAttrs=!1,LM.inheritAttrs=!1;const HM=jn({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=bt(null),r=vy.useInject();return vy.useProvide(r,{isFormItemInput:!1}),()=>{const t=cl(cl({},e),n),{prefixCls:r,fullscreen:i,mode:l,onChange:a,onModeChange:s}=t,c=cl(cl({},t),{fullscreen:i,divRef:o});return br("div",{class:`${r}-header`,ref:o},[br(_M,sl(sl({},c),{},{onChange:e=>{a(e,"year")}}),null),"month"===l&&br(QM,sl(sl({},c),{},{onChange:e=>{a(e,"month")}}),null),br(LM,sl(sl({},c),{},{onModeChange:s}),null)])}}}),FM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),WM=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),XM=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),YM=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":cl({},WM(Ju(e,{inputBorderHoverColor:e.colorBorder})))}),ZM=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},VM=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),UM=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:l,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":cl({},XM(Ju(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":cl({},XM(Ju(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},KM=e=>cl(cl({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},FM(e.colorTextPlaceholder)),{"&:hover":cl({},WM(e)),"&:focus, &-focused":cl({},XM(e)),"&-disabled, &[disabled]":cl({},YM(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":cl({},ZM(e)),"&-sm":cl({},VM(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),GM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:cl({},ZM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:cl({},VM(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:cl(cl({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},qM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:cl(cl(cl(cl({},Xu(e)),KM(e)),UM(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},JM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},eI=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:l,iconCls:a}=e;return{[`${t}-affix-wrapper`]:cl(cl(cl(cl(cl({},KM(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:cl(cl({},WM(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),JM(e)),{[`${a}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}}),UM(e,`${t}-affix-wrapper`))}},tI=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${t}-group`]:cl(cl(cl({},Xu(e)),GM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},nI=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function oI(e){return Ju(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const rI=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},iI=Ku("Input",(e=>{const t=oI(e);return[qM(t),rI(t),eI(t),tI(t),nI(t),QS(t)]})),lI=(e,t,n,o)=>{const{lineHeight:r}=e,i=Math.floor(n*r)+2,l=Math.max((t-i)/2,0);return{padding:`${l}px ${o}px ${Math.max(t-i-l,0)}px`}},aI=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:i,borderRadiusSM:l,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:p,colorTextLightSolid:h,controlHeightSM:f,pickerDateHoverRangeBorderColor:g,pickerCellBorderGap:m,pickerBasicCellHoverWithRangeColor:v,pickerPanelCellWidth:b,colorTextDisabled:y,colorBgContainerDisabled:O}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:l,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view),\n &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:l,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:p}},[`&-in-view${n}-selected ${o},\n &-in-view${n}-range-start ${o},\n &-in-view${n}-range-end ${o}`]:{color:h,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),\n &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:p}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-start${n}-range-start-single,\n &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,\n &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,\n &-in-view${n}-range-hover-end${n}-range-end-single,\n &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:f,borderTop:`${c}px dashed ${g}`,borderBottom:`${c}px dashed ${g}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${n}-in-range${n}-range-hover::before,\n &-in-view${n}-range-start${n}-range-hover::before,\n &-in-view${n}-range-end${n}-range-hover::before,\n &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,\n &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-start::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:v},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after,\n tr > &-in-view${n}-range-hover-end:first-child::after,\n &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,\n &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,\n &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(b-r)/2,borderInlineStart:`${c}px dashed ${g}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after,\n tr > &-in-view${n}-range-hover-start:last-child::after,\n &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,\n &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,\n &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(b-r)/2,borderInlineEnd:`${c}px dashed ${g}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:y,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:O}},[`&-disabled${n}-today ${o}::before`]:{borderColor:y}}},sI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:i,paddingSM:l,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:p,colorPrimary:h,colorTextHeading:f,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:v,pickerTextHeight:b,motionDurationMid:y,colorIconHover:O,fontWeightStrong:w,pickerPanelCellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:x,colorText:C,fontSize:k,pickerBasicCellHoverWithRangeColor:P,motionDurationSlow:T,pickerPanelWithoutTimeCellHeight:M,pickerQuarterPanelContentHeight:I,colorLink:E,colorLinkActive:A,colorLinkHover:D,pickerDateHoverRangeBorderColor:R,borderRadiusSM:z,colorTextLightSolid:B,borderRadius:j,controlItemBgHover:N,pickerTimePanelColumnHeight:_,pickerTimePanelColumnWidth:Q,pickerTimePanelCellHeight:L,controlItemBgActive:H,marginXXS:F}=e,W=7*i+2*l+4,X=(W-2*a)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${g}`,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${a}px`,color:f,borderBottom:`${u}px ${d} ${g}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:`${b}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:k,"&:hover":{color:O}},"&-view":{flex:"auto",fontWeight:w,lineHeight:`${b}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:S+2*$,color:C,verticalAlign:"middle"}},"&-cell":cl({padding:`${$}px 0`,color:x,cursor:"pointer","&-in-view":{color:C}},aI(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n},\n &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:P,transition:`all ${T}`,content:'""'}},[`&-date-panel\n ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start\n ${n}::after`]:{insetInlineEnd:-(i-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:4*M},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${g}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:b-2*u+"px",textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:b-2*u+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${g}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:E,"&:hover":{color:D},"&:active":{color:A},[`&${t}-today-btn-disabled`]:{color:x,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:X,borderInlineStart:`${u}px dashed ${R}`,borderStartStartRadius:z,borderBottomStartRadius:z,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:X,borderInlineEnd:`${u}px dashed ${R}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:z,borderBottomEndRadius:z}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:X,borderInlineEnd:`${u}px dashed ${R}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:X,borderInlineStart:`${u}px dashed ${R}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n},\n &-selected ${n},\n ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:z,borderEndStartRadius:z},"&:last-child":{borderStartEndRadius:z,borderEndEndRadius:z}},"&:hover td":{background:N},"&-selected td,\n &-selected:hover td":{background:h,[`&${t}-cell-week`]:{color:new mu(B).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:B},[n]:{color:B}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-content`]:{width:7*i,th:{width:i}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${T}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:_},"&-column":{flex:"1 0 auto",width:Q,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:_-L,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${g}`},"&-active":{background:new mu(H).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:Q-2*F,height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Q-L)/2,color:C,lineHeight:`${L}px`,borderRadius:z,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:x,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:_-L+2*s}}}},cI=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:i,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":cl({},XM(Ju(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":cl({},XM(Ju(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${t}-active-bar`]:{background:i}}}}},uI=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:i,inputPaddingHorizontal:l,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:p,colorBgContainerDisabled:h,colorTextDisabled:f,colorTextPlaceholder:g,controlHeightLG:m,fontSizeLG:v,controlHeightSM:b,inputPaddingHorizontalSM:y,paddingXS:O,marginXS:w,colorTextDescription:S,lineWidthBold:$,lineHeight:x,colorPrimary:C,motionDurationSlow:k,zIndexPopup:P,paddingXXS:T,paddingSM:M,pickerTextHeight:I,controlItemBgActive:E,colorPrimaryBorder:A,sizePopupArrow:D,borderRadiusXS:R,borderRadiusOuter:z,colorBgElevated:B,borderRadiusLG:j,boxShadowSecondary:N,borderRadiusSM:_,colorSplit:Q,controlItemBgHover:L,presetsWidth:H,presetsMaxWidth:F}=e;return[{[t]:cl(cl(cl({},Xu(e)),lI(e,r,i,l)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${p}, box-shadow ${p}`,"&:hover, &-focused":cl({},WM(e)),"&-focused":cl({},XM(e)),[`&${t}-disabled`]:{background:h,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:f}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":cl(cl({},KM(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:g}}},"&-large":cl(cl({},lI(e,m,v,l)),{[`${t}-input > input`]:{fontSize:v}}),"&-small":cl({},lI(e,b,i,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:O/2,color:f,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${p}, color ${p}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:f,fontSize:v,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:$,marginInlineStart:l,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${O}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":cl(cl(cl({},Xu(e)),sI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:sS},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:lS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:cS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:aS},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-ranges`]:{marginBottom:0,padding:`${T}px ${M}px`,overflow:"hidden",lineHeight:I-2*s-O/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:C,background:E,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:cl({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*l,transition:`left ${k} ease-out`},Hu(D,R,z,B,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:B,borderRadius:j,boxShadow:N,transition:`margin ${k}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:O,borderInlineEnd:`${s}px ${c} ${Q}`,li:cl(cl({},Wu),{borderRadius:_,paddingInline:O,paddingBlock:(b-Math.round(i*x))/2,cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:w},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:2*D/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]},dI=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,colorPrimary:r,paddingXXS:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:1.5*o,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new mu(r).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new mu(r).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:1.65*n,pickerYearMonthCellWidth:1.5*n,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:1.4*n,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:1.4*n,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},pI=Ku("DatePicker",(e=>{const t=Ju(oI(e),dI(e));return[uI(t),cI(t),QS(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),hI=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:i}=e;return{[t]:cl(cl(cl({},sI(e)),Xu(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},fI=Ku("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=Ju(oI(e),dI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:.75*e.controlHeightSM,dateContentHeight:3*(e.fontSizeSM*e.lineHeightSM+e.marginXS)+2*e.lineWidth});return[hI(n)]}),{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256}),gI=ya(function(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,o){return t(n,o)&&e.getMonth(n)===e.getMonth(o)}function o(t,o){return n(t,o)&&e.getDate(t)===e.getDate(o)}const r=jn({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(r,i){let{emit:l,slots:a,attrs:s}=i;const c=r,{prefixCls:u,direction:d}=$d("picker",c),[p,h]=fI(u),f=Lr((()=>`${u.value}-calendar`)),g=t=>c.valueFormat?e.toString(t,c.valueFormat):t,m=Lr((()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value)),v=Lr((()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue)),[b,y]=Lv((()=>m.value||e.getNow()),{defaultValue:v.value,value:m}),[O,w]=Lv("month",{value:Tt(c,"mode")}),S=Lr((()=>"year"===O.value?"month":"date")),$=Lr((()=>t=>{var n;return!!c.validRange&&(e.isAfter(c.validRange[0],t)||e.isAfter(t,c.validRange[1]))||!!(null===(n=c.disabledDate)||void 0===n?void 0:n.call(c,t))})),x=(e,t)=>{l("panelChange",g(e),t)},C=e=>{w(e),x(b.value,e)},k=(e,r)=>{(e=>{if(y(e),!o(e,b.value)){("date"===S.value&&!n(e,b.value)||"month"===S.value&&!t(e,b.value))&&x(e,O.value);const o=g(e);l("update:value",o),l("change",o)}})(e),l("select",g(e),{source:r})},P=Lr((()=>{const{locale:e}=c,t=cl(cl({},Va),e);return t.lang=cl(cl({},t.lang),(e||{}).lang),t})),[T]=qa("Calendar",P);return()=>{const t=e.getNow(),{dateFullCellRender:r=(null==a?void 0:a.dateFullCellRender),dateCellRender:i=(null==a?void 0:a.dateCellRender),monthFullCellRender:l=(null==a?void 0:a.monthFullCellRender),monthCellRender:g=(null==a?void 0:a.monthCellRender),headerRender:m=(null==a?void 0:a.headerRender),fullscreen:v=!0,validRange:y}=c;return p(br("div",sl(sl({},s),{},{class:xl(f.value,{[`${f.value}-full`]:v,[`${f.value}-mini`]:!v,[`${f.value}-rtl`]:"rtl"===d.value},s.class,h.value)}),[m?m({value:b.value,type:O.value,onChange:e=>{k(e,"customize")},onTypeChange:C}):br(HM,{prefixCls:f.value,value:b.value,generateConfig:e,mode:O.value,fullscreen:v,locale:T.value.lang,validRange:y,onChange:k,onModeChange:C},null),br(nM,{value:b.value,prefixCls:u.value,locale:T.value.lang,generateConfig:e,dateRender:n=>{let{current:l}=n;return r?r({current:l}):br("div",{class:xl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:o(t,l)})},[br("div",{class:`${f.value}-date-value`},[String(e.getDate(l)).padStart(2,"0")]),br("div",{class:`${f.value}-date-content`},[i&&i({current:l})])])},monthCellRender:o=>((o,r)=>{let{current:i}=o;if(l)return l({current:i});const a=r.shortMonths||e.locale.getShortMonths(r.locale);return br("div",{class:xl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:n(t,i)})},[br("div",{class:`${f.value}-date-value`},[a[e.getMonth(i)]]),br("div",{class:`${f.value}-date-content`},[g&&g({current:i})])])})(o,T.value.lang),onSelect:e=>{k(e,S.value)},mode:S.value,picker:S.value,disabledDate:$.value,hideHeader:!0},null)]))}}});return r.install=function(e){return e.component(r.name,r),e},r}(_P));function mI(e){const t=yt([]),n=yt("function"==typeof e?e():e),o=function(e){const t=yt(),n=yt(!1);return Kn((()=>{n.value=!0,ma.cancel(t.value)})),function(){for(var o=arguments.length,r=new Array(o),i=0;i{e(...r)})))}}((()=>{let e=n.value;t.value.forEach((t=>{e=t(e)})),t.value=[],n.value=e}));return[n,function(e){t.value.push(e),o()}]}const vI=jn({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=bt();function i(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}n({domRef:r});const l=Lr((()=>{var t;return e.editable&&!1!==e.closable&&!(null===(t=e.tab)||void 0===t?void 0:t.disabled)}));return()=>{var t;const{prefixCls:n,id:a,active:s,tab:{key:c,tab:u,disabled:d,closeIcon:p},renderWrapper:h,removeAriaLabel:f,editable:g,onFocus:m}=e,v=`${n}-tab`,b=br("div",{key:c,ref:r,class:xl(v,{[`${v}-with-remove`]:l.value,[`${v}-active`]:s,[`${v}-disabled`]:d}),style:o.style,onClick:i},[br("div",{role:"tab","aria-selected":s,id:a&&`${a}-tab-${c}`,class:`${v}-btn`,"aria-controls":a&&`${a}-panel-${c}`,"aria-disabled":d,tabindex:d?null:0,onClick:e=>{e.stopPropagation(),i(e)},onKeydown:e=>{[Im.SPACE,Im.ENTER].includes(e.which)&&(e.preventDefault(),i(e))},onFocus:m},["function"==typeof u?u():u]),l.value&&br("button",{type:"button","aria-label":f||"remove",tabindex:0,class:`${v}-remove`,onClick:t=>{t.stopPropagation(),function(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}(t)}},[(null==p?void 0:p())||(null===(t=g.removeIcon)||void 0===t?void 0:t.call(g))||"×"])]);return h?h(b):b}}}),bI={width:0,height:0,left:0,top:0},yI=jn({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:o}=t;const r=bt();return n({domRef:r}),()=>{const{prefixCls:t,editable:n,locale:i}=e;return n&&!1!==n.showAdd?br("button",{ref:r,type:"button",class:`${t}-nav-add`,style:o.style,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),OI=jn({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:{prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:$p.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:$a()},emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,i]=Hv(!1),[l,a]=Hv(null),s=t=>{const n=e.tabs.filter((e=>!e.disabled));let o=n.findIndex((e=>e.key===l.value))||0;const r=n.length;for(let e=0;e{const{which:n}=t;if(r.value)switch(n){case Im.UP:s(-1),t.preventDefault();break;case Im.DOWN:s(1),t.preventDefault();break;case Im.ESC:i(!1);break;case Im.SPACE:case Im.ENTER:null!==l.value&&e.onTabClick(l.value,t)}else[Im.DOWN,Im.SPACE,Im.ENTER].includes(n)&&(i(!0),t.preventDefault())},u=Lr((()=>`${e.id}-more-popup`)),d=Lr((()=>null!==l.value?`${u.value}-${l.value}`:null));return Zn((()=>{bn(l,(()=>{const e=document.getElementById(d.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),bn(r,(()=>{r.value||a(null)})),dk({}),()=>{var t;const{prefixCls:a,id:s,tabs:p,locale:h,mobile:f,moreIcon:g=(null===(t=o.moreIcon)||void 0===t?void 0:t.call(o))||br(GC,null,null),moreTransitionName:m,editable:v,tabBarGutter:b,rtl:y,onTabClick:O,popupClassName:w}=e;if(!p.length)return null;const S=`${a}-dropdown`,$=null==h?void 0:h.dropdownAriaLabel,x={[y?"marginRight":"marginLeft"]:b};p.length||(x.visibility="hidden",x.order=1);const C=xl({[`${S}-rtl`]:y,[`${w}`]:!0}),k=f?null:br(Jx,{prefixCls:S,trigger:["hover"],visible:r.value,transitionName:m,onVisibleChange:i,overlayClassName:C,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>br(uP,{onClick:e=>{let{key:t,domEvent:n}=e;O(t,n),i(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":void 0!==$?$:"expanded dropdown"},{default:()=>[p.map((t=>{var n,o;const r=v&&!1!==t.closable&&!t.disabled;return br(Bk,{key:t.key,id:`${u.value}-${t.key}`,role:"option","aria-controls":s&&`${s}-panel-${t.key}`,disabled:t.disabled},{default:()=>[br("span",null,["function"==typeof t.tab?t.tab():t.tab]),r&&br("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${S}-menu-item-remove`,onClick:n=>{var o,r;n.stopPropagation(),o=n,r=t.key,o.preventDefault(),o.stopPropagation(),e.editable.onEdit("remove",{key:r,event:o})}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(o=v.removeIcon)||void 0===o?void 0:o.call(v))||"×"])]})}))]}),default:()=>br("button",{type:"button",class:`${a}-nav-more`,style:x,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${s}-more`,"aria-expanded":r.value,onKeydown:c},[g])});return br("div",{class:xl(`${a}-nav-operations`,n.class),style:n.style},[k,br(yI,{prefixCls:a,locale:h,editable:v},null)])}}}),wI=Symbol("tabsContextKey"),SI=()=>Mo(wI,{tabs:bt([]),prefixCls:bt()}),$I=Math.pow(.995,20);function xI(e,t){const n=bt(e);return[n,function(e){const o="function"==typeof e?e(n.value):e;o!==n.value&&t(o,n.value),n.value=o}]}const CI=()=>{const e=bt(new Map);return Vn((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]},kI={width:0,height:0,left:0,top:0,right:0},PI=jn({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:wa(),editable:wa(),moreIcon:$p.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:wa(),popupClassName:String,getPopupContainer:$a(),onTabClick:{type:Function},onTabScroll:{type:Function}},slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:i}=SI(),l=yt(),a=yt(),s=yt(),c=yt(),[u,d]=CI(),p=Lr((()=>"top"===e.tabPosition||"bottom"===e.tabPosition)),[h,f]=xI(0,((t,n)=>{p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),[g,m]=xI(0,((t,n)=>{!p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),[v,b]=Hv(0),[y,O]=Hv(0),[w,S]=Hv(null),[$,x]=Hv(null),[C,k]=Hv(0),[P,T]=Hv(0),[M,I]=mI(new Map),E=function(e,t){const n=bt(new Map);return mn((()=>{var o,r;const i=new Map,l=e.value,a=t.value.get(null===(o=l[0])||void 0===o?void 0:o.key)||bI,s=a.left+a.width;for(let e=0;e`${i.value}-nav-operations-hidden`)),D=yt(0),R=yt(0);mn((()=>{p.value?e.rtl?(D.value=0,R.value=Math.max(0,v.value-w.value)):(D.value=Math.min(0,w.value-v.value),R.value=0):(D.value=Math.min(0,$.value-y.value),R.value=0)}));const z=e=>eR.value?R.value:e,B=yt(),[j,N]=Hv(),_=()=>{N(Date.now())},Q=()=>{clearTimeout(B.value)},L=(e,t)=>{e((e=>z(e+t)))};!function(e,t){const[n,o]=Hv(),[r,i]=Hv(0),[l,a]=Hv(0),[s,c]=Hv(),u=bt(),d=bt(),p=bt({onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),clearInterval(u.value)},onTouchMove:function(e){if(!n.value)return;e.preventDefault();const{screenX:l,screenY:s}=e.touches[0],u=l-n.value.x,d=s-n.value.y;t(u,d),o({x:l,y:s});const p=Date.now();a(p-r.value),i(p),c({x:u,y:d})},onTouchEnd:function(){if(!n.value)return;const e=s.value;if(o(null),c(null),e){const n=e.x/l.value,o=e.y/l.value,r=Math.abs(n),i=Math.abs(o);if(Math.max(r,i)<.1)return;let a=n,s=o;u.value=setInterval((()=>{Math.abs(a)<.01&&Math.abs(s)<.01?clearInterval(u.value):(a*=$I,s*=$I,t(20*a,20*s))}),20)}},onWheel:function(e){const{deltaX:n,deltaY:o}=e;let r=0;const i=Math.abs(n),l=Math.abs(o);i===l?r="x"===d.value?n:o:i>l?(r=n,d.value="x"):(r=o,d.value="y"),t(-r,-r)&&e.preventDefault()}});function h(e){p.value.onTouchStart(e)}function f(e){p.value.onTouchMove(e)}function g(e){p.value.onTouchEnd(e)}function m(e){p.value.onWheel(e)}Zn((()=>{var t,n;document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",g,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",h,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",m,{passive:!1})})),Kn((()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",g)}))}(l,((e,t)=>{if(p.value){if(w.value>=v.value)return!1;L(f,e)}else{if($.value>=y.value)return!1;L(m,t)}return Q(),_(),!0})),bn(j,(()=>{Q(),j.value&&(B.value=setTimeout((()=>{N(0)}),100))}));const H=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=E.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(p.value){let t=h.value;e.rtl?n.righth.value+w.value&&(t=n.right+n.width-w.value):n.left<-h.value?t=-n.left:n.left+n.width>-h.value+w.value&&(t=-(n.left+n.width-w.value)),m(0),f(z(t))}else{let e=g.value;n.top<-g.value?e=-n.top:n.top+n.height>-g.value+$.value&&(e=-(n.top+n.height-$.value)),f(0),m(z(e))}},F=yt(0),W=yt(0);mn((()=>{let t,n,o,i,l,a;const s=E.value;["top","bottom"].includes(e.tabPosition)?(t="width",i=w.value,l=v.value,a=C.value,n=e.rtl?"right":"left",o=Math.abs(h.value)):(t="height",i=$.value,l=v.value,a=P.value,n="top",o=-g.value);let c=i;l+a>i&&lo+c){p=e-1;break}}let f=0;for(let e=d-1;e>=0;e-=1)if((s.get(u[e].key)||kI)[n]{var e,t,n,o,i;const s=(null===(e=l.value)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=l.value)||void 0===t?void 0:t.offsetHeight)||0,p=(null===(n=c.value)||void 0===n?void 0:n.$el)||{},h=p.offsetWidth||0,f=p.offsetHeight||0;S(s),x(u),k(h),T(f);const g=((null===(o=a.value)||void 0===o?void 0:o.offsetWidth)||0)-h,m=((null===(i=a.value)||void 0===i?void 0:i.offsetHeight)||0)-f;b(g),O(m),I((()=>{const e=new Map;return r.value.forEach((t=>{let{key:n}=t;const o=d.value.get(n),r=(null==o?void 0:o.$el)||o;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))},Y=Lr((()=>[...r.value.slice(0,F.value),...r.value.slice(W.value+1)])),[Z,V]=Hv(),U=Lr((()=>E.value.get(e.activeKey))),K=yt(),G=()=>{ma.cancel(K.value)};bn([U,p,()=>e.rtl],(()=>{const t={};U.value&&(p.value?(e.rtl?t.right=Sl(U.value.right):t.left=Sl(U.value.left),t.width=Sl(U.value.width)):(t.top=Sl(U.value.top),t.height=Sl(U.value.height))),G(),K.value=ma((()=>{V(t)}))})),bn([()=>e.activeKey,U,E,p],(()=>{H()}),{flush:"post"}),bn([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],(()=>{X()}),{flush:"post"});const q=e=>{let{position:t,prefixCls:n,extra:o}=e;if(!o)return null;const r=null==o?void 0:o({position:t});return r?br("div",{class:`${n}-extra-content`},[r]):null};return Kn((()=>{Q(),G()})),()=>{const{id:t,animated:d,activeKey:f,rtl:m,editable:b,locale:O,tabPosition:S,tabBarGutter:x,onTabClick:C}=e,{class:k,style:P}=n,T=i.value,M=!!Y.value.length,I=`${T}-nav-wrap`;let E,D,R,z;p.value?m?(D=h.value>0,E=h.value+w.value{const{key:r}=e;return br(vI,{id:t,prefixCls:T,key:r,tab:e,style:0===n?void 0:B,closable:e.closable,editable:b,active:r===f,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:u(r),onClick:e=>{C(r,e)},onFocus:()=>{H(r),_(),l.value&&(m||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)}));return br("div",{role:"tablist",class:xl(`${T}-nav`,k),style:P,onKeydown:()=>{_()}},[br(q,{position:"left",prefixCls:T,extra:o.leftExtra},null),br(ua,{onResize:X},{default:()=>[br("div",{class:xl(I,{[`${I}-ping-left`]:E,[`${I}-ping-right`]:D,[`${I}-ping-top`]:R,[`${I}-ping-bottom`]:z}),ref:l},[br(ua,{onResize:X},{default:()=>[br("div",{ref:a,class:`${T}-nav-list`,style:{transform:`translate(${h.value}px, ${g.value}px)`,transition:j.value?"none":void 0}},[N,br(yI,{ref:c,prefixCls:T,locale:O,editable:b,style:cl(cl({},0===N.length?void 0:B),{visibility:M?"hidden":null})},null),br("div",{class:xl(`${T}-ink-bar`,{[`${T}-ink-bar-animated`]:d.inkBar}),style:Z.value},null)])]})])]}),br(OI,sl(sl({},e),{},{removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:s,prefixCls:T,tabs:Y.value,class:!M&&A.value}),Nw(o,["moreIcon"])),br(q,{position:"right",prefixCls:T,extra:o.rightExtra},null),br(q,{position:"right",prefixCls:T,extra:o.tabBarExtraContent},null)])}}}),TI=jn({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=SI();return()=>{const{id:o,activeKey:r,animated:i,tabPosition:l,rtl:a,destroyInactiveTabPane:s}=e,c=i.tabPane,u=n.value,d=t.value.findIndex((e=>e.key===r));return br("div",{class:`${u}-content-holder`},[br("div",{class:[`${u}-content`,`${u}-content-${l}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map((e=>Yh(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:o,animated:c,active:e.key===r,destroyInactiveTabPane:s})))])])}}}),MI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function II(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[gS(e,"slide-up"),gS(e,"slide-down")]]},zI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},BI=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":cl(cl({},Wu),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},jI=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},NI=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},_I=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:i}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":cl({"&:focus:not(:focus-visible), &:active":{color:n}},Uu(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},QI=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},LI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:i,tabsActiveColor:l,colorSplit:a}=e;return{[t]:cl(cl(cl(cl({},Xu(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:cl({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},Uu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),_I(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},HI=Ku("Tabs",(e=>{const t=e.controlHeightLG,n=Ju(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[NI(n),QI(n),jI(n),BI(n),zI(n),LI(n),RI(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let FI=0;const WI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:$a(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:ka(),animated:Pa([Boolean,Object]),renderTabBar:$a(),tabBarGutter:{type:Number},tabBarStyle:wa(),tabPosition:ka(),destroyInactiveTabPane:Sa(),hideAdd:Boolean,type:ka(),size:ka(),centered:Boolean,onEdit:$a(),onChange:$a(),onTabClick:$a(),onTabScroll:$a(),"onUpdate:activeKey":$a(),locale:wa(),onPrevClick:$a(),onNextClick:$a(),tabBarExtraContent:$p.any}),XI=jn({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:cl(cl({},Vl(WI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ca()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;xp(!(void 0!==e.onPrevClick||void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),xp(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),xp(!(void 0!==o.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:i,size:l,rootPrefixCls:a,getPopupContainer:s}=$d("tabs",e),[c,u]=HI(r),d=Lr((()=>"rtl"===i.value)),p=Lr((()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:cl({inkBar:!0,tabPane:!1},"object"==typeof t?t:{})})),[h,f]=Hv(!1);Zn((()=>{f(pv())}));const[g,m]=Lv((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:Lr((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[v,b]=Hv((()=>e.tabs.findIndex((e=>e.key===g.value))));mn((()=>{var t;let n=e.tabs.findIndex((e=>e.key===g.value));-1===n&&(n=Math.max(0,Math.min(v.value,e.tabs.length-1)),m(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),b(n)}));const[y,O]=Lv(null,{value:Lr((()=>e.id))}),w=Lr((()=>h.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));Zn((()=>{e.id||(O(`rc-tabs-${FI}`),FI+=1)}));const S=(t,n)=>{var o,r;null===(o=e.onTabClick)||void 0===o||o.call(e,t,n);const i=t!==g.value;m(t),i&&(null===(r=e.onChange)||void 0===r||r.call(e,t))};return(e=>{To(wI,e)})({tabs:Lr((()=>e.tabs)),prefixCls:r}),()=>{const{id:t,type:i,tabBarGutter:f,tabBarStyle:m,locale:v,destroyInactiveTabPane:b,renderTabBar:O=o.renderTabBar,onTabScroll:$,hideAdd:x,centered:C}=e,k={id:y.value,activeKey:g.value,animated:p.value,tabPosition:w.value,rtl:d.value,mobile:h.value};let P,T;"editable-card"===i&&(P={onEdit:(t,n)=>{let{key:o,event:r}=n;var i;null===(i=e.onEdit)||void 0===i||i.call(e,"add"===t?r:o,t)},removeIcon:()=>br(qb,null,null),addIcon:o.addIcon?o.addIcon:()=>br(DI,null,null),showAdd:!0!==x});const M=cl(cl({},k),{moreTransitionName:`${a.value}-slide-up`,editable:P,locale:v,tabBarGutter:f,onTabClick:S,onTabScroll:$,style:m,getPopupContainer:s.value,popupClassName:xl(e.popupClassName,u.value)});T=O?O(cl(cl({},M),{DefaultTabBar:PI})):br(PI,M,Nw(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const I=r.value;return c(br("div",sl(sl({},n),{},{id:t,class:xl(I,`${I}-${w.value}`,{[u.value]:!0,[`${I}-${l.value}`]:l.value,[`${I}-card`]:["card","editable-card"].includes(i),[`${I}-editable-card`]:"editable-card"===i,[`${I}-centered`]:C,[`${I}-mobile`]:h.value,[`${I}-editable`]:"editable-card"===i,[`${I}-rtl`]:d.value},n.class)}),[T,br(TI,sl(sl({destroyInactiveTabPane:b},k),{},{animated:p.value}),null)]))}}}),YI=jn({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Vl(WI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=e=>{r("update:activeKey",e),r("change",e)};return()=>{var t;const r=ql(null===(t=o.default)||void 0===t?void 0:t.call(o)).map((e=>{if(sa(e)){const t=cl({},e.props||{});for(const[e,d]of Object.entries(t))delete t[e],t[ml(e)]=d;const n=e.children||{},o=void 0!==e.key?e.key:void 0,{tab:r=n.tab,disabled:i,forceRender:l,closable:a,animated:s,active:c,destroyInactiveTabPane:u}=t;return cl(cl({key:o},t),{node:e,closeIcon:n.closeIcon,tab:r,disabled:""===i||i,forceRender:""===l||l,closable:""===a||a,animated:""===s||s,active:""===c||c,destroyInactiveTabPane:""===u||u})}return null})).filter((e=>e));return br(XI,sl(sl(sl({},xd(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:r}),o)}}}),ZI=jn({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:$p.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=bt(e.forceRender);bn([()=>e.active,()=>e.destroyInactiveTabPane],(()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)}),{immediate:!0});const i=Lr((()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var t;const{prefixCls:l,forceRender:a,id:s,active:c,tabKey:u}=e;return br("div",{id:s&&`${s}-panel-${u}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":s&&`${s}-tab-${u}`,"aria-hidden":!c,style:[i.value,n.style],class:[`${l}-tabpane`,c&&`${l}-tabpane-active`,n.class]},[(c||r.value||a)&&(null===(t=o.default)||void 0===t?void 0:t.call(o))])}}});YI.TabPane=ZI,YI.install=function(e){return e.component(YI.name,YI),e.component(ZI.name,ZI),e};const VI=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:i}=e;return cl(cl({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":cl(cl({display:"inline-block",flex:1},Wu),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},UI=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${r}px 0 0 0 ${n},\n 0 ${r}px 0 0 ${n},\n ${r}px ${r}px 0 0 ${n},\n ${r}px 0 0 0 ${n} inset,\n 0 ${r}px 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},KI=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i}=e;return cl(cl({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:r*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},GI=e=>cl(cl({margin:`-${e.marginXXS}px 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":cl({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Wu),"&-description":{color:e.colorTextDescription}}),qI=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},JI=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eE=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:i,cardPaddingBase:l}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:VI(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:cl({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:UI(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:KI(e),[`${t}-meta`]:GI(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:qI(e),[`${t}-loading`]:JI(e),[`${t}-rtl`]:{direction:"rtl"}}},tE=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},nE=Ku("Card",(e=>{const t=Ju(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,cardHeadHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[eE(t),tE(t)]})),oE=jn({compatConfig:{MODE:3},name:"SkeletonTitle",props:{prefixCls:String,width:{type:[Number,String]}},setup:e=>()=>{const{prefixCls:t,width:n}=e;return br("h3",{class:t,style:{width:"number"==typeof n?`${n}px`:n}},null)}}),rE=jn({compatConfig:{MODE:3},name:"SkeletonParagraph",props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup:e=>()=>{const{prefixCls:t,rows:n}=e,o=[...Array(n)].map(((t,n)=>{const o=(t=>{const{width:n,rows:o=2}=e;return Array.isArray(n)?n[t]:o-1===t?n:void 0})(n);return br("li",{key:n,style:{width:"number"==typeof o?`${o}px`:o}},null)}));return br("ul",{class:t},[o])}}),iE=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),lE=e=>{const{prefixCls:t,size:n,shape:o}=e,r=xl({[`${t}-lg`]:"large"===n,[`${t}-sm`]:"small"===n}),i=xl({[`${t}-circle`]:"circle"===o,[`${t}-square`]:"square"===o,[`${t}-round`]:"round"===o}),l="number"==typeof n?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return br("span",{class:xl(t,r,i),style:l},null)};lE.displayName="SkeletonElement";const aE=lE,sE=new Hc("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),cE=e=>({height:e,lineHeight:`${e}px`}),uE=e=>cl({width:e},cE(e)),dE=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:sE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),pE=e=>cl({width:5*e,minWidth:5*e},cE(e)),hE=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[`${t}`]:cl({display:"inline-block",verticalAlign:"top",background:n},uE(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:cl({},uE(r)),[`${t}${t}-sm`]:cl({},uE(i))}},fE=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return{[`${o}`]:cl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},pE(t)),[`${o}-lg`]:cl({},pE(r)),[`${o}-sm`]:cl({},pE(i))}},gE=e=>cl({width:e},cE(e)),mE=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:cl(cl({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},gE(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:cl(cl({},gE(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},vE=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},bE=e=>cl({width:2*e,minWidth:2*e},cE(e)),yE=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return cl(cl(cl(cl(cl({[`${n}`]:cl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:2*o,minWidth:2*o},bE(o))},vE(e,o,n)),{[`${n}-lg`]:cl({},bE(r))}),vE(e,r,`${n}-lg`)),{[`${n}-sm`]:cl({},bE(i))}),vE(e,i,`${n}-sm`))},OE=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:l,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:p,marginSM:h,borderRadius:f,skeletonTitleHeight:g,skeletonBlockRadius:m,skeletonParagraphLineHeight:v,controlHeightXS:b,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:cl({display:"inline-block",verticalAlign:"top",background:d},uE(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:cl({},uE(c)),[`${n}-sm`]:cl({},uE(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:h,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:cl(cl(cl(cl({display:"inline-block",width:"auto"},yE(e)),hE(e)),fE(e)),mE(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${l},\n ${a}\n `]:cl({},dE(e))}}},wE=Ku("Skeleton",(e=>{const{componentCls:t}=e,n=Ju(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[OE(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}));function SE(e){return e&&"object"==typeof e?e:{}}const $E=jn({compatConfig:{MODE:3},name:"ASkeleton",props:Vl({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}},{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=$d("skeleton",e),[i,l]=wE(o);return()=>{var t;const{loading:a,avatar:s,title:c,paragraph:u,active:d,round:p}=e,h=o.value;if(a||void 0===e.loading){const e=!!s||""===s,t=!!c||""===c,n=!!u||""===u;let o,a;if(e){const e=cl(cl({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),SE(s));o=br("div",{class:`${h}-header`},[br(aE,e,null)])}if(t||n){let o,r;if(t){const t=cl(cl({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),SE(c));o=br(oE,t,null)}if(n){const n=cl(cl({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),SE(u));r=br(rE,n,null)}a=br("div",{class:`${h}-content`},[o,r])}const f=xl(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:d,[`${h}-rtl`]:"rtl"===r.value,[`${h}-round`]:p,[l.value]:!0});return i(br("div",{class:f},[o,a]))}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),xE=jn({compatConfig:{MODE:3},name:"ASkeletonButton",props:Vl(cl(cl({},iE()),{size:String,block:Boolean}),{size:"default"}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),CE=jn({compatConfig:{MODE:3},name:"ASkeletonInput",props:cl(cl({},xd(iE(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),kE=jn({compatConfig:{MODE:3},name:"ASkeletonImage",props:xd(iE(),["size","shape","active"]),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,o.value)));return()=>n(br("div",{class:r.value},[br("div",{class:`${t.value}-image`},[br("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[br("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",class:`${t.value}-image-path`},null)])])]))}}),PE=jn({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Vl(cl(cl({},iE()),{shape:String}),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});$E.Button=xE,$E.Avatar=PE,$E.Input=CE,$E.Image=kE,$E.Title=oE,$E.install=function(e){return e.component($E.name,$E),e.component($E.Button.name,xE),e.component($E.Avatar.name,PE),e.component($E.Input.name,CE),e.component($E.Image.name,kE),e.component($E.Title.name,oE),e};const{TabPane:TE}=YI,ME=jn({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:{prefixCls:String,title:$p.any,extra:$p.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:$p.any,tabList:{type:Array},tabBarExtraContent:$p.any,activeTabKey:String,defaultActiveTabKey:String,cover:$p.any,onTabChange:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,size:l}=$d("card",e),[a,s]=nE(r),c=e=>e.map(((t,n)=>pr(t)&&!ia(t)||!pr(t)?br("li",{style:{width:100/e.length+"%"},key:`action-${n}`},[br("span",null,[t])]):null)),u=t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},d=function(){let e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{t&&EO(t.type)&&t.type.__ANT_CARD_GRID&&(e=!0)})),e};return()=>{var t,p,h,f,g,m;const{headStyle:v={},bodyStyle:b={},loading:y,bordered:O=!0,type:w,tabList:S,hoverable:$,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k=aa(null===(t=n.tabBarExtraContent)||void 0===t?void 0:t.call(n)),title:P=aa(null===(p=n.title)||void 0===p?void 0:p.call(n)),extra:T=aa(null===(h=n.extra)||void 0===h?void 0:h.call(n)),actions:M=aa(null===(f=n.actions)||void 0===f?void 0:f.call(n)),cover:I=aa(null===(g=n.cover)||void 0===g?void 0:g.call(n))}=e,E=ql(null===(m=n.default)||void 0===m?void 0:m.call(n)),A=r.value,D={[`${A}`]:!0,[s.value]:!0,[`${A}-loading`]:y,[`${A}-bordered`]:O,[`${A}-hoverable`]:!!$,[`${A}-contain-grid`]:d(E),[`${A}-contain-tabs`]:S&&S.length,[`${A}-${l.value}`]:l.value,[`${A}-type-${w}`]:!!w,[`${A}-rtl`]:"rtl"===i.value},R=br($E,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[E]}),z=void 0!==x,B={size:"large",[z?"activeKey":"defaultActiveKey"]:z?x:C,onChange:u,class:`${A}-head-tabs`};let j;const N=S&&S.length?br(YI,B,{default:()=>[S.map((e=>{const{tab:t,slots:o}=e,r=null==o?void 0:o.tab;xp(!o,"Card","tabList slots is deprecated, Please use `customTab` instead.");let i=void 0!==t?t:n[r]?n[r](e):null;return i=oo(n,"customTab",e,(()=>[i])),br(TE,{tab:i,key:e.key,disabled:e.disabled},null)}))],rightExtra:k?()=>k:null}):null;(P||T||N)&&(j=br("div",{class:`${A}-head`,style:v},[br("div",{class:`${A}-head-wrapper`},[P&&br("div",{class:`${A}-head-title`},[P]),T&&br("div",{class:`${A}-extra`},[T])]),N]));const _=I?br("div",{class:`${A}-cover`},[I]):null,Q=br("div",{class:`${A}-body`,style:b},[y?R:E]),L=M&&M.length?br("ul",{class:`${A}-actions`},[c(M)]):null;return a(br("div",sl(sl({ref:"cardContainerRef"},o),{},{class:[D,o.class]}),[j,_,E&&E.length?Q:null,L]))}}}),IE=ME,EE=jn({compatConfig:{MODE:3},name:"ACardMeta",props:{prefixCls:String,title:{validator:()=>!0},description:{validator:()=>!0},avatar:{validator:()=>!0}},slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("card",e);return()=>{const t={[`${o.value}-meta`]:!0},r=ca(n,e,"avatar"),i=ca(n,e,"title"),l=ca(n,e,"description"),a=r?br("div",{class:`${o.value}-meta-avatar`},[r]):null,s=i?br("div",{class:`${o.value}-meta-title`},[i]):null,c=l?br("div",{class:`${o.value}-meta-description`},[l]):null,u=s||c?br("div",{class:`${o.value}-meta-detail`},[s,c]):null;return br("div",{class:t},[a,u])}}}),AE=jn({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("card",e),r=Lr((()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable})));return()=>{var e;return br("div",{class:r.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});IE.Meta=EE,IE.Grid=AE,IE.install=function(e){return e.component(IE.name,IE),e.component(EE.name,EE),e.component(AE.name,AE),e};const DE=()=>({openAnimation:$p.object,prefixCls:String,header:$p.any,headerClass:String,showArrow:Sa(),isActive:Sa(),destroyInactivePanel:Sa(),disabled:Sa(),accordion:Sa(),forceRender:Sa(),expandIcon:$a(),extra:$p.any,panelKey:Pa(),collapsible:ka(),role:String,onItemClick:$a()}),RE=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:i,collapseHeaderPadding:l,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:p,colorTextDisabled:h,fontSize:f,lineHeight:g,marginSM:m,paddingSM:v,motionDurationSlow:b,fontSizeIcon:y}=e,O=`${s}px ${c} ${u}`;return{[t]:cl(cl({},Xu(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:p,lineHeight:g,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:y,svg:{transition:`transform ${b}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:v}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},zE=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},BE=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},jE=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},NE=Ku("Collapse",(e=>{const t=Ju(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[RE(t),BE(t),jE(t),zE(t),IS(t)]}));function _E(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map((e=>String(e)))}const QE=jn({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Vl({prefixCls:String,activeKey:Pa([Array,Number,String]),defaultActiveKey:Pa([Array,Number,String]),accordion:Sa(),destroyInactivePanel:Sa(),bordered:Sa(),expandIcon:$a(),openAnimation:$p.object,expandIconPosition:ka(),collapsible:ka(),ghost:Sa(),onChange:$a(),"onUpdate:activeKey":$a()},{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Kk("ant-motion-collapse",!1),expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=bt(_E(yx([e.activeKey,e.defaultActiveKey])));bn((()=>e.activeKey),(()=>{i.value=_E(e.activeKey)}),{deep:!0});const{prefixCls:l,direction:a}=$d("collapse",e),[s,c]=NE(l),u=Lr((()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===a.value?"end":"start"})),d=t=>{const{expandIcon:n=o.expandIcon}=e,r=n?n(t):br(sk,{rotate:t.isActive?90:void 0},null);return br("div",{class:[`${l.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(e.collapsible)&&p(t.panelKey)},[sa(Array.isArray(n)?r[0]:r)?Yh(r,{class:`${l.value}-arrow`},!1):r])},p=t=>{let n=i.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];const e=n.indexOf(t);e>-1?n.splice(e,1):n.push(t)}(t=>{void 0===e.activeKey&&(i.value=t);const n=e.accordion?t[0]:t;r("update:activeKey",n),r("change",n)})(n)},h=(t,n)=>{var o,r,a;if(ia(t))return;const s=i.value,{accordion:c,destroyInactivePanel:u,collapsible:h,openAnimation:f}=e,g=String(null!==(o=t.key)&&void 0!==o?o:n),{header:m=(null===(a=null===(r=t.children)||void 0===r?void 0:r.header)||void 0===a?void 0:a.call(r)),headerClass:v,collapsible:b,disabled:y}=t.props||{};let O=!1;O=c?s[0]===g:s.indexOf(g)>-1;let w=null!=b?b:h;return(y||""===y)&&(w="disabled"),Yh(t,{key:g,panelKey:g,header:m,headerClass:v,isActive:O,prefixCls:l.value,destroyInactivePanel:u,openAnimation:f,accordion:c,onItemClick:"disabled"===w?null:p,expandIcon:d,collapsible:w})};return()=>{const{accordion:t,bordered:r,ghost:i}=e,d=xl(l.value,{[`${l.value}-borderless`]:!r,[`${l.value}-icon-position-${u.value}`]:!0,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-ghost`]:!!i,[n.class]:!!n.class},c.value);return s(br("div",sl(sl({class:d},function(e){return Object.keys(e).reduce(((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t)),{})}(n)),{},{style:n.style,role:t?"tablist":null}),[ql(null===(p=o.default)||void 0===p?void 0:p.call(o)).map(h)]));var p}}}),LE=jn({compatConfig:{MODE:3},name:"PanelContent",props:DE(),setup(e,t){let{slots:n}=t;const o=yt(!1);return mn((()=>{(e.isActive||e.forceRender)&&(o.value=!0)})),()=>{var t;if(!o.value)return null;const{prefixCls:r,isActive:i,role:l}=e;return br("div",{class:xl(`${r}-content`,{[`${r}-content-active`]:i,[`${r}-content-inactive`]:!i}),role:l},[br("div",{class:`${r}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),HE=jn({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Vl(DE(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;xp(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=$d("collapse",e),l=()=>{o("itemClick",e.panelKey)},a=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||l()};return()=>{var t,o;const{header:s=(null===(t=n.header)||void 0===t?void 0:t.call(n)),headerClass:c,isActive:u,showArrow:d,destroyInactivePanel:p,accordion:h,forceRender:f,openAnimation:g,expandIcon:m=n.expandIcon,extra:v=(null===(o=n.extra)||void 0===o?void 0:o.call(n)),collapsible:b}=e,y="disabled"===b,O=i.value,w=xl(`${O}-header`,{[c]:c,[`${O}-header-collapsible-only`]:"header"===b,[`${O}-icon-collapsible-only`]:"icon"===b}),S=xl({[`${O}-item`]:!0,[`${O}-item-active`]:u,[`${O}-item-disabled`]:y,[`${O}-no-arrow`]:!d,[`${r.class}`]:!!r.class});let $=br("i",{class:"arrow"},null);d&&"function"==typeof m&&($=m(e));const x=$n(br(LE,{prefixCls:O,isActive:u,forceRender:f,role:h?"tabpanel":null},{default:n.default}),[[gi,u]]),C=cl({appear:!1,css:!1},g);return br("div",sl(sl({},r),{},{class:S}),[br("div",{class:w,onClick:()=>!["header","icon"].includes(b)&&l(),role:h?"tab":"button",tabindex:y?-1:0,"aria-expanded":u,onKeypress:a},[d&&$,br("span",{onClick:()=>"header"===b&&l(),class:`${O}-header-text`},[s]),v&&br("div",{class:`${O}-extra`},[v])]),br(qr,C,{default:()=>[!p||u?x:null]})])}}});QE.Panel=HE,QE.install=function(e){return e.component(QE.name,QE),e.component(HE.name,HE),e};const FE=function(e){let t="";const n=Object.keys(e);return n.forEach((function(o,r){let i=e[o];(function(e){return/[height|width]$/.test(e)})(o=o.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase())&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},UE=e=>{const t=[],n=KE(e),o=GE(e);for(let r=n;re.currentSlide-qE(e),GE=e=>e.currentSlide+JE(e),qE=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,JE=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,eA=e=>e&&e.offsetWidth||0,tA=e=>e&&e.offsetHeight||0,nA=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.startX-e.curX,r=e.startY-e.curY,i=Math.atan2(r,o);return t=Math.round(180*i/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315?"left":t>=135&&t<=225?"right":!0===n?t>=35&&t<=135?"up":"down":"vertical"},oA=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},rA=(e,t)=>{const n={};return t.forEach((t=>n[t]=e[t])),n},iA=(e,t)=>{const n=(e=>{const t=e.infinite?2*e.slideCount:e.slideCount;let n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0;const r=[];for(;nn[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((o=>{if(e.vertical){if(o.offsetTop+tA(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+eA(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;const i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},aA=(e,t)=>t.reduce(((t,n)=>t&&e.hasOwnProperty(n)),!0)?null:void 0,sA=e=>{let t,n;aA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=hA(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const t=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",n=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=cl(cl({},r),{WebkitTransform:t,transform:n,msTransform:o})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},cA=e=>{aA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=sA(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},uA=e=>{if(e.unslick)return 0;aA(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:i,slidesToShow:l,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:p,vertical:h}=e;let f,g,m=0,v=0;if(p||1===e.slideCount)return 0;let b=0;if(o?(b=-dA(e),i%a!=0&&t+a>i&&(b=-(t>i?l-(t-i):i%a)),r&&(b+=parseInt(l/2))):(i%a!=0&&t+a>i&&(b=l-i%a),r&&(b=parseInt(l/2))),m=b*s,v=b*d,f=h?t*d*-1+v:t*s*-1+m,!0===u){let i;const l=n;if(i=t+dA(e),g=l&&l.childNodes[i],f=g?-1*g.offsetLeft:0,!0===r){i=o?t+dA(e):t,g=l&&l.children[i],f=0;for(let e=0;ee.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),pA=e=>e.unslick||!e.infinite?0:e.slideCount,hA=e=>1===e.slideCount?1:dA(e)+e.slideCount+pA(e),fA=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+gA(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o&&t%2==0&&(e+=1),e}return o?0:t-1},mA=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o||t%2!=0||(e+=1),e}return o?t-1:0},vA=()=>!("undefined"==typeof window||!window.document||!window.document.createElement),bA=e=>{let t,n,o,r;r=e.rtl?e.slideCount-1-e.index:e.index;const i=r<0||r>=e.slideCount;let l;return e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount==0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===l}},yA=(e,t)=>e.key+"-"+t,OA=function(e,t){let n;const o=[],r=[],i=[],l=t.length,a=KE(e),s=GE(e);return t.forEach(((t,c)=>{let u;const d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?t:br("div");const p=function(e){const t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"==typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(cl(cl({},e),{index:c})),h=u.props.class||"";let f=bA(cl(cl({},e),{index:c}));if(o.push(Vh(u,{key:"original"+yA(u,c),tabindex:"-1","data-index":c,"aria-hidden":!f["slick-active"],class:xl(f,h),style:cl(cl({outline:"none"},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){const o=l-c;o<=dA(e)&&l!==e.slidesToShow&&(n=-o,n>=a&&(u=t),f=bA(cl(cl({},e),{index:n})),r.push(Vh(u,{key:"precloned"+yA(u,n),class:xl(f,h),tabindex:"-1","data-index":n,"aria-hidden":!f["slick-active"],style:cl(cl({},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}}))),l!==e.slidesToShow&&(n=l+c,n{e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},wA=(e,t)=>{let{attrs:n,slots:o}=t;const r=OA(n,ql(null==o?void 0:o.default())),{onMouseenter:i,onMouseover:l,onMouseleave:a}=n,s={onMouseenter:i,onMouseover:l,onMouseleave:a},c=cl({class:"slick-track",style:n.trackStyle},s);return br("div",c,[r])};wA.inheritAttrs=!1;const SA=wA,$A=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:p,onMouseover:h,onMouseleave:f}=n,g=function(e){let t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t}({slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l}),m={onMouseenter:p,onMouseover:h,onMouseleave:f};let v=[];for(let b=0;b=s&&a<=n:a===s}),p={message:"dots",index:b,slidesToScroll:r,currentSlide:a};v=v.concat(br("li",{key:b,class:d},[Yh(c({i:b}),{onClick:e})]))}return Yh(s({dots:v}),cl({class:d},m))};$A.inheritAttrs=!1;const xA=$A;function CA(){}function kA(e,t,n){n&&n.preventDefault(),t(e,n)}const PA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:i,slideCount:l,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(e){kA({message:"previous"},o,e)};!r&&(0===i||l<=a)&&(s["slick-disabled"]=!0,c=CA);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:i,slideCount:l};let p;return p=n.prevArrow?Yh(n.prevArrow(cl(cl({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):br("button",sl({key:"0",type:"button"},u),[" ",Or("Previous")]),p};PA.inheritAttrs=!1;const TA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:i}=n,l={"slick-arrow":!0,"slick-next":!0};let a=function(e){kA({message:"next"},o,e)};oA(n)||(l["slick-disabled"]=!0,a=CA);const s={key:"1","data-role":"none",class:xl(l),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:i};let u;return u=n.nextArrow?Yh(n.nextArrow(cl(cl({},s),c)),{key:"1",class:xl(l),style:{display:"block"},onClick:a},!1):br("button",sl({key:"1",type:"button"},s),[" ",Or("Next")]),u};function MA(){}TA.inheritAttrs=!1;const IA={name:"InnerSlider",mixins:[pm],inheritAttrs:!1,props:cl({},XE),data(){this.preProps=cl({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return cl(cl(cl({},YE),{currentSlide:this.initialSlide,slideCount:this.children.length}),e)},watch:{autoplay(e,t){!t&&e?this.handleAutoPlay("playing"):e?this.handleAutoPlay("update"):this.pause("paused")},__propsSymbol__(){const e=this.$props,t=cl(cl({listRef:this.list,trackRef:this.track},e),this.$data);let n=!1;for(const o of Object.keys(this.preProps)){if(!e.hasOwnProperty(o)){n=!0;break}if("object"!=typeof e[o]&&"function"!=typeof e[o]&&"symbol"!=typeof e[o]&&e[o]!==this.preProps[o]){n=!0;break}}this.updateState(t,n,(()=>{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.preProps=cl({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=UE(cl(cl({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e))}this.$nextTick((()=>{const e=cl({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,(()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")})),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Yl((()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout((()=>this.onWindowResized()),this.speed))):this.onWindowResized()})),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(e=>{e.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,e.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)}))},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((e=>clearTimeout(e))),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),null===(e=this.ro)||void 0===e||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=UE(cl(cl({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=tA(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=vw((()=>this.resizeWindow(e)),50),this.debouncedResize()},resizeWindow(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!Boolean(this.track))return;const t=cl(cl({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(t,e,(()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=(e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(eA(n)),r=e.trackRef,i=Math.ceil(eA(r));let l;if(e.vertical)l=o;else{let t=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(t*=o/100),l=Math.ceil((o-t)/e.slidesToShow)}const a=n&&tA(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=UE(cl(cl({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const p={slideCount:t,slideWidth:l,listWidth:o,trackWidth:i,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p})(e);e=cl(cl(cl({},e),o),{slideIndex:o.currentSlide});const r=uA(e);e=cl(cl({},e),{left:r});const i=sA(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=i),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let t=0,n=0;const o=[],r=dA(cl(cl(cl({},this.$props),this.$data),{slideCount:e.length})),i=pA(cl(cl(cl({},this.$props),this.$data),{slideCount:e.length}));e.forEach((e=>{var n,r;const i=(null===(r=null===(n=e.props.style)||void 0===n?void 0:n.width)||void 0===r?void 0:r.split("px")[0])||0;o.push(i),t+=i}));for(let e=0;e{const o=()=>++n&&n>=t&&this.onWindowResized();if(e.onclick){const t=e.onclick;e.onclick=()=>{t(),e.parentNode.focus()}}else e.onclick=()=>e.parentNode.focus();e.onload||(this.$props.lazyLoad?e.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(e.onload=o,e.onerror=()=>{o(),this.__emit("lazyLoadError")}))}))},progressiveLazyLoad(){const e=[],t=cl(cl({},this.$props),this.$data);for(let n=this.currentSlide;n=-dA(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{asNavFor:n,currentSlide:o,beforeChange:r,speed:i,afterChange:l}=this.$props,{state:a,nextState:s}=(e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:i,slideCount:l,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:h}=e;if(t&&n)return{};let f,g,m,v=i,b={},y={};const O=r?i:ZE(i,0,l-1);if(o){if(!r&&(i<0||i>=l))return{};i<0?v=i+l:i>=l&&(v=i-l),a&&h.indexOf(v)<0&&(h=h.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:h,targetSlide:v},y={animating:!1,targetSlide:v}}else f=v,v<0?(f=v+l,r?l%u!=0&&(f=l-l%u):f=0):!oA(e)&&v>s?v=f=s:c&&v>=l?(v=r?l:l-1,f=r?0:l-1):v>=l&&(f=v-l,r?l%u!=0&&(f=0):f=l-d),!r&&v+d>=l&&(f=l-d),g=uA(cl(cl({},e),{slideIndex:v})),m=uA(cl(cl({},e),{slideIndex:f})),r||(g===m&&(v=f),g=m),a&&(h=h.concat(UE(cl(cl({},e),{currentSlide:v})))),p?(b={animating:!0,currentSlide:f,trackStyle:cA(cl(cl({},e),{left:g})),lazyLoadedList:h,targetSlide:O},y={animating:!1,currentSlide:f,trackStyle:sA(cl(cl({},e),{left:m})),swipeLeft:null,targetSlide:O}):b={currentSlide:f,trackStyle:sA(cl(cl({},e),{left:m})),lazyLoadedList:h,targetSlide:O};return{state:b,nextState:y}})(cl(cl(cl({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!a)return;r&&r(o,a.currentSlide);const c=a.lazyLoadedList.filter((e=>this.lazyLoadedList.indexOf(e)<0));this.$attrs.onLazyLoad&&c.length>0&&this.__emit("lazyLoad",c),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(o),delete this.animationEndCallback),this.setState(a,(()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout((()=>{const{animating:e}=s,t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{this.callbackTimers.push(setTimeout((()=>this.setState({animating:e})),10)),l&&l(a.currentSlide),delete this.animationEndCallback}))}),i))}))},changeSlide(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=((e,t)=>{let n,o,r;const{slidesToScroll:i,slidesToShow:l,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,p=a%i!=0?0:(a-s)%i;if("previous"===t.message)o=0===p?i:l-p,r=s-o,u&&!d&&(n=s-o,r=-1===n?a-1:n),d||(r=c-i);else if("next"===t.message)o=0===p?i:p,r=s+o,u&&!d&&(r=(s+i)%a+p),d||(r=c+i);else if("dots"===t.message)r=t.index*t.slidesToScroll;else if("children"===t.message){if(r=t.index,d){const n=fA(cl(cl({},e),{targetSlide:r}));r>t.currentSlide&&"left"===n?r-=a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":"")(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){window.ontouchmove=e=>{(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=((e,t,n)=>("IMG"===e.target.tagName&&VE(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}))(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove(e){const t=((e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:i,verticalSwiping:l,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:p,swiping:h,slideCount:f,slidesToScroll:g,infinite:m,touchObject:v,swipeEvent:b,listHeight:y,listWidth:O}=t;if(n)return;if(o)return VE(e);let w;r&&i&&l&&VE(e);let S={};const $=uA(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));const x=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!l&&!h&&x>10)return{scrolling:!0};l&&(v.swipeLength=x);let C=(a?-1:1)*(v.curX>v.startX?1:-1);l&&(C=v.curY>v.startY?1:-1);const k=Math.ceil(f/g),P=nA(t.touchObject,l);let T=v.swipeLength;return m||(0===s&&("right"===P||"down"===P)||s+1>=k&&("left"===P||"up"===P)||!oA(t)&&("left"===P||"up"===P))&&(T=v.swipeLength*c,!1===u&&d&&(d(P),S.edgeDragged=!0)),!p&&b&&(b(P),S.swiped=!0),w=r?$+T*(y/O)*C:a?$-T*C:$+T*C,l&&(w=$+T*C),S=cl(cl({},S),{touchObject:v,swipeLeft:w,trackStyle:sA(cl(cl({},t),{left:w}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(S.swiping=!0,VE(e)),S})(e,cl(cl(cl({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=((e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:i,touchThreshold:l,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:p,currentSlide:h,infinite:f}=t;if(!n)return o&&VE(e),{};const g=a?s/l:i/l,m=nA(r,a),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){let n,o;VE(e),d&&d(m);const r=f?h:p;switch(m){case"left":case"up":o=r+lA(t),n=c?iA(t,o):o,v.currentDirection=0;break;case"right":case"down":o=r-lA(t),n=c?iA(t,o):o,v.currentDirection=1;break;default:n=r}v.triggerSlideHandler=n}else{const e=uA(t);v.trackStyle=cA(cl(cl({},t),{left:e}))}return v})(e,cl(cl(cl({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"previous"})),0))},slickNext(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"next"})),0))},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t)),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!oA(cl(cl({},this.$props),this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return br("button",null,[t+1])},appendDots(e){let{dots:t}=e;return br("ul",{style:{display:"block"}},[t])}},render(){const e=xl("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=cl(cl({},this.$props),this.$data);let n=rA(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;let r,i,l;if(n=cl(cl({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:MA,onMouseover:o?this.onTrackOver:MA}),!0===this.dots&&this.slideCount>=this.slidesToShow){let e=rA(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);e.customPaging=this.customPaging,e.appendDots=this.appendDots;const{customPaging:n,appendDots:o}=this.$slots;n&&(e.customPaging=n),o&&(e.appendDots=o);const{pauseOnDotsHover:i}=this.$props;e=cl(cl({},e),{clickHandler:this.changeSlide,onMouseover:i?this.onDotsOver:MA,onMouseleave:i?this.onDotsLeave:MA}),r=br(xA,e,null)}const a=rA(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(i=br(PA,a,null),l=br(TA,a,null));let u=null;this.vertical&&(u={height:"number"==typeof this.listHeight?`${this.listHeight}px`:this.listHeight});let d=null;!1===this.vertical?!0===this.centerMode&&(d={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(d={padding:this.centerPadding+" 0px"});const p=cl(cl({},u),d),h=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:h?this.swipeStart:MA,onMousemove:this.dragging&&h?this.swipeMove:MA,onMouseup:h?this.swipeEnd:MA,onMouseleave:this.dragging&&h?this.swipeEnd:MA,[Ma?"onTouchstartPassive":"onTouchstart"]:h?this.swipeStart:MA,[Ma?"onTouchmovePassive":"onTouchmove"]:this.dragging&&h?this.swipeMove:MA,onTouchend:h?this.touchEnd:MA,onTouchcancel:this.dragging&&h?this.swipeEnd:MA,onKeydown:this.accessibility?this.keyHandler:MA},g={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},g={class:e}),br("div",g,[this.unslick?"":i,br("div",f,[br(SA,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},EA=jn({name:"Slider",mixins:[pm],inheritAttrs:!1,props:cl({},XE),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map((e=>e.breakpoint));e.sort(((e,t)=>e-t)),e.forEach(((t,n)=>{let o;o=WE(0===n?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),vA()&&this.media(o,(()=>{this.setState({breakpoint:t})}))}));const t=WE({minWidth:e.slice(-1)[0]});vA()&&this.media(t,(()=>{this.setState({breakpoint:null})}))}},beforeUnmount(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=e=>{let{matches:n}=e;n&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;null===(e=this.innerSlider)||void 0===e||e.slickPrev()},slickNext(){var e;null===(e=this.innerSlider)||void 0===e||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=this.innerSlider)||void 0===n||n.slickGoTo(e,t)},slickPause(){var e;null===(e=this.innerSlider)||void 0===e||e.pause("paused")},slickPlay(){var e;null===(e=this.innerSlider)||void 0===e||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter((e=>e.breakpoint===this.breakpoint)),t="unslick"===n[0].settings?"unslick":cl(cl({},this.$props),n[0].settings)):t=cl({},this.$props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);let o=Jl(this)||[];o=o.filter((e=>"string"==typeof e?!!e.trim():!!e)),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(t.variableWidth=!1);const r=[];let i=null;for(let a=0;a=o.length));n+=1)l.push(Yh(o[n],{key:100*a+10*r+n,tabindex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}));n.push(br("div",{key:10*a+r},[l]))}t.variableWidth?r.push(br("div",{key:a,style:{width:i}},[n])):r.push(br("div",{key:a},[n]))}if("unslick"===t){const e="regular slider "+(this.className||"");return br("div",{class:e},[o])}r.length<=t.slidesToShow&&(t.unslick=!0);const l=cl(cl(cl({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return br(IA,sl(sl({},l),{},{__propsSymbol__:[]}),this.$slots)}}),AA=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:i}=e,l=1.25*-o,a=i;return{[t]:cl(cl({},Xu(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},DA=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:cl(cl({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":cl(cl({},r),{button:r})})}}}},RA=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},zA=Ku("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Ju(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[AA(o),DA(o),RA(o)]}),{dotWidth:16,dotHeight:3,dotWidthActive:24}),BA=jn({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:{effect:ka(),dots:Sa(!0),vertical:Sa(),autoplay:Sa(),easing:String,beforeChange:$a(),afterChange:$a(),prefixCls:String,accessibility:Sa(),nextArrow:$p.any,prevArrow:$p.any,pauseOnHover:Sa(),adaptiveHeight:Sa(),arrows:Sa(!1),autoplaySpeed:Number,centerMode:Sa(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Sa(!1),fade:Sa(),focusOnSelect:Sa(),infinite:Sa(),initialSlide:Number,lazyLoad:ka(),rtl:Sa(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Sa(),swipeToSlide:Sa(),swipeEvent:$a(),touchMove:Sa(),touchThreshold:Number,variableWidth:Sa(),useCSS:Sa(),slickGoTo:Number,responsive:Array,dotPosition:ka(),verticalSwiping:Sa(!1)},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt();r({goTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=i.value)||void 0===n||n.slickGoTo(e,t)},autoplay:e=>{var t,n;null===(n=null===(t=i.value)||void 0===t?void 0:t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:()=>{var e;null===(e=i.value)||void 0===e||e.slickPrev()},next:()=>{var e;null===(e=i.value)||void 0===e||e.slickNext()},innerSlider:Lr((()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.innerSlider}))}),mn((()=>{Ts(void 0===e.vertical)}));const{prefixCls:l,direction:a}=$d("carousel",e),[s,c]=zA(l),u=Lr((()=>e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom")),d=Lr((()=>"left"===u.value||"right"===u.value)),p=Lr((()=>{const t="slick-dots";return xl({[t]:!0,[`${t}-${u.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})}));return()=>{const{dots:t,arrows:r,draggable:u,effect:h}=e,{class:f,style:g}=o,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const XA=Symbol("TreeContextKey"),YA=jn({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return To(XA,Lr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),ZA=()=>Mo(XA,Lr((()=>({})))),VA=Symbol("KeysStateKey"),UA=()=>Mo(VA,{expandedKeys:yt([]),selectedKeys:yt([]),loadedKeys:yt([]),loadingKeys:yt([]),checkedKeys:yt([]),halfCheckedKeys:yt([]),expandedKeysSet:Lr((()=>new Set)),selectedKeysSet:Lr((()=>new Set)),loadedKeysSet:Lr((()=>new Set)),loadingKeysSet:Lr((()=>new Set)),checkedKeysSet:Lr((()=>new Set)),halfCheckedKeysSet:Lr((()=>new Set)),flattenNodes:yt([])}),KA=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const i=`${t}-indent-unit`,l=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:$p.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:$p.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:$p.any,switcherIcon:$p.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),eD="open",tD="close",nD=jn({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:GA,isTreeNode:1,setup(e,t){let{attrs:n,slots:o,expose:r}=t;e.data,Object.keys(e.data.slots||{}).map((e=>"`v-slot:"+e+"` "));const i=yt(!1),l=ZA(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:p}=UA(),{dragOverNodeKey:h,dropPosition:f,keyEntities:g}=l.value,m=Lr((()=>mD(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:p.value,dragOverNodeKey:h,dropPosition:f,keyEntities:g}))),v=tx((()=>m.value.expanded)),b=tx((()=>m.value.selected)),y=tx((()=>m.value.checked)),O=tx((()=>m.value.loaded)),w=tx((()=>m.value.loading)),S=tx((()=>m.value.halfChecked)),$=tx((()=>m.value.dragOver)),x=tx((()=>m.value.dragOverGapTop)),C=tx((()=>m.value.dragOverGapBottom)),k=tx((()=>m.value.pos)),P=yt(),T=Lr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{children:o}=n[t]||{};return!!(o||[]).length})),M=Lr((()=>{const{isLeaf:t}=e,{loadData:n}=l.value,o=T.value;return!1!==t&&(t||!n&&!o||n&&O.value&&!o)})),I=Lr((()=>M.value?null:v.value?eD:tD)),E=Lr((()=>{const{disabled:t}=e,{disabled:n}=l.value;return!(!n&&!t)})),A=Lr((()=>{const{checkable:t}=e,{checkable:n}=l.value;return!(!n||!1===t)&&n})),D=Lr((()=>{const{selectable:t}=e,{selectable:n}=l.value;return"boolean"==typeof t?t:n})),R=Lr((()=>{const{data:t,active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l}=e;return cl(cl({active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l},t),{dataRef:t,data:t,isLeaf:M.value,checked:y.value,expanded:v.value,loading:w.value,selected:b.value,halfChecked:S.value})})),z=Mr(),B=Lr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{parent:o}=n[t]||{};return cl(cl({},vD(cl({},e,m.value))),{parent:o})})),j=rt({eventData:B,eventKey:Lr((()=>e.eventKey)),selectHandle:P,pos:k,key:z.vnode.key});r(j);const N=e=>{const{onNodeDoubleClick:t}=l.value;t(e,B.value)},_=t=>{if(E.value)return;const{disableCheckbox:n}=e,{onNodeCheck:o}=l.value;if(!A.value||n)return;t.preventDefault();const r=!y.value;o(t,B.value,r)},Q=e=>{const{onNodeClick:t}=l.value;t(e,B.value),D.value?(e=>{if(E.value)return;const{onNodeSelect:t}=l.value;e.preventDefault(),t(e,B.value)})(e):_(e)},L=e=>{const{onNodeMouseEnter:t}=l.value;t(e,B.value)},H=e=>{const{onNodeMouseLeave:t}=l.value;t(e,B.value)},F=e=>{const{onNodeContextMenu:t}=l.value;t(e,B.value)},W=e=>{const{onNodeDragStart:t}=l.value;e.stopPropagation(),i.value=!0,t(e,j);try{e.dataTransfer.setData("text/plain","")}catch(n){}},X=e=>{const{onNodeDragEnter:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,j)},Y=e=>{const{onNodeDragOver:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,j)},Z=e=>{const{onNodeDragLeave:t}=l.value;e.stopPropagation(),t(e,j)},V=e=>{const{onNodeDragEnd:t}=l.value;e.stopPropagation(),i.value=!1,t(e,j)},U=e=>{const{onNodeDrop:t}=l.value;e.preventDefault(),e.stopPropagation(),i.value=!1,t(e,j)},K=e=>{const{onNodeExpand:t}=l.value;w.value||t(e,B.value)},G=()=>{const{draggable:e,prefixCls:t}=l.value;return e&&(null==e?void 0:e.icon)?br("span",{class:`${t}-draggable-icon`},[e.icon]):null},q=()=>{const{loadData:e,onNodeLoad:t}=l.value;w.value||e&&v.value&&!M.value&&(T.value||O.value||t(B.value))};Zn((()=>{q()})),Un((()=>{q()}));const J=()=>{const{prefixCls:t}=l.value,n=(()=>{var t,n,r;const{switcherIcon:i=o.switcherIcon||(null===(t=l.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.switcherIcon])}=e,{switcherIcon:a}=l.value,s=i||a;return"function"==typeof s?s(R.value):s})();if(M.value)return!1!==n?br("span",{class:xl(`${t}-switcher`,`${t}-switcher-noop`)},[n]):null;const r=xl(`${t}-switcher`,`${t}-switcher_${v.value?eD:tD}`);return!1!==n?br("span",{onClick:K,class:r},[n]):null},ee=()=>{var t,n;const{disableCheckbox:o}=e,{prefixCls:r}=l.value,i=E.value;return A.value?br("span",{class:xl(`${r}-checkbox`,y.value&&`${r}-checkbox-checked`,!y.value&&S.value&&`${r}-checkbox-indeterminate`,(i||o)&&`${r}-checkbox-disabled`),onClick:_},[null===(n=(t=l.value).customCheckable)||void 0===n?void 0:n.call(t)]):null},te=()=>{const{prefixCls:e}=l.value;return br("span",{class:xl(`${e}-iconEle`,`${e}-icon__${I.value||"docu"}`,w.value&&`${e}-icon_loading`)},null)},ne=()=>{const{disabled:t,eventKey:n}=e,{draggable:o,dropLevelOffset:r,dropPosition:i,prefixCls:a,indent:s,dropIndicatorRender:c,dragOverNodeKey:u,direction:d}=l.value;return t||!1===o||u!==n?null:c({dropPosition:i,dropLevelOffset:r,indent:s,prefixCls:a,direction:d})},oe=()=>{var t,n,r,a,s,c;const{icon:u=o.icon,data:d}=e,p=o.title||(null===(t=l.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.title])||(null===(a=l.value.slots)||void 0===a?void 0:a.title)||e.title,{prefixCls:h,showIcon:f,icon:g,loadData:m}=l.value,v=E.value,y=`${h}-node-content-wrapper`;let O,S;if(f){const e=u||(null===(s=l.value.slots)||void 0===s?void 0:s[null===(c=null==d?void 0:d.slots)||void 0===c?void 0:c.icon])||g;O=e?br("span",{class:xl(`${h}-iconEle`,`${h}-icon__customize`)},["function"==typeof e?e(R.value):e]):te()}else m&&w.value&&(O=te());S="function"==typeof p?p(R.value):p,S=void 0===S?"---":S;const $=br("span",{class:`${h}-title`},[S]);return br("span",{ref:P,title:"string"==typeof p?p:"",class:xl(`${y}`,`${y}-${I.value||"normal"}`,!v&&(b.value||i.value)&&`${h}-node-selected`),onMouseenter:L,onMouseleave:H,onContextmenu:F,onClick:Q,onDblclick:N},[O,$,ne()])};return()=>{const t=cl(cl({},e),n),{eventKey:o,isLeaf:r,isStart:i,isEnd:a,domRef:s,active:c,data:u,onMousemove:d,selectable:p}=t,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{data:t}=e,{draggable:n}=l.value;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})(),R=!T&&D,z=P===o,j=void 0!==p?{"aria-selected":!!p}:void 0;return br("div",sl(sl({ref:s,class:xl(n.class,`${f}-treenode`,{[`${f}-treenode-disabled`]:T,[`${f}-treenode-switcher-${v.value?"open":"close"}`]:!r,[`${f}-treenode-checkbox-checked`]:y.value,[`${f}-treenode-checkbox-indeterminate`]:S.value,[`${f}-treenode-selected`]:b.value,[`${f}-treenode-loading`]:w.value,[`${f}-treenode-active`]:c,[`${f}-treenode-leaf-last`]:A,[`${f}-treenode-draggable`]:R,dragging:z,"drop-target":k===o,"drop-container":O===o,"drag-over":!T&&$.value,"drag-over-gap-top":!T&&x.value,"drag-over-gap-bottom":!T&&C.value,"filter-node":g&&g(B.value)}),style:n.style,draggable:R,"aria-grabbed":z,onDragstart:R?W:void 0,onDragenter:D?X:void 0,onDragover:D?Y:void 0,onDragleave:D?Z:void 0,onDrop:D?U:void 0,onDragend:D?V:void 0,onMousemove:d},j),M),[br(KA,{prefixCls:f,level:I,isStart:i,isEnd:a},null),G(),J(),ee(),oe()])}}});function oD(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function rD(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function iD(e){return e.split("-")}function lD(e,t){return`${e}-${t}`}function aD(e){if(e.parent){const t=iD(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function sD(e,t,n,o,r,i,l,a,s,c){var u;const{clientX:d,clientY:p}=e,{top:h,height:f}=e.target.getBoundingClientRect(),g=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o;let m=a[n.eventKey];if(pe.key===m.key)),t=l[e<=0?0:e-1].key;m=a[t]}const v=m.key,b=m,y=m.key;let O=0,w=0;if(!s.has(v))for(let C=0;C-1.5?i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1:i({dragNode:S,dropNode:$,dropPosition:0})?O=0:i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1:i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1,{dropPosition:O,dropLevelOffset:w,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:y,dropContainerKey:0===O?null:(null===(u=m.parent)||void 0===u?void 0:u.key)||null,dropAllowed:x}}function cD(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function uD(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function dD(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=t[e];if(!r)return;n.add(e);const{parent:i,node:l}=r;l.disabled||i&&o(i.key)}return(e||[]).forEach((e=>{o(e)})),[...n]}function pD(e,t){return null!=e?e:t}function hD(e){const{title:t,_title:n,key:o,children:r}=e||{},i=t||"title";return{title:i,_title:n||[i],key:o||"key",children:r||"children"}}function fD(e){return function e(){return la(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return null;const l=t.children||{},a=t.key,s={};for(const[e,$]of Object.entries(t.props))s[ml(e)]=$;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=cl(cl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),icon:v=(null===(o=l.icon)||void 0===o?void 0:o.call(l,g)),switcherIcon:b=(null===(r=l.switcherIcon)||void 0===r?void 0:r.call(l,g))}=s,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]?arguments[1]:{};const a=r||(arguments.length>2?arguments[2]:void 0),s={},c={};let u={posEntities:s,keyEntities:c};return t&&(u=t(u)||u),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:i,fieldNames:l}=o,{key:a,children:s}=hD(l),c=r||s;let u;i?"string"==typeof i?u=e=>e[i]:"function"==typeof i&&(u=e=>i(e)):u=(e,t)=>pD(e[a],t),function n(o,r,i,l){const a=o?o[c]:e,s=o?lD(i.pos,r):"0",d=o?[...l,o]:[];if(o){const e=u(o,s),n={node:o,index:r,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:i?i.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:i,parentPos:l,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:i,pos:r,level:a},h=pD(i,r);s[r]=p,c[h]=p,p.parent=s[l],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)}),{externalGetKey:a,childrenPropName:i,fieldNames:l}),o&&o(u),u}function mD(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:i,checkedKeysSet:l,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:i.has(e),checked:l.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function vD(e){const{data:t,expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h}=e,f=cl(cl({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h,key:h});return"props"in f||Object.defineProperty(f,"props",{get:()=>e}),f}const bD="__rc_cascader_search_mark__",yD=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},OD=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function wD(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],i=r?r.parent:null,l=r?r.children:null;return n===QA?!(l&&l.some((e=>e.key&&o.has(e.key)))):!(i&&!i.node.disabled&&o.has(i.key))}))}function SD(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let i=t;const l=[];for(let a=0;a{const r=e[n.value];return o?String(r)===String(t):r===t})),c=-1!==s?null==i?void 0:i[s]:null;l.push({value:null!==(r=null==c?void 0:c[n.value])&&void 0!==r?r:t,index:s,option:c}),i=null==c?void 0:c[n.children]}return l}function $D(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function xD(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function CD(e,t,n,o,r,i){let l;l=i||xD;const a=new Set(e.filter((e=>!!n[e])));let s;return s=!0===t?function(e,t,n,o){const r=new Set(e),i=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((e=>{const{key:t,node:n,children:i=[]}=e;r.has(t)&&!o(n)&&i.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const l=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let a=!0,s=!1;(t.children||[]).filter((e=>!o(e.node))).forEach((e=>{let{key:t}=e;const n=r.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)})),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from($D(i,r))}}(a,r,o,l):function(e,t,n,o,r){const i=new Set(e);let l=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((e=>{const{key:t,node:n,children:o=[]}=e;i.has(t)||l.has(t)||r(n)||o.filter((e=>!r(e.node))).forEach((e=>{i.delete(e.key)}))}));l=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter((e=>!r(e.node))).forEach((e=>{let{key:t}=e;const n=i.has(t);o&&!n&&(o=!1),s||!n&&!l.has(t)||(s=!0)})),o||i.delete(t.key),s&&l.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from($D(l,i))}}(a,t.halfCheckedKeys,r,o,l),s}const kD=Symbol("CascaderContextKey"),PD=()=>Mo(kD),TD=(e,t,n,o,r,i)=>{const l=dv(),a=Lr((()=>"rtl"===l.direction)),[s,c,u]=[bt([]),bt(),bt([])];mn((()=>{let e=-1,r=t.value;const i=[],l=[],a=o.value.length;for(let t=0;te[n.value.value]===o.value[t]));if(-1===a)break;e=a,i.push(e),l.push(o.value[t]),r=r[e][n.value.children]}let d=t.value;for(let t=0;t{r(e)},p=()=>{if(s.value.length>1){const e=s.value.slice(0,-1);d(e)}else l.toggleOpen(!1)},h=()=>{var e;const t=((null===(e=u.value[c.value])||void 0===e?void 0:e[n.value.children])||[]).find((e=>!e.disabled));if(t){const e=[...s.value,t[n.value.value]];d(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case Im.UP:case Im.DOWN:{let e=0;t===Im.UP?e=-1:t===Im.DOWN&&(e=1),0!==e&&(e=>{const t=u.value.length;let o=c.value;-1===o&&e<0&&(o=t);for(let r=0;re[n.value.value])),t[t.length-1]):i(s.value,e)}break;case Im.ESC:l.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function MD(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:i}=e;const{customSlots:l,checkable:a}=PD(),s=!1!==a.value?l.value.checkable:a.value,c="function"==typeof s?s():"boolean"==typeof s?null:s;return br("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:i},[c])}MD.props=["prefixCls","checked","halfChecked","disabled","onClick"],MD.displayName="Checkbox",MD.inheritAttrs=!1;const ID="__cascader_fix_label__";function ED(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:i,onToggleOpen:l,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:p}=e;var h,f,g,m,v,b;const y=`${t}-menu`,O=`${t}-menu-item`,{fieldNames:w,changeOnSelect:S,expandTrigger:$,expandIcon:x,loadingIcon:C,dropdownMenuColumnStyle:k,customSlots:P}=PD(),T=null!==(h=x.value)&&void 0!==h?h:null===(g=(f=P.value).expandIcon)||void 0===g?void 0:g.call(f),M=null!==(m=C.value)&&void 0!==m?m:null===(b=(v=P.value).loadingIcon)||void 0===b?void 0:b.call(v),I="hover"===$.value;return br("ul",{class:y,role:"menu"},[o.map((e=>{var o;const{disabled:h}=e,f=e[bD],g=null!==(o=e[ID])&&void 0!==o?o:e[w.value.label],m=e[w.value.value],v=FA(e,w.value),b=f?f.map((e=>e[w.value.value])):[...i,m],y=LA(b),$=d.includes(y),x=c.has(y),C=u.has(y),P=()=>{h||I&&v||s(b)},E=()=>{p(e)&&a(b,v)};let A;return"string"==typeof e.title?A=e.title:"string"==typeof g&&(A=g),br("li",{key:y,class:[O,{[`${O}-expand`]:!v,[`${O}-active`]:r===m,[`${O}-disabled`]:h,[`${O}-loading`]:$}],style:k.value,role:"menuitemcheckbox",title:A,"aria-checked":x,"data-path-key":y,onClick:()=>{P(),n&&!v||E()},onDblclick:()=>{S.value&&l(!1)},onMouseenter:()=>{I&&P()},onMousedown:e=>{e.preventDefault()}},[n&&br(MD,{prefixCls:`${t}-checkbox`,checked:x,halfChecked:C,disabled:h,onClick:e=>{e.stopPropagation(),E()}},null),br("div",{class:`${O}-content`},[g]),!$&&T&&!v&&br("div",{class:`${O}-expand-icon`},[T]),$&&M&&br("div",{class:`${O}-loading-icon`},[M])])}))])}ED.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],ED.displayName="Column",ED.inheritAttrs=!1;const AD=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=dv(),i=bt(),l=Lr((()=>"rtl"===r.direction)),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:p,searchOptions:h,dropdownPrefixCls:f,loadData:g,expandTrigger:m,customSlots:v}=PD(),b=Lr((()=>f.value||r.prefixCls)),y=yt([]);mn((()=>{y.value.length&&y.value.forEach((e=>{const t=SD(e.split(NA),a.value,u.value,!0).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];(!n||n[u.value.children]||FA(n,u.value))&&(y.value=y.value.filter((t=>t!==e)))}))}));const O=Lr((()=>new Set(HA(s.value)))),w=Lr((()=>new Set(HA(c.value)))),[S,$]=(()=>{const e=dv(),{values:t}=PD(),[n,o]=Hv([]);return bn((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),x=e=>{$(e),(e=>{if(!g.value||r.searchValue)return;const t=SD(e,a.value,u.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!FA(n,u.value)){const n=LA(e);y.value=[...y.value,n],g.value(t)}})(e)},C=e=>{const{disabled:t}=e,n=FA(e,u.value);return!t&&(n||d.value||r.multiple)},k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(e),!r.multiple&&(t||d.value&&("hover"===m.value||n))&&r.toggleOpen(!1)},P=Lr((()=>r.searchValue?h.value:a.value)),T=Lr((()=>{const e=[{options:P.value}];let t=P.value;for(let n=0;ne[u.value.value]===o)),i=null==r?void 0:r[u.value.children];if(!(null==i?void 0:i.length))break;t=i,e.push({options:i})}return e}));TD(t,P,u,S,x,((e,t)=>{C(t)&&k(e,FA(t,u.value),!0)}));const M=e=>{e.preventDefault()};return Zn((()=>{bn(S,(e=>{var t;for(let n=0;n{var e,t,a,s,c;const{notFoundContent:d=(null===(e=o.notFoundContent)||void 0===e?void 0:e.call(o))||(null===(a=(t=v.value).notFoundContent)||void 0===a?void 0:a.call(t)),multiple:p,toggleOpen:h}=r,f=!(null===(c=null===(s=T.value[0])||void 0===s?void 0:s.options)||void 0===c?void 0:c.length),g=[{[u.value.value]:"__EMPTY__",[ID]:d,disabled:!0}],m=cl(cl({},n),{multiple:!f&&p,onSelect:k,onActive:x,onToggleOpen:h,checkedSet:O.value,halfCheckedSet:w.value,loadingKeys:y.value,isSelectable:C}),$=(f?[{options:g}]:T.value).map(((e,t)=>{const n=S.value.slice(0,t),o=S.value[t];return br(ED,sl(sl({key:t},m),{},{prefixCls:b.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return br("div",{class:[`${b.value}-menus`,{[`${b.value}-menu-empty`]:f,[`${b.value}-rtl`]:l.value}],onMousedown:M,ref:i},[$])}}});function DD(e){const t=bt(0),n=yt();return mn((()=>{const o=new Map;let r=0;const i=e.value||{};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=i[e],{level:n}=t;let l=o.get(n);l||(l=new Set,o.set(n,l)),l.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}function RD(){return cl(cl({},cl(cl({},xd(fv(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:wa(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:_A},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:$p.any,loadingIcon:$p.any})),{onChange:Function,customSlots:Object})}function zD(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((e=>Array.isArray(e)?e:[e])):[]}const BD=jn({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Vl(RD(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>!!e.checkable)),[a,s]=Lv(e.defaultValue,{value:Lr((()=>e.value)),postState:zD}),c=Lr((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}(e.fieldNames))),u=Lr((()=>e.options||[])),d=(p=u,h=c,Lr((()=>gD(p.value,{fieldNames:h.value,initWrapper:e=>cl(cl({},e),{pathKeyEntities:{}}),processEntity:(e,t)=>{const n=e.nodes.map((e=>e[h.value.value])).join(NA);t.pathKeyEntities[n]=e,e.key=n}}).pathKeyEntities)));var p,h;const f=e=>{const t=d.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[c.value.value]))}))},[g,m]=Lv("",{value:Lr((()=>e.searchValue)),postState:e=>e||""}),v=(t,n)=>{m(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:b,searchConfig:y}=function(e){const t=yt(!1),n=bt({});return mn((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=cl(cl({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(Tt(e,"showSearch")),O=((e,t,n,o,r,i)=>Lr((()=>{const{filter:l=yD,render:a=OD,limit:s=50,sort:c}=r.value,u=[];return e.value?(function t(r,d){r.forEach((r=>{if(!c&&s>0&&u.length>=s)return;const p=[...d,r],h=r[n.value.children];h&&0!==h.length&&!i.value||l(e.value,p,{label:n.value.label})&&u.push(cl(cl({},r),{[n.value.label]:a({inputValue:e.value,path:p,prefixCls:o.value,fieldNames:n.value}),[bD]:p})),h&&t(r[n.value.children],p)}))}(t.value,[]),c&&u.sort(((t,o)=>c(t[bD],o[bD],e.value,n.value))),s>0?u.slice(0,s):u):[]})))(g,u,c,Lr((()=>e.dropdownPrefixCls||e.prefixCls)),y,Tt(e,"changeOnSelect")),w=((e,t,n)=>Lr((()=>{const o=[],r=[];return n.value.forEach((n=>{SD(n,e.value,t.value).every((e=>e.option))?r.push(n):o.push(n)})),[r,o]})))(u,c,a),[S,$,x]=[bt([]),bt([]),bt([])],{maxLevel:C,levelEntities:k}=DD(d);mn((()=>{const[e,t]=w.value;if(!l.value||!a.value.length)return void([S.value,$.value,x.value]=[e,[],t]);const n=HA(e),o=d.value,{checkedKeys:r,halfCheckedKeys:i}=CD(n,!0,o,C.value,k.value);[S.value,$.value,x.value]=[f(r),f(i),t]}));const P=((e,t,n,o,r)=>Lr((()=>{const i=r.value||(e=>{let{labels:t}=e;const n=o.value?t.slice(-1):t;return n.every((e=>["string","number"].includes(typeof e)))?n.join(" / "):n.reduce(((e,t,n)=>{const o=sa(t)?Yh(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const o=SD(e,t.value,n.value),r=i({labels:o.map((e=>{let{option:t,value:o}=e;var r;return null!==(r=null==t?void 0:t[n.value.label])&&void 0!==r?r:o})),selectedOptions:o.map((e=>{let{option:t}=e;return t}))}),l=LA(e);return{label:r,value:l,key:l,valueCells:e}}))})))(Lr((()=>{const t=wD(HA(S.value),d.value,e.showCheckedStrategy);return[...x.value,...f(t)]})),u,c,l,Tt(e,"displayRender")),T=t=>{if(s(t),e.onChange){const n=zD(t),o=n.map((e=>SD(e,u.value,c.value).map((e=>e.option)))),r=l.value?n:n[0],i=l.value?o:o[0];e.onChange(r,i)}},M=t=>{if(m(""),l.value){const n=LA(t),o=HA(S.value),r=HA($.value),i=o.includes(n),l=x.value.some((e=>LA(e)===n));let a=S.value,s=x.value;if(l&&!i)s=x.value.filter((e=>LA(e)!==n));else{const t=i?o.filter((e=>e!==n)):[...o,n];let l;({checkedKeys:l}=CD(t,!i||{checked:!1,halfCheckedKeys:r},d.value,C.value,k.value));const s=wD(l,d.value,e.showCheckedStrategy);a=f(s)}T([...s,...a])}else T(t)},I=(e,t)=>{if("clear"===t.type)return void T([]);const{valueCells:n}=t.values[0];M(n)},E=Lr((()=>void 0!==e.open?e.open:e.popupVisible)),A=Lr((()=>e.dropdownClassName||e.popupClassName)),D=Lr((()=>e.dropdownStyle||e.popupStyle||{})),R=Lr((()=>e.placement||e.popupPlacement)),z=t=>{var n,o;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(o=e.onPopupVisibleChange)||void 0===o||o.call(e,t)},{changeOnSelect:B,checkable:j,dropdownPrefixCls:N,loadData:_,expandTrigger:Q,expandIcon:L,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W}=Ct(e);(e=>{To(kD,e)})({options:u,fieldNames:c,values:S,halfValues:$,changeOnSelect:B,onSelect:M,checkable:j,searchOptions:O,dropdownPrefixCls:N,loadData:_,expandTrigger:Q,expandIcon:L,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W});const X=bt();o({focus(){var e;null===(e=X.value)||void 0===e||e.focus()},blur(){var e;null===(e=X.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=X.value)||void 0===t||t.scrollTo(e)}});const Y=Lr((()=>xd(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])));return()=>{const t=!(g.value?O.value:u.value).length,{dropdownMatchSelectWidth:o=!1}=e,a=g.value&&y.value.matchInputWidth||t?{}:{minWidth:"auto"};return br(mv,sl(sl(sl({},Y.value),n),{},{ref:X,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:o,dropdownStyle:cl(cl({},D.value),a),displayValues:P.value,onDisplayValuesChange:I,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:v,showSearch:b.value,OptionList:AD,emptyOptions:t,open:E.value,dropdownClassName:A.value,placement:R.value,onDropdownVisibleChange:z,getRawInputElement:()=>{var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}}),r)}}}),jD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function ND(e){for(var t=1;tds()&&window.document.documentElement,FD=e=>{if(ds()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some((e=>e in n.style))}return!1};function WD(e,t){return Array.isArray(e)||void 0===t?FD(e):((e,t)=>{if(!FD(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o})(e,t)}let XD;const YD=()=>{const e=yt(!1);return Zn((()=>{e.value=(()=>{if(!HD())return!1;if(void 0!==XD)return XD;const e=document.createElement("div");return 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),XD=1===e.scrollHeight,document.body.removeChild(e),XD})()})),e},ZD=Symbol("rowContextKey"),VD=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},UD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},KD=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let i=o;i>=0;i--)0===i?(r[`${n}${t}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${i}`]={marginInlineEnd:0},r[`${n}${t}-order-${i}`]={order:0}):(r[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/o*100}%`,maxWidth:i/o*100+"%"},r[`${n}${t}-push-${i}`]={insetInlineStart:i/o*100+"%"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:i/o*100+"%"},r[`${n}${t}-offset-${i}`]={marginInlineStart:i/o*100+"%"},r[`${n}${t}-order-${i}`]={order:i});return r})(e,t),GD=Ku("Grid",(e=>[VD(e)])),qD=Ku("Grid",(e=>{const t=Ju(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[UD(t),KD(t,""),KD(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:cl({},KD(e,n))}))(t,n[e],e))).reduce(((e,t)=>cl(cl({},e),t)),{})]})),JD=jn({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:Pa([String,Object]),justify:Pa([String,Object]),prefixCls:String,gutter:Pa([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("row",e),[l,a]=GD(r);let s;const c=J$(),u=bt({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=bt({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=t=>Lr((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n{s=c.value.subscribe((t=>{d.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(u.value=t)}))})),Kn((()=>{c.value.unsubscribe(s)}));const m=Lr((()=>{const t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let o=0;oe.wrap))},To(ZD,v);const b=Lr((()=>xl(r.value,{[`${r.value}-no-wrap`]:!1===e.wrap,[`${r.value}-${f.value}`]:f.value,[`${r.value}-${h.value}`]:h.value,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value))),y=Lr((()=>{const e=m.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,o=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),g.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return l(br("div",sl(sl({},o),{},{class:b.value,style:cl(cl({},y.value),o.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});function eR(){return eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}})):e}function cR(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function uR(e,t,n){var o=0,r=e.length;!function i(l){if(l&&l.length)n(l);else{var a=o;o+=1,a()\[\]\\.,;:\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,}))$/,bR=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,yR={integer:function(e){return yR.number(e)&&parseInt(e,10)===e},float:function(e){return yR.number(e)&&!yR.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Eue){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!yR.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(vR)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gR)return gR;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),l=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?l:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var c=s.v4().source,u=s.v6().source;return gR=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(bR)}},OR="enum",wR={required:mR,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(sR(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)mR(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?yR[i](t)||o.push(sR(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(sR(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,l="number"==typeof e.min,a="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&o.push(sR(r.messages[c].len,e.fullField,e.len)):l&&!a&&se.max?o.push(sR(r.messages[c].max,e.fullField,e.max)):l&&a&&(se.max)&&o.push(sR(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[OR]=Array.isArray(e[OR])?e[OR]:[],-1===e[OR].indexOf(t)&&o.push(sR(r.messages[OR],e.fullField,e[OR].join(", ")))},pattern:function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(sR(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(sR(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},SR=function(e,t,n,o,r){var i=e.type,l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,i)&&!e.required)return n();wR.required(e,t,o,l,r,i),cR(t,i)||wR.type(e,t,o,l,r)}n(l)},$R={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"string")&&!e.required)return n();wR.required(e,t,o,i,r,"string"),cR(t,"string")||(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r),wR.pattern(e,t,o,i,r),!0===e.whitespace&&wR.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),cR(t)||wR.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();wR.required(e,t,o,i,r,"array"),null!=t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"string")&&!e.required)return n();wR.required(e,t,o,i,r),cR(t,"string")||wR.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"date")&&!e.required)return n();var l;wR.required(e,t,o,i,r),cR(t,"date")||(l=t instanceof Date?t:new Date(t),wR.type(e,l,o,i,r),l&&wR.range(e,l.getTime(),o,i,r))}n(i)},url:SR,hex:SR,email:SR,required:function(e,t,n,o,r){var i=[],l=Array.isArray(t)?"array":typeof t;wR.required(e,t,o,i,r,l),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r)}n(i)}};function xR(){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 CR=xR(),kR=function(){function e(e){this.rules=null,this._messages=CR,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=fR(xR(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,l=n,a=o;if("function"==typeof l&&(a=l,l={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,i),Promise.resolve(i);if(l.messages){var s=this.messages();s===CR&&(s=xR()),fR(s,l.messages),l.messages=s}else l.messages=this.messages();var c={};(l.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var l=n;"function"==typeof l.transform&&(i===t&&(i=eR({},i)),o=i[e]=l.transform(o)),(l="function"==typeof l?{validator:l}:eR({},l)).validator=r.getValidationMethod(l),l.validator&&(l.field=e,l.fullField=l.fullField||e,l.type=r.getType(l),c[e]=c[e]||[],c[e].push({rule:l,value:o,source:i,field:e}))}))}));var u={};return pR(c,l,(function(t,n){var o,r=t.rule,a=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return eR({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(o){void 0===o&&(o=[]);var c=Array.isArray(o)?o:[o];!l.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(hR(r,i));if(l.first&&d.length)return u[r.field]=1,n(d);if(a){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(hR(r,i)):l.error&&(d=[l.error(r,sR(l.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=eR({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(s.bind(null,e))}));var f=new e(h);f.messages(l.messages),t.rule.options&&(t.rule.options.messages=l.messages,t.rule.options.error=l.error),f.validate(t.value,t.rule.options||l,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(a=a&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,c,t.source,l);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,l)}catch(d){console.error,l.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===o?c():!1===o?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},l=0;l3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!TR(e,t.slice(0,-1))?e:MR(e,t,n,o)}function ER(e){return PR(e)}function AR(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function DR(e,t){const n=Array.isArray(e)?[...e]:cl({},e);return t?(Object.keys(t).forEach((e=>{const o=n[e],r=t[e],i=AR(o)&&AR(r);n[e]=i?DR(o,r||{}):r})),n):n}function RR(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oDR(e,t)),e)}function zR(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return TR(e,t)}(e,t);n=function(e,t,n){return IR(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}kR.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");$R[e]=t},kR.warning=lR,kR.messages=CR,kR.validators=$R;const BR="'${name}' is not a valid ${type}",jR={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:BR,method:BR,array:BR,object:BR,number:BR,date:BR,boolean:BR,integer:BR,float:BR,regexp:BR,email:BR,url:BR,hex:BR},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var NR=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Eue){i(Eue)}}function a(e){try{s(o.throw(e))}catch(Eue){i(Eue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const _R=kR;function QR(e,t,n,o,r){return NR(this,void 0,void 0,(function*(){const i=cl({},n);delete i.ruleIndex,delete i.trigger;let l=null;i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const a=new _R({[e]:[i]}),s=RR({},jR,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},cl({},o)))}catch(p){c=p.errors?p.errors.map(((e,t)=>{let{message:n}=e;return sa(n)?yr(n,{key:`error_${t}`}):n})):[s.default()]}if(!c.length&&l)return(yield Promise.all(t.map(((t,n)=>QR(`${e}.${n}`,t,l,o,r))))).reduce(((e,t)=>[...e,...t]),[]);const u=cl(cl(cl({},n),{name:e,enum:(n.enum||[]).join(", ")}),r),d=c.map((e=>"string"==typeof e?function(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}(e,u):e));return d}))}function LR(e,t,n,o,r,i){const l=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=cl(cl({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n{r||o(...t)}))}));r=i&&"function"==typeof i.then&&"function"==typeof i.catch,r&&i.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:i}=t;return!!n==!!r?o-i:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>NR(this,void 0,void 0,(function*(){for(let e=0;eQR(l,t,e,o,i).then((t=>({errors:t,rule:e})))));s=(r?function(e){return NR(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((o=>{o.then((o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])}))}))}))}))}(e):function(e){return NR(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>[].concat(...e)))}))}(e)).then((e=>Promise.reject(e)))}return s.catch((e=>e)),s}const HR=Symbol("formContextKey"),FR=e=>{To(HR,e)},WR=()=>Mo(HR,{name:Lr((()=>{})),labelAlign:Lr((()=>"right")),vertical:Lr((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:Lr((()=>{})),rules:Lr((()=>{})),colon:Lr((()=>{})),labelWrap:Lr((()=>{})),labelCol:Lr((()=>{})),requiredMark:Lr((()=>!1)),validateTrigger:Lr((()=>{})),onValidate:()=>{},validateMessages:Lr((()=>jR))}),XR=Symbol("formItemPrefixContextKey"),YR=["xs","sm","md","lg","xl","xxl"],ZR=jn({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:i,wrap:l}=Mo(ZD,{gutter:Lr((()=>{})),wrap:Lr((()=>{})),supportFlexGap:Lr((()=>{}))}),{prefixCls:a,direction:s}=$d("col",e),[c,u]=qD(a),d=Lr((()=>{const{span:t,order:n,offset:r,push:i,pull:l}=e,c=a.value;let d={};return YR.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),d=cl(cl({},d),{[`${c}-${t}-${n.span}`]:void 0!==n.span,[`${c}-${t}-order-${n.order}`]:n.order||0===n.order,[`${c}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${c}-${t}-push-${n.push}`]:n.push||0===n.push,[`${c}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${c}-rtl`]:"rtl"===s.value})})),xl(c,{[`${c}-${t}`]:void 0!==t,[`${c}-order-${n}`]:n,[`${c}-offset-${r}`]:r,[`${c}-push-${i}`]:i,[`${c}-pull-${l}`]:l},d,o.class,u.value)})),p=Lr((()=>{const{flex:t}=e,n=r.value,o={};if(n&&n[0]>0){const e=n[0]/2+"px";o.paddingLeft=e,o.paddingRight=e}if(n&&n[1]>0&&!i.value){const e=n[1]/2+"px";o.paddingTop=e,o.paddingBottom=e}return t&&(o.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(t),!1!==l.value||o.minWidth||(o.minWidth=0)),o}));return()=>{var e;return c(br("div",sl(sl({},o),{},{class:d.value,style:[p.value,o.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),VR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function UR(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var i,l,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:p,labelAlign:h,colon:f,required:g,requiredMark:m}=cl(cl({},e),r),[v]=qa("Form"),b=null!==(i=e.label)&&void 0!==i?i:null===(l=n.label)||void 0===l?void 0:l.call(n);if(!b)return null;const{vertical:y,labelAlign:O,labelCol:w,labelWrap:S,colon:$}=WR(),x=p||(null==w?void 0:w.value)||{},C=`${u}-item-label`,k=xl(C,"left"===(h||(null==O?void 0:O.value))&&`${C}-left`,x.class,{[`${C}-wrap`]:!!S.value});let P=b;const T=!0===f||!1!==(null==$?void 0:$.value)&&!1!==f;if(T&&!y.value&&"string"==typeof b&&""!==b.trim()&&(P=b.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const t=br("span",{class:`${u}-item-tooltip`},[br(Tx,{title:e.tooltip},{default:()=>[br(qR,null,null)]})]);P=br(er,null,[P,n.tooltip?null===(a=n.tooltip)||void 0===a?void 0:a.call(n,{class:`${u}-item-tooltip`}):t])}"optional"!==m||g||(P=br(er,null,[P,br("span",{class:`${u}-item-optional`},[(null===(s=v.value)||void 0===s?void 0:s.optional)||(null===(c=Ka.Form)||void 0===c?void 0:c.optional)])]));const M=xl({[`${u}-item-required`]:g,[`${u}-item-required-mark-optional`]:"optional"===m,[`${u}-item-no-colon`]:!T});return br(ZR,sl(sl({},x),{},{class:k}),{default:()=>[br("label",{for:d,class:M,title:"string"==typeof b?b:"",onClick:e=>o("click",e)},[P])]})};JR.displayName="FormItemLabel",JR.inheritAttrs=!1;const ez=JR,tz=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},nz=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),oz=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rz=e=>{const{componentCls:t}=e;return{[e.componentCls]:cl(cl(cl({},Xu(e)),nz(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":cl({},oz(e,e.controlHeightSM)),"&-large":cl({},oz(e,e.controlHeightLG))})}},iz=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:cl(cl({},Xu(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:mS,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},lz=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},az=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},sz=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),cz=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:sz(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},uz=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:sz(e),[`@media (max-width: ${e.screenXSMax}px)`]:[cz(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:sz(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:sz(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:sz(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:sz(e)}}}},dz=Ku("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=Ju(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[rz(o),iz(o),tz(o),lz(o),az(o),uz(o),IS(o),mS]})),pz=jn({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=Mo(XR,{prefixCls:Lr((()=>""))}),i=Lr((()=>`${o.value}-item-explain`)),l=Lr((()=>!(!e.errors||!e.errors.length))),a=bt(r.value),[,s]=dz(o);return bn([l,r],(()=>{l.value&&(a.value=r.value)})),()=>{var t,r;const l=Kk(`${o.value}-show-help-item`),c=lm(`${o.value}-show-help-item`,l);return c.role="alert",c.class=[s.value,i.value,n.class,`${o.value}-show-help`],br(qr,sl(sl({},im(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[$n(br(Di,sl(sl({},c),{},{tag:"div"}),{default:()=>[null===(r=e.errors)||void 0===r?void 0:r.map(((e,t)=>br("div",{key:t,class:a.value?`${i.value}-${a.value}`:""},[e])))]}),[[gi,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}}),hz=jn({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=WR(),{wrapperCol:r}=o,i=cl({},o);var l;return delete i.labelCol,delete i.wrapperCol,FR(i),l={prefixCls:Lr((()=>e.prefixCls)),status:Lr((()=>e.status))},To(XR,l),()=>{var t,o,i;const{prefixCls:l,wrapperCol:a,marginBottom:s,onErrorVisibleChanged:c,help:u=(null===(t=n.help)||void 0===t?void 0:t.call(n)),errors:d=la(null===(o=n.errors)||void 0===o?void 0:o.call(n)),extra:p=(null===(i=n.extra)||void 0===i?void 0:i.call(n))}=e,h=`${l}-item`,f=a||(null==r?void 0:r.value)||{},g=xl(`${h}-control`,f.class);return br(ZR,sl(sl({},f),{},{class:g}),{default:()=>{var e;return br(er,null,[br("div",{class:`${h}-control-input`},[br("div",{class:`${h}-control-input-content`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])]),null!==s||d.length?br("div",{style:{display:"flex",flexWrap:"nowrap"}},[br(pz,{errors:d,help:u,class:`${h}-explain-connected`,onErrorVisibleChanged:c},null),!!s&&br("div",{style:{width:0,height:`${s}px`}},null)]):null,p?br("div",{class:`${h}-extra`},[p]):null])}})}}});ba("success","warning","error","validating","");const fz={success:E$,warning:B$,error:oy,validating:Hb};function gz(e,t,n){let o=e;const r=t;let i=0;try{for(let e=r.length;ie.name||e.prop)),p=yt([]),h=yt(!1),f=yt(),g=Lr((()=>ER(d.value))),m=Lr((()=>{if(g.value.length){const e=u.name.value,t=g.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),v=Lr((()=>(()=>{const e=u.model.value;return e&&d.value?gz(e,g.value,!0).v:void 0})())),b=yt(ew(v.value)),y=Lr((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:u.validateTrigger.value;return t=void 0===t?"change":t,PR(t)})),O=Lr((()=>{let t=u.rules.value;const n=e.rules,o=void 0!==e.required?{required:!!e.required,trigger:y.value}:[],r=gz(t,g.value);t=t?r.o[r.k]||r.v:[];const i=[].concat(n||t||[]);return ww(i,(e=>e.required))?i:i.concat(o)})),w=Lr((()=>{const t=O.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),S=yt();mn((()=>{S.value=e.validateStatus}));const $=Lr((()=>{let t={};return"string"==typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=cl(cl({},t),e.messageVariables)),t})),x=t=>{if(0===g.value.length)return;const{validateFirst:n=!1}=e,{triggerName:o}=t||{};let r=O.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;return!t&&!y.value.length||PR(t||y.value).includes(o)}))),!r.length)return Promise.resolve();const i=LR(g.value,v.value,r,cl({validateMessages:u.validateMessages.value},t),n,$.value);return S.value="validating",p.value=[],i.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===S.value){const t=e.filter((e=>e&&e.errors.length));S.value=t.length?"error":"success",p.value=t.map((e=>e.errors)),u.onValidate(d.value,!p.value.length,p.value.length?dt(p.value[0]):null)}})),i},C=()=>{x({triggerName:"blur"})},k=()=>{h.value?h.value=!1:x({triggerName:"change"})},P=()=>{S.value=e.validateStatus,h.value=!1,p.value=[]},T=()=>{var t;S.value=e.validateStatus,h.value=!0,p.value=[];const n=u.model.value||{},o=v.value,r=gz(n,g.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(t=b.value)&&void 0!==t?t:[]):r.o[r.k]=b.value,Ft((()=>{h.value=!1}))},M=Lr((()=>void 0===e.htmlFor?m.value:e.htmlFor)),I=()=>{const e=M.value;if(!e||!f.value)return;const t=f.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};r({onFieldBlur:C,onFieldChange:k,clearValidate:P,resetField:T}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lr((()=>!0));const n=bt(new Map);bn([t,n],(()=>{})),To(dy,e),To(py,{addFormItemField:(e,t)=>{n.value.set(e,t),n.value=new Map(n.value)},removeFormItemField:e=>{n.value.delete(e),n.value=new Map(n.value)}})}({id:m,onFieldBlur:()=>{e.autoLink&&C()},onFieldChange:()=>{e.autoLink&&k()},clearValidate:P},Lr((()=>!!(e.autoLink&&u.model.value&&d.value))));let E=!1;bn(d,(e=>{e?E||(E=!0,u.addField(i,{fieldValue:v,fieldId:m,fieldName:d,resetField:T,clearValidate:P,namePath:g,validateRules:x,rules:O})):(E=!1,u.removeField(i))}),{immediate:!0}),Kn((()=>{u.removeField(i)}));const A=function(e){const t=yt(e.value.slice());let n=null;return mn((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(p),D=Lr((()=>void 0!==e.validateStatus?e.validateStatus:A.value.length?"error":S.value)),R=Lr((()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:D.value&&e.hasFeedback,[`${l.value}-item-has-success`]:"success"===D.value,[`${l.value}-item-has-warning`]:"warning"===D.value,[`${l.value}-item-has-error`]:"error"===D.value,[`${l.value}-item-is-validating`]:"validating"===D.value,[`${l.value}-item-hidden`]:e.hidden}))),z=rt({});vy.useProvide(z),mn((()=>{let t;if(e.hasFeedback){const e=D.value&&fz[D.value];t=e?br("span",{class:xl(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${D.value}`)},[br(e,null,null)]):null}cl(z,{status:D.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const B=yt(null),j=yt(!1);Zn((()=>{bn(j,(()=>{j.value&&(()=>{if(c.value){const e=getComputedStyle(c.value);B.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const N=e=>{e||(B.value=null)};return()=>{var t,r;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);const i=null!==(r=e.help)&&void 0!==r?r:n.help?la(n.help()):null,s=!!(null!=i&&Array.isArray(i)&&i.length||A.value.length);return j.value=s,a(br("div",{class:[R.value,s?`${l.value}-item-with-help`:"",o.class],ref:c},[br(JD,sl(sl({},o),{},{class:`${l.value}-row`,key:"row"}),{default:()=>{var t,o;return br(er,null,[br(ez,sl(sl({},e),{},{htmlFor:M.value,required:w.value,requiredMark:u.requiredMark.value,prefixCls:l.value,onClick:I,label:e.label}),{label:n.label,tooltip:n.tooltip}),br(hz,sl(sl({},e),{},{errors:null!=i?PR(i):A.value,marginBottom:B.value,prefixCls:l.value,status:D.value,ref:f,help:i,extra:null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n),onErrorVisibleChanged:N}),{default:n.default})])}}),!!B.value&&br("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${B.value}px`}},null)]))}}});function bz(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,i)=>{e.forEach(((e,l)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[l]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}function yz(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function Oz(e){return null==e?[]:Array.isArray(e)?e:[e]}function wz(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let i=0;for(let l=r.length;i1&&void 0!==arguments[1]?arguments[1]:bt({}),n=arguments.length>2?arguments[2]:void 0;const o=ew(St(e)),r=rt({}),i=yt([]),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=Oz(e.trigger||"change");return Cw(n,t).length})):e};let a=null;const s=function(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=LR([e],t,o,cl({validateMessages:jR},i),!!i.validateFirst);return r[e]?(r[e].validateStatus="validating",l.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const i=t.filter((e=>e&&e.errors.length));r[e].validateStatus=i.length?"error":"success",r[e].help=i.length?i.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!i.length,i.length?dt(r[e].help[0]):null)}})),l):l.catch((e=>e))},c=(n,o)=>{let r=[],c=!0;n?r=Array.isArray(n)?n:[n]:(c=!1,r=i.value);const u=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const i=[],c={};for(let a=0;a({name:u,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:u,errors:t,warnings:n}):{name:u,errors:t,warnings:n}})))}const u=bz(i);a=u;const d=u.then((()=>a===u?Promise.resolve(c):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:c,errorFields:t,outOfDate:a!==u})}));return d.catch((e=>e)),d}(r,o||{},c);return u.catch((e=>e)),u};let u=o,d=!0;const p=e=>{const t=[];i.value.forEach((o=>{const r=wz(e,o,!1),i=wz(u,o,!1);!(d&&(null==n?void 0:n.immediate)&&r.isValid)&&em(r.v,i.v)||t.push(o)})),c(t,{trigger:"change"}),d=!1,u=ew(dt(e))},h=null==n?void 0:n.debounce;let f=!0;return bn(t,(()=>{i.value=t?Object.keys(St(t)):[],!f&&n&&n.validateOnRuleChange&&c(),f=!1}),{deep:!0,immediate:!0}),bn(i,(()=>{const e={};i.value.forEach((n=>{e[n]=cl({},r[n],{autoLink:!1,required:yz(St(t)[n])}),delete r[n]}));for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&delete r[t];cl(r,e)}),{immediate:!0}),bn(e,h&&h.wait?vw(p,h.wait,Ew(h,["wait"])):p,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{cl(St(e),cl(cl({},ew(o)),n)),Ft((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:yz(St(t)[e])}}))}))},validate:c,validateField:s,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let r=0;r{let t=[];t=e?Array.isArray(e)?e:[e]:i.value,t.forEach((e=>{r[e]&&cl(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:n,slots:o,expose:r,attrs:i}=t;const{prefixCls:l,direction:a,form:s,size:c,disabled:u}=$d("form",e),d=Lr((()=>""===e.requiredMark||e.requiredMark)),p=Lr((()=>{var t;return void 0!==d.value?d.value:s&&void 0!==(null===(t=s.value)||void 0===t?void 0:t.requiredMark)?s.value.requiredMark:!e.hideRequiredMark}));Sd(c),Xa(u);const h=Lr((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=s.value)||void 0===n?void 0:n.colon})),{validateMessages:f}=Mo(_a,{validateMessages:Lr((()=>{}))}),g=Lr((()=>cl(cl(cl({},jR),f.value),e.validateMessages))),[m,v]=dz(l),b=Lr((()=>xl(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:!1===p.value,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-${c.value}`]:c.value},v.value))),y=bt(),O={},w=e=>{const t=!!e,n=t?PR(e).map(ER):[];return t?Object.values(O).filter((e=>n.findIndex((t=>{return n=t,o=e.fieldName.value,em(PR(n),PR(o));var n,o}))>-1)):Object.values(O)},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=w(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&jd(o,cl({scrollMode:"if-needed",block:"nearest"},t))}},$=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(O).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),zR(e.model,t)}return zR(e.model,t)},x=(t,n)=>{if(Ts(),!e.model)return Ts(),Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?PR(t).map(ER):[],i=[];Object.values(O).forEach((e=>{var t;if(o||r.push(e.namePath.value),!(null===(t=e.rules)||void 0===t?void 0:t.value.length))return;const l=e.namePath.value;if(!o||function(e,t){return e&&e.some((e=>function(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}(e,t)))}(r,l)){const t=e.validateRules(cl({validateMessages:g.value},n));i.push(t.then((()=>({name:l,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}));const l=bz(i);y.value=l;const a=l.then((()=>y.value===l?Promise.resolve($(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:$(r),errorFields:t,outOfDate:y.value!==l})}));return a.catch((e=>e)),a},C=function(){return x(...arguments)},k=t=>{t.preventDefault(),t.stopPropagation(),n("submit",t),e.model&&x().then((e=>{n("finish",e)})).catch((t=>{(t=>{const{scrollToFirstError:o}=e;if(n("finishFailed",t),o&&t.errorFields.length){let e={};"object"==typeof o&&(e=o),S(t.errorFields[0].name,e)}})(t)}))};return r({resetFields:t=>{e.model?w(t).forEach((e=>{e.resetField()})):Ts()},clearValidate:e=>{w(e).forEach((e=>{e.clearValidate()}))},validateFields:x,getFieldsValue:$,validate:function(){return C(...arguments)},scrollToField:S}),FR({model:Lr((()=>e.model)),name:Lr((()=>e.name)),labelAlign:Lr((()=>e.labelAlign)),labelCol:Lr((()=>e.labelCol)),labelWrap:Lr((()=>e.labelWrap)),wrapperCol:Lr((()=>e.wrapperCol)),vertical:Lr((()=>"vertical"===e.layout)),colon:h,requiredMark:p,validateTrigger:Lr((()=>e.validateTrigger)),rules:Lr((()=>e.rules)),addField:(e,t)=>{O[e]=t},removeField:e=>{delete O[e]},onValidate:(e,t,o)=>{n("validate",e,t,o)},validateMessages:g}),bn((()=>e.rules),(()=>{e.validateOnRuleChange&&x()})),()=>{var e;return m(br("form",sl(sl({},i),{},{onSubmit:k,class:[b.value,i.class]}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}}),$z=Sz;$z.useInjectFormItemContext=gy,$z.ItemRest=my,$z.install=function(e){return e.component($z.name,$z),e.component($z.Item.name,$z.Item),e.component(my.name,my),e};const xz=new Hc("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Cz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:cl(cl({},Xu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:cl(cl({},Xu(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:cl(cl({},Xu(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:cl({},Vu(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:xz,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function kz(e,t){const n=Ju(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cz(n)]}const Pz=Ku("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[kz(n,e)]})),Tz=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,i=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[kz(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":cl(cl({},Wu),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},QS(e)]},Mz=Ku("Cascader",(e=>[Tz(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180}),Iz=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const i=[],l=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&i.push(" / ");let n=e[r.label];const a=typeof n;"string"!==a&&"number"!==a||(n=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[...e,t,n]),[]),r=[];let i=0;return o.forEach(((t,o)=>{const l=i+t.length;let a=e.slice(i,l);i=l,o%2==1&&(a=br("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),l,o)),i.push(n)})),i},Ez=jn({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Vl(cl(cl({},xd(RD(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:$p.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function}),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:i}=t;const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:p,getPopupContainer:h,renderEmpty:f,size:g,disabled:m}=$d("cascader",e),v=Lr((()=>d("select",e.prefixCls))),{compactSize:b,compactItemClassnames:y}=Hw(v,p),O=Lr((()=>b.value||g.value)),w=Wa(),S=Lr((()=>{var e;return null!==(e=m.value)&&void 0!==e?e:w.value})),[$,x]=YS(v),[C]=Mz(c),k=Lr((()=>"rtl"===p.value)),P=Lr((()=>{if(!e.showSearch)return e.showSearch;let t={render:Iz};return"object"==typeof e.showSearch&&(t=cl(cl({},t),e.showSearch)),t})),T=Lr((()=>xl(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:k.value},x.value))),M=bt();o({focus(){var e;null===(e=M.value)||void 0===e||e.focus()},blur(){var e;null===(e=M.value)||void 0===e||e.blur()}});const I=function(){for(var e=arguments.length,t=new Array(e),n=0;nvoid 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),D=Lr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft"));return()=>{var t,o;const{notFoundContent:i=(null===(t=r.notFoundContent)||void 0===t?void 0:t.call(r)),expandIcon:d=(null===(o=r.expandIcon)||void 0===o?void 0:o.call(r)),multiple:g,bordered:m,allowClear:b,choiceTransitionName:w,transitionName:R,id:z=l.id.value}=e,B=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:I,onBlur:E,ref:M}),r)))}}}),Az=ya(cl(Ez,{SHOW_CHILD:QA,SHOW_PARENT:_A})),Dz=Symbol("CheckboxGroupContext");var Rz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(null==f?void 0:f.disabled.value)||u.value));mn((()=>{!e.skipGroup&&f&&f.registerValue(g,e.value)})),Kn((()=>{f&&f.cancelValue(g)})),Zn((()=>{Ts(!(void 0===e.checked&&!f&&void 0!==e.value))}));const v=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),l.onFieldChange()},b=bt();return i({focus:()=>{var e;null===(e=b.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=b.value)||void 0===e||e.blur()}}),()=>{var t;const i=ql(null===(t=r.default)||void 0===t?void 0:t.call(r)),{indeterminate:u,skipGroup:g,id:y=l.id.value}=e,O=Rz(e,["indeterminate","skipGroup","id"]),{onMouseenter:w,onMouseleave:S,onInput:$,class:x,style:C}=o,k=Rz(o,["onMouseenter","onMouseleave","onInput","class","style"]),P=cl(cl(cl(cl({},O),{id:y,prefixCls:s.value}),k),{disabled:m.value});f&&!g?(P.onChange=function(){for(var t=arguments.length,o=new Array(t),r=0;r`${a.value}-group`)),[u,d]=Pz(c),p=bt((void 0===e.value?e.defaultValue:e.value)||[]);bn((()=>e.value),(()=>{p.value=e.value||[]}));const h=Lr((()=>e.options.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e)))),f=bt(Symbol()),g=bt(new Map),m=bt(new Map);return bn(f,(()=>{const e=new Map;for(const t of g.value.values())e.set(t,!0);m.value=e})),To(Dz,{cancelValue:e=>{g.value.delete(e),f.value=Symbol()},registerValue:(e,t)=>{g.value.set(e,t),f.value=Symbol()},toggleOption:t=>{const n=p.value.indexOf(t.value),o=[...p.value];-1===n?o.push(t.value):o.splice(n,1),void 0===e.value&&(p.value=o);const i=o.filter((e=>m.value.has(e))).sort(((e,t)=>h.value.findIndex((t=>t.value===e))-h.value.findIndex((e=>e.value===t))));r("update:value",i),r("change",i),l.onFieldChange()},mergedValue:p,name:Lr((()=>e.name)),disabled:Lr((()=>e.disabled))}),i({mergedValue:p}),()=>{var t;const{id:r=l.id.value}=e;let i=null;return h.value&&h.value.length>0&&(i=h.value.map((t=>{var o;return br(zz,{prefixCls:a.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==p.value.indexOf(t.value),onChange:t.onChange,class:`${c.value}-item`},{default:()=>[void 0!==n.label?null===(o=n.label)||void 0===o?void 0:o.call(n,t):t.label]})}))),u(br("div",sl(sl({},o),{},{class:[c.value,{[`${c.value}-rtl`]:"rtl"===s.value},o.class,d.value],id:r}),[i||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}});zz.Group=Bz,zz.install=function(e){return e.component(zz.name,zz),e.component(Bz.name,Bz),e};const jz={useBreakpoint:ex},Nz=ya(ZR),_z=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:i,commentFontSizeSm:l,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:h}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:l,lineHeight:"18px"},"&-name":{color:a,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:h,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:l,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},Qz=Ku("Comment",(e=>{const t=Ju(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[_z(t)]})),Lz=ya(jn({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:{actions:Array,author:$p.any,avatar:$p.any,content:$p.any,prefixCls:String,datetime:$p.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("comment",e),[l,a]=Qz(r),s=(e,t)=>br("div",{class:`${e}-nested`},[t]),c=e=>e&&e.length?e.map(((e,t)=>br("li",{key:`action-${t}`},[e]))):null;return()=>{var t,u,d,p,h,f,g,m,v,b,y;const O=r.value,w=null!==(t=e.actions)&&void 0!==t?t:null===(u=n.actions)||void 0===u?void 0:u.call(n),S=null!==(d=e.author)&&void 0!==d?d:null===(p=n.author)||void 0===p?void 0:p.call(n),$=null!==(h=e.avatar)&&void 0!==h?h:null===(f=n.avatar)||void 0===f?void 0:f.call(n),x=null!==(g=e.content)&&void 0!==g?g:null===(m=n.content)||void 0===m?void 0:m.call(n),C=null!==(v=e.datetime)&&void 0!==v?v:null===(b=n.datetime)||void 0===b?void 0:b.call(n),k=br("div",{class:`${O}-avatar`},["string"==typeof $?br("img",{src:$,alt:"comment-avatar"},null):$]),P=w?br("ul",{class:`${O}-actions`},[c(Array.isArray(w)?w:[w])]):null,T=br("div",{class:`${O}-content-author`},[S&&br("span",{class:`${O}-content-author-name`},[S]),C&&br("span",{class:`${O}-content-author-time`},[C])]),M=br("div",{class:`${O}-content`},[T,br("div",{class:`${O}-content-detail`},[x]),P]),I=br("div",{class:`${O}-inner`},[k,M]),E=ql(null===(y=n.default)||void 0===y?void 0:y.call(n));return l(br("div",sl(sl({},o),{},{class:[O,{[`${O}-rtl`]:"rtl"===i.value},o.class,a.value]}),[I,E&&E.length?s(O,E):null]))}}}));let Hz=cl({},Ka.Modal);const Fz="internalMark",Wz=jn({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Ts(e.ANT_MARK__===Fz);const o=rt({antLocale:cl(cl({},e.locale),{exist:!0}),ANT_MARK__:Fz});return To("localeData",o),bn((()=>e.locale),(e=>{var t;t=e&&e.Modal,Hz=t?cl(cl({},Hz),t):cl({},Ka.Modal),o.antLocale=cl(cl({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});Wz.install=function(e){return e.component(Wz.name,Wz),e};const Xz=ya(Wz),Yz=jn({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let n,{attrs:o,slots:r}=t,i=!1;const l=Lr((()=>void 0===e.duration?4.5:e.duration)),a=()=>{l.value&&!i&&(n=setTimeout((()=>{c()}),1e3*l.value))},s=()=>{n&&(clearTimeout(n),n=null)},c=t=>{t&&t.stopPropagation(),s();const{onClose:n,noticeKey:o}=e;n&&n(o)};return Zn((()=>{a()})),Gn((()=>{i=!0,s()})),bn([l,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[i,l,c]=t;(n!==i||o!==l||r!==c&&c)&&(s(),a())}),{flush:"post"}),()=>{var t,n;const{prefixCls:i,closable:l,closeIcon:u=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r)),onClick:d,holder:p}=e,{class:h,style:f}=o,g=`${i}-notice`,m=Object.keys(o).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=o[t]),e)),{}),v=br("div",sl({class:xl(g,h,{[`${g}-closable`]:l}),style:f,onMouseenter:s,onMouseleave:a,onClick:d},m),[br("div",{class:`${g}-content`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),l?br("a",{tabindex:0,onClick:c,class:`${g}-close`},[u||br("span",{class:`${g}-close-x`},null)]):null]);return p?br(qo,{to:p},{default:()=>v}):v}}});let Zz=0;const Vz=Date.now();function Uz(){const e=Zz;return Zz+=1,`rcNotification_${Vz}_${e}`}const Kz=jn({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=new Map,l=bt([]),a=Lr((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),lm(o)})),s=e=>{l.value=l.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return o({add:(t,n)=>{const o=t.key||Uz(),r=cl(cl({},t),{key:o}),{maxCount:i}=e,a=l.value.map((e=>e.notice.key)).indexOf(o),s=l.value.concat();-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&l.value.length>=i&&(r.key=s[0].notice.key,r.updateMark=Uz(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),l.value=s},remove:s,notices:l}),()=>{var t;const{prefixCls:o,closeIcon:c=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:o}))}=e,u=l.value.map(((t,n)=>{let{notice:r,holderCallback:a}=t;const u=n===l.value.length-1?r.updateMark:void 0,{key:d,userPassKey:p}=r,{content:h}=r,f=cl(cl(cl({prefixCls:o,closeIcon:"function"==typeof c?c({prefixCls:o}):c},r),r.props),{key:d,noticeKey:p||d,updateMark:u,onClose:e=>{var t;s(e),null===(t=r.onClose)||void 0===t||t.call(r)},onClick:r.onClick});return a?br("div",{key:d,class:`${o}-hook-holder`,ref:e=>{void 0!==d&&(e?(i.set(d,e),a(e,f)):i.delete(d))}},null):br(Yz,sl(sl({},f),{},{class:xl(f.class,e.hashId)}),{default:()=>["function"==typeof h?h({prefixCls:o}):h]})})),d={[o]:1,[n.class]:!!n.class,[e.hashId]:!0};return br("div",{class:d,style:n.style||{top:"65px",left:"50%"}},[br(Di,sl({tag:"div"},a.value),{default:()=>[u]})])}}});Kz.newInstance=function(e,t){const n=e||{},{name:o="notification",getContainer:r,appContext:i,prefixCls:l,rootPrefixCls:a,transitionName:s,hasTransitionName:c,useStyle:u}=n,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);roj.getPrefixCls(o,l))),[,h]=u(d);return Zn((()=>{t({notice(e){var t;null===(t=i.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=i.value)||void 0===t||t.remove(e)},destroy(){Fi(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:i})})),()=>{const e=oj,t=e.getRootPrefixCls(a,d.value),n=c?s:`${d.value}-${s}`;return br(aj,sl(sl({},e),{},{prefixCls:t}),{default:()=>[br(Kz,sl(sl({ref:i},r),{},{prefixCls:d.value,transitionName:n,hashId:h.value}),null)]})}}}),f=br(h,d);f.appContext=i||f.appContext,Fi(f,p)};const Gz=Kz;let qz=0;const Jz=Date.now();function eB(){const e=qz;return qz+=1,`rcNotification_${Jz}_${e}`}const tB=jn({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,i=Lr((()=>e.notices)),l=Lr((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return lm(t)})),a=bt({});bn(i,(()=>{const t={};Object.keys(a.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),a.value=t}));const s=Lr((()=>Object.keys(a.value)));return()=>{var t;const{prefixCls:c,closeIcon:u=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o,{prefixCls:c}))}=e,d=s.value.map((t=>{var o,s;const d=a.value[t],p=null===(o=e.getClassName)||void 0===o?void 0:o.call(e,t),h=null===(s=e.getStyles)||void 0===s?void 0:s.call(e,t),f=d.map(((t,n)=>{let{notice:o,holderCallback:l}=t;const a=n===i.value.length-1?o.updateMark:void 0,{key:s,userPassKey:d}=o,{content:p}=o,h=cl(cl(cl({prefixCls:c,closeIcon:"function"==typeof u?u({prefixCls:c}):u},o),o.props),{key:s,noticeKey:d||s,updateMark:a,onClose:t=>{var n;(t=>{e.remove(t)})(t),null===(n=o.onClose)||void 0===n||n.call(o)},onClick:o.onClick});return l?br("div",{key:s,class:`${c}-hook-holder`,ref:e=>{void 0!==s&&(e?(r.set(s,e),l(e,h)):r.delete(s))}},null):br(Yz,sl(sl({},h),{},{class:xl(h.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:c}):p]})})),g={[c]:1,[`${c}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[p]:!!p};return br("div",{key:t,class:g,style:n.style||h||{top:"65px",left:"50%"}},[br(Di,sl(sl({tag:"div"},l.value),{},{onAfterLeave:function(){var n;d.length>0||(Reflect.deleteProperty(a.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}}),{default:()=>[f]})])}));return br(gm,{getContainer:e.getContainer},{default:()=>[d]})}}}),nB=()=>document.body;let oB=0;function rB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=nB,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:l,onAllRemoved:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{c.value=c.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},p=Lr((()=>br(tB,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:d,getClassName:i,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null))),h=yt([]),f={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{t&&Object.keys(t).forEach((n=>{const o=t[n];void 0!==o&&(e[n]=o)}))})),e}(s,e);null!==t.key&&void 0!==t.key||(t.key=`vc-notification-${oB}`,oB+=1),h.value=[...h.value,{type:"open",config:t}]},close:e=>{h.value=[...h.value,{type:"close",key:e}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return bn(h,(()=>{h.value.length&&(h.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||eB(),o=cl(cl({},e),{key:n}),i=c.value.map((e=>e.notice.key)).indexOf(n),l=c.value.concat();-1!==i?l.splice(i,1,{notice:o,holderCallback:t}):(r&&c.value.length>=r&&(o.key=l[0].notice.key,o.updateMark=eB(),o.userPassKey=n,l.shift()),l.push({notice:o,holderCallback:t})),c.value=l})(e.config);break;case"close":d(e.key);break;case"destroy":c.value=[]}})),h.value=[])})),[f,()=>p.value]}const iB=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:h,borderRadiusLG:f,zIndexPopup:g,messageNoticeContentPadding:m}=e,v=new Hc("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),b=new Hc("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:cl(cl({},Xu(e)),{position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:m,background:r,borderRadius:f,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:l},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},lB=Ku("Message",(e=>{const t=Ju(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[iB(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),aB={info:br(L$,null,null),success:br(E$,null,null),error:br(oy,null,null),warning:br(B$,null,null),loading:br(Hb,null,null)},sB=jn({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return br("div",{class:xl(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||aB[e.type],br("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),cB=jn({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var o,r;const{getPrefixCls:i,getPopupContainer:l}=$d("message",e),a=Lr((()=>i("message",e.prefixCls))),[,s]=lB(a),c=br("span",{class:`${a.value}-close-x`},[br(qb,{class:`${a.value}-close-icon`},null)]),[u,d]=rB({getStyles:()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:8;return{left:"50%",transform:"translateX(-50%)",top:"number"==typeof n?`${n}px`:n}},prefixCls:a.value,getClassName:()=>xl(s.value,e.rtl?`${a.value}-rtl`:""),motion:()=>{var t;return _p({prefixCls:a.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},closable:!1,closeIcon:c,duration:null!==(o=e.duration)&&void 0!==o?o:3,getContainer:null!==(r=e.staticGetContainer)&&void 0!==r?r:l.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(cl(cl({},u),{prefixCls:a,hashId:s})),d}});let uB=0;function dB(e){const t=yt(null),n=Symbol("messageHolderKey"),o=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},r=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:i}=t.value,l=`${r}-notice`,{content:a,icon:s,type:c,key:u,class:d,onClose:p}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{t=e((()=>{n(!0)}))})),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}((e=>(n(cl(cl({},h),{key:f,content:()=>br(sB,{prefixCls:r,type:c,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:xl(c&&`${l}-${c}`,i,d),onClose:()=>{null==p||p(),e()}})),()=>{o(f)})))},i={open:r,destroy:e=>{var n;void 0!==e?o(e):null===(n=t.value)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{i[e]=(t,n,o)=>{let i,l,a;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(l=n,a=o);const s=cl(cl({onClose:a,duration:l},i),{type:e});return r(s)}})),[i,()=>br(cB,sl(sl({key:n},e),{},{ref:t}),null)]}function pB(e){return dB(e)}let hB,fB,gB,mB=3,vB=1,bB="",yB="move-up",OB=!1,wB=()=>document.body,SB=!1;const $B={info:L$,success:E$,error:oy,warning:B$,loading:Hb},xB=Object.keys($B),CB={open:function(e){const t=void 0!==e.duration?e.duration:mB,n=e.key||vB++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){fB?t(fB):Gz.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||bB,rootPrefixCls:e.rootPrefixCls,transitionName:yB,hasTransitionName:OB,style:{top:hB},getContainer:wB||e.getPopupContainer,maxCount:gB,name:"message",useStyle:lB},(e=>{fB?t(fB):(fB=e,t(e))}))}(e,(o=>{o.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const o=$B[e.type],r=o?br(o,null,null):"",i=xl(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===SB});return br("div",{class:i},["function"==typeof e.icon?e.icon():e.icon||r,br("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{fB&&fB.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(hB=e.top,fB=null),void 0!==e.duration&&(mB=e.duration),void 0!==e.prefixCls&&(bB=e.prefixCls),void 0!==e.getContainer&&(wB=e.getContainer,fB=null),void 0!==e.transitionName&&(yB=e.transitionName,fB=null,OB=!0),void 0!==e.maxCount&&(gB=e.maxCount,fB=null),void 0!==e.rtl&&(SB=e.rtl)},destroy(e){if(fB)if(e){const{removeNotice:t}=fB;t(e)}else{const{destroy:e}=fB;e(),fB=null}}};function kB(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(cl(cl({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}xB.forEach((e=>kB(CB,e))),CB.warn=CB.warning,CB.useMessage=pB;const PB=CB,TB=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},MB=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:l,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:h,notificationMarginEdge:f,motionDurationMid:g,motionEaseInOut:m,fontSize:v,lineHeight:b,width:y,notificationIconSize:O}=e,w=`${n}-notice`,S=new Hc("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),$=new Hc("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:cl(cl(cl(cl({},Xu(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:f,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:$,animationPlayState:"running"}}),TB(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[w]:{position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:i,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:p,borderRadius:l,boxShadow:o,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+O,fontSize:r},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+O,fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:O,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]},IB=Ku("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=Ju(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[MB(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function EB(e,t){return t||br("span",{class:`${e}-close-x`},[br(qb,{class:`${e}-close-icon`},null)])}br(L$,null,null),br(E$,null,null),br(oy,null,null),br(B$,null,null),br(Hb,null,null);const AB={success:E$,info:L$,error:oy,warning:B$};function DB(e){let{prefixCls:t,icon:n,type:o,message:r,description:i,btn:l}=e,a=null;return n?a=br("span",{class:`${t}-icon`},[$l(n)]):o&&(a=br(AB[o],{class:`${t}-icon ${t}-icon-${o}`},null)),br("div",{class:xl({[`${t}-with-icon`]:a}),role:"alert"},[a,br("div",{class:`${t}-message`},[r]),br("div",{class:`${t}-description`},[i]),l&&br("div",{class:`${t}-btn`},[l])])}function RB(e,t,n){let o;switch(t="number"==typeof t?`${t}px`:t,n="number"==typeof n?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}const zB=jn({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:o,getPopupContainer:r}=$d("notification",e),i=Lr((()=>e.prefixCls||o("notification"))),[,l]=IB(i),[a,s]=rB({prefixCls:i.value,getStyles:t=>{var n,o;return RB(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>xl(l.value,{[`${i.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(i.value),closable:!0,closeIcon:EB(i.value),duration:4.5,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=r.value)||void 0===n?void 0:n.call(r))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(cl(cl({},a),{prefixCls:i.value,hashId:l})),s}});function BB(e){const t=yt(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,i=`${o}-notice`,{message:l,description:a,icon:s,type:c,btn:u,class:d}=e;return n(cl(cl({placement:"topRight"},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(DB,{prefixCls:i,icon:"function"==typeof s?s():s,type:c,message:"function"==typeof l?l():l,description:"function"==typeof a?a():a,btn:"function"==typeof u?u():u},null),class:xl(c&&`${i}-${c}`,r,d)}))},r={open:o,destroy:e=>{var n,o;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(o=t.value)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>o(cl(cl({},t),{type:e}))})),[r,()=>br(zB,sl(sl({key:n},e),{},{ref:t}),null)]}function jB(e){return BB(e)}const NB={};let _B,QB=4.5,LB="24px",HB="24px",FB="",WB="topRight",XB=()=>document.body,YB=null,ZB=!1;const VB={success:d$,info:w$,error:k$,warning:m$},UB={open:function(e){const{icon:t,type:n,description:o,message:r,btn:i}=e,l=void 0===e.duration?QB:e.duration;!function(e,t){let{prefixCls:n,placement:o=WB,getContainer:r=XB,top:i,bottom:l,closeIcon:a=YB,appContext:s}=e;const{getPrefixCls:c}=ij(),u=c("notification",n||FB),d=`${u}-${o}-${ZB}`,p=NB[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const h=xl(`${u}-${o}`,{[`${u}-rtl`]:!0===ZB});Gz.newInstance({name:"notification",prefixCls:n||FB,useStyle:IB,class:h,style:RB(o,null!=i?i:LB,null!=l?l:HB),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return br("span",{class:`${t}-close-x`},[$l(a,{},br(qb,{class:`${t}-close-icon`},null))])},maxCount:_B,hasTransitionName:!0},(e=>{NB[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:l}=e;const a=`${l}-notice`;let s=null;if(t)s=()=>br("span",{class:`${a}-icon`},[$l(t)]);else if(n){const e=VB[n];s=()=>br(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return br("div",{class:s?`${a}-with-icon`:""},[s&&s(),br("div",{class:`${a}-message`},[!o&&s?br("span",{class:`${a}-message-single-line-auto-margin`},null):null,$l(r)]),br("div",{class:`${a}-description`},[$l(o)]),i?br("span",{class:`${a}-btn`},[$l(i)]):null])},duration:l,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(NB).forEach((t=>Promise.resolve(NB[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:i,closeIcon:l,prefixCls:a}=e;void 0!==a&&(FB=a),void 0!==t&&(QB=t),void 0!==n&&(WB=n),void 0!==o&&(HB="number"==typeof o?`${o}px`:o),void 0!==r&&(LB="number"==typeof r?`${r}px`:r),void 0!==i&&(XB=i),void 0!==l&&(YB=l),void 0!==e.rtl&&(ZB=e.rtl),void 0!==e.maxCount&&(_B=e.maxCount)},destroy(){Object.keys(NB).forEach((e=>{Promise.resolve(NB[e]).then((e=>{e.destroy()})),delete NB[e]}))}};["success","info","warning","error"].forEach((e=>{UB[e]=t=>UB.open(cl(cl({},t),{type:e}))})),UB.warn=UB.warning,UB.useNotification=jB;const KB=UB,GB=`-ant-${Date.now()}-${Math.random()}`;function qB(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new mu(e),i=$u(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new mu(t.primaryColor),i=$u(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const l=new mu(i[0]);n["primary-color-active-deprecated-f-30"]=o(l,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(l,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);ds()?ws(n,`${GB}-dynamic-theme`):Ts()}const JB=e=>{const[t,n]=ad();return Lc(Lr((()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))};function ej(){return oj.prefixCls||"ant"}function tj(){return oj.iconPrefixCls||Na}const nj=rt({}),oj=rt({});let rj;mn((()=>{cl(oj,nj),oj.prefixCls=ej(),oj.iconPrefixCls=tj(),oj.getPrefixCls=(e,t)=>t||(e?`${oj.prefixCls}-${e}`:oj.prefixCls),oj.getRootPrefixCls=()=>oj.prefixCls?oj.prefixCls:ej()}));const ij=()=>({getPrefixCls:(e,t)=>t||(e?`${ej()}-${e}`:ej()),getIconPrefixCls:tj,getRootPrefixCls:()=>oj.prefixCls?oj.prefixCls:ej()}),lj=jn({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:{iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:wa(),input:wa(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:wa(),pageHeader:wa(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:wa(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:wa(),pagination:wa(),theme:wa(),select:wa()},setup(e,t){let{slots:n}=t;const o=Ha(),r=Lr((()=>e.iconPrefixCls||o.iconPrefixCls.value||Na)),i=Lr((()=>r.value!==o.iconPrefixCls.value)),l=Lr((()=>{var t;return e.csp||(null===(t=o.csp)||void 0===t?void 0:t.value)})),a=JB(r),s=function(e,t){const n=Lr((()=>(null==e?void 0:e.value)||{})),o=Lr((()=>!1!==n.value.inherit&&(null==t?void 0:t.value)?t.value:od));return Lr((()=>{if(!(null==e?void 0:e.value))return null==t?void 0:t.value;const r=cl({},o.value.components);return Object.keys(e.value.components||{}).forEach((t=>{r[t]=cl(cl({},r[t]),e.value.components[t])})),cl(cl(cl({},o.value),n.value),{token:cl(cl({},o.value.token),n.value.token),components:r})}))}(Lr((()=>e.theme)),Lr((()=>{var e;return null===(e=o.theme)||void 0===e?void 0:e.value}))),c=Lr((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),u=Lr((()=>{var t;return e.locale||(null===(t=o.locale)||void 0===t?void 0:t.value)}));bn(u,(()=>{nj.locale=u.value}),{immediate:!0});const d=Lr((()=>{var t;return e.direction||(null===(t=o.direction)||void 0===t?void 0:t.value)})),p=Lr((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=o.space)||void 0===n?void 0:n.value})),h=Lr((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=o.virtual)||void 0===n?void 0:n.value})),f=Lr((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),g=Lr((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=o.getTargetContainer)||void 0===t?void 0:t.value})),m=Lr((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=o.getPopupContainer)||void 0===t?void 0:t.value})),v=Lr((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=o.pageHeader)||void 0===t?void 0:t.value})),b=Lr((()=>{var t;return void 0!==e.input?e.input:null===(t=o.input)||void 0===t?void 0:t.value})),y=Lr((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=o.pagination)||void 0===t?void 0:t.value})),O=Lr((()=>{var t;return void 0!==e.form?e.form:null===(t=o.form)||void 0===t?void 0:t.value})),w=Lr((()=>{var t;return void 0!==e.select?e.select:null===(t=o.select)||void 0===t?void 0:t.value})),S=Lr((()=>e.componentSize)),$=Lr((()=>e.componentDisabled)),x={csp:l,autoInsertSpaceInButton:c,locale:u,direction:d,space:p,virtual:h,dropdownMatchSelectWidth:f,getPrefixCls:(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const i=r||o.getPrefixCls("");return t?`${i}-${t}`:i},iconPrefixCls:r,theme:Lr((()=>{var e,t;return null!==(e=s.value)&&void 0!==e?e:null===(t=o.theme)||void 0===t?void 0:t.value})),renderEmpty:t=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||yd)(t),getTargetContainer:g,getPopupContainer:m,pageHeader:v,input:b,pagination:y,form:O,select:w,componentSize:S,componentDisabled:$,transformCellText:Lr((()=>e.transformCellText))},C=Lr((()=>{const e=s.value||{},{algorithm:t,token:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0)?As(t):void 0;return cl(cl({},o),{theme:r,token:cl(cl({},Eu),n)})})),k=Lr((()=>{var t,n;let o={};return u.value&&(o=(null===(t=u.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Ka.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=cl(cl({},o),e.form.validateMessages)),o}));return(e=>{To(Qa,e)})(x),To(_a,{validateMessages:k}),Sd(S),Xa($),mn((()=>{d.value&&(PB.config({rtl:"rtl"===d.value}),KB.config({rtl:"rtl"===d.value}))})),()=>br(Ga,{children:(t,o,r)=>(t=>{var o,r;let l=i.value?a(null===(o=n.default)||void 0===o?void 0:o.call(n)):null===(r=n.default)||void 0===r?void 0:r.call(n);if(e.theme){const e=function(){return l}();l=br(ld,{value:C.value},{default:()=>[e]})}return br(Xz,{locale:u.value||t,ANT_MARK__:Fz},{default:()=>[l]})})(r)},null)}});lj.config=e=>{rj&&rj(),rj=mn((()=>{cl(nj,rt(e)),cl(oj,rt(e))})),e.theme&&qB(ej(),e.theme)},lj.install=function(e){e.component(lj.name,lj)};const aj=lj,sj=(e,t)=>{let{attrs:n,slots:o}=t;return br(WC,sl(sl({size:"small",type:"primary"},e),n),o)},cj=(e,t,n)=>{const o=yl(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},uj=e=>Fu(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),dj=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,l=t-n;return{[r]:cl(cl({},Xu(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},pj=Ku("Tag",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,i=Math.round(t*n),l=Ju(e,{tagFontSize:e.fontSizeSM,tagLineHeight:i-2*o,tagDefaultBg:e.colorFillAlter,tagDefaultColor:e.colorText,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[dj(l),uj(l),cj(l,"success","Success"),cj(l,"processing","Info"),cj(l,"error","Error"),cj(l,"warning","Warning")]})),hj=jn({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i}=$d("tag",e),[l,a]=pj(i),s=t=>{const{checked:n}=e;o("update:checked",!n),o("change",!n),o("click",t)},c=Lr((()=>xl(i.value,a.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked})));return()=>{var e;return l(br("span",sl(sl({},r),{},{class:[c.value,r.class],onClick:s}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),fj=jn({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:$p.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Oa(),"onUpdate:visible":Function,icon:$p.any,bordered:{type:Boolean,default:!0}},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i,direction:l}=$d("tag",e),[a,s]=pj(i),c=yt(!0);mn((()=>{void 0!==e.visible&&(c.value=e.visible)}));const u=t=>{t.stopPropagation(),o("update:visible",!1),o("close",t),t.defaultPrevented||void 0===e.visible&&(c.value=!1)},d=Lr((()=>{return Sx(e.color)||(t=e.color,wx.includes(t));var t})),p=Lr((()=>xl(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!c.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-borderless`]:!e.bordered}))),h=e=>{o("click",e)};return()=>{var t,o,l;const{icon:s=(null===(t=n.icon)||void 0===t?void 0:t.call(n)),color:c,closeIcon:f=(null===(o=n.closeIcon)||void 0===o?void 0:o.call(n)),closable:g=!1}=e,m={backgroundColor:c&&!d.value?c:void 0},v=s||null,b=null===(l=n.default)||void 0===l?void 0:l.call(n),y=v?br(er,null,[v,br("span",null,[b])]):b,O=void 0!==e.onClick,w=br("span",sl(sl({},r),{},{onClick:h,class:[p.value,r.class],style:[m,r.style]}),[y,g?f?br("span",{class:`${i.value}-close-icon`,onClick:u},[f]):br(qb,{class:`${i.value}-close-icon`,onClick:u},null):null]);return a(O?br(lC,null,{default:()=>[w]}):w)}}});fj.CheckableTag=hj,fj.install=function(e){return e.component(fj.name,fj),e.component(hj.name,hj),e};const gj=fj,mj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function vj(e){for(var t=1;tv.value||f.value)),[O,w]=pI(d),S=bt();i({focus:()=>{var e;null===(e=S.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}});const $=t=>s.valueFormat?e.toString(t,s.valueFormat):t,x=(e,t)=>{const n=$(e);a("update:value",n),a("change",n,t),c.onFieldChange()},C=e=>{a("update:open",e),a("openChange",e)},k=e=>{a("focus",e)},P=e=>{a("blur",e),c.onFieldBlur()},T=(e,t)=>{const n=$(e);a("panelChange",n,t)},M=e=>{const t=$(e);a("ok",t)},[I]=qa("DatePicker",Va),E=Lr((()=>s.value?s.valueFormat?e.toDate(s.value,s.valueFormat):s.value:""===s.value?void 0:s.value)),A=Lr((()=>s.defaultValue?s.valueFormat?e.toDate(s.defaultValue,s.valueFormat):s.defaultValue:""===s.defaultValue?void 0:s.defaultValue)),D=Lr((()=>s.defaultPickerValue?s.valueFormat?e.toDate(s.defaultPickerValue,s.valueFormat):s.defaultPickerValue:""===s.defaultPickerValue?void 0:s.defaultPickerValue));return()=>{var t,o,i,a,f,v;const $=cl(cl({},I.value),s.locale),R=cl(cl({},s),l),{bordered:z=!0,placeholder:B,suffixIcon:j=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),showToday:N=!0,transitionName:_,allowClear:Q=!0,dateRender:L=r.dateRender,renderExtraFooter:H=r.renderExtraFooter,monthCellRender:F=r.monthCellRender||s.monthCellContentRender||r.monthCellContentRender,clearIcon:W=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:X=c.id.value}=R,Y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rm.value||h.value)),[y,O]=pI(u),w=bt();o({focus:()=>{var e;null===(e=w.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=w.value)||void 0===e||e.blur()}});const S=t=>a.valueFormat?e.toString(t,a.valueFormat):t,$=(e,t)=>{const n=S(e);l("update:value",n),l("change",n,t),s.onFieldChange()},x=e=>{l("update:open",e),l("openChange",e)},C=e=>{l("focus",e)},k=e=>{l("blur",e),s.onFieldBlur()},P=(e,t)=>{const n=S(e);l("panelChange",n,t)},T=e=>{const t=S(e);l("ok",t)},M=(e,t,n)=>{const o=S(e);l("calendarChange",o,t,n)},[I]=qa("DatePicker",Va),E=Lr((()=>a.value&&a.valueFormat?e.toDate(a.value,a.valueFormat):a.value)),A=Lr((()=>a.defaultValue&&a.valueFormat?e.toDate(a.defaultValue,a.valueFormat):a.defaultValue)),D=Lr((()=>a.defaultPickerValue&&a.valueFormat?e.toDate(a.defaultPickerValue,a.valueFormat):a.defaultPickerValue));return()=>{var t,n,o,l,h,m,S;const R=cl(cl({},I.value),a.locale),z=cl(cl({},a),i),{prefixCls:B,bordered:j=!0,placeholder:N,suffixIcon:_=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),picker:Q="date",transitionName:L,allowClear:H=!0,dateRender:F=r.dateRender,renderExtraFooter:W=r.renderExtraFooter,separator:X=(null===(n=r.separator)||void 0===n?void 0:n.call(r)),clearIcon:Y=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:Z=s.id.value}=z,V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(e.component(Hj.name,Hj),e.component(Vj.name,Vj),e.component(Wj.name,Wj),e.component(Fj.name,Fj),e.component(Zj.name,Zj),e)});function Kj(e){return null!=e}const Gj=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:i,bordered:l,label:a,content:s,colon:c}=e,u=n;return l?br(u,{class:[{[`${t}-item-label`]:Kj(a),[`${t}-item-content`]:Kj(s)}],colSpan:o},{default:()=>[Kj(a)&&br("span",{style:r},[a]),Kj(s)&&br("span",{style:i},[s])]}):br(u,{class:[`${t}-item`],colSpan:o},{default:()=>[br("div",{class:`${t}-item-container`},[(a||0===a)&&br("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||0===s)&&br("span",{class:`${t}-item-content`,style:i},[s])])]})},qj=e=>{const t=(e,t,n)=>{let{colon:o,prefixCls:r,bordered:i}=t,{component:l,type:a,showLabel:s,showContent:c,labelStyle:u,contentStyle:d}=n;return e.map(((e,t)=>{var n,p;const h=e.props||{},{prefixCls:f=r,span:g=1,labelStyle:m=h["label-style"],contentStyle:v=h["content-style"],label:b=(null===(p=null===(n=e.children)||void 0===n?void 0:n.label)||void 0===p?void 0:p.call(n))}=h,y=Jl(e),O=function(e){const t=((pr(e)?e.props:e.$attrs)||{}).class||{};let n={};return"string"==typeof t?t.split(" ").forEach((e=>{n[e.trim()]=!0})):Array.isArray(t)?xl(t).split(" ").forEach((e=>{n[e.trim()]=!0})):n=cl(cl({},n),t),n}(e),w=ra(e),{key:S}=e;return"string"==typeof l?br(Gj,{key:`${a}-${String(S)||t}`,class:O,style:w,labelStyle:cl(cl({},u),m),contentStyle:cl(cl({},d),v),span:g,colon:o,component:l,itemPrefixCls:f,bordered:i,label:s?b:null,content:c?y:null},null):[br(Gj,{key:`label-${String(S)||t}`,class:O,style:cl(cl(cl({},u),w),m),span:1,colon:o,component:l[0],itemPrefixCls:f,bordered:i,label:b},null),br(Gj,{key:`content-${String(S)||t}`,class:O,style:cl(cl(cl({},d),w),v),span:2*g-1,component:l[1],itemPrefixCls:f,bordered:i,content:y},null)]}))},{prefixCls:n,vertical:o,row:r,index:i,bordered:l}=e,{labelStyle:a,contentStyle:s}=Mo(iN,{labelStyle:bt({}),contentStyle:bt({})});return o?br(er,null,[br("tr",{key:`label-${i}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),br("tr",{key:`content-${i}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):br("tr",{key:i,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},Jj=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},eN=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:l}=e;return{[t]:cl(cl(cl({},Xu(e)),Jj(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:cl(cl({},Wu),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},tN=Ku("Descriptions",(e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,a=Ju(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:e.padding,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:e.marginXS,descriptionsItemLabelColonMarginLeft:e.marginXXS/2});return[eN(a)]}));$p.any;const nN=jn({compatConfig:{MODE:3},name:"ADescriptionsItem",props:{prefixCls:String,label:$p.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}},setup(e,t){let{slots:n}=t;return()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),oN={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function rN(e,t,n){let o=e;return(void 0===n||n>t)&&(o=Yh(e,{span:t}),Ts()),o}const iN=Symbol("descriptionsContext"),lN=jn({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:$p.any,extra:$p.any,column:{type:[Number,Object],default:()=>oN},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}},slots:Object,Item:nN,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("descriptions",e);let l;const a=bt({}),[s,c]=tN(r),u=J$();Yn((()=>{l=u.value.subscribe((t=>{"object"==typeof e.column&&(a.value=t)}))})),Kn((()=>{u.value.unsubscribe(l)})),To(iN,{labelStyle:Tt(e,"labelStyle"),contentStyle:Tt(e,"contentStyle")});const d=Lr((()=>function(e,t){if("number"==typeof e)return e;if("object"==typeof e)for(let n=0;n{var t,l,a;const{size:u,bordered:p=!1,layout:h="horizontal",colon:f=!0,title:g=(null===(t=n.title)||void 0===t?void 0:t.call(n)),extra:m=(null===(l=n.extra)||void 0===l?void 0:l.call(n))}=e,v=function(e,t){const n=ql(e),o=[];let r=[],i=t;return n.forEach(((e,l)=>{var a;const s=null===(a=e.props)||void 0===a?void 0:a.span,c=s||1;if(l===n.length-1)return r.push(rN(e,i,s)),void o.push(r);cbr(qj,{key:t,index:t,colon:f,prefixCls:r.value,vertical:"vertical"===h,bordered:p,row:e},null)))])])])]))}}});lN.install=function(e){return e.component(lN.name,lN),e.component(lN.Item.name,lN.Item),e};const aN=lN,sN=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:cl(cl({},Xu(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},cN=Ku("Divider",(e=>{const t=Ju(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[sN(t)]}),{sizePaddingEdgeHorizontal:0}),uN=ya(jn({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("divider",e),[l,a]=cN(r),s=Lr((()=>"left"===e.orientation&&null!=e.orientationMargin)),c=Lr((()=>"right"===e.orientation&&null!=e.orientationMargin)),u=Lr((()=>{const{type:t,dashed:n,plain:o}=e,l=r.value;return{[l]:!0,[a.value]:!!a.value,[`${l}-${t}`]:!0,[`${l}-dashed`]:!!n,[`${l}-plain`]:!!o,[`${l}-rtl`]:"rtl"===i.value,[`${l}-no-default-orientation-margin-left`]:s.value,[`${l}-no-default-orientation-margin-right`]:c.value}})),d=Lr((()=>{const t="number"==typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return cl(cl({},s.value&&{marginLeft:t}),c.value&&{marginRight:t})})),p=Lr((()=>e.orientation.length>0?"-"+e.orientation:e.orientation));return()=>{var e;const t=ql(null===(e=n.default)||void 0===e?void 0:e.call(n));return l(br("div",sl(sl({},o),{},{class:[u.value,t.length?`${r.value}-with-text ${r.value}-with-text${p.value}`:"",o.class],role:"separator"}),[t.length?br("span",{class:`${r.value}-inner-text`,style:d.value},[t]):null]))}}}));hk.Button=ok,hk.install=function(e){return e.component(hk.name,hk),e.component(ok.name,ok),e};const dN=()=>({prefixCls:String,width:$p.oneOfType([$p.string,$p.number]),height:$p.oneOfType([$p.string,$p.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:wa(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Ca(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:$a(),maskMotion:wa()});Object.keys({transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"}).filter((e=>{if("undefined"==typeof document)return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0];const pN=!("undefined"!=typeof window&&window.document&&window.document.createElement),hN=jn({compatConfig:{MODE:3},inheritAttrs:!1,props:cl(cl({},dN()),{getContainer:Function,getOpenCount:Function,scrollLocker:$p.any,inline:Boolean}),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:o}=t;const r=yt(),i=yt(),l=yt(),a=yt(),s=yt();let c=[];Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16),Zn((()=>{Ft((()=>{var t;const{open:n,getContainer:o,showMask:r,autofocus:i}=e,l=null==o?void 0:o();f(e),n&&(l&&(l.parentNode,document.body),Ft((()=>{i&&u()})),r&&(null===(t=e.scrollLocker)||void 0===t||t.lock()))}))})),bn((()=>e.level),(()=>{f(e)}),{flush:"post"}),bn((()=>e.open),(()=>{const{open:t,getContainer:n,scrollLocker:o,showMask:r,autofocus:i}=e,l=null==n?void 0:n();l&&(l.parentNode,document.body),t?(i&&u(),r&&(null==o||o.lock())):null==o||o.unLock()}),{flush:"post"}),Gn((()=>{var t;const{open:n}=e;n&&(document.body.style.touchAction=""),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),bn((()=>e.placement),(e=>{e&&(s.value=null)}));const u=()=>{var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)},d=e=>{n("close",e)},p=e=>{e.keyCode===Im.ESC&&(e.stopPropagation(),d(e))},h=()=>{const{open:t,afterVisibleChange:n}=e;n&&n(!!t)},f=e=>{let{level:t,getContainer:n}=e;if(pN)return;const o=null==n?void 0:n(),r=o?o.parentNode:null;var i;c=[],"all"===t?(r?Array.prototype.slice.call(r.children):[]).forEach((e=>{"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==o&&c.push(e)})):t&&(i=t,Array.isArray(i)?i:[i]).forEach((e=>{document.querySelectorAll(e).forEach((e=>{c.push(e)}))}))},g=e=>{n("handleClick",e)},m=yt(!1);return bn(i,(()=>{Ft((()=>{m.value=!0}))})),()=>{var t,n;const{width:c,height:u,open:f,prefixCls:v,placement:b,level:y,levelMove:O,ease:w,duration:S,getContainer:$,onChange:x,afterVisibleChange:C,showMask:k,maskClosable:P,maskStyle:T,keyboard:M,getOpenCount:I,scrollLocker:E,contentWrapperStyle:A,style:D,class:R,rootClassName:z,rootStyle:B,maskMotion:j,motion:N,inline:_}=e,Q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[k&&$n(br("div",{class:`${v}-mask`,onClick:P?d:void 0,style:T,ref:l},null),[[gi,L]])]}),br(qr,sl(sl({},F),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[$n(br("div",{class:`${v}-content-wrapper`,style:[A],ref:r},[br("div",{class:[`${v}-content`,R],style:D,ref:s},[null===(t=o.default)||void 0===t?void 0:t.call(o)]),o.handler?br("div",{onClick:g,ref:a},[null===(n=o.handler)||void 0===n?void 0:n.call(o)]):null]),[[gi,L]])]})])}}});var fN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=bt(null),i=e=>{n("handleClick",e)},l=e=>{n("close",e)};return()=>{const{getContainer:t,wrapperClassName:n,rootClassName:a,rootStyle:s,forceRender:c}=e,u=fN(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let d=null;if(!t)return br(hN,sl(sl({},u),{},{rootClassName:a,rootStyle:s,open:e.open,onClose:l,onHandleClick:i,inline:!0}),o);const p=!!o.handler||c;return(p||e.open||r.value)&&(d=br(Cm,{autoLock:!0,visible:e.open,forceRender:p,getContainer:t,wrapperClassName:n},{default:t=>{var{visible:n,afterClose:c}=t,d=fN(t,["visible","afterClose"]);return br(hN,sl(sl(sl({ref:r},u),d),{},{rootClassName:a,rootStyle:s,open:void 0!==n?n:e.open,afterVisibleChange:void 0!==c?c:e.afterVisibleChange,onClose:l,onHandleClick:i}),o)}})),d}}}),mN=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},vN=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:l,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:h,marginSM:f,colorIcon:g,colorIconHover:m,colorText:v,fontWeightStrong:b,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:O}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:g,fontWeight:b,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:v,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${O}px`,borderTop:`${d}px ${p} ${h}`},"&-rtl":{direction:"rtl"}}}},bN=Ku("Drawer",(e=>{const t=Ju(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[vN(t),mN(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase}))),yN=["top","right","bottom","left"],ON={distance:180},wN=ya(jn({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Vl({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:$p.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:wa(),rootClassName:String,rootStyle:wa(),size:{type:String},drawerStyle:wa(),headerStyle:wa(),bodyStyle:wa(),contentWrapperStyle:{type:Object,default:void 0},title:$p.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:$p.oneOfType([$p.string,$p.number]),height:$p.oneOfType([$p.string,$p.number]),zIndex:Number,prefixCls:String,push:$p.oneOfType([$p.looseBool,{type:Object}]),placement:$p.oneOf(yN),keyboard:{type:Boolean,default:void 0},extra:$p.any,footer:$p.any,footerStyle:wa(),level:$p.any,levelMove:{type:[Number,Array,Function]},handle:$p.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function},{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ON}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const i=yt(!1),l=yt(!1),a=yt(null),s=yt(!1),c=yt(!1),u=Lr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible}));bn(u,(()=>{u.value?s.value=!0:c.value=!1}),{immediate:!0}),bn([u,s],(()=>{u.value&&s.value&&(c.value=!0)}),{immediate:!0});const d=Mo("parentDrawerOpts",null),{prefixCls:p,getPopupContainer:h,direction:f}=$d("drawer",e),[g,m]=bN(p),v=Lr((()=>void 0===e.getContainer&&(null==h?void 0:h.value)?()=>h.value(document.body):e.getContainer));xp(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),To("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,Ft((()=>{b()}))}}),Zn((()=>{u.value&&d&&d.setPush()})),Gn((()=>{d&&d.setPull()})),bn(c,(()=>{d&&(c.value?d.setPush():d.setPull())}),{flush:"post"});const b=()=>{var e,t;null===(t=null===(e=a.value)||void 0===e?void 0:e.domFocus)||void 0===t||t.call(e)},y=e=>{n("update:visible",!1),n("update:open",!1),n("close",e)},O=t=>{var o;t||(!1===l.value&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),null===(o=e.afterVisibleChange)||void 0===o||o.call(e,t),n("afterVisibleChange",t),n("afterOpenChange",t)},w=Lr((()=>{const{push:t,placement:n}=e;let o;return o="boolean"==typeof t?t?ON.distance:0:t.distance,o=parseFloat(String(o||0)),"left"===n||"right"===n?`translateX(${"left"===n?o:-o}px)`:"top"===n||"bottom"===n?`translateY(${"top"===n?o:-o}px)`:null})),S=Lr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:"large"===e.size?736:378})),$=Lr((()=>{var t;return null!==(t=e.height)&&void 0!==t?t:"large"===e.size?736:378})),x=Lr((()=>{const{mask:t,placement:n}=e;if(!c.value&&!t)return{};const o={};return"left"===n||"right"===n?o.width=Vx(S.value)?`${S.value}px`:S.value:o.height=Vx($.value)?`${$.value}px`:$.value,o})),C=Lr((()=>{const{zIndex:t,contentWrapperStyle:n}=e,o=x.value;return[{zIndex:t,transform:i.value?w.value:void 0},cl({},n),o]})),k=t=>{const{closable:n,headerStyle:r}=e,i=ca(o,e,"extra"),l=ca(o,e,"title");return l||n?br("div",{class:xl(`${t}-header`,{[`${t}-header-close-only`]:n&&!l&&!i}),style:r},[br("div",{class:`${t}-header-title`},[P(t),l&&br("div",{class:`${t}-title`},[l])]),i&&br("div",{class:`${t}-extra`},[i])]):null},P=t=>{var n;const{closable:r}=e,i=o.closeIcon?null===(n=o.closeIcon)||void 0===n?void 0:n.call(o):e.closeIcon;return r&&br("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${t}-close`},[void 0===i?br(qb,null,null):i])},T=t=>{const n=ca(o,e,"footer");return n?br("div",{class:`${t}-footer`,style:e.footerStyle},[n]):null},M=Lr((()=>xl({"no-mask":!e.mask,[`${p.value}-rtl`]:"rtl"===f.value},e.rootClassName,m.value))),I=Lr((()=>im(am(p.value,"mask-motion")))),E=e=>im(am(p.value,`panel-motion-${e}`));return()=>{const{width:t,height:n,placement:i,mask:u,forceRender:d}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[br(gN,sl(sl({},f),{},{maskMotion:I.value,motion:E,width:S.value,height:$.value,getContainer:v.value,rootClassName:M.value,rootStyle:e.rootStyle,contentWrapperStyle:C.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>(t=>{var n;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:r,drawerStyle:i}=e;return br("div",{class:`${t}-wrapper-body`,style:i},[k(t),br("div",{key:"body",class:`${t}-body`,style:r},[null===(n=o.default)||void 0===n?void 0:n.call(o)]),T(t)])})(p.value)})]}))}}})),SN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function $N(e){for(var t=1;t({prefixCls:String,description:$p.any,type:ka("default"),shape:ka("circle"),tooltip:$p.any,href:String,target:$a(),badge:wa(),onClick:$a()}),TN=jn({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:{prefixCls:ka()},setup(e,t){let{attrs:n,slots:o}=t;return()=>{var t;const{prefixCls:r}=e,i=la(null===(t=o.description)||void 0===t?void 0:t.call(o));return br("div",sl(sl({},n),{},{class:[n.class,`${r}-content`]}),[o.icon||i.length?br(er,null,[o.icon&&br("div",{class:`${r}-icon`},[o.icon()]),i.length?br("div",{class:`${r}-description`},[i]):null]):br("div",{class:`${r}-icon`},[br(kN,null,null)])])}}}),MN=Symbol("floatButtonGroupContext"),IN=()=>Mo(MN,{shape:bt()}),EN=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),AN=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,l=new Hc("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new Hc("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:cl({},Vw(`${i}-wrap`,l,a,o,!0))},{[`${i}-wrap`]:{[`\n &${i}-wrap-enter,\n &${i}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},DN=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:cl(cl({},Xu(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:l}}}}},RN=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:l,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:cl(cl({},Xu(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:l}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},zN=Ku("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:l,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=Ju(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:l,floatButtonIconSize:1.5*a,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:o-2*c,floatButtonBodyPadding:c,badgeOffset:1.5*c,dotOffsetInCircle:EN(o/2),dotOffsetInSquare:EN(u)});return[DN(d),RN(d),Gw(e),AN(d)]})),BN="float-btn",jN=jn({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:Vl(PN(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d(BN,e),[l,a]=zN(r),{shape:s}=IN(),c=bt(null),u=Lr((()=>(null==s?void 0:s.value)||e.shape));return()=>{var t;const{prefixCls:s,type:d="default",shape:p="circle",description:h=(null===(t=o.description)||void 0===t?void 0:t.call(o)),tooltip:f,badge:g={}}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.tooltip&&o.tooltip()||f:void 0,default:()=>br(Ux,g,{default:()=>[br("div",{class:`${r.value}-body`},[br(TN,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return l(e.href?br("a",sl(sl(sl({ref:c},n),m),{},{class:v}),[b]):br("button",sl(sl(sl({ref:c},n),m),{},{class:v,type:"button"}),[b]))}}}),NN=jn({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Vl(cl(cl({},PN()),{trigger:ka(),open:Sa(),onOpenChange:$a(),"onUpdate:open":$a()}),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l}=$d(BN,e),[a,s]=zN(i),[c,u]=Lv(!1,{value:Lr((()=>e.open))}),d=bt(null),p=bt(null);(e=>{To(MN,e)})({shape:Lr((()=>e.shape))});const h={onMouseenter(){var t;u(!0),r("update:open",!0),null===(t=e.onOpenChange)||void 0===t||t.call(e,!0)},onMouseleave(){var t;u(!1),r("update:open",!1),null===(t=e.onOpenChange)||void 0===t||t.call(e,!1)}},f=Lr((()=>"hover"===e.trigger?h:{})),g=t=>{var n,o,i;(null===(n=d.value)||void 0===n?void 0:n.contains(t.target))?(null===(o=ea(p.value))||void 0===o?void 0:o.contains(t.target))&&(()=>{var t;const n=!c.value;r("update:open",n),null===(t=e.onOpenChange)||void 0===t||t.call(e,n),u(n)})():(u(!1),r("update:open",!1),null===(i=e.onOpenChange)||void 0===i||i.call(e,!1))};return bn(Lr((()=>e.trigger)),(e=>{ds()&&(document.removeEventListener("click",g),"click"===e&&document.addEventListener("click",g))}),{immediate:!0}),Kn((()=>{document.removeEventListener("click",g)})),()=>{var t;const{shape:r="circle",type:u="default",tooltip:h,description:g,trigger:m}=e,v=`${i.value}-group`,b=xl(v,s.value,n.class,{[`${v}-rtl`]:"rtl"===l.value,[`${v}-${r}`]:r,[`${v}-${r}-shadow`]:!m}),y=xl(s.value,`${v}-wrap`),O=im(`${v}-wrap`);return a(br("div",sl(sl({ref:d},n),{},{class:b},f.value),[m&&["click","hover"].includes(m)?br(er,null,[br(qr,O,{default:()=>[$n(br("div",{class:y},[o.default&&o.default()]),[[gi,c.value]])]}),br(jN,{ref:p,type:u,shape:r,tooltip:h,description:g},{icon:()=>{var e,t;return c.value?(null===(e=o.closeIcon)||void 0===e?void 0:e.call(o))||br(qb,null,null):(null===(t=o.icon)||void 0===t?void 0:t.call(o))||br(kN,null,null)},tooltip:o.tooltip,description:o.description})]):null===(t=o.default)||void 0===t?void 0:t.call(o)]))}}}),_N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function QN(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=$d(BN,e),[a]=zN(i),s=bt(),c=rt({visible:0===e.visibilityHeight,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=t=>{const{target:n=u,duration:o}=e;Qd(0,{getContainer:n,duration:o}),r("click",t)},p=va((t=>{const{visibilityHeight:n}=e,o=_d(t.target,!0);c.visible=o>=n})),h=()=>{const{target:t}=e,n=(t||u)();p({target:n}),null==n||n.addEventListener("scroll",p)},f=()=>{const{target:t}=e,n=(t||u)();p.cancel(),null==n||n.removeEventListener("scroll",p)};bn((()=>e.target),(()=>{f(),Ft((()=>{h()}))})),Zn((()=>{Ft((()=>{h()}))})),Qn((()=>{Ft((()=>{h()}))})),Ln((()=>{f()})),Kn((()=>{f()}));const g=IN();return()=>{const{description:t,type:r,shape:u,tooltip:p,badge:h}=e,f=cl(cl({},o),{shape:(null==g?void 0:g.shape.value)||u,onClick:d,class:{[`${i.value}`]:!0,[`${o.class}`]:o.class,[`${i.value}-rtl`]:"rtl"===l.value},description:t,type:r,tooltip:p,badge:h}),m=im("fade");return a(br(qr,m,{default:()=>[$n(br(jN,sl(sl({},f),{},{ref:s}),{icon:()=>{var e;return(null===(e=n.icon)||void 0===e?void 0:e.call(n))||br(FN,null,null)}}),[[gi,c.visible]])]}))}}});jN.Group=NN,jN.BackTop=WN,jN.install=function(e){return e.component(jN.name,jN),e.component(NN.name,NN),e.component(WN.name,WN),e};const XN=e=>null!=e&&(!Array.isArray(e)||la(e).length);function YN(e){return XN(e.prefix)||XN(e.suffix)||XN(e.allowClear)}function ZN(e){return XN(e.addonBefore)||XN(e.addonAfter)}function VN(e){return null==e?"":String(e)}function UN(e,t,n,o){if(!n)return;const r=t;if("click"===t.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return r.target=t,r.currentTarget=t,t.value="",void n(r)}if(void 0!==o)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,void n(r);n(r)}function KN(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}const GN=()=>cl(cl({},{addonBefore:$p.any,addonAfter:$p.any,prefix:$p.any,suffix:$p.any,clearIcon:$p.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:$p.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),qN=()=>cl(cl({},GN()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:ka("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),JN=jn({name:"BaseInput",inheritAttrs:!1,props:GN(),setup(e,t){let{slots:n,attrs:o}=t;const r=bt(),i=t=>{var n;if(null===(n=r.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},l=()=>{var t;const{allowClear:o,value:r,disabled:i,readonly:l,handleReset:a,suffix:s=n.suffix,prefixCls:c}=e;if(!o)return null;const u=!i&&!l&&r,d=`${c}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return br("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:xl({[`${d}-hidden`]:!u,[`${d}-has-suffix`]:!!s},d),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:s,value:c,disabled:u,allowClear:d,readonly:p,hidden:h,prefixCls:f,prefix:g=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:m=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:v=n.addonAfter,addonBefore:b=n.addonBefore,inputElement:y,affixWrapperClassName:O,wrapperClassName:w,groupClassName:S}=e;let $=Yh(y,{value:c,hidden:h});if(YN({prefix:g,suffix:m,allowClear:d})){const e=`${f}-affix-wrapper`,t=xl(e,{[`${e}-disabled`]:u,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:m&&d&&c},!ZN({addonAfter:v,addonBefore:b})&&o.class,O),n=(m||d)&&br("span",{class:`${f}-suffix`},[l(),m]);$=br("span",{class:t,style:o.style,hidden:!ZN({addonAfter:v,addonBefore:b})&&h,onMousedown:i,ref:r},[g&&br("span",{class:`${f}-prefix`},[g]),Yh(y,{style:null,value:c,hidden:null}),n])}if(ZN({addonAfter:v,addonBefore:b})){const e=`${f}-group`,t=`${e}-addon`,n=xl(`${f}-wrapper`,e,w),r=xl(`${f}-group-wrapper`,o.class,S);return br("span",{class:r,style:o.style,hidden:h},[br("span",{class:n},[b&&br("span",{class:t},[b]),Yh($,{style:null,hidden:null}),v&&br("span",{class:t},[v])])])}return $}}}),e_=jn({name:"VCInput",inheritAttrs:!1,props:qN(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(void 0===e.value?e.defaultValue:e.value),a=yt(!1),s=yt();bn((()=>e.value),(()=>{l.value=e.value})),bn((()=>e.disabled),(()=>{e.disabled&&(a.value=!1)}));const c=e=>{s.value&&KN(s.value,e)};r({focus:c,blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()},input:s,stateValue:l,setSelectionRange:(e,t,n)=>{var o;null===(o=s.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=s.value)||void 0===e||e.select()}});const u=e=>{i("change",e)},d=Mr(),p=(t,n)=>{l.value!==t&&(void 0===e.value?l.value=t:Ft((()=>{s.value.value!==l.value&&d.update()})),Ft((()=>{n&&n()})))},h=t=>{const{value:n,composing:o}=t.target;if((t.isComposing||o)&&e.lazy||l.value===n)return;const r=t.target.value;UN(s.value,t,u),p(r)},f=e=>{13===e.keyCode&&i("pressEnter",e),i("keydown",e)},g=e=>{a.value=!0,i("focus",e)},m=e=>{a.value=!1,i("blur",e)},v=e=>{UN(s.value,e,u),p("",(()=>{c()}))},b=()=>{var t,r;const{addonBefore:i=n.addonBefore,addonAfter:l=n.addonAfter,disabled:a,valueModifiers:c={},htmlSize:u,autocomplete:d,prefixCls:p,inputClassName:v,prefix:b=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:y=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:O,type:w="text"}=e,S=cl(cl(cl({},xd(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),o),{autocomplete:d,onChange:h,onInput:h,onFocus:g,onBlur:m,onKeydown:f,class:xl(p,{[`${p}-disabled`]:a},v,!ZN({addonAfter:l,addonBefore:i})&&!YN({prefix:b,suffix:y,allowClear:O})&&o.class),ref:s,key:"ant-input",size:u,type:w});return c.lazy&&delete S.onInput,S.autofocus||delete S.autofocus,$n(br("input",xd(S,["size"]),null),[[Bm]])},y=()=>{var t;const{maxlength:o,suffix:r=(null===(t=n.suffix)||void 0===t?void 0:t.call(n)),showCount:i,prefixCls:a}=e,s=Number(o)>0;if(r||i){const e=[...VN(l.value)].length,t="object"==typeof i?i.formatter({count:e,maxlength:o}):`${e}${s?` / ${o}`:""}`;return br(er,null,[!!i&&br("span",{class:xl(`${a}-show-count-suffix`,{[`${a}-show-count-has-suffix`]:!!r})},[t]),r])}return null};return Zn((()=>{})),()=>{const{prefixCls:t,disabled:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rxd(qN(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),n_=t_,o_=()=>cl(cl({},xd(t_(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Oa(),onCompositionend:Oa(),valueModifiers:Object}),r_=jn({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:n_(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=bt(),a=gy(),s=vy.useInject(),c=Lr((()=>Oy(s.status,e.status))),{direction:u,prefixCls:d,size:p,autocomplete:h}=$d("input",e),{compactSize:f,compactItemClassnames:g}=Hw(d,u),m=Lr((()=>f.value||p.value)),[v,b]=iI(d),y=Wa();r({focus:e=>{var t;null===(t=l.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},input:l,setSelectionRange:(e,t,n)=>{var o;null===(o=l.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=l.value)||void 0===e||e.select()}});const O=bt([]),w=()=>{O.value.push(setTimeout((()=>{var e,t,n,o;(null===(e=l.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=l.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=l.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=l.value)||void 0===o||o.input.removeAttribute("value"))})))};Zn((()=>{w()})),Vn((()=>{O.value.forEach((e=>clearTimeout(e)))})),Kn((()=>{O.value.forEach((e=>clearTimeout(e)))}));const S=e=>{w(),i("blur",e),a.onFieldBlur()},$=e=>{w(),i("focus",e)},x=e=>{i("update:value",e.target.value),i("change",e),i("input",e),a.onFieldChange()};return()=>{var t,r,i,p,f,O;const{hasFeedback:w,feedbackIcon:C}=s,{allowClear:k,bordered:P=!0,prefix:T=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:M=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),addonAfter:I=(null===(i=n.addonAfter)||void 0===i?void 0:i.call(n)),addonBefore:E=(null===(p=n.addonBefore)||void 0===p?void 0:p.call(n)),id:A=(null===(f=a.id)||void 0===f?void 0:f.value)}=e,D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(oy,null,null));return v(br(e_,sl(sl(sl({},o),xd(D,["onUpdate:value","onChange","onInput"])),{},{onChange:x,id:A,disabled:null!==(O=e.disabled)&&void 0!==O?O:y.value,ref:l,prefixCls:z,autocomplete:h.value,onBlur:S,onFocus:$,prefix:T,suffix:R,allowClear:k,addonAfter:I&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[I]})]}),addonBefore:E&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[E]})]}),class:[o.class,g.value],inputClassName:xl({[`${z}-sm`]:"small"===m.value,[`${z}-lg`]:"large"===m.value,[`${z}-rtl`]:"rtl"===u.value,[`${z}-borderless`]:!P},!B&&yy(z,c.value),b.value),affixWrapperClassName:xl({[`${z}-affix-wrapper-sm`]:"small"===m.value,[`${z}-affix-wrapper-lg`]:"large"===m.value,[`${z}-affix-wrapper-rtl`]:"rtl"===u.value,[`${z}-affix-wrapper-borderless`]:!P},yy(`${z}-affix-wrapper`,c.value,w),b.value),wrapperClassName:xl({[`${z}-group-rtl`]:"rtl"===u.value},b.value),groupClassName:xl({[`${z}-group-wrapper-sm`]:"small"===m.value,[`${z}-group-wrapper-lg`]:"large"===m.value,[`${z}-group-wrapper-rtl`]:"rtl"===u.value},yy(`${z}-group-wrapper`,c.value,w),b.value)}),cl(cl({},n),{clearIcon:j})))}}}),i_=jn({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,getPrefixCls:l}=$d("input-group",e),a=vy.useInject();vy.useProvide(a,{isFormItemInput:!1});const s=Lr((()=>l("input"))),[c,u]=iI(s),d=Lr((()=>{const t=r.value;return{[`${t}`]:!0,[u.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{var e;return c(br("span",sl(sl({},o),{},{class:xl(d.value,o.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),l_=jn({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:cl(cl({},n_()),{inputPrefixCls:String,enterButton:$p.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(),a=yt(!1);r({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()}});const s=e=>{i("update:value",e.target.value),e&&e.target&&"click"===e.type&&i("search",e.target.value,e),i("change",e)},c=e=>{var t;document.activeElement===(null===(t=l.value)||void 0===t?void 0:t.input)&&e.preventDefault()},u=e=>{var t,n;i("search",null===(n=null===(t=l.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},d=t=>{a.value||e.loading||u(t)},p=e=>{a.value=!0,i("compositionstart",e)},h=e=>{a.value=!1,i("compositionend",e)},{prefixCls:f,getPrefixCls:g,direction:m,size:v}=$d("input-search",e),b=Lr((()=>g("input",e.inputPrefixCls)));return()=>{var t,r,i,a;const{disabled:g,loading:y,addonAfter:O=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:w=(null===(r=n.suffix)||void 0===r?void 0:r.call(n))}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[e?null:x||$]})}O&&(P=[P,O]);const M=xl(f.value,{[`${f.value}-rtl`]:"rtl"===m.value,[`${f.value}-${v.value}`]:!!v.value,[`${f.value}-with-button`]:!!$},o.class);return br(r_,sl(sl(sl({ref:l},xd(S,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:d,onCompositionstart:p,onCompositionend:h,size:v.value,prefixCls:b.value,addonAfter:P,suffix:w,onChange:s,class:M,disabled:g}),n)}}}),a_=e=>null!=e&&(!Array.isArray(e)||la(e).length),s_=["text","input"],c_=jn({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:$p.oneOf(ba("text","input")),value:xa(),defaultValue:xa(),allowClear:{type:Boolean,default:void 0},element:xa(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:xa(),prefix:xa(),addonBefore:xa(),addonAfter:xa(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=vy.useInject(),i=t=>{const{value:o,disabled:r,readonly:i,handleReset:l,suffix:a=n.suffix}=e,s=`${t}-clear-icon`;return br(oy,{onClick:l,onMousedown:e=>e.preventDefault(),class:xl({[`${s}-hidden`]:!(!r&&!i&&o),[`${s}-has-suffix`]:!!a},s),role:"button"},null)};return()=>{var t;const{prefixCls:l,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===s_[0]?((t,l)=>{const{value:a,allowClear:s,direction:c,bordered:u,hidden:d,status:p,addonAfter:h=n.addonAfter,addonBefore:f=n.addonBefore,hashId:g}=e,{status:m,hasFeedback:v}=r;if(!s)return Yh(l,{value:a,disabled:e.disabled});const b=xl(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,yy(`${t}-affix-wrapper`,Oy(m,p),v),{[`${t}-affix-wrapper-rtl`]:"rtl"===c,[`${t}-affix-wrapper-borderless`]:!u,[`${o.class}`]:(y={addonAfter:h,addonBefore:f},!(a_(y.addonBefore)||a_(y.addonAfter))&&o.class)},g);var y;return br("span",{class:b,style:o.style,hidden:d},[Yh(l,{style:null,value:a,disabled:e.disabled}),i(t)])})(l,s):null}}}),u_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],d_={};let p_;function h_(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p_||(p_=document.createElement("textarea"),p_.setAttribute("tab-index","-1"),p_.setAttribute("aria-hidden","true"),document.body.appendChild(p_)),e.getAttribute("wrap")?p_.setAttribute("wrap",e.getAttribute("wrap")):p_.removeAttribute("wrap");const{paddingSize:r,borderSize:i,boxSizing:l,sizingStyle:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&d_[n])return d_[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:u_.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:l,boxSizing:r};return t&&n&&(d_[n]=a),a}(e,t);p_.setAttribute("style",`${a};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),p_.value=e.value||e.placeholder||"";let s,c=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=p_.scrollHeight;if("border-box"===l?d+=i:"content-box"===l&&(d-=r),null!==n||null!==o){p_.value=" ";const e=p_.scrollHeight-r;null!==n&&(c=e*n,"border-box"===l&&(c=c+r+i),d=Math.max(c,d)),null!==o&&(u=e*o,"border-box"===l&&(u=u+r+i),s=d>u?"":"hidden",d=Math.min(u,d))}return{height:`${d}px`,minHeight:`${c}px`,maxHeight:`${u}px`,overflowY:s,resize:"none"}}const f_=jn({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:o_(),setup(e,t){let n,o,{attrs:r,emit:i,expose:l}=t;const a=bt(),s=bt({}),c=bt(0);Kn((()=>{ma.cancel(n),ma.cancel(o)}));const u=()=>{const t=e.autoSize||e.autosize;if(!t||!a.value)return;const{minRows:n,maxRows:r}=t;s.value=h_(a.value,!1,n,r),c.value=1,ma.cancel(o),o=ma((()=>{c.value=2,o=ma((()=>{c.value=0,(()=>{try{if(document.activeElement===a.value){const e=a.value.selectionStart,t=a.value.selectionEnd;a.value.setSelectionRange(e,t)}}catch(Eue){}})()}))}))},d=t=>{0===c.value&&(i("resize",t),(e.autoSize||e.autosize)&&(ma.cancel(n),n=ma(u)))};Ts(void 0===e.autosize),bn((()=>e.value),(()=>{Ft((()=>{u()}))})),Zn((()=>{Ft((()=>{u()}))}));const p=Mr();return l({resizeTextarea:u,textArea:a,instance:p}),()=>(()=>{const{prefixCls:t,autoSize:n,autosize:o,disabled:i}=e,l=xd(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),u=xl(t,r.class,{[`${t}-disabled`]:i}),p=[r.style,s.value,1===c.value?{overflowX:"hidden",overflowY:"hidden"}:null],h=cl(cl(cl({},l),r),{style:p,class:u});return h.autofocus||delete h.autofocus,0===h.rows&&delete h.rows,br(ua,{onResize:d,disabled:!(n||o)},{default:()=>[$n(br("textarea",sl(sl({},h),{},{ref:a}),null),[[Bm]])]})})()}});function g_(e,t){return[...e||""].slice(0,t).join("")}function m_(e,t,n,o){let r=n;return e?r=g_(n,o):[...t||""].lengtho&&(r=t),r}const v_=jn({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:o_(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;const i=gy(),l=vy.useInject(),a=Lr((()=>Oy(l.status,e.status))),s=yt(void 0===e.value?e.defaultValue:e.value),c=yt(),u=yt(""),{prefixCls:d,size:p,direction:h}=$d("input",e),[f,g]=iI(d),m=Wa(),v=Lr((()=>""===e.showCount||e.showCount||!1)),b=Lr((()=>Number(e.maxlength)>0)),y=yt(!1),O=yt(),w=yt(0),S=e=>{y.value=!0,O.value=u.value,w.value=e.currentTarget.selectionStart,r("compositionstart",e)},$=t=>{var n;y.value=!1;let o=t.currentTarget.value;b.value&&(o=m_(w.value>=e.maxlength+1||w.value===(null===(n=O.value)||void 0===n?void 0:n.length),O.value,o,e.maxlength)),o!==u.value&&(k(o),UN(t.currentTarget,t,M,o)),r("compositionend",t)},x=Mr();bn((()=>e.value),(()=>{var t;x.vnode.props,s.value=null!==(t=e.value)&&void 0!==t?t:""}));const C=e=>{var t;KN(null===(t=c.value)||void 0===t?void 0:t.textArea,e)},k=(t,n)=>{s.value!==t&&(void 0===e.value?s.value=t:Ft((()=>{var e,t,n;c.value.textArea.value!==u.value&&(null===(n=null===(e=c.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),Ft((()=>{n&&n()})))},P=e=>{13===e.keyCode&&r("pressEnter",e),r("keydown",e)},T=t=>{const{onBlur:n}=e;null==n||n(t),i.onFieldBlur()},M=e=>{r("update:value",e.target.value),r("change",e),r("input",e),i.onFieldChange()},I=e=>{UN(c.value.textArea,e,M),k("",(()=>{C()}))},E=t=>{const{composing:n}=t.target;let o=t.target.value;if(y.value=!(!t.isComposing&&!n),!(y.value&&e.lazy||s.value===o)){if(b.value){const n=t.target;o=m_(n.selectionStart>=e.maxlength+1||n.selectionStart===o.length||!n.selectionStart,u.value,o,e.maxlength)}UN(t.currentTarget,t,M,o),k(o)}},A=()=>{var t,o;const{class:r}=n,{bordered:l=!0}=e,s=cl(cl(cl({},xd(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!l,[`${r}`]:r&&!v.value,[`${d.value}-sm`]:"small"===p.value,[`${d.value}-lg`]:"large"===p.value},yy(d.value,a.value),g.value],disabled:m.value,showCount:null,prefixCls:d.value,onInput:E,onChange:E,onBlur:T,onKeydown:P,onCompositionstart:S,onCompositionend:$});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete s.onInput,br(f_,sl(sl({},s),{},{id:null!==(o=null==s?void 0:s.id)&&void 0!==o?o:i.id.value,ref:c,maxlength:e.maxlength}),null)};return o({focus:C,blur:()=>{var e,t;null===(t=null===(e=c.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:c}),mn((()=>{let t=VN(s.value);y.value||!b.value||null!==e.value&&void 0!==e.value||(t=g_(t,e.maxlength)),u.value=t})),()=>{var t;const{maxlength:o,bordered:r=!0,hidden:i}=e,{style:a,class:s}=n,c=cl(cl(cl({},e),n),{prefixCls:d.value,inputType:"text",handleReset:I,direction:h.value,bordered:r,style:v.value?void 0:a,hashId:g.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:m.value});let p=br(c_,sl(sl({},c),{},{value:u.value,status:e.status}),{element:A});if(v.value||l.hasFeedback){const e=[...u.value].length;let t="";t="object"==typeof v.value?v.value.formatter({value:u.value,count:e,maxlength:o}):`${e}${b.value?` / ${o}`:""}`,p=br("div",{hidden:i,class:xl(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:"rtl"===h.value,[`${d.value}-textarea-show-count`]:v.value,[`${d.value}-textarea-in-form-item`]:l.isFormItemInput},`${d.value}-textarea-show-count`,s,g.value),style:a,"data-count":"object"!=typeof t?t:void 0},[p,l.hasFeedback&&br("span",{class:`${d.value}-textarea-suffix`},[l.feedbackIcon])])}return f(p)}}}),b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function y_(e){for(var t=1;tbr(e?S_:P_,null,null),I_=jn({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:cl(cl({},n_()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(!1),a=()=>{const{disabled:t}=e;t||(l.value=!l.value,i("update:visible",l.value))};mn((()=>{void 0!==e.visible&&(l.value=!!e.visible)}));const s=yt();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const{prefixCls:c,getPrefixCls:u}=$d("input-password",e),d=Lr((()=>u("input",e.inputPrefixCls))),p=()=>{const{size:t,visibilityToggle:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{action:o,iconRender:r=n.iconRender||M_}=e,i=T_[o]||"",s=r(l.value),c={[i]:a,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return Yh(sa(s)?s:br("span",null,[s]),c)})(c.value),p=xl(c.value,o.class,{[`${c.value}-${t}`]:!!t}),h=cl(cl(cl({},xd(i,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:p,prefixCls:d.value,suffix:u});return t&&(h.size=t),br(r_,sl({ref:s},h),n)};return()=>p()}});function E_(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function A_(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:$p.shape({x:Number,y:Number}).loose,title:$p.any,footer:$p.any,transitionName:String,maskTransitionName:String,animation:$p.any,maskAnimation:$p.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:$p.any,maskProps:$p.any,wrapProps:$p.any,getContainer:$p.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:$p.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function D_(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}r_.Group=i_,r_.Search=l_,r_.TextArea=v_,r_.Password=I_,r_.install=function(e){return e.component(r_.name,r_),e.component(r_.Group.name,r_.Group),e.component(r_.Search.name,r_.Search),e.component(r_.TextArea.name,r_.TextArea),e.component(r_.Password.name,r_.Password),e};let R_=-1;function z_(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[o],"number"!=typeof n&&(n=t.body[o])}return n}const B_={width:0,height:0,overflow:"hidden",outline:"none"},j_=jn({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:cl(cl({},A_()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=bt(),l=bt(),a=bt();n({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},changeActive:e=>{const{activeElement:t}=document;e&&t===l.value?i.value.focus():e||t!==i.value||l.value.focus()}});const s=bt(),c=Lr((()=>{const{width:t,height:n}=e,o={};return void 0!==t&&(o.width="number"==typeof t?`${t}px`:t),void 0!==n&&(o.height="number"==typeof n?`${n}px`:n),s.value&&(o.transformOrigin=s.value),o})),u=()=>{Ft((()=>{if(a.value){const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=z_(r),n.top+=z_(r,!0),n}(a.value);s.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},d=t=>{e.onVisibleChanged(t)};return()=>{var t,n,s,p;const{prefixCls:h,footer:f=(null===(t=o.footer)||void 0===t?void 0:t.call(o)),title:g=(null===(n=o.title)||void 0===n?void 0:n.call(o)),ariaId:m,closable:v,closeIcon:b=(null===(s=o.closeIcon)||void 0===s?void 0:s.call(o)),onClose:y,bodyStyle:O,bodyProps:w,onMousedown:S,onMouseup:$,visible:x,modalRender:C=o.modalRender,destroyOnClose:k,motionName:P}=e;let T,M,I;f&&(T=br("div",{class:`${h}-footer`},[f])),g&&(M=br("div",{class:`${h}-header`},[br("div",{class:`${h}-title`,id:m},[g])])),v&&(I=br("button",{type:"button",onClick:y,"aria-label":"Close",class:`${h}-close`},[b||br("span",{class:`${h}-close-x`},null)]));const E=br("div",{class:`${h}-content`},[I,M,br("div",sl({class:`${h}-body`,style:O},w),[null===(p=o.default)||void 0===p?void 0:p.call(o)]),T]),A=im(P);return br(qr,sl(sl({},A),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[x||!k?$n(br("div",sl(sl({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[h,r.class],onMousedown:S,onMouseup:$}),[br("div",{tabindex:0,ref:i,style:B_,"aria-hidden":"true"},null),C?C({originVNode:E}):E,br("div",{tabindex:0,ref:l,style:B_,"aria-hidden":"true"},null)]),[[gi,x]]):null]})}}}),N_=jn({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:(e,t)=>()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:r}=e,i=im(r);return br(qr,i,{default:()=>[$n(br("div",sl({class:`${t}-mask`},o),null),[[gi,n]])]})}}),__=jn({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Vl(cl(cl({},A_()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=yt(),i=yt(),l=yt(),a=yt(e.visible),s=yt(`vcDialogTitle${R_+=1,R_}`),c=t=>{var n,o;if(t)ps(i.value,document.activeElement)||(r.value=document.activeElement,null===(n=l.value)||void 0===n||n.focus());else{const t=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch(Eue){}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},u=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},d=yt(!1),p=yt(),h=()=>{clearTimeout(p.value),d.value=!0},f=()=>{p.value=setTimeout((()=>{d.value=!1}))},g=t=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===t.target&&u(t)},m=t=>{if(e.keyboard&&t.keyCode===Im.ESC)return t.stopPropagation(),void u(t);e.visible&&t.keyCode===Im.TAB&&l.value.changeActive(!t.shiftKey)};return bn((()=>e.visible),(()=>{e.visible&&(a.value=!0)}),{flush:"post"}),Kn((()=>{var t;clearTimeout(p.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),mn((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),a.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:r,visible:d,maskTransitionName:p,maskAnimation:v,zIndex:b,wrapClassName:y,rootClassName:O,wrapStyle:w,closable:S,maskProps:$,maskStyle:x,transitionName:C,animation:k,wrapProps:P,title:T=o.title}=e,{style:M,class:I}=n;return br("div",sl({class:[`${t}-root`,O]},Lm(e,{data:!0})),[br(N_,{prefixCls:t,visible:r&&d,motionName:D_(t,p,v),style:cl({zIndex:b},x),maskProps:$},null),br("div",sl({tabIndex:-1,onKeydown:m,class:xl(`${t}-wrap`,y),ref:i,onClick:g,role:"dialog","aria-labelledby":T?s.value:null,style:cl(cl({zIndex:b},w),{display:a.value?null:"none"})},P),[br(j_,sl(sl({},xd(e,["scrollLocker"])),{},{style:M,class:I,onMousedown:h,onMouseup:f,ref:l,closable:S,ariaId:s.value,prefixCls:t,visible:d,onClose:u,onVisibleChanged:c,motionName:D_(t,C,k)}),o)])])}}}),Q_=A_(),L_=jn({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Vl(Q_,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=bt(e.visible);return fm({},{inTriggerContext:!1}),bn((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:i,forceRender:l,destroyOnClose:a=!1,afterClose:s}=e;let c=cl(cl(cl({},e),n),{ref:"_component",key:"dialog"});return!1===i?br(__,sl(sl({},c),{},{getOpenCount:()=>2}),o):l||!a||r.value?br(Cm,{autoLock:!0,visible:t,forceRender:l,getContainer:i},{default:e=>(c=cl(cl(cl({},c),e),{afterClose:()=>{null==s||s(),r.value=!1}}),br(__,c,o))}):null}}});function H_(e,t,n,o){const r=t+n,i=(n-o)/2;if(n>o){if(t>0)return{[e]:i};if(t<0&&ro)return{[e]:t<0?i:-i};return{}}function F_(e,t,n,o){const{width:r,height:i}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let l=null;return e<=r&&t<=i?l={x:0,y:0}:(e>r||t>i)&&(l=cl(cl({},H_("x",n,e,r)),H_("y",o,t,i))),l}const W_=Symbol("previewGroupContext"),X_=e=>{To(W_,e)},Y_=()=>Mo(W_,{isPreviewGroup:yt(!1),previewUrls:Lr((()=>new Map)),setPreviewUrls:()=>{},current:bt(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),Z_=jn({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o=Lr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof e.preview?q_(e.preview,t):t})),r=rt(new Map),i=bt(),l=Lr((()=>o.value.visible)),a=Lr((()=>o.value.getContainer)),[s,c]=Lv(!!l.value,{value:l,onChange:(e,t)=>{var n,r;null===(r=(n=o.value).onVisibleChange)||void 0===r||r.call(n,e,t)}}),u=bt(null),d=Lr((()=>void 0!==l.value)),p=Lr((()=>Array.from(r.keys()))),h=Lr((()=>p.value[o.value.current])),f=Lr((()=>new Map(Array.from(r).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),g=e=>{i.value=e},m=e=>{u.value=e},v=e=>{null==e||e.stopPropagation(),c(!1),m(null)};return bn(h,(e=>{g(e)}),{immediate:!0,flush:"post"}),mn((()=>{s.value&&d.value&&g(h.value)}),{flush:"post"}),X_({isPreviewGroup:yt(!0),previewUrls:f,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r.set(e,{url:t,canPreview:n})},current:i,setCurrent:g,setShowPreview:c,setMousePosition:m,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.set(e,{url:t,canPreview:n}),()=>{r.delete(e)}}}),()=>{const t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({})}}),emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:i,zoomIn:l,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:p}=rt(e.icons),h=yt(1),f=yt(0),g=rt({x:1,y:1}),[m,v]=function(e){const t=bt(null),n=rt(cl({},e)),o=bt([]);return Zn((()=>{t.value&&ma.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=ma((()=>{let e;o.value.forEach((t=>{e=cl(cl({},e),t)})),cl(n,e),t.value=null}))),o.value.push(e)}]}(U_),b=()=>n("close"),y=yt(),O=rt({originX:0,originY:0,deltaX:0,deltaY:0}),w=yt(!1),S=Y_(),{previewUrls:$,current:x,isPreviewGroup:C,setCurrent:k}=S,P=Lr((()=>$.value.size)),T=Lr((()=>Array.from($.value.keys()))),M=Lr((()=>T.value.indexOf(x.value))),I=Lr((()=>C.value?$.value.get(x.value):e.src)),E=Lr((()=>C.value&&P.value>1)),A=yt({wheelDirection:0}),D=()=>{h.value=1,f.value=0,g.x=1,g.y=1,v(U_),n("afterClose")},R=e=>{e?h.value+=.5:h.value++,v(U_)},z=e=>{h.value>1&&(e?h.value-=.5:h.value--),v(U_)},B=e=>{e.preventDefault(),e.stopPropagation(),M.value>0&&k(T.value[M.value-1])},j=e=>{e.preventDefault(),e.stopPropagation(),M.valueR(),type:"zoomIn"},{icon:a,onClick:()=>z(),type:"zoomOut",disabled:Lr((()=>1===h.value))},{icon:i,onClick:()=>{f.value+=90},type:"rotateRight"},{icon:r,onClick:()=>{f.value-=90},type:"rotateLeft"},{icon:d,onClick:()=>{g.x=-g.x},type:"flipX"},{icon:p,onClick:()=>{g.y=-g.y},type:"flipY"}],H=()=>{if(e.visible&&w.value){const e=y.value.offsetWidth*h.value,t=y.value.offsetHeight*h.value,{left:n,top:o}=E_(y.value),r=f.value%180!=0;w.value=!1;const i=F_(r?t:e,r?e:t,n,o);i&&v(cl({},i))}},F=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),O.deltaX=e.pageX-m.x,O.deltaY=e.pageY-m.y,O.originX=m.x,O.originY=m.y,w.value=!0)},W=t=>{e.visible&&w.value&&v({x:t.pageX-O.deltaX,y:t.pageY-O.deltaY})},X=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;A.value={wheelDirection:n}},Y=t=>{e.visible&&E.value&&(t.preventDefault(),t.keyCode===Im.LEFT?M.value>0&&k(T.value[M.value-1]):t.keyCode===Im.RIGHT&&M.value{e.visible&&(1!==h.value&&(h.value=1),m.x===U_.x&&m.y===U_.y||v(U_))};let V=()=>{};return Zn((()=>{bn([()=>e.visible,w],(()=>{let e,t;V();const n=Ia(window,"mouseup",H,!1),o=Ia(window,"mousemove",W,!1),r=Ia(window,"wheel",X,{passive:!1}),i=Ia(window,"keydown",Y,!1);try{window.top!==window.self&&(e=Ia(window.top,"mouseup",H,!1),t=Ia(window.top,"mousemove",W,!1))}catch(l){}V=()=>{n.remove(),o.remove(),r.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),bn([A],(()=>{const{wheelDirection:e}=A.value;e>0?z(!0):e<0&&R(!0)}))})),Gn((()=>{V()})),()=>{const{visible:t,prefixCls:n,rootClassName:r}=e;return br(L_,sl(sl({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:b,afterClose:D,visible:t,wrapClassName:N,rootClassName:r,getContainer:e.getContainer}),{default:()=>[br("div",{class:[`${e.prefixCls}-operations-wrapper`,r]},[br("ul",{class:`${e.prefixCls}-operations`},[L.map((t=>{let{icon:n,onClick:o,type:r,disabled:i}=t;return br("li",{class:xl(_,{[`${e.prefixCls}-operations-operation-disabled`]:i&&(null==i?void 0:i.value)}),onClick:o,key:r},[yr(n,{class:Q})])}))])]),br("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[br("img",{onMousedown:F,onDblclick:Z,ref:y,class:`${e.prefixCls}-img`,src:I.value,alt:e.alt,style:{transform:`scale3d(${g.x*h.value}, ${g.y*h.value}, 1) rotate(${f.value}deg)`}},null)]),E.value&&br("div",{class:xl(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:M.value<=0}),onClick:B},[c]),E.value&&br("div",{class:xl(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:M.value>=P.value-1}),onClick:j},[u])]})}}}),G_=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:$p.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),q_=(e,t)=>{const n=cl({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let J_=0;const eQ=jn({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:G_(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Lr((()=>e.prefixCls)),l=Lr((()=>`${i.value}-preview`)),a=Lr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?q_(e.preview,t):t})),s=Lr((()=>{var t;return null!==(t=a.value.src)&&void 0!==t?t:e.src})),c=Lr((()=>e.placeholder&&!0!==e.placeholder||o.placeholder)),u=Lr((()=>a.value.visible)),d=Lr((()=>a.value.getContainer)),p=Lr((()=>void 0!==u.value)),[h,f]=Lv(!!u.value,{value:u,onChange:(e,t)=>{var n,o;null===(o=(n=a.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),g=bt(c.value?"loading":"normal");bn((()=>e.src),(()=>{g.value=c.value?"loading":"normal"}));const m=bt(null),v=Lr((()=>"error"===g.value)),b=Y_(),{isPreviewGroup:y,setCurrent:O,setShowPreview:w,setMousePosition:S,registerImage:$}=b,x=bt(J_++),C=Lr((()=>e.preview&&!v.value)),k=()=>{g.value="normal"},P=e=>{g.value="error",r("error",e)},T=e=>{if(!p.value){const{left:t,top:n}=E_(e.target);y.value?(O(x.value),S({x:t,y:n})):m.value={x:t,y:n}}y.value?w(!0):f(!0),r("click",e)},M=()=>{f(!1),p.value||(m.value=null)},I=bt(null);bn((()=>I),(()=>{"loading"===g.value&&I.value.complete&&(I.value.naturalWidth||I.value.naturalHeight)&&k()}));let E=()=>{};Zn((()=>{bn([s,C],(()=>{if(E(),!y.value)return()=>{};E=$(x.value,s.value,C.value),C.value||E()}),{flush:"post",immediate:!0})})),Gn((()=>{E()}));const A=e=>{return"number"==typeof(t=e)||qf(t)&&"[object Number]"==pf(t)?e+"px":e;var t};return()=>{const{prefixCls:t,wrapperClassName:i,fallback:c,src:u,placeholder:p,wrapperStyle:f,rootClassName:b}=e,{width:O,height:w,crossorigin:S,decoding:$,alt:x,sizes:E,srcset:D,usemap:R,class:z,style:B}=n,j=a.value,{icons:N,maskClassName:_}=j,Q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{r("click",e)},style:cl({width:A(O),height:A(w)},f)},[br("img",sl(sl(sl({},F),v.value&&c?{src:c}:{onLoad:k,onError:P,src:u}),{},{ref:I}),null),"loading"===g.value&&br("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||o.placeholder&&o.placeholder()]),o.previewMask&&C.value&&br("div",{class:[`${t}-mask`,_]},[o.previewMask()])]),!y.value&&C.value&&br(K_,sl(sl({},Q),{},{"aria-hidden":!h.value,visible:h.value,prefixCls:l.value,onClose:M,mousePosition:m.value,src:H,alt:x,getContainer:d.value,icons:N,rootClassName:b}),null)])}}});eQ.PreviewGroup=V_;const tQ=eQ,nQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function oQ(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:cl(cl({},PQ("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:cl(cl({},PQ("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Gw(e)}]},MQ=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:cl(cl({},Xu(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:cl({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Uu(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},IQ=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},EQ=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},AQ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},DQ=Ku("Modal",(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=Ju(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[MQ(r),IQ(r),EQ(r),TQ(r),e.wireframe&&AQ(r),MS(r,"zoom")]})),RQ=e=>({position:e||"absolute",inset:0}),zQ=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new mu("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:cl(cl({},Wu),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},BQ=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:i}=e,l=new mu(n).setAlpha(.1),a=l.clone().setAlpha(.2);return{[`${t}-operations`]:cl(cl({},Xu(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},jQ=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:l}=e,a=new mu(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},NQ=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:cl(cl({},RQ()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":cl(cl({},RQ()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[BQ(e),jQ(e)]}]},_Q=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:cl({},zQ(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:cl({},RQ())}}},QQ=e=>{const{previewCls:t}=e;return{[`${t}-root`]:MS(e,"zoom"),"&":Gw(e,!0)}},LQ=Ku("Image",(e=>{const t=`${e.componentCls}-preview`,n=Ju(e,{previewCls:t,modalMaskBg:new mu("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[_Q(n),NQ(n),TQ(Ju(n,{componentCls:t})),QQ(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new mu(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new mu(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),HQ={rotateLeft:br(lQ,null,null),rotateRight:br(dQ,null,null),zoomIn:br(mQ,null,null),zoomOut:br(wQ,null,null),close:br(qb,null,null),left:br(LD,null,null),right:br(sk,null,null),flipX:br(kQ,null,null),flipY:br(kQ,{rotate:90},null)},FQ=jn({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:xa()},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:i}=$d("image",e),l=Lr((()=>`${r.value}-preview`)),[a,s]=LQ(r),c=Lr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return cl(cl({},n),{rootClassName:s.value,transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>a(br(V_,sl(sl({},cl(cl({},n),e)),{},{preview:c.value,icons:HQ,previewPrefixCls:l.value}),o))}}),WQ=jn({name:"AImage",inheritAttrs:!1,props:G_(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:i,configProvider:l}=$d("image",e),[a,s]=LQ(r),c=Lr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return cl(cl({icons:HQ},n),{transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>{var t,i;const u=(null===(i=null===(t=l.locale)||void 0===t?void 0:t.value)||void 0===i?void 0:i.Image)||Ka.Image,d=()=>br("div",{class:`${r.value}-mask-info`},[br(S_,null,null),null==u?void 0:u.preview]),{previewMask:p=n.previewMask||d}=e;return a(br(tQ,sl(sl({},cl(cl(cl({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:xl(e.rootClassName,s.value)}),cl(cl({},n),{previewMask:"function"==typeof p?p:null})))}}});WQ.PreviewGroup=FQ,WQ.install=function(e){return e.component(WQ.name,WQ),e.component(WQ.PreviewGroup.name,WQ.PreviewGroup),e};const XQ=WQ,YQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function ZQ(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(GQ()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new rL(Number.MAX_SAFE_INTEGER);if(n0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":tL(this.number)}}class iL{constructor(e){if(this.origin="",oL(e))return void(this.empty=!0);if(this.origin=String(e),"-"===e||Number.isNaN(e))return void(this.nan=!0);let t=e;if(JQ(t)&&(t=Number(t)),t="string"==typeof t?t:tL(t),nL(t)){const e=qQ(t);this.negative=e.negative;const n=e.trimStr.split(".");this.integer=BigInt(n[0]);const o=n[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(t)}negate(){const e=new iL(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new iL(e);const t=new iL(e);if(t.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=(this.alignDecimal(n)+t.alignDecimal(n)).toString(),{negativeStr:r,trimStr:i}=qQ(o),l=`${r}${i.padStart(n+1,"0")}`;return new iL(`${l.slice(0,-n)}.${l.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(null==e?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":qQ(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr}}function lL(e){return GQ()?new iL(e):new rL(e)}function aL(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";const{negativeStr:r,integerStr:i,decimalStr:l}=qQ(e),a=`${t}${l}`,s=`${r}${i}`;if(n>=0){const i=Number(l[n]);return i>=5&&!o?aL(lL(e).add(`${r}0.${"0".repeat(n)}${10-i}`).toString(),t,n,o):0===n?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return".0"===a?s:`${s}${a}`}const sL=jn({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:$a()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=bt(),i=(e,t)=>{e.preventDefault(),o("step",t),r.value=setTimeout((function e(){o("step",t),r.value=setTimeout(e,200)}),600)},l=()=>{clearTimeout(r.value)};return Kn((()=>{l()})),()=>{if(pv())return null;const{prefixCls:t,upDisabled:o,downDisabled:r}=e,a=`${t}-handler`,s=xl(a,`${a}-up`,{[`${a}-up-disabled`]:o}),c=xl(a,`${a}-down`,{[`${a}-down-disabled`]:r}),u={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:d,downNode:p}=n;return br("div",{class:`${a}-wrap`},[br("span",sl(sl({},u),{},{onMousedown:e=>{i(e,!0)},"aria-label":"Increase Value","aria-disabled":o,class:s}),[(null==d?void 0:d())||br("span",{unselectable:"on",class:`${t}-handler-up-inner`},null)]),br("span",sl(sl({},u),{},{onMousedown:e=>{i(e,!1)},"aria-label":"Decrease Value","aria-disabled":r,class:c}),[(null==p?void 0:p())||br("span",{unselectable:"on",class:`${t}-handler-down-inner`},null)])])}}}),cL=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),uL=e=>{const t=lL(e);return t.isInvalidate()?null:t},dL=()=>({stringMode:Sa(),defaultValue:Pa([String,Number]),value:Pa([String,Number]),prefixCls:ka(),min:Pa([String,Number]),max:Pa([String,Number]),step:Pa([String,Number],1),tabindex:Number,controls:Sa(!0),readonly:Sa(),disabled:Sa(),autofocus:Sa(),keyboard:Sa(!0),parser:$a(),formatter:$a(),precision:Number,decimalSeparator:String,onInput:$a(),onChange:$a(),onPressEnter:$a(),onStep:$a(),onBlur:$a(),onFocus:$a()}),pL=jn({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:cl(cl({},dL()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const l=yt(),a=yt(!1),s=yt(!1),c=yt(!1),u=yt(lL(e.value)),d=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(eL(t),eL(e.step))},p=t=>{const n=String(t);if(e.parser)return e.parser(n);let o=n;return e.decimalSeparator&&(o=o.replace(e.decimalSeparator,".")),o.replace(/[^\w.-]+/g,"")},h=yt(""),f=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(h.value)});let o="number"==typeof t?tL(t):t;if(!n){const t=d(o,n);nL(o)&&(e.decimalSeparator||t>=0)&&(o=aL(o,e.decimalSeparator||".",t))}return o},g=(()=>{const t=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":t:f(u.value.toString(),!1)})();function m(e,t){h.value=f(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}h.value=g;const v=Lr((()=>uL(e.max))),b=Lr((()=>uL(e.min))),y=Lr((()=>!(!v.value||!u.value||u.value.isInvalidate())&&v.value.lessEquals(u.value))),O=Lr((()=>!(!b.value||!u.value||u.value.isInvalidate())&&u.value.lessEquals(b.value))),[w,S]=function(e,t){const n=bt(null);return[function(){try{const{selectionStart:t,selectionEnd:o,value:r}=e.value,i=r.substring(0,t),l=r.substring(o);n.value={start:t,end:o,value:r,beforeTxt:i,afterTxt:l}}catch(Eue){}},function(){if(e.value&&n.value&&t.value)try{const{value:t}=e.value,{beforeTxt:o,afterTxt:r,start:i}=n.value;let l=t.length;if(t.endsWith(r))l=t.length-n.value.afterTxt.length;else if(t.startsWith(o))l=o.length;else{const e=o[i-1],n=t.indexOf(e,i-1);-1!==n&&(l=n+1)}e.value.setSelectionRange(l,l)}catch(Eue){Eue.message}}]}(l,a),$=e=>v.value&&!e.lessEquals(v.value)?v.value:b.value&&!b.value.lessEquals(e)?b.value:null,x=e=>!$(e),C=(t,n)=>{var o;let r=t,i=x(r)||r.isEmpty();if(r.isEmpty()||n||(r=$(r)||r,i=!0),!e.readonly&&!e.disabled&&i){const t=r.toString(),i=d(t,n);return i>=0&&(r=lL(aL(t,".",i))),r.equals(u.value)||(l=r,void 0===e.value&&(u.value=l),null===(o=e.onChange)||void 0===o||o.call(e,r.isEmpty()?null:cL(e.stringMode,r)),void 0===e.value&&m(r,n)),r}var l;return u.value},k=(()=>{const e=yt(0),t=()=>{ma.cancel(e.value)};return Kn((()=>{t()})),n=>{t(),e.value=ma((()=>{n()}))}})(),P=t=>{var n;if(w(),h.value=t,!c.value){const e=lL(p(t));e.isNaN()||C(e,!0)}null===(n=e.onInput)||void 0===n||n.call(e,t),k((()=>{let n=t;e.parser||(n=t.replace(/。/g,".")),n!==t&&P(n)}))},T=()=>{c.value=!0},M=()=>{c.value=!1,P(l.value.value)},I=e=>{P(e.target.value)},E=t=>{var n,o;if(t&&y.value||!t&&O.value)return;s.value=!1;let r=lL(e.step);t||(r=r.negate());const i=(u.value||lL(0)).add(r.toString()),a=C(i,!1);null===(n=e.onStep)||void 0===n||n.call(e,cL(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(o=l.value)||void 0===o||o.focus()},A=t=>{const n=lL(p(h.value));let o=n;o=n.isNaN()?u.value:C(n,t),void 0!==e.value?m(u.value,!1):o.isNaN()||m(o,!1)},D=t=>{var n;const{which:o}=t;s.value=!0,o===Im.ENTER&&(c.value||(s.value=!1),A(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t)),!1!==e.keyboard&&!c.value&&[Im.UP,Im.DOWN].includes(o)&&(E(Im.UP===o),t.preventDefault())},R=()=>{s.value=!1},z=e=>{A(!1),a.value=!1,s.value=!1,r("blur",e)};return bn((()=>e.precision),(()=>{u.value.isInvalidate()||m(u.value,!1)}),{flush:"post"}),bn((()=>e.value),(()=>{const t=lL(e.value);u.value=t;const n=lL(p(h.value));t.equals(n)&&s.value&&!e.formatter||m(t,s.value)}),{flush:"post"}),bn(h,(()=>{e.formatter&&S()}),{flush:"post"}),bn((()=>e.disabled),(e=>{e&&(a.value=!1)})),i({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()}}),()=>{const t=cl(cl({},n),e),{prefixCls:i="rc-input-number",min:s,max:c,step:d=1,defaultValue:p,value:f,disabled:g,readonly:m,keyboard:v,controls:b=!0,autofocus:w,stringMode:S,parser:$,formatter:C,precision:k,decimalSeparator:P,onChange:A,onInput:B,onPressEnter:j,onStep:N,lazy:_,class:Q,style:L}=t,H=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{a.value=!0,r("focus",e)}},Y),{},{onBlur:z,onCompositionstart:T,onCompositionend:M}),null)])])}}});function hL(e){return null!=e}const fL=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:i,fontSizeLG:l,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:h,controlHeight:f,inputPaddingHorizontal:g,colorBgContainer:m,colorTextDisabled:v,borderRadiusSM:b,borderRadiusLG:y,controlWidth:O,handleVisible:w}=e;return[{[t]:cl(cl(cl(cl({},Xu(e)),KM(e)),UM(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:y,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":cl({},WM(e)),"&-focused":cl({},XM(e)),"&-disabled":cl(cl({},YM(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":cl(cl(cl({},Xu(e)),GM(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}}}}),[t]:{"&-input":cl(cl({width:"100%",height:f-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},FM(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gL=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:cl(cl(cl({},KM(e)),UM(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:cl(cl({},WM(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},mL=Ku("InputNumber",(e=>{const t=oI(e);return[fL(t),gL(t),QS(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}))),vL=dL(),bL=jn({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:cl(cl({},vL),{size:ka(),bordered:Sa(!0),placeholder:String,name:String,id:String,type:String,addonBefore:$p.any,addonAfter:$p.any,prefix:$p.any,"onUpdate:value":vL.onChange,valueModifiers:Object,status:ka()}),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:i}=t;const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,size:u,direction:d,disabled:p}=$d("input-number",e),{compactSize:h,compactItemClassnames:f}=Hw(c,d),g=Wa(),m=Lr((()=>{var e;return null!==(e=p.value)&&void 0!==e?e:g.value})),[v,b]=mL(c),y=Lr((()=>h.value||u.value)),O=yt(void 0===e.value?e.defaultValue:e.value),w=yt(!1);bn((()=>e.value),(()=>{O.value=e.value}));const S=yt(null),$=()=>{var e;null===(e=S.value)||void 0===e||e.focus()};o({focus:$,blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}});const x=t=>{void 0===e.value&&(O.value=t),n("update:value",t),n("change",t),l.onFieldChange()},C=e=>{w.value=!1,n("blur",e),l.onFieldBlur()},k=e=>{w.value=!0,n("focus",e)};return()=>{var t,n,o,u;const{hasFeedback:p,isFormItemInput:h,feedbackIcon:g}=a,P=null!==(t=e.id)&&void 0!==t?t:l.id.value,T=cl(cl(cl({},r),e),{id:P,disabled:m.value}),{class:M,bordered:I,readonly:E,style:A,addonBefore:D=(null===(n=i.addonBefore)||void 0===n?void 0:n.call(i)),addonAfter:R=(null===(o=i.addonAfter)||void 0===o?void 0:o.call(i)),prefix:z=(null===(u=i.prefix)||void 0===u?void 0:u.call(i)),valueModifiers:B={}}=T,j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${N}-handler-up-inner`},[i.upIcon()]):()=>br(KQ,{class:`${N}-handler-up-inner`},null),downHandler:i.downIcon?()=>br("span",{class:`${N}-handler-down-inner`},[i.downIcon()]):()=>br(jb,{class:`${N}-handler-down-inner`},null)});const L=hL(D)||hL(R),H=hL(z);if(H||p){const e=xl(`${N}-affix-wrapper`,yy(`${N}-affix-wrapper`,s.value,p),{[`${N}-affix-wrapper-focused`]:w.value,[`${N}-affix-wrapper-disabled`]:m.value,[`${N}-affix-wrapper-sm`]:"small"===y.value,[`${N}-affix-wrapper-lg`]:"large"===y.value,[`${N}-affix-wrapper-rtl`]:"rtl"===d.value,[`${N}-affix-wrapper-readonly`]:E,[`${N}-affix-wrapper-borderless`]:!I,[`${M}`]:!L&&M},b.value);Q=br("div",{class:e,style:A,onClick:$},[H&&br("span",{class:`${N}-prefix`},[z]),Q,p&&br("span",{class:`${N}-suffix`},[g])])}if(L){const e=`${N}-group`,t=`${e}-addon`,n=D?br("div",{class:t},[D]):null,o=R?br("div",{class:t},[R]):null,r=xl(`${N}-wrapper`,e,{[`${e}-rtl`]:"rtl"===d.value},b.value),i=xl(`${N}-group-wrapper`,{[`${N}-group-wrapper-sm`]:"small"===y.value,[`${N}-group-wrapper-lg`]:"large"===y.value,[`${N}-group-wrapper-rtl`]:"rtl"===d.value},yy(`${c}-group-wrapper`,s.value,p),M,b.value);Q=br("div",{class:i,style:A},[br("div",{class:r},[n&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[n]})]}),Q,o&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[o]})]})])])}return v(Yh(Q,{style:A}))}}}),yL=cl(bL,{install:e=>(e.component(bL.name,bL),e)}),OL=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},wL=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:l,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:h,motionDurationMid:f,motionDurationSlow:g,fontSize:m,borderRadius:v}=e;return{[n]:cl(cl({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:m,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${f}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:r,lineHeight:`${p}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${f}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-h,zIndex:1,width:h,height:h,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},OL(e)),{"&-rtl":{direction:"rtl"}})}},SL=Ku("Layout",(e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:i}=e,l=1.25*r,a=Ju(e,{layoutHeaderHeight:2*o,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+2*i,layoutZeroTriggerSize:r});return[wL(a)]}),(e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}})),$L=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function xL(e){let{suffixCls:t,tagName:n,name:o}=e;return e=>jn({compatConfig:{MODE:3},name:o,props:$L(),setup(o,r){let{slots:i}=r;const{prefixCls:l}=$d(t,o);return()=>{const t=cl(cl({},o),{prefixCls:l.value,tagName:n});return br(e,t,i)}}})}const CL=jn({compatConfig:{MODE:3},props:$L(),setup(e,t){let{slots:n}=t;return()=>br(e.tagName,{class:e.prefixCls},n)}}),kL=jn({compatConfig:{MODE:3},inheritAttrs:!1,props:$L(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("",e),[l,a]=SL(r),s=bt([]);To(kk,{addSider:e=>{s.value=[...s.value,e]},removeSider:e=>{s.value=s.value.filter((t=>t!==e))}});const c=Lr((()=>{const{prefixCls:t,hasSider:n}=e;return{[a.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:"boolean"==typeof n?n:s.value.length>0,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{const{tagName:t}=e;return l(br(t,cl(cl({},o),{class:[c.value,o.class]}),n))}}}),PL=xL({suffixCls:"layout",tagName:"section",name:"ALayout"})(kL),TL=xL({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(CL),ML=xL({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(CL),IL=xL({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(CL),EL=PL,AL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function DL(e){for(var t=1;t{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),_L=jn({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Vl({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:$p.any,width:$p.oneOfType([$p.number,$p.string]),collapsedWidth:$p.oneOfType([$p.number,$p.string]),breakpoint:$p.oneOf(ba("xs","sm","md","lg","xl","xxl","xxxl")),theme:$p.oneOf(ba("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function},{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:i}=$d("layout-sider",e),l=Mo(kk,void 0),a=yt(!!(void 0!==e.collapsed?e.collapsed:e.defaultCollapsed)),s=yt(!1);bn((()=>e.collapsed),(()=>{a.value=!!e.collapsed})),To(Ck,a);const c=(t,o)=>{void 0===e.collapsed&&(a.value=t),n("update:collapsed",t),n("collapse",t,o)},u=yt((e=>{s.value=e.matches,n("breakpoint",e.matches),a.value!==e.matches&&c(e.matches,"responsive")}));let d;function p(e){return u.value(e)}const h=NL("ant-sider-");l&&l.addSider(h),Zn((()=>{bn((()=>e.breakpoint),(()=>{try{null==d||d.removeEventListener("change",p)}catch(t){null==d||d.removeListener(p)}if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&e.breakpoint&&e.breakpoint in jL){d=n(`(max-width: ${jL[e.breakpoint]})`);try{d.addEventListener("change",p)}catch(t){d.addListener(p)}p(d)}}}),{immediate:!0})})),Kn((()=>{try{null==d||d.removeEventListener("change",p)}catch(e){null==d||d.removeListener(p)}l&&l.removeSider(h)}));const f=()=>{c(!a.value,"clickTrigger")};return()=>{var t,n;const l=i.value,{collapsedWidth:c,width:u,reverseArrow:d,zeroWidthTriggerStyle:p,trigger:h=(null===(t=r.trigger)||void 0===t?void 0:t.call(r)),collapsible:g,theme:m}=e,v=a.value?c:u,b=Vx(v)?`${v}px`:String(v),y=0===parseFloat(String(c||0))?br("span",{onClick:f,class:xl(`${l}-zero-width-trigger`,`${l}-zero-width-trigger-${d?"right":"left"}`),style:p},[h||br(BL,null,null)]):null,O={expanded:br(d?sk:LD,null,null),collapsed:br(d?LD:sk,null,null)},w=a.value?"collapsed":"expanded",S=null!==h?y||br("div",{class:`${l}-trigger`,onClick:f,style:{width:b}},[h||O[w]]):null,$=[o.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],x=xl(l,`${l}-${m}`,{[`${l}-collapsed`]:!!a.value,[`${l}-has-trigger`]:g&&null!==h&&!y,[`${l}-below`]:!!s.value,[`${l}-zero-width`]:0===parseFloat(b)},o.class);return br("aside",sl(sl({},o),{},{class:x,style:$}),[br("div",{class:`${l}-children`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),g||s.value&&y?S:null])}}}),QL=TL,LL=ML,HL=_L,FL=IL,WL=cl(EL,{Header:TL,Footer:ML,Content:IL,Sider:_L,install:e=>(e.component(EL.name,EL),e.component(TL.name,TL),e.component(ML.name,ML),e.component(_L.name,_L),e.component(IL.name,IL),e)});function XL(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,l=void 0!==i&&i,a=r.noLeading,s=void 0!==a&&a,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function h(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),i=0;ie?s?(p=Date.now(),l||(o=setTimeout(u?g:f,e))):f():!0!==l&&(o=setTimeout(u?g:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;h(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const YL=new Hc("antSpinMove",{to:{opacity:1}}),ZL=new Hc("antRotate",{to:{transform:"rotate(405deg)"}}),VL=e=>({[`${e.componentCls}`]:cl(cl({},Xu(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:YL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ZL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),UL=Ku("Spin",(e=>{const t=Ju(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[VL(t)]}),{contentHeight:400});let KL=null;const GL=jn({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Vl({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:$p.any,delay:Number,indicator:$p.any},{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:i,direction:l}=$d("spin",e),[a,s]=UL(r),c=yt(e.spinning&&(u=e.spinning,d=e.delay,!(u&&d&&!isNaN(Number(d)))));var u,d;let p;return bn([()=>e.spinning,()=>e.delay],(()=>{null==p||p.cancel(),p=XL(e.delay,(()=>{c.value=e.spinning})),null==p||p()}),{immediate:!0,flush:"post"}),Kn((()=>{null==p||p.cancel()})),()=>{var t,u;const{class:d}=n,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(t,null,null)},GL.install=function(e){return e.component(GL.name,GL),e};const qL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function JL(e){for(var t=1;t{const t=cl(cl(cl({},e),{size:"small"}),n);return br(qS,t,o)}}}),cH=jn({name:"MiddleSelect",inheritAttrs:!1,props:ZS(),Option:qS.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=cl(cl(cl({},e),{size:"middle"}),n);return br(qS,t,o)}}}),uH=jn({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:$p.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},i=t=>{n("keypress",t,r,e.page)};return()=>{const{showTitle:t,page:n,itemRender:l}=e,{class:a,style:s}=o,c=`${e.rootPrefixCls}-item`,u=xl(c,`${c}-${e.page}`,{[`${c}-active`]:e.active,[`${c}-disabled`]:!e.page},a);return br("li",{onClick:r,onKeypress:i,title:t?String(n):null,tabindex:"0",class:u,style:s},[l({page:n,type:"page",originalElement:br("a",{rel:"nofollow"},[n])})])}}}),dH=13,pH=38,hH=40,fH=jn({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:$p.any,current:Number,pageSizeOptions:$p.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:$p.object,rootPrefixCls:String,selectPrefixCls:String,goButton:$p.any},setup(e){const t=bt(""),n=Lr((()=>!t.value||isNaN(t.value)?void 0:Number(t.value))),o=t=>`${t.value} ${e.locale.items_per_page}`,r=e=>{const{value:n,composing:o}=e.target;e.isComposing||o||t.value===n||(t.value=n)},i=o=>{const{goButton:r,quickGo:i,rootPrefixCls:l}=e;r||""===t.value||(o.relatedTarget&&(o.relatedTarget.className.indexOf(`${l}-item-link`)>=0||o.relatedTarget.className.indexOf(`${l}-item`)>=0)||i(n.value),t.value="")},l=o=>{""!==t.value&&(o.keyCode!==dH&&"click"!==o.type||(e.quickGo(n.value),t.value=""))},a=Lr((()=>{const{pageSize:t,pageSizeOptions:n}=e;return n.some((e=>e.toString()===t.toString()))?n:n.concat([t.toString()]).sort(((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))))}));return()=>{const{rootPrefixCls:n,locale:s,changeSize:c,quickGo:u,goButton:d,selectComponentClass:p,selectPrefixCls:h,pageSize:f,disabled:g}=e,m=`${n}-options`;let v=null,b=null,y=null;if(!c&&!u)return null;if(c&&p){const t=e.buildOptionText||o,n=a.value.map(((e,n)=>br(p.Option,{key:n,value:e},{default:()=>[t({value:e})]})));v=br(p,{disabled:g,prefixCls:h,showSearch:!1,class:`${m}-size-changer`,optionLabelProp:"children",value:(f||a.value[0]).toString(),onChange:e=>c(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return u&&(d&&(y="boolean"==typeof d?br("button",{type:"button",onClick:l,onKeyup:l,disabled:g,class:`${m}-quick-jumper-button`},[s.jump_to_confirm]):br("span",{onClick:l,onKeyup:l},[d])),b=br("div",{class:`${m}-quick-jumper`},[s.jump_to,$n(br("input",{disabled:g,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:i},null),[[Bm]]),s.page,y])),br("li",{class:`${m}`},[v,b])}}});function gH(e,t,n){const o=void 0===e?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const mH=jn({compatConfig:{MODE:3},name:"Pagination",mixins:[pm],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:$p.string.def("rc-pagination"),selectPrefixCls:$p.string.def("rc-select"),current:Number,defaultCurrent:$p.number.def(1),total:$p.number.def(0),pageSize:Number,defaultPageSize:$p.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:$p.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:$p.oneOfType([$p.looseBool,$p.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:$p.arrayOf($p.oneOfType([$p.number,$p.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:$p.object.def({items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}),itemRender:$p.func.def((function(e){let{originalElement:t}=e;return t})),prevIcon:$p.any,nextIcon:$p.any,jumpPrevIcon:$p.any,jumpNextIcon:$p.any,totalBoundaryShowSizeChanger:$p.number.def(50)},data(){const e=this.$props;let t=yx([this.current,this.defaultCurrent]);const n=yx([this.pageSize,this.defaultPageSize]);return t=Math.min(t,gH(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=gH(e,this.$data,this.$props);n=n>o?o:n,Kl(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick((()=>{if(this.$refs.paginationNode){const e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}}))},total(){const e={},t=gH(this.pageSize,this.$data,this.$props);if(Kl(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=0===n&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(gH(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return na(this,e,this.$props)||br("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=gH(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return r=""===t?t:isNaN(Number(t))?o:t>=n?n:Number(t),r},isValid(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==this.stateCurrent;var t},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return!(n<=t)&&e},handleKeyDown(e){e.keyCode!==pH&&e.keyCode!==hH||e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===dH?this.handleChange(t):e.keyCode===pH?this.handleChange(t-1):e.keyCode===hH&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=gH(e,this.$data,this.$props);t=t>o?o:t,0===o&&(t=this.stateCurrent),"number"==typeof e&&(Kl(this,"pageSize")||this.setState({statePageSize:e}),Kl(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const e=gH(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),Kl(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?v-1:0,A=v+1=2*I&&3!==v&&($[0]=br(uH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:o,page:o,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),$.unshift(x)),S-v>=2*I&&v!==S-2&&($[$.length-1]=br(uH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:i,page:i,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),$.push(C)),1!==o&&$.unshift(k),i!==S&&$.push(P)}let z=null;s&&(z=br("li",{class:`${e}-total-text`},[s(o,[0===o?0:(v-1)*b+1,v*b>o?o:v*b])]));const B=!D||!S,j=!R||!S,N=this.buildOptionText||this.$slots.buildOptionText;return br("ul",sl(sl({unselectable:"on",ref:"paginationNode"},w),{},{class:xl({[`${e}`]:!0,[`${e}-disabled`]:t},O)}),[z,br("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:xl(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(E)]),$,br("li",{title:a?r.next_page:null,onClick:this.next,tabindex:j?null:0,onKeypress:this.runIfEnterNext,class:xl(`${e}-next`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderNext(A)]),br(fH,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:f,selectPrefixCls:g,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:b,pageSizeOptions:m,buildOptionText:N||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:M},null)])}}),vH=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`\n &:hover ${t}-item:not(${t}-item-active),\n &:active ${t}-item:not(${t}-item-active),\n &:hover ${t}-item-link,\n &:active ${t}-item-link\n `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bH=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:cl(cl({},VM(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},yH=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},OH=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":cl({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Vu(e))},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:cl({},Vu(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:cl(cl({},KM(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},wH=e=>{const{componentCls:t}=e;return{[`${t}-item`]:cl(cl({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Uu(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},SH=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),wH(e)),OH(e)),yH(e)),bH(e)),vH(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},$H=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},xH=Ku("Pagination",(e=>{const t=Ju(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},oI(e));return[SH(t),e.wireframe&&$H(t)]})),CH=ya(jn({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:{total:Number,defaultCurrent:Number,disabled:Sa(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Sa(),showSizeChanger:Sa(),pageSizeOptions:Ca(),buildOptionText:$a(),showQuickJumper:Pa([Boolean,Object]),showTotal:$a(),size:ka(),simple:Sa(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:$a(),role:String,responsive:Boolean,showLessItems:Sa(),onChange:$a(),onShowSizeChange:$a(),"onUpdate:current":$a(),"onUpdate:pageSize":$a()},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:i,direction:l,size:a}=$d("pagination",e),[s,c]=xH(r),u=Lr((()=>i.getPrefixCls("select",e.selectPrefixCls))),d=ex(),[p]=qa("Pagination",Ya,Tt(e,"locale"));return()=>{var t;const{itemRender:i=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:f,responsive:g}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=br("span",{class:`${e}-item-ellipsis`},[Or("•••")]);return{prevIcon:br("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?br(sk,null,null):br(LD,null,null)]),nextIcon:br("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?br(LD,null,null):br(sk,null,null)]),jumpPrevIcon:br("a",{rel:"nofollow",class:`${e}-item-link`},[br("div",{class:`${e}-item-container`},["rtl"===l.value?br(aH,{class:`${e}-item-link-icon`},null):br(nH,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:br("a",{rel:"nofollow",class:`${e}-item-link`},[br("div",{class:`${e}-item-container`},["rtl"===l.value?br(nH,{class:`${e}-item-link-icon`},null):br(aH,{class:`${e}-item-link-icon`},null),t])])}})(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:f||(v?sH:cH),locale:p.value,buildOptionText:h}),o),{class:xl({[`${r.value}-mini`]:v,[`${r.value}-rtl`]:"rtl"===l.value},o.class,c.value),itemRender:i});return s(br(mH,b,null))}}})),kH=jn({compatConfig:{MODE:3},name:"AListItemMeta",props:{avatar:$p.any,description:$p.any,prefixCls:String,title:$p.any},displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("list",e);return()=>{var t,r,i,l,a,s;const c=`${o.value}-item-meta`,u=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),d=null!==(i=e.description)&&void 0!==i?i:null===(l=n.description)||void 0===l?void 0:l.call(n),p=null!==(a=e.avatar)&&void 0!==a?a:null===(s=n.avatar)||void 0===s?void 0:s.call(n),h=br("div",{class:`${o.value}-item-meta-content`},[u&&br("h4",{class:`${o.value}-item-meta-title`},[u]),d&&br("div",{class:`${o.value}-item-meta-description`},[d])]);return br("div",{class:c},[p&&br("div",{class:`${o.value}-item-meta-avatar`},[p]),(u||d)&&h])}}}),PH=Symbol("ListContextKey"),TH=jn({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:kH,props:{prefixCls:String,extra:$p.any,actions:$p.array,grid:Object,colStyle:{type:Object,default:void 0}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:i}=Mo(PH,{grid:bt(),itemLayout:bt()}),{prefixCls:l}=$d("list",e),a=()=>{var e;const t=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];let o;return t.forEach((e=>{var t;(t=e)&&t.type===tr&&!ia(e)&&(o=!0)})),o&&t.length>1},s=()=>{var t,o;const i=null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n);return"vertical"===r.value?!!i:!a()};return()=>{var t,a,c,u,d;const{class:p}=o,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&br("ul",{class:`${f}-item-action`,key:"actions"},[v.map(((e,t)=>br("li",{key:`${f}-item-action-${t}`},[e,t!==v.length-1&&br("em",{class:`${f}-item-action-split`},null)])))]),y=i.value?"div":"li",O=br(y,sl(sl({},h),{},{class:xl(`${f}-item`,{[`${f}-item-no-flex`]:!s()},p)}),{default:()=>["vertical"===r.value&&g?[br("div",{class:`${f}-item-main`,key:"content"},[m,b]),br("div",{class:`${f}-item-extra`,key:"extra"},[g])]:[m,b,Yh(g,{key:"extra"})]]});return i.value?br(ZR,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),MH=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:i,listItemPaddingSM:l,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},IH=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:l}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${l}px`}}}}}},EH=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:l,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:p,margin:h,colorText:f,colorTextDescription:g,motionDurationSlow:m,lineWidth:v}=e;return{[`${t}`]:cl(cl({},Xu(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${p}px`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},AH=Ku("List",(e=>{const t=Ju(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[EH(t),MH(t),IH(t)]}),{contentWidth:220}),DH=jn({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:TH,props:Vl({bordered:Sa(),dataSource:Ca(),extra:{validator:()=>!0},grid:wa(),itemLayout:String,loading:Pa([Boolean,Object]),loadMore:{validator:()=>!0},pagination:Pa([Boolean,Object]),prefixCls:String,rowKey:Pa([String,Number,Function]),renderItem:$a(),size:String,split:Sa(),header:{validator:()=>!0},footer:{validator:()=>!0},locale:wa()},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,i;To(PH,{grid:Tt(e,"grid"),itemLayout:Tt(e,"itemLayout")});const l={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=$d("list",e),[u,d]=AH(a),p=Lr((()=>e.pagination&&"object"==typeof e.pagination?e.pagination:{})),h=bt(null!==(r=p.value.defaultCurrent)&&void 0!==r?r:1),f=bt(null!==(i=p.value.defaultPageSize)&&void 0!==i?i:10);bn(p,(()=>{"current"in p.value&&(h.value=p.value.current),"pageSize"in p.value&&(f.value=p.value.pageSize)}));const g=[],m=e=>(t,n)=>{h.value=t,f.value=n,p.value[e]&&p.value[e](t,n)},v=m("onChange"),b=m("onShowSizeChange"),y=Lr((()=>"boolean"==typeof e.loading?{spinning:e.loading}:e.loading)),O=Lr((()=>y.value&&y.value.spinning)),w=Lr((()=>{let t="";switch(e.size){case"large":t="lg";break;case"small":t="sm"}return t})),S=Lr((()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:"vertical"===e.itemLayout,[`${a.value}-${w.value}`]:w.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:O.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:"rtl"===s.value}))),$=Lr((()=>{const t=cl(cl(cl({},l),{total:e.dataSource.length,current:h.value,pageSize:f.value}),e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t})),x=Lr((()=>{let t=[...e.dataSource];return e.pagination&&e.dataSource.length>($.value.current-1)*$.value.pageSize&&(t=[...e.dataSource].splice(($.value.current-1)*$.value.pageSize,$.value.pageSize)),t})),C=ex(),k=tx((()=>{for(let e=0;e{if(!e.grid)return;const t=k.value&&e.grid[k.value]?e.grid[k.value]:e.grid.column;return t?{width:100/t+"%",maxWidth:100/t+"%"}:void 0}));return()=>{var t,r,i,l,s,p,h,f;const m=null!==(t=e.loadMore)&&void 0!==t?t:null===(r=n.loadMore)||void 0===r?void 0:r.call(n),w=null!==(i=e.footer)&&void 0!==i?i:null===(l=n.footer)||void 0===l?void 0:l.call(n),C=null!==(s=e.header)&&void 0!==s?s:null===(p=n.header)||void 0===p?void 0:p.call(n),k=ql(null===(h=n.default)||void 0===h?void 0:h.call(n)),T=!!(m||e.pagination||w),M=xl(cl(cl({},S.value),{[`${a.value}-something-after-last-item`]:T}),o.class,d.value),I=e.pagination?br("div",{class:`${a.value}-pagination`},[br(CH,sl(sl({},$.value),{},{onChange:v,onShowSizeChange:b}),null)]):null;let E=O.value&&br("div",{style:{minHeight:"53px"}},null);if(x.value.length>0){g.length=0;const t=x.value.map(((t,o)=>((t,o)=>{var r;const i=null!==(r=e.renderItem)&&void 0!==r?r:n.renderItem;if(!i)return null;let l;const a=typeof e.rowKey;return l="function"===a?e.rowKey(t):"string"===a||"number"===a?t[e.rowKey]:t.key,l||(l=`list-item-${o}`),g[o]=l,i({item:t,index:o})})(t,o))),o=t.map(((e,t)=>br("div",{key:g[t],style:P.value},[e])));E=e.grid?br(JD,{gutter:e.grid.gutter},{default:()=>[o]}):br("ul",{class:`${a.value}-items`},[t])}else k.length||O.value||(E=br("div",{class:`${a.value}-empty-text`},[(null===(f=e.locale)||void 0===f?void 0:f.emptyText)||c("List")]));const A=$.value.position||"bottom";return u(br("div",sl(sl({},o),{},{class:M}),[("top"===A||"both"===A)&&I,C&&br("div",{class:`${a.value}-header`},[C]),br(GL,y.value,{default:()=>[E,k]}),w&&br("div",{class:`${a.value}-footer`},[w]),m||("bottom"===A||"both"===A)&&I]))}}});DH.install=function(e){return e.component(DH.name,DH),e.component(DH.Item.name,DH.Item),e.component(DH.Item.Meta.name,DH.Item.Meta),e};const RH=DH;function zH(e){return(e||"").toLowerCase()}function BH(e,t){const{measureLocation:n,prefix:o,targetText:r,selectionStart:i,split:l}=t;let a=e.slice(0,n);a[a.length-l.length]===l&&(a=a.slice(0,a.length-l.length)),a&&(a=`${a}${l}`);let s=function(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const i=t.length;for(let l=0;l[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:i,onFocus:l=_H,loading:a}=Mo(NH,{activeIndex:yt(),loading:yt(!1)});let s;const c=e=>{clearTimeout(s),s=setTimeout((()=>{l(e)}))};return Kn((()=>{clearTimeout(s)})),()=>{var t;const{prefixCls:l,options:s}=e,u=s[o.value]||{};return br(uP,{prefixCls:`${l}-menu`,activeKey:u.value,onSelect:e=>{let{key:t}=e;const n=s.find((e=>{let{value:n}=e;return n===t}));i(n)},onMousedown:c},{default:()=>[!a.value&&s.map(((e,t)=>{var o,i;const{value:l,disabled:a,label:s=e.value,class:c,style:u}=e;return br(Bk,{key:l,disabled:a,onMouseenter:()=>{r(t)},class:c,style:u},{default:()=>[null!==(i=null===(o=n.option)||void 0===o?void 0:o.call(n,e))&&void 0!==i?i:"function"==typeof s?s(e):s]})})),a.value||0!==s.length?null:br(Bk,{key:"notFoundContent",disabled:!0},{default:()=>[null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n)]}),a.value&&br(Bk,{key:"loading",disabled:!0},{default:()=>[br(GL,{size:"small"},null)]})]})}}}),LH={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},HH=jn({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:t}=e;return br(QH,{prefixCls:o(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},i=Lr((()=>{const{placement:t,direction:n}=e;let o="topRight";return o="rtl"===n?"top"===t?"topLeft":"bottomLeft":"top"===t?"topRight":"bottomRight",o}));return()=>{const{visible:t,transitionName:l,getPopupContainer:a}=e;return br(Pm,{prefixCls:o(),popupVisible:t,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:l,builtinPlacements:LH,getPopupContainer:a},{default:n.default})}}}),FH=ba("top","bottom"),WH={autofocus:{type:Boolean,default:void 0},prefix:$p.oneOfType([$p.string,$p.arrayOf($p.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:$p.oneOf(FH),character:$p.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:Ca(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},XH=cl(cl({},WH),{dropdownClassName:String}),YH={prefix:"@",split:" ",rows:1,validateSearch:function(e,t){const{split:n}=t;return!n||-1===e.indexOf(n)},filterOption:()=>jH};Vl(XH,YH);var ZH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{c.value=e.value}));const u=e=>{n("change",e)},d=e=>{let{target:{value:t,composing:n},isComposing:o}=e;o||n||u(t)},p=e=>{cl(c,{measuring:!1,measureLocation:0,measureText:null}),null==e||e()},h=e=>{const{which:t}=e;if(c.measuring)if(t===Im.UP||t===Im.DOWN){const n=S.value.length,o=t===Im.UP?-1:1,r=(c.activeIndex+o+n)%n;c.activeIndex=r,e.preventDefault()}else if(t===Im.ESC)p();else if(t===Im.ENTER){if(e.preventDefault(),!S.value.length)return void p();const t=S.value[c.activeIndex];O(t)}},f=t=>{const{key:o,which:r}=t,{measureText:i,measuring:l}=c,{prefix:a,validateSearch:s}=e,u=t.target;if(u.composing)return;const d=function(e){const{selectionStart:t}=e;return e.value.slice(0,t)}(u),{location:h,prefix:f}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce(((t,n)=>{const o=e.lastIndexOf(n);return o>t.location?{location:o,prefix:n}:t}),{location:-1,prefix:""})}(d,a);if(-1===[Im.ESC,Im.UP,Im.DOWN,Im.ENTER].indexOf(r))if(-1!==h){const t=d.slice(h+f.length),r=s(t,e),a=!!w(t).length;r?(o===f||"Shift"===o||l||t!==i&&a)&&((e,t,n)=>{cl(c,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})})(t,f,h):l&&p(),r&&n("search",t,f)}else l&&p()},g=e=>{c.measuring||n("pressenter",e)},m=e=>{b(e)},v=e=>{y(e)},b=e=>{clearTimeout(s.value);const{isFocus:t}=c;!t&&e&&n("focus",e),c.isFocus=!0},y=e=>{s.value=setTimeout((()=>{c.isFocus=!1,p(),n("blur",e)}),100)},O=t=>{const{split:o}=e,{value:r=""}=t,{text:i,selectionLocation:l}=BH(c.value,{measureLocation:c.measureLocation,targetText:r,prefix:c.measurePrefix,selectionStart:a.value.selectionStart,split:o});u(i),p((()=>{var e,t;e=a.value,t=l,e.setSelectionRange(t,t),e.blur(),e.focus()})),n("select",t,c.measurePrefix)},w=t=>{const n=t||c.measureText||"",{filterOption:o}=e;return e.options.filter((e=>0==!!o||o(n,e)))},S=Lr((()=>w()));return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),To(NH,{activeIndex:Tt(c,"activeIndex"),setActiveIndex:e=>{c.activeIndex=e},selectOption:O,onFocus:b,onBlur:y,loading:Tt(e,"loading")}),Un((()=>{Ft((()=>{c.measuring&&(l.value.scrollTop=a.value.scrollTop)}))})),()=>{const{measureLocation:t,measurePrefix:n,measuring:r}=c,{prefixCls:s,placement:u,transitionName:p,getPopupContainer:b,direction:y}=e,O=ZH(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:w,style:$}=o,x=ZH(o,["class","style"]),C=cl(cl(cl({},xd(O,["value","prefix","split","validateSearch","filterOption","options","loading"])),x),{onChange:VH,onSelect:VH,value:c.value,onInput:d,onBlur:v,onKeydown:h,onKeyup:f,onFocus:m,onPressenter:g});return br("div",{class:xl(s,w),style:$},[$n(br("textarea",sl({ref:a},C),null),[[Bm]]),r&&br("div",{ref:l,class:`${s}-measure`},[c.value.slice(0,t),br(HH,{prefixCls:s,transitionName:p,dropdownClassName:e.dropdownClassName,placement:u,options:r?S.value:[],visible:!0,direction:y,getPopupContainer:b},{default:()=>[br("span",null,[n])],notFoundContent:i.notFoundContent,option:i.option}),c.value.slice(t+n.length)])])}}}),KH=cl(cl({},{value:String,disabled:Boolean,payload:wa()}),{label:xa([])}),GH={name:"Option",props:KH,render(e,t){let{slots:n}=t;var o;return null===(o=n.default)||void 0===o?void 0:o.call(n)}};cl({compatConfig:{MODE:3}},GH);const qH=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:l,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:p,borderRadiusLG:h,boxShadowSecondary:f}=e,g=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:cl(cl(cl(cl(cl({},Xu(e)),KM(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),UM(e,t)),{"&-disabled":{"> textarea":cl({},YM(e))},"&-focused":cl({},XM(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":cl({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},FM(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":cl(cl({},Xu(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:p,borderRadius:h,outline:"none",boxShadow:f,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":cl(cl({},Wu),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${g}px ${r}px`,color:i,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},JH=Ku("Mentions",(e=>{const t=oI(e);return[qH(t)]}),(e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50})));var eF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rOy(v.status,e.status)));dk({prefixCls:Lr((()=>`${s.value}-menu`)),mode:Lr((()=>"vertical")),selectable:Lr((()=>!1)),onClick:()=>{},validator:e=>{Ts()}}),bn((()=>e.value),(e=>{g.value=e}));const y=e=>{h.value=!0,o("focus",e)},O=e=>{h.value=!1,o("blur",e),m.onFieldBlur()},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n{void 0===e.value&&(g.value=t),o("update:value",t),o("change",t),m.onFieldChange()},$=()=>{const t=e.notFoundContent;return void 0!==t?t:n.notFoundContent?n.notFoundContent():c("Select")};i({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const x=Lr((()=>e.loading?tF:e.filterOption));return()=>{const{disabled:t,getPopupContainer:o,rows:i=1,id:l=m.id.value}=e,a=eF(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:c,feedbackIcon:C}=v,{class:k}=r,P=eF(r,["class"]),T=xd(a,["defaultValue","onUpdate:value","prefixCls"]),M=xl({[`${s.value}-disabled`]:t,[`${s.value}-focused`]:h.value,[`${s.value}-rtl`]:"rtl"===u.value},yy(s.value,b.value),!c&&k,p.value),I=cl(cl(cl(cl({prefixCls:s.value},T),{disabled:t,direction:u.value,filterOption:x.value,getPopupContainer:o,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:br(GL,{size:"small"},null)}]:e.options||ql((null===(E=n.default)||void 0===E?void 0:E.call(n))||[]).map((e=>{var t,n;return cl(cl({},ta(e)),{label:null===(n=null===(t=e.children)||void 0===t?void 0:t.default)||void 0===n?void 0:n.call(t)})})),class:M}),P),{rows:i,onChange:S,onSelect:w,onFocus:y,onBlur:O,ref:f,value:g.value,id:l});var E;const A=br(UH,sl(sl({},I),{},{dropdownClassName:p.value}),{notFoundContent:$,option:n.option});return d(c?br("div",{class:xl(`${s.value}-affix-wrapper`,yy(`${s.value}-affix-wrapper`,b.value,c),k,p.value)},[A,br("span",{class:`${s.value}-suffix`},[C])]):A)}}}),oF=jn(cl(cl({compatConfig:{MODE:3}},GH),{name:"AMentionsOption",props:KH})),rF=cl(nF,{Option:oF,getMentions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return r.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))},install:e=>(e.component(nF.name,nF),e.component(oF.name,oF),e)});let iF;const lF=e=>{iF={x:e.pageX,y:e.pageY},setTimeout((()=>iF=null),100)};HD()&&Ia(document.documentElement,"click",lF,!0);const aF=jn({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Vl({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:$p.any,closable:{type:Boolean,default:void 0},closeIcon:$p.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:$p.any,okText:$p.any,okType:String,cancelText:$p.any,icon:$p.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:wa(),cancelButtonProps:wa(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:wa(),maskStyle:wa(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:wa()},{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=qa("Modal"),{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c}=$d("modal",e),[u,d]=DQ(l);Ts(void 0===e.visible);const p=e=>{n("update:visible",!1),n("update:open",!1),n("cancel",e),n("change",!1)},h=e=>{n("ok",e)},f=()=>{var t,n;const{okText:r=(null===(t=o.okText)||void 0===t?void 0:t.call(o)),okType:l,cancelText:a=(null===(n=o.cancelText)||void 0===n?void 0:n.call(o)),confirmLoading:s}=e;return br(er,null,[br(WC,sl({onClick:p},e.cancelButtonProps),{default:()=>[a||i.value.cancelText]}),br(WC,sl(sl({},aC(l)),{},{loading:s,onClick:h},e.okButtonProps),{default:()=>[r||i.value.okText]})])};return()=>{var t,n;const{prefixCls:i,visible:h,open:g,wrapClassName:m,centered:v,getContainer:b,closeIcon:y=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o)),focusTriggerAfterClose:O=!0}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${l.value}-close-x`},[y||br(qb,{class:`${l.value}-close-icon`},null)])})))}}}),sF=()=>{const e=yt(!1);return Kn((()=>{e.value=!0})),e};function cF(e){return!(!e||!e.then)}const uF=jn({compatConfig:{MODE:3},name:"ActionButton",props:{type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:wa(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean},setup(e,t){let{slots:n}=t;const o=yt(!1),r=yt(),i=yt(!1);let l;const a=sF();Zn((()=>{e.autofocus&&(l=setTimeout((()=>{var e,t;return null===(t=null===(e=ea(r.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)})))})),Kn((()=>{clearTimeout(l)}));const s=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r{const{actionFn:n}=e;if(o.value)return;if(o.value=!0,!n)return void s();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!cF(r))return o.value=!1,void s(t)}else if(n.length)r=n(e.close),o.value=!1;else if(r=n(),!r)return void s();(e=>{cF(e)&&(i.value=!0,e.then((function(){a.value||(i.value=!1),s(...arguments),o.value=!1}),(e=>(a.value||(i.value=!1),o.value=!1,Promise.reject(e)))))})(r)};return()=>{const{type:t,prefixCls:o,buttonProps:l}=e;return br(WC,sl(sl(sl({},aC(t)),{},{onClick:c,loading:i.value,prefixCls:o},l),{},{ref:r}),n)}}});function dF(e){return"function"==typeof e?e():e}const pF=jn({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=qa("Modal");return()=>{const{icon:t,onCancel:r,onOk:i,close:l,okText:a,closable:s=!1,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,maskStyle:f,okButtonProps:g,cancelButtonProps:m,okCancel:v,width:b=416,mask:y=!0,maskClosable:O=!1,type:w,open:S,title:$,content:x,direction:C,closeIcon:k,modalRender:P,focusTriggerAfterClose:T,rootPrefixCls:M,bodyStyle:I,wrapClassName:E,footer:A}=e;let D=t;if(!t&&null!==t)switch(w){case"info":D=br(L$,null,null);break;case"success":D=br(E$,null,null);break;case"error":D=br(oy,null,null);break;default:D=br(B$,null,null)}const R=e.okType||"primary",z=e.prefixCls||"ant-modal",B=`${z}-confirm`,j=n.style||{},N=null!=v?v:"confirm"===w,_=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),Q=`${z}-confirm`,L=xl(Q,`${Q}-${e.type}`,{[`${Q}-rtl`]:"rtl"===C},n.class),H=o.value,F=N&&br(uF,{actionFn:r,close:l,autofocus:"cancel"===_,buttonProps:m,prefixCls:`${M}-btn`},{default:()=>[dF(e.cancelText)||H.cancelText]});return br(aF,{prefixCls:z,class:L,wrapClassName:xl({[`${Q}-centered`]:!!p},E),onCancel:e=>null==l?void 0:l({triggerCancel:!0},e),open:S,title:"",footer:"",transitionName:am(M,"zoom",e.transitionName),maskTransitionName:am(M,"fade",e.maskTransitionName),mask:y,maskClosable:O,maskStyle:f,style:j,bodyStyle:I,width:b,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,closable:s,closeIcon:k,modalRender:P,focusTriggerAfterClose:T},{default:()=>[br("div",{class:`${B}-body-wrapper`},[br("div",{class:`${B}-body`},[dF(D),void 0===$?null:br("span",{class:`${B}-title`},[dF($)]),br("div",{class:`${B}-content`},[dF(x)])]),void 0!==A?dF(A):br("div",{class:`${B}-btns`},[F,br(uF,{type:R,actionFn:i,close:l,autofocus:"ok"===_,buttonProps:g,prefixCls:`${M}-btn`},{default:()=>[dF(a)||(N?H.okText:H.justOkText)]})])])]})}}}),hF=[],fF=e=>{const t=document.createDocumentFragment();let n=cl(cl({},xd(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(Fi(null,t),o.component.update(),o=null);for(var n=arguments.length,r=new Array(n),l=0;le&&e.triggerCancel));e.onCancel&&a&&e.onCancel((()=>{}),...r.slice(1));for(let e=0;e{"function"==typeof e.afterClose&&e.afterClose(),r.apply(this,o)}}),n.visible&&delete n.visible,l(n)}function l(e){n="function"==typeof e?e(n):cl(cl({},n),e),o&&(cl(o.component.props,n),o.component.update())}const a=e=>{const t=oj,n=t.prefixCls,o=e.prefixCls||`${n}-modal`,r=t.iconPrefixCls,i=Hz;return br(aj,sl(sl({},t),{},{prefixCls:n}),{default:()=>[br(pF,sl(sl({},e),{},{rootPrefixCls:n,prefixCls:o,iconPrefixCls:r,locale:i,cancelText:e.cancelText||i.cancelText}),null)]})};return o=function(n){const o=br(a,cl({},n));return o.appContext=e.parentContext||e.appContext||o.appContext,Fi(o,t),o}(n),hF.push(i),{destroy:i,update:l}};function gF(e){return cl(cl({},e),{type:"warning"})}function mF(e){return cl(cl({},e),{type:"info"})}function vF(e){return cl(cl({},e),{type:"success"})}function bF(e){return cl(cl({},e),{type:"error"})}function yF(e){return cl(cl({},e),{type:"confirm"})}const OF=jn({name:"HookModal",inheritAttrs:!1,props:Vl({config:Object,afterClose:Function,destroyAction:Function,open:Boolean},{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=Lr((()=>e.open)),i=Lr((()=>e.config)),{direction:l,getPrefixCls:a}=Ha(),s=a("modal"),c=a(),u=()=>{var t,n;null==e||e.afterClose(),null===(n=(t=i.value).afterClose)||void 0===n||n.call(t)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const p=null!==(o=i.value.okCancel)&&void 0!==o?o:"confirm"===i.value.type,[h]=qa("Modal",Ka.Modal);return()=>br(pF,sl(sl({prefixCls:s,rootPrefixCls:c},i.value),{},{close:d,open:r.value,afterClose:u,okText:i.value.okText||(p?null==h?void 0:h.value.okText:null==h?void 0:h.value.justOkText),direction:i.value.direction||l.value,cancelText:i.value.cancelText||(null==h?void 0:h.value.cancelText)}),null)}});let wF=0;const SF=jn({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=yt([]);return n({addModal:e=>(o.value.push(e),o.value=o.value.slice(),()=>{o.value=o.value.filter((t=>t!==e))})}),()=>o.value.map((e=>e()))}});function $F(){const e=yt(null),t=yt([]);bn(t,(()=>{t.value.length&&([...t.value].forEach((e=>{e()})),t.value=[])}),{immediate:!0});const n=n=>function(o){var r;wF+=1;const i=yt(!0),l=yt(null),a=yt(St(o)),s=yt({});bn((()=>o),(e=>{d(cl(cl({},vt(e)?e.value:e),s.value))}));const c=function(){i.value=!1;for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));a.value.onCancel&&o&&a.value.onCancel((()=>{}),...t.slice(1))};let u;u=null===(r=e.value)||void 0===r?void 0:r.addModal((()=>br(OF,{key:`modal-${wF}`,config:n(a.value),ref:l,open:i.value,destroyAction:c,afterClose:()=>{null==u||u()}},null))),u&&hF.push(u);const d=e=>{a.value=cl(cl({},a.value),e)};return{destroy:()=>{l.value?c():t.value=[...t.value,c]},update:e=>{s.value=e,l.value?d(e):t.value=[...t.value,()=>d(e)]}}},o=Lr((()=>({info:n(mF),success:n(vF),error:n(bF),warning:n(gF),confirm:n(yF)}))),r=Symbol("modalHolderKey");return[o.value,()=>br(SF,{key:r,ref:e},null)]}function xF(e){return fF(gF(e))}aF.useModal=$F,aF.info=function(e){return fF(mF(e))},aF.success=function(e){return fF(vF(e))},aF.error=function(e){return fF(bF(e))},aF.warning=xF,aF.warn=xF,aF.confirm=function(e){return fF(yF(e))},aF.destroyAll=function(){for(;hF.length;){const e=hF.pop();e&&e()}},aF.install=function(e){return e.component(aF.name,aF),e};const CF=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:i="",prefixCls:l}=e;let a;if("function"==typeof n)a=n({value:t});else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,i),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${r}${s}`),a=[br("span",{key:"int",class:`${l}-content-value-int`},[e,t]),s&&br("span",{key:"decimal",class:`${l}-content-value-decimal`},[s])]}else a=e}return br("span",{class:`${l}-content-value`},[a])};CF.displayName="StatisticNumber";const kF=CF,PF=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:i,colorTextHeading:l,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:cl(cl({},Xu(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},TF=Ku("Statistic",(e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=Ju(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[PF(r)]})),MF=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Pa([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:$a(),formatter:xa(),precision:Number,prefix:{validator:()=>!0},suffix:{validator:()=>!0},title:{validator:()=>!0},loading:Sa()}),IF=jn({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Vl(MF(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("statistic",e),[l,a]=TF(r);return()=>{var t,s,c,u,d,p,h;const{value:f=0,valueStyle:g,valueRender:m}=e,v=r.value,b=null!==(t=e.title)&&void 0!==t?t:null===(s=n.title)||void 0===s?void 0:s.call(n),y=null!==(c=e.prefix)&&void 0!==c?c:null===(u=n.prefix)||void 0===u?void 0:u.call(n),O=null!==(d=e.suffix)&&void 0!==d?d:null===(p=n.suffix)||void 0===p?void 0:p.call(n),w=null!==(h=e.formatter)&&void 0!==h?h:n.formatter;let S=br(kF,sl({"data-for-update":Date.now()},cl(cl({},e),{prefixCls:v,value:f,formatter:w})),null);return m&&(S=m(S)),l(br("div",sl(sl({},o),{},{class:[v,{[`${v}-rtl`]:"rtl"===i.value},o.class,a.value]}),[b&&br("div",{class:`${v}-title`},[b]),br($E,{paragraph:!1,loading:e.loading},{default:()=>[br("div",{style:g,class:`${v}-content`},[y&&br("span",{class:`${v}-content-prefix`},[y]),S,O&&br("span",{class:`${v}-content-suffix`},[O])])]})]))}}}),EF=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function AF(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map((e=>e.slice(1,-1))),i=t.replace(o,"[]"),l=EF.reduce(((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let a=0;return l.replace(o,(()=>{const e=r[a];return a+=1,e}))}(Math.max(o-r,0),n)}function DF(e){return new Date(e).getTime()}const RF=jn({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Vl(cl(cl({},MF()),{value:Pa([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=bt(),i=bt(),l=()=>{const{value:t}=e;DF(t)>=Date.now()?a():s()},a=()=>{if(r.value)return;const t=DF(e.value);r.value=setInterval((()=>{i.value.$forceUpdate(),t>Date.now()&&n("change",t-Date.now()),l()}),33.333333333333336)},s=()=>{const{value:t}=e;r.value&&(clearInterval(r.value),r.value=void 0,DF(t){let{value:n,config:o}=t;const{format:r}=e;return AF(n,cl(cl({},o),{format:r}))},u=e=>e;return Zn((()=>{l()})),Un((()=>{l()})),Kn((()=>{s()})),()=>{const t=e.value;return br(IF,sl({ref:i},cl(cl({},xd(e,["onFinish","onChange"])),{value:t,valueRender:u,formatter:c})),o)}}});IF.Countdown=RF,IF.install=function(e){return e.component(IF.name,IF),e.component(IF.Countdown.name,IF.Countdown),e};const zF=IF.Countdown,BF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function jF(e){for(var t=1;t{const{keyCode:t}=e;t===Im.ENTER&&e.preventDefault()},s=e=>{const{keyCode:t}=e;t===Im.ENTER&&o("click",e)},c=e=>{o("click",e)},u=()=>{l.value&&l.value.focus()};return Zn((()=>{e.autofocus&&u()})),i({focus:u,blur:()=>{l.value&&l.value.blur()}}),()=>{var t;const{noStyle:o,disabled:i}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var t,n,o;return null!==(o=null!==(t=e.size)&&void 0!==t?t:null===(n=null==i?void 0:i.value)||void 0===n?void 0:n.size)&&void 0!==o?o:"small"})),d=bt(),p=bt();bn(u,(()=>{[d.value,p.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map((e=>function(e){return"string"==typeof e?VF[e]:e||0}(e)))}),{immediate:!0});const h=Lr((()=>void 0===e.align&&"horizontal"===e.direction?"center":e.align)),f=Lr((()=>xl(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:"rtl"===l.value,[`${r.value}-align-${h.value}`]:h.value}))),g=Lr((()=>"rtl"===l.value?"marginLeft":"marginRight")),m=Lr((()=>{const t={};return c.value&&(t.columnGap=`${d.value}px`,t.rowGap=`${p.value}px`),cl(cl({},t),e.wrap&&{flexWrap:"wrap",marginBottom:-p.value+"px"})}));return()=>{var t,i;const{wrap:l,direction:s="horizontal"}=e,u=null===(t=n.default)||void 0===t?void 0:t.call(n),h=la(u),v=h.length;if(0===v)return null;const b=null===(i=n.split)||void 0===i?void 0:i.call(n),y=`${r.value}-item`,O=d.value,w=v-1;return br("div",sl(sl({},o),{},{class:[f.value,o.class],style:[m.value,o.style]}),[h.map(((e,t)=>{const n=u.indexOf(e);let o={};return c.value||("vertical"===s?t{const{componentCls:t,antCls:n}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":cl(cl({},Lu(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:e.marginXS/2+"px 0",overflow:"hidden"},"&-title":cl({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Wu),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":cl({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Wu),"&-extra":{margin:e.marginXS/2+"px 0",whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},qF=Ku("PageHeader",(e=>{const t=Ju(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[GF(t)]})),JF=ya(jn({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:{backIcon:{validator:()=>!0},prefixCls:String,title:{validator:()=>!0},subTitle:{validator:()=>!0},breadcrumb:$p.object,tags:{validator:()=>!0},footer:{validator:()=>!0},extra:{validator:()=>!0},avatar:wa(),ghost:{type:Boolean,default:void 0},onBack:Function},slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,pageHeader:a}=$d("page-header",e),[s,c]=qF(i),u=yt(!1),d=sF(),p=e=>{let{width:t}=e;d.value||(u.value=t<768)},h=Lr((()=>{var t,n,o;return null===(o=null!==(t=e.ghost)&&void 0!==t?t:null===(n=null==a?void 0:a.value)||void 0===n?void 0:n.ghost)||void 0===o||o})),f=()=>{var t;return e.breadcrumb?br(fP,e.breadcrumb,null):null===(t=o.breadcrumb)||void 0===t?void 0:t.call(o)},g=()=>{var t,r,a,s,c,u,d,p,h;const{avatar:f}=e,g=null!==(t=e.title)&&void 0!==t?t:null===(r=o.title)||void 0===r?void 0:r.call(o),m=null!==(a=e.subTitle)&&void 0!==a?a:null===(s=o.subTitle)||void 0===s?void 0:s.call(o),v=null!==(c=e.tags)&&void 0!==c?c:null===(u=o.tags)||void 0===u?void 0:u.call(o),b=null!==(d=e.extra)&&void 0!==d?d:null===(p=o.extra)||void 0===p?void 0:p.call(o),y=`${i.value}-heading`,O=g||m||v||b;if(!O)return null;const w=(()=>{var t,n,r;return null!==(r=null!==(t=e.backIcon)&&void 0!==t?t:null===(n=o.backIcon)||void 0===n?void 0:n.call(o))&&void 0!==r?r:"rtl"===l.value?br(XF,null,null):br(QF,null,null)})(),S=(t=>t&&e.onBack?br(Ga,{componentName:"PageHeader",children:e=>{let{back:o}=e;return br("div",{class:`${i.value}-back`},[br(ZF,{onClick:e=>{n("back",e)},class:`${i.value}-back-button`,"aria-label":o},{default:()=>[t]})])}},null):null)(w);return br("div",{class:y},[(S||f||O)&&br("div",{class:`${y}-left`},[S,f?br(lx,f,null):null===(h=o.avatar)||void 0===h?void 0:h.call(o),g&&br("span",{class:`${y}-title`,title:"string"==typeof g?g:void 0},[g]),m&&br("span",{class:`${y}-sub-title`,title:"string"==typeof m?m:void 0},[m]),v&&br("span",{class:`${y}-tags`},[v])]),b&&br("span",{class:`${y}-extra`},[br(KF,null,{default:()=>[b]})])])},m=()=>{var t,n;const r=null!==(t=e.footer)&&void 0!==t?t:la(null===(n=o.footer)||void 0===n?void 0:n.call(o));return null==(l=r)||""===l||Array.isArray(l)&&0===l.length?null:br("div",{class:`${i.value}-footer`},[r]);var l},v=e=>br("div",{class:`${i.value}-content`},[e]);return()=>{var t,n;const a=(null===(t=e.breadcrumb)||void 0===t?void 0:t.routes)||o.breadcrumb,d=e.footer||o.footer,b=ql(null===(n=o.default)||void 0===n?void 0:n.call(o)),y=xl(i.value,{"has-breadcrumb":a,"has-footer":d,[`${i.value}-ghost`]:h.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-compact`]:u.value},r.class,c.value);return s(br(ua,{onResize:p},{default:()=>[br("div",sl(sl({},r),{},{class:y}),[f(),g(),b.length?v(b):null,m()])]}))}}})),eW=Ku("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXS:l,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+l,marginBottom:l,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}})),tW=ya(jn({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Vl(cl(cl({},hx()),{prefixCls:String,content:xa(),title:xa(),description:xa(),okType:ka("primary"),disabled:{type:Boolean,default:!1},okText:xa(),cancelText:xa(),icon:xa(),okButtonProps:wa(),cancelButtonProps:wa(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),cl(cl({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=bt();Ts(void 0===e.visible),r({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=l.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const[a,s]=Lv(!1,{value:Tt(e,"open")}),c=(t,n)=>{void 0===e.open&&s(t),o("update:open",t),o("openChange",t,n)},u=e=>{c(!1,e)},d=t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(e,t)},p=t=>{var n;c(!1,t),null===(n=e.onCancel)||void 0===n||n.call(e,t)},h=t=>{const{disabled:n}=e;n||c(t)},{prefixCls:f,getPrefixCls:g}=$d("popconfirm",e),m=Lr((()=>g())),v=Lr((()=>g("btn"))),[b]=eW(f),[y]=qa("Popconfirm",Ka.Popconfirm),O=()=>{var t,o,r,i,l;const{okButtonProps:a,cancelButtonProps:s,title:c=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:h=(null===(o=n.description)||void 0===o?void 0:o.call(n)),cancelText:g=(null===(r=n.cancel)||void 0===r?void 0:r.call(n)),okText:m=(null===(i=n.okText)||void 0===i?void 0:i.call(n)),okType:b,icon:O=(null===(l=n.icon)||void 0===l?void 0:l.call(n))||br(B$,null,null),showCancel:w=!0}=e,{cancelButton:S,okButton:$}=n,x=cl({onClick:p,size:"small"},s),C=cl(cl(cl({onClick:d},aC(b)),{size:"small"}),a);return br("div",{class:`${f.value}-inner-content`},[br("div",{class:`${f.value}-message`},[O&&br("span",{class:`${f.value}-message-icon`},[O]),br("div",{class:[`${f.value}-message-title`,{[`${f.value}-message-title-only`]:!!h}]},[c])]),h&&br("div",{class:`${f.value}-description`},[h]),br("div",{class:`${f.value}-buttons`},[w?S?S(x):br(WC,x,{default:()=>[g||y.value.cancelText]}):null,$?$(C):br(uF,{buttonProps:cl(cl({size:"small"},aC(b)),a),actionFn:d,close:u,prefixCls:v.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[m||y.value.okText]})])])};return()=>{var t;const{placement:o,overlayClassName:r,trigger:s="click"}=e,u=xd(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[Zh((null===(t=n.default)||void 0===t?void 0:t.call(n))||[],{onKeydown:e=>{(e=>{e.keyCode===Im.ESC&&a&&c(!1,e)})(e)}},!1)],content:O}))}}})),nW=["normal","exception","active","success"],oW=()=>({prefixCls:String,type:ka(),percent:Number,format:$a(),status:ka(),showInfo:Sa(),strokeWidth:Number,strokeLinecap:ka(),strokeColor:xa(),trailColor:String,width:Number,success:wa(),gapDegree:Number,gapPosition:ka(),size:Pa([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:ka()});function rW(e){return!e||e<0?0:e>100?100:e}function iW(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(xp(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const lW=(e,t,n)=>{var o,r,i,l;let a=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=o?o:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return{width:a,height:s}},aW=(e,t)=>{const{from:n=xu.blue,to:o=xu.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`}:{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},sW=jn({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:cl(cl({},oW()),{strokeColor:xa(),direction:ka()}),setup(e,t){let{slots:n,attrs:o}=t;const r=Lr((()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!=typeof t?aW(t,n):{backgroundColor:t}})),i=Lr((()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0)),l=Lr((()=>e.trailColor?{backgroundColor:e.trailColor}:void 0)),a=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]})),s=Lr((()=>lW(a.value,"line",{strokeWidth:e.strokeWidth}))),c=Lr((()=>{const{percent:t}=e;return cl({width:`${rW(t)}%`,height:`${s.value.height}px`,borderRadius:i.value},r.value)})),u=Lr((()=>iW(e))),d=Lr((()=>{const{success:t}=e;return{width:`${rW(u.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:null==t?void 0:t.strokeColor}})),p={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var t;return br(er,null,[br("div",sl(sl({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,p]}),[br("div",{class:`${e.prefixCls}-inner`,style:l.value},[br("div",{class:`${e.prefixCls}-bg`,style:c.value},null),void 0!==u.value?br("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});let cW=0;function uW(e){return+e.replace("%","")}function dW(e){return Array.isArray(e)?e:[e]}function pW(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=50-o/2;let l=0,a=-i,s=0,c=-2*i;switch(arguments.length>5?arguments[5]:void 0){case"left":l=-i,a=0,s=2*i,c=0;break;case"right":l=i,a=0,s=-2*i,c=0;break;case"bottom":a=i,c=2*i}const u=`M 50,50 m ${l},${a}\n a ${i},${i} 0 1 1 ${s},${-c}\n a ${i},${i} 0 1 1 ${-s},${c}`,d=2*Math.PI*i;return{pathString:u,pathStyle:{stroke:n,strokeDasharray:`${t/100*(d-r)}px ${d}px`,strokeDashoffset:`-${r/2+e/100*(d-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}const hW=jn({compatConfig:{MODE:3},name:"VCCircle",props:Vl({gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},{percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1}),setup(e){cW+=1;const t=bt(cW),n=Lr((()=>dW(e.percent))),o=Lr((()=>dW(e.strokeColor))),[r,i]=CI();(e=>{const t=bt(null);Un((()=>{const n=Date.now();let o=!1;e.value.forEach((e=>{const r=(null==e?void 0:e.$el)||e;if(!r)return;o=!0;const i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())}))})(i);const l=()=>{const{prefixCls:i,strokeWidth:l,strokeLinecap:a,gapDegree:s,gapPosition:c}=e;let u=0;return n.value.map(((e,n)=>{const d=o.value[n]||o.value[o.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?`url(#${i}-gradient-${t.value})`:"",{pathString:h,pathStyle:f}=pW(u,e,d,l,s,c);u+=e;const g={key:n,d:h,stroke:p,"stroke-linecap":a,"stroke-width":l,opacity:0===e?0:1,"fill-opacity":"0",class:`${i}-circle-path`,style:f};return br("path",sl({ref:r(n)},g),null)}))};return()=>{const{prefixCls:n,strokeWidth:r,trailWidth:i,gapDegree:a,gapPosition:s,trailColor:c,strokeLinecap:u,strokeColor:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"[object Object]"===Object.prototype.toString.call(e))),m={d:h,stroke:c,"stroke-linecap":u,"stroke-width":i||r,"fill-opacity":"0",class:`${n}-circle-trail`,style:f};return br("svg",sl({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[g&&br("defs",null,[br("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(g).sort(((e,t)=>uW(e)-uW(t))).map(((e,t)=>br("stop",{key:t,offset:e,"stop-color":g[e]},null)))])]),br("path",m,null),l().reverse()])}}}),fW=jn({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Vl(cl(cl({},oW()),{strokeColor:xa()}),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=Lr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120})),i=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[r.value,r.value]})),l=Lr((()=>lW(i.value,"circle"))),a=Lr((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),s=Lr((()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:.15*l.value.width+6+"px"}))),c=Lr((()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max(3/l.value.width*100,6)})),u=Lr((()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0)),d=Lr((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=rW(iW({success:n,successPercent:o}));return[r,rW(rW(t)-r)]}(e))),p=Lr((()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor))),h=Lr((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||xu.green,n||null]}({success:e.success,strokeColor:e.strokeColor}))),f=Lr((()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:p.value})));return()=>{var t;const r=br(hW,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return br("div",sl(sl({},o),{},{class:[f.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?br(Tx,null,{default:()=>[br("span",null,[r])],title:n.default}):br(er,null,[r,null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),gW=jn({compatConfig:{MODE:3},name:"Steps",props:cl(cl({},oW()),{steps:Number,strokeColor:Pa(),trailColor:String}),setup(e,t){let{slots:n}=t;const o=Lr((()=>Math.round(e.steps*((e.percent||0)/100)))),r=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),i=Lr((()=>lW(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),l=Lr((()=>{const{steps:t,strokeColor:n,trailColor:r,prefixCls:l}=e,a=[];for(let e=0;e{var t;return br("div",{class:`${e.prefixCls}-steps-outer`},[l.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),mW=new Hc("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),vW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:cl(cl({},Xu(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:mW,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},bW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},yW=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},OW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wW=Ku("Progress",(e=>{const t=e.marginXXS/2,n=Ju(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[vW(n),bW(n),yW(n),OW(n)]})),SW=ya(jn({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:Vl(oW(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("progress",e),[l,a]=wW(r),s=Lr((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=Lr((()=>{const{percent:t=0}=e,n=iW(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),u=Lr((()=>{const{status:t}=e;return!nW.includes(t)&&c.value>=100?"success":t||"normal"})),d=Lr((()=>{const{type:t,showInfo:n,size:o}=e,l=r.value;return{[l]:!0,[`${l}-inline-circle`]:"circle"===t&&lW(o,"circle").width<=20,[`${l}-${"dashboard"===t?"circle":t}`]:!0,[`${l}-status-${u.value}`]:!0,[`${l}-show-info`]:n,[`${l}-${o}`]:o,[`${l}-rtl`]:"rtl"===i.value,[a.value]:!0}})),p=Lr((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:a,title:c}=e,{class:h}=o,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{showInfo:t,format:o,type:i,percent:l,title:a}=e,s=iW(e);if(!t)return null;let c;const d=o||(null==n?void 0:n.format)||(e=>`${e}%`),p="line"===i;return o||(null==n?void 0:n.format)||"exception"!==u.value&&"success"!==u.value?c=d(rW(l),rW(s)):"exception"===u.value?c=br(p?oy:qb,null,null):"success"===u.value&&(c=br(p?E$:Zb,null,null)),br("span",{class:`${r.value}-text`,title:void 0===a&&"string"==typeof c?c:void 0},[c])})();let m;return"line"===t?m=a?br(gW,sl(sl({},e),{},{strokeColor:p.value,prefixCls:r.value,steps:a}),{default:()=>[g]}):br(sW,sl(sl({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:i.value}),{default:()=>[g]}):"circle"!==t&&"dashboard"!==t||(m=br(fW,sl(sl({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[g]})),l(br("div",sl(sl({role:"progressbar"},f),{},{class:[d.value,h],title:c}),[m]))}}})),$W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function xW(e){for(var t=1;t{const{index:o}=e;n("hover",t,o)},r=t=>{const{index:o}=e;n("click",t,o)},i=t=>{const{index:o}=e;13===t.keyCode&&n("click",t,o)},l=Lr((()=>{const{prefixCls:t,index:n,value:o,allowHalf:r,focused:i}=e,l=n+1;let a=t;return 0===o&&0===n&&i?a+=` ${t}-focused`:r&&o+.5>=l&&o{const{disabled:t,prefixCls:n,characterRender:a,character:s,index:c,count:u,value:d}=e,p="function"==typeof s?s({disabled:t,prefixCls:n,index:c,count:u,value:d}):s;let h=br("li",{class:l.value},[br("div",{onClick:t?null:r,onKeydown:t?null:i,onMousemove:t?null:o,role:"radio","aria-checked":d>c?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabindex:t?-1:0},[br("div",{class:`${n}-first`},[p]),br("div",{class:`${n}-second`},[p])])]);return a&&(h=a(h,e)),h}}}),MW=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},IW=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),EW=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl({},Xu(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),MW(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),IW(e))}},AW=Ku("Rate",(e=>{const{colorFillContent:t}=e,n=Ju(e,{rateStarColor:e["yellow-6"],rateStarSize:.5*e.controlHeightLG,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[EW(n)]})),DW=jn({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Vl({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:$p.any,autofocus:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function},{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,direction:a}=$d("rate",e),[s,c]=AW(l),u=gy(),d=bt(),[p,h]=CI(),f=rt({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});bn((()=>e.value),(()=>{f.value=e.value}));const g=(t,n)=>{const o="rtl"===a.value;let r=t+1;if(e.allowHalf){const e=(e=>ea(h.value.get(e)))(t),i=function(e){const t=function(e){let t,n;const o=e.ownerDocument,{body:r}=o,i=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=i.clientLeft||r.clientLeft||0,n-=i.clientTop||r.clientTop||0,{left:t,top:n}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=function(e){let t=e.pageXOffset;const n="scrollLeft";if("number"!=typeof t){const o=e.document;t=o.documentElement[n],"number"!=typeof t&&(t=o.body[n])}return t}(o),t.left}(e),l=e.clientWidth;(o&&n-i>l/2||!o&&n-i{void 0===e.value&&(f.value=t),r("update:value",t),r("change",t),u.onFieldChange()},v=(e,t)=>{const n=g(t,e.pageX);n!==f.cleanedValue&&(f.hoverValue=n,f.cleanedValue=null),r("hoverChange",n)},b=()=>{f.hoverValue=void 0,f.cleanedValue=null,r("hoverChange",void 0)},y=(t,n)=>{const{allowClear:o}=e,r=g(n,t.pageX);let i=!1;o&&(i=r===f.value),b(),m(i?0:r),f.cleanedValue=i?r:null},O=e=>{f.focused=!0,r("focus",e)},w=e=>{f.focused=!1,r("blur",e),u.onFieldBlur()},S=t=>{const{keyCode:n}=t,{count:o,allowHalf:i}=e,l="rtl"===a.value;n===Im.RIGHT&&f.value0&&!l||n===Im.RIGHT&&f.value>0&&l?(f.value-=i?.5:1,m(f.value),t.preventDefault()):n===Im.LEFT&&f.value{e.disabled||d.value.focus()};i({focus:$,blur:()=>{e.disabled||d.value.blur()}}),Zn((()=>{const{autofocus:t,disabled:n}=e;t&&!n&&$()}));const x=(t,n)=>{let{index:o}=n;const{tooltips:r}=e;return r?br(Tx,{title:r[o]},{default:()=>[t]}):t};return()=>{const{count:t,allowHalf:r,disabled:i,tabindex:h,id:g=u.id.value}=e,{class:m,style:$}=o,C=[],k=i?`${l.value}-disabled`:"",P=e.character||n.character||(()=>br(PW,null,null));for(let e=0;ebr("svg",{width:"252",height:"294"},[br("defs",null,[br("path",{d:"M0 .387h251.772v251.772H0z"},null)]),br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(0 .012)"},[br("mask",{fill:"#fff"},null),br("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),br("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),br("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),br("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),br("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),br("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),br("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),br("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),br("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),br("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),br("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),br("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),br("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),br("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),br("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),br("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),br("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),br("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),br("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),br("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),br("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),br("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),br("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),br("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),br("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),br("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),br("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),br("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),br("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),br("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),br("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),br("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),br("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),br("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),br("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),br("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),br("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),br("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),br("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),br("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),LW=()=>br("svg",{width:"254",height:"294"},[br("defs",null,[br("path",{d:"M0 .335h253.49v253.49H0z"},null),br("path",{d:"M0 293.665h253.49V.401H0z"},null)]),br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(0 .067)"},[br("mask",{fill:"#fff"},null),br("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),br("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),br("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),br("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),br("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),br("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),br("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),br("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),br("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),br("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),br("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),br("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),br("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),br("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),br("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),br("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),br("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),br("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),br("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),br("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),br("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),br("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),br("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),br("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),br("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),br("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),br("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),br("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),br("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),br("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),br("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),br("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),br("mask",{fill:"#fff"},null),br("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),br("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),br("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),br("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),br("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),br("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),br("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),br("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),HW=()=>br("svg",{width:"251",height:"294"},[br("g",{fill:"none","fill-rule":"evenodd"},[br("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),br("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),br("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),br("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),br("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),br("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),br("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),br("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),br("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),br("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),br("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),br("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),br("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),br("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),br("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),br("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),br("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),br("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),br("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),br("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),br("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),br("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),br("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),br("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),br("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),br("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),br("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),br("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),br("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),br("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),br("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),br("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),br("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),br("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),br("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),br("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),br("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),FW=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:l,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${2*a}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${2.5*r}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},WW=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},XW=e=>(e=>[FW(e),WW(e)])(e),YW=Ku("Result",(e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=Ju(e,{resultTitleFontSize:n,resultSubtitleFontSize:e.fontSize,resultIconFontSize:3*n,resultExtraMargin:`${t}px 0 0 0`,resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning});return[XW(o)]}),{imageWidth:250,imageHeight:295}),ZW={success:E$,error:oy,info:B$,warning:_W},VW={404:QW,500:LW,403:HW},UW=Object.keys(VW),KW=(e,t)=>{let{status:n,icon:o}=t;if(UW.includes(`${n}`))return br("div",{class:`${e}-icon ${e}-image`},[br(VW[n],null,null)]);const r=o||br(ZW[n],null,null);return br("div",{class:`${e}-icon`},[r])},GW=(e,t)=>t&&br("div",{class:`${e}-extra`},[t]),qW=jn({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:{prefixCls:String,icon:$p.any,status:{type:[Number,String],default:"info"},title:$p.any,subTitle:$p.any,extra:$p.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("result",e),[l,a]=YW(r),s=Lr((()=>xl(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:"rtl"===i.value})));return()=>{var t,i,a,c,u,d,p,h;const f=null!==(t=e.title)&&void 0!==t?t:null===(i=n.title)||void 0===i?void 0:i.call(n),g=null!==(a=e.subTitle)&&void 0!==a?a:null===(c=n.subTitle)||void 0===c?void 0:c.call(n),m=null!==(u=e.icon)&&void 0!==u?u:null===(d=n.icon)||void 0===d?void 0:d.call(n),v=null!==(p=e.extra)&&void 0!==p?p:null===(h=n.extra)||void 0===h?void 0:h.call(n),b=r.value;return l(br("div",sl(sl({},o),{},{class:[s.value,o.class]}),[KW(b,{status:e.status,icon:m}),br("div",{class:`${b}-title`},[f]),g&&br("div",{class:`${b}-subtitle`},[g]),GW(b,v),n.default&&br("div",{class:`${b}-content`},[n.default()])]))}}});qW.PRESENTED_IMAGE_403=VW[403],qW.PRESENTED_IMAGE_404=VW[404],qW.PRESENTED_IMAGE_500=VW[500],qW.install=function(e){return e.component(qW.name,qW),e};const JW=qW,eX=ya(JD),tX=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:i,class:l}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=cl(cl({},i),u);return o?br("div",{class:l,style:d},null):null};tX.inheritAttrs=!1;const nX=tX,oX=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:i,marks:l,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:p,min:h,dotStyle:f,activeDotStyle:g}=n,m=p-h,v=((e,t,n,o,r,i)=>{Ts();const l=Object.keys(t).map(parseFloat).sort(((e,t)=>e-t));if(n&&o)for(let a=r;a<=i;a+=o)-1===l.indexOf(a)&&l.push(a);return l})(0,l,a,s,h,p).map((e=>{const t=Math.abs(e-h)/m*100+"%",n=!c&&e===d||c&&e<=d&&e>=u;let l=cl(cl({},f),r?{[i?"top":"bottom"]:t}:{[i?"right":"left"]:t});n&&(l=cl(cl({},l),g));const a=xl({[`${o}-dot`]:!0,[`${o}-dot-active`]:n,[`${o}-dot-reverse`]:i});return br("span",{class:a,style:l,key:e},null)}));return br("div",{class:`${o}-step`},[v])};oX.inheritAttrs=!1;const rX=oX,iX=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:i,reverse:l,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:p,onClickLabel:h}=n,f=Object.keys(a),g=o.mark,m=d-p,v=f.map(parseFloat).sort(((e,t)=>e-t)).map((e=>{const t="function"==typeof a[e]?a[e]():a[e],n="object"==typeof t&&!sa(t);let o=n?t.label:t;if(!o&&0!==o)return null;g&&(o=g({point:e,label:o}));const d=xl({[`${r}-text`]:!0,[`${r}-text-active`]:!s&&e===c||s&&e<=c&&e>=u}),f=i?{marginBottom:"-50%",[l?"top":"bottom"]:(e-p)/m*100+"%"}:{transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:(e-p)/m*100+"%"},v=n?cl(cl({},f),t.style):f;return br("span",sl({class:d,style:v,key:e,onMousedown:t=>h(t,e)},{[Ma?"onTouchstartPassive":"onTouchstart"]:t=>h(t,e)}),[o])}));return br("div",{class:r},[v])};iX.inheritAttrs=!1;const lX=iX,aX=jn({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:$p.oneOfType([$p.number,$p.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=yt(!1),l=yt(),a=()=>{document.activeElement===l.value&&(i.value=!0)},s=e=>{i.value=!1,o("blur",e)},c=()=>{i.value=!1},u=()=>{var e;null===(e=l.value)||void 0===e||e.focus()},d=e=>{e.preventDefault(),u(),o("mousedown",e)};r({focus:u,blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},clickFocus:()=>{i.value=!0,u()},ref:l});let p=null;Zn((()=>{p=Ia(document,"mouseup",a)})),Kn((()=>{null==p||p.remove()}));const h=Lr((()=>{const{vertical:t,offset:n,reverse:o}=e;return t?{[o?"top":"bottom"]:`${n}%`,[o?"bottom":"top"]:"auto",transform:o?null:"translateY(+50%)"}:{[o?"right":"left"]:`${n}%`,[o?"left":"right"]:"auto",transform:`translateX(${o?"+":"-"}50%)`}}));return()=>{const{prefixCls:t,disabled:o,min:r,max:a,value:u,tabindex:p,ariaLabel:f,ariaLabelledBy:g,ariaValueTextFormatter:m,onMouseenter:v,onMouseleave:b}=e,y=xl(n.class,{[`${t}-handle-click-focused`]:i.value}),O={"aria-valuemin":r,"aria-valuemax":a,"aria-valuenow":u,"aria-disabled":!!o},w=[n.style,h.value];let S,$=p||0;(o||null===p)&&($=null),m&&(S=m(u));const x=cl(cl(cl(cl({},n),{role:"slider",tabindex:$}),O),{class:y,onBlur:s,onKeydown:c,onMousedown:d,onMouseenter:v,onMouseleave:b,ref:l,style:w});return br("div",sl(sl({},x),{},{"aria-label":f,"aria-labelledby":g,"aria-valuetext":S}),null)}}});function sX(e,t){try{return Object.keys(t).some((n=>e.target===t[n].ref))}catch(n){return!1}}function cX(e,t){let{min:n,max:o}=t;return eo}function uX(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function dX(e,t){let{marks:n,step:o,min:r,max:i}=t;const l=Object.keys(n).map(parseFloat);if(null!==o){const t=Math.pow(10,pX(o)),n=Math.floor((i*t-r*t)/(o*t)),a=Math.min((e-r)/o,n),s=Math.round(a)*o+r;l.push(s)}const a=l.map((t=>Math.abs(e-t)));return l[a.indexOf(Math.min(...a))]}function pX(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function hX(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function fX(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function gX(e,t){const n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function mX(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function vX(e,t){const{step:n}=t,o=isFinite(dX(e,t))?dX(e,t):0;return null===n?o:parseFloat(o.toFixed(pX(n)))}function bX(e){e.stopPropagation(),e.preventDefault()}function yX(e,t,n){const o="increase",r="decrease";let i=o;switch(e.keyCode){case Im.UP:i=t&&n?r:o;break;case Im.RIGHT:i=!t&&n?r:o;break;case Im.DOWN:i=t&&n?o:r;break;case Im.LEFT:i=!t&&n?o:r;break;case Im.END:return(e,t)=>t.max;case Im.HOME:return(e,t)=>t.min;case Im.PAGE_UP:return(e,t)=>e+2*t.step;case Im.PAGE_DOWN:return(e,t)=>e-2*t.step;default:return}return(e,t)=>function(e,t,n){const o={increase:(e,t)=>e+t,decrease:(e,t)=>e-t},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}function OX(){}function wX(e){const t={id:String,min:Number,max:Number,step:Number,marks:$p.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:$p.object,maximumTrackStyle:$p.object,handleStyle:$p.oneOfType([$p.object,$p.arrayOf($p.object)]),trackStyle:$p.oneOfType([$p.object,$p.arrayOf($p.object)]),railStyle:$p.object,dotStyle:$p.object,activeDotStyle:$p.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return jn({compatConfig:{MODE:3},name:"CreateSlider",mixins:[pm,e],inheritAttrs:!1,props:Vl(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){return Ts(),this.handlesRefs={},{}},mounted(){this.$nextTick((()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:e,disabled:t}=this;e&&!t&&this.focus()}))},beforeUnmount(){this.$nextTick((()=>{this.removeDocumentEvents()}))},methods:{defaultHandle(e){var{index:t,directives:n,className:o,style:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=2&&!a&&!l.map(((e,t)=>{const n=!!t||e>=i[t];return t===l.length-1?e<=i[t]:n})).some((e=>!e)),this.dragTrack)this.dragOffset=n,this.startBounds=[...i];else{if(a){const t=gX(r,e.target);this.dragOffset=n-t,n=t}else this.dragOffset=0;this.onStart(n)}},onMouseDown(e){if(0!==e.button)return;this.removeDocumentEvents();const t=hX(this.$props.vertical,e);this.onDown(e,t),this.addDocumentMouseEvents()},onTouchStart(e){if(uX(e))return;const t=fX(this.vertical,e);this.onDown(e,t),this.addDocumentTouchEvents(),bX(e)},onFocus(e){const{vertical:t}=this;if(sX(e,this.handlesRefs)&&!this.dragTrack){const n=gX(t,e.target);this.dragOffset=0,this.onStart(n),bX(e),this.$emit("focus",e)}},onBlur(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(e){if(!this.sliderRef)return void this.onEnd();const t=hX(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(uX(e)||!this.sliderRef)return void this.onEnd();const t=fX(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&sX(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel(e,t){e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(()=>this.onEnd(!0)))},getSliderStart(){const e=this.sliderRef,{vertical:t,reverse:n}=this,o=e.getBoundingClientRect();return t?n?o.bottom:o.top:window.pageXOffset+(n?o.right:o.left)},getSliderLength(){const e=this.sliderRef;if(!e)return 0;const t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents(){this.onTouchMoveListener=Ia(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Ia(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Ia(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Ia(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach((e=>{var t,n;null===(n=null===(t=this.handlesRefs[e])||void 0===t?void 0:t.blur)||void 0===n||n.call(t)}))},calcValue(e){const{vertical:t,min:n,max:o}=this,r=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-r)*(o-n)+n:r*(o-n)+n},calcValueByPos(e){const t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset(e){const{min:t,max:n}=this,o=(e-t)/(n-t);return Math.max(0,100*o)},saveSlider(e){this.sliderRef=e},saveHandle(e,t){this.handlesRefs[e]=t}},render(){const{prefixCls:e,marks:t,dots:n,step:o,included:r,disabled:i,vertical:l,reverse:a,min:s,max:c,maximumTrackStyle:u,railStyle:d,dotStyle:p,activeDotStyle:h,id:f}=this,{class:g,style:m}=this.$attrs,{tracks:v,handles:b}=this.renderSlider(),y=xl(e,g,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:i,[`${e}-vertical`]:l,[`${e}-horizontal`]:!l}),O={vertical:l,marks:t,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,reverse:a,class:`${e}-mark`,onClickLabel:i?OX:this.onClickMarkLabel},w={[Ma?"onTouchstartPassive":"onTouchstart"]:i?OX:this.onTouchStart};return br("div",sl(sl({id:f,ref:this.saveSlider,tabindex:"-1",class:y},w),{},{onMousedown:i?OX:this.onMouseDown,onMouseup:i?OX:this.onMouseUp,onKeydown:i?OX:this.onKeyDown,onFocus:i?OX:this.onFocus,onBlur:i?OX:this.onBlur,style:m}),[br("div",{class:`${e}-rail`,style:cl(cl({},u),d)},null),v,br(rX,{prefixCls:e,vertical:l,reverse:a,marks:t,dots:n,step:o,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,dotStyle:p,activeDotStyle:h},null),b,br(lX,O,{mark:this.$slots.mark}),Jl(this)])}})}const SX=jn({compatConfig:{MODE:3},name:"Slider",mixins:[pm],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),cX(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!Kl(this,"value"),n=e.sValue>this.max?cl(cl({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){bX(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=yX(e,n,t);if(o){bX(e);const{sValue:t}=this,n=o(t,this.$props),r=this.trimAlignValue(n);if(r===t)return;this.onChange({sValue:r}),this.$emit("afterChange",r),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;const n=cl(cl({},this.$props),t);return vX(mX(e,n),n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:i,mergedTrackStyle:l,length:a,offset:s}=e;return br(nX,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:cl(cl({},i),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:i,handleStyle:l,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:p,startPoint:h,reverse:f,handle:g,defaultHandle:m}=this,v=g||m,{sValue:b,dragging:y}=this,O=this.calcOffset(b),w=v({class:`${e}-handle`,prefixCls:e,vertical:t,offset:O,value:b,dragging:y,disabled:o,min:d,max:p,reverse:f,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:l[0]||l,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),S=void 0!==h?this.calcOffset(h):0,$=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:f,vertical:t,included:n,offset:S,minimumTrackStyle:r,mergedTrackStyle:$,length:O-S}),handles:w}}}}),$X=wX(SX),xX=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:i,pushable:l}=r,a=Number(l),s=mX(t,r);let c=s;return i||null==n||void 0===o||(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),vX(c,r)},CX={defaultValue:$p.arrayOf($p.number),value:$p.arrayOf($p.number),count:Number,pushable:Sp($p.oneOfType([$p.looseBool,$p.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:$p.arrayOf($p.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},kX=jn({compatConfig:{MODE:3},name:"Range",mixins:[pm],inheritAttrs:!1,props:Vl(CX,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map((()=>t)),r=Kl(this,"defaultValue")?this.defaultValue:o;let{value:i}=this;void 0===i&&(i=r);const l=i.map(((e,t)=>xX({value:e,handle:t,props:this.$props})));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map(((e,n)=>xX({value:e,handle:n,bounds:t,props:this.$props})));if(t.length===n.length){if(n.every(((e,n)=>e===t[n])))return null}else n=e.map(((e,t)=>xX({value:e,handle:t,props:this.$props})));if(this.setState({bounds:n}),e.some((e=>cX(e,this.$props)))){const t=e.map((e=>mX(e,this.$props)));this.$emit("change",t)}},onChange(e){if(Kl(this,"value")){const t={};["sHandle","recent"].forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}else this.setState(e);const t=cl(cl({},this.$data),e).bounds;this.$emit("change",t)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o);if(n===t[r])return null;const i=[...t];return i[r]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),n===t[this.prevMovedHandleIndex])return;const r=[...t];r[this.prevMovedHandleIndex]=n,this.onChange({bounds:r})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){bX(e);const{$data:r,$props:i}=this,l=i.max||100,a=i.min||0;if(n){let e=i.vertical?-t:t;e=i.reverse?-e:e;const n=l-Math.max(...o),s=a-Math.min(...o),c=Math.min(Math.max(e/(this.getSliderLength()/100),s),n),u=o.map((e=>Math.floor(Math.max(Math.min(e+c,l),a))));return void(r.bounds.map(((e,t)=>e===u[t])).some((e=>!e))&&this.onChange({bounds:u}))}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t);u!==s[c]&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=yX(e,n,t);if(o){bX(e);const{bounds:t,sHandle:n}=this,r=t[null===n?this.recent:n],i=o(r,this.$props),l=xX({value:i,handle:n,bounds:t,props:this.$props});if(l===r)return;const a=!0;this.moveTo(l,a)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)e-t)),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,i=null===o?r:o;n[i]=e;let l=i;!1!==this.$props.pushable?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort(((e,t)=>e-t)),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[l].focus()})),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let i=0;if(e[t+1]-n=o.length||r<0)return!1;const i=t+n,l=o[r],{pushable:a}=this,s=Number(a),c=n*(e[i]-l);return!!this.pushHandle(e,i,n,s-c)&&(e[t]=l,!0)},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return xX({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const i=this.$data||{},{bounds:l}=i;if(e=void 0===e?i.sHandle:e,r=Number(r),!o&&null!=e&&void 0!==l){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:i,offsets:l,trackStyle:a}=e;return t.slice(0,-1).map(((e,t)=>{const s=t+1,c=xl({[`${n}-track`]:!0,[`${n}-track-${s}`]:!0});return br(nX,{class:c,vertical:r,reverse:o,included:i,offset:l[s-1],length:l[s]-l[s-1],style:a[t],key:s},null)}))},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:i,min:l,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:p,tabindex:h,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:m}=this,v=c||u,b=t.map((e=>this.calcOffset(e))),y=`${n}-handle`,O=t.map(((t,r)=>{let c=h[r]||0;(i||null===h[r])&&(c=null);const u=e===r;return v({class:xl({[y]:!0,[`${y}-${r+1}`]:!0,[`${y}-dragging`]:u}),prefixCls:n,vertical:o,dragging:u,offset:b[r],value:t,index:r,tabindex:c,min:l,max:a,reverse:s,disabled:i,style:p[r],ref:e=>this.saveHandle(r,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[r],ariaLabelledBy:g[r],ariaValueTextFormatter:m[r]})}));return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:b,trackStyle:d}),handles:O}}}}),PX=wX(kX),TX=jn({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Px(),setup(e,t){let{attrs:n,slots:o}=t;const r=bt(null),i=bt(null);function l(){ma.cancel(i.value),i.value=null}const a=()=>{l(),e.open&&(i.value=ma((()=>{var e;null===(e=r.value)||void 0===e||e.forcePopupAlign(),i.value=null})))};return bn([()=>e.open,()=>e.title],(()=>{a()}),{flush:"post",immediate:!0}),Qn((()=>{a()})),Kn((()=>{l()})),()=>br(Tx,sl(sl({ref:r},e),n),o)}}),MX=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:l}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",height:n,margin:`${i}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new mu(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},IX=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i}=e,l=t?"width":"height",a=t?"height":"width",s=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:o,[a]:3*o,[`${n}-rail`]:{[l]:"100%",[a]:o},[`${n}-track`]:{[a]:o},[`${n}-handle`]:{[s]:(3*o-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[l]:"100%",[a]:o},[`${n}-dot`]:{position:"absolute",[s]:(o-i)/2}}},EX=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:cl(cl({},IX(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},AX=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:cl(cl({},IX(e,!1)),{height:"100%"})}},DX=Ku("Slider",(e=>{const t=Ju(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[MX(t),EX(t),AX(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}));var RX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",BX=ya(jn({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:{id:String,prefixCls:String,tooltipPrefixCls:String,range:Pa([Boolean,Object]),reverse:Sa(),min:Number,max:Number,step:Pa([Object,Number]),marks:wa(),dots:Sa(),value:Pa([Array,Number]),defaultValue:Pa([Array,Number]),included:Sa(),disabled:Sa(),vertical:Sa(),tipFormatter:Pa([Function,Object],(()=>zX)),tooltipOpen:Sa(),tooltipVisible:Sa(),tooltipPlacement:ka(),getTooltipPopupContainer:$a(),autofocus:Sa(),handleStyle:Pa([Array,Object]),trackStyle:Pa([Array,Object]),onChange:$a(),onAfterChange:$a(),onFocus:$a(),onBlur:$a(),"onUpdate:value":$a()},slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=$d("slider",e),[d,p]=DX(l),h=gy(),f=bt(),g=bt({}),m=(e,t)=>{g.value[e]=t},v=Lr((()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===s.value?"left":"right":"top")),b=e=>{r("update:value",e),r("change",e),h.onFieldChange()},y=e=>{r("blur",e)};i({focus:()=>{var e;null===(e=f.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=f.value)||void 0===e||e.blur()}});const O=t=>{var{tooltipPrefixCls:n}=t,o=t.info,{value:r,dragging:i,index:s}=o,u=RX(o,["value","dragging","index"]);const{tipFormatter:d,tooltipOpen:p=e.tooltipVisible,getTooltipPopupContainer:h}=e,f=!!d&&(g.value[s]||i),b=p||void 0===p&&f;return br(TX,{prefixCls:n,title:d?d(r):"",open:b,placement:v.value,transitionName:`${a.value}-zoom-down`,key:s,overlayClassName:`${l.value}-tooltip`,getPopupContainer:h||(null==c?void 0:c.value)},{default:()=>[br(aX,sl(sl({},u),{},{value:r,onMouseenter:()=>m(s,!0),onMouseleave:()=>m(s,!1)}),null)]})};return()=>{const{tooltipPrefixCls:t,range:r,id:i=h.id.value}=e,a=RX(e,["tooltipPrefixCls","range","id"]),c=u.getPrefixCls("tooltip",t),g=xl(n.class,{[`${l.value}-rtl`]:"rtl"===s.value},p.value);let m;return"rtl"!==s.value||a.vertical||(a.reverse=!a.reverse),"object"==typeof r&&(m=r.draggableTrack),d(r?br(PX,sl(sl(sl({},n),a),{},{step:a.step,draggableTrack:m,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}):br($X,sl(sl(sl({},n),a),{},{id:i,step:a.step,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}))}}}));function jX(e){return"string"==typeof e}function NX(){}const _X=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:ka(),iconPrefix:String,icon:$p.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:$p.any,title:$p.any,subTitle:$p.any,progressDot:Sp($p.oneOfType([$p.looseBool,$p.func])),tailContent:$p.any,icons:$p.shape({finish:$p.any,error:$p.any}).loose,onClick:$a(),onStepClick:$a(),stepIcon:$a(),itemRender:$a(),__legacy:Sa()}),QX=jn({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:_X(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=t=>{o("click",t),o("stepClick",e.stepIndex)},l=t=>{let{icon:o,title:r,description:i}=t;const{prefixCls:l,stepNumber:a,status:s,iconPrefix:c,icons:u,progressDot:d=n.progressDot,stepIcon:p=n.stepIcon}=e;let h;const f=xl(`${l}-icon`,`${c}icon`,{[`${c}icon-${o}`]:o&&jX(o),[`${c}icon-check`]:!o&&"finish"===s&&(u&&!u.finish||!u),[`${c}icon-cross`]:!o&&"error"===s&&(u&&!u.error||!u)}),g=br("span",{class:`${l}-icon-dot`},null);return h=d?br("span",{class:`${l}-icon`},"function"==typeof d?[d({iconDot:g,index:a-1,status:s,title:r,description:i,prefixCls:l})]:[g]):o&&!jX(o)?br("span",{class:`${l}-icon`},[o]):u&&u.finish&&"finish"===s?br("span",{class:`${l}-icon`},[u.finish]):u&&u.error&&"error"===s?br("span",{class:`${l}-icon`},[u.error]):o||"finish"===s||"error"===s?br("span",{class:f},null):br("span",{class:`${l}-icon`},[a]),p&&(h=p({index:a-1,status:s,title:r,description:i,node:h})),h};return()=>{var t,o,a,s;const{prefixCls:c,itemWidth:u,active:d,status:p="wait",tailContent:h,adjustMarginRight:f,disabled:g,title:m=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:v=(null===(o=n.description)||void 0===o?void 0:o.call(n)),subTitle:b=(null===(a=n.subTitle)||void 0===a?void 0:a.call(n)),icon:y=(null===(s=n.icon)||void 0===s?void 0:s.call(n)),onClick:O,onStepClick:w}=e,S=xl(`${c}-item`,`${c}-item-${p||"wait"}`,{[`${c}-item-custom`]:y,[`${c}-item-active`]:d,[`${c}-item-disabled`]:!0===g}),$={};u&&($.width=u),f&&($.marginRight=f);const x={onClick:O||NX};w&&!g&&(x.role="button",x.tabindex=0,x.onClick=i);const C=br("div",sl(sl({},xd(r,["__legacy"])),{},{class:[S,r.class],style:[r.style,$]}),[br("div",sl(sl({},x),{},{class:`${c}-item-container`}),[br("div",{class:`${c}-item-tail`},[h]),br("div",{class:`${c}-item-icon`},[l({icon:y,title:m,description:v})]),br("div",{class:`${c}-item-content`},[br("div",{class:`${c}-item-title`},[m,b&&br("div",{title:"string"==typeof b?b:void 0,class:`${c}-item-subtitle`},[b])]),v&&br("div",{class:`${c}-item-description`},[v])])])]);return e.itemRender?e.itemRender(C):C}}}),LX=jn({compatConfig:{MODE:3},name:"Steps",props:{type:$p.string.def("default"),prefixCls:$p.string.def("vc-steps"),iconPrefix:$p.string.def("vc"),direction:$p.string.def("horizontal"),labelPlacement:$p.string.def("horizontal"),status:ka("process"),size:$p.string.def(""),progressDot:$p.oneOfType([$p.looseBool,$p.func]).def(void 0),initial:$p.number.def(0),current:$p.number.def(0),items:$p.array.def((()=>[])),icons:$p.shape({finish:$p.any,error:$p.any}).loose,stepIcon:$a(),isInline:$p.looseBool,itemRender:$a()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=t=>{const{current:n}=e;n!==t&&o("change",t)},i=(t,o,i)=>{const{prefixCls:l,iconPrefix:a,status:s,current:c,initial:u,icons:d,stepIcon:p=n.stepIcon,isInline:h,itemRender:f,progressDot:g=n.progressDot}=e,m=h||g,v=cl(cl({},t),{class:""}),b=u+o,y={active:b===c,stepNumber:b+1,stepIndex:b,key:b,prefixCls:l,iconPrefix:a,progressDot:m,stepIcon:p,icons:d,onStepClick:r};return"error"===s&&o===c-1&&(v.class=`${l}-next-error`),v.status||(v.status=b===c?s:bf(v,e)),br(QX,sl(sl(sl({},v),y),{},{__legacy:!1}),null))},l=(e,t)=>i(cl({},e.props),t,(t=>Yh(e,t)));return()=>{var t;const{prefixCls:o,direction:r,type:a,labelPlacement:s,iconPrefix:c,status:u,size:d,current:p,progressDot:h=n.progressDot,initial:f,icons:g,items:m,isInline:v,itemRender:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re)).map(((e,t)=>i(e,t))),la(null===(t=n.default)||void 0===t?void 0:t.call(n)).map(l)])}}}),HX=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},FX=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:2*(n/2+e.controlHeightLG),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},WX=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:cl(cl({maxWidth:"100%",paddingInlineEnd:0},Wu),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},XX=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},YX=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:i,motionDurationSlow:l}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:n/2+"px 0",padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(i-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},ZX=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},VX=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},UX=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},KX=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.paddingXS+e.lineWidth,l={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":cl({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-finish":cl({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-error":l,"&-active, &-process":cl({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var GX,qX;(qX=GX||(GX={})).wait="wait",qX.process="process",qX.finish="finish",qX.error="error";const JX=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${e}TailColor`,a=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[`${e}IconBgColor`],borderColor:t[a],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[l]}}},eY=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return cl(cl(cl(cl(cl(cl({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},JX(GX.wait,e)),JX(GX.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),JX(GX.finish,e)),JX(GX.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},tY=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},nY=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),eY(e)),tY(e)),HX(e)),VX(e)),UX(e)),FX(e)),YX(e)),WX(e)),ZX(e)),XX(e)),KX(e))}},oY=Ku("Steps",(e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:i,controlHeightLG:l,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:p,colorFillContent:h,controlItemBgActive:f,colorError:g,colorBgContainer:m,colorBorderSecondary:v}=e,b=e.controlHeight,y=e.colorSplit,O=Ju(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:b,stepsIconCustomSize:b,stepsIconCustomTop:0,stepsIconCustomFontSize:l/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:i,stepsSmallIconSize:o,stepsDotSize:i/4,stepsCurrentDotSize:l/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?m:h,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?m:f,finishIconBorderColor:t?c:f,finishDotColor:c,errorIconColor:a,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:y,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:c,stepsProgressSize:l,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:v});return[nY(O)]}),{descriptionWidth:140}),rY=jn({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Vl({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Sa(),items:Ca(),labelPlacement:ka(),status:ka(),size:ka(),direction:ka(),progressDot:Pa([Boolean,Function]),type:ka(),onChange:$a(),"onUpdate:current":$a()},{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l,configProvider:a}=$d("steps",e),[s,c]=oY(i),[,u]=ad(),d=ex(),p=Lr((()=>e.responsive&&d.value.xs?"vertical":e.direction)),h=Lr((()=>a.getPrefixCls("",e.iconPrefix))),f=e=>{r("update:current",e),r("change",e)},g=Lr((()=>"inline"===e.type)),m=Lr((()=>g.value?void 0:e.percent)),v=t=>{let{node:n,status:o}=t;if("process"===o&&void 0!==e.percent){const t="small"===e.size?u.value.controlHeight:u.value.controlHeightLG;return br("div",{class:`${i.value}-progress-icon`},[br(SW,{type:"circle",percent:m.value,size:t,strokeWidth:4,format:()=>null},null),n])}return n},b=Lr((()=>({finish:br(Zb,{class:`${i.value}-finish-icon`},null),error:br(qb,{class:`${i.value}-error-icon`},null)})));return()=>{const t=xl({[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-with-progress`]:void 0!==m.value},n.class,c.value);return s(br(LX,sl(sl(sl({icons:b.value},n),xd(e,["percent","responsive"])),{},{items:e.items,direction:p.value,prefixCls:i.value,iconPrefix:h.value,class:t,onChange:f,isInline:g.value,itemRender:g.value?(e,t)=>e.description?br(Tx,{title:e.description},{default:()=>[t]}):t:void 0}),cl({stepIcon:v},o)))}}}),iY=jn(cl(cl({compatConfig:{MODE:3}},QX),{name:"AStep",props:_X()})),lY=cl(rY,{Step:iY,install:e=>(e.component(rY.name,rY),e.component(iY.name,iY),e)}),aY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},sY=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},cY=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},uY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},dY=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Uu(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},pY=Ku("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=t-4,r=n-4,i=Ju(e,{switchMinWidth:2*o+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+2+4,switchPadding:2,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:2*r+4,switchHeightSM:n,switchInnerMarginMinSM:r/2,switchInnerMarginMaxSM:r+2+4,switchPinSizeSM:r,switchHandleShadow:`0 2px 4px 0 ${new mu("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[dY(i),uY(i),cY(i),sY(i),aY(i)]})),hY=ba("small","default"),fY=ya(jn({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:{id:String,prefixCls:String,size:$p.oneOf(hY),disabled:{type:Boolean,default:void 0},checkedChildren:$p.any,unCheckedChildren:$p.any,tabindex:$p.oneOfType([$p.string,$p.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:$p.oneOfType([$p.string,$p.number,$p.looseBool]),checkedValue:$p.oneOfType([$p.string,$p.number,$p.looseBool]).def(!0),unCheckedValue:$p.oneOfType([$p.string,$p.number,$p.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function},slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;const l=gy(),a=Wa(),s=Lr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:a.value}));Yn((()=>{Ts(),Ts()}));const c=bt(void 0!==e.checked?e.checked:n.defaultChecked),u=Lr((()=>c.value===e.checkedValue));bn((()=>e.checked),(()=>{c.value=e.checked}));const{prefixCls:d,direction:p,size:h}=$d("switch",e),[f,g]=pY(d),m=bt(),v=()=>{var e;null===(e=m.value)||void 0===e||e.focus()};r({focus:v,blur:()=>{var e;null===(e=m.value)||void 0===e||e.blur()}}),Zn((()=>{Ft((()=>{e.autofocus&&!s.value&&m.value.focus()}))}));const b=(e,t)=>{s.value||(i("update:checked",e),i("change",e,t),l.onFieldChange())},y=e=>{i("blur",e)},O=t=>{v();const n=u.value?e.unCheckedValue:e.checkedValue;b(n,t),i("click",n,t)},w=t=>{t.keyCode===Im.LEFT?b(e.unCheckedValue,t):t.keyCode===Im.RIGHT&&b(e.checkedValue,t),i("keydown",t)},S=e=>{var t;null===(t=m.value)||void 0===t||t.blur(),i("mouseup",e)},$=Lr((()=>({[`${d.value}-small`]:"small"===h.value,[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:"rtl"===p.value,[g.value]:!0})));return()=>{var t;return f(br(lC,null,{default:()=>[br("button",sl(sl(sl({},xd(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:null!==(t=e.id)&&void 0!==t?t:l.id.value,onKeydown:w,onClick:O,onBlur:y,onMouseup:S,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,$.value],ref:m}),[br("div",{class:`${d.value}-handle`},[e.loading?br(Hb,{class:`${d.value}-loading-icon`},null):null]),br("span",{class:`${d.value}-inner`},[br("span",{class:`${d.value}-inner-checked`},[ca(o,e,"checkedChildren")]),br("span",{class:`${d.value}-inner-unchecked`},[ca(o,e,"unCheckedChildren")])])])]}))}}})),gY=Symbol("TableContextProps"),mY=()=>Mo(gY,{});function vY(e){return null==e?[]:Array.isArray(e)?e:[e]}function bY(e,t){if(!t&&"number"!=typeof t)return e;const n=vY(t);let o=e;for(let r=0;r{const{key:o,dataIndex:r}=e||{};let i=o||vY(r).join("-")||"RC_TABLE_KEY";for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)})),t}function OY(){const e={};function t(e,n){n&&Object.keys(n).forEach((o=>{const r=n[o];r&&"object"==typeof r?(e[o]=e[o]||{},t(e[o],r)):e[o]=r}))}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,n)})),e}function wY(e){return null!=e}const SY=Symbol("SlotsContextProps"),$Y=()=>Mo(SY,Lr((()=>({})))),xY=Symbol("ContextProps"),CY="RC_TABLE_INTERNAL_COL_DEFINE",kY=Symbol("HoverContextProps"),PY=yt(!1),TY=jn({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=$Y(),{onHover:r,startRow:i,endRow:l}=Mo(kY,{startRow:yt(-1),endRow:yt(-1),onHover(){}}),a=Lr((()=>{var t,n,o,r;return null!==(o=null!==(t=e.colSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.colSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.colspan})),s=Lr((()=>{var t,n,o,r;return null!==(o=null!==(t=e.rowSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.rowSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.rowspan})),c=tx((()=>{const{index:t}=e;return function(e,t,n,o){return e<=o&&e+t-1>=n}(t,s.value||1,i.value,l.value)})),u=PY,d=t=>{var n;const{record:o,additionalProps:i}=e;o&&r(-1,-1),null===(n=null==i?void 0:i.onMouseleave)||void 0===n||n.call(i,t)},p=e=>{const t=la(e)[0];return pr(t)?t.type===tr?t.children:Array.isArray(t.children)?p(t.children):void 0:t};return()=>{var t,i,l,h,f,g;const{prefixCls:m,record:v,index:b,renderIndex:y,dataIndex:O,customRender:w,component:S="td",fixLeft:$,fixRight:x,firstFixLeft:C,lastFixLeft:k,firstFixRight:P,lastFixRight:T,appendNode:M=(null===(t=n.appendNode)||void 0===t?void 0:t.call(n)),additionalProps:I={},ellipsis:E,align:A,rowType:D,isSticky:R,column:z={},cellType:B}=e,j=`${m}-cell`;let N,_;const Q=null===(i=n.default)||void 0===i?void 0:i.call(n);if(wY(Q)||"header"===B)_=Q;else{const t=bY(v,O);if(_=t,w){const e=w({text:t,value:t,record:v,index:b,renderIndex:y,column:z.__originColumn__});!(L=e)||"object"!=typeof L||Array.isArray(L)||pr(L)?_=e:(_=e.children,N=e.props)}if(!(CY in z)&&"body"===B&&o.value.bodyCell&&!(null===(l=z.slots)||void 0===l?void 0:l.customRender)){const e=oo(o.value,"bodyCell",{text:t,value:t,record:v,index:b,column:z.__originColumn__},(()=>{const e=void 0===_?t:_;return["object"==typeof e&&sa(e)||"object"!=typeof e?e:null]}));_=ql(e)}e.transformCellText&&(_=e.transformCellText({text:_,record:v,index:b,column:z.__originColumn__}))}var L;"object"!=typeof _||Array.isArray(_)||pr(_)||(_=null),E&&(k||P)&&(_=br("span",{class:`${j}-content`},[_])),Array.isArray(_)&&1===_.length&&(_=_[0]);const H=N||{},{colSpan:F,rowSpan:W,style:X,class:Y}=H,Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{((t,n)=>{var o;const{record:i,index:l,additionalProps:a}=e;i&&r(l,l+n-1),null===(o=null==a?void 0:a.onMouseenter)||void 0===o||o.call(a,t)})(t,U)},onMouseleave:d,style:[I.style,J,K,X]});return br(S,ne,{default:()=>[M,_,null===(g=n.dragHandle)||void 0===g?void 0:g.call(n)]})}}});function MY(e,t,n,o,r){const i=n[e]||{},l=n[t]||{};let a,s;"left"===i.fixed?a=o.left[e]:"right"===l.fixed&&(s=o.right[t]);let c=!1,u=!1,d=!1,p=!1;const h=n[t+1],f=n[e-1];return"rtl"===r?void 0!==a?p=!(f&&"left"===f.fixed):void 0!==s&&(d=!(h&&"right"===h.fixed)):void 0!==a?c=!(h&&"left"===h.fixed):void 0!==s&&(u=!(f&&"right"===f.fixed)),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const IY={start:"mousedown",move:"mousemove",stop:"mouseup"},EY={start:"touchstart",move:"touchmove",stop:"touchend"},AY=jn({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:50},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};Gn((()=>{r()})),mn((()=>{xp(!isNaN(e.width),"Table","width must be a number when use resizable")}));const{onResizeColumn:i}=Mo(xY,{onResizeColumn:()=>{}}),l=Lr((()=>"number"!=typeof e.minWidth||isNaN(e.minWidth)?50:e.minWidth)),a=Lr((()=>"number"!=typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth)),s=Mr();let c=0;const u=yt(!1);let d;const p=n=>{let o=0;o=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;const r=t-o;let s=Math.max(c-r,l.value);s=Math.min(s,a.value),ma.cancel(d),d=ma((()=>{i(s,e.column.__originColumn__)}))},h=e=>{p(e)},f=e=>{u.value=!1,p(e),r()},g=(e,i)=>{u.value=!0,r(),c=s.vnode.el.parentNode.getBoundingClientRect().width,e instanceof MouseEvent&&1!==e.which||(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=Ia(document.documentElement,i.move,h),o=Ia(document.documentElement,i.stop,f))},m=e=>{e.stopPropagation(),e.preventDefault(),g(e,IY)},v=e=>{e.stopPropagation(),e.preventDefault()};return()=>{const{prefixCls:t}=e,n={[Ma?"onTouchstartPassive":"onTouchstart"]:e=>(e=>{e.stopPropagation(),e.preventDefault(),g(e,EY)})(e)};return br("div",sl(sl({class:`${t}-resize-handle ${u.value?"dragging":""}`,onMousedown:m},n),{},{onClick:v}),[br("div",{class:`${t}-resize-handle-line`},null)])}}}),DY=jn({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=mY();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:i,flattenColumns:l,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map((e=>e.column)),u));const p=yY(r.map((e=>e.column)));return br(a,d,{default:()=>[r.map(((e,t)=>{const{column:r}=e,a=MY(e.colStart,e.colEnd,l,i,o);let c;r&&r.customHeaderCell&&(c=e.column.customHeaderCell(r));const u=r;return br(TY,sl(sl(sl({},e),{},{cellType:"header",ellipsis:r.ellipsis,align:r.align,component:s,prefixCls:n,key:p[t]},a),{},{additionalProps:c,rowType:"header",column:r}),{default:()=>r.title,dragHandle:()=>u.resizable?br(AY,{prefixCls:n,width:u.width,minWidth:u.minWidth,maxWidth:u.maxWidth,column:u},null):null})}))]})}}}),RY=jn({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=mY(),n=Lr((()=>function(e){const t=[];!function e(n,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];let i=o;const l=n.filter(Boolean).map((n=>{const o={key:n.key,class:xl(n.className,n.class),column:n,colStart:i};let l=1;const a=n.children;return a&&a.length>0&&(l=e(a,i,r+1).reduce(((e,t)=>e+t),0),o.hasSubColumns=!0),"colSpan"in n&&({colSpan:l}=n),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=l,o.colEnd=o.colStart+l-1,t[r].push(o),i+=l,l}));return l}(e,0);const n=t.length;for(let o=0;o{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-o)}));return t}(e.columns)));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:i,flattenColumns:l,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return br(s,{class:`${o}-thead`},{default:()=>[n.value.map(((e,t)=>br(DY,{key:t,flattenColumns:l,cells:e,stickyOffsets:i,rowComponent:c,cellComponent:u,customHeaderRow:a,index:t},null)))]})}}}),zY=Symbol("ExpandedRowProps"),BY=jn({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=mY(),i=Mo(zY,{}),{fixHeader:l,fixColumn:a,componentWidth:s,horizonScroll:c}=i;return()=>{const{prefixCls:t,component:i,cellComponent:u,expanded:d,colSpan:p,isEmpty:h}=e;return br(i,{class:o.class,style:{display:d?null:"none"}},{default:()=>[br(TY,{component:u,prefixCls:t,colSpan:p},{default:()=>{var e;let o=null===(e=n.default)||void 0===e?void 0:e.call(n);return(h?c.value:a.value)&&(o=br("div",{style:{width:s.value-(l.value?r.scrollbarSize:0)+"px",position:"sticky",left:0,overflow:"hidden"},class:`${t}-expanded-row-fixed`},[o])),o}})]})}}}),jY=jn({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=bt();return Zn((()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)})),()=>br(ua,{onResize:t=>{let{offsetWidth:o}=t;n("columnResize",e.columnKey,o)}},{default:()=>[br("td",{ref:o,style:{padding:0,border:0,height:0}},[br("div",{style:{height:0,overflow:"hidden"}},[Or(" ")])])]})}}),NY=Symbol("BodyContextProps"),_Y=()=>Mo(NY,{}),QY=jn({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=mY(),r=_Y(),i=yt(!1),l=Lr((()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey)));mn((()=>{l.value&&(i.value=!0)}));const a=Lr((()=>"row"===r.expandableType&&(!e.rowExpandable||e.rowExpandable(e.record)))),s=Lr((()=>"nest"===r.expandableType)),c=Lr((()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName])),u=Lr((()=>a.value||s.value)),d=(e,t)=>{r.onTriggerExpand(e,t)},p=Lr((()=>{var t;return(null===(t=e.customRow)||void 0===t?void 0:t.call(e,e.record,e.index))||{}})),h=function(t){var n,o;r.expandRowByClick&&u.value&&d(e.record,t);for(var i=arguments.length,l=new Array(i>1?i-1:0),a=1;a{const{record:t,index:n,indent:o}=e,{rowClassName:i}=r;return"string"==typeof i?i:"function"==typeof i?i(t,n,o):""})),g=Lr((()=>yY(r.flattenColumns)));return()=>{const{class:t,style:u}=n,{record:m,index:v,rowKey:b,indent:y=0,rowComponent:O,cellComponent:w}=e,{prefixCls:S,fixedInfoList:$,transformCellText:x}=o,{flattenColumns:C,expandedRowClassName:k,indentSize:P,expandIcon:T,expandedRowRender:M,expandIconColumnIndex:I}=r,E=br(O,sl(sl({},p.value),{},{"data-row-key":b,class:xl(t,`${S}-row`,`${S}-row-level-${y}`,f.value,p.value.class),style:[u,p.value.style],onClick:h}),{default:()=>[C.map(((t,n)=>{const{customRender:o,dataIndex:r,className:i}=t,a=g[n],u=$[n];let p;t.customCell&&(p=t.customCell(m,v,t));const h=n===(I||0)&&s.value?br(er,null,[br("span",{style:{paddingLeft:P*y+"px"},class:`${S}-row-indent indent-level-${y}`},null),T({prefixCls:S,expanded:l.value,expandable:c.value,record:m,onExpand:d})]):null;return br(TY,sl(sl({cellType:"body",class:i,ellipsis:t.ellipsis,align:t.align,component:w,prefixCls:S,key:a,record:m,index:v,renderIndex:e.renderIndex,dataIndex:r,customRender:o},u),{},{additionalProps:p,column:t,transformCellText:x,appendNode:h}),null)}))]});let A;if(a.value&&(i.value||l.value)){const e=M({record:m,index:v,indent:y+1,expanded:l.value}),t=k&&k(m,v,y);A=br(BY,{expanded:l.value,class:xl(`${S}-expanded-row`,`${S}-expanded-row-level-${y+1}`,t),prefixCls:S,component:O,cellComponent:w,colSpan:C.length,isEmpty:!1},{default:()=>[e]})}return br(er,null,[E,A])}}});function LY(e,t,n,o,r,i){const l=[];l.push({record:e,indent:t,index:i});const a=r(e),s=null==o?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{}}),r=mY(),i=_Y(),l=(a=Tt(e,"data"),s=Tt(e,"childrenColumnName"),c=Tt(e,"expandedKeys"),u=Tt(e,"getRowKey"),Lr((()=>{const e=s.value,t=c.value,n=a.value;if(null==t?void 0:t.size){const o=[];for(let r=0;r<(null==n?void 0:n.length);r+=1){const i=n[r];o.push(...LY(i,0,e,t,u.value,r))}return o}return null==n?void 0:n.map(((e,t)=>({record:e,indent:0,index:t})))})));var a,s,c,u;const d=yt(-1),p=yt(-1);let h;return(e=>{To(kY,e)})({startRow:d,endRow:p,onHover:(e,t)=>{clearTimeout(h),h=setTimeout((()=>{d.value=e,p.value=t}),100)}}),()=>{var t;const{data:a,getRowKey:s,measureColumnWidth:c,expandedKeys:u,customRow:d,rowExpandable:p,childrenColumnName:h}=e,{onColumnResize:f}=o,{prefixCls:g,getComponent:m}=r,{flattenColumns:v}=i,b=m(["body","wrapper"],"tbody"),y=m(["body","row"],"tr"),O=m(["body","cell"],"td");let w;w=a.length?l.value.map(((e,t)=>{const{record:n,indent:o,index:r}=e,i=s(n,t);return br(QY,{key:i,rowKey:i,record:n,recordKey:i,index:t,renderIndex:r,rowComponent:y,cellComponent:O,expandedKeys:u,customRow:d,getRowKey:s,rowExpandable:p,childrenColumnName:h,indent:o},null)})):br(BY,{expanded:!0,class:`${g}-placeholder`,prefixCls:g,component:y,cellComponent:O,colSpan:v.length,isEmpty:!0},{default:()=>[null===(t=n.emptyNode)||void 0===t?void 0:t.call(n)]});const S=yY(v);return br(b,{class:`${g}-tbody`},{default:()=>[c&&br("tr",{"aria-hidden":"true",class:`${g}-measure-row`,style:{height:0,fontSize:0}},[S.map((e=>br(jY,{key:e,columnKey:e,onColumnResize:f},null)))]),w]})}}}),WY={};function XY(e){return e.reduce(((e,t)=>{const{fixed:n}=t,o=!0===n?"left":n,r=t.children;return r&&r.length>0?[...e,...XY(r).map((e=>cl({fixed:o},e)))]:[...e,cl(cl({},t),{fixed:o})]}),[])}function YY(e){return e.map((e=>{const{fixed:t}=e;let n=t;return"left"===t?n="right":"right"===t&&(n="left"),cl({fixed:n},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{ma.cancel(n)})),[t,function(e){o.value.push(e),ma.cancel(n),n=ma((()=>{const e=o.value;o.value=[],e.forEach((e=>{t.value=e(t.value)}))}))}]}var VY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=0;l-=1){const e=t[l],o=n&&n[l],a=o&&o[CY];if(e||a||i){const t=VY(a||{},["columnType"]);r.unshift(br("col",sl({key:l,style:{width:"number"==typeof e?`${e}px`:e}},t),null)),i=!0}}return br("colgroup",null,[r])}function KY(e,t){let{slots:n}=t;var o;return br("div",null,[null===(o=n.default)||void 0===o?void 0:o.call(n)])}KY.displayName="Panel";let GY=0;const qY=jn({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=mY(),r="table-summary-uni-key-"+ ++GY,i=Lr((()=>""===e.fixed||e.fixed));return mn((()=>{o.summaryCollect(r,i.value)})),Kn((()=>{o.summaryCollect(r,!1)})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),JY=jn({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var e;return br("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),eZ=Symbol("SummaryContextProps"),tZ=jn({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=mY(),i=Mo(eZ,{});return()=>{const{index:t,colSpan:l=1,rowSpan:a,align:s}=e,{prefixCls:c,direction:u}=r,{scrollColumnIndex:d,stickyOffsets:p,flattenColumns:h}=i,f=t+l-1+1===d?l+1:l,g=MY(t,t+f-1,h,p,u);return br(TY,sl({class:n.class,index:t,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:f,rowSpan:a,customRender:()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}},g),null)}}}),nZ=jn({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=mY();return(e=>{To(eZ,e)})(rt({stickyOffsets:Tt(e,"stickyOffsets"),flattenColumns:Tt(e,"flattenColumns"),scrollColumnIndex:Lr((()=>{const t=e.flattenColumns.length-1,n=e.flattenColumns[t];return(null==n?void 0:n.scrollbar)?t:null}))})),()=>{var e;const{prefixCls:t}=o;return br("tfoot",{class:`${t}-summary`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),oZ=qY;function rZ(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:i}=e;const l=`${t}-row-expand-icon`;return br("span",i?{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:e=>{o(n,e),e.stopPropagation()}}:{class:[l,`${t}-row-spaced`]},null)}const iZ=jn({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=mY(),i=yt(0),l=yt(0),a=yt(0);mn((()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,a.value=i.value&&l.value*(l.value/i.value)}),{flush:"post"});const s=yt(),[c,u]=ZY({scrollLeft:0,isHiddenScrollBar:!0}),d=bt({delta:0,x:0}),p=yt(!1),h=()=>{p.value=!1},f=e=>{d.value={delta:e.pageX-c.value.scrollLeft,x:0},p.value=!0,e.preventDefault()},g=e=>{const{buttons:t}=e||(null===window||void 0===window?void 0:window.event);if(!p.value||0===t)return void(p.value&&(p.value=!1));let o=d.value.x+e.pageX-d.value.x-d.value.delta;o<=0&&(o=0),o+a.value>=l.value&&(o=l.value-a.value),n("scroll",{scrollLeft:o/l.value*(i.value+2)}),d.value.x=e.pageX},m=()=>{if(!e.scrollBodyRef.value)return;const t=E_(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,o=e.container===window?document.documentElement.scrollTop+window.innerHeight:E_(e.container).top+e.container.clientHeight;n-vm()<=o||t>=o-e.offsetScroll?u((e=>cl(cl({},e),{isHiddenScrollBar:!0}))):u((e=>cl(cl({},e),{isHiddenScrollBar:!1})))};o({setScrollLeft:e=>{u((t=>cl(cl({},t),{scrollLeft:e/i.value*l.value||0})))}});let v=null,b=null,y=null,O=null;Zn((()=>{v=Ia(document.body,"mouseup",h,!1),b=Ia(document.body,"mousemove",g,!1),y=Ia(window,"resize",m,!1)})),Qn((()=>{Ft((()=>{m()}))})),Zn((()=>{setTimeout((()=>{bn([a,p],(()=>{m()}),{immediate:!0,flush:"post"})}))})),bn((()=>e.container),(()=>{null==O||O.remove(),O=Ia(e.container,"scroll",m,!1)}),{immediate:!0,flush:"post"}),Kn((()=>{null==v||v.remove(),null==b||b.remove(),null==O||O.remove(),null==y||y.remove()})),bn((()=>cl({},c.value)),((t,n)=>{t.isHiddenScrollBar===(null==n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||u((t=>{const n=e.scrollBodyRef.value;return n?cl(cl({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t}))}),{immediate:!0});const w=vm();return()=>{if(i.value<=l.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:t}=r;return br("div",{style:{height:`${w}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[br("div",{onMousedown:f,ref:s,class:xl(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:p.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),lZ=ds()?window:null,aZ=jn({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=mY(),l=Lr((()=>i.isSticky&&!e.fixHeader?0:i.scrollbarSize)),a=bt(),s=e=>{const{currentTarget:t,deltaX:n}=e;n&&(r("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},c=bt();Zn((()=>{Ft((()=>{c.value=Ia(a.value,"wheel",s)}))})),Kn((()=>{var e;null===(e=c.value)||void 0===e||e.remove()}));const u=Lr((()=>e.flattenColumns.every((e=>e.width&&0!==e.width&&"0px"!==e.width)))),d=bt([]),p=bt([]);mn((()=>{const t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,n]:e.columns,p.value=l.value?[...e.flattenColumns,n]:e.flattenColumns}));const h=Lr((()=>{const{stickyOffsets:t,direction:n}=e,{right:o,left:r}=t;return cl(cl({},t),{left:"rtl"===n?[...r.map((e=>e+l.value)),0]:r,right:"rtl"===n?o:[...o.map((e=>e+l.value)),0],isSticky:i.isSticky})})),f=(g=Tt(e,"colWidths"),m=Tt(e,"columCount"),Lr((()=>{const e=[],t=g.value,n=m.value;for(let o=0;o{var t;const{noData:r,columCount:s,stickyTopOffset:c,stickyBottomOffset:g,stickyClassName:m,maxContentScroll:v}=e,{isSticky:b}=i;return br("div",{style:cl({overflow:"hidden"},b?{top:`${c}px`,bottom:`${g}px`}:{}),ref:a,class:xl(n.class,{[m]:!!m})},[br("table",{style:{tableLayout:"fixed",visibility:r||f.value?null:"hidden"}},[(!r||!v||u.value)&&br(UY,{colWidths:f.value?[...f.value,l.value]:[],columCount:s+1,columns:p.value},null),null===(t=o.default)||void 0===t?void 0:t.call(o,cl(cl({},e),{stickyOffsets:h.value,columns:d.value,flattenColumns:p.value}))])])}}});function sZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[t,Tt(e,t)]))))}const cZ=[],uZ={},dZ="rc-table-internal-hook",pZ=jn({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Lr((()=>e.data||cZ)),l=Lr((()=>!!i.value.length)),a=Lr((()=>OY(e.components,{}))),s=(e,t)=>bY(a.value,e)||t,c=Lr((()=>{const t=e.rowKey;return"function"==typeof t?t:e=>e&&e[t]})),u=Lr((()=>e.expandIcon||rZ)),d=Lr((()=>e.childrenColumnName||"children")),p=Lr((()=>e.expandedRowRender?"row":!(!e.canExpandable&&!i.value.some((e=>e&&"object"==typeof e&&e[d.value])))&&"nest")),h=yt([]),f=mn((()=>{e.defaultExpandedRowKeys&&(h.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(h.value=function(e,t,n){const o=[];return function e(r){(r||[]).forEach(((r,i)=>{o.push(t(r,i)),e(r[n])}))}(e),o}(i.value,c.value,d.value))}));f();const g=Lr((()=>new Set(e.expandedRowKeys||h.value||[]))),m=e=>{const t=c.value(e,i.value.indexOf(e));let n;const o=g.value.has(t);o?(g.value.delete(t),n=[...g.value]):n=[...g.value,t],h.value=n,r("expand",!o,e),r("update:expandedRowKeys",n),r("expandedRowsChange",n)},v=bt(0),[b,y]=function(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:i,getRowKey:l,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:p,expandColumnWidth:h,expandFixed:f}=e;const g=$Y(),m=Lr((()=>{if(r.value){let e=o.value.slice();if(!e.includes(WY)){const t=u.value||0;t>=0&&e.splice(t,0,WY)}const t=e.indexOf(WY);e=e.filter(((e,n)=>e!==WY||n===t));const r=o.value[t];let d;d="left"!==f.value&&!f.value||u.value?"right"!==f.value&&!f.value||u.value!==o.value.length?r?r.fixed:null:"right":"left";const m=i.value,v=c.value,b=s.value,y=n.value,O=p.value,w={[CY]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:oo(g.value,"expandColumnTitle",{},(()=>[""])),fixed:d,class:`${n.value}-row-expand-icon-cell`,width:h.value,customRender:e=>{let{record:t,index:n}=e;const o=l.value(t,n),r=m.has(o),i=!v||v(t),s=b({prefixCls:y,expanded:r,expandable:i,record:t,onExpand:a});return O?br("span",{onClick:e=>e.stopPropagation()},[s]):s}};return e.map((e=>e===WY?w:e))}return o.value.filter((e=>e!==WY))})),v=Lr((()=>{let e=m.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e})),b=Lr((()=>"rtl"===d.value?YY(XY(v.value)):XY(v.value)));return[v,b]}(cl(cl({},Ct(e)),{expandable:Lr((()=>!!e.expandedRowRender)),expandedKeys:g,getRowKey:c,onTriggerExpand:m,expandIcon:u}),Lr((()=>e.internalHooks===dZ?e.transformColumns:null))),O=Lr((()=>({columns:b.value,flattenColumns:y.value}))),w=bt(),S=bt(),$=bt(),x=bt({scrollWidth:0,clientWidth:0}),C=bt(),[k,P]=Hv(!1),[T,M]=Hv(!1),[I,E]=ZY(new Map),A=Lr((()=>yY(y.value))),D=Lr((()=>A.value.map((e=>I.value.get(e))))),R=Lr((()=>y.value.length)),z=(B=D,j=R,N=Tt(e,"direction"),Lr((()=>{const e=[],t=[];let n=0,o=0;const r=B.value,i=j.value,l=N.value;for(let a=0;ae.scroll&&wY(e.scroll.y))),Q=Lr((()=>e.scroll&&wY(e.scroll.x)||Boolean(e.expandFixed))),L=Lr((()=>Q.value&&y.value.some((e=>{let{fixed:t}=e;return t})))),H=bt(),F=function(e,t){return Lr((()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:i=(()=>lZ)}="object"==typeof e.value?e.value:{},l=i()||lZ,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}}))}(Tt(e,"sticky"),Tt(e,"prefixCls")),W=rt({}),X=Lr((()=>{const e=Object.values(W)[0];return(_.value||F.value.isSticky)&&e})),Y=bt({}),Z=bt({}),V=bt({});mn((()=>{_.value&&(Z.value={overflowY:"scroll",maxHeight:Sl(e.scroll.y)}),Q.value&&(Y.value={overflowX:"auto"},_.value||(Z.value={overflowY:"hidden"}),V.value={width:!0===e.scroll.x?"auto":Sl(e.scroll.x),minWidth:"100%"})}));const[U,K]=function(e){const t=bt(e||null),n=bt();function o(){clearTimeout(n.value)}return Kn((()=>{o()})),[function(e){t.value=e,o(),n.value=setTimeout((()=>{t.value=null,n.value=void 0}),100)},function(){return t.value}]}(null);function G(e,t){if(!t)return;if("function"==typeof t)return void t(e);const n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}const q=t=>{let{currentTarget:n,scrollLeft:o}=t;var r;const i="rtl"===e.direction,l="number"==typeof o?o:n.scrollLeft,a=n||uZ;if(K()&&K()!==a||(U(a),G(l,S.value),G(l,$.value),G(l,C.value),G(l,null===(r=H.value)||void 0===r?void 0:r.setScrollLeft)),n){const{scrollWidth:e,clientWidth:t}=n;i?(P(-l0)):(P(l>0),M(l{Q.value&&$.value?q({currentTarget:$.value}):(P(!1),M(!1))};let ee;const te=e=>{e!==v.value&&(J(),v.value=w.value?w.value.offsetWidth:e)},ne=e=>{let{width:t}=e;clearTimeout(ee),0!==v.value?ee=setTimeout((()=>{te(t)}),100):te(t)};bn([Q,()=>e.data,()=>e.columns],(()=>{Q.value&&J()}),{flush:"post"});const[oe,re]=Hv(0);Zn((()=>{PY.value=PY.value||WD("position","sticky")})),Zn((()=>{Ft((()=>{var e,t;J(),re(function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:bm(t),height:bm(n)}}($.value).width),x.value={scrollWidth:(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0}}))})),Un((()=>{Ft((()=>{var e,t;const n=(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,o=(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0;x.value.scrollWidth===n&&x.value.clientWidth===o||(x.value={scrollWidth:n,clientWidth:o})}))})),mn((()=>{e.internalHooks===dZ&&e.internalRefs&&e.onUpdateInternalRefs({body:$.value?$.value.$el||$.value:null})}),{flush:"post"});const ie=Lr((()=>e.tableLayout?e.tableLayout:L.value?"max-content"===e.scroll.x?"auto":"fixed":_.value||F.value.isSticky||y.value.some((e=>{let{ellipsis:t}=e;return t}))?"fixed":"auto")),le=()=>{var e;return l.value?null:(null===(e=o.emptyText)||void 0===e?void 0:e.call(o))||"No Data"};(e=>{To(gY,e)})(rt(cl(cl({},Ct(sZ(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:oe,fixedInfoList:Lr((()=>y.value.map(((t,n)=>MY(n,n,y.value,z.value,e.direction))))),isSticky:Lr((()=>F.value.isSticky)),summaryCollect:(e,t)=>{t?W[e]=t:delete W[e]}}))),(e=>{To(NY,e)})(rt(cl(cl({},Ct(sZ(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:b,flattenColumns:y,tableLayout:ie,expandIcon:u,expandableType:p,onTriggerExpand:m}))),(e=>{To(HY,e)})({onColumnResize:(e,t)=>{Uh(w.value)&&E((n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n}))}}),(e=>{To(zY,e)})({componentWidth:v,fixHeader:_,fixColumn:L,horizonScroll:Q});const ae=()=>br(FY,{data:i.value,measureColumnWidth:_.value||Q.value||F.value.isSticky,expandedKeys:g.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:le}),se=()=>br(UY,{colWidths:y.value.map((e=>{let{width:t}=e;return t})),columns:y.value},null);return()=>{var t;const{prefixCls:r,scroll:l,tableLayout:a,direction:c,title:u=o.title,footer:d=o.footer,id:p,showHeader:h,customHeaderRow:f}=e,{isSticky:g,offsetHeader:m,offsetSummary:v,offsetScroll:P,stickyClassName:M,container:I}=F.value,E=s(["table"],"table"),A=s(["body"]),B=null===(t=o.summary)||void 0===t?void 0:t.call(o,{pageData:i.value});let j=()=>null;const N={colWidths:D.value,columCount:y.value.length,stickyOffsets:z.value,customHeaderRow:f,fixHeader:_.value,scroll:l};if(_.value||g){let e=()=>null;"function"==typeof A?(e=()=>A(i.value,{scrollbarSize:oe.value,ref:$,onScroll:q}),N.colWidths=y.value.map(((e,t)=>{let{width:n}=e;const o=t===b.value.length-1?n-oe.value:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):e=()=>br("div",{style:cl(cl({},Y.value),Z.value),onScroll:q,ref:$,class:xl(`${r}-body`)},[br(E,{style:cl(cl({},V.value),{tableLayout:ie.value})},{default:()=>[se(),ae(),!X.value&&B&&br(nZ,{stickyOffsets:z.value,flattenColumns:y.value},{default:()=>[B]})]})]);const t=cl(cl(cl({noData:!i.value.length,maxContentScroll:Q.value&&"max-content"===l.x},N),O.value),{direction:c,stickyClassName:M,onScroll:q});j=()=>br(er,null,[!1!==h&&br(aZ,sl(sl({},t),{},{stickyTopOffset:m,class:`${r}-header`,ref:S}),{default:e=>br(er,null,[br(RY,e,null),"top"===X.value&&br(nZ,e,{default:()=>[B]})])}),e(),X.value&&"top"!==X.value&&br(aZ,sl(sl({},t),{},{stickyBottomOffset:v,class:`${r}-summary`,ref:C}),{default:e=>br(nZ,e,{default:()=>[B]})}),g&&$.value&&br(iZ,{ref:H,offsetScroll:P,scrollBodyRef:$,onScroll:q,container:I,scrollBodySizeInfo:x.value},null)])}else j=()=>br("div",{style:cl(cl({},Y.value),Z.value),class:xl(`${r}-content`),onScroll:q,ref:$},[br(E,{style:cl(cl({},V.value),{tableLayout:ie.value})},{default:()=>[se(),!1!==h&&br(RY,sl(sl({},N),O.value),null),ae(),B&&br(nZ,{stickyOffsets:z.value,flattenColumns:y.value},{default:()=>[B]})]})]);const W=Lm(n,{aria:!0,data:!0}),U=()=>br("div",sl(sl({},W),{},{class:xl(r,{[`${r}-rtl`]:"rtl"===c,[`${r}-ping-left`]:k.value,[`${r}-ping-right`]:T.value,[`${r}-layout-fixed`]:"fixed"===a,[`${r}-fixed-header`]:_.value,[`${r}-fixed-column`]:L.value,[`${r}-scroll-horizontal`]:Q.value,[`${r}-has-fix-left`]:y.value[0]&&y.value[0].fixed,[`${r}-has-fix-right`]:y.value[R.value-1]&&"right"===y.value[R.value-1].fixed,[n.class]:n.class}),style:n.style,id:p,ref:w}),[u&&br(KY,{class:`${r}-title`},{default:()=>[u(i.value)]}),br("div",{class:`${r}-container`},[j()]),d&&br(KY,{class:`${r}-footer`},{default:()=>[d(i.value)]})]);return Q.value?br(ua,{onResize:ne},{default:U}):U()}}}),hZ=10;function fZ(e,t,n){const o=Lr((()=>t.value&&"object"==typeof t.value?t.value:{})),r=Lr((()=>o.value.total||0)),[i,l]=Hv((()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:hZ}))),a=Lr((()=>{const t=function(){const e=cl({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[t];void 0!==o&&(e[t]=o)}))}return e}(i.value,o.value,{total:r.value>0?r.value:e.value}),n=Math.ceil((r.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t})),s=(e,n)=>{!1!==t.value&&l({current:null!=e?e:1,pageSize:n||a.value.pageSize})},c=(e,r)=>{var i,l;t.value&&(null===(l=(i=o.value).onChange)||void 0===l||l.call(i,e,r)),s(e,r),n(e,r||a.value.pageSize)};return[Lr((()=>!1===t.value?{}:cl(cl({},a.value),{onChange:c}))),s]}const gZ={},mZ="SELECT_ALL",vZ="SELECT_INVERT",bZ="SELECT_NONE",yZ=[];function OZ(e,t){let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[...n,...OZ(e,t[e])])})),n}function wZ(e,t){const n=Lr((()=>{const t=e.value||{},{checkStrictly:n=!0}=t;return cl(cl({},t),{checkStrictly:n})})),[o,r]=Lv(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||yZ,{value:Lr((()=>n.value.selectedRowKeys))}),i=yt(new Map),l=e=>{if(n.value.preserveSelectedRowKeys){const n=new Map;e.forEach((e=>{let o=t.getRecordByKey(e);!o&&i.value.has(e)&&(o=i.value.get(e)),n.set(e,o)})),i.value=n}};mn((()=>{l(o.value)}));const a=Lr((()=>n.value.checkStrictly?null:gD(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities)),s=Lr((()=>OZ(t.childrenColumnName.value,t.pageData.value))),c=Lr((()=>{const e=new Map,o=t.getRowKey.value,r=n.value.getCheckboxProps;return s.value.forEach(((t,n)=>{const i=o(t,n),l=(r?r(t):null)||{};e.set(i,l)})),e})),{maxLevel:u,levelEntities:d}=DD(a),p=e=>{var n;return!!(null===(n=c.value.get(t.getRowKey.value(e)))||void 0===n?void 0:n.disabled)},h=Lr((()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=CD(o.value,!0,a.value,u.value,d.value,p);return[e||[],t]})),f=Lr((()=>h.value[0])),g=Lr((()=>h.value[1])),m=Lr((()=>{const e="radio"===n.value.type?f.value.slice(0,1):f.value;return new Set(e)})),v=Lr((()=>"radio"===n.value.type?new Set:new Set(g.value))),[b,y]=Hv(null),O=e=>{let o,a;l(e);const{preserveSelectedRowKeys:s,onChange:c}=n.value,{getRecordByKey:u}=t;s?(o=e,a=e.map((e=>i.value.get(e)))):(o=[],a=[],e.forEach((e=>{const t=u(e);void 0!==t&&(o.push(e),a.push(t))}))),r(o),null==c||c(o,a)},w=(e,o,r,i)=>{const{onSelect:l}=n.value,{getRecordByKey:a}=t||{};if(l){const t=r.map((e=>a(e)));l(a(e),o,t,i)}O(r)},S=Lr((()=>{const{onSelectInvert:e,onSelectNone:o,selections:r,hideSelectAll:i}=n.value,{data:l,pageData:a,getRowKey:s,locale:u}=t;return!r||i?null:(!0===r?[mZ,vZ,bZ]:r).map((t=>t===mZ?{key:"all",text:u.value.selectionAll,onSelect(){O(l.value.map(((e,t)=>s.value(e,t))).filter((e=>{const t=c.value.get(e);return!(null==t?void 0:t.disabled)||m.value.has(e)})))}}:t===vZ?{key:"invert",text:u.value.selectInvert,onSelect(){const t=new Set(m.value);a.value.forEach(((e,n)=>{const o=s.value(e,n),r=c.value.get(o);(null==r?void 0:r.disabled)||(t.has(o)?t.delete(o):t.add(o))}));const n=Array.from(t);e&&(xp(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),O(n)}}:t===bZ?{key:"none",text:u.value.selectNone,onSelect(){null==o||o(),O(Array.from(m.value).filter((e=>{const t=c.value.get(e);return null==t?void 0:t.disabled})))}}:t))})),$=Lr((()=>s.value.length));return[o=>{var r;const{onSelectAll:i,onSelectMultiple:l,columnWidth:h,type:g,fixed:x,renderCell:C,hideSelectAll:k,checkStrictly:P}=n.value,{prefixCls:T,getRecordByKey:M,getRowKey:I,expandType:E,getPopupContainer:A}=t;if(!e.value)return o.filter((e=>e!==gZ));let D=o.slice();const R=new Set(m.value),z=s.value.map(I.value).filter((e=>!c.value.get(e).disabled)),B=z.every((e=>R.has(e))),j=z.some((e=>R.has(e))),N=()=>{const e=[];B?z.forEach((t=>{R.delete(t),e.push(t)})):z.forEach((t=>{R.has(t)||(R.add(t),e.push(t))}));const t=Array.from(R);null==i||i(!B,t.map((e=>M(e))),e.map((e=>M(e)))),O(t)};let _,Q;if("radio"!==g){let e;if(S.value){const t=br(uP,{getPopupContainer:A.value},{default:()=>[S.value.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return br(uP.Item,{key:n||t,onClick:()=>{null==r||r(z)}},{default:()=>[o]})}))]});e=br("div",{class:`${T.value}-selection-extra`},[br(hk,{overlay:t,getPopupContainer:A.value},{default:()=>[br("span",null,[br(jb,null,null)])]})])}const t=s.value.map(((e,t)=>{const n=I.value(e,t),o=c.value.get(n)||{};return cl({checked:R.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===$.value,o=n&&t.every((e=>{let{checked:t}=e;return t})),r=n&&t.some((e=>{let{checked:t}=e;return t}));_=!k&&br("div",{class:`${T.value}-selection`},[br(zz,{checked:n?o:!!$.value&&B,indeterminate:n?!o&&r:!B&&j,onChange:N,disabled:0===$.value||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0},null),e])}if(Q="radio"===g?e=>{let{record:t,index:n}=e;const o=I.value(t,n),r=R.has(o);return{node:br(BM,sl(sl({},c.value.get(o)),{},{checked:r,onClick:e=>e.stopPropagation(),onChange:e=>{R.has(o)||w(o,!0,[o],e.nativeEvent)}}),null),checked:r}}:e=>{let{record:t,index:n}=e;var o;const r=I.value(t,n),i=R.has(r),s=v.value.has(r),h=c.value.get(r);let g;return"nest"===E.value?(g=s,xp("boolean"!=typeof(null==h?void 0:h.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):g=null!==(o=null==h?void 0:h.indeterminate)&&void 0!==o?o:s,{node:br(zz,sl(sl({},h),{},{indeterminate:g,checked:i,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let o=-1,s=-1;if(n&&P){const e=new Set([b.value,r]);z.some(((t,n)=>{if(e.has(t)){if(-1!==o)return s=n,!0;o=n}return!1}))}if(-1!==s&&o!==s&&P){const e=z.slice(o,s+1),t=[];i?e.forEach((e=>{R.has(e)&&(t.push(e),R.delete(e))})):e.forEach((e=>{R.has(e)||(t.push(e),R.add(e))}));const n=Array.from(R);null==l||l(!i,n.map((e=>M(e))),t.map((e=>M(e)))),O(n)}else{const e=f.value;if(P){const n=i?oD(e,r):rD(e,r);w(r,!i,n,t)}else{const n=CD([...e,r],!0,a.value,u.value,d.value,p),{checkedKeys:o,halfCheckedKeys:l}=n;let s=o;if(i){const e=new Set(o);e.delete(r),s=CD(Array.from(e),{checked:!1,halfCheckedKeys:l},a.value,u.value,d.value,p).checkedKeys}w(r,!i,s,t)}}y(r)}}),null),checked:i}},!D.includes(gZ))if(0===D.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[CY])||void 0===t?void 0:t.columnType)}))){const[e,...t]=D;D=[e,gZ,...t]}else D=[gZ,...D];const L=D.indexOf(gZ);D=D.filter(((e,t)=>e!==gZ||t===L));const H=D[L-1],F=D[L+1];let W=x;void 0===W&&(void 0!==(null==F?void 0:F.fixed)?W=F.fixed:void 0!==(null==H?void 0:H.fixed)&&(W=H.fixed)),W&&H&&"EXPAND_COLUMN"===(null===(r=H[CY])||void 0===r?void 0:r.columnType)&&void 0===H.fixed&&(H.fixed=W);const X={fixed:W,width:h,className:`${T.value}-selection-column`,title:n.value.columnTitle||_,customRender:e=>{let{record:t,index:n}=e;const{node:o,checked:r}=Q({record:t,index:n});return C?C(r,t,n,o):o},[CY]:{class:`${T.value}-selection-col`}};return D.map((e=>e===gZ?X:e))},m]}const SZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function $Z(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]),t=[];return e.forEach((e=>{var n,o,r,i;if(!e)return;const l=e.key,a=(null===(n=e.props)||void 0===n?void 0:n.style)||{},s=(null===(o=e.props)||void 0===o?void 0:o.class)||"",c=e.props||{};for(const[t,h]of Object.entries(c))c[ml(t)]=h;const u=e.children||{},{default:d}=u,p=cl(cl(cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const l=DZ(i,n);e.children?("sortOrder"in e&&r(e,l),o=[...o,...QZ(e.children,t,l)]):e.sorter&&("sortOrder"in e?r(e,l):t&&e.defaultSortOrder&&o.push({column:e,key:AZ(e,l),multiplePriority:NZ(e),sortOrder:e.defaultSortOrder}))})),o}function LZ(e,t,n,o,r,i,l,a){return(t||[]).map(((t,s)=>{const c=DZ(s,a);let u=t;if(u.sorter){const a=u.sortDirections||r,s=void 0===u.showSorterTooltip?l:u.showSorterTooltip,d=AZ(u,c),p=n.find((e=>{let{key:t}=e;return t===d})),h=p?p.sortOrder:null,f=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(a,h),g=a.includes(BZ)&&br(EZ,{class:xl(`${e}-column-sorter-up`,{active:h===BZ}),role:"presentation"},null),m=a.includes(jZ)&&br(kZ,{role:"presentation",class:xl(`${e}-column-sorter-down`,{active:h===jZ})},null),{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let O=v;f===jZ?O=y:f===BZ&&(O=b);const w="object"==typeof s?s:{title:O};u=cl(cl({},u),{className:xl(u.className,{[`${e}-column-sort`]:h}),title:n=>{const o=br("div",{class:`${e}-column-sorters`},[br("span",{class:`${e}-column-title`},[RZ(t.title,n)]),br("span",{class:xl(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!g||!m)})},[br("span",{class:`${e}-column-sorter-inner`},[g,m])])]);return s?br(Tx,w,{default:()=>[o]}):o},customHeaderCell:n=>{const r=t.customHeaderCell&&t.customHeaderCell(n)||{},i=r.onClick,l=r.onKeydown;return r.onClick=e=>{o({column:t,key:d,sortOrder:f,multiplePriority:NZ(t)}),i&&i(e)},r.onKeydown=e=>{e.keyCode===Im.ENTER&&(o({column:t,key:d,sortOrder:f,multiplePriority:NZ(t)}),null==l||l(e))},h&&(r["aria-sort"]="ascend"===h?"ascending":"descending"),r.class=xl(r.class,`${e}-column-has-sorters`),r.tabindex=0,r}})}return"children"in u&&(u=cl(cl({},u),{children:LZ(e,u.children,n,o,r,i,l,c)})),u}))}function HZ(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function FZ(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(HZ);return 0===t.length&&e.length?cl(cl({},HZ(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function WZ(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return _Z(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n{const o=e[n];return o?cl(cl({},e),{[n]:WZ(o,t,n)}):e})):r}function XZ(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:i,showSorterTooltip:l}=e;const[a,s]=Hv(QZ(n.value,!0)),c=Lr((()=>{let e=!0;const t=QZ(n.value,!1);if(!t.length)return a.value;const o=[];function r(t){e?o.push(t):o.push(cl(cl({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o})),u=Lr((()=>{const e=c.value.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}));function d(e){let t;t=!1!==e.multiplePriority&&c.value.length&&!1!==c.value[0].multiplePriority?[...c.value.filter((t=>{let{key:n}=t;return n!==e.key})),e]:[e],s(t),o(FZ(t),t)}const p=Lr((()=>FZ(c.value)));return[e=>LZ(t.value,e,c.value,d,r.value,i.value,l.value),c,u,p]}const YZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function ZZ(e){for(var t=1;t{const{keyCode:t}=e;t===Im.ENTER&&e.stopPropagation()},qZ=(e,t)=>{let{slots:n}=t;var o;return br("div",{onClick:e=>e.stopPropagation(),onKeydown:GZ},[null===(o=n.default)||void 0===o?void 0:o.call(n)])},JZ=jn({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:ka(),onChange:$a(),filterSearch:Pa([Boolean,Function]),tablePrefixCls:ka(),locale:wa()},setup:e=>()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:i}=e;return o?br("div",{class:`${r}-filter-dropdown-search`},[br(r_,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>br(sy,null,null)})]):null}});var eV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Kk())),s=(t,n)=>{var o,r,i,s;"appear"===n?null===(r=null===(o=a.value)||void 0===o?void 0:o.onAfterEnter)||void 0===r||r.call(o,t):"leave"===n&&(null===(s=null===(i=a.value)||void 0===i?void 0:i.onAfterLeave)||void 0===s||s.call(i,t)),l.value||e.onMotionEnd(),l.value=!0};return bn((()=>e.motionNodes),(()=>{e.motionNodes&&"hide"===e.motionType&&r.value&&Ft((()=>{r.value=!1}))}),{immediate:!0,flush:"post"}),Zn((()=>{e.motionNodes&&e.onMotionStart()})),Kn((()=>{e.motionNodes&&s()})),()=>{const{motion:t,motionNodes:l,motionType:c,active:u,eventKey:d}=e,p=eV(e,["motion","motionNodes","motionType","active","eventKey"]);return l?br(qr,sl(sl({},a.value),{},{appear:"show"===c,onAfterAppear:e=>s(e,"appear"),onAfterLeave:e=>s(e,"leave")}),{default:()=>[$n(br("div",{class:`${i.value.prefixCls}-treenode-motion`},[l.map((e=>{const t=eV(e.data,[]),{title:n,key:r,isStart:i,isEnd:l}=e;return delete t.children,br(nD,sl(sl({},t),{},{title:n,active:u,data:e.data,key:r,eventKey:r,isStart:i,isEnd:l}),o)}))]),[[gi,r.value]])]}):br(nD,sl(sl({class:n.class,style:n.style},p),{},{active:u,eventKey:d}),o)}}});function nV(e,t,n){const o=e.findIndex((e=>e.key===n)),r=e[o+1],i=t.findIndex((e=>e.key===n));if(r){const e=t.findIndex((e=>e.key===r.key));return t.slice(i+1,e)}return t.slice(i+1)}var oV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},lV=`RC_TREE_MOTION_${Math.random()}`,aV={key:lV},sV={key:lV,level:0,index:0,pos:"0",node:aV,nodes:[aV]},cV={parent:null,children:[],pos:sV.pos,data:aV,title:null,key:lV,isStart:[],isEnd:[]};function uV(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function dV(e){const{key:t,pos:n}=e;return pD(t,n)}function pV(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const hV=jn({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:qA,setup(e,t){let{expose:n,attrs:o}=t;const r=bt(),i=bt(),{expandedKeys:l,flattenNodes:a}=UA();n({scrollTo:e=>{r.value.scrollTo(e)},getIndentWidth:()=>i.value.offsetWidth});const s=yt(a.value),c=yt([]),u=bt(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const p=ZA();bn([()=>l.value.slice(),a],((t,n)=>{let[o,r]=t,[i,l]=n;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){const n=new Map;e.forEach((e=>{n.set(e,!0)}));const o=t.filter((e=>!n.has(e)));return 1===o.length?o[0]:null}return n{let{key:t}=e;return t===a.key})),i=uV(nV(l,r,a.key),t,n,o),d=l.slice();d.splice(e+1,0,cV),s.value=d,c.value=i,u.value="show"}else{const e=r.findIndex((e=>{let{key:t}=e;return t===a.key})),i=uV(nV(r,l,a.key),t,n,o),d=r.slice();d.splice(e+1,0,cV),s.value=d,c.value=i,u.value="hide"}}else l!==r&&(s.value=r)})),bn((()=>p.value.dragging),(e=>{e||d()}));const h=Lr((()=>void 0===e.motion?s.value:a.value)),f=()=>{e.onActiveChange(null)};return()=>{const t=cl(cl({},e),o),{prefixCls:n,selectable:l,checkable:a,disabled:s,motion:p,height:g,itemHeight:m,virtual:v,focusable:b,activeItem:y,focused:O,tabindex:w,onKeydown:S,onFocus:$,onBlur:x,onListChangeStart:C,onListChangeEnd:k}=t,P=oV(t,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return br(er,null,[O&&y&&br("span",{style:rV,"aria-live":"assertive"},[pV(y)]),br("div",null,[br("input",{style:rV,disabled:!1===b||s,tabindex:!1!==b?w:null,onKeydown:S,onFocus:$,onBlur:x,value:"",onChange:iV,"aria-label":"for screen reader"},null)]),br("div",{class:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[br("div",{class:`${n}-indent`},[br("div",{ref:i,class:`${n}-indent-unit`},null)])]),br(Pv,sl(sl({},xd(P,["onActiveChange"])),{},{data:h.value,itemKey:dV,height:g,fullHeight:!1,virtual:v,itemHeight:m,prefixCls:`${n}-list`,ref:r,onVisibleChange:(e,t)=>{const n=new Set(e);t.filter((e=>!n.has(e))).some((e=>dV(e)===lV))&&d()}}),{default:e=>{const{pos:t}=e,n=oV(e.data,[]),{title:o,key:r,isStart:i,isEnd:l}=e,a=pD(r,t);return delete n.key,delete n.children,br(tV,sl(sl({},n),{},{eventKey:a,title:o,active:!!y&&r===y.key,data:e.data,isStart:i,isEnd:l,motion:p,motionNodes:r===lV?c.value:null,motionType:u.value,onMotionStart:C,onMotionEnd:d,onMousemove:f}),null)}})])}}}),fV=jn({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Vl(JA(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=-n*o+"px";break;case 1:r.bottom=0,r.left=-n*o+"px";break;case 0:r.bottom=0,r.left=`${o}`}return br("div",{style:r},null)},allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=yt(!1);let l={};const a=yt(),s=yt([]),c=yt([]),u=yt([]),d=yt([]),p=yt([]),h=yt([]),f={},g=rt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),m=yt([]);bn([()=>e.treeData,()=>e.children],(()=>{m.value=void 0!==e.treeData?dt(e.treeData).slice():fD(dt(e.children))}),{immediate:!0,deep:!0});const v=yt({}),b=yt(!1),y=yt(null),O=yt(!1),w=Lr((()=>hD(e.fieldNames))),S=yt();let $=null,x=null,C=null;const k=Lr((()=>({expandedKeysSet:P.value,selectedKeysSet:T.value,loadedKeysSet:M.value,loadingKeysSet:I.value,checkedKeysSet:E.value,halfCheckedKeysSet:A.value,dragOverNodeKey:g.dragOverNodeKey,dropPosition:g.dropPosition,keyEntities:v.value}))),P=Lr((()=>new Set(h.value))),T=Lr((()=>new Set(s.value))),M=Lr((()=>new Set(d.value))),I=Lr((()=>new Set(p.value))),E=Lr((()=>new Set(c.value))),A=Lr((()=>new Set(u.value)));mn((()=>{if(m.value){const e=gD(m.value,{fieldNames:w.value});v.value=cl({[lV]:sV},e.keyEntities)}}));let D=!1;bn([()=>e.expandedKeys,()=>e.autoExpandParent,v],((t,n)=>{let[o,r]=t,[i,l]=n,a=h.value;if(void 0!==e.expandedKeys||D&&r!==l)a=e.autoExpandParent||!D&&e.defaultExpandParent?dD(e.expandedKeys,v.value):e.expandedKeys;else if(!D&&e.defaultExpandAll){const e=cl({},v.value);delete e[lV],a=Object.keys(e).map((t=>e[t].key))}else!D&&e.defaultExpandedKeys&&(a=e.autoExpandParent||e.defaultExpandParent?dD(e.defaultExpandedKeys,v.value):e.defaultExpandedKeys);a&&(h.value=a),D=!0}),{immediate:!0});const R=yt([]);mn((()=>{R.value=function(e,t,n){const{_title:o,key:r,children:i}=hD(n),l=new Set(!0===t?[]:t),a=[];return function e(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(((c,u)=>{const d=lD(s?s.pos:"0",u),p=pD(c[r],d);let h;for(let e=0;e{e.selectable&&(void 0!==e.selectedKeys?s.value=cD(e.selectedKeys,e):!D&&e.defaultSelectedKeys&&(s.value=cD(e.defaultSelectedKeys,e)))}));const{maxLevel:z,levelEntities:B}=DD(v);mn((()=>{if(e.checkable){let t;if(void 0!==e.checkedKeys?t=uD(e.checkedKeys)||{}:!D&&e.defaultCheckedKeys?t=uD(e.defaultCheckedKeys)||{}:m.value&&(t=uD(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),t){let{checkedKeys:n=[],halfCheckedKeys:o=[]}=t;if(!e.checkStrictly){const e=CD(n,!0,v.value,z.value,B.value);({checkedKeys:n,halfCheckedKeys:o}=e)}c.value=n,u.value=o}}})),mn((()=>{e.loadedKeys&&(d.value=e.loadedKeys)}));const j=()=>{cl(g,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},N=e=>{S.value.scrollTo(e)};bn((()=>e.activeKey),(()=>{void 0!==e.activeKey&&(y.value=e.activeKey)}),{immediate:!0}),bn(y,(e=>{Ft((()=>{null!==e&&N({key:e})}))}),{immediate:!0,flush:"post"});const _=t=>{void 0===e.expandedKeys&&(h.value=t)},Q=()=>{null!==g.draggingNodeKey&&cl(g,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$=null,C=null},L=(t,n)=>{const{onDragend:o}=e;g.dragOverNodeKey=null,Q(),null==o||o({event:t,node:n.eventData}),x=null},H=e=>{L(e,null),window.removeEventListener("dragend",H)},F=(t,n)=>{const{onDragstart:o}=e,{eventKey:r,eventData:i}=n;x=n,$={x:t.clientX,y:t.clientY};const l=oD(h.value,r);g.draggingNodeKey=r,g.dragChildrenKeys=function(e,t){const n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{let{key:o,children:r}=t;n.push(o),e(r)}))}(t[e].children),n}(r,v.value),a.value=S.value.getIndentWidth(),_(l),window.addEventListener("dragend",H),o&&o({event:t,node:i})},W=(t,n)=>{const{onDragenter:o,onExpand:r,allowDrop:i,direction:s}=e,{pos:c,eventKey:u}=n;if(C!==u&&(C=u),!x)return void j();const{dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:O}=sD(t,x,n,a.value,$,i,R.value,v.value,P.value,s);-1===g.dragChildrenKeys.indexOf(f)&&y?(l||(l={}),Object.keys(l).forEach((e=>{clearTimeout(l[e])})),x.eventKey!==n.eventKey&&(l[c]=window.setTimeout((()=>{if(null===g.draggingNodeKey)return;let e=h.value.slice();const o=v.value[n.eventKey];o&&(o.children||[]).length&&(e=rD(h.value,n.eventKey)),_(e),r&&r(e,{node:n.eventData,expanded:!0,nativeEvent:t})}),800)),x.eventKey!==f||0!==p?(cl(g,{dragOverNodeKey:O,dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y}),o&&o({event:t,node:n.eventData,expandedKeys:h.value})):j()):j()},X=(t,n)=>{const{onDragover:o,allowDrop:r,direction:i}=e;if(!x)return;const{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropAllowed:d,dropTargetPos:p,dragOverNodeKey:h}=sD(t,x,n,a.value,$,r,R.value,v.value,P.value,i);-1===g.dragChildrenKeys.indexOf(c)&&d&&(x.eventKey===c&&0===s?null===g.dropPosition&&null===g.dropLevelOffset&&null===g.dropTargetKey&&null===g.dropContainerKey&&null===g.dropTargetPos&&!1===g.dropAllowed&&null===g.dragOverNodeKey||j():l===g.dropPosition&&s===g.dropLevelOffset&&c===g.dropTargetKey&&u===g.dropContainerKey&&p===g.dropTargetPos&&d===g.dropAllowed&&h===g.dragOverNodeKey||cl(g,{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropTargetPos:p,dropAllowed:d,dragOverNodeKey:h}),o&&o({event:t,node:n.eventData}))},Y=(t,n)=>{C!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(j(),C=null);const{onDragleave:o}=e;o&&o({event:t,node:n.eventData})},Z=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r;const{dragChildrenKeys:i,dropPosition:l,dropTargetKey:a,dropTargetPos:s,dropAllowed:c}=g;if(!c)return;const{onDrop:u}=e;if(g.dragOverNodeKey=null,Q(),null===a)return;const d=cl(cl({},mD(a,dt(k.value))),{active:(null===(r=ce.value)||void 0===r?void 0:r.key)===a,data:v.value[a].node});i.indexOf(a);const p=iD(s),h={event:t,node:vD(d),dragNode:x?x.eventData:null,dragNodesKeys:[x.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),x=null},V=(e,t)=>{const{expanded:n,key:o}=t,r=R.value.filter((e=>e.key===o))[0],i=vD(cl(cl({},mD(o,k.value)),{data:r.data}));_(n?oD(h.value,o):rD(h.value,o)),ie(e,i)},U=(t,n)=>{const{onClick:o,expandAction:r}=e;"click"===r&&V(t,n),o&&o(t,n)},K=(t,n)=>{const{onDblclick:o,expandAction:r}=e;"doubleclick"!==r&&"dblclick"!==r||V(t,n),o&&o(t,n)},G=(t,n)=>{let o=s.value;const{onSelect:r,multiple:i}=e,{selected:l}=n,a=n[w.value.key],c=!l;o=c?i?rD(o,a):[a]:oD(o,a);const u=v.value,d=o.map((e=>{const t=u[e];return t?t.node:null})).filter((e=>e));void 0===e.selectedKeys&&(s.value=o),r&&r(o,{event:"select",selected:c,node:n,selectedNodes:d,nativeEvent:t})},q=(t,n,o)=>{const{checkStrictly:r,onCheck:i}=e,l=n[w.value.key];let a;const s={event:"check",node:n,checked:o,nativeEvent:t},d=v.value;if(r){const t=o?rD(c.value,l):oD(c.value,l);a={checked:t,halfChecked:oD(u.value,l)},s.checkedNodes=t.map((e=>d[e])).filter((e=>e)).map((e=>e.node)),void 0===e.checkedKeys&&(c.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=CD([...c.value,l],!0,d,z.value,B.value);if(!o){const e=new Set(t);e.delete(l),({checkedKeys:t,halfCheckedKeys:n}=CD(Array.from(e),{checked:!1,halfCheckedKeys:n},d,z.value,B.value))}a=t,s.checkedNodes=[],s.checkedNodesPositions=[],s.halfCheckedKeys=n,t.forEach((e=>{const t=d[e];if(!t)return;const{node:n,pos:o}=t;s.checkedNodes.push(n),s.checkedNodesPositions.push({node:n,pos:o})})),void 0===e.checkedKeys&&(c.value=t,u.value=n)}i&&i(a,s)},J=t=>{const n=t[w.value.key],o=new Promise(((o,r)=>{const{loadData:i,onLoad:l}=e;if(!i||M.value.has(n)||I.value.has(n))return null;i(t).then((()=>{const r=rD(d.value,n),i=oD(p.value,n);l&&l(r,{event:"load",node:t}),void 0===e.loadedKeys&&(d.value=r),p.value=i,o()})).catch((t=>{const i=oD(p.value,n);if(p.value=i,f[n]=(f[n]||0)+1,f[n]>=10){const t=rD(d.value,n);void 0===e.loadedKeys&&(d.value=t),o()}r(t)})),p.value=rD(p.value,n)}));return o.catch((()=>{})),o},ee=(t,n)=>{const{onMouseenter:o}=e;o&&o({event:t,node:n})},te=(t,n)=>{const{onMouseleave:o}=e;o&&o({event:t,node:n})},ne=(t,n)=>{const{onRightClick:o}=e;o&&(t.preventDefault(),o({event:t,node:n}))},oe=t=>{const{onFocus:n}=e;b.value=!0,n&&n(t)},re=t=>{const{onBlur:n}=e;b.value=!1,se(null),n&&n(t)},ie=(t,n)=>{let o=h.value;const{onExpand:r,loadData:i}=e,{expanded:l}=n,a=n[w.value.key];if(O.value)return;o.indexOf(a);const s=!l;if(o=s?rD(o,a):oD(o,a),_(o),r&&r(o,{node:n,expanded:s,nativeEvent:t}),s&&i){const e=J(n);e&&e.then((()=>{})).catch((e=>{const t=oD(h.value,a);_(t),Promise.reject(e)}))}},le=()=>{O.value=!0},ae=()=>{setTimeout((()=>{O.value=!1}))},se=t=>{const{onActiveChange:n}=e;y.value!==t&&(void 0!==e.activeKey&&(y.value=t),null!==t&&N({key:t}),n&&n(t))},ce=Lr((()=>null===y.value?null:R.value.find((e=>{let{key:t}=e;return t===y.value}))||null)),ue=e=>{let t=R.value.findIndex((e=>{let{key:t}=e;return t===y.value}));-1===t&&e<0&&(t=R.value.length),t=(t+e+R.value.length)%R.value.length;const n=R.value[t];if(n){const{key:e}=n;se(e)}else se(null)},de=Lr((()=>vD(cl(cl({},mD(y.value,k.value)),{data:ce.value.data,active:!0})))),pe=t=>{const{onKeydown:n,checkable:o,selectable:r}=e;switch(t.which){case Im.UP:ue(-1),t.preventDefault();break;case Im.DOWN:ue(1),t.preventDefault()}const i=ce.value;if(i&&i.data){const e=!1===i.data.isLeaf||!!(i.data.children||[]).length,n=de.value;switch(t.which){case Im.LEFT:e&&P.value.has(y.value)?ie({},n):i.parent&&se(i.parent.key),t.preventDefault();break;case Im.RIGHT:e&&!P.value.has(y.value)?ie({},n):i.children&&i.children.length&&se(i.children[0].key),t.preventDefault();break;case Im.ENTER:case Im.SPACE:!o||n.disabled||!1===n.checkable||n.disableCheckbox?o||!r||n.disabled||!1===n.selectable||G({},n):q({},n,!E.value.has(y.value))}}n&&n(t)};return r({onNodeExpand:ie,scrollTo:N,onKeydown:pe,selectedKeys:Lr((()=>s.value)),checkedKeys:Lr((()=>c.value)),halfCheckedKeys:Lr((()=>u.value)),loadedKeys:Lr((()=>d.value)),loadingKeys:Lr((()=>p.value)),expandedKeys:Lr((()=>h.value))}),Gn((()=>{window.removeEventListener("dragend",H),i.value=!0})),To(VA,{expandedKeys:h,selectedKeys:s,loadedKeys:d,loadingKeys:p,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:P,selectedKeysSet:T,loadedKeysSet:M,loadingKeysSet:I,checkedKeysSet:E,halfCheckedKeysSet:A,flattenNodes:R}),()=>{const{draggingNodeKey:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c}=g,{prefixCls:u,showLine:d,focusable:p,tabindex:h=0,selectable:f,showIcon:m,icon:O=o.icon,switcherIcon:w,draggable:$,checkable:x,checkStrictly:C,disabled:k,motion:P,loadData:T,filterTreeNode:M,height:I,itemHeight:E,virtual:A,dropIndicatorRender:D,onContextmenu:R,onScroll:z,direction:B,rootClassName:j,rootStyle:N}=e,{class:_,style:Q}=n,H=Lm(cl(cl({},e),n),{aria:!0,data:!0});let V;return V=!!$&&("object"==typeof $?$:"function"==typeof $?{nodeDraggable:$}:{}),br(YA,{value:{prefixCls:u,selectable:f,showIcon:m,icon:O,switcherIcon:w,draggable:V,draggingNodeKey:t,checkable:x,customCheckable:o.checkable,checkStrictly:C,disabled:k,keyEntities:v.value,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c,dragging:null!==t,indent:a.value,direction:B,dropIndicatorRender:D,loadData:T,filterTreeNode:M,onNodeClick:U,onNodeDoubleClick:K,onNodeExpand:ie,onNodeSelect:G,onNodeCheck:q,onNodeLoad:J,onNodeMouseEnter:ee,onNodeMouseLeave:te,onNodeContextMenu:ne,onNodeDragStart:F,onNodeDragEnter:W,onNodeDragOver:X,onNodeDragLeave:Y,onNodeDragEnd:L,onNodeDrop:Z,slots:o}},{default:()=>[br("div",{role:"tree",class:xl(u,_,j,{[`${u}-show-line`]:d,[`${u}-focused`]:b.value,[`${u}-active-focused`]:null!==y.value}),style:N},[br(hV,sl({ref:S,prefixCls:u,style:Q,disabled:k,selectable:f,checkable:!!x,motion:P,height:I,itemHeight:E,virtual:A,focusable:p,focused:b.value,tabindex:h,activeItem:ce.value,onFocus:oe,onBlur:re,onKeydown:pe,onActiveChange:se,onListChangeStart:le,onListChangeEnd:ae,onContextmenu:R,onScroll:z},H),null)])]})}}}),gV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function mV(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),_V=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),QV=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,l=(i-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:cl(cl({},Xu(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:cl({},Vu(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:jV,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:cl({},Vu(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:cl(cl({},NV(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:cl({lineHeight:`${i}px`,userSelect:"none"},_V(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},LV=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},HV=(e,t)=>{const n=`.${e}`,o=Ju(t,{treeCls:n,treeNodeCls:`${n}-treenode`,treeNodePadding:t.paddingXS/2,treeTitleHeight:t.controlHeightSM});return[QV(e,o),LV(o)]},FV=Ku("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:kz(`${n}-checkbox`,e)},HV(n,e),IS(e)]})),WV=()=>{const e=JA();return cl(cl({},e),{showLine:Pa([Boolean,Object]),multiple:Sa(),autoExpandParent:Sa(),checkStrictly:Sa(),checkable:Sa(),disabled:Sa(),defaultExpandAll:Sa(),defaultExpandParent:Sa(),defaultExpandedKeys:Ca(),expandedKeys:Ca(),checkedKeys:Pa([Array,Object]),defaultCheckedKeys:Ca(),selectedKeys:Ca(),defaultSelectedKeys:Ca(),selectable:Sa(),loadedKeys:Ca(),draggable:Sa(),showIcon:Sa(),icon:$a(),switcherIcon:$p.any,prefixCls:String,replaceFields:wa(),blockNode:Sa(),openAnimation:$p.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":$a(),"onUpdate:checkedKeys":$a(),"onUpdate:expandedKeys":$a()})},XV=jn({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Vl(WV(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:i}=t;void 0===e.treeData&&i.default;const{prefixCls:l,direction:a,virtual:s}=$d("tree",e),[c,u]=FV(l),d=bt();o({treeRef:d,onNodeExpand:function(){var e;null===(e=d.value)||void 0===e||e.onNodeExpand(...arguments)},scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))}),mn((()=>{xp(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));const p=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},h=(e,t)=>{r("update:expandedKeys",e),r("expand",e,t)},f=(e,t)=>{r("update:selectedKeys",e),r("select",e,t)};return()=>{const{showIcon:t,showLine:o,switcherIcon:r=i.switcherIcon,icon:g=i.icon,blockNode:m,checkable:v,selectable:b,fieldNames:y=e.replaceFields,motion:O=e.openAnimation,itemHeight:w=28,onDoubleclick:S,onDblclick:$}=e,x=cl(cl(cl({},n),xd(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(o),dropIndicatorRender:BV,fieldNames:y,icon:g,itemHeight:w}),C=i.default?la(i.default()):void 0;return c(br(fV,sl(sl({},x),{},{virtual:s.value,motion:O,ref:d,prefixCls:l.value,class:xl({[`${l.value}-icon-hide`]:!t,[`${l.value}-block-node`]:m,[`${l.value}-unselectable`]:!b,[`${l.value}-rtl`]:"rtl"===a.value},n.class,u.value),direction:a.value,checkable:v,selectable:b,switcherIcon:e=>zV(l.value,r,e,i.leafIcon,o),onCheck:p,onExpand:h,onSelect:f,onDblclick:$||S,children:C}),cl(cl({},i),{checkable:()=>br("span",{class:`${l.value}-checkbox-inner`},null)})))}}}),YV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function ZV(e){for(var t=1;t{if(a===nU.End)return!1;if(function(e){return e===o||e===r}(e)){if(l.push(e),a===nU.None)a=nU.Start;else if(a===nU.Start)return a=nU.End,!1}else a===nU.Start&&l.push(e);return n.includes(e)})),l):[]}function lU(e,t,n){const o=[...t],r=[];return rU(e,n,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length})),r}function aU(e){const{isLeaf:t,expanded:n}=e;return br(t?yV:n?KV:tU,null,null)}(oU=nU||(nU={}))[oU.None=0]="None",oU[oU.Start=1]="Start",oU[oU.End=2]="End";const sU=jn({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Vl(cl(cl({},WV()),{expandAction:Pa([Boolean,String])}),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;var l;const a=bt(e.treeData||fD(la(null===(l=o.default)||void 0===l?void 0:l.call(o))));bn((()=>e.treeData),(()=>{a.value=e.treeData})),Un((()=>{Ft((()=>{var t;void 0===e.treeData&&o.default&&(a.value=fD(la(null===(t=o.default)||void 0===t?void 0:t.call(o))))}))}));const s=bt(),c=bt(),u=Lr((()=>hD(e.fieldNames))),d=bt();i({scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))});const p=bt(e.selectedKeys||e.defaultSelectedKeys||[]),h=bt((()=>{const{keyEntities:t}=gD(a.value,{fieldNames:u.value});let n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?dD(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n})());bn((()=>e.selectedKeys),(()=>{void 0!==e.selectedKeys&&(p.value=e.selectedKeys)}),{immediate:!0}),bn((()=>e.expandedKeys),(()=>{void 0!==e.expandedKeys&&(h.value=e.expandedKeys)}),{immediate:!0});const f=vw(((e,t)=>{const{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||d.value.onNodeExpand(e,t)}),200,{leading:!0}),g=(t,n)=>{void 0===e.expandedKeys&&(h.value=t),r("update:expandedKeys",t),r("expand",t,n)},m=(t,n)=>{const{expandAction:o}=e;"click"===o&&f(t,n),r("click",t,n)},v=(t,n)=>{const{expandAction:o}=e;"dblclick"!==o&&"doubleclick"!==o||f(t,n),r("doubleclick",t,n),r("dblclick",t,n)},b=(t,n)=>{const{multiple:o}=e,{node:i,nativeEvent:l}=n,d=i[u.value.key],f=cl(cl({},n),{selected:!0}),g=(null==l?void 0:l.ctrlKey)||(null==l?void 0:l.metaKey),m=null==l?void 0:l.shiftKey;let v;o&&g?(v=t,s.value=d,c.value=v,f.selectedNodes=lU(a.value,v,u.value)):o&&m?(v=Array.from(new Set([...c.value||[],...iU({treeData:a.value,expandedKeys:h.value,startKey:d,endKey:s.value,fieldNames:u.value})])),f.selectedNodes=lU(a.value,v,u.value)):(v=[d],s.value=d,c.value=v,f.selectedNodes=lU(a.value,v,u.value)),r("update:selectedKeys",v),r("select",v,f),void 0===e.selectedKeys&&(p.value=v)},y=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},{prefixCls:O,direction:w}=$d("tree",e);return()=>{const t=xl(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:"rtl"===w.value},n.class),{icon:r=o.icon,blockNode:i=!0}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(e.component(XV.name,XV),e.component(cU.name,cU),e.component(sU.name,sU),e)});function dU(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=new Set;return function e(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const l=o.has(t);if(Ps(!l,"Warning: There may be circular references"),l)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);const a=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;ne(t[n],r[n],a)))}return!1}(e,t)}const{SubMenu:pU,Item:hU}=uP;function fU(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function gU(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l}=e;return t.map(((e,t)=>{const a=String(e.value);if(e.children)return br(pU,{key:a||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[gU({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l})]});const s=r?zz:BM,c=br(hU,{key:void 0!==e.value?a:t},{default:()=>[br(s,{checked:o.includes(a)},null),br("span",null,[e.text])]});return i.trim()?"function"==typeof l?l(i,e)?c:void 0:fU(i,e.text)?c:void 0:c}))}const mU=jn({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=$Y(),r=Lr((()=>{var t;return null!==(t=e.filterMode)&&void 0!==t?t:"menu"})),i=Lr((()=>{var t;return null!==(t=e.filterSearch)&&void 0!==t&&t})),l=Lr((()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible)),a=Lr((()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange)),s=yt(!1),c=Lr((()=>{var t;return!(!e.filterState||!(null===(t=e.filterState.filteredKeys)||void 0===t?void 0:t.length)&&!e.filterState.forceFiltered)})),u=Lr((()=>{var t;return yU(null===(t=e.column)||void 0===t?void 0:t.filters)})),d=Lr((()=>{const{filterDropdown:t,slots:n={},customFilterDropdown:r}=e.column;return t||n.filterDropdown&&o.value[n.filterDropdown]||r&&o.value.customFilterDropdown})),p=Lr((()=>{const{filterIcon:t,slots:n={}}=e.column;return t||n.filterIcon&&o.value[n.filterIcon]||o.value.customFilterIcon})),h=e=>{var t;s.value=e,null===(t=a.value)||void 0===t||t.call(a,e)},f=Lr((()=>"boolean"==typeof l.value?l.value:s.value)),g=Lr((()=>{var t;return null===(t=e.filterState)||void 0===t?void 0:t.filteredKeys})),m=yt([]),v=e=>{let{selectedKeys:t}=e;m.value=t},b=(t,n)=>{let{node:o,checked:r}=n;e.filterMultiple?v({selectedKeys:t}):v({selectedKeys:r&&o.key?[o.key]:[]})};bn(g,(()=>{s.value&&v({selectedKeys:g.value||[]})}),{immediate:!0});const y=yt([]),O=yt(),w=e=>{O.value=setTimeout((()=>{y.value=e}))},S=()=>{clearTimeout(O.value)};Kn((()=>{clearTimeout(O.value)}));const $=yt(""),x=e=>{const{value:t}=e.target;$.value=t};bn(s,(()=>{s.value||($.value="")}));const C=t=>{const{column:n,columnKey:o,filterState:r}=e,i=t&&t.length?t:null;return null!==i||r&&r.filteredKeys?dU(i,null==r?void 0:r.filteredKeys,!0)?null:void e.triggerFilter({column:n,key:o,filteredKeys:i}):null},k=()=>{h(!1),C(m.value)},P=function(){let{confirm:t,closeDropdown:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};t&&C([]),n&&h(!1),$.value="",e.column.filterResetToDefaultFilteredValue?m.value=(e.column.defaultFilteredValue||[]).map((e=>String(e))):m.value=[]},T=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&h(!1),C(m.value)},M=e=>{e&&void 0!==g.value&&(m.value=g.value||[]),h(e),e||d.value||k()},{direction:I}=$d("",e),E=e=>{if(e.target.checked){const e=u.value;m.value=e}else m.value=[]},A=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:t};return e.children&&(o.children=A({filters:e.children})),o}))},D=e=>{var t;return cl(cl({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>D(e))))||[]})},R=Lr((()=>A({filters:e.column.filters}))),z=Lr((()=>{return xl({[`${e.dropdownPrefixCls}-menu-without-submenu`]:(t=e.column.filters||[],!t.some((e=>{let{children:t}=e;return t&&t.length>0})))});var t})),B=()=>{const t=m.value,{column:n,locale:o,tablePrefixCls:l,filterMultiple:a,dropdownPrefixCls:s,getPopupContainer:c,prefixCls:d}=e;return 0===(n.filters||[]).length?br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE,description:o.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===r.value?br(er,null,[br(JZ,{filterSearch:i.value,value:$.value,onChange:x,tablePrefixCls:l,locale:o},null),br("div",{class:`${l}-filter-dropdown-tree`},[a?br(zz,{class:`${l}-filter-dropdown-checkall`,onChange:E,checked:t.length===u.value.length,indeterminate:t.length>0&&t.length[o.filterCheckall]}):null,br(uU,{checkable:!0,selectable:!1,blockNode:!0,multiple:a,checkStrictly:!a,class:`${s}-menu`,onCheck:b,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:$.value.trim()?e=>"function"==typeof i.value?i.value($.value,D(e)):fU($.value,e.title):void 0},null)])]):br(er,null,[br(JZ,{filterSearch:i.value,value:$.value,onChange:x,tablePrefixCls:l,locale:o},null),br(uP,{multiple:a,prefixCls:`${s}-menu`,class:z.value,onClick:S,onSelect:v,onDeselect:v,selectedKeys:t,getPopupContainer:c,openKeys:y.value,onOpenChange:w},{default:()=>gU({filters:n.filters||[],filterSearch:i.value,prefixCls:d,filteredKeys:m.value,filterMultiple:a,searchValue:$.value})})])},j=Lr((()=>{const t=m.value;return e.column.filterResetToDefaultFilteredValue?dU((e.column.defaultFilteredValue||[]).map((e=>String(e))),t,!0):0===t.length}));return()=>{var t;const{tablePrefixCls:o,prefixCls:r,column:i,dropdownPrefixCls:l,locale:a,getPopupContainer:s}=e;let u;u="function"==typeof d.value?d.value({prefixCls:`${l}-custom`,setSelectedKeys:e=>v({selectedKeys:e}),selectedKeys:m.value,confirm:T,clearFilters:P,filters:i.filters,visible:f.value,column:i.__originColumn__,close:()=>{h(!1)}}):d.value?d.value:br(er,null,[B(),br("div",{class:`${r}-dropdown-btns`},[br(WC,{type:"link",size:"small",disabled:j.value,onClick:()=>P()},{default:()=>[a.filterReset]}),br(WC,{type:"primary",size:"small",onClick:k},{default:()=>[a.filterConfirm]})])]);const g=br(qZ,{class:`${r}-dropdown`},{default:()=>[u]});let b;return b="function"==typeof p.value?p.value({filtered:c.value,column:i.__originColumn__}):p.value?p.value:br(KZ,null,null),br("div",{class:`${r}-column`},[br("span",{class:`${o}-column-title`},[null===(t=n.default)||void 0===t?void 0:t.call(n)]),br(hk,{overlay:g,trigger:["click"],open:f.value,onOpenChange:M,getPopupContainer:s,placement:"rtl"===I.value?"bottomLeft":"bottomRight"},{default:()=>[br("span",{role:"button",tabindex:-1,class:xl(`${r}-trigger`,{active:c.value}),onClick:e=>{e.stopPropagation()}},[b])]})])}}});function vU(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var i,l;const a=DZ(r,n),s=e.filterDropdown||(null===(i=null==e?void 0:e.slots)||void 0===i?void 0:i.filterDropdown)||e.customFilterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!==(l=null==t?void 0:t.map(String))&&void 0!==l?l:t),o.push({column:e,key:AZ(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:AZ(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[...o,...vU(e.children,t,a)])})),o}function bU(e,t,n,o,r,i,l,a){return n.map(((n,s)=>{var c;const u=DZ(s,a),{filterMultiple:d=!0,filterMode:p,filterSearch:h}=n;let f=n;const g=n.filterDropdown||(null===(c=null==n?void 0:n.slots)||void 0===c?void 0:c.filterDropdown)||n.customFilterDropdown;if(f.filters||g){const a=AZ(f,u),s=o.find((e=>{let{key:t}=e;return a===t}));f=cl(cl({},f),{title:o=>br(mU,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:f,columnKey:a,filterState:s,filterMultiple:d,filterMode:p,filterSearch:h,triggerFilter:i,locale:r,getPopupContainer:l},{default:()=>[RZ(n.title,o)]})})}return"children"in f&&(f=cl(cl({},f),{children:bU(e,t,f.children,o,r,i,l,u)})),f}))}function yU(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[...t,...yU(o)])})),t}function OU(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;var i;const l=r.filterDropdown||(null===(i=null==r?void 0:r.slots)||void 0===i?void 0:i.filterDropdown)||r.customFilterDropdown,{filters:a}=r;if(l)t[n]=o||null;else if(Array.isArray(o)){const e=yU(a);t[n]=e.filter((e=>o.includes(String(e))))}else t[n]=null})),t}function wU(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:o},filteredKeys:r}=t;return n&&r&&r.length?e.filter((e=>r.some((t=>{const r=yU(o),i=r.findIndex((e=>String(e)===String(t))),l=-1!==i?r[i]:t;return n(l,e)})))):e}),e)}function SU(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:i,getPopupContainer:l}=e;const[a,s]=Hv(vU(o.value,!0)),c=Lr((()=>{const e=vU(o.value,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(o.value||[]).map(((e,t)=>AZ(e,DZ(t))));return a.value.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=o.value[e.findIndex((e=>e===t.key))];return cl(cl({},t),{column:cl(cl({},t.column),n),forceFiltered:n.filtered})}))}return xp(n,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),e})),u=Lr((()=>OU(c.value))),d=e=>{const t=c.value.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),s(t),i(OU(t),t)};return[e=>bU(t.value,n.value,e,c.value,r.value,d,l.value),c,u]}function $U(e,t){return e.map((e=>{const n=cl({},e);return n.title=RZ(n.title,t),"children"in n&&(n.children=$U(n.children,t)),n}))}function xU(e){return[t=>$U(t,e.value)]}function CU(e){return function(t){let{prefixCls:n,onExpand:o,record:r,expanded:i,expandable:l}=t;const a=`${n}-row-expand-icon`;return br("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},class:xl(a,{[`${a}-spaced`]:!l,[`${a}-expanded`]:l&&i,[`${a}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function kU(e,t){const n=t.value;return e.map((e=>{var o;if(e===gZ||e===WY)return e;const r=cl({},e),{slots:i={}}=r;return r.__originColumn__=e,xp(!("slots"in r),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach((e=>{const t=i[e];void 0===r[e]&&n[t]&&(r[e]=n[t])})),t.value.headerCell&&!(null===(o=e.slots)||void 0===o?void 0:o.title)&&(r.title=oo(t.value,"headerCell",{title:e.title,column:e},(()=>[e.title]))),"children"in r&&Array.isArray(r.children)&&(r.children=kU(r.children,t)),r}))}function PU(e){return[t=>kU(t,e)]}const TU=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(n,o,r)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${o}px -${r+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:cl(cl(cl({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`\n > ${t}-content,\n > ${t}-header\n `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},MU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:cl(cl({},Wu),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},IU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},EU=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:l,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:h,lineHeight:f,tablePaddingVertical:g,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:b}=e,y=o/2-i,O=2*y+3*i,w=`${i}px ${a} ${s}`,S=b-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:cl(cl({},Lu(e)),{position:"relative",float:"left",boxSizing:"border-box",width:O,height:O,padding:0,color:"inherit",lineHeight:`${O}px`,background:c,border:w,borderRadius:d,transform:`scale(${o/O})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:i},"&::after":{top:S,bottom:S,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*f-3*i)/2-Math.ceil((1.4*h-3*i)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${m}px`,padding:`${g}px ${m}px`}}}},AU=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:h,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:O,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:$,controlItemBgActive:x,boxShadowSecondary:C}=e,k=`${n}-dropdown`,P=`${t}-filter-dropdown`,T=`${n}-tree`,M=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-l,marginInline:`${l}px ${-f/2}px`,padding:`0 ${l}px`,color:p,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:cl(cl({},Xu(e)),{minWidth:r,backgroundColor:w,borderRadius:g,boxShadow:C,[`${k}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:O,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[T]:{padding:0},[`${T}-treenode ${T}-node-content-wrapper:hover`]:{backgroundColor:$},[`${T}-treenode-checkbox-checked ${T}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:x}}},[`${P}-search`]:{padding:a,borderBottom:M,"&-input":{input:{minWidth:i},[o]:{color:O}}},[`${P}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:M}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},DU=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:a}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:l},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${o}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${o}`}}}}},RU=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},zU=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},BU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},jU=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:i,tableHeaderIconColor:l,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*i},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},NU=e=>{const{componentCls:t}=e,n=(n,o,r,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${o}px ${r}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${r}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`}},[`${t}-selection-column`]:{paddingInlineStart:r/4+"px"}}});return{[`${t}-wrapper`]:cl(cl({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},_U=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},QU=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},LU=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:l,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:a,display:"flex",alignItems:"center",background:l,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},HU=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},FU=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:i,lineType:l,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:f,tableRowHoverBg:g,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:O}=e,w=`${i}px ${l} ${a}`;return{[`${t}-wrapper`]:cl(cl({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:cl(cl({},Xu(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${O}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:h,borderBottom:w,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:w,borderBottom:"transparent"},"&:last-child > td":{borderBottom:w},[`&:first-child > td,\n &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:w}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${p}, border-color ${p}`,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`\n &${t}-row:hover > td,\n > td${t}-cell-row-hover\n `]:{background:g},[`&${t}-row-selected`]:{"> td":{background:m},"&:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:b,background:y}})}},WU=Ku("Table",(e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:l,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:p,colorIcon:h,colorIconHover:f,opacityLoading:g,colorBgContainer:m,borderRadiusLG:v,colorFillContent:b,colorFillSecondary:y,controlInteractiveSize:O}=e,w=new mu(h),S=new mu(f),$=t,x=new mu(y).onBackground(m).toHexString(),C=new mu(b).onBackground(m).toHexString(),k=new mu(p).onBackground(m).toHexString(),P=Ju(e,{tableFontSize:a,tableBg:m,tableRadius:v,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:k,tableFooterTextColor:r,tableFooterBg:k,tableHeaderCellSplitColor:l,tableHeaderSortBg:x,tableHeaderSortHoverBg:C,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*g).toRgbString(),tableBodySortBg:k,tableFixedHeaderSortActiveBg:x,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:m,tableRowHoverBg:k,tableSelectedRowBg:$,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:m,tableExpandColumnWidth:O+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[FU(P),RU(P),HU(P),QU(P),AU(P),TU(P),zU(P),EU(P),HU(P),IU(P),jU(P),DU(P),LU(P),MU(P),NU(P),_U(P),BU(P)]})),XU=[],YU=()=>({prefixCls:ka(),columns:Ca(),rowKey:Pa([String,Function]),tableLayout:ka(),rowClassName:Pa([String,Function]),title:$a(),footer:$a(),id:ka(),showHeader:Sa(),components:wa(),customRow:$a(),customHeaderRow:$a(),direction:ka(),expandFixed:Pa([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Ca(),defaultExpandedRowKeys:Ca(),expandedRowRender:$a(),expandRowByClick:Sa(),expandIcon:$a(),onExpand:$a(),onExpandedRowsChange:$a(),"onUpdate:expandedRowKeys":$a(),defaultExpandAllRows:Sa(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Sa(),expandedRowClassName:$a(),childrenColumnName:ka(),rowExpandable:$a(),sticky:Pa([Boolean,Object]),dropdownPrefixCls:String,dataSource:Ca(),pagination:Pa([Boolean,Object]),loading:Pa([Boolean,Object]),size:ka(),bordered:Sa(),locale:wa(),onChange:$a(),onResizeColumn:$a(),rowSelection:wa(),getPopupContainer:$a(),scroll:wa(),sortDirections:Ca(),showSorterTooltip:Pa([Boolean,Object],!0),transformCellText:$a()}),ZU=jn({name:"InternalTable",inheritAttrs:!1,props:Vl(cl(cl({},YU()),{contextSlots:wa()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;xp(!("function"==typeof e.rowKey&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),(e=>{To(SY,e)})(Lr((()=>e.contextSlots))),(e=>{To(xY,e)})({onResizeColumn:(e,t)=>{i("resizeColumn",e,t)}});const l=ex(),a=Lr((()=>{const t=new Set(Object.keys(l.value).filter((e=>l.value[e])));return e.columns.filter((e=>!e.responsive||e.responsive.some((e=>t.has(e)))))})),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:p}=$d("table",e),[h,f]=WU(d),g=Lr((()=>{var t;return e.transformCellText||(null===(t=p.transformCellText)||void 0===t?void 0:t.value)})),[m]=qa("Table",Ka.Table,Tt(e,"locale")),v=Lr((()=>e.dataSource||XU)),b=Lr((()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls))),y=Lr((()=>e.childrenColumnName||"children")),O=Lr((()=>v.value.some((e=>null==e?void 0:e[y.value]))?"nest":e.expandedRowRender?"row":null)),w=rt({body:null}),S=e=>{cl(w,e)},$=Lr((()=>"function"==typeof e.rowKey?e.rowKey:t=>null==t?void 0:t[e.rowKey])),[x]=function(e,t,n){const o=yt({});return bn([e,t,n],(()=>{const r=new Map,i=n.value,l=t.value;!function e(t){t.forEach(((t,n)=>{const o=i(t,n);r.set(o,t),t&&"object"==typeof t&&l in t&&e(t[l]||[])}))}(e.value),o.value={kvMap:r}}),{deep:!0,immediate:!0}),[function(e){return o.value.kvMap.get(e)}]}(v,y,$),C={},k=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pagination:r,scroll:i,onChange:l}=e,a=cl(cl({},C),t);o&&(C.resetPagination(),a.pagination.current&&(a.pagination.current=1),r&&r.onChange&&r.onChange(1,a.pagination.pageSize)),i&&!1!==i.scrollToFirstRowOnChange&&w.body&&Qd(0,{getContainer:()=>w.body}),null==l||l(a.pagination,a.filters,a.sorter,{currentDataSource:wU(WZ(v.value,a.sorterStates,y.value),a.filterStates),action:n})},[P,T,M,I]=XZ({prefixCls:d,mergedColumns:a,onSorterChange:(e,t)=>{k({sorter:e,sorterStates:t},"sort",!1)},sortDirections:Lr((()=>e.sortDirections||["ascend","descend"])),tableLocale:m,showSorterTooltip:Tt(e,"showSorterTooltip")}),E=Lr((()=>WZ(v.value,T.value,y.value))),[A,D,R]=SU({prefixCls:d,locale:m,dropdownPrefixCls:b,mergedColumns:a,onFilterChange:(e,t)=>{k({filters:e,filterStates:t},"filter",!0)},getPopupContainer:Tt(e,"getPopupContainer")}),z=Lr((()=>wU(E.value,D.value))),[B]=PU(Tt(e,"contextSlots")),j=Lr((()=>{const e={},t=R.value;return Object.keys(t).forEach((n=>{null!==t[n]&&(e[n]=t[n])})),cl(cl({},M.value),{filters:e})})),[N]=xU(j),[_,Q]=fZ(Lr((()=>z.value.length)),Tt(e,"pagination"),((e,t)=>{k({pagination:cl(cl({},C.pagination),{current:e,pageSize:t})},"paginate")}));mn((()=>{C.sorter=I.value,C.sorterStates=T.value,C.filters=R.value,C.filterStates=D.value,C.pagination=!1===e.pagination?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(_.value,e.pagination),C.resetPagination=Q}));const L=Lr((()=>{if(!1===e.pagination||!_.value.pageSize)return z.value;const{current:t=1,total:n,pageSize:o=hZ}=_.value;return xp(t>0,"Table","`current` should be positive number."),z.value.lengtho?z.value.slice((t-1)*o,t*o):z.value:z.value.slice((t-1)*o,t*o)}));mn((()=>{Ft((()=>{const{total:e,pageSize:t=hZ}=_.value;z.value.lengtht&&xp(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")}))}),{flush:"post"});const H=Lr((()=>!1===e.showExpandColumn?-1:"nest"===O.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex)),F=bt();bn((()=>e.rowSelection),(()=>{F.value=e.rowSelection?cl({},e.rowSelection):e.rowSelection}),{deep:!0,immediate:!0});const[W,X]=wZ(F,{prefixCls:d,data:z,pageData:L,getRowKey:$,getRecordByKey:x,expandType:O,childrenColumnName:y,locale:m,getPopupContainer:Lr((()=>e.getPopupContainer))}),Y=(t,n,o)=>{let r;const{rowClassName:i}=e;return r=xl("function"==typeof i?i(t,n,o):i),xl({[`${d.value}-row-selected`]:X.value.has($.value(t,n))},r)};r({selectedKeySet:X});const Z=Lr((()=>"number"==typeof e.indentSize?e.indentSize:15)),V=e=>N(W(A(P(B(e)))));return()=>{var t;const{expandIcon:r=o.expandIcon||CU(m.value),pagination:i,loading:l,bordered:p}=e;let b,y,O;if(!1!==i&&(null===(t=_.value)||void 0===t?void 0:t.total)){let e;e=_.value.size?_.value.size:"small"===s.value||"middle"===s.value?"small":void 0;const t=t=>br(CH,sl(sl({},_.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${t}`,_.value.class],size:e}),null),n="rtl"===u.value?"left":"right",{position:o}=_.value;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==`${e}`));e||r||i||(y=t(n)),e&&(b=t(e.toLowerCase().replace("top",""))),r&&(y=t(r.toLowerCase().replace("bottom","")))}else y=t(n)}"boolean"==typeof l?O={spinning:l}:"object"==typeof l&&(O=cl({spinning:!0},l));const x=xl(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:"rtl"===u.value},n.class,f.value),C=xd(e,["columns"]);return h(br("div",{class:x,style:n.style},[br(GL,sl({spinning:!1},O),{default:()=>[b,br(pZ,sl(sl(sl({},n),C),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:H.value,indentSize:Z.value,expandIcon:r,columns:a.value,direction:u.value,prefixCls:d.value,class:xl({[`${d.value}-middle`]:"middle"===s.value,[`${d.value}-small`]:"small"===s.value,[`${d.value}-bordered`]:p,[`${d.value}-empty`]:0===v.value.length}),data:L.value,rowKey:$.value,rowClassName:Y,internalHooks:dZ,internalRefs:w,onUpdateInternalRefs:S,transformColumns:V,transformCellText:g.value}),cl(cl({},o),{emptyText:()=>{var t,n;return(null===(t=o.emptyText)||void 0===t?void 0:t.call(o))||(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||c("Table")}})),y]})]))}}}),VU=jn({name:"ATable",inheritAttrs:!1,props:Vl(YU(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=bt();return r({table:i}),()=>{var t;const r=e.columns||zZ(null===(t=o.default)||void 0===t?void 0:t.call(o));return br(ZU,sl(sl(sl({ref:i},n),e),{},{columns:r||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:cl({},o)}),o)}}}),UU=jn({name:"ATableColumn",slots:Object,render:()=>null}),KU=jn({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render:()=>null}),GU=JY,qU=tZ,JU=cl(oZ,{Cell:qU,Row:GU,name:"ATableSummary"}),eK=cl(VU,{SELECTION_ALL:mZ,SELECTION_INVERT:vZ,SELECTION_NONE:bZ,SELECTION_COLUMN:gZ,EXPAND_COLUMN:WY,Column:UU,ColumnGroup:KU,Summary:JU,install:e=>(e.component(JU.name,JU),e.component(qU.name,qU),e.component(GU.name,GU),e.component(VU.name,VU),e.component(UU.name,UU),e.component(KU.name,KU),e)}),tK={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},nK=jn({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Vl(tK,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=t=>{var o;n("change",t),""===t.target.value&&(null===(o=e.handleClear)||void 0===o||o.call(e))};return()=>{const{placeholder:t,value:n,prefixCls:r,disabled:i}=e;return br(r_,{placeholder:t,class:r,value:n,onChange:o,disabled:i,allowClear:!0},{prefix:()=>br(sy,null,null)})}}}),oK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function rK(e){for(var t=1;t{const{renderedText:t,renderedEl:o,item:r,checked:i,disabled:l,prefixCls:a,showRemove:s}=e,c=xl({[`${a}-content-item`]:!0,[`${a}-content-item-disabled`]:l||r.disabled});let u;return"string"!=typeof t&&"number"!=typeof t||(u=String(t)),br(Ga,{componentName:"Transfer",defaultLocale:Ka.Transfer},{default:e=>{const t=br("span",{class:`${a}-content-item-text`},[o]);return s?br("li",{class:c,title:u},[t,br(ZF,{disabled:l||r.disabled,class:`${a}-content-item-remove`,"aria-label":e.remove,onClick:()=>{n("remove",r)}},{default:()=>[br(aK,null,null)]})]):br("li",{class:c,title:u,onClick:l||r.disabled?sK:()=>{n("click",r)}},[br(zz,{class:`${a}-checkbox`,checked:i,disabled:l||r.disabled},null),t])}})}}}),uK=jn({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:{prefixCls:String,filteredRenderItems:$p.array.def([]),selectedKeys:$p.array,disabled:Sa(),showRemove:Sa(),pagination:$p.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function},emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=bt(1),i=t=>{const{selectedKeys:o}=e,r=o.indexOf(t.key)>=0;n("itemSelect",t.key,!r)},l=e=>{n("itemRemove",[e.key])},a=e=>{n("scroll",e)},s=Lr((()=>function(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return"object"==typeof e?cl(cl({},t),e):t}(e.pagination)));bn([s,()=>e.filteredRenderItems],(()=>{if(s.value){const t=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,t)}}),{immediate:!0});const c=Lr((()=>{const{filteredRenderItems:t}=e;let n=t;return s.value&&(n=t.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),n})),u=e=>{r.value=e};return o({items:c}),()=>{const{prefixCls:t,filteredRenderItems:n,selectedKeys:o,disabled:d,showRemove:p}=e;let h=null;s.value&&(h=br(CH,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:d,class:`${t}-pagination`,total:n.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const f=c.value.map((e=>{let{renderedEl:n,renderedText:r,item:a}=e;const{disabled:s}=a,c=o.indexOf(a.key)>=0;return br(cK,{disabled:d||s,key:a.key,item:a,renderedText:r,renderedEl:n,checked:c,prefixCls:t,onClick:i,onRemove:l,showRemove:p},null)}));return br(er,null,[br("ul",{class:xl(`${t}-content`,{[`${t}-content-show-remove`]:p}),onScroll:a},[f]),h])}}}),dK=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},pK=()=>null;function hK(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const fK=jn({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:{prefixCls:String,dataSource:Ca([]),filter:String,filterOption:Function,checkedKeys:$p.arrayOf($p.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Sa(!1),searchPlaceholder:String,notFoundContent:$p.any,itemUnit:String,itemsUnit:String,renderList:$p.any,disabled:Sa(),direction:ka(),showSelectAll:Sa(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:$p.any,showRemove:Sa(),pagination:$p.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=bt(""),i=bt(),l=bt(),a=t=>{const{renderItem:n=pK}=e,o=n(t),r=!(!(i=o)||sa(i)||"[object Object]"!==Object.prototype.toString.call(i));var i;return{renderedText:r?o.value:o,renderedEl:r?o.label:o,item:t}},s=bt([]),c=bt([]);mn((()=>{const t=[],n=[];e.dataSource.forEach((e=>{const o=a(e),{renderedText:i}=o;if(r.value&&r.value.trim()&&!g(i,e))return null;t.push(e),n.push(o)})),s.value=t,c.value=n}));const u=Lr((()=>{const{checkedKeys:t}=e;if(0===t.length)return"none";const n=dK(t);return s.value.every((e=>n.has(e.key)||!!e.disabled))?"all":"part"})),d=Lr((()=>hK(s.value))),p=(t,n)=>Array.from(new Set([...t,...e.checkedKeys])).filter((e=>-1===n.indexOf(e))),h=t=>{var n;const{target:{value:o}}=t;r.value=o,null===(n=e.handleFilter)||void 0===n||n.call(e,t)},f=t=>{var n;r.value="",null===(n=e.handleClear)||void 0===n||n.call(e,t)},g=(t,n)=>{const{filterOption:o}=e;return o?o(r.value,n):t.includes(r.value)},m=(t,n)=>{const{itemsUnit:o,itemUnit:r,selectAllLabel:i}=e;if(i)return"function"==typeof i?i({selectedCount:t,totalCount:n}):i;const l=n>1?o:r;return br(er,null,[(t>0?`${t}/`:"")+n,Or(" "),l])},v=Lr((()=>Array.isArray(e.notFoundContent)?e.notFoundContent["left"===e.direction?0:1]:e.notFoundContent)),b=(t,o,a,u,d,p)=>{const g=d?br("div",{class:`${t}-body-search-wrapper`},[br(nK,{prefixCls:`${t}-search`,onChange:h,handleClear:f,placeholder:o,value:r.value,disabled:p},null)]):null;let m;const{onEvents:b}=Ul(n),{bodyContent:y,customize:O}=((e,t)=>{let n=e?e(t):null;const o=!!n&&la(n).length>0;return o||(n=br(uK,sl(sl({},t),{},{ref:l}),null)),{customize:o,bodyContent:n}})(u,cl(cl(cl({},e),{filteredItems:s.value,filteredRenderItems:c.value,selectedKeys:a}),b));return m=O?br("div",{class:`${t}-body-customize-wrapper`},[y]):s.value.length?y:br("div",{class:`${t}-body-not-found`},[v.value]),br("div",{class:d?`${t}-body ${t}-body-with-search`:`${t}-body`,ref:i},[g,m])};return()=>{var t,r;const{prefixCls:i,checkedKeys:a,disabled:c,showSearch:h,searchPlaceholder:f,selectAll:g,selectCurrent:v,selectInvert:y,removeAll:O,removeCurrent:w,renderList:S,onItemSelectAll:$,onItemRemove:x,showSelectAll:C=!0,showRemove:k,pagination:P}=e,T=null===(t=o.footer)||void 0===t?void 0:t.call(o,cl({},e)),M=xl(i,{[`${i}-with-pagination`]:!!P,[`${i}-with-footer`]:!!T}),I=b(i,f,a,S,h,c),E=T?br("div",{class:`${i}-footer`},[T]):null,A=!k&&!P&&(t=>{let{disabled:n,prefixCls:o}=t;var r;const i="all"===u.value;return br(zz,{disabled:0===(null===(r=e.dataSource)||void 0===r?void 0:r.length)||n,checked:i,indeterminate:"part"===u.value,class:`${o}-checkbox`,onChange:()=>{const t=d.value;e.onItemSelectAll(p(i?[]:t,i?e.checkedKeys:[]))}},null)})({disabled:c,prefixCls:i});let D=null;D=br(uP,null,k?{default:()=>[P&&br(uP.Item,{key:"removeCurrent",onClick:()=>{const e=hK((l.value.items||[]).map((e=>e.item)));null==x||x(e)}},{default:()=>[w]}),br(uP.Item,{key:"removeAll",onClick:()=>{null==x||x(d.value)}},{default:()=>[O]})]}:{default:()=>[br(uP.Item,{key:"selectAll",onClick:()=>{const e=d.value;$(p(e,[]))}},{default:()=>[g]}),P&&br(uP.Item,{onClick:()=>{const e=hK((l.value.items||[]).map((e=>e.item)));$(p(e,[]))}},{default:()=>[v]}),br(uP.Item,{key:"selectInvert",onClick:()=>{let e;e=P?hK((l.value.items||[]).map((e=>e.item))):d.value;const t=new Set(a),n=[],o=[];e.forEach((e=>{t.has(e)?o.push(e):n.push(e)})),$(p(n,o))}},{default:()=>[y]})]});const R=br(hk,{class:`${i}-header-dropdown`,overlay:D,disabled:c},{default:()=>[br(jb,null,null)]});return br("div",{class:M,style:n.style},[br("div",{class:`${i}-header`},[C?br(er,null,[A,R]):null,br("span",{class:`${i}-header-selected`},[br("span",null,[m(a.length,s.value.length)]),br("span",{class:`${i}-header-title`},[null===(r=o.titleText)||void 0===r?void 0:r.call(o)])])]),I,E])}}});function gK(){}const mK=e=>{const{disabled:t,moveToLeft:n=gK,moveToRight:o=gK,leftArrowText:r="",rightArrowText:i="",leftActive:l,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return br("div",{class:s,style:c},[br(WC,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:br("rtl"!==u?sk:LD,null,null)},{default:()=>[i]}),!d&&br(WC,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:br("rtl"!==u?LD:sk,null,null)},{default:()=>[r]})])};mK.displayName="Operation",mK.inheritAttrs=!1;const vK=mK,bK=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:i,margin:l}=e,a=`${t}-table`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${l}px 0 ${i}px`}},[`${t}-input[disabled]`]:{backgroundColor:"transparent"}}}},yK=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},OK=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:cl({},yK(e,e.colorError)),[`${t}-status-warning`]:cl({},yK(e,e.colorWarning))}},wK=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:i,transferHeaderHeight:l,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:p,listWidth:h,listWidthLG:f,fontSizeIcon:g,marginXS:m,paddingSM:v,lineType:b,iconCls:y,motionDurationSlow:O}=e;return{display:"flex",flexDirection:"column",width:h,height:p,border:`${r}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:l,padding:`${a-r}px ${v}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${b} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":cl(cl({},Wu),{flex:"auto",textAlign:"end"}),"&-dropdown":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${v}px`,transition:`all ${O}`,"> *:not(:last-child)":{marginInlineEnd:m},"> *":{flex:"none"},"&-text":cl(cl({},Wu),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${O}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${b} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${b} ${o}`},"&-checkbox":{lineHeight:1}}},SK=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:i,marginXXS:l,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:cl(cl({},Xu(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:wK(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:l},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},$K=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},xK=Ku("Transfer",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:i}=e,l=Math.round(t*n),a=r,s=i,c=Ju(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-l)/2),transferItemPaddingVertical:(s-l)/2});return[SK(c),bK(c),OK(c),$K(c)]}),{listWidth:180,listHeight:200,listWidthLG:250}),CK=ya(jn({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:{id:String,prefixCls:String,dataSource:Ca([]),disabled:Sa(),targetKeys:Ca(),selectedKeys:Ca(),render:$a(),listStyle:Pa([Function,Object],(()=>({}))),operationStyle:wa(void 0),titles:Ca(),operations:Ca(),showSearch:Sa(!1),filterOption:$a(),searchPlaceholder:String,notFoundContent:$p.any,locale:wa(),rowKey:$a(),showSelectAll:Sa(),selectAllLabels:Ca(),children:$a(),oneWay:Sa(),pagination:Pa([Object,Boolean]),status:ka(),onChange:$a(),onSelectChange:$a(),onSearch:$a(),onScroll:$a(),"onUpdate:targetKeys":$a(),"onUpdate:selectedKeys":$a()},slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{configProvider:l,prefixCls:a,direction:s}=$d("transfer",e),[c,u]=xK(a),d=bt([]),p=bt([]),h=gy(),f=vy.useInject(),g=Lr((()=>Oy(f.status,e.status)));bn((()=>e.selectedKeys),(()=>{var t,n;d.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((t=>-1===e.targetKeys.indexOf(t))))||[],p.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((t=>e.targetKeys.indexOf(t)>-1)))||[]}),{immediate:!0});const m=t=>{const{targetKeys:o=[],dataSource:r=[]}=e,i="right"===t?d.value:p.value,l=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)})),t})(r),a=i.filter((e=>!l.has(e))),s=dK(a),c="right"===t?a.concat(o):o.filter((e=>!s.has(e))),u="right"===t?"left":"right";"right"===t?d.value=[]:p.value=[],n("update:targetKeys",c),S(u,[]),n("change",c,t,a),h.onFieldChange()},v=()=>{m("left")},b=()=>{m("right")},y=(e,t)=>{S(e,t)},O=e=>y("left",e),w=e=>y("right",e),S=(t,o)=>{"left"===t?(e.selectedKeys||(d.value=o),n("update:selectedKeys",[...o,...p.value]),n("selectChange",o,dt(p.value))):(e.selectedKeys||(p.value=o),n("update:selectedKeys",[...o,...d.value]),n("selectChange",dt(d.value),o))},$=(e,t)=>{const o=t.target.value;n("search",e,o)},x=e=>{$("left",e)},C=e=>{$("right",e)},k=e=>{n("search",e,"")},P=()=>{k("left")},T=()=>{k("right")},M=(e,t,n)=>{const o="left"===e?[...d.value]:[...p.value],r=o.indexOf(t);r>-1&&o.splice(r,1),n&&o.push(t),S(e,o)},I=(e,t)=>M("left",e,t),E=(e,t)=>M("right",e,t),A=t=>{const{targetKeys:o=[]}=e,r=o.filter((e=>!t.includes(e)));n("update:targetKeys",r),n("change",r,"left",[...t])},D=(e,t)=>{n("scroll",e,t)},R=e=>{D("left",e)},z=e=>{D("right",e)},B=(e,t)=>"function"==typeof e?e({direction:t}):e,j=bt([]),N=bt([]);mn((()=>{const{dataSource:t,rowKey:n,targetKeys:o=[]}=e,r=[],i=new Array(o.length),l=dK(o);t.forEach((e=>{n&&(e.key=n(e)),l.has(e.key)?i[l.get(e.key)]=e:r.push(e)})),j.value=r,N.value=i})),i({handleSelectChange:S});const _=t=>{var n,i,c,m,y,S;const{disabled:$,operations:k=[],showSearch:M,listStyle:D,operationStyle:_,filterOption:Q,showSelectAll:L,selectAllLabels:H=[],oneWay:F,pagination:W,id:X=h.id.value}=e,{class:Y,style:Z}=o,V=r.children,U=!V&&W,K=((t,n)=>{const o={notFoundContent:n("Transfer")},i=ca(r,e,"notFoundContent");return i&&(o.notFoundContent=i),void 0!==e.searchPlaceholder&&(o.searchPlaceholder=e.searchPlaceholder),cl(cl(cl({},t),o),e.locale)})(t,l.renderEmpty),{footer:G}=r,q=e.render||r.render,J=p.value.length>0,ee=d.value.length>0,te=xl(a.value,Y,{[`${a.value}-disabled`]:$,[`${a.value}-customize-list`]:!!V,[`${a.value}-rtl`]:"rtl"===s.value},yy(a.value,g.value,f.hasFeedback),u.value),ne=e.titles,oe=null!==(c=null!==(n=ne&&ne[0])&&void 0!==n?n:null===(i=r.leftTitle)||void 0===i?void 0:i.call(r))&&void 0!==c?c:(K.titles||["",""])[0],re=null!==(S=null!==(m=ne&&ne[1])&&void 0!==m?m:null===(y=r.rightTitle)||void 0===y?void 0:y.call(r))&&void 0!==S?S:(K.titles||["",""])[1];return br("div",sl(sl({},o),{},{class:te,style:Z,id:X}),[br(fK,sl({key:"leftList",prefixCls:`${a.value}-list`,dataSource:j.value,filterOption:Q,style:B(D,"left"),checkedKeys:d.value,handleFilter:x,handleClear:P,onItemSelect:I,onItemSelectAll:O,renderItem:q,showSearch:M,renderList:V,onScroll:R,disabled:$,direction:"rtl"===s.value?"right":"left",showSelectAll:L,selectAllLabel:H[0]||r.leftSelectAllLabel,pagination:U},K),{titleText:()=>oe,footer:G}),br(vK,{key:"operation",class:`${a.value}-operation`,rightActive:ee,rightArrowText:k[0],moveToRight:b,leftActive:J,leftArrowText:k[1],moveToLeft:v,style:_,disabled:$,direction:s.value,oneWay:F},null),br(fK,sl({key:"rightList",prefixCls:`${a.value}-list`,dataSource:N.value,filterOption:Q,style:B(D,"right"),checkedKeys:p.value,handleFilter:C,handleClear:T,onItemSelect:E,onItemSelectAll:w,onItemRemove:A,renderItem:q,showSearch:M,renderList:V,onScroll:z,disabled:$,direction:"rtl"===s.value?"left":"right",showSelectAll:L,selectAllLabel:H[1]||r.rightSelectAllLabel,showRemove:F,pagination:U},K),{titleText:()=>re,footer:G})])};return()=>c(br(Ga,{componentName:"Transfer",defaultLocale:Ka.Transfer,children:_},null))}}));function kK(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function PK(e){return null==e}const TK=Symbol("TreeSelectContextPropsKey"),MK={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},IK=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=dv(),i=ev(),l=Mo(TK,{}),a=bt(),s=Tv((()=>l.treeData),[()=>r.open,()=>l.treeData],(e=>e[0])),c=Lr((()=>{const{checkable:e,halfCheckedKeys:t,checkedKeys:n}=i;return e?{checked:n,halfChecked:t}:null}));bn((()=>r.open),(()=>{Ft((()=>{var e;r.open&&!r.multiple&&i.checkedKeys.length&&(null===(e=a.value)||void 0===e||e.scrollTo({key:i.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});const u=Lr((()=>String(r.searchValue).toLowerCase())),d=e=>!!u.value&&String(e[i.treeNodeFilterProp]).toLowerCase().includes(u.value),p=yt(i.treeDefaultExpandedKeys),h=yt(null);bn((()=>r.searchValue),(()=>{r.searchValue&&(h.value=function(e,t){const n=[];return function e(o){o.forEach((o=>{n.push(o[t.value]);const r=o[t.children];r&&e(r)}))}(e),n}(dt(l.treeData),dt(l.fieldNames)))}),{immediate:!0});const f=Lr((()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():r.searchValue?h.value:p.value)),g=e=>{var t;p.value=e,h.value=e,null===(t=i.onTreeExpand)||void 0===t||t.call(i,e)},m=e=>{e.preventDefault()},v=(e,t)=>{let{node:n}=t;var o,a;const{checkable:s,checkedKeys:c}=i;s&&kK(n)||(null===(o=l.onSelect)||void 0===o||o.call(l,n.key,{selected:!c.includes(n.key)}),r.multiple||null===(a=r.toggleOpen)||void 0===a||a.call(r,!1))},b=bt(null),y=Lr((()=>i.keyEntities[b.value])),O=e=>{b.value=e};return o({scrollTo:function(){for(var e,t,n=arguments.length,o=new Array(n),r=0;r{var t;const{which:n}=e;switch(n){case Im.UP:case Im.DOWN:case Im.LEFT:case Im.RIGHT:null===(t=a.value)||void 0===t||t.onKeydown(e);break;case Im.ENTER:if(y.value){const{selectable:e,value:t}=y.value.node||{};!1!==e&&v(0,{node:{key:b.value},selected:!i.checkedKeys.includes(t)})}break;case Im.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var e;const{prefixCls:t,multiple:o,searchValue:u,open:p,notFoundContent:h=(null===(e=n.notFoundContent)||void 0===e?void 0:e.call(n))}=r,{listHeight:w,listItemHeight:S,virtual:$,dropdownMatchSelectWidth:x,treeExpandAction:C}=l,{checkable:k,treeDefaultExpandAll:P,treeIcon:T,showTreeIcon:M,switcherIcon:I,treeLine:E,loadData:A,treeLoadedKeys:D,treeMotion:R,onTreeLoad:z,checkedKeys:B}=i;if(0===s.value.length)return br("div",{role:"listbox",class:`${t}-empty`,onMousedown:m},[h]);const j={fieldNames:l.fieldNames};return D&&(j.loadedKeys=D),f.value&&(j.expandedKeys=f.value),br("div",{onMousedown:m},[y.value&&p&&br("span",{style:MK,"aria-live":"assertive"},[y.value.node.value]),br(fV,sl(sl({ref:a,focusable:!1,prefixCls:`${t}-tree`,treeData:s.value,height:w,itemHeight:S,virtual:!1!==$&&!1!==x,multiple:o,icon:T,showIcon:M,switcherIcon:I,showLine:E,loadData:u?null:A,motion:R,activeKey:b.value,checkable:k,checkStrictly:!0,checkedKeys:c.value,selectedKeys:k?[]:B,defaultExpandAll:P},j),{},{onActiveChange:O,onSelect:v,onCheck:v,onExpand:g,onLoad:z,filterTreeNode:d,expandAction:C}),cl(cl({},n),{checkable:i.customSlots.treeCheckable}))])}}}),EK="SHOW_PARENT",AK="SHOW_CHILD";function DK(e,t,n,o){const r=new Set(e);return t===AK?e.filter((e=>{const t=n[e];return!(t&&t.children&&t.children.some((e=>{let{node:t}=e;return r.has(t[o.value])}))&&t.children.every((e=>{let{node:t}=e;return kK(t)||r.has(t[o.value])})))})):t===EK?e.filter((e=>{const t=n[e],o=t?t.parent:null;return!(o&&!kK(o.node)&&r.has(o.key))})):e}const RK=()=>null;RK.inheritAttrs=!1,RK.displayName="ATreeSelectNode",RK.isTreeSelectNode=!0;const zK=RK;function BK(e){return function e(){return la(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!((i=t)&&i.type&&i.type.isTreeSelectNode))return null;const l=t.children||{},a=t.key,s={};for(const[e,S]of Object.entries(t.props))s[ml(e)]=S;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=cl(cl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),switcherIcon:v=(null===(o=l.switcherIcon)||void 0===o?void 0:o.call(l,g))}=s,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt}),t}function NK(e,t,n){const o=yt();return bn([n,e,t],(()=>{const r=n.value;e.value?o.value=n.value?function(e,t){let{id:n,pId:o,rootPId:r}=t;const i={},l=[];return e.map((e=>{const t=cl({},e),o=t[n];return i[o]=t,t.key=t.key||o,t})).forEach((e=>{const t=e[o],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&l.push(e)})),l}(dt(e.value),cl({id:"id",pId:"pId",rootPId:null},!0!==r?r:{})):dt(e.value).slice():o.value=BK(dt(t.value))}),{immediate:!0,deep:!0}),o}function _K(){return cl(cl({},xd(fv(),["mode"])),{prefixCls:String,id:String,value:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array]},onChange:{type:Function},searchValue:String,inputValue:String,onSearch:{type:Function},autoClearSearchValue:{type:Boolean,default:void 0},filterTreeNode:{type:[Boolean,Function],default:void 0},treeNodeFilterProp:String,onSelect:Function,onDeselect:Function,showCheckedStrategy:{type:String},treeNodeLabelProp:String,fieldNames:{type:Object},multiple:{type:Boolean,default:void 0},treeCheckable:{type:Boolean,default:void 0},treeCheckStrictly:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},treeData:{type:Array},treeDataSimpleMode:{type:[Boolean,Object],default:void 0},loadData:{type:Function},treeLoadedKeys:{type:Array},onTreeLoad:{type:Function},treeDefaultExpandAll:{type:Boolean,default:void 0},treeExpandedKeys:{type:Array},treeDefaultExpandedKeys:{type:Array},onTreeExpand:{type:Function},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,onDropdownVisibleChange:{type:Function},treeLine:{type:[Boolean,Object],default:void 0},treeIcon:$p.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:$p.any,treeMotion:$p.any,children:Array,treeExpandAction:String,showArrow:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:$p.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:$p.any,customSlots:Object})}const QK=jn({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:Vl(_K(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:AK,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>e.treeCheckable&&!e.treeCheckStrictly)),a=Lr((()=>e.treeCheckable||e.treeCheckStrictly)),s=Lr((()=>e.treeCheckStrictly||e.labelInValue)),c=Lr((()=>a.value||e.multiple)),u=Lr((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}(e.fieldNames))),[d,p]=Lv("",{value:Lr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),h=t=>{var n;p(t),null===(n=e.onSearch)||void 0===n||n.call(e,t)},f=NK(Tt(e,"treeData"),Tt(e,"children"),Tt(e,"treeDataSimpleMode")),{keyEntities:g,valueEntities:m}=((e,t)=>{const n=yt(new Map),o=yt({});return mn((()=>{const r=t.value,i=gD(e.value,{fieldNames:r,initWrapper:e=>cl(cl({},e),{valueEntities:new Map}),processEntity:(e,t)=>{const n=e.node[r.value];t.valueEntities.set(n,e)}});n.value=i.valueEntities,o.value=i.keyEntities})),{valueEntities:n,keyEntities:o}})(f,u),v=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:i}=n;return Lr((()=>{const{children:n}=i.value,l=t.value,a=null==o?void 0:o.value;if(!l||!1===r.value)return e.value;let s;if("function"==typeof r.value)s=r.value;else{const e=l.toUpperCase();s=(t,n)=>{const o=n[a];return String(o).toUpperCase().includes(e)}}return function e(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];for(let i=0,a=t.length;i{var t;return(t=e,Array.isArray(t)?t:void 0!==t?[t]:[]).map((e=>function(e){return!e||"object"!=typeof e}(e)?{value:e}:e))},y=t=>b(t).map((t=>{let{label:n}=t;const{value:o,halfChecked:r}=t;let i;const l=m.value.get(o);return l&&(n=null!=n?n:(t=>{if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];const{_title:n}=u.value;for(let e=0;eb(O.value))),$=yt([]),x=yt([]);mn((()=>{const e=[],t=[];S.value.forEach((n=>{n.halfChecked?t.push(n):e.push(n)})),$.value=e,x.value=t}));const C=Lr((()=>$.value.map((e=>e.value)))),{maxLevel:k,levelEntities:P}=DD(g),[T,M]=((e,t,n,o,r,i)=>{const l=yt([]),a=yt([]);return mn((()=>{let s=e.value.map((e=>{let{value:t}=e;return t})),c=t.value.map((e=>{let{value:t}=e;return t}));const u=s.filter((e=>!o.value[e]));n.value&&({checkedKeys:s,halfCheckedKeys:c}=CD(s,!0,o.value,r.value,i.value)),l.value=Array.from(new Set([...u,...s])),a.value=c})),[l,a]})($,x,l,g,k,P),I=Lr((()=>{const t=DK(T.value,e.showCheckedStrategy,g.value,u.value).map((e=>{var t,n,o;return null!==(o=null===(n=null===(t=g.value[e])||void 0===t?void 0:t.node)||void 0===n?void 0:n[u.value.value])&&void 0!==o?o:e})).map((e=>{const t=$.value.find((t=>t.value===e));return{value:e,label:null==t?void 0:t.label}})),n=y(t),o=n[0];return!c.value&&o&&PK(o.value)&&PK(o.label)?[]:n.map((e=>{var t;return cl(cl({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))})),[E]=(e=>{const t=yt({valueLabels:new Map}),n=yt();return bn(e,(()=>{n.value=dt(e.value)}),{immediate:!0}),[Lr((()=>{const{valueLabels:e}=t.value,o=new Map,r=n.value.map((t=>{var n;const{value:r}=t,i=null!==(n=t.label)&&void 0!==n?n:e.get(r);return o.set(r,i),cl(cl({},t),{label:i})}));return t.value.valueLabels=o,r}))]})(I),A=(t,n,o)=>{const r=y(t);if(w(r),e.autoClearSearchValue&&p(""),e.onChange){let r=t;if(l.value){const n=DK(t,e.showCheckedStrategy,g.value,u.value);r=n.map((e=>{const t=m.value.get(e);return t?t.node[u.value.value]:e}))}const{triggerValue:i,selected:d}=n||{triggerValue:void 0,selected:void 0};let p=r;if(e.treeCheckStrictly){const e=x.value.filter((e=>!r.includes(e.value)));p=[...p,...e]}const h=y(p),v={preValue:$.value,triggerValue:i};let b=!0;(e.treeCheckStrictly||"selection"===o&&!d)&&(b=!1),function(e,t,n,o,r,i){let l=null,a=null;function s(){a||(a=[],function e(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map(((o,c)=>{const u=`${r}-${c}`,d=o[i.value],p=n.includes(d),h=e(o[i.children]||[],u,p),f=br(zK,o,{default:()=>[h.map((e=>e.node))]});if(t===d&&(l=f),p){const e={pos:u,node:f,children:h};return s||a.push(e),e}return null})).filter((e=>e))}(o),a.sort(((e,t)=>{let{node:{props:{value:o}}}=e,{node:{props:{value:r}}}=t;return n.indexOf(o)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:()=>(s(),l)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>(s(),r?a:a.map((e=>{let{node:t}=e;return t})))})}(v,i,t,f.value,b,u.value),a.value?v.checked=d:v.selected=d;const O=s.value?h:h.map((e=>e.value));e.onChange(c.value?O:O[0],s.value?null:h.map((e=>e.label)),v)}},D=(t,n)=>{let{selected:o,source:r}=n;var i,a,s;const d=dt(g.value),p=dt(m.value),h=d[t],f=null==h?void 0:h.node,v=null!==(i=null==f?void 0:f[u.value.value])&&void 0!==i?i:t;if(c.value){let e=o?[...C.value,v]:T.value.filter((e=>e!==v));if(l.value){const{missingRawValues:t,existRawValues:n}=(e=>{const t=[],n=[];return e.forEach((e=>{m.value.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}})(e),r=n.map((e=>p.get(e).key));let i;({checkedKeys:i}=CD(r,!!o||{checked:!1,halfCheckedKeys:M.value},d,k.value,P.value)),e=[...t,...i.map((e=>d[e].node[u.value.value]))]}A(e,{selected:o,triggerValue:v},r||"option")}else A([v],{selected:!0,triggerValue:v},"option");o||!c.value?null===(a=e.onSelect)||void 0===a||a.call(e,v,jK(f)):null===(s=e.onDeselect)||void 0===s||s.call(e,v,jK(f))},R=t=>{if(e.onDropdownVisibleChange){const n={};Object.defineProperty(n,"documentClickClose",{get:()=>!1}),e.onDropdownVisibleChange(t,n)}},z=(e,t)=>{const n=e.map((e=>e.value));"clear"!==t.type?t.values.length&&D(t.values[0].value,{selected:!1,source:"selection"}):A(n,{},"selection")},{treeNodeFilterProp:B,loadData:j,treeLoadedKeys:N,onTreeLoad:_,treeDefaultExpandAll:Q,treeExpandedKeys:L,treeDefaultExpandedKeys:H,onTreeExpand:F,virtual:W,listHeight:X,listItemHeight:Y,treeLine:Z,treeIcon:V,showTreeIcon:U,switcherIcon:K,treeMotion:G,customSlots:q,dropdownMatchSelectWidth:J,treeExpandAction:ee}=Ct(e);!function(e){To(Jm,e)}(td({checkable:a,loadData:j,treeLoadedKeys:N,onTreeLoad:_,checkedKeys:T,halfCheckedKeys:M,treeDefaultExpandAll:Q,treeExpandedKeys:L,treeDefaultExpandedKeys:H,onTreeExpand:F,treeIcon:V,treeMotion:G,showTreeIcon:U,switcherIcon:K,treeLine:Z,treeNodeFilterProp:B,keyEntities:g,customSlots:q})),function(e){To(TK,e)}(td({virtual:W,listHeight:X,listItemHeight:Y,treeData:v,fieldNames:u,onSelect:D,dropdownMatchSelectWidth:J,treeExpandAction:ee}));const te=bt();return o({focus(){var e;null===(e=te.value)||void 0===e||e.focus()},blur(){var e;null===(e=te.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=te.value)||void 0===t||t.scrollTo(e)}}),()=>{var t;const o=xd(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return br(mv,sl(sl(sl({ref:te},n),o),{},{id:i,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:E.value,onDisplayValuesChange:z,searchValue:d.value,onSearch:h,OptionList:IK,emptyOptions:!f.value.length,onDropdownVisibleChange:R,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:null===(t=e.dropdownMatchSelectWidth)||void 0===t||t}),r)}}}),LK=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},HV(n,Ju(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},kz(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},HK=(e,t,n)=>void 0!==n?n:`${e}-${t}`,FK=jn({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Vl(cl(cl({},xd(_K(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:$p.any,size:ka(),bordered:Sa(),treeLine:Pa([Boolean,Object]),replaceFields:wa(),placement:ka(),status:ka(),popupClassName:String,dropdownClassName:String,"onUpdate:value":$a(),"onUpdate:treeExpandedKeys":$a(),"onUpdate:searchValue":$a()}),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;void 0===e.treeData&&o.default,xp(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),xp(void 0===e.replaceFields,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),xp(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,renderEmpty:u,direction:d,virtual:p,dropdownMatchSelectWidth:h,size:f,getPopupContainer:g,getPrefixCls:m,disabled:v}=$d("select",e),{compactSize:b,compactItemClassnames:y}=Hw(c,d),O=Lr((()=>b.value||f.value)),w=Wa(),S=Lr((()=>{var e;return null!==(e=v.value)&&void 0!==e?e:w.value})),$=Lr((()=>m())),x=Lr((()=>void 0!==e.placement?e.placement:"rtl"===d.value?"bottomRight":"bottomLeft")),C=Lr((()=>HK($.value,rm(x.value),e.transitionName))),k=Lr((()=>HK($.value,"",e.choiceTransitionName))),P=Lr((()=>m("select-tree",e.prefixCls))),T=Lr((()=>m("tree-select",e.prefixCls))),[M,I]=YS(c),[E]=function(e,t){return Ku("TreeSelect",(e=>{const n=Ju(e,{treePrefixCls:t.value});return[LK(n)]}))(e)}(T,P),A=Lr((()=>xl(e.popupClassName||e.dropdownClassName,`${T.value}-dropdown`,{[`${T.value}-dropdown-rtl`]:"rtl"===d.value},I.value))),D=Lr((()=>!(!e.treeCheckable&&!e.multiple))),R=Lr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!D.value)),z=bt();r({focus(){var e,t;null===(t=(e=z.value).focus)||void 0===t||t.call(e)},blur(){var e,t;null===(t=(e=z.value).blur)||void 0===t||t.call(e)}});const B=function(){for(var e=arguments.length,t=new Array(e),n=0;n{i("update:treeExpandedKeys",e),i("treeExpand",e)},N=e=>{i("update:searchValue",e),i("search",e)},_=e=>{i("blur",e),l.onFieldBlur()};return()=>{var t,r;const{notFoundContent:i=(null===(t=o.notFoundContent)||void 0===t?void 0:t.call(o)),prefixCls:f,bordered:m,listHeight:v,listItemHeight:b,multiple:w,treeIcon:$,treeLine:Q,showArrow:L,switcherIcon:H=(null===(r=o.switcherIcon)||void 0===r?void 0:r.call(o)),fieldNames:F=e.replaceFields,id:W=l.id.value}=e,{isFormItemInput:X,hasFeedback:Y,feedbackIcon:Z}=a,{suffixIcon:V,removeIcon:U,clearIcon:K}=cy(cl(cl({},e),{multiple:D.value,showArrow:R.value,hasFeedback:Y,feedbackIcon:Z,prefixCls:c.value}),o);let G;G=void 0!==i?i:u("Select");const q=xd(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),J=xl(!f&&T.value,{[`${c.value}-lg`]:"large"===O.value,[`${c.value}-sm`]:"small"===O.value,[`${c.value}-rtl`]:"rtl"===d.value,[`${c.value}-borderless`]:!m,[`${c.value}-in-form-item`]:X},yy(c.value,s.value,Y),y.value,n.class,I.value),ee={};return void 0===e.treeData&&o.default&&(ee.children=ql(o.default())),M(E(br(QK,sl(sl(sl(sl({},n),q),{},{disabled:S.value,virtual:p.value,dropdownMatchSelectWidth:h.value,id:W,fieldNames:F,ref:z,prefixCls:c.value,class:J,listHeight:v,listItemHeight:b,treeLine:!!Q,inputIcon:V,multiple:w,removeIcon:U,clearIcon:K,switcherIcon:e=>zV(P.value,H,e,o.leafIcon,Q),showTreeIcon:$,notFoundContent:G,getPopupContainer:null==g?void 0:g.value,treeMotion:null,dropdownClassName:A.value,choiceTransitionName:k.value,onChange:B,onBlur:_,onSearch:N,onTreeExpand:j},ee),{},{transitionName:C.value,customSlots:cl(cl({},o),{treeCheckable:()=>br("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:x.value,showArrow:Y||L}),cl(cl({},o),{treeCheckable:()=>br("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),WK=zK,XK=cl(FK,{TreeNode:zK,SHOW_ALL:"SHOW_ALL",SHOW_PARENT:EK,SHOW_CHILD:AK,install:e=>(e.component(FK.name,FK),e.component(WK.displayName,WK),e)}),YK=()=>({format:String,showNow:Sa(),showHour:Sa(),showMinute:Sa(),showSecond:Sa(),use12Hours:Sa(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Sa(),popupClassName:String,status:ka()}),{TimePicker:ZK,TimeRangePicker:VK}=function(e){const t=Lj(e,cl(cl({},YK()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t;return{TimePicker:jn({name:"ATimePicker",inheritAttrs:!1,props:cl(cl(cl(cl({},Mj()),Ij()),YK()),{addon:{type:Function}}),slots:Object,setup(e,t){let{slots:o,expose:r,emit:i,attrs:l}=t;const a=e,s=gy();xp(!(o.addon||a.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const c=bt();r({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}});const u=(e,t)=>{i("update:value",e),i("change",e,t),s.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),s.onFieldBlur()},f=e=>{i("ok",e)};return()=>{const{id:e=s.id.value}=a;return br(n,sl(sl(sl({},l),xd(a,["onUpdate:value","onUpdate:open"])),{},{id:e,dropdownClassName:a.popupClassName,mode:void 0,ref:c,renderExtraFooter:a.addon||o.addon||a.renderExtraFooter||o.renderExtraFooter,onChange:u,onOpenChange:d,onFocus:p,onBlur:h,onOk:f}),o)}}}),TimeRangePicker:jn({name:"ATimeRangePicker",inheritAttrs:!1,props:cl(cl(cl(cl({},Mj()),Ej()),YK()),{order:{type:Boolean,default:!0}}),slots:Object,setup(e,t){let{slots:n,expose:r,emit:i,attrs:l}=t;const a=e,s=bt(),c=gy();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const u=(e,t)=>{i("update:value",e),i("change",e,t),c.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),c.onFieldBlur()},f=(e,t)=>{i("panelChange",e,t)},g=e=>{i("ok",e)},m=(e,t,n)=>{i("calendarChange",e,t,n)};return()=>{const{id:e=c.id.value}=a;return br(o,sl(sl(sl({},l),xd(a,["onUpdate:open","onUpdate:value"])),{},{id:e,dropdownClassName:a.popupClassName,picker:"time",mode:void 0,ref:s,onChange:u,onOpenChange:d,onFocus:p,onBlur:h,onPanelChange:f,onOk:g,onCalendarChange:m}),n)}}})}}(_P),UK=cl(ZK,{TimePicker:ZK,TimeRangePicker:VK,install:e=>(e.component(ZK.name,ZK),e.component(VK.name,VK),e)}),KK=jn({compatConfig:{MODE:3},name:"ATimelineItem",props:Vl({prefixCls:String,color:String,dot:$p.any,pending:Sa(),position:$p.oneOf(ba("left","right","")).def(""),label:$p.any},{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("timeline",e),r=Lr((()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending}))),i=Lr((()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue")),l=Lr((()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.value})));return()=>{var t,a,s;const{label:c=(null===(t=n.label)||void 0===t?void 0:t.call(n)),dot:u=(null===(a=n.dot)||void 0===a?void 0:a.call(n))}=e;return br("li",{class:r.value},[c&&br("div",{class:`${o.value}-item-label`},[c]),br("div",{class:`${o.value}-item-tail`},null),br("div",{class:[l.value,!!u&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[u]),br("div",{class:`${o.value}-item-content`},[null===(s=n.default)||void 0===s?void 0:s.call(n)])])}}}),GK=e=>{const{componentCls:t}=e;return{[t]:cl(cl({},Xu(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},qK=Ku("Timeline",(e=>{const t=Ju(e,{timeLineItemPaddingBottom:1.25*e.padding,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth});return[GK(t)]})),JK=jn({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Vl({prefixCls:String,pending:$p.any,pendingDot:$p.any,reverse:Sa(),mode:$p.oneOf(ba("left","alternate","right",""))},{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("timeline",e),[l,a]=qK(r),s=(t,n)=>{const o=t.props||{};return"alternate"===e.mode?"right"===o.position?`${r.value}-item-right`:"left"===o.position||n%2==0?`${r.value}-item-left`:`${r.value}-item-right`:"left"===e.mode?`${r.value}-item-left`:"right"===e.mode||"right"===o.position?`${r.value}-item-right`:""};return()=>{var t,c,u;const{pending:d=(null===(t=n.pending)||void 0===t?void 0:t.call(n)),pendingDot:p=(null===(c=n.pendingDot)||void 0===c?void 0:c.call(n)),reverse:h,mode:f}=e,g="boolean"==typeof d?null:d,m=la(null===(u=n.default)||void 0===u?void 0:u.call(n)),v=d?br(KK,{pending:!!d,dot:p||br(Hb,null,null)},{default:()=>[g]}):null;v&&m.push(v);const b=h?m.reverse():m,y=b.length,O=`${r.value}-item-last`,w=b.map(((e,t)=>yr(e,{class:xl([!h&&d?t===y-2?O:"":t===y-1?O:"",s(e,t)])}))),S=b.some((e=>{var t,n;return!(!(null===(t=e.props)||void 0===t?void 0:t.label)&&!(null===(n=e.children)||void 0===n?void 0:n.label))})),$=xl(r.value,{[`${r.value}-pending`]:!!d,[`${r.value}-reverse`]:!!h,[`${r.value}-${f}`]:!!f&&!S,[`${r.value}-label`]:S,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value);return l(br("ul",sl(sl({},o),{},{class:$}),[w]))}}});JK.Item=KK,JK.install=function(e){return e.component(JK.name,JK),e.component(KK.name,KK),e};const eG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function tG(e){for(var t=1;t{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},lG=e=>{const{componentCls:t}=e;return{"a&, a":cl(cl({},Lu(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},aG=e=>{const{componentCls:t}=e,n=oI(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sG=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),cG=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl(cl({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},iG(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Pu[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lG(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:cl(cl({},Lu(e)),{marginInlineStart:e.marginXXS})}),aG(e)),sG(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},uG=Ku("Typography",(e=>[cG(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),dG=jn({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i}=Ct(e),l=rt({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});bn((()=>e.value),(e=>{l.current=e}));const a=bt();function s(e){a.value=e}function c(e){let{target:{value:t}}=e;l.current=t.replace(/[\r\n]/g,""),n("change",l.current)}function u(){l.inComposition=!0}function d(){l.inComposition=!1}function p(e){const{keyCode:t}=e;t===Im.ENTER&&e.preventDefault(),l.inComposition||(l.lastKeyCode=t)}function h(t){const{keyCode:o,ctrlKey:r,altKey:i,metaKey:a,shiftKey:s}=t;l.lastKeyCode!==o||l.inComposition||r||i||a||s||(o===Im.ENTER?(g(),n("end")):o===Im.ESC&&(l.current=e.originContent,n("cancel")))}function f(){g()}function g(){n("save",l.current.trim())}Zn((()=>{var e;if(a.value){const t=null===(e=a.value)||void 0===e?void 0:e.resizableTextArea,n=null==t?void 0:t.textArea;n.focus();const{length:o}=n.value;n.setSelectionRange(o,o)}}));const[m,v]=uG(i);return()=>{const t=xl({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:"rtl"===e.direction,[e.component?`${i.value}-${e.component}`:""]:!0},r.class,v.value);return m(br("div",sl(sl({},r),{},{class:t}),[br(v_,{ref:s,maxlength:e.maxlength,value:l.current,onChange:c,onKeydown:p,onKeyup:h,onCompositionstart:u,onCompositionend:d,onBlur:f,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):br(rG,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});let pG;const hG={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function fG(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=(r=n,Array.prototype.slice.apply(r).map((e=>`${e}: ${r.getPropertyValue(e)};`)).join(""));var r;e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}const gG=(e,t,n,o,r)=>{pG||(pG=document.createElement("div"),pG.setAttribute("aria-hidden","true"),document.body.appendChild(pG));const{rows:i,suffix:l=""}=t,a=function(e){const t=document.createElement("div");fG(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}(e),s=Math.round(a*i*100)/100;fG(pG,e);const c=Wi({render:()=>br("div",{style:hG},[br("span",{style:hG},[n,l]),br("span",{style:hG},[o])])});function u(){return Math.round(100*pG.getBoundingClientRect().height)/100-.1<=s}if(c.mount(pG),u())return c.unmount(),{content:n,text:pG.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(pG.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(pG.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const h=[];pG.innerHTML="";const f=document.createElement("span");pG.appendChild(f);const g=document.createTextNode(r+l);function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=Math.floor((n+o)/2),l=t.slice(0,i);if(e.textContent=l,n>=o-1)for(let a=o;a>=n;a-=1){const n=t.slice(0,a);if(e.textContent=n,u()||!n)return a===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return u()?m(e,t,i,o,i):m(e,t,n,i,r)}function v(e){if(3===e.nodeType){const n=e.textContent||"",o=document.createTextNode(n);return t=o,f.insertBefore(t,g),m(o,n)}var t;return{finished:!1,vNode:null}}return f.appendChild(g),p.forEach((e=>{pG.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=v(e);return n&&h.push(n),t})),{content:h,text:pG.innerHTML,ellipsis:!0}},mG=jn({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("typography",e),[l,a]=uG(r);return()=>{var t;const s=cl(cl({},e),o),{prefixCls:c,direction:u,component:d="article"}=s,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),vG=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),DG=jn({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:AG(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=$d("typography",e),a=rt({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=bt(),c=bt(),u=Lr((()=>{const t=e.ellipsis;return t?cl({rows:1,expandable:!1},"object"==typeof t?t:null):{}}));function d(e){const{onExpand:t}=u.value;a.expanded=!0,null==t||t(e)}function p(t){t.preventDefault(),a.originContent=e.content,O(!0)}function h(e){f(e),O(!1)}function f(t){const{onChange:n}=v.value;t!==e.content&&(r("update:content",t),null==n||n(t))}function g(){var e,t;null===(t=(e=v.value).onCancel)||void 0===t||t.call(e),O(!1)}function m(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,o=cl({},"object"==typeof n?n:null);var r;void 0===o.text&&(o.text=e.ellipsis||e.editable?e.content:null===(r=ea(s.value))||void 0===r?void 0:r.innerText),yG(o.text||""),a.copied=!0,Ft((()=>{o.onCopy&&o.onCopy(t),a.copyId=setTimeout((()=>{a.copied=!1}),3e3)}))}Zn((()=>{a.clientRendered=!0})),Kn((()=>{clearTimeout(a.copyId),ma.cancel(a.rafId)})),bn([()=>u.value.rows,()=>e.content],(()=>{Ft((()=>{w()}))}),{flush:"post",deep:!0,immediate:!0}),mn((()=>{void 0===e.content&&(Ts(!e.editable),Ts(!e.ellipsis))}));const v=Lr((()=>{const t=e.editable;return t?cl({},"object"==typeof t?t:null):{editing:!1}})),[b,y]=Lv(!1,{value:Lr((()=>v.value.editing))});function O(e){const{onStart:t}=v.value;e&&t&&t(),y(e)}function w(){ma.cancel(a.rafId),a.rafId=ma((()=>{$()}))}bn(b,(e=>{var t;e||null===(t=c.value)||void 0===t||t.focus()}),{flush:"post"});const S=Lr((()=>{const{rows:t,expandable:n,suffix:o,onEllipsis:r,tooltip:i}=u.value;return!o&&!i&&!(e.editable||e.copyable||n||r)&&(1===t?EG:IG)})),$=()=>{const{ellipsisText:t,isEllipsis:n}=a,{rows:o,suffix:r,onEllipsis:i}=u.value;if(!o||o<0||!ea(s.value)||a.expanded||void 0===e.content)return;if(S.value)return;const{content:l,text:c,ellipsis:d}=gG(ea(s.value),{rows:o,suffix:r},e.content,P(!0),"...");t===c&&a.isEllipsis===d||(a.ellipsisText=c,a.ellipsisContent=l,a.isEllipsis=d,n!==d&&i&&i(d))};function x(e){const{expandable:t,symbol:o}=u.value;if(!t)return null;if(!e&&(a.expanded||!a.isEllipsis))return null;const r=(n.ellipsisSymbol?n.ellipsisSymbol():o)||a.expandStr;return br("a",{key:"expand",class:`${i.value}-expand`,onClick:d,"aria-label":a.expandStr},[r])}function C(){if(!e.editable)return;const{tooltip:t,triggerType:o=["icon"]}=e.editable,r=n.editableIcon?n.editableIcon():br(MG,{role:"button"},null),l=n.editableTooltip?n.editableTooltip():a.editStr,s="string"==typeof l?l:"";return-1!==o.indexOf("icon")?br(Tx,{key:"edit",title:!1===t?"":l},{default:()=>[br(ZF,{ref:c,class:`${i.value}-edit`,onClick:p,"aria-label":s},{default:()=>[r]})]}):null}function k(){if(!e.copyable)return;const{tooltip:t}=e.copyable,o=a.copied?a.copiedStr:a.copyStr,r=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):o,l="string"==typeof r?r:"",s=a.copied?br(Zb,null,null):br(xG,null,null),c=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):s;return br(Tx,{key:"copy",title:!1===t?"":r},{default:()=>[br(ZF,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:a.copied}],onClick:m,"aria-label":l},{default:()=>[c]})]})}function P(e){return[x(e),C(),k()].filter((e=>e))}return()=>{var t;const{triggerType:r=["icon"]}=v.value,c=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=n.default)||void 0===t?void 0:t.call(n):n.default?n.default():e.content;return b.value?function(){const{class:t,style:r}=o,{maxlength:s,autoSize:c,onEnd:u}=v.value;return br(dG,{class:t,style:r,prefixCls:i.value,value:e.content,originContent:a.originContent,maxlength:s,autoSize:c,onSave:h,onChange:f,onCancel:g,onEnd:u,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}():br(Ga,{componentName:"Text",children:t=>{const d=cl(cl({},e),o),{type:h,disabled:f,content:g,class:m,style:v}=d,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&I;let D=c;if(y&&a.isEllipsis&&!a.expanded&&!I){const{title:e}=b;let t=e||"";e||"string"!=typeof c&&"number"!=typeof c||(t=String(c)),t=null==t?void 0:t.slice(String(a.ellipsisContent||"").length),D=br(er,null,[dt(a.ellipsisContent),br("span",{title:t,"aria-hidden":"true"},["..."]),O])}else D=br(er,null,[c,O]);D=function(e,t){let{mark:n,code:o,underline:r,delete:i,strong:l,keyboard:a}=e,s=t;function c(e,t){if(!e)return;const n=function(){return s}();s=br(t,null,{default:()=>[n]})}return c(l,"strong"),c(r,"u"),c(i,"del"),c(o,"code"),c(n,"mark"),c(a,"kbd"),s}(e,D);const R=$&&y&&a.isEllipsis&&!a.expanded&&!I,z=n.ellipsisTooltip?n.ellipsisTooltip():$;return br(ua,{onResize:w,disabled:!y},{default:()=>[br(mG,sl({ref:s,class:[{[`${i.value}-${h}`]:h,[`${i.value}-disabled`]:f,[`${i.value}-ellipsis`]:y,[`${i.value}-single-line`]:1===y&&!a.isEllipsis,[`${i.value}-ellipsis-single-line`]:E,[`${i.value}-ellipsis-multiple-line`]:A},m],style:cl(cl({},v),{WebkitLineClamp:A?y:void 0}),"aria-label":void 0,direction:l.value,onClick:-1!==r.indexOf("text")?p:()=>{}},M),{default:()=>[R?br(Tx,{title:!0===$?c:z},{default:()=>[br("span",null,[D])]}):D,P()]})]})}},null)}}}),RG=(e,t)=>{let{slots:n,attrs:o}=t;const r=cl(cl({},e),o),{ellipsis:i,rel:l}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{slots:n,attrs:o}=t;const r=cl(cl(cl({},e),{component:"div"}),o);return br(DG,r,n)};BG.displayName="ATypographyParagraph",BG.inheritAttrs=!1,BG.props=xd(AG(),["component"]);const jG=BG,NG=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;Ts();const i=cl(cl(cl({},e),{ellipsis:r&&"object"==typeof r?xd(r,["expandable","rows"]):r,component:"span"}),o);return br(DG,i,n)};NG.displayName="ATypographyText",NG.inheritAttrs=!1,NG.props=cl(cl({},xd(AG(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const _G=NG,QG=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{slots:n,attrs:o}=t;const{level:r=1}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach((t=>{const o=e.data[t];Array.isArray(o)?o.forEach((e=>{n.append(`${t}[]`,e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),FG(t)):e.onSuccess(FG(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((e=>{null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort(){t.abort()}}}mG.Text=_G,mG.Title=HG,mG.Paragraph=jG,mG.Link=zG,mG.Base=DG,mG.install=function(e){return e.component(mG.name,mG),e.component(mG.Text.displayName,_G),e.component(mG.Title.displayName,HG),e.component(mG.Paragraph.displayName,jG),e.component(mG.Link.displayName,zG),e};const XG=+new Date;let YG=0;function ZG(){return`vc-upload-${XG}-${++YG}`}const VG=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=o.toLowerCase(),n=t.toLowerCase();let r=[n];return".jpg"!==n&&".jpeg"!==n||(r=[".jpg",".jpeg"]),r.some((t=>e.endsWith(t)))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)}))}return!0},UG=(e,t,n)=>{const o=(e,r)=>{e.path=r||"",e.isFile?e.file((o=>{n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){const n=e.createReader();let o=[];!function e(){n.readEntries((n=>{const r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?e():t(o)}))}()}(e,(t=>{t.forEach((t=>{o(t,`${r}${e.name}/`)}))}))};e.forEach((e=>{o(e.webkitGetAsEntry())}))},KG=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var GG=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Eue){i(Eue)}}function a(e){try{s(o.throw(e))}catch(Eue){i(Eue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const qG=jn({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:KG(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt(ZG()),l={},a=bt();let s=!1;const c=(t,n)=>GG(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch(Eue){r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:i}=e;let l;l="function"==typeof i?yield i(t):i;const{data:a}=e;let s;s="function"==typeof a?yield a(t):a;const c="object"!=typeof r&&"string"!=typeof r||!r?t:r;let u;u=c instanceof File?c:new File([c],t.name,{type:t.type});const d=u;return d.uid=t.uid,{origin:t,data:s,parsedFile:d,action:l}})),u=e=>{if(e){const t=e.uid?e.uid:e;l[t]&&l[t].abort&&l[t].abort(),delete l[t]}else Object.keys(l).forEach((e=>{l[e]&&l[e].abort&&l[e].abort(),delete l[e]}))};Zn((()=>{s=!0})),Kn((()=>{s=!1,u()}));const d=t=>{const n=[...t],o=n.map((e=>(e.uid=ZG(),c(e,n))));Promise.all(o).then((t=>{const{onBatchStart:n}=e;null==n||n(t.map((e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}}))),t.filter((e=>null!==e.parsedFile)).forEach((t=>{(t=>{let{data:n,origin:o,action:r,parsedFile:i}=t;if(!s)return;const{onStart:a,customRequest:c,name:u,headers:d,withCredentials:p,method:h}=e,{uid:f}=o,g=c||WG,m={action:r,filename:u,data:n,file:i,headers:d,withCredentials:p,method:h||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,i)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,i,n),delete l[f]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,i),delete l[f]}};a(o),l[f]=g(m)})(t)}))}))},p=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,l=[...r].filter((e=>!o||VG(e,n)));d(l),i.value=ZG()},h=t=>{const n=a.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},f=e=>{"Enter"===e.key&&h(e)},g=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)UG(Array.prototype.slice.call(t.dataTransfer.items),d,(t=>VG(t,e.accept)));else{const o=Bw(Array.prototype.slice.call(t.dataTransfer.files),(t=>VG(t,e.accept)));let r=o[0];const i=o[1];!1===n&&(r=r.slice(0,1)),d(r),i.length&&e.onReject&&e.onReject(i)}};return r({abort:u}),()=>{var t;const{componentTag:r,prefixCls:l,disabled:s,id:c,multiple:u,accept:d,capture:m,directory:v,openFileDialogOnClick:b,onMouseenter:y,onMouseleave:O}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},onKeydown:b?f:()=>{},onMouseenter:y,onMouseleave:O,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:S,role:"button",style:o.style}),{default:()=>[br("input",sl(sl(sl({},Lm(w,{aria:!0,data:!0})),{},{id:c,type:"file",ref:a,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:i.value,style:{display:"none"},accept:d},$),{},{multiple:u,onChange:p},null!=m?{capture:m}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function JG(){}const eq=jn({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Vl(KG(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:JG,onError:JG,onSuccess:JG,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt();return r({abort:e=>{var t;null===(t=i.value)||void 0===t||t.abort(e)}}),()=>br(qG,sl(sl(sl({},e),o),{},{ref:i}),n)}}),tq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function nq(e){for(var t=1;t{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function yq(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const Oq=e=>0===e.indexOf("image/"),wq=200,Sq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function $q(e){for(var t=1;t{l.value=setTimeout((()=>{i.value=!0}),300)})),Kn((()=>{clearTimeout(l.value)}));const a=yt(null===(r=e.file)||void 0===r?void 0:r.status);bn((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(a.value=e)}));const{rootPrefixCls:s}=$d("upload",e),c=Lr((()=>im(`${s.value}-fade`)));return()=>{var t,r;const{prefixCls:l,locale:s,listType:u,file:d,items:p,progress:h,iconRender:f=n.iconRender,actionIconRender:g=n.actionIconRender,itemRender:m=n.itemRender,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:O,previewIcon:w=n.previewIcon,removeIcon:S=n.removeIcon,downloadIcon:$=n.downloadIcon,onPreview:x,onDownload:C,onClose:k}=e,{class:P,style:T}=o,M=f({file:d});let I=br("div",{class:`${l}-text-icon`},[M]);if("picture"===u||"picture-card"===u)if("uploading"===a.value||!d.thumbUrl&&!d.url){const e={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:"uploading"!==a.value};I=br("div",{class:e},[M])}else{const e=(null==v?void 0:v(d))?br("img",{src:d.thumbUrl||d.url,alt:d.name,class:`${l}-list-item-image`,crossorigin:d.crossOrigin},null):M,t={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:v&&!v(d)};I=br("a",{class:t,onClick:e=>x(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const E={[`${l}-list-item`]:!0,[`${l}-list-item-${a.value}`]:!0},A="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,D=y?g({customIcon:S?S({file:d}):br(aK,null,null),callback:()=>k(d),prefixCls:l,title:s.removeFile}):null,R=O&&"done"===a.value?g({customIcon:$?$({file:d}):br(kq,null,null),callback:()=>C(d),prefixCls:l,title:s.downloadFile}):null,z="picture-card"!==u&&br("span",{key:"download-delete",class:[`${l}-list-item-actions`,{picture:"picture"===u}]},[R,D]),B=`${l}-list-item-name`,j=d.url?[br("a",sl(sl({key:"view",target:"_blank",rel:"noopener noreferrer",class:B,title:d.name},A),{},{href:d.url,onClick:e=>x(d,e)}),[d.name]),z]:[br("span",{key:"view",class:B,onClick:e=>x(d,e),title:d.name},[d.name]),z],N=b?br("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>x(d,e),title:s.previewFile},[w?w({file:d}):br(S_,null,null)]):null,_="picture-card"===u&&"uploading"!==a.value&&br("span",{class:`${l}-list-item-actions`},[N,"done"===a.value&&R,D]),Q=br("div",{class:E},[I,j,_,i.value&&br(qr,c.value,{default:()=>[$n(br("div",{class:`${l}-list-item-progress`},["percent"in d?br(SW,sl(sl({},h),{},{type:"line",percent:d.percent}),null):null]),[[gi,"uploading"===a.value]])]})]),L={[`${l}-list-item-container`]:!0,[`${P}`]:!!P},H=d.response&&"string"==typeof d.response?d.response:(null===(t=d.error)||void 0===t?void 0:t.statusText)||(null===(r=d.error)||void 0===r?void 0:r.message)||s.uploadError,F="error"===a.value?br(Tx,{title:H,getPopupContainer:e=>e.parentNode},{default:()=>[Q]}):Q;return br("div",{class:L,style:T},[m?m({originNode:F,file:d,fileList:p,actions:{download:C.bind(null,d),preview:x.bind(null,d),remove:k.bind(null,d)}}):F])}}}),Tq=(e,t)=>{let{slots:n}=t;var o;return la(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},Mq=jn({compatConfig:{MODE:3},name:"AUploadList",props:Vl({listType:ka(),onPreview:$a(),onDownload:$a(),onRemove:$a(),items:Ca(),progress:wa(),prefixCls:ka(),showRemoveIcon:Sa(),showDownloadIcon:Sa(),showPreviewIcon:Sa(),removeIcon:$a(),downloadIcon:$a(),previewIcon:$a(),locale:wa(void 0),previewFile:$a(),iconRender:$a(),isImageUrl:$a(),appendAction:$a(),appendActionVisible:Sa(),itemRender:$a()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!Oq(e.type))return void t("");const n=document.createElement("canvas");n.width=wq,n.height=wq,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let l=wq,a=wq,s=0,c=0;e>i?(a=i*(wq/e),c=-(a-l)/2):(l=e*(wq/i),s=-(l-a)/2),o.drawImage(r,s,c,l,a);const u=n.toDataURL();document.body.removeChild(n),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",(()=>{t.result&&(r.src=t.result)})),t.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))},isImageUrl:e=>{if(e.type&&!e.thumbUrl)return Oq(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=yt(!1),i=Mr();Zn((()=>{r.value})),mn((()=>{"picture"!==e.listType&&"picture-card"!==e.listType||(e.items||[]).forEach((t=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",e.previewFile&&e.previewFile(t.originFileObj).then((e=>{t.thumbUrl=e||"",i.update()})))}))}));const l=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},a=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},s=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},c=t=>{let{file:o}=t;const r=e.iconRender||n.iconRender;if(r)return r({file:o,listType:e.listType});const i="uploading"===o.status,l=e.isImageUrl&&e.isImageUrl(o)?br(uq,null,null):br(gq,null,null);let a=br(i?Hb:iq,null,null);return"picture"===e.listType?a=i?br(Hb,null,null):l:"picture-card"===e.listType&&(a=i?e.locale.uploading:l),a},u=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,i={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return sa(t)?br(WC,i,{icon:()=>t}):br(WC,i,{default:()=>[br("span",null,[t])]})};o({handlePreview:l,handleDownload:a});const{prefixCls:d,rootPrefixCls:p}=$d("upload",e),h=Lr((()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0}))),f=Lr((()=>{const t=cl({},Kk(`${p.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=cl(cl({},lm(`${d.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:h.value,appear:r.value});return"picture-card"!==e.listType?cl(cl({},t),n):n}));return()=>{const{listType:t,locale:o,isImageUrl:r,items:i=[],showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,removeIcon:m,previewIcon:v,downloadIcon:b,progress:y,appendAction:O,itemRender:w,appendActionVisible:S}=e,$=null==O?void 0:O();return br(Di,sl(sl({},f.value),{},{tag:"div"}),{default:()=>[i.map((e=>{const{uid:f}=e;return br(Pq,{key:f,locale:o,prefixCls:d.value,file:e,items:i,progress:y,listType:t,isImgUrl:r,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,onPreview:l,onDownload:a,onClose:s,removeIcon:m,previewIcon:v,downloadIcon:b,itemRender:w},cl(cl({},n),{iconRender:c,actionIconRender:u}))})),O?$n(br(Tq,{key:"__ant_upload_appendAction"},{default:()=>$}),[[gi,!!S]]):null]})}}}),Iq=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},Eq=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,c=Math.round(r*i);return{[`${t}-wrapper`]:{[`${t}-list`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:cl(cl({},Wu),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus,\n &.picture ${s}\n `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Aq=new Hc("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Dq=new Hc("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Rq=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Aq},[`${n}-leave`]:{animationName:Dq}}},Aq,Dq]},zq=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[l]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:cl(cl({},Wu),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Bq=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new mu(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},jq=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Nq=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:cl(cl({},Xu(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},_q=Ku("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:i}=e,l=Ju(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*i});return[Nq(l),Iq(l),zq(l),Bq(l),Eq(l),Rq(l),jq(l),IS(l)]}));var Qq=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Eue){i(Eue)}}function a(e){try{s(o.throw(e))}catch(Eue){i(Eue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Lq=`__LIST_IGNORE_${Date.now()}__`,Hq=jn({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Vl(mq(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=gy(),{prefixCls:l,direction:a,disabled:s}=$d("upload",e),[c,u]=_q(l),d=Wa(),p=Lr((()=>{var e;return null!==(e=d.value)&&void 0!==e?e:s.value})),[h,f]=Lv(e.defaultFileList||[],{value:Tt(e,"fileList"),postState:e=>{const t=Date.now();return(null!=e?e:[]).map(((e,n)=>(e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${t}_${n}__`),e)))}}),g=bt("drop"),m=bt(null);Zn((()=>{xp(void 0!==e.fileList||void 0===o.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),xp(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),xp(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const v=(t,n,o)=>{var r,l;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),f(a);const s={file:t,fileList:a};o&&(s.event=o),null===(r=e["onUpdate:fileList"])||void 0===r||r.call(e,s.fileList),null===(l=e.onChange)||void 0===l||l.call(e,s),i.onFieldChange()},b=(t,n)=>Qq(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[Lq],e===Lq)return Object.defineProperty(t,Lq,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),y=e=>{const t=e.filter((e=>!e.file[Lq]));if(!t.length)return;const n=t.map((e=>vq(e.file)));let o=[...h.value];n.forEach((e=>{o=bq(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(Eue){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}v(r,o)}))},O=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(Eue){}if(!yq(t,h.value))return;const o=vq(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=bq(o,h.value);v(o,r)},w=(e,t)=>{if(!yq(t,h.value))return;const n=vq(t);n.status="uploading",n.percent=e.percent;const o=bq(n,h.value);v(n,o,e)},S=(e,t,n)=>{if(!yq(n,h.value))return;const o=vq(n);o.error=e,o.response=t,o.status="error";const r=bq(o,h.value);v(o,r)},$=t=>{let n;const o=e.onRemove||e.remove;Promise.resolve("function"==typeof o?o(t):o).then((e=>{var o,r;if(!1===e)return;const i=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(t,h.value);i&&(n=cl(cl({},t),{status:"removed"}),null===(o=h.value)||void 0===o||o.forEach((e=>{const t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")})),null===(r=m.value)||void 0===r||r.abort(n),v(n,i))}))},x=t=>{var n;g.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};r({onBatchStart:y,onSuccess:O,onProgress:w,onError:S,fileList:h,upload:m});const[C]=qa("Upload",Ka.Upload,Lr((()=>e.locale))),k=(t,o)=>{const{removeIcon:r,previewIcon:i,downloadIcon:a,previewFile:s,onPreview:c,onDownload:u,isImageUrl:d,progress:f,itemRender:g,iconRender:m,showUploadList:v}=e,{showDownloadIcon:b,showPreviewIcon:y,showRemoveIcon:O}="boolean"==typeof v?{}:v;return v?br(Mq,{prefixCls:l.value,listType:e.listType,items:h.value,previewFile:s,onPreview:c,onDownload:u,onRemove:$,showRemoveIcon:!p.value&&O,showPreviewIcon:y,showDownloadIcon:b,removeIcon:r,previewIcon:i,downloadIcon:a,iconRender:m,locale:C.value,isImageUrl:d,progress:f,itemRender:g,appendActionVisible:o,appendAction:t},cl({},n)):null==t?void 0:t()};return()=>{var t,r,s;const{listType:d,type:f}=e,{class:v,style:$}=o,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"uploading"===e.status)),[`${l.value}-drag-hover`]:"dragover"===g.value,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value},o.class,u.value);return c(br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,T,v,u.value)}),[br("div",{class:e,onDrop:x,onDragover:x,onDragleave:x,style:o.style},[br(eq,sl(sl({},P),{},{ref:m,class:`${l.value}-btn`}),sl({default:()=>[br("div",{class:`${l.value}-drag-container`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])]},n))]),k()]))}const M=xl(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${d}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value}),I=ql(null===(s=n.default)||void 0===s?void 0:s.call(n)),E=e=>br("div",{class:M,style:e},[br(eq,sl(sl({},P),{},{ref:m}),n)]);return c("picture-card"===d?br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,T,o.class,u.value)}),[k(E,!(!I||!I.length))]):br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,T,o.class,u.value)}),[E(I&&I.length?void 0:{display:"none"}),k()]))}}});var Fq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{height:t}=e,r=Fq(e,["height"]),{style:i}=o,l=Fq(o,["style"]),a=cl(cl(cl({},r),l),{type:"drag",style:cl(cl({},i),{height:"number"==typeof t?`${t}px`:t})});return br(Hq,a,n)}}}),Xq=Wq,Yq=cl(Hq,{Dragger:Wq,LIST_IGNORE:Lq,install:e=>(e.component(Hq.name,Hq),e.component(Wq.name,Wq),e)});function Zq(){return window.devicePixelRatio||1}function Vq(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}function Uq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=yM}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro&&"MutationObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=bn((()=>gM(e)),(e=>{a(),l.value&&o&&e&&(i=new MutationObserver(t),i.observe(e,r))}),{immediate:!0}),c=()=>{a(),s()};return fM(c),{isSupported:l,stop:c}}const Kq=ya(jn({name:"AWatermark",inheritAttrs:!1,props:Vl({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Pa([String,Array]),font:wa(),rootClassName:String,gap:Ca(),offset:Ca()},{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const r=yt(),i=yt(),l=yt(!1),a=Lr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[0])&&void 0!==n?n:100})),s=Lr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[1])&&void 0!==n?n:100})),c=Lr((()=>a.value/2)),u=Lr((()=>s.value/2)),d=Lr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[0])&&void 0!==n?n:c.value})),p=Lr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[1])&&void 0!==n?n:u.value})),h=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontSize)&&void 0!==n?n:16})),f=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontWeight)&&void 0!==n?n:"normal"})),g=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontStyle)&&void 0!==n?n:"normal"})),m=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"sans-serif"})),v=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.color)&&void 0!==n?n:"rgba(0, 0, 0, 0.15)"})),b=Lr((()=>{var t;const n={zIndex:null!==(t=e.zIndex)&&void 0!==t?t:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let o=d.value-c.value,r=p.value-u.value;return o>0&&(n.left=`${o}px`,n.width=`calc(100% - ${o}px)`,o=0),r>0&&(n.top=`${r}px`,n.height=`calc(100% - ${r}px)`,r=0),n.backgroundPosition=`${o}px ${r}px`,n})),y=()=>{i.value&&(i.value.remove(),i.value=void 0)},O=(e,t)=>{var n,o;r.value&&i.value&&(l.value=!0,i.value.setAttribute("style",(o=cl(cl({},b.value),{backgroundImage:`url('${e}')`,backgroundSize:2*(a.value+t)+"px"}),Object.keys(o).map((e=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)}: ${o[e]};`)).join(" "))),null===(n=r.value)||void 0===n||n.append(i.value),setTimeout((()=>{l.value=!1})))},w=(t,n,o,r,i)=>{const l=Zq(),a=e.content,s=Number(h.value)*l;t.font=`${g.value} normal ${f.value} ${s}px/${i}px ${m.value}`,t.fillStyle=v.value,t.textAlign="center",t.textBaseline="top",t.translate(r/2,0);const c=Array.isArray(a)?a:[a];null==c||c.forEach(((e,r)=>{t.fillText(null!=e?e:"",n,o+r*(s+3*l))}))},S=()=>{var t;const n=document.createElement("canvas"),o=n.getContext("2d"),r=e.image,l=null!==(t=e.rotate)&&void 0!==t?t:-22;if(o){i.value||(i.value=document.createElement("div"));const t=Zq(),[c,u]=(t=>{let n=120,o=64;const r=e.content,i=e.image,l=e.width,a=e.height;if(!i&&t.measureText){t.font=`${Number(h.value)}px ${m.value}`;const e=Array.isArray(r)?r:[r],i=e.map((e=>t.measureText(e).width));n=Math.ceil(Math.max(...i)),o=Number(h.value)*e.length+3*(e.length-1)}return[null!=l?l:n,null!=a?a:o]})(o),d=(a.value+c)*t,p=(s.value+u)*t;n.setAttribute("width",2*d+"px"),n.setAttribute("height",2*p+"px");const f=a.value*t/2,g=s.value*t/2,v=c*t,b=u*t,y=(v+a.value*t)/2,S=(b+s.value*t)/2,$=f+d,x=g+p,C=y+d,k=S+p;if(o.save(),Vq(o,y,S,l),r){const e=new Image;e.onload=()=>{o.drawImage(e,f,g,v,b),o.restore(),Vq(o,C,k,l),o.drawImage(e,$,x,v,b),O(n.toDataURL(),c)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=r}else w(o,f,g,v,b),o.restore(),Vq(o,C,k,l),w(o,$,x,v,b),O(n.toDataURL(),c)}};return Zn((()=>{S()})),bn((()=>e),(()=>{S()}),{deep:!0,flush:"post"}),Kn((()=>{y()})),Uq(r,(e=>{l.value||e.forEach((e=>{((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>e===t))),"attributes"===e.type&&e.target===t&&(n=!0),n})(e,i.value)&&(y(),S())}))}),{attributes:!0}),()=>{var t;return br("div",sl(sl({},o),{},{ref:r,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}));function Gq(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function qq(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Jq=cl({overflow:"hidden"},Wu),eJ=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl({},Xu(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":cl(cl({},qq(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":cl({minHeight:e.controlHeight-2*e.segmentedContainerPadding,lineHeight:e.controlHeight-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},Jq),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:cl(cl({},qq(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedContainerPadding,lineHeight:e.controlHeightLG-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedContainerPadding,lineHeight:e.controlHeightSM-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Gq(`&-disabled ${t}-item`,e)),Gq(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},tJ=Ku("Segmented",(e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:i,colorBgLayout:l,colorBgElevated:a}=e,s=Ju(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:l,bgColorHover:i,bgColorSelected:a});return[eJ(s)]})),nJ=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,oJ=e=>void 0!==e?`${e}px`:void 0,rJ=jn({props:{value:xa(),getValueIndex:xa(),prefixCls:xa(),motionName:xa(),onMotionStart:xa(),onMotionEnd:xa(),direction:xa(),containerRef:xa()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=bt(),r=t=>{var n;const o=e.getValueIndex(t),r=null===(n=e.containerRef.value)||void 0===n?void 0:n.querySelectorAll(`.${e.prefixCls}-item`)[o];return(null==r?void 0:r.offsetParent)&&r},i=bt(null),l=bt(null);bn((()=>e.value),((e,t)=>{const o=r(t),a=r(e),s=nJ(o),c=nJ(a);i.value=s,l.value=c,n(o&&a?"motionStart":"motionEnd")}),{flush:"post"});const a=Lr((()=>{var t,n;return"rtl"===e.direction?oJ(-(null===(t=i.value)||void 0===t?void 0:t.right)):oJ(null===(n=i.value)||void 0===n?void 0:n.left)})),s=Lr((()=>{var t,n;return"rtl"===e.direction?oJ(-(null===(t=l.value)||void 0===t?void 0:t.right)):oJ(null===(n=l.value)||void 0===n?void 0:n.left)}));let c;const u=e=>{clearTimeout(c),Ft((()=>{e&&(e.style.transform="translateX(var(--thumb-start-left))",e.style.width="var(--thumb-start-width)")}))},d=t=>{c=setTimeout((()=>{t&&(Vk(t,`${e.motionName}-appear-active`),t.style.transform="translateX(var(--thumb-active-left))",t.style.width="var(--thumb-active-width)")}))},p=t=>{i.value=null,l.value=null,t&&(t.style.transform=null,t.style.width=null,Uk(t,`${e.motionName}-appear-active`)),n("motionEnd")},h=Lr((()=>{var e,t;return{"--thumb-start-left":a.value,"--thumb-start-width":oJ(null===(e=i.value)||void 0===e?void 0:e.width),"--thumb-active-left":s.value,"--thumb-active-width":oJ(null===(t=l.value)||void 0===t?void 0:t.width)}}));return Kn((()=>{clearTimeout(c)})),()=>{const t={ref:o,style:h.value,class:[`${e.prefixCls}-thumb`]};return br(qr,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:p},{default:()=>[i.value&&l.value?br("div",t,null):null]})}}}),iJ=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:i,payload:l,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e;return br("label",{class:xl({[`${s}-item-disabled`]:i},d)},[br("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:u,onChange:e=>{i||o("change",e,r)}},null),br("div",{class:`${s}-item-label`,title:"string"==typeof a?a:""},["function"==typeof c?c({value:r,disabled:i,payload:l,title:a}):null!=c?c:r])])};iJ.inheritAttrs=!1;const lJ=ya(jn({name:"ASegmented",inheritAttrs:!1,props:Vl({prefixCls:String,options:Ca(),block:Sa(),disabled:Sa(),size:ka(),value:cl(cl({},Pa([String,Number])),{required:!0}),motionName:String,onChange:$a(),"onUpdate:value":$a()},{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,size:a}=$d("segmented",e),[s,c]=tJ(i),u=yt(),d=yt(!1),p=Lr((()=>e.options.map((e=>"object"==typeof e&&null!==e?e:{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e})))),h=(t,o)=>{e.disabled||(n("update:value",o),n("change",o))};return()=>{const t=i.value;return s(br("div",sl(sl({},r),{},{class:xl(t,{[c.value]:!0,[`${t}-block`]:e.block,[`${t}-disabled`]:e.disabled,[`${t}-lg`]:"large"==a.value,[`${t}-sm`]:"small"==a.value,[`${t}-rtl`]:"rtl"===l.value},r.class),ref:u}),[br("div",{class:`${t}-group`},[br(rJ,{containerRef:u,prefixCls:t,value:e.value,motionName:`${t}-${e.motionName}`,direction:l.value,getValueIndex:e=>p.value.findIndex((t=>t.value===e)),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),p.value.map((n=>br(iJ,sl(sl({key:n.value,prefixCls:t,checked:n.value===e.value,onChange:h},n),{},{className:xl(n.className,`${t}-item`,{[`${t}-item-selected`]:n.value===e.value&&!d.value}),disabled:!!e.disabled||!!n.disabled}),o)))])]))}}})),aJ=Ku("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:cl(cl({},Xu(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}})(Ju(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})))),sJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};function cJ(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:ka("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:wa()}); +let Xi;const Yi=e=>Xi=e,Vi=Symbol();function Zi(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ui,Ki;(Ki=Ui||(Ui={})).direct="direct",Ki.patchObject="patch object",Ki.patchFunction="patch function";const Gi=()=>{};function qi(e,t,n,o=Gi){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&J()&&ee(r),r}function Ji(e,...t){e.slice().forEach((e=>{e(...t)}))}const el=e=>e();function tl(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Zi(r)&&Zi(o)&&e.hasOwnProperty(n)&&!vt(o)&&!at(o)?e[n]=tl(r,o):e[n]=o}return e}const nl=Symbol(),{assign:ol}=Object;function rl(e,t,n={},o,r,i){let l;const a=ol({actions:{}},n),s={deep:!0};let c,u,d,p=[],h=[];const f=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:Ui.patchFunction,storeId:e,events:d}):(tl(o.state.value[e],t),n={type:Ui.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();Ft().then((()=>{g===r&&(c=!0)})),u=!0,Ji(p,n,o.state.value[e])}i||f||(o.state.value[e]={}),bt({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ol(e,t)}))}:Gi;function b(t,n){return function(){Yi(o);const r=Array.from(arguments),i=[],l=[];let a;Ji(h,{args:r,name:t,store:y,after:function(e){i.push(e)},onError:function(e){l.push(e)}});try{a=n.apply(this&&this.$id===e?this:y,r)}catch(s){throw Ji(l,s),s}return a instanceof Promise?a.then((e=>(Ji(i,e),e))).catch((e=>(Ji(l,e),Promise.reject(e)))):(Ji(i,a),a)}}const y=rt({_p:o,$id:e,$onAction:qi.bind(null,h),$patch:m,$reset:v,$subscribe(t,n={}){const r=qi(p,t,n.detached,(()=>i())),i=l.run((()=>bn((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Ui.direct,events:d},o)}),ol({},s,n))));return r},$dispose:function(){l.stop(),p=[],h=[],o._s.delete(e)}});o._s.set(e,y);const O=(o._a&&o._a.runWithContext||el)((()=>o._e.run((()=>(l=q()).run(t)))));for(const $ in O){const t=O[$];if(vt(t)&&(!vt(S=t)||!S.effect)||at(t))i||(!f||Zi(w=t)&&w.hasOwnProperty(nl)||(vt(t)?t.value=f[$]:tl(t,f[$])),o.state.value[e][$]=t);else if("function"==typeof t){const e=b($,t);O[$]=e,a.actions[$]=t}}var w,S;return ol(y,O),ol(dt(y),O),Object.defineProperty(y,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ol(t,e)}))}}),o._p.forEach((e=>{ol(y,l.run((()=>e({store:y,app:o._a,pinia:o,options:a}))))})),f&&i&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function il(e){return(il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ll(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=il(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:String(t)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sl(e){for(var t=1;tnull!==e&&"object"==typeof e,pl=/^on[^a-z]/,hl=e=>pl.test(e),fl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gl=/-(\w)/g,ml=fl((e=>e.replace(gl,((e,t)=>t?t.toUpperCase():"")))),vl=/\B([A-Z])/g,bl=fl((e=>e.replace(vl,"-$1").toLowerCase())),yl=fl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ol=Object.prototype.hasOwnProperty,wl=(e,t)=>Ol.call(e,t);function Sl(e){return"number"==typeof e?`${e}px`:e}function $l(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):null!=e?e:t}function xl(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){kl&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Il?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){kl&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ml.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Al=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),Wl="undefined"!=typeof WeakMap?new WeakMap:new Cl,Xl=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=El.getInstance(),o=new Fl(t,n,this);Wl.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){Xl.prototype[e]=function(){var t;return(t=Wl.get(this))[e].apply(t,arguments)}}));const Yl=void 0!==Pl.ResizeObserver?Pl.ResizeObserver:Xl,Vl=e=>null!=e&&""!==e,Zl=(e,t)=>{const n=cl({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},Ul=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,l=t.length;ivoid 0!==e[t],Gl=Symbol("skipFlatten"),ql=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{Array.isArray(e)?o.push(...ql(e,t)):e&&e.type===er?e.key===Gl?o.push(e):o.push(...ql(e.children,t)):e&&pr(e)?t&&!ia(e)?o.push(e):t||o.push(e):Vl(e)&&o.push(e)})),o},Jl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(pr(e))return e.type===er?"default"===t?ql(e.children):[]:e.children&&e.children[t]?ql(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return ql(o)}},ea=e=>{var t;let n=(null===(t=null==e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},ta=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],i=bl(o);(void 0!==r||i in n)&&(t[o]=r)}))}else if(pr(e)&&"object"==typeof e.type){const n=e.props||{},o={};Object.keys(n).forEach((e=>{o[ml(e)]=n[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const n=function(e,t,n,o){const r=e[n];if(null!=r){const e=wl(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&"function"==typeof e?e():e}r.type===Boolean&&(wl(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t},na=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const i=e[n];if(void 0!==i)return"function"==typeof i&&r?i(o):i;t=e.$slots[n],t=r&&t?t(o):t}else if(pr(e)){const i=e.props&&e.props[n];if(void 0!==i&&null!==e.props)return"function"==typeof i&&r?i(o):i;e.type===er?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=r&&t?t(o):t)}return Array.isArray(t)&&(t=ql(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t};function oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?cl(cl({},n),e.$attrs):cl(cl({},n),e.props),Ul(n)[t?"onEvents":"events"]}function ra(e,t){let n=((pr(e)?e.props:e.$attrs)||{}).style||{};if("string"==typeof n)n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},o=/:(.+)/;return"object"==typeof e?e:(e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?ml(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(n,t);else if(t&&n){const e={};return Object.keys(n).forEach((t=>e[ml(t)]=n[t])),e}return n}function ia(e){return e&&(e.type===nr||e.type===er&&0===e.children.length||e.type===tr&&""===e.children.trim())}function la(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{Array.isArray(t)?e.push(...t):(null==t?void 0:t.type)===er?e.push(...la(t.children)):e.push(t)})),e.filter((e=>!ia(e)))}function aa(e){if(e){const t=la(e);return t.length?t:void 0}return e}function sa(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function ca(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var o,r;return null!==(o=t[n])&&void 0!==o?o:null===(r=e[n])||void 0===r?void 0:r.call(e)}const ua=jn({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=rt({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},a=t=>{const{onResize:n}=e,r=t[0].target,{width:i,height:l}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,c=Math.floor(i),u=Math.floor(l);if(o.width!==c||o.height!==u||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:c,height:u,offsetWidth:a,offsetHeight:s};cl(o,e),n&&Promise.resolve().then((()=>{n(cl(cl({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},s=Mr(),c=()=>{const{disabled:t}=e;if(t)return void l();const n=ea(s);n!==r&&(l(),r=n),!i&&n&&(i=new Yl(a),i.observe(n))};return Vn((()=>{c()})),Un((()=>{c()})),Gn((()=>{l()})),bn((()=>e.disabled),(()=>{c()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let da=e=>setTimeout(e,16),pa=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(da=e=>window.requestAnimationFrame(e),pa=e=>window.cancelAnimationFrame(e));let ha=0;const fa=new Map;function ga(e){fa.delete(e)}function ma(e){ha+=1;const t=ha;return function n(o){if(0===o)ga(t),e();else{const e=da((()=>{n(o-1)}));fa.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}function va(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r()=>{t=null,e(...n)})(o))}};return n.cancel=()=>{ma.cancel(t),t=null},n}ma.cancel=e=>{const t=fa.get(e);return ga(t),pa(t)};const ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Oa(){return{type:[Function,Array]}}function wa(e){return{type:Object,default:e}}function Sa(e){return{type:Boolean,default:e}}function $a(e){return{type:Function,default:e}}function xa(e,t){const n={validator:()=>!0,default:e};return n}function Ca(e){return{type:Array,default:e}}function ka(e){return{type:String,default:e}}function Pa(e,t){return e?{type:e,default:t}:xa(t)}let Ta=!1;try{const e=Object.defineProperty({},"passive",{get(){Ta=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(Uue){}const Ma=Ta;function Ia(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0!==r||!Ma||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Ea(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Aa(e,t,n){if(void 0!==n&&t.top>e.top-n)return`${n+t.top}px`}function Da(e,t,n){if(void 0!==n&&t.bottomt.target===e));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},za.push(n),Ra.forEach((t=>{n.eventHandlers[t]=Ia(e,t,(()=>{n.affixList.forEach((e=>{const{lazyUpdatePosition:t}=e.exposed;t()}),!("touchstart"!==t&&"touchmove"!==t||!Ma)&&{passive:!0})}))})))}function ja(e){const t=za.find((t=>{const n=t.affixList.some((t=>t===e));return n&&(t.affixList=t.affixList.filter((t=>t!==e))),n}));t&&0===t.affixList.length&&(za=za.filter((e=>e!==t)),Ra.forEach((e=>{const n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}const Na="anticon",_a=Symbol("GlobalFormContextKey"),Qa=Symbol("configProvider"),La={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Lr((()=>Na)),getPopupContainer:Lr((()=>()=>document.body)),direction:Lr((()=>"ltr"))},Ha=()=>Mo(Qa,La),Fa=Symbol("DisabledContextKey"),Wa=()=>Mo(Fa,bt(void 0)),Xa=e=>{const t=Wa();return To(Fa,Lr((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},Ya={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Va={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Za={lang:cl({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:cl({},Va)},Ua="${label} is not a valid ${type}",Ka={locale:"en",Pagination:Ya,DatePicker:Za,TimePicker:Va,Calendar:Za,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ua,method:Ua,array:Ua,object:Ua,number:Ua,date:Ua,boolean:Ua,integer:Ua,float:Ua,regexp:Ua,email:Ua,url:Ua,hex:Ua},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},Ga=jn({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=Mo("localeData",{}),r=Lr((()=>{const{componentName:t="global",defaultLocale:n}=e,r=n||Ka[t||"global"],{antLocale:i}=o,l=t&&i?i[t]:{};return cl(cl({},"function"==typeof r?r():r),l||{})})),i=Lr((()=>{const{antLocale:e}=o,t=e&&e.locale;return e&&e.exist&&!t?Ka.locale:t}));return()=>{const t=e.children||n.default,{antLocale:l}=o;return null==t?void 0:t(r.value,i.value,l)}}});function qa(e,t,n){const o=Mo("localeData",{});return[Lr((()=>{const{antLocale:r}=o,i=St(t)||Ka[e||"global"],l=e&&r?r[e]:{};return cl(cl(cl({},"function"==typeof i?i():i),l||{}),St(n)||{})}))]}function Ja(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const es=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}},ts="data-token-hash",ns="data-css-hash",os="__cssinjs_instance__";function rs(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ns}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[os]=t[os]||e,t[os]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${ns}]`)).forEach((t=>{var n;const r=t.getAttribute(ns);o[r]?t[os]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new es(e)}const is=Symbol("StyleContextKey"),ls={cache:rs(),defaultCache:!0,hashPriority:"low"},as=()=>{const e=(()=>{var e,t,n;const o=Mr();let r;if(o&&o.appContext){const i=null===(n=null===(t=null===(e=o.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;i?r=i:(r=rs(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=rs();return r})();return Mo(is,yt(cl(cl({},ls),{cache:e})))},ss=e=>{const t=as(),n=yt(cl(cl({},ls),{cache:rs()}));return bn([()=>St(e),t],(()=>{const o=cl({},t.value),r=St(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:i}=r;o.cache=o.cache||rs(),o.defaultCache=!i&&t.value.defaultCache,n.value=o}),{immediate:!0}),To(is,n),n},cs=ya(jn({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:Sa(),mock:ka(),cache:wa(),defaultCache:Sa(),hashPriority:ka(),container:Pa(),ssrInline:Sa(),transformers:Ca(),linters:Ca()},setup(e,t){let{slots:n}=t;return ss(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function us(e,t,n,o){const r=as(),i=yt(""),l=yt();mn((()=>{i.value=[e,...t.value].join("%")}));const a=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return 0==t-1?(null==o||o(n,!1),null):[t-1,n]}))};return bn(i,((e,t)=>{t&&a(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),l.value=r.value.cache.get(i.value)[1]}),{immediate:!0}),Kn((()=>{a(i.value)})),l}function ds(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function ps(e,t){return!!e&&!!e.contains&&e.contains(t)}const hs="data-vc-order",fs=new Map;function gs(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function ms(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function vs(e){return Array.from((fs.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ds())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(hs,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),(null==n?void 0:n.nonce)&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const i=ms(t),{firstChild:l}=i;if(o){if("queue"===o){const e=vs(i).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(hs))));if(e.length)return i.insertBefore(r,e[e.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vs(ms(t)).find((n=>n.getAttribute(gs(t))===e))}function Os(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=ys(e,t);n&&ms(t).removeChild(n)}function ws(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,i;!function(e,t){const n=fs.get(e);if(!n||!ps(document,n)){const n=bs("",t),{parentNode:o}=n;fs.set(e,o),e.removeChild(n)}}(ms(n),n);const l=ys(t,n);if(l)return(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&l.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(l.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const a=bs(e,n);return a.setAttribute(gs(n),t),a}class Ss{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),(null==n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>Ss.MAX_CACHE_SIZE+Ss.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n0),Ms+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const Es=new Ss;function As(e){const t=Array.isArray(e)?e:[e];return Es.has(t)||Es.set(t,new Is(t)),Es.get(t)}const Ds=new WeakMap;function Rs(e){let t=Ds.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof Is?o.id:o&&"object"==typeof o?Rs(o):o})),Ds.set(e,t)),t}const zs=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Bs="_bAmBoO_";let js;function Ns(){return void 0===js&&(js=function(e,t,n){var o,r;if(ds()){ws(e,zs);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);const l=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Bs);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),Os(zs),l}return!1}(`@layer ${zs} { .${zs} { content: "${Bs}"!important; } }`,(e=>{e.className=zs}))),js}const _s={},Qs=new Map;function Ls(e,t){Qs.set(e,(Qs.get(e)||0)-1);const n=Array.from(Qs.keys()),o=n.filter((e=>(Qs.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${ts}="${e}"]`).forEach((e=>{var n;e[os]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Qs.delete(e)}))}function Hs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt({});const o=as(),r=Lr((()=>cl({},...t.value))),i=Lr((()=>Rs(r.value))),l=Lr((()=>Rs(n.value.override||_s))),a=us("token",Lr((()=>[n.value.salt||"",e.value.id,i.value,l.value])),(()=>{const{salt:t="",override:o=_s,formatToken:i,getComputedToken:l}=n.value,a=l?l(r.value,o,e.value):((e,t,n,o)=>{let r=cl(cl({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r})(r.value,o,e.value,i),s=function(e,t){return Ja(`${t}_${Rs(e)}`)}(a,t);a._tokenKey=s,function(e){Qs.set(e,(Qs.get(e)||0)+1)}(s);const c=`css-${Ja(s)}`;return a._hashId=c,[a,c]}),(e=>{var t;Ls(e[0]._tokenKey,null===(t=o.value)||void 0===t?void 0:t.cache.instanceId)}));return a}var Fs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ws="comm",Xs="rule",Ys="decl",Vs=Math.abs,Zs=String.fromCharCode;function Us(e){return e.trim()}function Ks(e,t,n){return e.replace(t,n)}function Gs(e,t){return e.indexOf(t)}function qs(e,t){return 0|e.charCodeAt(t)}function Js(e,t,n){return e.slice(t,n)}function ec(e){return e.length}function tc(e,t){return t.push(e),e}var nc=1,oc=1,rc=0,ic=0,lc=0,ac="";function sc(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:nc,column:oc,length:l,return:"",siblings:a}}function cc(){return lc=ic2||hc(lc)>3?"":" "}function mc(e,t){for(;--t&&cc()&&!(lc<48||lc>102||lc>57&&lc<65||lc>70&&lc<97););return pc(e,dc()+(t<6&&32==uc()&&32==cc()))}function vc(e){for(;cc();)switch(lc){case e:return ic;case 34:case 39:34!==e&&39!==e&&vc(lc);break;case 40:41===e&&vc(e);break;case 92:cc()}return ic}function bc(e,t){for(;cc()&&e+lc!==57&&(e+lc!==84||47!==uc()););return"/*"+pc(t,ic-1)+"*"+Zs(47===e?e:cc())}function yc(e){for(;!hc(uc());)cc();return pc(e,ic)}function Oc(e){return function(e){return ac="",e}(wc("",null,null,null,[""],e=function(e){return nc=oc=1,rc=ec(ac=e),ic=0,[]}(e),0,[0],e))}function wc(e,t,n,o,r,i,l,a,s){for(var c=0,u=0,d=l,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",O=r,w=i,S=o,$=y;m;)switch(f=b,b=cc()){case 40:if(108!=f&&58==qs($,d-1)){-1!=Gs($+=Ks(fc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:$+=fc(b);break;case 9:case 10:case 13:case 32:$+=gc(f);break;case 92:$+=mc(dc()-1,7);continue;case 47:switch(uc()){case 42:case 47:tc($c(bc(cc(),dc()),t,n,s),s);break;default:$+="/"}break;case 123*g:a[c++]=ec($)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&($=Ks($,/\f/g,"")),h>0&&ec($)-d&&tc(h>32?xc($+";",o,n,d-1,s):xc(Ks($," ","")+";",o,n,d-2,s),s);break;case 59:$+=";";default:if(tc(S=Sc($,t,n,c,u,r,a,y,O=[],w=[],d,i),i),123===b)if(0===u)wc($,t,S,S,O,i,d,a,w);else switch(99===p&&110===qs($,3)?100:p){case 100:case 108:case 109:case 115:wc(e,S,S,o&&tc(Sc(e,S,S,0,0,r,a,y,r,O=[],d,w),w),r,w,d,a,o?O:w);break;default:wc($,S,S,S,[""],w,0,a,w)}}c=u=h=0,g=v=1,y=$="",d=l;break;case 58:d=1+ec($),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==(lc=ic>0?qs(ac,--ic):0,oc--,10===lc&&(oc=1,nc--),lc))continue;switch($+=Zs(b),b*g){case 38:v=u>0?1:($+="\f",-1);break;case 44:a[c++]=(ec($)-1)*v,v=1;break;case 64:45===uc()&&($+=fc(cc())),p=uc(),u=d=ec(y=$+=yc(dc())),b++;break;case 45:45===f&&2==ec($)&&(g=0)}}return i}function Sc(e,t,n,o,r,i,l,a,s,c,u,d){for(var p=r-1,h=0===r?i:[""],f=function(e){return e.length}(h),g=0,m=0,v=0;g0?h[b]+" "+y:Ks(y,/&\f/g,h[b])))&&(s[v++]=O);return sc(e,t,n,0===r?Xs:a,s,c,u,d)}function $c(e,t,n,o){return sc(e,t,n,Ws,Zs(lc),Js(e,2,-2),0,o)}function xc(e,t,n,o,r){return sc(e,t,n,Ys,Js(e,0,o),Js(e,o+1,-1),o,r)}function Cc(e,t){for(var n="",o=0;o ")}`:""}`)}function Tc(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const Mc=(e,t,n)=>{const o=function(e){return e.parentSelectors.reduce(((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t),"")}(n),r=o.match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(Tc)&&Pc("Concat ':not' selector not support in legacy browsers.",n)},Ic=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void Pc(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){const o=t.split(" ").map((e=>e.trim()));4===o.length&&o[1]!==o[3]&&Pc(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":return void("left"!==t&&"right"!==t||Pc(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n));case"borderRadius":return void("string"==typeof t&&t.split("/").map((e=>e.trim())).reduce(((e,t)=>{if(e)return e;const n=t.split(" ").map((e=>e.trim()));return n.length>=2&&n[0]!==n[1]||3===n.length&&n[1]!==n[2]||4===n.length&&n[2]!==n[3]||e}),!1)&&Pc(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n))}},Ec=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&Pc("Should not use more than one `&` in a selector.",n)},Ac="data-ant-cssinjs-cache-path";let Dc,Rc=!0;function zc(e){return function(){var e;if(!Dc&&(Dc={},ds())){const t=document.createElement("div");t.className=Ac,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");Dc[t]=n}));const o=document.querySelector(`style[${Ac}]`);o&&(Rc=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!Dc[e]}const Bc=ds(),jc="_multi_value_";function Nc(e){return Cc(Oc(e),kc).replace(/\{%%%\:[^;];}/g,";")}const _c=new Set,Qc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:l,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",p={};function h(e){const n=e.getName(i);if(!p[n]){const[o]=Qc(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(i)}${o}`}}const f=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]);if(f.forEach((e=>{const l="string"!=typeof e||n?e:{};if("string"==typeof l)d+=`${l}\n`;else if(l._keyframe)h(l);else{const e=c.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),l);Object.keys(e).forEach((l=>{var a;const c=e[l];if("object"!=typeof c||!c||"animationName"===l&&c._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||jc in e)}(c)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;Fs[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(h(t),o=t.getName(i)),d+=`${n}:${o};`};const t=null!==(a=null==c?void 0:c.value)&&void 0!==a?a:c;"object"==typeof c&&(null==c?void 0:c[jc])&&Array.isArray(t)?t.forEach((t=>{e(l,t)})):e(l,t)}else{let e=!1,a=l.trim(),u=!1;(n||o)&&i?a.startsWith("@")?e=!0:a=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${i}${r}${o.slice(i.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(l,i,s):!n||i||"&"!==a&&""!==a||(a="",u=!0);const[h,f]=Qc(c,t,{root:u,injectHash:e,parentSelectors:[...r,a]});p=cl(cl({},p),f),d+=`${a}${h}`}}))}})),n){if(l&&Ns()){const e=l.split(","),t=e[e.length-1].trim();d=`@layer ${t} {${d}}`,e.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Lc(e,t){const n=as(),o=Lr((()=>e.value.token._tokenKey)),r=Lr((()=>[o.value,...e.value.path]));let i=Bc;return us("style",r,(()=>{const{path:l,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,p=r.value.join("|");if(zc(p)){const[e,t]=function(e){const t=Dc[e];let n=null;if(t&&ds())if(Rc)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${ns}="${Dc[e]}"]`);t?n=t.innerHTML:delete Dc[e]}return[n,t]}(p);if(e)return[e,o.value,t,{},u,d]}const h=t(),{hashPriority:f,container:g,transformers:m,linters:v,cache:b}=n.value,[y,O]=Qc(h,{hashId:a,hashPriority:f,layer:s,path:l.join("-"),transformers:m,linters:v}),w=Nc(y),S=function(e,t){return Ja(`${e.join("%")}${t}`)}(r.value,w);if(i){const e={mark:ns,prepend:"queue",attachTo:g,priority:d},t="function"==typeof c?c():c;t&&(e.csp={nonce:t});const n=ws(w,S,e);n[os]=b.instanceId,n.setAttribute(ts,o.value),Object.keys(O).forEach((e=>{_c.has(e)||(_c.add(e),ws(Nc(O[e]),`_effect-${e}`,{mark:ns,prepend:"queue",attachTo:g}))}))}return[w,o.value,S,O,u,d]}),((e,t)=>{let[,,o]=e;(t||n.value.autoClear)&&Bc&&Os(o,{mark:ns})})),e=>e}const Hc=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}};function Fc(e){return e.notSplit=!0,e}const Wc={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Fc(["borderTop","borderBottom"]),borderBlockStart:Fc(["borderTop"]),borderBlockEnd:Fc(["borderBottom"]),borderInline:Fc(["borderLeft","borderRight"]),borderInlineStart:Fc(["borderLeft"]),borderInlineEnd:Fc(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Xc(e){return{_skip_check_:!0,value:e}}const Yc=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g,Vc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(e,o)=>{if(!o)return e;const r=parseFloat(o);if(r<=1)return e;const i=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(r/t,n);return`${i}rem`};return{visit:e=>{const t=cl({},e);return Object.entries(e).forEach((e=>{let[n,i]=e;if("string"==typeof i&&i.includes("px")){const e=i.replace(Yc,r);t[n]=e}Fs[n]||"number"!=typeof i||0===i||(t[n]=`${i}px`.replace(Yc,r));const l=n.trim();if(l.startsWith("@")&&l.includes("px")&&o){const e=n.replace(Yc,r);t[e]=t[n],delete t[n]}})),t}}},Zc={Theme:Is,createTheme:As,useStyleRegister:Lc,useCacheToken:Hs,createCache:rs,useStyleInject:as,useStyleProvider:ss,Keyframes:Hc,extractStyle:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="style%",o=Array.from(e.cache.keys()).filter((e=>e.startsWith(n))),r={},i={};let l="";function a(e,n,o){const r=cl(cl({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{[ts]:n,[ns]:o}),i=Object.keys(r).map((e=>{const t=r[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:``}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,l,s,c,u,d]=e.cache.get(t)[1];if(u)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let h=a(o,l,s,p);return i[n]=s,c&&Object.keys(c).forEach((e=>{r[e]||(r[e]=!0,h+=a(Nc(c[e]),l,`_effect-${e}`,p))})),[d,h]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{let[,t]=e;l+=t})),l+=a(`.${Ac}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(i)}";}`,void 0,void 0,{[Ac]:Ac}),l},legacyLogicalPropertiesTransformer:{visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=Wc[n];if(!r||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{const e=function(e){if("number"==typeof e)return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce(((e,t)=>(t.includes("(")?(n+=t,o+=t.split("(").length-1):t.includes(")")?(n+=` ${t}`,o-=t.split(")").length-1,0===o&&(e.push(n),n="")):o>0?n+=` ${t}`:e.push(t),e)),[])}(o);r.length&&r.notSplit?r.forEach((e=>{t[e]=Xc(o)})):1===r.length?t[r[0]]=Xc(o):2===r.length?r.forEach(((n,o)=>{var r;t[n]=Xc(null!==(r=e[o])&&void 0!==r?r:e[0])})):4===r.length?r.forEach(((n,o)=>{var r,i;t[n]=Xc(null!==(i=null!==(r=e[o])&&void 0!==r?r:e[o-2])&&void 0!==i?i:e[0])})):t[n]=o}})),t}},px2remTransformer:Vc,logicalPropertiesLinter:Ic,legacyNotSelectorLinter:Mc,parentSelectorLinter:Ec,StyleProvider:cs},Uc=Zc,Kc="4.0.6",Gc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function qc(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Jc(e){return Math.min(1,Math.max(0,e))}function eu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(100*Number(e),"%"):e}function nu(e){return 1===e.length?"0"+e:String(e)}function ou(e,t,n){e=qc(e,255),t=qc(t,255),n=qc(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=0,a=(o+r)/2;if(o===r)l=0,i=0;else{var s=o-r;switch(l=a>.5?s/(2-o-r):s/(o+r),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iu(e,t,n){e=qc(e,255),t=qc(t,255),n=qc(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=o,a=o-r,s=0===o?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=uu(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=eu(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=iu(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=iu(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ou(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ou(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),lu(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,l=[nu(Math.round(e).toString(16)),nu(Math.round(t).toString(16)),nu(Math.round(n).toString(16)),nu((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*qc(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*qc(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+lu(this.r,this.g,this.b,!1),t=0,n=Object.entries(cu);t=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jc(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jc(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jc(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,l=[],a=1/t;t--;)l.push(new e({h:o,s:r,v:i})),i=(i+a)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,l=1;l=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function wu(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Su(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function $u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=uu(e),r=5;r>0;r-=1){var i=bu(o),l=yu(uu({h:Ou(i,r,!0),s:wu(i,r,!0),v:Su(i,r,!0)}));n.push(l)}n.push(yu(o));for(var a=1;a<=4;a+=1){var s=bu(o),c=yu(uu({h:Ou(s,a),s:wu(s,a),v:Su(s,a)}));n.push(c)}return"dark"===t.theme?vu.map((function(e){var o,r,i,l=e.index,a=e.opacity;return yu((o=uu(t.backgroundColor||"#141414"),r=uu(n[l]),i=100*a/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var xu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Cu={},ku={};Object.keys(xu).forEach((function(e){Cu[e]=$u(xu[e]),Cu[e].primary=Cu[e][5],ku[e]=$u(xu[e],{theme:"dark",backgroundColor:"#141414"}),ku[e].primary=ku[e][5]}));var Pu=Cu.gold,Tu=Cu.blue;const Mu=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},Iu={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Eu=cl(cl({},Iu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),Au=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}},Du=(e,t)=>new mu(e).setAlpha(t).toRgbString(),Ru=(e,t)=>new mu(e).darken(t).toHexString(),zu=e=>{const t=$u(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Bu=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Du(o,.88),colorTextSecondary:Du(o,.65),colorTextTertiary:Du(o,.45),colorTextQuaternary:Du(o,.25),colorFill:Du(o,.15),colorFillSecondary:Du(o,.06),colorFillTertiary:Du(o,.04),colorFillQuaternary:Du(o,.02),colorBgLayout:Ru(n,4),colorBgContainer:Ru(n,0),colorBgElevated:Ru(n,0),colorBgSpotlight:Du(o,.85),colorBorder:Ru(n,15),colorBorderSecondary:Ru(n,6)}},ju=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Nu(e){return e>=0&&e<=255}function _u(e,t){const{r:n,g:o,b:r,a:i}=new mu(e).toRgb();if(i<1)return e;const{r:l,g:a,b:s}=new mu(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-l*(1-c))/c),t=Math.round((o-a*(1-c))/c),i=Math.round((r-s*(1-c))/c);if(Nu(e)&&Nu(t)&&Nu(i))return new mu({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new mu({r:n,g:o,b:r,a:1}).toRgbString()}function Qu(e){const{override:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{delete o[e]}));const r=cl(cl({},n),o),i=1200,l=1600,a=2e3;return cl(cl(cl({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:_u(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:_u(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:_u(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:_u(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:l,screenXXLMin:l,screenXXLMax:1999,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new mu("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new mu("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new mu("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Lu=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Hu=(e,t,n,o,r)=>{const i=e/2,l=i,a=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,h=2*i-a,f=s,g=2*i-0,m=l,v=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,`path('M 0 ${l} A ${n} ${n} 0 0 0 ${a} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${h} ${f} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'}}};function Fu(e,t){return Gc.reduce(((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],l=e[`${o}-6`],a=e[`${o}-7`];return cl(cl({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))}),{})}const Wu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xu=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Yu=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Vu=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Zu=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Uu=e=>({"&:focus-visible":cl({},Zu(e))});function Ku(e,t,n){return o=>{const r=Lr((()=>null==o?void 0:o.value)),[i,l,a]=ad(),{getPrefixCls:s,iconPrefixCls:c}=Ha(),u=Lr((()=>s()));return Lc(Lr((()=>({theme:i.value,token:l.value,hashId:a.value,path:["Shared",u.value]}))),(()=>[{"&":Yu(l.value)}])),[Lc(Lr((()=>({theme:i.value,token:l.value,hashId:a.value,path:[e,r.value,c.value]}))),(()=>{const{token:o,flush:i}=function(e){let t,n=e,o=ed;return Gu&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(qu&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)}),{token:n,keys:t,flush:o}}(l.value),s=cl(cl({},"function"==typeof n?n(o):n),l.value[e]),d=Ju(o,{componentCls:`.${r.value}`,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},s),p=t(d,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:l.value[e]});return i(e,s),[Vu(l.value,r.value),p]})),a]}}const Gu="undefined"!=typeof CSSINJS_STATISTIC;let qu=!0;function Ju(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),qu=!0,o}function ed(){}function td(e){return vt(e)?rt(new Proxy({},{get:(t,n,o)=>Reflect.get(e.value,n,o),set:(t,n,o)=>(e.value[n]=o,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})})):rt(e)}const nd=As((function(e){const t=Object.keys(Iu).map((t=>{const n=$u(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=cl(cl({},e),t)),{});return cl(cl(cl(cl(cl(cl(cl({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(r),h=n(i),f=n(l),g=n(a);return cl(cl({},o(c,u)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new mu("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zu,generateNeutralColorPalettes:Bu})),ju(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Mu(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return cl({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},Au(o))}(e))})),od={token:Eu,hashed:!0},rd=Symbol("DesignTokenContext"),id=bt(),ld=jn({props:{value:wa()},setup(e,t){let{slots:n}=t;var o;return o=td(Lr((()=>e.value))),To(rd,o),mn((()=>{id.value=o})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function ad(){const e=Mo(rd,id.value||od),t=Lr((()=>`${Kc}-${e.hashed||""}`)),n=Lr((()=>e.theme||nd)),o=Hs(n,Lr((()=>[Eu,e.token])),Lr((()=>({salt:t.value,override:cl({override:e.token},e.components),formatToken:Qu}))));return[n,Lr((()=>o.value[0])),Lr((()=>e.hashed?o.value[1]:""))]}const sd=jn({compatConfig:{MODE:3},setup(){const[,e]=ad(),t=Lr((()=>new mu(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>br("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(24 31.67)"},[br("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),br("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),br("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),br("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),br("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),br("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),br("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[br("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),br("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});sd.PRESENTED_IMAGE_DEFAULT=!0;const cd=sd,ud=jn({compatConfig:{MODE:3},setup(){const[,e]=ad(),t=Lr((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new mu(t).onBackground(r).toHexString(),shadowColor:new mu(n).onBackground(r).toHexString(),contentColor:new mu(o).onBackground(r).toHexString()}}));return()=>br("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[br("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[br("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),br("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[br("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),br("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});ud.PRESENTED_IMAGE_SIMPLE=!0;const dd=ud,pd=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hd=Ku("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=Ju(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[pd(o)]})),fd=br(cd,null,null),gd=br(dd,null,null),md=jn({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:wa(),image:xa(),description:xa()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=$d("empty",e),[l,a]=hd(i);return()=>{var t,s;const c=i.value,u=cl(cl({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||fd,description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:h,class:f=""}=u,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=void 0!==p?p:e.description;let o=null;return o="string"==typeof d?br("img",{alt:"string"==typeof t?t:"empty",src:d},null):d,br("div",sl({class:xl(c,f,a.value,{[`${c}-normal`]:d===gd,[`${c}-rtl`]:"rtl"===r.value})},g),[br("div",{class:`${c}-image`,style:h},[o]),t&&br("p",{class:`${c}-description`},[t]),n.default&&br("div",{class:`${c}-footer`},[la(n.default())])])}},null))}}});md.PRESENTED_IMAGE_DEFAULT=fd,md.PRESENTED_IMAGE_SIMPLE=gd;const vd=ya(md),bd=e=>{const{prefixCls:t}=$d("empty",e);return(e=>{switch(e){case"Table":case"List":return br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return br(vd,null,null)}})(e.componentName)};function yd(e){return br(bd,{componentName:e},null)}const Od=Symbol("SizeContextKey"),wd=()=>Mo(Od,bt(void 0)),Sd=e=>{const t=wd();return To(Od,Lr((()=>e.value||t.value))),e},$d=(e,t)=>{const n=wd(),o=Wa(),r=Mo(Qa,cl(cl({},La),{renderEmpty:e=>Hr(bd,{componentName:e})})),i=Lr((()=>r.getPrefixCls(e,t.prefixCls))),l=Lr((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=r.direction)||void 0===n?void 0:n.value})),a=Lr((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:r.iconPrefixCls.value})),s=Lr((()=>r.getPrefixCls())),c=Lr((()=>{var e;return null===(e=r.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),u=r.renderEmpty,d=r.space,p=r.pageHeader,h=r.form,f=Lr((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=r.getTargetContainer)||void 0===n?void 0:n.value})),g=Lr((()=>{var e,n,o;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(o=r.getPopupContainer)||void 0===o?void 0:o.value})),m=Lr((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=r.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),v=Lr((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=r.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==m.value})),b=Lr((()=>t.size||n.value)),y=Lr((()=>{var e,n,o;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(o=null===(n=r.input)||void 0===n?void 0:n.value)||void 0===o?void 0:o.autocomplete})),O=Lr((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:o.value})),w=Lr((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:r.csp}));return{configProvider:r,prefixCls:i,direction:l,size:b,getTargetContainer:f,getPopupContainer:g,space:d,pageHeader:p,form:h,autoInsertSpaceInButton:c,renderEmpty:u,virtual:v,dropdownMatchSelectWidth:m,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:y,csp:w,iconPrefixCls:a,disabled:O,select:r.select}};function xd(e,t){const n=cl({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},kd=Ku("Affix",(e=>{const t=Ju(e,{zIndexPopup:e.zIndexBase+10});return[Cd(t)]}));function Pd(){return"undefined"!=typeof window?window:null}var Td,Md;(Md=Td||(Td={}))[Md.None=0]="None",Md[Md.Prepare=1]="Prepare";const Id=ya(jn({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Pd},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=yt(),a=yt(),s=rt({affixStyle:void 0,placeholderStyle:void 0,status:Td.None,lastAffix:!1,prevTarget:null,timeout:null}),c=Mr(),u=Lr((()=>void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop)),d=Lr((()=>e.offsetBottom)),p=()=>{cl(s,{status:Td.Prepare,affixStyle:void 0,placeholderStyle:void 0}),c.update()},h=va((()=>{p()})),f=va((()=>{const{target:t}=e,{affixStyle:n}=s;if(t&&n){const e=t();if(e&&l.value){const t=Ea(e),o=Ea(l.value),r=Aa(o,t,u.value),i=Da(o,t,d.value);if(void 0!==r&&n.top===r||void 0!==i&&n.bottom===i)return}}p()}));r({updatePosition:h,lazyUpdatePosition:f}),bn((()=>e.target),(e=>{const t=(null==e?void 0:e())||null;s.prevTarget!==t&&(ja(c),t&&(Ba(t,c),h()),s.prevTarget=t)})),bn((()=>[e.offsetTop,e.offsetBottom]),h),Vn((()=>{const{target:t}=e;t&&(s.timeout=setTimeout((()=>{Ba(t(),c),h()})))})),Un((()=>{(()=>{const{status:t,lastAffix:n}=s,{target:r}=e;if(t!==Td.Prepare||!a.value||!l.value||!r)return;const i=r();if(!i)return;const c={status:Td.None},p=Ea(l.value);if(0===p.top&&0===p.left&&0===p.width&&0===p.height)return;const h=Ea(i),f=Aa(p,h,u.value),g=Da(p,h,d.value);if(0!==p.top||0!==p.left||0!==p.width||0!==p.height){if(void 0!==f){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",top:f,width:e,height:t},c.placeholderStyle={width:e,height:t}}else if(void 0!==g){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",bottom:g,width:e,height:t},c.placeholderStyle={width:e,height:t}}c.lastAffix=!!c.affixStyle,n!==c.lastAffix&&o("change",c.lastAffix),cl(s,c)}})()})),Gn((()=>{clearTimeout(s.timeout),ja(c),h.cancel(),f.cancel()}));const{prefixCls:g}=$d("affix",e),[m,v]=kd(g);return()=>{var t;const{affixStyle:o,placeholderStyle:r}=s,c=xl({[g.value]:o,[v.value]:!0}),u=xd(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return m(br(ua,{onResize:h},{default:()=>[br("div",sl(sl(sl({},u),i),{},{ref:l}),[o&&br("div",{style:r,"aria-hidden":"true"},null),br("div",{class:c,ref:a,style:o},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}))}}}));function Ed(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Ad(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Dd(e,t){if(e.clientHeightt||i>e&&l=t&&a>=n?i-e-o:l>t&&an?l-t+r:0}var zd=function(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof l?l:function(e){return e!==l};if(!Ed(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],h=e;Ed(h)&&s(h);){if((h=null==(u=(c=h).parentElement)?c.getRootNode().host||null:u)===d){p.push(h);break}null!=h&&h===document.body&&Dd(h)&&!Dd(document.documentElement)||null!=h&&Dd(h,a)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,O=b.width,w=b.top,S=b.right,$=b.bottom,x=b.left,C="start"===r||"nearest"===r?w:"end"===r?$:w+y/2,k="center"===i?x+O/2:"end"===i?S:x,P=[],T=0;T=0&&x>=0&&$<=g&&S<=f&&w>=D&&$<=z&&x>=B&&S<=R)return P;var j=getComputedStyle(M),N=parseInt(j.borderLeftWidth,10),_=parseInt(j.borderTopWidth,10),Q=parseInt(j.borderRightWidth,10),L=parseInt(j.borderBottomWidth,10),H=0,F=0,W="offsetWidth"in M?M.offsetWidth-M.clientWidth-N-Q:0,X="offsetHeight"in M?M.offsetHeight-M.clientHeight-_-L:0,Y="offsetWidth"in M?0===M.offsetWidth?0:A/M.offsetWidth:0,V="offsetHeight"in M?0===M.offsetHeight?0:E/M.offsetHeight:0;if(d===M)H="start"===r?C:"end"===r?C-g:"nearest"===r?Rd(v,v+g,g,_,L,v+C,v+C+y,y):C-g/2,F="start"===i?k:"center"===i?k-f/2:"end"===i?k-f:Rd(m,m+f,f,N,Q,m+k,m+k+O,O),H=Math.max(0,H+v),F=Math.max(0,F+m);else{H="start"===r?C-D-_:"end"===r?C-z+L+X:"nearest"===r?Rd(D,z,E,_,L+X,C,C+y,y):C-(D+E/2)+X/2,F="start"===i?k-B-N:"center"===i?k-(B+A/2)+W/2:"end"===i?k-R+Q+W:Rd(B,R,A,N,Q+W,k,k+O,O);var Z=M.scrollLeft,U=M.scrollTop;C+=U-(H=Math.max(0,Math.min(U+H/V,M.scrollHeight-E/V+X))),k+=Z-(F=Math.max(0,Math.min(Z+F/Y,M.scrollWidth-A/Y+W)))}P.push({el:M,top:H,left:F})}return P};function Bd(e){return e===Object(e)&&0!==Object.keys(e).length}function jd(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Bd(t)&&"function"==typeof t.behavior)return t.behavior(n?zd(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Bd(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(zd(e,o),o.behavior)}}function Nd(e){return null!=e&&e===e.window}function _d(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return Nd(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Nd(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}function Qd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),l=_d(i,!0),a=Date.now(),s=()=>{const t=Date.now()-a,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,l,e,r);Nd(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{To(Hd,e)},Wd=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:cl(cl({},Xu(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":cl(cl({},Wu),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Xd=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},Yd=Ku("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,i=Ju(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Wd(i),Xd(i)]})),Vd=jn({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Zl({prefixCls:String,href:String,title:xa(),target:String,customTitleProps:wa()},{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:i,scrollTo:l,unregisterLink:a,registerLink:s,activeLink:c}=Mo(Hd,{registerLink:Ld,unregisterLink:Ld,scrollTo:Ld,activeLink:Lr((()=>"")),handleClick:Ld,direction:Lr((()=>"vertical"))}),{prefixCls:u}=$d("anchor",e),d=t=>{const{href:n}=e;i(t,{title:r,href:n}),l(n)};return bn((()=>e.href),((e,t)=>{Ft((()=>{a(t),s(e)}))})),Vn((()=>{s(e.href)})),Kn((()=>{a(e.href)})),()=>{var t;const{href:i,target:l,title:a=n.title,customTitleProps:s={}}=e,p=u.value;r="function"==typeof a?a(s):a;const h=c.value===i,f=xl(`${p}-link`,{[`${p}-link-active`]:h},o.class),g=xl(`${p}-link-title`,{[`${p}-link-title-active`]:h});return br("div",sl(sl({},o),{},{class:f}),[br("a",{class:g,href:i,title:"string"==typeof r?r:"",target:l,onClick:d},[n.customTitle?n.customTitle(s):r]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});function Zd(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function Jd(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var ep=Object.prototype,tp=ep.toString,np=ep.hasOwnProperty,op=/^\s*function (\w+)/;function rp(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(op);return o?o[1]:""}return""}var ip=function(e){var t,n;return!1!==Jd(e)&&"function"==typeof(t=e.constructor)&&!1!==Jd(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},lp=function(e){return e},ap=function(e,t){return np.call(e,t)},sp=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},cp=Array.isArray||function(e){return"[object Array]"===tp.call(e)},up=function(e){return"[object Function]"===tp.call(e)},dp=function(e){return ip(e)&&ap(e,"_vueTypes_name")},pp=function(e){return ip(e)&&(ap(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return ap(e,t)})))};function hp(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function fp(e,t,n){var o;void 0===n&&(n=!1);var r=!0,i="";o=ip(e)?e:{type:e};var l=dp(o)?o._vueTypes_name+" - ":"";if(pp(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&void 0===t)return r;cp(o.type)?(r=o.type.some((function(e){return!0===fp(e,t,!0)})),i=o.type.map((function(e){return rp(e)})).join(" or ")):r="Array"===(i=rp(o))?cp(t):"Object"===i?ip(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";var t=e.constructor.toString().match(op);return t?t[1]:""}(t)===i:t instanceof o.type}if(!r){var a=l+'value "'+t+'" should be of type "'+i+'"';return!1===n?(lp(a),!1):a}if(ap(o,"validator")&&up(o.validator)){var s=lp,c=[];if(lp=function(e){c.push(e)},r=o.validator(t),lp=s,!r){var u=(c.length>1?"* ":"")+c.join("\n* ");return c.length=0,!1===n?(lp(u),r):u}}return r}function gp(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?up(e)||!0===fp(this,e,!0)?(this.default=cp(e)?function(){return[].concat(e)}:ip(e)?function(){return Object.assign({},e)}:e,this):(lp(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return up(o)&&(n.validator=hp(o,n)),n}function mp(e,t){var n=gp(e,t);return Object.defineProperty(n,"validate",{value:function(e){return up(this.validator)&&lp(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=hp(e,this),this}})}function vp(e,t,n){var o,r,i=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(i._vueTypes_name=e,!ip(n))return i;var l,a,s=n.validator,c=qd(n,["validator"]);if(up(s)){var u=i.validator;u&&(u=null!==(a=(l=u).__original)&&void 0!==a?a:l),i.validator=hp(u?function(e){return u.call(this,e)&&s.call(this,e)}:s,i)}return Object.assign(i,c)}function bp(e){return e.replace(/^(?!\s*$)/gm," ")}var yp=function(){function e(){}return e.extend=function(e){var t=this;if(cp(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,i=e.getter,l=void 0!==i&&i,a=qd(e,["name","validate","getter"]);if(ap(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,c=a.type;return dp(c)?(delete a.type,Object.defineProperty(this,n,l?{get:function(){return vp(n,c,a)}}:{value:function(){var e,t=vp(n,c,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=l?{get:function(){var e=Object.assign({},a);return r?mp(n,e):gp(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?mp(n,o):gp(n,o),o.validator&&(e.validator=(t=o.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,s))},Ud(e,null,[{key:"any",get:function(){return mp("any",{})}},{key:"func",get:function(){return mp("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return mp("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return mp("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return mp("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return mp("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return mp("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return gp("integer",{type:Number,validator:function(e){return sp(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return gp("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function Op(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return Gd(n,t),Ud(n,null,[{key:"sensibleDefaults",get:function(){return Kd({},this.defaults)},set:function(t){this.defaults=!1!==t?Kd({},!0!==t?t:e):{}}}]),n}(yp)).defaults=Kd({},e),t}yp.defaults={},yp.custom=function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return gp(e.name||"<>",{validator:function(n){var o=e(n);return o||lp(this._vueTypes_name+" - "+t),o}})},yp.oneOf=function(e){if(!cp(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return gp("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||lp(t),o}})},yp.instanceOf=function(e){return gp("instanceOf",{type:e})},yp.oneOfType=function(e){if(!cp(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some((function(e){return-1===i.indexOf(e)}))){var l=n.filter((function(e){return-1===i.indexOf(e)}));return lp(1===l.length?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return i.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(lp('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var i=fp(e[n],o[n],!0);return"string"==typeof i&&lp('shape - "'+n+'" property validation error:\n '+bp(i)),!0===i}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},yp.utils={validate:function(e,t){return!0===fp(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?mp(e,t):gp(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}Gd(t,e)}(Op());const wp=Op({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function Sp(e){return e.default=void 0,e}wp.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const $p=wp,xp=(e,t,n)=>{Ps(e,`[ant-design-vue: ${t}] ${n}`)};function Cp(){return window}function kp(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Pp=/#([\S ]+)$/,Tp=jn({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Ca(),direction:$p.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function},setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{prefixCls:l,getTargetContainer:a,direction:s}=$d("anchor",e),c=Lr((()=>{var t;return null!==(t=e.direction)&&void 0!==t?t:"vertical"})),u=bt(null),d=bt(),p=rt({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),h=bt(null),f=Lr((()=>{const{getContainer:t}=e;return t||(null==a?void 0:a.value)||Cp})),g=t=>{const{getCurrentAnchor:o}=e;h.value!==t&&(h.value="function"==typeof o?o(t):t,n("change",t))},m=t=>{const{offsetTop:n,targetOffset:o}=e;g(t);const r=Pp.exec(t);if(!r)return;const i=document.getElementById(r[1]);if(!i)return;const l=f.value();let a=_d(l,!0)+kp(i,l);a-=void 0!==o?o:n||0,p.animating=!0,Qd(a,{callback:()=>{p.animating=!1},getContainer:f.value})};i({scrollTo:m});const v=()=>{if(p.animating)return;const{offsetTop:t,bounds:n,targetOffset:o}=e,r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=[],o=f.value();return p.links.forEach((r=>{const i=Pp.exec(r.toString());if(!i)return;const l=document.getElementById(i[1]);if(l){const i=kp(l,o);it.top>e.top?t:e)).link:""}(void 0!==o?o:t||0,n);g(r)};Fd({registerLink:e=>{p.links.includes(e)||p.links.push(e)},unregisterLink:e=>{const t=p.links.indexOf(e);-1!==t&&p.links.splice(t,1)},activeLink:h,scrollTo:m,handleClick:(e,t)=>{n("click",e,t)},direction:c}),Vn((()=>{Ft((()=>{const e=f.value();p.scrollContainer=e,p.scrollEvent=Ia(p.scrollContainer,"scroll",v),v()}))})),Kn((()=>{p.scrollEvent&&p.scrollEvent.remove()})),Un((()=>{if(p.scrollEvent){const e=f.value();p.scrollContainer!==e&&(p.scrollContainer=e,p.scrollEvent.remove(),p.scrollEvent=Ia(p.scrollContainer,"scroll",v),v())}(()=>{const e=d.value.querySelector(`.${l.value}-link-title-active`);if(e&&u.value){const t="horizontal"===c.value;u.value.style.top=t?"":`${e.offsetTop+e.clientHeight/2}px`,u.value.style.height=t?"":`${e.clientHeight}px`,u.value.style.left=t?`${e.offsetLeft}px`:"",u.value.style.width=t?`${e.clientWidth}px`:"",t&&jd(e,{scrollMode:"if-needed",block:"nearest"})}})()}));const b=e=>Array.isArray(e)?e.map((e=>{const{children:t,key:n,href:o,target:i,class:l,style:a,title:s}=e;return br(Vd,{key:n,href:o,target:i,class:l,style:a,title:s,customTitleProps:e},{default:()=>["vertical"===c.value?b(t):null],customTitle:r.customTitle})})):null,[y,O]=Yd(l);return()=>{var t;const{offsetTop:n,affix:i,showInkInFixed:a}=e,p=l.value,g=xl(`${p}-ink`,{[`${p}-ink-visible`]:h.value}),m=xl(O.value,e.wrapperClass,`${p}-wrapper`,{[`${p}-wrapper-horizontal`]:"horizontal"===c.value,[`${p}-rtl`]:"rtl"===s.value}),v=xl(p,{[`${p}-fixed`]:!i&&!a}),w=cl({maxHeight:n?`calc(100vh - ${n}px)`:"100vh"},e.wrapperStyle),S=br("div",{class:m,style:w,ref:d},[br("div",{class:v},[br("span",{class:g,ref:u},null),Array.isArray(e.items)?b(e.items):null===(t=r.default)||void 0===t?void 0:t.call(r)])]);return y(i?br(Id,sl(sl({},o),{},{offsetTop:n,target:f.value}),{default:()=>[S]}):S)}}});function Mp(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),null!=n?n:void 0!==o?o:`rc-index-key-${t}`}function Ip(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function Ep(e){const t=cl({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Ap(){return""}function Dp(e){return e?e.ownerDocument:window.document}function Rp(){}Tp.Link=Vd,Tp.install=function(e){return e.component(Tp.name,Tp),e.component(Tp.Link.name,Tp.Link),e};const zp=()=>({action:$p.oneOfType([$p.string,$p.arrayOf($p.string)]).def([]),showAction:$p.any.def([]),hideAction:$p.any.def([]),getPopupClassNameFromAlign:$p.any.def(Ap),onPopupVisibleChange:Function,afterPopupVisibleChange:$p.func.def(Rp),popup:$p.any,popupStyle:{type:Object,default:void 0},prefixCls:$p.string.def("rc-trigger-popup"),popupClassName:$p.string.def(""),popupPlacement:String,builtinPlacements:$p.object,popupTransitionName:String,popupAnimation:$p.any,mouseEnterDelay:$p.number.def(0),mouseLeaveDelay:$p.number.def(.1),zIndex:Number,focusDelay:$p.number.def(0),blurDelay:$p.number.def(.15),getPopupContainer:Function,getDocument:$p.func.def(Dp),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:$p.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),Bp={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},jp=cl(cl({},Bp),{mobile:{type:Object}}),Np=cl(cl({},Bp),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _p(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function Qp(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:l}=e;if(!r)return null;let a={};return(l||i)&&(a=_p({prefixCls:t,transitionName:l,animation:i})),br(qr,sl({appear:!0},a),{default:()=>{return[$n(br("div",{style:{zIndex:o},class:`${t}-mask`},null),[[(e="if",fn("directives",e)),n]])];var e}})}Qp.displayName="Mask";const Lp=jn({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:jp,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=bt();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:i,prefixCls:l,mobile:{popupClassName:a,popupStyle:s,popupMotion:c={},popupRender:u}={}}=e,d=cl({zIndex:n},s);let p=ql(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=br("div",{class:`${l}-content`},[p])),u&&(p=u(p));const h=xl(l,a);return br(qr,sl({ref:r},c),{default:()=>[i?br("div",{class:h,style:d},[p]):null]})}}});var Hp=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Uue){i(Uue)}}function a(e){try{s(o.throw(e))}catch(Uue){i(Uue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Fp=["measure","align",null,"motion"];function Wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xp(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function zh(e){var t,n,o;if(Ih.isWindow(e)||9===e.nodeType){var r=Ih.getWindow(e);t={left:Ih.getWindowScrollLeft(r),top:Ih.getWindowScrollTop(r)},n=Ih.viewportWidth(r),o=Ih.viewportHeight(r)}else t=Ih.offset(e),n=Ih.outerWidth(e),o=Ih.outerHeight(e);return t.width=n,t.height=o,t}function Bh(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,l=e.left,a=e.top;return"c"===n?a+=i/2:"b"===n&&(a+=i),"c"===o?l+=r/2:"r"===o&&(l+=r),{left:l,top:a}}function jh(e,t,n,o,r){var i=Bh(t,n[1]),l=Bh(e,n[0]),a=[l.left-i.left,l.top-i.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function Nh(e,t,n){return e.leftn.right}function _h(e,t,n){return e.topn.bottom}function Qh(e,t,n){var o=[];return Ih.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Lh(e,t){return e[t]=-e[t],e}function Hh(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Fh(e,t){e[0]=Hh(e[0],t.width),e[1]=Hh(e[1],t.height)}function Wh(e,t,n,o){var r=n.points,i=n.offset||[0,0],l=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;i=[].concat(i),l=[].concat(l);var c={},u=0,d=Rh(s,!(!(a=a||{})||!a.alwaysByViewport)),p=zh(s);Fh(i,p),Fh(l,t);var h=jh(p,t,r,i,l),f=Ih.merge(p,h);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&Nh(h,p,d)){var g=Qh(r,/[lr]/gi,{l:"r",r:"l"}),m=Lh(i,0),v=Lh(l,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),Ih.mix(r,i)}(h,p,d,c))}return f.width!==p.width&&Ih.css(s,"width",Ih.width(s)+f.width-p.width),f.height!==p.height&&Ih.css(s,"height",Ih.height(s)+f.height-p.height),Ih.offset(s,{left:f.left,top:f.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:l,overflow:c}}function Xh(e,t,n){var o=n.target||t,r=zh(o),i=!function(e,t){var n=Rh(e,t),o=zh(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Wh(e,r,n,i)}function Yh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(Array.isArray(e)&&(r=la(e)[0]),!r)return null;const i=yr(r,t,o);return i.props=n?cl(cl({},i.props),t):i.props,Ts("object"!=typeof i.props.class),i}function Vh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.map((e=>Yh(e,t,n)))}function Zh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(e))return e.map((e=>Zh(e,t,n,o)));{const r=Yh(e,t,n,o);return Array.isArray(r.children)&&(r.children=Zh(r.children)),r}}Xh.__getOffsetParent=Ah,Xh.__getVisibleRectForElement=Rh;const Uh=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Kh(e,t){let n=null,o=null;const r=new Yl((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:i,height:l}=r.getBoundingClientRect(),a=Math.floor(i),s=Math.floor(l);n===a&&o===s||Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function Gh(e,t){return e===t||e!=e&&t!=t}function qh(e,t){for(var n=e.length;n--;)if(Gh(e[n][0],t))return n;return-1}var Jh=Array.prototype.splice;function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ef.prototype.set=function(e,t){var n=this.__data__,o=qh(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};const tf="object"==typeof global&&global&&global.Object===Object&&global;var nf="object"==typeof self&&self&&self.Object===Object&&self;const of=tf||nf||Function("return this")(),rf=of.Symbol;var lf=Object.prototype,af=lf.hasOwnProperty,sf=lf.toString,cf=rf?rf.toStringTag:void 0,uf=Object.prototype.toString,df=rf?rf.toStringTag:void 0;function pf(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":df&&df in Object(e)?function(e){var t=af.call(e,cf),n=e[cf];try{e[cf]=void 0;var o=!0}catch(Uue){}var r=sf.call(e);return o&&(t?e[cf]=n:delete e[cf]),r}(e):function(e){return uf.call(e)}(e)}function hf(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ff(e){if(!hf(e))return!1;var t=pf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const gf=of["__core-js_shared__"];var mf,vf=(mf=/[^.]+$/.exec(gf&&gf.keys&&gf.keys.IE_PROTO||""))?"Symbol(src)_1."+mf:"",bf=Function.prototype.toString;function yf(e){if(null!=e){try{return bf.call(e)}catch(Uue){}try{return e+""}catch(Uue){}}return""}var Of=/^\[object .+?Constructor\]$/,wf=Function.prototype,Sf=Object.prototype,$f=wf.toString,xf=Sf.hasOwnProperty,Cf=RegExp("^"+$f.call(xf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kf(e){return!(!hf(e)||(t=e,vf&&vf in t))&&(ff(e)?Cf:Of).test(yf(e));var t}function Pf(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kf(n)?n:void 0}const Tf=Pf(of,"Map"),Mf=Pf(Object,"create");var If=Object.prototype.hasOwnProperty,Ef=Object.prototype.hasOwnProperty;function Af(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new Bf:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var pg={};function hg(e){return function(t){return e(t)}}pg["[object Float32Array]"]=pg["[object Float64Array]"]=pg["[object Int8Array]"]=pg["[object Int16Array]"]=pg["[object Int32Array]"]=pg["[object Uint8Array]"]=pg["[object Uint8ClampedArray]"]=pg["[object Uint16Array]"]=pg["[object Uint32Array]"]=!0,pg["[object Arguments]"]=pg["[object Array]"]=pg["[object ArrayBuffer]"]=pg["[object Boolean]"]=pg["[object DataView]"]=pg["[object Date]"]=pg["[object Error]"]=pg["[object Function]"]=pg["[object Map]"]=pg["[object Number]"]=pg["[object Object]"]=pg["[object RegExp]"]=pg["[object Set]"]=pg["[object String]"]=pg["[object WeakMap]"]=!1;var fg="object"==typeof e&&e&&!e.nodeType&&e,gg=fg&&"object"==typeof t&&t&&!t.nodeType&&t,mg=gg&&gg.exports===fg&&tf.process;const vg=function(){try{var e=gg&&gg.require&&gg.require("util").types;return e||mg&&mg.binding&&mg.binding("util")}catch(Uue){}}();var bg=vg&&vg.isTypedArray;const yg=bg?hg(bg):function(e){return qf(e)&&dg(e.length)&&!!pg[pf(e)]};var Og=Object.prototype.hasOwnProperty;function wg(e,t){var n=Yf(e),o=!n&&rg(e),r=!n&&!o&&sg(e),i=!n&&!o&&!r&&yg(e),l=n||o||r||i,a=l?function(e,t){for(var n=-1,o=Array(e);++n{let n=!1,o=null;function r(){clearTimeout(o)}return[function i(l){if(n&&!0!==l)r(),o=setTimeout((()=>{n=!1,i()}),t.value);else{if(!1===e())return;n=!0,r(),o=setTimeout((()=>{n=!1}),t.value)}},()=>{n=!1,r()}]})((()=>{const{disabled:t,target:n,align:o,onAlign:l}=e;if(!t&&n&&i.value){const e=i.value;let t;const w=tm(n),S=nm(n);r.value.element=w,r.value.point=S,r.value.align=o;const{activeElement:$}=document;return w&&Uh(w)?t=Xh(e,w,o):S&&(a=e,s=S,c=o,p=Ih.getDocument(a),h=p.defaultView||p.parentWindow,f=Ih.getWindowScrollLeft(h),g=Ih.getWindowScrollTop(h),m=Ih.viewportWidth(h),v=Ih.viewportHeight(h),b={left:u="pageX"in s?s.pageX:f+s.clientX,top:d="pageY"in s?s.pageY:g+s.clientY,width:0,height:0},y=u>=0&&u<=f+m&&d>=0&&d<=g+v,O=[c.points[0],"cc"],t=Wh(a,b,Xp(Xp({},c),{},{points:O}),y)),function(e,t){e!==document.activeElement&&ps(t,e)&&"function"==typeof e.focus&&e.focus()}($,e),l&&t&&l(e,t),!0}var a,s,c,u,d,p,h,f,g,m,v,b,y,O;return!1}),Lr((()=>e.monitorBufferTime))),s=bt({cancel:()=>{}}),c=bt({cancel:()=>{}}),u=()=>{const t=e.target,n=tm(t),o=nm(t);var a,u;i.value!==c.value.element&&(c.value.cancel(),c.value.element=i.value,c.value.cancel=Kh(i.value,l)),r.value.element===n&&((a=r.value.point)===(u=o)||a&&u&&("pageX"in u&&"pageY"in u?a.pageX===u.pageX&&a.pageY===u.pageY:"clientX"in u&&"clientY"in u&&a.clientX===u.clientX&&a.clientY===u.clientY))&&em(r.value.align,e.align)||(l(),s.value.element!==n&&(s.value.cancel(),s.value.element=n,s.value.cancel=Kh(n,l)))};Vn((()=>{Ft((()=>{u()}))})),Un((()=>{Ft((()=>{u()}))})),bn((()=>e.disabled),(e=>{e?a():l()}),{immediate:!0,flush:"post"});const d=bt(null);return bn((()=>e.monitorWindowResize),(e=>{e?d.value||(d.value=Ia(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)}),{flush:"post"}),Gn((()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()})),n({forceAlign:()=>l(!0)}),()=>{const e=null==o?void 0:o.default();return e?Yh(e[0],{ref:i},!0,!0):null}}});ba("bottomLeft","bottomRight","topLeft","topRight");const rm=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",im=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cl(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},lm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cl(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},am=(e,t,n)=>void 0!==n?n:`${e}-${t}`,sm=jn({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Bp,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=yt(),l=yt(),a=yt(),[s,c]=(e=>{const t=yt({width:0,height:0});return[Lr((()=>{const n={};if(e.value){const{width:o,height:r}=t.value;-1!==e.value.indexOf("height")&&r?n.height=`${r}px`:-1!==e.value.indexOf("minHeight")&&r&&(n.minHeight=`${r}px`),-1!==e.value.indexOf("width")&&o?n.width=`${o}px`:-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth=`${o}px`)}return n})),function(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}]})(Tt(e,"stretch")),u=yt(!1);let d;bn((()=>e.visible),(t=>{clearTimeout(d),t?d=setTimeout((()=>{u.value=e.visible})):u.value=!1}),{immediate:!0});const[p,h]=((e,t)=>{const n=yt(null),o=yt(),r=yt(!1);function i(e){r.value||(n.value=e)}function l(){ma.cancel(o.value)}return bn(e,(()=>{i("measure")}),{immediate:!0,flush:"post"}),Vn((()=>{bn(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=ma((()=>Hp(void 0,void 0,void 0,(function*(){const e=Fp.indexOf(n.value),t=Fp[e+1];t&&-1!==e&&i(t)})))))}),{immediate:!0,flush:"post"})})),Kn((()=>{r.value=!0,l()})),[n,function(e){l(),o.value=ma((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}i(t),null==e||e()}))}]})(u,(()=>{e.stretch&&c(e.getRootDomNode())})),f=yt(),g=()=>{var e;null===(e=i.value)||void 0===e||e.forceAlign()},m=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),i=a.value;a.value!==r&&(a.value=r),"align"===p.value&&(i!==r?Promise.resolve().then((()=>{g()})):h((()=>{var e;null===(e=f.value)||void 0===e||e.call(f)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},v=Lr((()=>{const t="object"==typeof e.animation?e.animation:_p(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{h(),p.value="stable",null==n||n(e)}})),t})),b=()=>new Promise((e=>{f.value=e}));bn([v,p],(()=>{v.value||"motion"!==p.value||h()}),{immediate:!0}),n({forceAlign:g,getElement:()=>l.value.$el||l.value});const y=Lr((()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==p.value&&"stable"!==p.value}));return()=>{var t;const{zIndex:n,align:c,prefixCls:d,destroyPopupOnHide:h,onMouseenter:f,onMouseleave:g,onTouchstart:O=(()=>{}),onMousedown:w}=e,S=p.value,$=[cl(cl({},s.value),{zIndex:n,opacity:"motion"!==S&&"stable"!==S&&u.value?0:null,pointerEvents:u.value||"stable"===S?null:"none"}),o.style];let x=ql(null===(t=r.default)||void 0===t?void 0:t.call(r,{visible:e.visible}));x.length>1&&(x=br("div",{class:`${d}-content`},[x]));const C=xl(d,o.class,a.value),k=u.value||!e.visible?im(v.value.name,v.value):{};return br(qr,sl(sl({ref:l},k),{},{onBeforeEnter:b}),{default:()=>!h||e.visible?$n(br(om,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:i,monitorWindowResize:!0,disabled:y.value,align:c,onAlign:m},{default:()=>br("div",{class:C,onMouseenter:f,onMouseleave:g,onMousedown:_i(w,["capture"]),[Ma?"onTouchstartPassive":"onTouchstart"]:_i(O,["capture"]),style:$},[x])}),[[gi,u.value]]):null})}}}),cm=jn({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Np,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=yt(!1),l=yt(!1),a=yt(),s=yt();return bn([()=>e.visible,()=>e.mobile],(()=>{i.value=e.visible,e.visible&&e.mobile&&(l.value=!0)}),{immediate:!0,flush:"post"}),r({forceAlign:()=>{var e;null===(e=a.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=cl(cl(cl({},e),n),{visible:i.value}),r=l.value?br(Lp,sl(sl({},t),{},{mobile:e.mobile,ref:a}),{default:o.default}):br(sm,sl(sl({},t),{},{ref:a}),{default:o.default});return br("div",{ref:s},[br(Qp,t,null),r])}}});function um(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dm(e,t,n){return cl(cl({},e[t]||{}),n)}const pm={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps(ta(this),cl(cl({},this.$data),n));if(null===e)return;n=cl(cl({},n),e||{})}cl(this.$data,n),this._.isMounted&&this.$forceUpdate(),Ft((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:Lr((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let i=!1;return(t||n||o)&&(i=!0),!t&&r&&(i=!1),i}))})},gm=jn({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:$p.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:o}=t,r=!0;const{shouldRender:i}=(()=>{fm({},{inTriggerContext:!1});const e=Mo(hm,{shouldRender:Lr((()=>!1)),inTriggerContext:!1});return{shouldRender:Lr((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function l(){i.value&&(n=e.getContainer())}Yn((()=>{r=!1,l()})),Vn((()=>{n||l()}));const a=bn(i,(()=>{i.value&&!n&&(n=e.getContainer()),n&&a()}));return Un((()=>{Ft((()=>{var t;i.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return i.value?r?null===(e=o.default)||void 0===e?void 0:e.call(o):n?br(qo,{to:n},o):null:null}}});let mm;function vm(e){if("undefined"==typeof document)return 0;if(e||void 0===mm){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;o===r&&(r=t.clientWidth),document.body.removeChild(t),mm=o-r}return mm}function bm(e){const t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?vm():n}const ym=`vc-util-locker-${Date.now()}`;let Om=0;function wm(e){const t=Lr((()=>!!e&&!!e.value));Om+=1;const n=`${ym}_${Om}`;mn((e=>{if(ds()){if(t.value){const e=vm();ws(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else Os(n);e((()=>{Os(n)}))}}),{flush:"post"})}let Sm=0;const $m=ds(),xm=e=>{if(!$m)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body},Cm=jn({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:$p.any,visible:{type:Boolean,default:void 0},autoLock:Sa(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=yt(),r=yt(),i=yt(),l=ds()&&document.createElement("div"),a=()=>{var e,t;o.value===l&&(null===(t=null===(e=o.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(o.value)),o.value=null};let s=null;const c=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||o.value&&!o.value.parentNode)||(s=xm(e.getContainer),!!s&&(s.appendChild(o.value),!0))},u=()=>$m?(o.value||(o.value=l,c(!0)),d(),o.value):null,d=()=>{const{wrapperClassName:t}=e;o.value&&t&&t!==o.value.className&&(o.value.className=t)};Un((()=>{d(),c()}));const p=Mr();return wm(Lr((()=>e.autoLock&&e.visible&&ds()&&(o.value===document.body||o.value===l)))),Vn((()=>{let t=!1;bn([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,i]=n,[l,c]=o;$m&&(s=xm(e.getContainer),s===document.body&&(r&&!l?Sm+=1:t&&(Sm-=1))),t&&("function"==typeof i&&"function"==typeof c?i.toString()!==c.toString():i!==c)&&a(),t=!0}),{immediate:!0,flush:"post"}),Ft((()=>{c()||(i.value=ma((()=>{p.update()})))}))})),Kn((()=>{const{visible:t}=e;$m&&s===document.body&&(Sm=t&&Sm?Sm-1:Sm),a(),ma.cancel(i.value)})),()=>{const{forceRender:t,visible:o}=e;let i=null;const l={getOpenCount:()=>Sm,getContainer:u};return(t||o||r.value)&&(i=br(gm,{getContainer:u,ref:r,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,l)}})),i}}}),km=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Pm=jn({compatConfig:{MODE:3},name:"Trigger",mixins:[pm],inheritAttrs:!1,props:zp(),setup(e){const t=Lr((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?dm(o,t,n):n})),n=yt(null);return{vcTriggerContext:Mo("vcTriggerContext",{}),popupRef:n,setPopupRef:e=>{n.value=e},triggerRef:yt(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,km.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){To("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),fm(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ma.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let t;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ia(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ia(t,"touchstart",this.onDocumentClick,!!Ma&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Ia(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Ia(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&ps(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){ps(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();ps(n,t)&&!this.isContextMenuOnly()||ps(o,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:ea(this.triggerRef);return ea(r(n))}try{const e="#comment"===(null===(o=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.nodeName)?null:ea(this.triggerRef);if(e)return e}catch(i){}return ea(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:l,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let l=0;lna(this,"popup"))})},attachParent(e){ma.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||0===t.length)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=ma((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Kl(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=1e3*t;if(this.clearDelayTimer(),o){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=oa(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=la(Jl(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=oa(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[Ma?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Ma?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=e=>{!e||e.relatedTarget&&ps(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const l=xl(r&&r.props&&r.props.class,e.class);l&&(i.class=l);const a=Yh(r,cl(cl({},i),{ref:"triggerRef"}),!0,!0),s=br(Cm,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return br(er,null,[a,s])}}),Tm=jn({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:$p.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:$p.oneOfType([Number,Boolean]).def(!0),popupElement:$p.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=Lr((()=>{const{dropdownMatchSelectWidth:t}=e;return(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}})(t)})),l=bt();return r({getPopupElement:()=>l.value}),()=>{const t=cl(cl({},e),o),{empty:r=!1}=t,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("div",{ref:l,onMouseenter:x,onFocusin:C,onFocusout:k},[T])})}}}),Mm={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Mm.F1&&t<=Mm.F12)return!1;switch(t){case Mm.ALT:case Mm.CAPS_LOCK:case Mm.CONTEXT_MENU:case Mm.CTRL:case Mm.DOWN:case Mm.END:case Mm.ESC:case Mm.HOME:case Mm.INSERT:case Mm.LEFT:case Mm.MAC_FF_META:case Mm.META:case Mm.NUMLOCK:case Mm.NUM_CENTER:case Mm.PAGE_DOWN:case Mm.PAGE_UP:case Mm.PAUSE:case Mm.PRINT_SCREEN:case Mm.RIGHT:case Mm.SHIFT:case Mm.UP:case Mm.WIN_KEY:case Mm.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Mm.ZERO&&e<=Mm.NINE)return!0;if(e>=Mm.NUM_ZERO&&e<=Mm.NUM_MULTIPLY)return!0;if(e>=Mm.A&&e<=Mm.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Mm.SPACE:case Mm.QUESTION_MARK:case Mm.NUM_PLUS:case Mm.NUM_MINUS:case Mm.NUM_PERIOD:case Mm.NUM_DIVISION:case Mm.SEMICOLON:case Mm.DASH:case Mm.EQUALS:case Mm.COMMA:case Mm.PERIOD:case Mm.SLASH:case Mm.APOSTROPHE:case Mm.SINGLE_QUOTE:case Mm.OPEN_SQUARE_BRACKET:case Mm.BACKSLASH:case Mm.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Im=Mm,Em=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:i,customizeIconProps:l,onMousedown:a,onClick:s}=e;let c;return c="function"==typeof i?i(l):i,br("span",{class:r,onMousedown:e=>{e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[void 0!==c?c:br("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};Em.inheritAttrs=!1,Em.displayName="TransBtn",Em.props={class:String,customizeIcon:$p.any,customizeIconProps:$p.any,onMousedown:Function,onClick:Function};const Am=Em;function Dm(e){e.target.composing=!0}function Rm(e){e.target.composing&&(e.target.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(e.target,"input"))}function zm(e,t,n,o){e.addEventListener(t,n,o)}const Bm={created(e,t){t.modifiers&&t.modifiers.lazy||(zm(e,"compositionstart",Dm),zm(e,"compositionend",Rm),zm(e,"change",Rm))}},jm=jn({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:{inputRef:$p.any,prefixCls:String,id:String,inputElement:$p.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),attrs:$p.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup(e){let t=null;const n=Mo("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:i,inputElement:l,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:p,value:h,onKeydown:f,onMousedown:g,onChange:m,onPaste:v,onCompositionstart:b,onCompositionend:y,onFocus:O,onBlur:w,open:S,inputRef:$,attrs:x}=e;let C=l||$n(br("input",null,null),[[Bm]]);const k=C.props||{},{onKeydown:P,onInput:T,onFocus:M,onBlur:I,onMousedown:E,onCompositionstart:A,onCompositionend:D,style:R}=k;return C=Yh(C,cl(cl(cl(cl(cl({type:"search"},k),{id:i,ref:$,disabled:a,tabindex:s,autocomplete:u||"off",autofocus:c,class:xl(`${r}-selection-search-input`,null===(o=null==C?void 0:C.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":p}),x),{value:d?h:"",readonly:!d,unselectable:d?null:"on",style:cl(cl({},R),{opacity:d?null:0}),onKeydown:e=>{f(e),P&&P(e)},onMousedown:e=>{g(e),E&&E(e)},onInput:e=>{m(e),T&&T(e)},onCompositionstart(e){b(e),A&&A(e)},onCompositionend(e){y(e),D&&D(e)},onPaste:v,onFocus:function(){clearTimeout(t),M&&M(arguments.length<=0?void 0:arguments[0]),O&&O(arguments.length<=0?void 0:arguments[0]),null==n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,o=new Array(e),r=0;r{I&&I(o[0]),w&&w(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===C.type?{}:{type:"search"}),!0,!0),C}}}),Nm=jm,_m="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function Qm(e,t){return 0===e.indexOf(t)}function Lm(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:cl({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||Qm(n,"aria-"))||t.data&&Qm(n,"data-")||t.attr&&(_m.includes(n)||_m.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const Hm=Symbol("OverflowContextProviderKey"),Fm=jn({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return To(Hm,Lr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Wm=void 0,Xm=jn({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:$p.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:$p.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const r=Lr((()=>e.responsive&&!e.display)),i=bt();function l(t){e.registerSize(e.itemKey,t)}return o({itemNodeRef:i}),Gn((()=>{l(null)})),()=>{var t;const{prefixCls:o,invalidate:a,item:s,renderItem:c,responsive:u,registerSize:d,itemKey:p,display:h,order:f,component:g="div"}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{offsetWidth:t}=e;l(t)}},{default:()=>br(g,sl(sl(sl({class:xl(!a&&o),style:y},O),m),{},{ref:i}),{default:()=>[b]})})}}});var Ym=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnull)));return()=>{var t;if(!r.value){const{component:r="div"}=e,i=Ym(e,["component"]);return br(r,sl(sl({},i),o),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const i=r.value,{className:l}=i,a=Ym(i,["className"]),{class:s}=o,c=Ym(o,["class"]);return br(Fm,{value:null},{default:()=>[br(Xm,sl(sl(sl({class:xl(l,s)},a),c),e),n)]})}}}),Zm="responsive",Um="invalidate";function Km(e){return`+ ${e.length} ...`}const Gm=jn({name:"Overflow",inheritAttrs:!1,props:{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:$p.any,component:String,itemComponent:$p.any,onVisibleChange:Function,ssr:String,onMousedown:Function},emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=Lr((()=>"full"===e.ssr)),l=yt(null),a=Lr((()=>l.value||0)),s=yt(new Map),c=yt(0),u=yt(0),d=yt(0),p=yt(null),h=yt(null),f=Lr((()=>null===h.value&&i.value?Number.MAX_SAFE_INTEGER:h.value||0)),g=yt(!1),m=Lr((()=>`${e.prefixCls}-item`)),v=Lr((()=>Math.max(c.value,u.value))),b=Lr((()=>!(!e.data.length||e.maxCount!==Zm))),y=Lr((()=>e.maxCount===Um)),O=Lr((()=>b.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),w=Lr((()=>{let t=e.data;return b.value?t=null===l.value&&i.value?e.data:e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):"number"==typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),S=Lr((()=>b.value?e.data.slice(f.value+1):e.data.slice(w.value.length))),$=(t,n)=>{var o;return"function"==typeof e.itemKey?e.itemKey(t):null!==(o=e.itemKey&&(null==t?void 0:t[e.itemKey]))&&void 0!==o?o:n},x=Lr((()=>e.renderItem||(e=>e))),C=(t,n)=>{h.value=t,n||(g.value=t{l.value=t.clientWidth},P=(e,t)=>{const n=new Map(s.value);null===t?n.delete(e):n.set(e,t),s.value=n},T=(e,t)=>{c.value=u.value,u.value=t},M=(e,t)=>{d.value=t},I=e=>s.value.get($(w.value[e],e));return bn([a,s,u,d,()=>e.itemKey,w],(()=>{if(a.value&&v.value&&w.value){let t=d.value;const n=w.value.length,o=n-1;if(!n)return C(0),void(p.value=null);for(let e=0;ea.value){C(e-1),p.value=t-n-d.value+u.value;break}}e.suffix&&I(0)+d.value>a.value&&(p.value=null)}})),()=>{const t=g.value&&!!S.value.length,{itemComponent:o,renderRawItem:i,renderRawRest:l,renderRest:a,prefixCls:s="rc-overflow",suffix:c,component:u="div",id:d,onMousedown:h}=e,{class:v,style:C}=n,I=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=$(e,t);return br(Fm,{key:n,value:cl(cl({},A),{order:t,item:e,itemKey:n,registerSize:P,display:t<=f.value})},{default:()=>[i(e,t)]})}:(e,t)=>{const n=$(e,t);return br(Xm,sl(sl({},A),{},{order:t,key:n,item:e,renderItem:x.value,itemKey:n,registerSize:P,display:t<=f.value}),null)};let R=()=>null;const z={order:t?f.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:T,display:t};if(l)l&&(R=()=>br(Fm,{value:cl(cl({},A),z)},{default:()=>[l(S.value)]}));else{const e=a||Km;R=()=>br(Xm,sl(sl({},A),z),{default:()=>"function"==typeof e?e(S.value):e})}return br(ua,{disabled:!b.value,onResize:k},{default:()=>{var e;return br(u,sl({id:d,class:xl(!y.value&&s,v),style:C,onMousedown:h},I),{default:()=>[w.value.map(D),O.value?R():null,c&&br(Xm,sl(sl({},A),{},{order:f.value,class:`${m.value}-suffix`,registerSize:M,display:!0,style:E}),{default:()=>c}),null===(e=r.default)||void 0===e?void 0:e.call(r)]})}})}}});Gm.Item=Vm,Gm.RESPONSIVE=Zm,Gm.INVALIDATE=Um;const qm=Gm,Jm=Symbol("TreeSelectLegacyContextPropsKey");function ev(){return Mo(Jm,{})}const tv={id:String,prefixCls:String,values:$p.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:$p.any,placeholder:$p.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),removeIcon:$p.any,choiceTransitionName:String,maxTagCount:$p.oneOfType([$p.number,$p.string]),maxTagTextLength:Number,maxTagPlaceholder:$p.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},nv=e=>{e.preventDefault(),e.stopPropagation()},ov=jn({name:"MultipleSelectSelector",inheritAttrs:!1,props:tv,setup(e){const t=yt(),n=yt(0),o=yt(!1),r=ev(),i=Lr((()=>`${e.prefixCls}-selection`)),l=Lr((()=>e.open||"tags"===e.mode?e.searchValue:"")),a=Lr((()=>"tags"===e.mode||e.showSearch&&(e.open||o.value)));function s(t,n,o,r,l){return br("span",{class:xl(`${i.value}-item`,{[`${i.value}-item-disabled`]:o}),title:"string"==typeof t||"number"==typeof t?t.toString():void 0},[br("span",{class:`${i.value}-item-content`},[n]),r&&br(Am,{class:`${i.value}-item-remove`,onMousedown:nv,onClick:l,customizeIcon:e.removeIcon},{default:()=>[Or("×")]})])}function c(t){const{disabled:n,label:o,value:i,option:l}=t,a=!e.disabled&&!n;let c=o;if("number"==typeof e.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const t=String(c);t.length>e.maxTagTextLength&&(c=`${t.slice(0,e.maxTagTextLength)}...`)}const u=n=>{var o;n&&n.stopPropagation(),null===(o=e.onRemove)||void 0===o||o.call(e,t)};return"function"==typeof e.tagRender?function(t,n,o,i,l,a){var s;let c=a;return r.keyEntities&&(c=(null===(s=r.keyEntities[t])||void 0===s?void 0:s.node)||{}),br("span",{key:t,onMousedown:t=>{nv(t),e.onToggleOpen(!open)}},[e.tagRender({label:n,value:t,disabled:o,closable:i,onClose:l,option:c})])}(i,c,n,a,u,l):s(o,c,n,a,u)}function u(t){const{maxTagPlaceholder:n=(e=>`+ ${e.length} ...`)}=e,o="function"==typeof n?n(t):n;return s(o,o,!1)}return Vn((()=>{bn(l,(()=>{n.value=t.value.scrollWidth}),{flush:"post",immediate:!0})})),()=>{const{id:r,prefixCls:s,values:d,open:p,inputRef:h,placeholder:f,disabled:g,autofocus:m,autocomplete:v,activeDescendantId:b,tabindex:y,onInputChange:O,onInputPaste:w,onInputKeyDown:S,onInputMouseDown:$,onInputCompositionStart:x,onInputCompositionEnd:C}=e,k=br("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[br(Nm,{inputRef:h,open:p,prefixCls:s,id:r,inputElement:null,disabled:g,autofocus:m,autocomplete:v,editable:a.value,activeDescendantId:b,value:l.value,onKeydown:S,onMousedown:$,onChange:O,onPaste:w,onCompositionstart:x,onCompositionend:C,tabindex:y,attrs:Lm(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),br("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[l.value,Or(" ")])]),P=br(qm,{prefixCls:`${i.value}-overflow`,data:d,renderItem:c,renderRest:u,suffix:k,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return br(er,null,[P,!d.length&&!l.value&&br("span",{class:`${i.value}-placeholder`},[f])])}}}),rv={inputElement:$p.any,id:String,prefixCls:String,values:$p.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:$p.any,placeholder:$p.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},iv=jn({name:"SingleSelector",setup(e){const t=yt(!1),n=Lr((()=>"combobox"===e.mode)),o=Lr((()=>n.value||e.showSearch)),r=Lr((()=>{let o=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(o=e.activeValue),o})),i=ev();bn([n,()=>e.activeValue],(()=>{n.value&&(t.value=!1)}),{immediate:!0});const l=Lr((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch||!r.value))),a=Lr((()=>{const t=e.values[0];return!t||"string"!=typeof t.label&&"number"!=typeof t.label?void 0:t.label.toString()})),s=()=>{if(e.values[0])return null;const t=l.value?{visibility:"hidden"}:void 0;return br("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])};return()=>{var c,u,d,p;const{inputElement:h,prefixCls:f,id:g,values:m,inputRef:v,disabled:b,autofocus:y,autocomplete:O,activeDescendantId:w,open:S,tabindex:$,optionLabelRender:x,onInputKeyDown:C,onInputMouseDown:k,onInputChange:P,onInputPaste:T,onInputCompositionStart:M,onInputCompositionEnd:I}=e,E=m[0];let A=null;if(E&&i.customSlots){const e=null!==(c=E.key)&&void 0!==c?c:E.value,t=(null===(u=i.keyEntities[e])||void 0===u?void 0:u.node)||{};A=i.customSlots[null===(d=t.slots)||void 0===d?void 0:d.title]||i.customSlots.title||E.label,"function"==typeof A&&(A=A(t))}else A=x&&E?x(E.option):null==E?void 0:E.label;return br(er,null,[br("span",{class:`${f}-selection-search`},[br(Nm,{inputRef:v,prefixCls:f,id:g,open:S,inputElement:h,disabled:b,autofocus:y,autocomplete:O,editable:o.value,activeDescendantId:w,value:r.value,onKeydown:C,onMousedown:k,onChange:e=>{t.value=!0,P(e)},onPaste:T,onCompositionstart:M,onCompositionend:I,tabindex:$,attrs:Lm(e,!0)},null)]),!n.value&&E&&!l.value&&br("span",{class:`${f}-selection-item`,title:a.value},[br(er,{key:null!==(p=E.key)&&void 0!==p?p:E.value},[A])]),s()])}}});iv.props=rv,iv.inheritAttrs=!1;const lv=iv;function av(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return Kn((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function sv(){const e=t=>{e.current=t};return e}const cv=jn({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:$p.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:$p.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:$p.oneOfType([$p.number,$p.string]),disabled:{type:Boolean,default:void 0},placeholder:$p.any,removeIcon:$p.any,maxTagCount:$p.oneOfType([$p.number,$p.string]),maxTagTextLength:Number,maxTagPlaceholder:$p.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=sv();let r=!1;const[i,l]=av(0),a=t=>{const{which:n}=t;var o;n!==Im.UP&&n!==Im.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==Im.ENTER||"tags"!==e.mode||r||e.open||e.onSearchSubmit(t.target.value),o=n,[Im.ESC,Im.SHIFT,Im.BACKSPACE,Im.TAB,Im.WIN_KEY,Im.ALT,Im.META,Im.WIN_KEY_RIGHT,Im.CTRL,Im.SEMICOLON,Im.EQUALS,Im.CAPS_LOCK,Im.CONTEXT_MENU,Im.F1,Im.F2,Im.F3,Im.F4,Im.F5,Im.F6,Im.F7,Im.F8,Im.F9,Im.F10,Im.F11,Im.F12].includes(o)||e.onToggleOpen(!0)},s=()=>{l(!0)};let c=null;const u=t=>{!1!==e.onSearch(t,!0,r)&&e.onToggleOpen(!0)},d=()=>{r=!0},p=t=>{r=!1,"combobox"!==e.mode&&u(t.target.value)},h=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const e=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,c)}c=null,u(n)},f=e=>{const{clipboardData:t}=e,n=t.getData("text");c=n},g=e=>{let{target:t}=e;t!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus())},m=t=>{const n=i();t.target===o.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:r}=e,i={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:h,onInputPaste:f,onInputCompositionStart:d,onInputCompositionEnd:p},l=br("multiple"===r||"tags"===r?ov:lv,sl(sl({},e),i),null);return br("div",{ref:n,class:`${t}-selector`,onClick:g,onMousedown:m},[l])}}}),uv=Symbol("BaseSelectContextKey");function dv(){return Mo(uv,{})}const pv=()=>{if("undefined"==typeof navigator||"undefined"==typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},hv=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],fv=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:$p.any,placeholder:$p.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:$p.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:$p.any,clearIcon:$p.any,removeIcon:$p.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function gv(e){return"tags"===e||"multiple"===e}const mv=jn({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Zl(cl(cl({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:$p.any,emptyOptions:Boolean}),fv()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Lr((()=>gv(e.mode))),l=Lr((()=>void 0!==e.showSearch?e.showSearch:i.value||"combobox"===e.mode)),a=yt(!1);Vn((()=>{a.value=pv()}));const s=ev(),c=yt(null),u=sv(),d=yt(null),p=yt(null),h=yt(null),f=bt(!1),[g,m,v]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=yt(!1);let n;const o=()=>{clearTimeout(n)};return Vn((()=>{o()})),[t,(r,i)=>{o(),n=setTimeout((()=>{t.value=r,i&&i()}),e)},o]}();o({focus:()=>{var e;null===(e=p.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=p.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=h.value)||void 0===t?void 0:t.scrollTo(e)}});const b=Lr((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),y=void 0!==e.open?e.open:e.defaultOpen,O=yt(y),w=yt(y),S=t=>{O.value=void 0!==e.open?e.open:t,w.value=O.value};bn((()=>e.open),(()=>{S(e.open)}));const $=Lr((()=>!e.notFoundContent&&e.emptyOptions));mn((()=>{w.value=O.value,(e.disabled||$.value&&w.value&&"combobox"===e.mode)&&(w.value=!1)}));const x=Lr((()=>!$.value&&w.value)),C=t=>{const n=void 0!==t?t:!w.value;w.value===n||e.disabled||(S(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},k=Lr((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),P=(t,n,o)=>{var r,i;let l=!0,a=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const s=o?null:function(e,t){if(!t||!t.length)return null;let n=!1;const o=function e(t,o){let[r,...i]=o;if(!r)return[t];const l=t.split(r);return n=n||l.length>1,l.reduce(((t,n)=>[...t,...e(n,i)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(i=e.onSearchSplit)||void 0===i||i.call(e,s),C(!1),l=!1),e.onSearch&&b.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),l},T=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};bn(w,(()=>{w.value||i.value||"combobox"===e.mode||P("",!1,!1)}),{immediate:!0,flush:"post"}),bn((()=>e.disabled),(()=>{O.value&&e.disabled&&S(!1),e.disabled&&!f.value&&m(!1)}),{immediate:!0});const[M,I]=av(),E=function(t){var n;const o=M(),{which:r}=t;if(r===Im.ENTER&&("combobox"!==e.mode&&t.preventDefault(),w.value||C(!0)),I(!!b.value),r===Im.BACKSPACE&&!o&&i.value&&!b.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const o=t[e];if(!o.disabled){t.splice(e,1),n=o;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var l=arguments.length,a=new Array(l>1?l-1:0),s=1;s1?n-1:0),r=1;r{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},R=yt(!1),z=bt(!1),B=()=>{z.value=!0},j=()=>{z.value=!1};To("VCSelectContainerEvent",{focus:function(){m(!0),e.disabled||(e.onFocus&&!R.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&C(!0)),R.value=!0},blur:function(){if(z.value)return;if(f.value=!0,m(!1,(()=>{R.value=!1,f.value=!1,C(!1)})),e.disabled)return;const t=b.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const N=[];Vn((()=>{N.forEach((e=>clearTimeout(e))),N.splice(0,N.length)})),Kn((()=>{N.forEach((e=>clearTimeout(e))),N.splice(0,N.length)}));const _=function(t){var n,o;const{target:r}=t,i=null===(n=d.value)||void 0===n?void 0:n.getPopupElement();if(i&&i.contains(r)){const e=setTimeout((()=>{var t;const n=N.indexOf(e);-1!==n&&N.splice(n,1),v(),a.value||i.contains(document.activeElement)||null===(t=p.value)||void 0===t||t.focus()}));N.push(e)}for(var l=arguments.length,s=new Array(l>1?l-1:0),c=1;c{L.update()};return Vn((()=>{bn(x,(()=>{var e;if(x.value){const t=Math.ceil(null===(e=c.value)||void 0===e?void 0:e.offsetWidth);Q.value===t||Number.isNaN(t)||(Q.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,i,l;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a);const s=[null===(r=e[0])||void 0===r?void 0:r.value,null===(l=null===(i=e[1])||void 0===i?void 0:i.value)||void 0===l?void 0:l.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}Vn((()=>{window.addEventListener("mousedown",o)})),Kn((()=>{window.removeEventListener("mousedown",o)}))}([c,d],x,C),function(e){To(uv,e)}(td(cl(cl({},Ct(e)),{open:w,triggerOpen:x,showSearch:l,multiple:i,toggleOpen:C}))),()=>{const t=cl(cl({},e),n),{prefixCls:o,id:a,open:f,defaultOpen:m,mode:v,showSearch:y,searchValue:O,onSearch:S,allowClear:$,clearIcon:M,showArrow:I,inputIcon:R,disabled:z,loading:N,getInputElement:L,getPopupContainer:F,placement:W,animation:X,transitionName:Y,dropdownStyle:V,dropdownClassName:Z,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:G,showAction:q,direction:J,tokenSeparators:ee,tagRender:te,optionLabelRender:ne,onPopupScroll:oe,onDropdownVisibleChange:re,onFocus:ie,onBlur:le,onKeyup:ae,onKeydown:se,onMousedown:ce,onClear:ue,omitDomProps:de,getRawInputElement:pe,displayValues:he,onDisplayValuesChange:fe,emptyOptions:ge,activeDescendantId:me,activeValue:ve,OptionList:be}=t,ye=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{C(e)}),hv.forEach((e=>{delete Se[e]})),null==de||de.forEach((e=>{delete Se[e]}));const xe=void 0!==I?I:N||!i.value&&"combobox"!==v;let Ce,ke;xe&&(Ce=br(Am,{class:xl(`${o}-arrow`,{[`${o}-arrow-loading`]:N}),customizeIcon:R,customizeIconProps:{loading:N,searchValue:b.value,open:w.value,focused:g.value,showSearch:l.value}},null));const Pe=()=>{null==ue||ue(),fe([],{type:"clear",values:he}),P("",!1,!1)};!z&&$&&(he.length||b.value)&&(ke=br(Am,{class:`${o}-clear`,onMousedown:Pe,customizeIcon:M},{default:()=>[Or("×")]}));const Te=br(be,{ref:h},cl(cl({},s.customSlots),{option:r.option})),Me=xl(o,n.class,{[`${o}-focused`]:g.value,[`${o}-multiple`]:i.value,[`${o}-single`]:!i.value,[`${o}-allow-clear`]:$,[`${o}-show-arrow`]:xe,[`${o}-disabled`]:z,[`${o}-loading`]:N,[`${o}-open`]:w.value,[`${o}-customize-input`]:Oe,[`${o}-show-search`]:l.value}),Ie=br(Tm,{ref:d,disabled:z,prefixCls:o,visible:x.value,popupElement:Te,containerWidth:Q.value,animation:X,transitionName:Y,dropdownStyle:V,dropdownClassName:Z,direction:J,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:G,placement:W,getPopupContainer:F,empty:ge,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:$e,onPopupMouseEnter:H,onPopupFocusin:B,onPopupFocusout:j},{default:()=>we?sa(we)&&Yh(we,{ref:u},!1,!0):br(cv,sl(sl({},e),{},{domRef:u,prefixCls:o,inputElement:Oe,ref:p,id:a,showSearch:l.value,mode:v,activeDescendantId:me,tagRender:te,optionLabelRender:ne,values:he,open:w.value,onToggleOpen:C,activeValue:ve,searchValue:b.value,onSearch:P,onSearchSubmit:T,onRemove:D,tokenWithEnter:k.value}),null)});let Ee;return Ee=we?Ie:br("div",sl(sl({},Se),{},{class:Me,ref:c,onMousedown:_,onKeydown:E,onKeyup:A}),[g.value&&!w.value&&br("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${he.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),Ie,Ce,ke]),Ee}}}),vv=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:i}=e,{slots:l}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=cl(cl({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),br("div",{style:s},[br(ua,{onResize:e=>{let{offsetHeight:t}=e;t&&i&&i()}},{default:()=>[br("div",{style:c,class:xl({[`${r}-holder-inner`]:r})},[null===(a=l.default)||void 0===a?void 0:a.call(l)])]})])};vv.displayName="Filter",vv.inheritAttrs=!1,vv.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const bv=vv,yv=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const i=ql(null===(r=o.default)||void 0===r?void 0:r.call(o));return i&&i.length?yr(i[0],{ref:n}):i};yv.props={setRef:{type:Function,default:()=>{}}};const Ov=yv;function wv(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Sv=jn({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:sv(),thumbRef:sv(),visibleTimeout:null,state:rt({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!Ma&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Ma&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!Ma&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!Ma&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Ma&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Ma&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),ma.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;cl(this.state,{dragging:!0,pageY:wv(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(ma.cancel(this.moveRaf),t){const t=o+(wv(e)-n),i=this.getEnableScrollRange(),l=this.getEnableHeightRange(),a=l?t/l:0,s=Math.ceil(a*i);this.moveRaf=ma((()=>{r(s)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,20),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return 0===e||0===t?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",i=this.showScroll(),l=i&&t;return br("div",{ref:this.scrollbarRef,class:xl(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[br("div",{ref:this.thumbRef,class:xl(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}}),$v="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),xv=(e,t)=>{let n=!1,o=null;return function(r){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const l=r<0&&e.value||r>0&&t.value;return i&&l?(clearTimeout(o),n=!1):l&&!n||(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&l}},Cv=[],kv={overflowY:"auto",overflowAnchor:"none"},Pv=jn({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:$p.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=Lr((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),r=Lr((()=>{const{height:t,itemHeight:n,data:r}=e;return o.value&&r&&n*r.length>t})),i=rt({scrollTop:0,scrollMoving:!1}),l=Lr((()=>e.data||Cv)),a=yt([]);bn(l,(()=>{a.value=dt(l.value).slice()}),{immediate:!0});const s=yt((e=>{}));bn((()=>e.itemKey),(e=>{s.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const c=yt(),u=yt(),d=yt(),p=e=>s.value(e),h={getKey:p};function f(e){let t;t="function"==typeof e?e(i.scrollTop):e;const n=function(e){let t=e;return Number.isNaN(w.value)||(t=Math.min(t,w.value)),t=Math.max(t,0),t}(t);c.value&&(c.value.scrollTop=n),i.scrollTop=n}const[g,m,v,b]=function(e,t,n,o){const r=new Map,i=new Map,l=bt(Symbol("update"));let a;function s(){ma.cancel(a)}function c(){s(),a=ma((()=>{r.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;i.get(t)!==n&&(l.value=Symbol("update"),i.set(t,e.offsetHeight))}}))}))}return bn(e,(()=>{l.value=Symbol("update")})),Gn((()=>{s()})),[function(e,i){const l=t(e),a=r.get(l);i?(r.set(l,i.$el||i),c()):r.delete(l),!a!=!i&&(i?null==n||n(e):null==o||o(e))},c,i,l]}(a,p,null,null),y=rt({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=yt(0);Vn((()=>{Ft((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),Un((()=>{Ft((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),bn([o,a],(()=>{o.value||cl(y,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})}),{immediate:!0}),bn([o,a,O,r],(()=>{o.value&&!r.value&&cl(y,{scrollHeight:O.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(i.scrollTop=c.value.scrollTop)}),{immediate:!0}),bn([r,o,()=>i.scrollTop,a,b,()=>e.height,O],(()=>{if(!o.value||!r.value)return;let t,n,l,s=0;const c=a.value.length,u=a.value,d=i.scrollTop,{itemHeight:h,height:f}=e,g=d+f;for(let e=0;e=d&&(t=e,n=s),void 0===l&&a>g&&(l=e),s=a}void 0===t&&(t=0,n=0,l=Math.ceil(f/h)),void 0===l&&(l=c-1),l=Math.min(l+1,c),cl(y,{scrollHeight:s,start:t,end:l,offset:n})}),{immediate:!0});const w=Lr((()=>y.scrollHeight-e.height)),S=Lr((()=>i.scrollTop<=0)),$=Lr((()=>i.scrollTop>=w.value)),x=xv(S,$),[C,k]=function(e,t,n,o){let r=0,i=null,l=null,a=!1;const s=xv(t,n);return[function(t){if(!e.value)return;ma.cancel(i);const{deltaY:n}=t;r+=n,l=n,s(n)||($v||t.preventDefault(),i=ma((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===l)}]}(o,S,$,(e=>{f((t=>t+e))}));function P(e){o.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,i=null,l=null;const a=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",c))},s=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(l),l=setInterval((()=>{o*=.9333333333333333,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(l)}),16)}},c=()=>{o=!1,a()},u=e=>{a(),1!==e.touches.length||o||(o=!0,r=Math.ceil(e.touches[0].pageY),i=e.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",c))},d=()=>{};Vn((()=>{document.addEventListener("touchmove",d,{passive:!1}),bn(e,(e=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(l),e&&t.value.addEventListener("touchstart",u,{passive:!1})}),{immediate:!0})})),Kn((()=>{document.removeEventListener("touchmove",d)}))}(o,c,((e,t)=>!x(e,t)&&(C({preventDefault(){},deltaY:e}),!0)));const T=()=>{c.value&&(c.value.removeEventListener("wheel",C,!!Ma&&{passive:!1}),c.value.removeEventListener("DOMMouseScroll",k),c.value.removeEventListener("MozMousePixelScroll",P))};mn((()=>{Ft((()=>{c.value&&(T(),c.value.addEventListener("wheel",C,!!Ma&&{passive:!1}),c.value.addEventListener("DOMMouseScroll",k),c.value.addEventListener("MozMousePixelScroll",P))}))})),Kn((()=>{T()}));const M=function(e,t,n,o,r,i,l,a){let s;return c=>{if(null==c)return void a();ma.cancel(s);const u=t.value,d=o.itemHeight;if("number"==typeof c)l(c);else if(c&&"object"==typeof c){let t;const{align:o}=c;"index"in c?({index:t}=c):t=u.findIndex((e=>r(e)===c.key));const{offset:a=0}=c,p=(c,h)=>{if(c<0||!e.value)return;const f=e.value.clientHeight;let g=!1,m=h;if(f){const i=h||o;let s=0,c=0,p=0;const v=Math.min(u.length,t);for(let e=0;e<=v;e+=1){const o=r(u[e]);c=s;const i=n.get(o);p=c+(void 0===i?d:i),s=p,e===t&&void 0===i&&(g=!0)}const b=e.value.scrollTop;let y=null;switch(i){case"top":y=c-a;break;case"bottom":y=p-f+a;break;default:cb+f&&(m="bottom")}null!==y&&y!==b&&l(y)}s=ma((()=>{g&&i(),p(c-1,m)}),2)};p(5)}}}(c,a,v,e,p,m,f,(()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}));n({scrollTo:M});const I=Lr((()=>{let t=null;return e.height&&(t=cl({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},kv),o.value&&(t.overflowY="hidden",i.scrollMoving&&(t.pointerEvents="none"))),t}));return bn([()=>y.start,()=>y.end,a],(()=>{if(e.onVisibleChange){const t=a.value.slice(y.start,y.end+1);e.onVisibleChange(t,a.value)}}),{flush:"post"}),{state:i,mergedData:a,componentStyle:I,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==i.scrollTop&&f(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){f(e)},componentRef:c,useVirtual:o,calRes:y,collectHeight:m,setInstance:g,sharedConfig:h,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}}},render(){const e=cl(cl({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:i,itemKey:l,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:p}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[br(bv,{prefixCls:t,height:m,offset:v,onInnerResize:x,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,i){let{getKey:l}=i;return e.slice(t,n+1).map(((e,n)=>{const i=r(e,t+n,{}),a=l(e);return br(Ov,{key:a,setRef:t=>o(e,t)},{default:()=>[i]})}))}(P,b,y,k,u,C)})]}),$&&br(Sv,{ref:"scrollBarRef",prefixCls:t,scrollTop:g,height:n,scrollHeight:m,count:P.length,onScroll:S,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Tv(e,t,n){const o=bt(e());return bn(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}const Mv=Symbol("SelectContextKey");function Iv(e){return"string"==typeof e||"number"==typeof e}const Ev=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:o}=t;const r=dv(),i=Mo(Mv,{}),l=Lr((()=>`${r.prefixCls}-item`)),a=Tv((()=>i.flattenOptions),[()=>r.open,()=>i.flattenOptions],(e=>e[0])),s=sv(),c=e=>{e.preventDefault()},u=e=>{s.current&&s.current.scrollTo("number"==typeof e?{index:e}:e)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=a.value.length;for(let o=0;o1&&void 0!==arguments[1]&&arguments[1];p.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=a.value[e];o?i.onActiveValue(o.value,e,n):i.onActiveValue(null,-1,n)};bn([()=>a.value.length,()=>r.searchValue],(()=>{h(!1!==i.defaultActiveFirstOption?d(0):-1)}),{immediate:!0});const f=e=>i.rawValues.has(e)&&"combobox"!==r.mode;bn([()=>r.open,()=>r.searchValue],(()=>{if(!r.multiple&&r.open&&1===i.rawValues.size){const e=Array.from(i.rawValues)[0],t=dt(a.value).findIndex((t=>{let{data:n}=t;return n[i.fieldNames.value]===e}));-1!==t&&(h(t),Ft((()=>{u(t)})))}r.open&&Ft((()=>{var e;null===(e=s.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const g=e=>{void 0!==e&&i.onSelect(e,{selected:!i.rawValues.has(e)}),r.multiple||r.toggleOpen(!1)},m=e=>"function"==typeof e.label?e.label():e.label;function v(e){const t=a.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:i}=t,l=Lm(n,!0),s=m(t);return t?br("div",sl(sl({"aria-label":"string"!=typeof s||i?null:s},l),{},{key:e,role:i?"presentation":"option",id:`${r.id}_list_${e}`,"aria-selected":f(o)}),[o]):null}return n({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case Im.N:case Im.P:case Im.UP:case Im.DOWN:{let e=0;if(t===Im.UP?e=-1:t===Im.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Im.N?e=1:t===Im.P&&(e=-1)),0!==e){const t=d(p.activeIndex+e,e);u(t),h(t,!0)}break}case Im.ENTER:{const t=a.value[p.activeIndex];t&&!t.data.disabled?g(t.value):g(void 0),r.open&&e.preventDefault();break}case Im.ESC:r.toggleOpen(!1),r.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{u(e)}}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=r,{menuItemSelectedIcon:u,fieldNames:d,virtual:b,listHeight:y,listItemHeight:O}=i,w=o.option,{activeIndex:S}=p,$=Object.keys(d).map((e=>d[e]));return 0===a.value.length?br("div",{role:"listbox",id:`${e}_list`,class:`${l.value}-empty`,onMousedown:c},[t]):br(er,null,[br("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[v(S-1),v(S),v(S+1)]),br(Pv,{itemKey:"key",ref:s,data:a.value,height:y,itemHeight:O,fullHeight:!1,onMousedown:c,onScroll:n,virtual:b},{default:(e,t)=>{var n;const{group:o,groupOption:r,data:i,value:a}=e,{key:s}=i,c="function"==typeof e.label?e.label():e.label;if(o){const e=null!==(n=i.title)&&void 0!==n?n:Iv(c)&&c;return br("div",{class:xl(l.value,`${l.value}-group`),title:e},[w?w(i):void 0!==c?c:s])}const{disabled:d,title:p,children:v,style:b,class:y,className:O}=i,x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{x.onMousemove&&x.onMousemove(e),S===t||d||h(t)},onClick:e=>{d||g(a),x.onClick&&x.onClick(e)},style:b}),[br("div",{class:`${P}-content`},[w?w(i):E]),sa(u)||k,I&&br(Am,{class:`${l.value}-option-state`,customizeIcon:u,customizeIconProps:{isSelected:k}},{default:()=>[k?"✓":null]})])}})])}}}),Av=Ev;function Dv(e){const t=e,{key:n,children:o}=t,r=t.props,{value:i,disabled:l}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1];return ql(e).map(((e,n)=>{var o;if(!sa(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:i,children:l,props:a}=e;if(t||!r)return Dv(e);const s=l&&l.default?l.default():void 0,c=(null==a?void 0:a.label)||(null===(o=l.label)||void 0===o?void 0:o.call(l))||i;return cl(cl({key:`__RC_SELECT_GRP__${null===i?n:String(i)}__`},a),{label:c,options:Rv(s||[])})})).filter((e=>e))}function zv(e,t,n){const o=yt(),r=yt(),i=yt(),l=yt([]);return bn([e,t],(()=>{e.value?l.value=dt(e.value).slice():l.value=Rv(t.value)}),{immediate:!0,deep:!0}),mn((()=>{const e=l.value,t=new Map,a=new Map,s=n.value;!function e(n){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:bt("");const t=`rc_select_${function(){let e;return jv?(e=Bv,Bv+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function _v(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Qv(e,t){return _v(e).join("").toUpperCase().includes(t)}function Lv(e,t){const{defaultValue:n,value:o=bt()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=St(o)),void 0!==n&&(r="function"==typeof n?n():n);const i=bt(r),l=bt(r);return mn((()=>{let e=void 0!==o.value?o.value:i.value;t.postState&&(e=t.postState(e)),l.value=e})),bn(o,(()=>{i.value=o.value})),[l,function(e){const n=l.value;i.value=e,dt(l.value)!==e&&t.onChange&&t.onChange(e,n)}]}function Hv(e){const t=bt("function"==typeof e?e():e);return[t,function(e){t.value=e}]}const Fv=["inputValue"];function Wv(){return cl(cl({},fv()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:$p.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:$p.any,defaultValue:$p.any,onChange:Function,children:Array})}const Xv=jn({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Zl(Wv(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>gv(e.mode))),a=Lr((()=>!(e.options||!e.children))),s=Lr((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),c=Lr((()=>Ip(e.fieldNames,a.value))),[u,d]=Lv("",{value:Lr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),p=zv(Tt(e,"options"),Tt(e,"children"),c),{valueOptions:h,labelOptions:f,options:g}=p,m=t=>_v(t).map((t=>{var n,o;let r,i,l,a;var s;(s=t)&&"object"==typeof s?(l=t.key,i=t.label,r=null!==(n=t.value)&&void 0!==n?n:l):r=t;const u=h.value.get(r);return u&&(void 0===i&&(i=null==u?void 0:u[e.optionLabelProp||c.value.label]),void 0===l&&(l=null!==(o=null==u?void 0:u.key)&&void 0!==o?o:r),a=null==u?void 0:u.disabled),{label:i,value:r,key:l,disabled:a,option:u}})),[v,b]=Lv(e.defaultValue,{value:Tt(e,"value")}),y=Lr((()=>{var t;const n=m(v.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[O,w]=((e,t)=>{const n=yt({values:new Map,options:new Map});return[Lr((()=>{const{values:o,options:r}=n.value,i=e.value.map((e=>{var t;return void 0===e.label?cl(cl({},e),{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,a=new Map;return i.forEach((e=>{l.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),n.value.values=l,n.value.options=a,i})),e=>t.value.get(e)||n.value.options.get(e)]})(y,h),S=Lr((()=>{if(!e.mode&&1===O.value.length){const e=O.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return O.value.map((e=>{var t;return cl(cl({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),$=Lr((()=>new Set(O.value.map((e=>e.value)))));mn((()=>{var t;if("combobox"===e.mode){const e=null===(t=O.value[0])||void 0===t?void 0:t.value;null!=e&&d(String(e))}}),{flush:"post"});const x=(e,t)=>{const n=null!=t?t:e;return{[c.value.value]:e,[c.value.label]:n}},C=yt();mn((()=>{if("tags"!==e.mode)return void(C.value=g.value);const t=g.value.slice();[...O.value].sort(((e,t)=>e.value{const n=e.value;(e=>h.value.has(e))(n)||t.push(x(n,e.label))})),C.value=t}));const k=(P=C,T=c,M=u,I=s,E=Tt(e,"optionFilterProp"),Lr((()=>{const e=M.value,t=null==E?void 0:E.value,n=null==I?void 0:I.value;if(!e||!1===n)return P.value;const{options:o,label:r,value:i}=T.value,l=[],a="function"==typeof n,s=e.toUpperCase(),c=a?n:(e,n)=>t?Qv(n[t],s):n[o]?Qv(n["children"!==r?r:"label"],s):Qv(n[i],s),u=a?e=>Ep(e):e=>e;return P.value.forEach((t=>{if(t[o])if(c(e,u(t)))l.push(t);else{const n=t[o].filter((t=>c(e,u(t))));n.length&&l.push(cl(cl({},t),{[o]:n}))}else c(e,u(t))&&l.push(t)})),l})));var P,T,M,I,E;const A=Lr((()=>"tags"!==e.mode||!u.value||k.value.some((t=>t[e.optionFilterProp||"value"]===u.value))?k.value:[x(u.value),...k.value])),D=Lr((()=>e.filterSort?[...A.value].sort(((t,n)=>e.filterSort(t,n))):A.value)),R=Lr((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:i,options:l}=Ip(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(l in t)){const e=t[i];o.push({key:Mp(t,o.length),groupOption:a,data:t,label:s,value:e})}else{let r=s;void 0===r&&n&&(r=t.label),o.push({key:Mp(t,o.length),group:!0,data:t,label:r}),e(t[l],!0)}}))}(e,!1),o}(D.value,{fieldNames:c.value,childrenAsData:a.value}))),z=t=>{const n=m(t);if(b(n),e.onChange&&(n.length!==O.value.length||n.some(((e,t)=>{var n;return(null===(n=O.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>cl(cl({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>Ep(w(e.value))));e.onChange(l.value?t:t[0],l.value?o:o[0])}},[B,j]=Hv(null),[N,_]=Hv(0),Q=Lr((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),L=(t,n)=>{const o=()=>{var n;const o=w(t),r=null==o?void 0:o[c.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==o?void 0:o.key)&&void 0!==n?n:t}:t,Ep(o)]};if(n&&e.onSelect){const[t,n]=o();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=o();e.onDeselect(t,n)}},H=(e,t)=>{z(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((e=>{L(e.value,!1)}))},F=(t,n)=>{var o;if(d(t),j(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&z(t),null===(o=e.onSearch)||void 0===o||o.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...$.value,e]));z(t),L(e,!0),d("")}}},W=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=f.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...$.value,...n]));z(o),o.forEach((e=>{L(e,!0)}))},X=Lr((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){To(Mv,e)}(td(cl(cl({},p),{flattenOptions:R,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&j(String(t))},defaultActiveFirstOption:Q,onSelect:(t,n)=>{let o;const r=!l.value||n.selected;o=r?l.value?[...O.value,t]:[t]:O.value.filter((e=>e.value!==t)),z(o),L(t,r),"combobox"===e.mode?j(""):l.value&&!e.autoClearSearchValue||(d(""),j(""))},menuItemSelectedIcon:Tt(e,"menuItemSelectedIcon"),rawValues:$,fieldNames:c,virtual:X,listHeight:Tt(e,"listHeight"),listItemHeight:Tt(e,"listItemHeight"),childrenAsData:a})));const Y=bt();n({focus(){var e;null===(e=Y.value)||void 0===e||e.focus()},blur(){var e;null===(e=Y.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=Y.value)||void 0===t||t.scrollTo(e)}});const V=Lr((()=>xd(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>br(mv,sl(sl(sl({},V.value),o),{},{id:i,prefixCls:e.prefixCls,ref:Y,omitDomProps:Fv,mode:e.mode,displayValues:S.value,onDisplayValuesChange:H,searchValue:u.value,onSearch:F,onSearchSplit:W,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Av,emptyOptions:!R.value.length,activeValue:B.value,activeDescendantId:`${i}_list_${N.value}`}),r)}}),Yv=()=>null;Yv.isSelectOption=!0,Yv.displayName="ASelectOption";const Vv=Yv,Zv=()=>null;Zv.isSelectOptGroup=!0,Zv.displayName="ASelectOptGroup";const Uv=Zv,Kv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Gv=Symbol("iconContext"),qv=function(){return Mo(Gv,{prefixCls:bt("anticon"),rootClassName:bt(""),csp:bt()})};function Jv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var eb="data-vc-order",tb=new Map;function nb(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"vc-icon-key"}function ob(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rb(e){return Array.from((tb.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ib(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jv())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(eb,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=ob(t),l=i.firstChild;if(o){if("queue"===o){var a=rb(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(eb))}));if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function lb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n,o,r=tb.get(e);if(!(r&&(n=document,o=r,n&&n.contains&&n.contains(o)))){var i=ib("",t),l=i.parentNode;tb.set(e,l),e.removeChild(i)}}(ob(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rb(ob(t)).find((function(n){return n.getAttribute(nb(t))===e}))}(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var r=ib(e,n);return r.setAttribute(nb(n),t),r}function ab(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vb(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t&&(r=r.replace(/anticon/g,t.value)),Ft((function(){if(Jv()){var e=fb(o.vnode.el);lb(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null}}}),kb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Pb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,r=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}xb(Tu.primary);var Ab=function(e,t){var n,o=Mb({},e,t.attrs),r=o.class,i=o.icon,l=o.spin,a=o.rotate,s=o.tabindex,c=o.twoToneColor,u=o.onClick,d=Eb(o,kb),p=qv(),h=p.prefixCls,f=p.rootClassName,g=(Ib(n={},f.value,!!f.value),Ib(n,h.value,!0),Ib(n,"".concat(h.value,"-").concat(i.name),Boolean(i.name)),Ib(n,"".concat(h.value,"-spin"),!!l||"loading"===i.name),n),m=s;void 0===m&&u&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Pb(pb(c),2),y=b[0],O=b[1];return br("span",Mb({role:"img","aria-label":i.name},d,{onClick:u,class:[g,r],tabindex:m}),[br(wb,{icon:i,primaryColor:y,secondaryColor:O,style:v},null),br(Cb,null,null)])};Ab.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Ab.displayName="AntdIcon",Ab.inheritAttrs=!1,Ab.getTwoToneColor=function(){var e=wb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ab.setTwoToneColor=xb;const Db=Ab;function Rb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:i,feedbackIcon:l,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),p=null!=c?c:br(oy,null,null),h=e=>br(er,null,[!1!==a&&e,i&&l]);let f=null;if(void 0!==s)f=h(s);else if(n)f=h(br(Hb,{spin:!0},null));else{const e=`${r}-suffix`;f=t=>{let{open:n,showSearch:o}=t;return h(br(n&&o?sy:jb,{class:e},null))}}let g=null;g=void 0!==u?u:o?br(Vb,null,null):null;let m=null;return m=void 0!==d?d:br(qb,null,null),{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:m}}function uy(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=rt({});return To(t,o),mn((()=>{cl(o,e,n||{})})),o},useInject:()=>Mo(t,e)||{}}}const dy=Symbol("ContextProps"),py=Symbol("InternalContextProps"),hy={id:Lr((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},fy={addFormItemField:()=>{},removeFormItemField:()=>{}},gy=()=>{const e=Mo(py,fy),t=Symbol("FormItemFieldKey"),n=Mr();return e.addFormItemField(t,n.type),Kn((()=>{e.removeFormItemField(t)})),To(py,fy),To(dy,hy),Mo(dy,hy)},my=jn({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return To(py,fy),To(dy,hy),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),vy=uy({}),by=jn({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return vy.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function yy(e,t,n){return xl({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Oy=(e,t)=>t||e,wy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Sy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},$y=Ku("Space",(e=>[Sy(e),wy(e)]));function xy(e){return"symbol"==typeof e||qf(e)&&"[object Symbol]"==pf(e)}function Cy(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n0){if(++Yy>=800)return arguments[0]}else Yy=0;return Xy.apply(void 0,arguments)});const Ky=Uy;function Gy(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i-1}function eO(e,t,n){"__proto__"==t&&Wy?Wy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tO=Object.prototype.hasOwnProperty;function nO(e,t,n){var o=e[t];tO.call(e,t)&&Gh(o,n)&&(void 0!==n||t in e)||eO(e,t,n)}function oO(e,t,n,o){var r=!n;n||(n={});for(var i=-1,l=t.length;++i0&&n(a)?t>1?SO(a,t-1,n,o,r):Xf(r,a):o||(r[r.length]=a)}return r}function $O(e){return null!=e&&e.length?SO(e,1):[]}function xO(e){return Ky(iO(e,void 0,$O),e+"")}const CO=xg(Object.getPrototypeOf,Object);var kO=Function.prototype,PO=Object.prototype,TO=kO.toString,MO=PO.hasOwnProperty,IO=TO.call(Object);function EO(e){if(!qf(e)||"[object Object]"!=pf(e))return!1;var t=CO(e);if(null===t)return!0;var n=MO.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&TO.call(n)==IO}var AO="object"==typeof e&&e&&!e.nodeType&&e,DO=AO&&"object"==typeof t&&t&&!t.nodeType&&t,RO=DO&&DO.exports===AO?of.Buffer:void 0,zO=RO?RO.allocUnsafe:void 0;const BO=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xf(t,Gf(e)),e=CO(e);return t}:Zf;function jO(e){return Vf(e,sO,BO)}var NO=Object.prototype.hasOwnProperty;function _O(e){var t=new e.constructor(e.byteLength);return new Qf(t).set(new Qf(e)),t}var QO=/\w*$/,LO=rf?rf.prototype:void 0,HO=LO?LO.valueOf:void 0;function FO(e,t,n){var o,r,i,l=e.constructor;switch(t){case"[object ArrayBuffer]":return _O(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return function(e,t){var n=t?_O(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?_O(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(i=new(r=e).constructor(r.source,QO.exec(r))).lastIndex=r.lastIndex,i;case"[object Symbol]":return o=e,HO?Object(HO.call(o)):{}}}var WO=vg&&vg.isMap;const XO=WO?hg(WO):function(e){return qf(e)&&"[object Map]"==Vg(e)};var YO=vg&&vg.isSet;const VO=YO?hg(YO):function(e){return qf(e)&&"[object Set]"==Vg(e)};var ZO,UO="[object Arguments]",KO="[object Function]",GO="[object Object]",qO={};function JO(e,t,n,o,r,i){var l,a=1&t,s=2&t,c=4&t;if(n&&(l=r?n(e,o,r,i):n(e)),void 0!==l)return l;if(!hf(e))return e;var u=Yf(e);if(u){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&NO.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n=t||n<0||d&&e-c>=i}function g(){var e=fw();if(f(e))return m(e);a=setTimeout(g,function(e){var n=t-(e-s);return d?mw(n,i-(e-c)):n}(e))}function m(e){return a=void 0,p&&o?h(e):(o=r=void 0,l)}function v(){var e=fw(),n=f(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(g,t),u?h(e):l}(s);if(d)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=By(t)||0,hf(n)&&(u=!!n.leading,i=(d="maxWait"in n)?gw(By(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=s=r=a=void 0},v.flush=function(){return void 0===a?l:m(fw())},v}function bw(e,t,n){for(var o=-1,r=null==e?0:e.length;++o-1?o[r?e[i]:i]:void 0});var Sw=Math.min;function $w(e){return function(e){return qf(e)&&Tg(e)}(e)?e:[]}var xw=function(e,t){return Ky(iO(e,t,_y),e+"")}((function(e){var t=Cy(e,$w);return t.length&&t[0]===e[0]?function(e,t,n){for(var o=n?bw:Jy,r=e[0].length,i=e.length,l=i,a=Array(i),s=1/0,c=[];l--;){var u=e[l];l&&t&&(u=Cy(u,hg(t))),s=Sw(u.length,s),a[l]=!n&&(t||r>=120&&u.length>=120)?new Bf(l&&u):void 0}u=e[0];var d=-1,p=a[0];e:for(;++dr?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o1),t})),oO(e,jO(e),n),o&&(n=JO(n,7,Iw));for(var r=t.length;r--;)Mw(n,t[r]);return n}));function Aw(e,t,n,o){if(!hf(e))return e;for(var r=-1,i=(t=vO(t,e)).length,l=i-1,a=e;null!=a&&++r=200){var c=t?null:_w(e);if(c)return Hf(c);l=!1,r=Nf,s=new Bf}else s=t?[]:a;e:for(;++o{const n=Lw.useInject(),o=Lr((()=>{if(!n||Tw(n))return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,l="vertical"===o?"-vertical-":"-";return xl({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:r,[`${e.value}-compact${l}last-item`]:i,[`${e.value}-compact${l}item-rtl`]:"rtl"===t.value})}));return{compactSize:Lr((()=>null==n?void 0:n.compactSize)),compactDirection:Lr((()=>null==n?void 0:n.compactDirection)),compactItemClassnames:o}},Fw=jn({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Lw.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Ww=jn({name:"CompactItem",props:{compactSize:String,compactDirection:$p.oneOf(ba("horizontal","vertical")).def("horizontal"),isFirstItem:Sa(),isLastItem:Sa()},setup(e,t){let{slots:n}=t;return Lw.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Xw=jn({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:$p.oneOf(ba("horizontal","vertical")).def("horizontal"),align:$p.oneOf(ba("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d("space-compact",e),l=Lw.useInject(),[a,s]=$y(r),c=Lr((()=>xl(r.value,s.value,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const i=ql((null===(t=o.default)||void 0===t?void 0:t.call(o))||[]);return 0===i.length?null:a(br("div",sl(sl({},n),{},{class:[c.value,n.class]}),[i.map(((t,n)=>{var o;const a=t&&t.key||`${r.value}-item-${n}`,s=!l||Tw(l);return br(Ww,{key:a,compactSize:null!==(o=e.size)&&void 0!==o?o:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null==l?void 0:l.isFirstItem)),isLastItem:n===i.length-1&&(s||(null==l?void 0:l.isLastItem))},{default:()=>[t]})}))]))}}}),Yw=e=>({animationDuration:e,animationFillMode:"both"}),Vw=e=>({animationDuration:e,animationFillMode:"both"}),Zw=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:cl(cl({},Yw(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:cl(cl({},Vw(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Uw=new Hc("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Kw=new Hc("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Gw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Zw(o,Uw,Kw,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},qw=new Hc("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jw=new Hc("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eS=new Hc("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tS=new Hc("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nS=new Hc("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oS=new Hc("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rS={"move-up":{inKeyframes:new Hc("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Hc("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:qw,outKeyframes:Jw},"move-left":{inKeyframes:eS,outKeyframes:tS},"move-right":{inKeyframes:nS,outKeyframes:oS}},iS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=rS[t];return[Zw(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lS=new Hc("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),aS=new Hc("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),sS=new Hc("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),cS=new Hc("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),uS=new Hc("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),dS=new Hc("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pS=new Hc("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hS=new Hc("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fS={"slide-up":{inKeyframes:lS,outKeyframes:aS},"slide-down":{inKeyframes:sS,outKeyframes:cS},"slide-left":{inKeyframes:uS,outKeyframes:dS},"slide-right":{inKeyframes:pS,outKeyframes:hS}},gS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=fS[t];return[Zw(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},mS=new Hc("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vS=new Hc("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bS=new Hc("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yS=new Hc("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),OS=new Hc("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wS=new Hc("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),SS=new Hc("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$S=new Hc("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xS=new Hc("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),CS=new Hc("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kS=new Hc("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),PS=new Hc("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TS={zoom:{inKeyframes:mS,outKeyframes:vS},"zoom-big":{inKeyframes:bS,outKeyframes:yS},"zoom-big-fast":{inKeyframes:bS,outKeyframes:yS},"zoom-left":{inKeyframes:SS,outKeyframes:$S},"zoom-right":{inKeyframes:xS,outKeyframes:CS},"zoom-up":{inKeyframes:OS,outKeyframes:wS},"zoom-down":{inKeyframes:kS,outKeyframes:PS}},MS=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=TS[t];return[Zw(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ES=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},AS=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:lS},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:sS},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:aS},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:cS},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:cl(cl({},ES(e)),{color:e.colorTextDisabled}),[`${o}`]:cl(cl({},ES(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":cl({flex:"auto"},Wu),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]};function DS(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function RS(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[l]=DS(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:l-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function zS(e){const{componentCls:t}=e,n=Ju(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=DS(e);return[RS(e),RS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},RS(Ju(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function BS(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:cl(cl({},Xu(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function jS(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[BS(e),BS(Ju(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},BS(Ju(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function NS(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${l}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":cl(cl({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function _S(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function QS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:cl(cl({},NS(e,o,t)),_S(n,o,t))}}const LS=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},HS=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:cl(cl({},n?{[`${o}-selector`]:{borderColor:r}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},FS=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},WS=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:cl(cl({},LS(e)),FS(e)),[`${t}-selection-item`]:cl({flex:1,fontWeight:"normal"},Wu),[`${t}-selection-placeholder`]:cl(cl({},Wu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},XS=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},WS(e),jS(e),zS(e),AS(e),{[`${t}-rtl`]:{direction:"rtl"}},HS(t,Ju(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),HS(`${t}-status-error`,Ju(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),HS(`${t}-status-warning`,Ju(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),QS(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},YS=Ku("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Ju(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[XS(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),VS=()=>cl(cl({},xd(Wv(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Pa([Array,Object,String,Number]),defaultValue:Pa([Array,Object,String,Number]),notFoundContent:$p.any,suffixIcon:$p.any,itemIcon:$p.any,size:ka(),mode:ka(),bordered:Sa(!0),transitionName:String,choiceTransitionName:ka(""),popupClassName:String,dropdownClassName:String,placement:ka(),status:ka(),"onUpdate:value":$a()}),ZS="SECRET_COMBOBOX_MODE_DO_NOT_USE",US=jn({compatConfig:{MODE:3},name:"ASelect",Option:Vv,OptGroup:Uv,inheritAttrs:!1,props:Zl(VS(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:ZS,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:i}=t;const l=bt(),a=gy(),s=vy.useInject(),c=Lr((()=>Oy(s.status,e.status))),u=Lr((()=>{const{mode:t}=e;if("combobox"!==t)return t===ZS?"combobox":t})),{prefixCls:d,direction:p,configProvider:h,renderEmpty:f,size:g,getPrefixCls:m,getPopupContainer:v,disabled:b,select:y}=$d("select",e),{compactSize:O,compactItemClassnames:w}=Hw(d,p),S=Lr((()=>O.value||g.value)),$=Wa(),x=Lr((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:$.value})),[C,k]=YS(d),P=Lr((()=>m())),T=Lr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft")),M=Lr((()=>am(P.value,rm(T.value),e.transitionName))),I=Lr((()=>xl({[`${d.value}-lg`]:"large"===S.value,[`${d.value}-sm`]:"small"===S.value,[`${d.value}-rtl`]:"rtl"===p.value,[`${d.value}-borderless`]:!e.bordered,[`${d.value}-in-form-item`]:s.isFormItemInput},yy(d.value,c.value,s.hasFeedback),w.value,k.value))),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n{o("blur",e),a.onFieldBlur()};i({blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},scrollTo:e=>{var t;null===(t=l.value)||void 0===t||t.scrollTo(e)}});const D=Lr((()=>"multiple"===u.value||"tags"===u.value)),R=Lr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(D.value||"combobox"===u.value)));return()=>{var t,o,i,c;const{notFoundContent:h,listHeight:g=256,listItemHeight:m=24,popupClassName:b,dropdownClassName:O,virtual:w,dropdownMatchSelectWidth:S,id:$=a.id.value,placeholder:P=(null===(t=r.placeholder)||void 0===t?void 0:t.call(r)),showArrow:T}=e,{hasFeedback:z,feedbackIcon:B}=s;let j;j=void 0!==h?h:r.notFoundContent?r.notFoundContent():"combobox"===u.value?null:(null==f?void 0:f("Select"))||br(bd,{componentName:"Select"},null);const{suffixIcon:N,itemIcon:_,removeIcon:Q,clearIcon:L}=cy(cl(cl({},e),{multiple:D.value,prefixCls:d.value,hasFeedback:z,feedbackIcon:B,showArrow:R.value}),r),H=xd(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),F=xl(b||O,{[`${d.value}-dropdown-${p.value}`]:"rtl"===p.value},k.value);return C(br(Xv,sl(sl(sl({ref:l,virtual:w,dropdownMatchSelectWidth:S},H),n),{},{showSearch:null!==(o=e.showSearch)&&void 0!==o?o:null===(i=null==y?void 0:y.value)||void 0===i?void 0:i.showSearch,placeholder:P,listHeight:g,listItemHeight:m,mode:u.value,prefixCls:d.value,direction:p.value,inputIcon:N,menuItemSelectedIcon:_,removeIcon:Q,clearIcon:L,notFoundContent:j,class:[I.value,n.class],getPopupContainer:null==v?void 0:v.value,dropdownClassName:F,onChange:E,onBlur:A,id:$,dropdownRender:H.dropdownRender||r.dropdownRender,transitionName:M.value,children:null===(c=r.default)||void 0===c?void 0:c.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:z||T,disabled:x.value}),{option:r.option}))}}});US.install=function(e){return e.component(US.name,US),e.component(US.Option.displayName,US.Option),e.component(US.OptGroup.displayName,US.OptGroup),e};const KS=US.Option,GS=US.OptGroup,qS=US,JS=()=>null;JS.isSelectOption=!0,JS.displayName="AAutoCompleteOption";const e$=JS,t$=()=>null;t$.isSelectOptGroup=!0,t$.displayName="AAutoCompleteOptGroup";const n$=t$,o$=e$,r$=n$,i$=jn({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:cl(cl({},xd(VS(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;Ts(),Ts(),Ts(!e.dropdownClassName);const i=bt(),l=()=>{var e;const t=ql(null===(e=n.default)||void 0===e?void 0:e.call(n));return t.length?t[0]:void 0};r({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()}});const{prefixCls:a}=$d("select",e);return()=>{var t,r,s;const{size:c,dataSource:u,notFoundContent:d=(null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n))}=e;let p;const{class:h}=o,f={[h]:!!h,[`${a.value}-lg`]:"large"===c,[`${a.value}-sm`]:"small"===c,[`${a.value}-show-search`]:!0,[`${a.value}-auto-complete`]:!0};if(void 0===e.options){const e=(null===(r=n.dataSource)||void 0===r?void 0:r.call(n))||(null===(s=n.options)||void 0===s?void 0:s.call(n))||[];p=e.length&&function(e){var t,n;return(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.isSelectOption)||(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.isSelectOptGroup)}(e[0])?e:u?u.map((e=>{if(sa(e))return e;switch(typeof e){case"string":return br(e$,{key:e,value:e},{default:()=>[e]});case"object":return br(e$,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}const g=xd(cl(cl(cl({},e),o),{mode:qS.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:d,class:f,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return br(qS,g,sl({default:()=>[p]},xd(n,["default","dataSource","options"])))}}}),l$=cl(i$,{Option:e$,OptGroup:n$,install:e=>(e.component(i$.name,i$),e.component(e$.displayName,e$),e.component(n$.displayName,n$),e)}),a$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function s$(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),F$=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:p,alertPaddingHorizontal:h,paddingMD:f,paddingContentHorizontalLG:g}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${h}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:g,paddingBlock:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},W$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":H$(r,o,n,e,t),"&-info":H$(h,p,d,e,t),"&-warning":H$(a,l,i,e,t),"&-error":cl(cl({},H$(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},X$=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}},Y$=e=>[F$(e),W$(e),X$(e)],V$=Ku("Alert",(e=>{const{fontSizeHeading3:t}=e,n=Ju(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[Y$(n)]})),Z$={success:E$,info:L$,error:oy,warning:B$},U$={success:d$,info:w$,error:k$,warning:m$},K$=ba("success","info","warning","error"),G$=ya(jn({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:{type:$p.oneOf(K$),closable:{type:Boolean,default:void 0},closeText:$p.any,message:$p.any,description:$p.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:$p.any,closeIcon:$p.any,onClose:Function},setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,direction:a}=$d("alert",e),[s,c]=V$(l),u=yt(!1),d=yt(!1),p=yt(),h=e=>{e.preventDefault();const t=p.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,u.value=!0,o("close",e)},f=()=>{var t;u.value=!1,d.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)},g=Lr((()=>{const{type:t}=e;return void 0!==t?t:e.banner?"warning":"info"}));i({animationEnd:f});const m=yt({});return()=>{var t,o,i,v,b,y,O,w,S,$;const{banner:x,closeIcon:C=(null===(t=n.closeIcon)||void 0===t?void 0:t.call(n))}=e;let{closable:k,showIcon:P}=e;const T=null!==(o=e.closeText)&&void 0!==o?o:null===(i=n.closeText)||void 0===i?void 0:i.call(n),M=null!==(v=e.description)&&void 0!==v?v:null===(b=n.description)||void 0===b?void 0:b.call(n),I=null!==(y=e.message)&&void 0!==y?y:null===(O=n.message)||void 0===O?void 0:O.call(n),E=null!==(w=e.icon)&&void 0!==w?w:null===(S=n.icon)||void 0===S?void 0:S.call(n),A=null===($=n.action)||void 0===$?void 0:$.call(n);P=!(!x||void 0!==P)||P;const D=(M?U$:Z$)[g.value]||null;T&&(k=!0);const R=l.value,z=xl(R,{[`${R}-${g.value}`]:!0,[`${R}-closing`]:u.value,[`${R}-with-description`]:!!M,[`${R}-no-icon`]:!P,[`${R}-banner`]:!!x,[`${R}-closable`]:k,[`${R}-rtl`]:"rtl"===a.value,[c.value]:!0}),B=k?br("button",{type:"button",onClick:h,class:`${R}-close-icon`,tabindex:0},[T?br("span",{class:`${R}-close-text`},[T]):void 0===C?br(qb,null,null):C]):null,j=E&&(sa(E)?Yh(E,{class:`${R}-icon`}):br("span",{class:`${R}-icon`},[E]))||br(D,{class:`${R}-icon`},null),N=im(`${R}-motion`,{appear:!1,css:!0,onAfterLeave:f,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight="0px"}});return s(d.value?null:br(qr,N,{default:()=>[$n(br("div",sl(sl({role:"alert"},r),{},{style:[r.style,m.value],class:[r.class,z],"data-show":!u.value,ref:p}),[P?j:null,br("div",{class:`${R}-content`},[I?br("div",{class:`${R}-message`},[I]):null,M?br("div",{class:`${R}-description`},[M]):null]),A?br("div",{class:`${R}-action`},[A]):null,B]),[[gi,!u.value]])]}))}}})),q$=["xxxl","xxl","xl","lg","md","sm","xs"];function J$(){const[,e]=ad();return Lr((()=>{const t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`}))(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch:e=>(r=e,n.forEach((e=>e(r))),n.size>=1),subscribe(e){return n.size||this.register(),o+=1,n.set(o,e),e(r),o},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(cl(cl({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}))}function ex(){const e=yt({});let t=null;const n=J$();return Vn((()=>{t=n.value.subscribe((t=>{e.value=t}))})),Gn((()=>{n.value.unsubscribe(t)})),e}function tx(e){const t=yt();return mn((()=>{t.value=e()}),{flush:"sync"}),t}const nx=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:l,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:h,borderRadiusSM:f,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,lineHeight:e-2*g+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${g}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(l,c,p)),{"&-lg":cl({},v(a,u,h)),"&-sm":cl({},v(s,d,f)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ox=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},rx=Ku("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Ju(e,{avatarBg:n,avatarColor:t});return[nx(o),ox(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+l)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}})),ix=Symbol("AvatarContextKey"),lx=jn({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:$p.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=yt(!0),i=yt(!1),l=yt(1),a=yt(null),s=yt(null),{prefixCls:c}=$d("avatar",e),[u,d]=rx(c),p=Mo(ix,{}),h=Lr((()=>"default"===e.size?p.size:e.size)),f=ex(),g=tx((()=>{if("object"!=typeof e.size)return;const t=q$.find((e=>f.value[e]));return e.size[t]})),m=()=>{if(!a.value||!s.value)return;const t=a.value.offsetWidth,n=s.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(r.value=!1)};return bn((()=>e.src),(()=>{Ft((()=>{r.value=!0,l.value=1}))})),bn((()=>e.gap),(()=>{Ft((()=>{m()}))})),Vn((()=>{Ft((()=>{m(),i.value=!0}))})),()=>{var t,f;const{shape:b,src:y,alt:O,srcset:w,draggable:S,crossOrigin:$}=e,x=null!==(t=p.shape)&&void 0!==t?t:b,C=ca(n,e,"icon"),k=c.value,P={[`${o.class}`]:!!o.class,[k]:!0,[`${k}-lg`]:"large"===h.value,[`${k}-sm`]:"small"===h.value,[`${k}-${x}`]:!0,[`${k}-image`]:y&&r.value,[`${k}-icon`]:C,[d.value]:!0},T="number"==typeof h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:C?h.value/2+"px":"18px"}:{},M=null===(f=n.default)||void 0===f?void 0:f.call(n);let I;if(y&&r.value)I=br("img",{draggable:S,src:y,srcset:w,onError:v,alt:O,crossorigin:$},null);else if(C)I=C;else if(i.value||1!==l.value){const e=`scale(${l.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof h.value?{lineHeight:`${h.value}px`}:{};I=br(ua,{onResize:m},{default:()=>[br("span",{class:`${k}-string`,ref:a,style:cl(cl({},n),t)},[M])]})}else I=br("span",{class:`${k}-string`,ref:a,style:{opacity:0}},[M]);return u(br("span",sl(sl({},o),{},{ref:s,class:P,style:[T,(E=!!C,g.value?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:(E?g.value/2:18)+"px"}:{}),o.style]}),[I]));var E}}}),ax={adjustX:1,adjustY:1},sx=[0,0],cx={left:{points:["cr","cl"],overflow:ax,offset:[-4,0],targetOffset:sx},right:{points:["cl","cr"],overflow:ax,offset:[4,0],targetOffset:sx},top:{points:["bc","tc"],overflow:ax,offset:[0,-4],targetOffset:sx},bottom:{points:["tc","bc"],overflow:ax,offset:[0,4],targetOffset:sx},topLeft:{points:["bl","tl"],overflow:ax,offset:[0,-4],targetOffset:sx},leftTop:{points:["tr","tl"],overflow:ax,offset:[-4,0],targetOffset:sx},topRight:{points:["br","tr"],overflow:ax,offset:[0,-4],targetOffset:sx},rightTop:{points:["tl","tr"],overflow:ax,offset:[4,0],targetOffset:sx},bottomRight:{points:["tr","br"],overflow:ax,offset:[0,4],targetOffset:sx},rightBottom:{points:["bl","br"],overflow:ax,offset:[4,0],targetOffset:sx},bottomLeft:{points:["tl","bl"],overflow:ax,offset:[0,4],targetOffset:sx},leftBottom:{points:["br","bl"],overflow:ax,offset:[-4,0],targetOffset:sx}},ux=jn({compatConfig:{MODE:3},name:"TooltipContent",props:{prefixCls:String,id:String,overlayInnerStyle:$p.any},setup(e,t){let{slots:n}=t;return()=>{var t;return br("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}});function dx(){}const px=jn({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:$p.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:$p.string.def("right"),transitionName:String,animation:$p.any,afterVisibleChange:$p.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:$p.string.def("rc-tooltip"),mouseEnterDelay:$p.number.def(.1),mouseLeaveDelay:$p.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:$p.object.def((()=>({}))),arrowContent:$p.any.def(null),tipId:String,builtinPlacements:$p.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=yt(),l=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[br("div",{class:`${t}-arrow`,key:"arrow"},[ca(n,e,"arrowContent")]),br(ux,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=yt(!1),s=yt(!1);return mn((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"==typeof t)a.value=t;else if(t&&"object"==typeof t){const{keepParent:e}=t;a.value=!0===e,s.value=!1===e}})),()=>{const{overlayClassName:t,trigger:r,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d,prefixCls:p,afterVisibleChange:h,transitionName:f,animation:g,placement:m,align:v,destroyTooltipOnHide:b,defaultVisible:y}=e,O=cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:wa(),overlayInnerStyle:wa(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:wa(),builtinPlacements:wa(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),fx={adjustX:1,adjustY:1},gx={adjustX:0,adjustY:0},mx=[0,0];function vx(e){return"boolean"==typeof e?e?fx:gx:cl(cl({},gx),e)}function bx(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach((e=>{l[e]=i?cl(cl({},l[e]),{overflow:vx(r),targetOffset:mx}):cl(cl({},cx[e]),{overflow:vx(r)}),l[e].ignoreShake=!0})),l}function yx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`)),wx=["success","processing","error","default","warning"];function Sx(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Gc.includes(e):[...Ox,...Gc].includes(e)}function $x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}function xx(e){const{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:o,limitVerticalRadius:r}=e,i=t/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(n>12?n+2:12)-i;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:r?8-i:l}}function Cx(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:l,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:h}=xx({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:l,limitVerticalRadius:d}),f=o/2+r;return{[n]:{[`${n}-arrow`]:[cl(cl({position:"absolute",zIndex:1,display:"block"},Hu(o,i,l,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[$x(["&-placement-topLeft","&-placement-top","&-placement-topRight"],c)]:{paddingBottom:f},[$x(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],c)]:{paddingTop:f},[$x(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],c)]:{paddingRight:{_skip_check_:!0,value:f}},[$x(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],c)]:{paddingLeft:{_skip_check_:!0,value:f}}}}}const kx=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:cl(cl(cl(cl({},Xu(e)),{position:"absolute",zIndex:l,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Fu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Cx(Ju(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},Px=()=>cl(cl({},hx()),{title:$p.any}),Tx=ya(jn({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Zl(Px(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,getPopupContainer:a,direction:s,rootPrefixCls:c}=$d("tooltip",e),u=Lr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),d=bt(yx([e.open,e.visible])),p=bt();let h;bn(u,(e=>{ma.cancel(h),h=ma((()=>{d.value=!!e}))}));const f=()=>{var t;const o=null!==(t=e.title)&&void 0!==t?t:n.title;return!o&&0!==o},g=e=>{const t=f();void 0===u.value&&(d.value=!t&&e),t||(o("update:visible",e),o("visibleChange",e),o("update:open",e),o("openChange",e))};i({getPopupDomNode:()=>p.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.forcePopupAlign()}});const m=Lr((()=>{const{builtinPlacements:t,arrowPointAtCenter:n,autoAdjustOverflow:o}=e;return t||bx({arrowPointAtCenter:n,autoAdjustOverflow:o})})),v=e=>e||""===e,b=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&v(e.props.disabled)||!0===t.__ANT_SWITCH&&(v(e.props.disabled)||v(e.props.loading))||!0===t.__ANT_RADIO&&v(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=cl({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(ra(e),["position","left","right","top","bottom","float","display","zIndex"]),o=cl(cl({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=Yh(e,{style:cl(cl({},n),{pointerEvents:"none"})},!0);return br("span",{style:o,class:`${l.value}-disabled-compatible-wrapper`},[r])}return e},y=()=>{var t,o;return null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n)},O=(e,t)=>{const n=m.value,o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?r.top=n.height-t.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(r.top=-t.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?r.left=n.width-t.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},w=Lr((()=>function(e,t){const n=Sx(t),o=xl({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}(l.value,e.color))),S=Lr((()=>r["data-popover-inject"])),[$,x]=((e,t)=>Ku("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:i}=e,l=Ju(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:i>4?4:i});return[kx(l),MS(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(l,Lr((()=>!S.value)));return()=>{var t,o;const{openClassName:i,overlayClassName:h,overlayStyle:v,overlayInnerStyle:S}=e;let C=null!==(o=la(null===(t=n.default)||void 0===t?void 0:t.call(n)))&&void 0!==o?o:null;C=1===C.length?C[0]:C;let k=d.value;if(void 0===u.value&&f()&&(k=!1),!C)return null;const P=b(!sa(C)||1===(T=C).length&&T[0].type===er?br("span",null,[C]):C);var T;const M=xl({[i||`${l.value}-open`]:!0,[P.props&&P.props.class]:P.props&&P.props.class}),I=xl(h,{[`${l.value}-rtl`]:"rtl"===s.value},w.value.className,x.value),E=cl(cl({},w.value.overlayStyle),S),A=w.value.arrowStyle,D=cl(cl(cl({},r),e),{prefixCls:l.value,getPopupContainer:null==a?void 0:a.value,builtinPlacements:m.value,visible:k,ref:p,overlayClassName:I,overlayStyle:cl(cl({},A),v),overlayInnerStyle:E,onVisibleChange:g,onPopupAlign:O,transitionName:am(c.value,"zoom-big-fast",e.transitionName)});return $(br(px,D,{default:()=>[d.value?Yh(P,{class:M}):P],arrowContent:()=>br("span",{class:`${l.value}-arrow-content`},null),overlay:y}))}}})),Mx=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:p}=e;return[{[t]:cl(cl({},Xu(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:o}})},Cx(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},Ix=e=>{const{componentCls:t}=e;return{[t]:Gc.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},Ex=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:c}=e,u=l-Math.round(a*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}},Ax=Ku("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Ju(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[Mx(r),Ix(r),o&&Ex(r),MS(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),Dx=ya(jn({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Zl(cl(cl({},hx()),{content:xa(),title:xa()}),cl(cl({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=bt();Ts(void 0===e.visible),n({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:l,configProvider:a}=$d("popover",e),[s,c]=Ax(l),u=Lr((()=>a.getPrefixCls())),d=()=>{var t,n;const{title:r=la(null===(t=o.title)||void 0===t?void 0:t.call(o)),content:i=la(null===(n=o.content)||void 0===n?void 0:n.call(o))}=e,a=!!(Array.isArray(r)?r.length:r),s=!!(Array.isArray(i)?i.length:r);return a||s?br(er,null,[a&&br("div",{class:`${l.value}-title`},[r]),br("div",{class:`${l.value}-inner-content`},[i])]):null};return()=>{const t=xl(e.overlayClassName,c.value);return s(br(Tx,sl(sl(sl({},xd(e,["title","content"])),r),{},{prefixCls:l.value,ref:i,overlayClassName:t,transitionName:am(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}})),Rx=jn({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("avatar",e),l=Lr((()=>`${r.value}-group`)),[a,s]=rx(r);return mn((()=>{(e=>{To(ix,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:r,maxStyle:c,maxPopoverTrigger:u="hover",shape:d}=e,p={[l.value]:!0,[`${l.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[s.value]:!0},h=ca(n,e),f=ql(h).map(((e,t)=>Yh(e,{key:`avatar-key-${t}`}))),g=f.length;if(r&&r[br(lx,{style:c,shape:d},{default:()=>["+"+(g-r)]})]})),a(br("div",sl(sl({},o),{},{class:p,style:o.style}),[e]))}return a(br("div",sl(sl({},o),{},{class:p,style:o.style}),[f]))}}});function zx(e){let t,{prefixCls:n,value:o,current:r,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),br("p",{style:t,class:xl(`${n}-only-unit`,{current:r})},[o])}function Bx(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}lx.Group=Rx,lx.install=function(e){return e.component(lx.name,lx),e.component(Rx.name,Rx),e};const jx=jn({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=Lr((()=>Number(e.value))),n=Lr((()=>Math.abs(e.count))),o=rt({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=bt();return bn(t,(()=>{clearTimeout(i.value),i.value=setTimeout((()=>{r()}),1e3)}),{flush:"post"}),Gn((()=>{clearTimeout(i.value)})),()=>{let i,l={};const a=t.value;if(o.prevValue===a||Number.isNaN(a)||Number.isNaN(o.prevValue))i=[zx(cl(cl({},e),{current:!0}))],l={transition:"none"};else{i=[];const t=a+10,r=[];for(let e=a;e<=t;e+=1)r.push(e);const s=r.findIndex((e=>e%10===o.prevValue));i=r.map(((t,n)=>{const o=t%10;return zx(cl(cl({},e),{value:o,offset:n-s,current:n===s}))}));const c=o.prevCountr()},[i])}}}),Nx=jn({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:{prefixCls:String,count:$p.any,component:String,title:$p.any,show:Boolean},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r}=$d("scroll-number",e);return()=>{var t;const i=cl(cl({},e),n),{prefixCls:l,count:a,title:s,show:c,component:u="sup",class:d,style:p}=i,h=cl(cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(jx,{prefixCls:r.value,count:Number(a),value:t,key:e.length-n},null)))}p&&p.borderColor&&(h.style=cl(cl({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const g=la(null===(t=o.default)||void 0===t?void 0:t.call(o));return g&&g.length?Yh(g,{class:xl(`${r.value}-custom-component`)},!1):br(u,h,{default:()=>[f]})}}}),_x=new Hc("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Qx=new Hc("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Lx=new Hc("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Hx=new Hc("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Fx=new Hc("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Wx=new Hc("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Xx=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:i,badgeHeightSm:l,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,p=`${o}-ribbon`,h=`${o}-ribbon-wrapper`,f=Fu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}})),g=Fu(e,((e,t)=>{let{darkColor:n}=t;return{[`&${p}-color-${e}`]:{background:n,color:n}}}));return{[t]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Wx,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:_x,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),f),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Qx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Lx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Hx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Fx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${p}`]:cl(cl(cl(cl({},Xu(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${p}-text`]:{color:e.colorTextLightSolid},[`${p}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:u/2+"px solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),g),{[`&${p}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${p}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${p}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${p}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Yx=Ku("Badge",(e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:i,colorBorderBg:l}=e,a=Math.round(t*n),s=Ju(e,{badgeFontHeight:a,badgeShadowSize:r,badgeZIndex:"auto",badgeHeight:a-2*r,badgeTextColor:e.colorBgContainer,badgeFontWeight:"normal",badgeFontSize:o,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:l,badgeHeightSm:t,badgeDotSize:o/2,badgeFontSizeSm:o,badgeStatusSize:o/2,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Xx(s)]})),Vx=jn({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:{prefix:String,color:{type:String},text:$p.any,placement:{type:String,default:"end"}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d("ribbon",e),[l,a]=Yx(r),s=Lr((()=>Sx(e.color,!1))),c=Lr((()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-color-${e.color}`]:s.value}]));return()=>{var t,i;const{class:u,style:d}=n,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r!isNaN(parseFloat(e))&&isFinite(e),Ux=jn({compatConfig:{MODE:3},name:"ABadge",Ribbon:Vx,inheritAttrs:!1,props:{count:$p.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:$p.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("badge",e),[l,a]=Yx(r),s=Lr((()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count)),c=Lr((()=>"0"===s.value||0===s.value)),u=Lr((()=>null===e.count||c.value&&!e.showZero)),d=Lr((()=>(null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color)&&u.value)),p=Lr((()=>e.dot&&!c.value)),h=Lr((()=>p.value?"":s.value)),f=Lr((()=>(null===h.value||void 0===h.value||""===h.value||c.value&&!e.showZero)&&!p.value)),g=bt(e.count),m=bt(h.value),v=bt(p.value);bn([()=>e.count,h,p],(()=>{f.value||(g.value=e.count,m.value=h.value,v.value=p.value)}),{immediate:!0});const b=Lr((()=>Sx(e.color,!1))),y=Lr((()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value}))),O=Lr((()=>e.color&&!b.value?{background:e.color,color:e.color}:{})),w=Lr((()=>({[`${r.value}-dot`]:v.value,[`${r.value}-count`]:!v.value,[`${r.value}-count-sm`]:"small"===e.size,[`${r.value}-multiple-words`]:!v.value&&m.value&&m.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value})));return()=>{var t,s;const{offset:c,title:u,color:p}=e,h=o.style,v=ca(n,e,"text"),S=r.value,$=g.value;let x=ql(null===(t=n.default)||void 0===t?void 0:t.call(n));x=x.length?x:null;const C=!(f.value&&!n.count),k=(()=>{if(!c)return cl({},h);const e={marginTop:Zx(c[1])?`${c[1]}px`:c[1]};return"rtl"===i.value?e.left=`${parseInt(c[0],10)}px`:e.right=-parseInt(c[0],10)+"px",cl(cl({},e),h)})(),P=null!=u?u:"string"==typeof $||"number"==typeof $?$:void 0,T=C||!v?null:br("span",{class:`${S}-status-text`},[v]),M="object"==typeof $||void 0===$&&n.count?Yh(null!=$?$:null===(s=n.count)||void 0===s?void 0:s.call(n),{style:k},!1):null,I=xl(S,{[`${S}-status`]:d.value,[`${S}-not-a-wrapper`]:!x,[`${S}-rtl`]:"rtl"===i.value},o.class,a.value);if(!x&&d.value){const e=k.color;return l(br("span",sl(sl({},o),{},{class:I,style:k}),[br("span",{class:y.value,style:O.value},null),br("span",{style:{color:e},class:`${S}-status-text`},[v])]))}const E=im(x?`${S}-zoom`:"",{appear:!1});let A=cl(cl({},k),e.numberStyle);return p&&!b.value&&(A=A||{},A.background=p),l(br("span",sl(sl({},o),{},{class:I}),[x,br(qr,E,{default:()=>[$n(br(Nx,{prefixCls:e.scrollNumberPrefixCls,show:C,class:w.value,count:m.value,title:P,style:A,key:"scrollNumber"},{default:()=>[M]}),[[gi,C]])]}),T]))}}});Ux.install=function(e){return e.component(Ux.name,Ux),e.component(Vx.name,Vx),e};const Kx={adjustX:1,adjustY:1},Gx=[0,0],qx={topLeft:{points:["bl","tl"],overflow:Kx,offset:[0,-4],targetOffset:Gx},topCenter:{points:["bc","tc"],overflow:Kx,offset:[0,-4],targetOffset:Gx},topRight:{points:["br","tr"],overflow:Kx,offset:[0,-4],targetOffset:Gx},bottomLeft:{points:["tl","bl"],overflow:Kx,offset:[0,4],targetOffset:Gx},bottomCenter:{points:["tc","bc"],overflow:Kx,offset:[0,4],targetOffset:Gx},bottomRight:{points:["tr","br"],overflow:Kx,offset:[0,4],targetOffset:Gx}},Jx=jn({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:$p.string.def("rc-dropdown"),transitionName:String,overlayClassName:$p.string.def(""),openClassName:String,animation:$p.any,align:$p.object,overlayStyle:{type:Object,default:void 0},placement:$p.string.def("bottomLeft"),overlay:$p.any,trigger:$p.oneOfType([$p.string,$p.arrayOf($p.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:$p.array,hideAction:$p.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:$p.number.def(.15),mouseLeaveDelay:$p.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:r}=t;const i=bt(!!e.visible);bn((()=>e.visible),(e=>{void 0!==e&&(i.value=e)}));const l=bt();r({triggerRef:l});const a=t=>{void 0===e.visible&&(i.value=!1),o("overlayClick",t)},s=t=>{void 0===e.visible&&(i.value=t),o("visibleChange",t)},c=()=>{var t;const o=null===(t=n.overlay)||void 0===t?void 0:t.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:a};return br(er,{key:Gl},[e.arrow&&br("div",{class:`${e.prefixCls}-arrow`},null),Yh(o,r,!1)])},u=Lr((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),d=()=>{var t;const o=null===(t=n.default)||void 0===t?void 0:t.call(n);return i.value&&o?Yh(o[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):o},p=Lr((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:r,trigger:a,placement:h,align:f,getPopupContainer:g,transitionName:m,animation:v,overlayClassName:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},tC=Ku("Wave",(e=>[eC(e)]));function nC(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function oC(e){return Number.isNaN(e)?0:e}const rC=jn({props:{target:wa(),className:String},setup(e){const t=yt(null),[n,o]=Hv(null),[r,i]=Hv([]),[l,a]=Hv(0),[s,c]=Hv(0),[u,d]=Hv(0),[p,h]=Hv(0),[f,g]=Hv(!1);function m(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return nC(t)?t:nC(n)?n:nC(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:l,borderTopWidth:s}=n;a(r?t.offsetLeft:oC(-parseFloat(l))),c(r?t.offsetTop:oC(-parseFloat(s))),d(t.offsetWidth),h(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:p,borderBottomLeftRadius:f,borderBottomRightRadius:g}=n;i([u,p,g,f].map((e=>oC(parseFloat(e)))))}let v,b,y;const O=()=>{clearTimeout(y),ma.cancel(b),null==v||v.disconnect()},w=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(Fi(null,n),n.parentElement&&n.parentElement.removeChild(n))};Vn((()=>{O(),y=setTimeout((()=>{w()}),5e3);const{target:t}=e;t&&(b=ma((()=>{m(),g(!0)})),"undefined"!=typeof ResizeObserver&&(v=new ResizeObserver(m),v.observe(t)))})),Kn((()=>{O()}));const S=e=>{"opacity"===e.propertyName&&w()};return()=>{if(!f.value)return null;const o={left:`${l.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${p.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),br(qr,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[br("div",{ref:t,class:e.className,style:o,onTransitionend:S},null)]})}}});function iC(e,t){return function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),Fi(br(rC,{target:e,className:t},null),n)}(ea(e),t.value)}}const lC=jn({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=Mr(),{prefixCls:r}=$d("wave",e),[,i]=tC(r),l=iC(o,Lr((()=>xl(r.value,i.value))));let a;const s=()=>{ea(o).removeEventListener("click",a,!0)};return Vn((()=>{bn((()=>e.disabled),(()=>{s(),Ft((()=>{const t=ea(o);null==t||t.removeEventListener("click",a,!0),t&&1===t.nodeType&&!e.disabled&&(a=e=>{"INPUT"===e.target.tagName||!Uh(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||l()},t.addEventListener("click",a,!0))}))}),{immediate:!0,flush:"post"})})),Kn((()=>{s()})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});function aC(e){return"danger"===e?{danger:!0}:{type:e}}const sC=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:$p.any,href:String,target:String,title:String,onClick:Oa(),onMousedown:Oa()}),cC=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},uC=e=>{Ft((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},dC=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},pC=jn({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:e=>()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return br("span",{class:`${n}-loading-icon`},[br(Hb,null,null)]);const r=!!o;return br(qr,{name:`${n}-loading-icon-motion`,onBeforeEnter:cC,onEnter:uC,onAfterEnter:dC,onBeforeLeave:uC,onLeave:e=>{setTimeout((()=>{cC(e)}))},onAfterLeave:dC},{default:()=>[r?br("span",{class:`${n}-loading-icon`},[br(Hb,null,null)]):null]})}}),hC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fC=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},hC(`${t}-primary`,r),hC(`${t}-danger`,i)]}};function gC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:cl(cl({},gC(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const vC=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":cl({},Uu(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},bC=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),yC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),OC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),wC=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),SC=(e,t,n,o,r,i,l)=>({[`&${e}-background-ghost`]:cl(cl({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},bC(cl({backgroundColor:"transparent"},i),cl({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),$C=e=>({"&:disabled":cl({},wC(e))}),xC=e=>cl({},$C(e)),CC=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),kC=e=>cl(cl(cl(cl(cl({},xC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),bC({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),SC(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:cl(cl(cl({color:e.colorError,borderColor:e.colorError},bC({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),SC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),$C(e))}),PC=e=>cl(cl(cl(cl(cl({},xC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),bC({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),SC(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:cl(cl(cl({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},bC({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),SC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$C(e))}),TC=e=>cl(cl({},kC(e)),{borderStyle:"dashed"}),MC=e=>cl(cl(cl({color:e.colorLink},bC({color:e.colorLinkHover},{color:e.colorLinkActive})),CC(e)),{[`&${e.componentCls}-dangerous`]:cl(cl({color:e.colorError},bC({color:e.colorErrorHover},{color:e.colorErrorActive})),CC(e))}),IC=e=>cl(cl(cl({},bC({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),CC(e)),{[`&${e.componentCls}-dangerous`]:cl(cl({color:e.colorError},CC(e)),bC({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),EC=e=>cl(cl({},wC(e)),{[`&${e.componentCls}:hover`]:cl({},wC(e))}),AC=e=>{const{componentCls:t}=e;return{[`${t}-default`]:kC(e),[`${t}-primary`]:PC(e),[`${t}-dashed`]:TC(e),[`${t}-link`]:MC(e),[`${t}-text`]:IC(e),[`${t}-disabled`]:EC(e)}},DC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:l,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${Math.max(0,(r-i*l)/2-a)}px ${c-a}px`,borderRadius:s,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${u}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:yC(e)},{[`${n}${n}-round${t}`]:OC(e)}]},RC=e=>DC(e),zC=e=>{const t=Ju(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return DC(t,`${e.componentCls}-sm`)},BC=e=>{const t=Ju(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return DC(t,`${e.componentCls}-lg`)},jC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},NC=Ku("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Ju(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[vC(o),zC(o),RC(o),BC(o),jC(o),AC(o),fC(o),QS(e,{focus:!1}),mC(e)]})),_C=uy(),QC=jn({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=$d("btn-group",e),[,,i]=ad();_C.useProvide(rt({size:Lr((()=>e.size))}));const l=Lr((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:xp(!t,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${n}`]:n,[`${o.value}-rtl`]:"rtl"===r.value,[i.value]:!0}}));return()=>{var e;return br("div",{class:l.value},[ql(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),LC=/^[\u4e00-\u9fa5]{2}$/,HC=LC.test.bind(LC);function FC(e){return"text"===e||"link"===e}const WC=jn({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Zl(sC(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,autoInsertSpaceInButton:a,direction:s,size:c}=$d("btn",e),[u,d]=NC(l),p=_C.useInject(),h=Wa(),f=Lr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:h.value})),g=yt(null),m=yt(void 0);let v=!1;const b=yt(!1),y=yt(!1),O=Lr((()=>!1!==a.value)),{compactSize:w,compactItemClassnames:S}=Hw(l,s),$=Lr((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));bn($,(e=>{clearTimeout(m.value),"number"==typeof $.value?m.value=setTimeout((()=>{b.value=e}),$.value):b.value=e}),{immediate:!0});const x=Lr((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:i}=e,a=l.value,u=w.value||(null==p?void 0:p.size)||c.value,h=u&&{large:"lg",small:"sm",middle:void 0}[u]||"";return[S.value,{[d.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${t}`]:t,[`${a}-${h}`]:h,[`${a}-loading`]:b.value,[`${a}-background-ghost`]:o&&!FC(t),[`${a}-two-chinese-chars`]:y.value&&O.value,[`${a}-block`]:r,[`${a}-dangerous`]:!!i,[`${a}-rtl`]:"rtl"===s.value}]})),C=()=>{const e=g.value;if(!e||!1===a.value)return;const t=e.textContent;v&&HC(t)?y.value||(y.value=!0):y.value&&(y.value=!1)},k=e=>{b.value||f.value?e.preventDefault():r("click",e)},P=e=>{r("mousedown",e)};return mn((()=>{xp(!(e.ghost&&FC(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),Vn(C),Un(C),Kn((()=>{m.value&&clearTimeout(m.value)})),i({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()}}),()=>{var t,r;const{icon:i=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,a=ql(null===(r=n.default)||void 0===r?void 0:r.call(n));v=1===a.length&&!i&&!FC(e.type);const{type:s,htmlType:c,href:d,title:p,target:h}=e,m=b.value?"loading":i,y=cl(cl({},o),{title:p,disabled:f.value,class:[x.value,o.class,{[`${l.value}-icon-only`]:0===a.length&&!!m}],onClick:k,onMousedown:P});f.value||delete y.disabled;const w=i&&!b.value?i:br(pC,{existIcon:!!i,prefixCls:l.value,loading:!!b.value},null),S=a.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===tr){let t=e.children.trim();return HC(t)&&(t=t.split("").join(n)),br("span",null,[t])}return e})(e,v&&O.value)));if(void 0!==d)return u(br("a",sl(sl({},y),{},{href:d,target:h,ref:g}),[w,S]));let $=br("button",sl(sl({},y),{},{ref:g,type:c}),[w,S]);if(!FC(s)){const e=function(){return $}();$=br(lC,{ref:"wave",disabled:!!b.value},{default:()=>[e]})}return u($)}}});WC.Group=QC,WC.install=function(e){return e.component(WC.name,WC),e.component(QC.name,QC),e};const XC=()=>({arrow:Pa([Boolean,Object]),trigger:{type:[Array,String]},menu:wa(),overlay:$p.any,visible:Sa(),open:Sa(),disabled:Sa(),danger:Sa(),autofocus:Sa(),align:wa(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:wa(),forceRender:Sa(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Sa(),destroyPopupOnHide:Sa(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),YC=sC(),VC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function ZC(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},JC=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},ek=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:i,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:h,fontSizeIcon:f,controlPaddingHorizontal:g,colorBgElevated:m,boxShadowPopoverArrow:v}=e;return[{[t]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:l/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`\n &-show-arrow${t}-placement-topLeft,\n &-show-arrow${t}-placement-top,\n &-show-arrow${t}-placement-topRight\n `]:{paddingBottom:r},[`\n &-show-arrow${t}-placement-bottomLeft,\n &-show-arrow${t}-placement-bottom,\n &-show-arrow${t}-placement-bottomRight\n `]:{paddingTop:r},[`${t}-arrow`]:cl({position:"absolute",zIndex:1,display:"block"},Hu(l,e.borderRadiusXS,e.borderRadiusOuter,m,v)),[`\n &-placement-top > ${t}-arrow,\n &-placement-topLeft > ${t}-arrow,\n &-placement-topRight > ${t}-arrow\n `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`\n &-placement-bottom > ${t}-arrow,\n &-placement-bottomLeft > ${t}-arrow,\n &-placement-bottomRight > ${t}-arrow\n `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lS},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:sS},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:aS},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:cS}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:cl(cl({padding:p,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Uu(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${g}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:cl(cl({clear:"both",margin:0,padding:`${u}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Uu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down"),MS(e,"zoom-big")]]},tk=Ku("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:l,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,p=(i-l*a)/2,{dropdownArrowOffset:h}=xx({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),f=Ju(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:h,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[ek(f),qC(f),JC(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),nk=WC.Group,ok=jn({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Zl(cl(cl({},XC()),{type:YC.type,size:String,htmlType:YC.htmlType,href:String,disabled:Sa(),prefixCls:String,icon:$p.any,title:String,loading:YC.loading,onClick:Oa()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const i=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)},{prefixCls:l,direction:a,getPopupContainer:s}=$d("dropdown",e),c=Lr((()=>`${l.value}-button`)),[u,d]=tk(l);return()=>{var t,r;const l=cl(cl({},e),o),{type:p="default",disabled:h,danger:f,loading:g,htmlType:m,class:v="",overlay:b=(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),trigger:y,align:O,open:w,visible:S,onVisibleChange:$,placement:x=("rtl"===a.value?"bottomLeft":"bottomRight"),href:C,title:k,icon:P=(null===(r=n.icon)||void 0===r?void 0:r.call(n))||br(GC,null,null),mouseEnterDelay:T,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:E,destroyPopupOnHide:A,onClick:D,"onUpdate:open":R}=l,z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[n.leftButton?n.leftButton({button:j}):j,br(hk,B,{default:()=>[n.rightButton?n.rightButton({button:N}):N],overlay:()=>b})]}))}}}),rk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function ik(e){for(var t=1;tMo(ck,void 0),dk=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:l,validator:a,onClick:s,expandIcon:c}=uk()||{};To(ck,{prefixCls:Lr((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null==r?void 0:r.value})),mode:Lr((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),selectable:Lr((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==l?void 0:l.value})),validator:null!==(t=e.validator)&&void 0!==t?t:a,onClick:null!==(n=e.onClick)&&void 0!==n?n:s,expandIcon:null!==(o=e.expandIcon)&&void 0!==o?o:null==c?void 0:c.value})},pk=jn({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Zl(XC(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,rootPrefixCls:l,direction:a,getPopupContainer:s}=$d("dropdown",e),[c,u]=tk(i),d=Lr((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`}));dk({prefixCls:Lr((()=>`${i.value}-menu`)),expandIcon:Lr((()=>br("span",{class:`${i.value}-menu-submenu-arrow`},[br(sk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]))),mode:Lr((()=>"vertical")),selectable:Lr((()=>!1)),onClick:()=>{},validator:e=>{Ts()}});const p=()=>{var t,o,r;const l=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),a=Array.isArray(l)?l[0]:l;if(!a)return null;const s=a.props||{};xp(!s.mode||"vertical"===s.mode,"Dropdown",`mode="${s.mode}" is not supported for Dropdown's Menu.`);const{selectable:c=!1,expandIcon:u=(null===(r=null===(o=a.children)||void 0===o?void 0:o.expandIcon)||void 0===r?void 0:r.call(o))}=s,d=void 0!==u&&sa(u)?u:br("span",{class:`${i.value}-menu-submenu-arrow`},[br(sk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return sa(a)?Yh(a,{mode:"vertical",selectable:c,expandIcon:()=>d}):a},h=Lr((()=>{const t=e.placement;if(!t)return"rtl"===a.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return xp(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),f=Lr((()=>"boolean"==typeof e.visible?e.visible:e.open)),g=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)};return()=>{var t,r;const{arrow:l,trigger:m,disabled:v,overlayClassName:b}=e,y=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],O=Yh(y,cl({class:xl(null===(r=null==y?void 0:y.props)||void 0===r?void 0:r.class,{[`${i.value}-rtl`]:"rtl"===a.value},`${i.value}-trigger`)},v?{disabled:v}:{})),w=xl(b,u.value,{[`${i.value}-rtl`]:"rtl"===a.value}),S=v?[]:m;let $;S&&S.includes("contextmenu")&&($=!0);const x=bx({arrowPointAtCenter:"object"==typeof l&&l.pointAtCenter,autoAdjustOverflow:!0}),C=xd(cl(cl(cl({},e),o),{visible:f.value,builtinPlacements:x,overlayClassName:w,arrow:!!l,alignPoint:$,prefixCls:i.value,getPopupContainer:null==s?void 0:s.value,transitionName:d.value,trigger:S,onVisibleChange:g,placement:h.value}),["overlay","onUpdate:visible"]);return c(br(Jx,C,{default:()=>[O],overlay:p}))}}});pk.Button=ok;const hk=pk,fk=jn({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:String,href:String,separator:$p.any,dropdownProps:wa(),overlay:$p.any,onClick:Oa()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i}=$d("breadcrumb",e),l=e=>{r("click",e)};return()=>{var t;const r=null!==(t=ca(n,e,"separator"))&&void 0!==t?t:"/",a=ca(n,e),{class:s,style:c}=o,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const r=ca(n,e,"overlay");return r?br(hk,sl(sl({},e.dropdownProps),{},{overlay:r,placement:"bottom"}),{default:()=>[br("span",{class:`${o}-overlay-link`},[t,br(jb,null,null)])]}):t})(d,i.value),null!=a?br("li",{class:s,style:c},[d,r&&br("span",{class:`${i.value}-separator`},[r])]):null}}});function gk(e,t){return function(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{To(mk,e)},bk=()=>Mo(mk),yk=Symbol("ForceRenderKey"),Ok=()=>Mo(yk,!1),wk=Symbol("menuFirstLevelContextKey"),Sk=e=>{To(wk,e)},$k=jn({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=cl({},bk());return void 0!==e.mode&&(o.mode=Tt(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=Tt(e,"overflowDisabled")),vk(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),xk=vk,Ck=Symbol("siderCollapsed"),kk=Symbol("siderHookProvider"),Pk="$$__vc-menu-more__key",Tk=Symbol("KeyPathContext"),Mk=()=>Mo(Tk,{parentEventKeys:Lr((()=>[])),parentKeys:Lr((()=>[])),parentInfo:{}}),Ik=Symbol("measure"),Ek=jn({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return To(Ik,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Ak=()=>Mo(Ik,!1),Dk=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Mk(),i=Lr((()=>[...o.value,e])),l=Lr((()=>[...r.value,t]));return To(Tk,{parentEventKeys:i,parentKeys:l,parentInfo:n}),l};function Rk(e){const{mode:t,rtl:n,inlineIndent:o}=bk();return Lr((()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*o.value+"px"}:{paddingLeft:e.value*o.value+"px"}))}let zk=0;const Bk=jn({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:$p.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=Mr(),l=Ak(),a="symbol"==typeof i.vnode.key?String(i.vnode.key):i.vnode.key;xp("symbol"!=typeof i.vnode.key,"MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++zk}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=Mk(),{prefixCls:d,activeKeys:p,disabled:h,changeActiveKeys:f,rtl:g,inlineCollapsed:m,siderCollapsed:v,onItemClick:b,selectedKeys:y,registerMenuInfo:O,unRegisterMenuInfo:w}=bk(),S=Mo(wk,!0),$=yt(!1),x=Lr((()=>[...u.value,a]));O(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Kn((()=>{w(s)})),bn(p,(()=>{$.value=!!p.value.find((e=>e===a))}),{immediate:!0});const C=Lr((()=>h.value||e.disabled)),k=Lr((()=>y.value.includes(a))),P=Lr((()=>{const t=`${d.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:$.value,[`${t}-selected`]:k.value,[`${t}-disabled`]:C.value}})),T=t=>({key:a,eventKey:s,keyPath:x.value,eventKeyPath:[...c.value,s],domEvent:t,item:cl(cl({},e),r)}),M=e=>{if(C.value)return;const t=T(e);o("click",e),b(t)},I=e=>{C.value||(f(x.value),o("mouseenter",e))},E=e=>{C.value||(f([]),o("mouseleave",e))},A=e=>{if(o("keydown",e),e.which===Im.ENTER){const t=T(e);o("click",e),b(t)}},D=e=>{f(x.value),o("focus",e)},R=(e,t)=>{const n=br("span",{class:`${d.value}-title-content`},[t]);return(!e||sa(t)&&"span"===t.type)&&t&&m.value&&S&&"string"==typeof t?br("div",{class:`${d.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},z=Rk(Lr((()=>x.value.length)));return()=>{var t,o,i,s,c;if(l)return null;const u=null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n),p=ql(null===(i=n.default)||void 0===i?void 0:i.call(n)),h=p.length;let f=u;void 0===u?f=S&&h?p:"":!1===u&&(f="");const b={title:f};v.value||m.value||(b.title=null,b.open=!1);const y={};"option"===e.role&&(y["aria-selected"]=k.value);const O=null!==(s=e.icon)&&void 0!==s?s:null===(c=n.icon)||void 0===c?void 0:c.call(n,e);return br(Tx,sl(sl({},b),{},{placement:g.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[br(qm.Item,sl(sl(sl({component:"li"},r),{},{id:e.id,style:cl(cl({},r.style||{}),z.value),class:[P.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:1===(O?h+1:h)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},y),{},{onMouseenter:I,onMouseleave:E,onClick:M,onKeydown:A,onFocus:D,title:"string"==typeof u?u:void 0}),{default:()=>[Yh("function"==typeof O?O(e.originItemValue):O,{class:`${d.value}-item-icon`},!1),R(O,p)]})]})}}}),jk={adjustX:1,adjustY:1},Nk={topLeft:{points:["bl","tl"],overflow:jk,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jk,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:jk,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:jk,offset:[4,0]}},_k={topLeft:{points:["bl","tl"],overflow:jk,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jk,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:jk,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:jk,offset:[4,0]}},Qk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Lk=jn({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=yt(!1),{getPopupContainer:i,rtl:l,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:p,defaultMotions:h,rootClassName:f}=bk(),g=Ok(),m=Lr((()=>l.value?cl(cl({},_k),c.value):cl(cl({},Nk),c.value))),v=Lr((()=>Qk[e.mode])),b=yt();bn((()=>e.visible),(e=>{ma.cancel(b.value),b.value=ma((()=>{r.value=e}))}),{immediate:!0}),Kn((()=>{ma.cancel(b.value)}));const y=e=>{o("visibleChange",e)},O=Lr((()=>{var t,n;const o=p.value||(null===(t=h.value)||void 0===t?void 0:t[e.mode])||(null===(n=h.value)||void 0===n?void 0:n.other),r="function"==typeof o?o():o;return r?im(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:o,mode:c,popupOffset:p,disabled:h}=e;return br(Pm,{prefixCls:t,popupClassName:xl(`${t}-popup`,{[`${t}-rtl`]:l.value},o,f.value),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:i.value,builtinPlacements:m.value,popupPlacement:v.value,popupVisible:r.value,popupAlign:p&&{offset:p},action:h?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:y,forceRender:g||d.value,popupAnimation:O.value},{popup:n.popup,default:n.default})}}}),Hk=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:l}=bk();return br("ul",sl(sl({},o),{},{class:xl(i.value,`${i.value}-sub`,`${i.value}-${"inline"===l.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};Hk.displayName="SubMenuList";const Fk=Hk,Wk=jn({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=Lr((()=>"inline")),{motion:r,mode:i,defaultMotions:l}=bk(),a=Lr((()=>i.value===o.value)),s=bt(!a.value),c=Lr((()=>!!a.value&&e.open));bn(i,(()=>{a.value&&(s.value=!1)}),{flush:"post"});const u=Lr((()=>{var t,n;const i=r.value||(null===(t=l.value)||void 0===t?void 0:t[o.value])||(null===(n=l.value)||void 0===n?void 0:n.other);return cl(cl({},"function"==typeof i?i():i),{appear:e.keyPath.length<=1})}));return()=>{var t;return s.value?null:br($k,{mode:o.value},{default:()=>[br(qr,u.value,{default:()=>[$n(br(Fk,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[gi,c.value]])]})]})}}});let Xk=0;const Yk=jn({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:$p.any,title:$p.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,l;Sk(!1);const a=Ak(),s=Mr(),c="symbol"==typeof s.vnode.key?String(s.vnode.key):s.vnode.key;xp("symbol"!=typeof s.vnode.key,"SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=Vl(c)?c:`sub_menu_${++Xk}_$$_not_set_key`,d=null!==(i=e.eventKey)&&void 0!==i?i:Vl(c)?`sub_menu_${++Xk}_$$_${c}`:u,{parentEventKeys:p,parentInfo:h,parentKeys:f}=Mk(),g=Lr((()=>[...f.value,u])),m=yt([]),v={eventKey:d,key:u,parentEventKeys:p,childrenEventKeys:m,parentKeys:f};null===(l=h.childrenEventKeys)||void 0===l||l.value.push(d),Kn((()=>{var e;h.childrenEventKeys&&(h.childrenEventKeys.value=null===(e=h.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=d)))})),Dk(d,u,v);const{prefixCls:b,activeKeys:y,disabled:O,changeActiveKeys:w,mode:S,inlineCollapsed:$,openKeys:x,overflowDisabled:C,onOpenChange:k,registerMenuInfo:P,unRegisterMenuInfo:T,selectedSubMenuKeys:M,expandIcon:I,theme:E}=bk(),A=null!=c,D=!a&&(Ok()||!A);(e=>{To(yk,e)})(D),(a&&A||!a&&!A||D)&&(P(d,v),Kn((()=>{T(d)})));const R=Lr((()=>`${b.value}-submenu`)),z=Lr((()=>O.value||e.disabled)),B=yt(),j=yt(),N=Lr((()=>x.value.includes(u))),_=Lr((()=>!C.value&&N.value)),Q=Lr((()=>M.value.includes(u))),L=yt(!1);bn(y,(()=>{L.value=!!y.value.find((e=>e===u))}),{immediate:!0});const H=e=>{z.value||(r("titleClick",e,u),"inline"===S.value&&k(u,!N.value))},F=e=>{z.value||(w(g.value),r("mouseenter",e))},W=e=>{z.value||(w([]),r("mouseleave",e))},X=Rk(Lr((()=>g.value.length))),Y=e=>{"inline"!==S.value&&k(u,e)},V=()=>{w(g.value)},Z=d&&`${d}-popup`,U=Lr((()=>xl(b.value,`${b.value}-${e.theme||E.value}`,e.popupClassName))),K=Lr((()=>"inline"!==S.value&&g.value.length>1?"vertical":S.value)),G=Lr((()=>"horizontal"===S.value?"vertical":S.value)),q=Lr((()=>"horizontal"===K.value?"vertical":K.value)),J=()=>{var t,o;const r=R.value,i=null!==(t=e.icon)&&void 0!==t?t:null===(o=n.icon)||void 0===o?void 0:o.call(n,e),l=e.expandIcon||n.expandIcon||I.value,a=((t,n)=>{if(!n)return $.value&&!f.value.length&&t&&"string"==typeof t?br("div",{class:`${b.value}-inline-collapsed-noicon`},[t.charAt(0)]):br("span",{class:`${b.value}-title-content`},[t]);const o=sa(t)&&"span"===t.type;return br(er,null,[Yh("function"==typeof n?n(e.originItemValue):n,{class:`${b.value}-item-icon`},!1),o?t:br("span",{class:`${b.value}-title-content`},[t])])})(ca(n,e,"title"),i);return br("div",{style:X.value,class:`${r}-title`,tabindex:z.value?null:-1,ref:B,title:"string"==typeof a?a:null,"data-menu-id":u,"aria-expanded":_.value,"aria-haspopup":!0,"aria-controls":Z,"aria-disabled":z.value,onClick:H,onFocus:V},[a,"horizontal"!==S.value&&l?l(cl(cl({},e),{isOpen:_.value})):br("i",{class:`${r}-arrow`},null)])};return()=>{var t;if(a)return A?null===(t=n.default)||void 0===t?void 0:t.call(n):null;const r=R.value;let i=()=>null;if(C.value||"inline"===S.value)i=()=>br(Lk,null,{default:J});else{const t="horizontal"===S.value?[0,8]:[10,0];i=()=>br(Lk,{mode:K.value,prefixCls:r,visible:!e.internalPopupClose&&_.value,popupClassName:U.value,popupOffset:e.popupOffset||t,disabled:z.value,onVisibleChange:Y},{default:()=>[J()],popup:()=>br($k,{mode:q.value},{default:()=>[br(Fk,{id:Z,ref:j},{default:n.default})]})})}return br($k,{mode:G.value},{default:()=>[br(qm.Item,sl(sl({component:"li"},o),{},{role:"none",class:xl(r,`${r}-${S.value}`,o.class,{[`${r}-open`]:_.value,[`${r}-active`]:L.value,[`${r}-selected`]:Q.value,[`${r}-disabled`]:z.value}),onMouseenter:F,onMouseleave:W,"data-submenu-id":u}),{default:()=>br(er,null,[i(),!C.value&&br(Wk,{id:Z,open:_.value,keyPath:g.value},{default:n.default})])})]})}}});function Vk(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Zk(e,t){e.classList?e.classList.add(t):Vk(e,t)||(e.className=`${e.className} ${t}`)}function Uk(e,t){if(e.classList)e.classList.remove(t);else if(Vk(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Kk=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:e,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",Zk(t,e)},onEnter:e=>{Ft((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(Uk(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{Zk(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(Uk(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},Gk=jn({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:$p.any,originItemValue:wa()},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=bk(),i=Lr((()=>`${r.value}-item-group`)),l=Ak();return()=>{var t,r;return l?null===(t=n.default)||void 0===t?void 0:t.call(n):br("li",sl(sl({},o),{},{onClick:e=>e.stopPropagation(),class:i.value}),[br("div",{title:"string"==typeof e.title?e.title:void 0,class:`${i.value}-title`},[ca(n,e,"title")]),br("ul",{class:`${i.value}-list`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])}}}),qk=jn({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=bk(),n=Lr((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>br("li",{class:n.value},null)}});function Jk(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"==typeof e){const r=e,{label:i,children:l,key:a,type:s}=r,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[o]})}t.set(u,h),n&&n.childrenEventKeys.push(u);const o=Jk(l,t,{childrenEventKeys:p,parentKeys:[].concat(d,u)});return br(Yk,sl(sl({key:u},c),{},{title:i,originItemValue:e}),{default:()=>[o]})}return"divider"===s?br(qk,sl({key:u},c),null):(h.isLeaf=!0,t.set(u,h),br(Bk,sl(sl({key:u},c),{},{originItemValue:e}),{default:()=>[i]}))}return null})).filter((e=>e))}const eP=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:l,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tP=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},nP=e=>cl({},Zu(e)),oP=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:l,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:f,menuItemPaddingInline:g,motionDurationMid:m,colorItemTextHover:v,lineType:b,colorSplit:y,colorItemTextDisabled:O,colorDangerItemText:w,colorDangerItemTextHover:S,colorDangerItemTextSelected:$,colorDangerItemBgActive:x,colorDangerItemBgSelected:C,colorItemBgHover:k,menuSubMenuBg:P,colorItemTextSelectedHorizontal:T,colorItemBgSelectedHorizontal:M}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:cl({},nP(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:cl({},nP(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:cl(cl({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:M,"&::after":{borderBottomWidth:c,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},rP=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:l,marginXXS:a}=e;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:r+i+l}}},iP=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:f}=e,g={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":cl({[`&${t}-root`]:{boxShadow:"none"}},rP(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:cl(cl({},rP(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*l}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:cl(cl({},Wu),{paddingInline:h})}}]},lP=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},aP=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},sP=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:h,radiusSubMenuItem:f,menuArrowSize:g,menuArrowOffset:m,lineType:v,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lP(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:h,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:cl(cl(cl({borderRadius:h},lP(e)),aP(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),aP(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*g}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},cP=[],uP=jn({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:{id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:l}=$d("menu",e),a=uk(),s=Lr((()=>{var t;return l("menu",e.prefixCls||(null===(t=null==a?void 0:a.prefixCls)||void 0===t?void 0:t.value))})),[c,u]=((e,t)=>Ku("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:i,colorError:l,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:c,fontSize:u}=e,d=u/7*5,p=Ju(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),h=new mu(s).setAlpha(.65).toRgbString(),f=Ju(p,{colorItemText:h,colorItemTextHover:s,colorGroupTitle:h,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:i,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new mu(s).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:i},cl({},o));return[sP(p),eP(p),iP(p),oP(p,"light"),oP(f,"dark"),tP(p),IS(p),gS(p,"slide-up"),gS(p,"slide-down"),MS(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:i,colorTextDescription:l,colorBgContainer:a,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:h}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:i,colorItemTextHover:i,colorItemTextHoverHorizontal:t,colorGroupTitle:l,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:h,colorItemBgActive:c,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e))(s,Lr((()=>!a))),d=yt(new Map),p=Mo(Ck,bt(void 0)),h=Lr((()=>void 0!==p.value?p.value:e.inlineCollapsed)),{itemsNodes:f}=function(e){const t=yt([]),n=yt(!1),o=yt(new Map);return bn((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Jk(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}(e),g=yt(!1);Vn((()=>{g.value=!0})),mn((()=>{xp(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),xp(!(void 0!==p.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const m=bt([]),v=bt([]),b=bt({});bn(d,(()=>{const e={};for(const t of d.value.values())e[t.key]=t;b.value=e}),{flush:"post"}),mn((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?b.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?Qw([].concat(St(n.parentKeys),e.activeKey)):[],gk(m.value,t)||(m.value=t)}})),bn((()=>e.selectedKeys),(e=>{e&&(v.value=e.slice())}),{immediate:!0,deep:!0});const y=bt([]);bn([b,v],(()=>{let e=[];v.value.forEach((t=>{const n=b.value[t];n&&(e=e.concat(St(n.parentKeys)))})),e=Qw(e),gk(y.value,e)||(y.value=e)}),{immediate:!0});const O=bt([]);let w;bn((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.value;gk(O.value,e)||(O.value=e.slice())}),{immediate:!0,deep:!0});const S=Lr((()=>!!e.disabled)),$=Lr((()=>"rtl"===i.value)),x=bt("vertical"),C=yt(!1);mn((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!h.value?(x.value=e.mode,C.value=!1):(x.value="vertical",C.value=h.value),(null===(t=null==a?void 0:a.mode)||void 0===t?void 0:t.value)&&(x.value=a.mode.value)}));const k=Lr((()=>"inline"===x.value)),P=e=>{O.value=e,o("update:openKeys",e),o("openChange",e)},T=bt(O.value),M=yt(!1);bn(O,(()=>{k.value&&(T.value=O.value)}),{immediate:!0}),bn(k,(()=>{M.value?k.value?O.value=T.value:P(cP):M.value=!0}),{immediate:!0});const I=Lr((()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${x.value}`]:!0,[`${s.value}-inline-collapsed`]:C.value,[`${s.value}-rtl`]:$.value,[`${s.value}-${e.theme}`]:!0}))),E=Lr((()=>l())),A=Lr((()=>({horizontal:{name:`${E.value}-slide-up`},inline:Kk,other:{name:`${E.value}-zoom-big`}})));Sk(!0);const D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=d.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...D(St(r)))})),t},R=bt(0),z=Lr((()=>{var t;return e.expandIcon||n.expandIcon||(null===(t=null==a?void 0:a.expandIcon)||void 0===t?void 0:t.value)?t=>{let o=e.expandIcon||n.expandIcon;return o="function"==typeof o?o(t):o,Yh(o,{class:`${s.value}-submenu-expand-icon`},!1)}:null}));return xk({prefixCls:s,activeKeys:m,openKeys:O,selectedKeys:v,changeActiveKeys:t=>{clearTimeout(w),w=setTimeout((()=>{void 0===e.activeKey&&(m.value=t),o("update:activeKey",t[t.length-1])}))},disabled:S,rtl:$,mode:x,inlineIndent:Lr((()=>e.inlineIndent)),subMenuCloseDelay:Lr((()=>e.subMenuCloseDelay)),subMenuOpenDelay:Lr((()=>e.subMenuOpenDelay)),builtinPlacements:Lr((()=>e.builtinPlacements)),triggerSubMenuAction:Lr((()=>e.triggerSubMenuAction)),getPopupContainer:Lr((()=>e.getPopupContainer)),inlineCollapsed:C,theme:Lr((()=>e.theme)),siderCollapsed:p,defaultMotions:Lr((()=>g.value?A.value:null)),motion:Lr((()=>g.value?e.motion:null)),overflowDisabled:yt(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=b.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=O.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==x.value){const e=D(St(o));r=Qw(r.filter((t=>!e.includes(t))))}gk(O,r)||P(r)},onItemClick:t=>{var n;o("click",t),(t=>{if(e.selectable){const{key:n}=t,r=v.value.includes(n);let i;i=e.multiple?r?v.value.filter((e=>e!==n)):[...v.value,n]:[n];const l=cl(cl({},t),{selectedKeys:i});gk(i,v.value)||(void 0===e.selectedKeys&&(v.value=i),o("update:selectedKeys",i),r&&e.multiple?o("deselect",l):o("select",l))}"inline"!==x.value&&!e.multiple&&O.value.length&&P(cP)})(t),null===(n=null==a?void 0:a.onClick)||void 0===n||n.call(a)},registerMenuInfo:(e,t)=>{d.value.set(e,t),d.value=new Map(d.value)},unRegisterMenuInfo:e=>{d.value.delete(e),d.value=new Map(d.value)},selectedSubMenuKeys:y,expandIcon:z,forceSubMenuRender:Lr((()=>e.forceSubMenuRender)),rootClassName:u}),()=>{var t,o;const i=f.value||ql(null===(t=n.default)||void 0===t?void 0:t.call(n)),l=R.value>=i.length-1||"horizontal"!==x.value||e.disabledOverflow,a="horizontal"!==x.value||e.disabledOverflow?i:i.map(((e,t)=>br($k,{key:e.key,overflowDisabled:t>R.value},{default:()=>e}))),d=(null===(o=n.overflowedIndicator)||void 0===o?void 0:o.call(n))||br(GC,null,null);return c(br(qm,sl(sl({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Bk,class:[I.value,r.class,u.value],role:"menu",id:e.id,data:a,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?i.slice(-t):null;return br(er,null,[br(Yk,{eventKey:Pk,key:Pk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n}),br(Ek,null,{default:()=>[br(Yk,{eventKey:Pk,key:Pk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n})]})])},maxCount:"horizontal"!==x.value||e.disabledOverflow?qm.INVALIDATE:qm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{R.value=e}}),{default:()=>[br(qo,{to:"body"},{default:()=>[br("div",{style:{display:"none"},"aria-hidden":!0},[br(Ek,null,{default:()=>[a]})])]})]}))}}});uP.install=function(e){return e.component(uP.name,uP),e.component(Bk.name,Bk),e.component(Yk.name,Yk),e.component(qk.name,qk),e.component(Gk.name,Gk),e},uP.Item=Bk,uP.Divider=qk,uP.SubMenu=Yk,uP.ItemGroup=Gk;const dP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:cl(cl({},Xu(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:cl({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Uu(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},pP=Ku("Breadcrumb",(e=>{const t=Ju(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[dP(t)]}));function hP(e){const{route:t,params:n,routes:o,paths:r}=e,i=o.indexOf(t)===o.length-1,l=function(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(t,n);return i?br("span",null,[l]):br("a",{href:`#/${r.join("/")}`},[l])}const fP=jn({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:{prefixCls:String,routes:{type:Array},params:$p.any,separator:$p.any,itemRender:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("breadcrumb",e),[l,a]=pP(r),s=(e,t)=>(e=(e||"").replace(/^\//,""),Object.keys(t).forEach((n=>{e=e.replace(`:${n}`,t[n])})),e),c=(e,t,n)=>{const o=[...e],r=s(t||"",n);return r&&o.push(r),o};return()=>{var t;let u;const{routes:d,params:p={}}=e,h=ql(ca(n,e)),f=null!==(t=ca(n,e,"separator"))&&void 0!==t?t:"/",g=e.itemRender||n.itemRender||hP;d&&d.length>0?u=(e=>{let{routes:t=[],params:n={},separator:o,itemRender:r=hP}=e;const i=[];return t.map((e=>{const l=s(e.path,n);l&&i.push(l);const a=[...i];let u=null;e.children&&e.children.length&&(u=br(uP,{items:e.children.map((e=>({key:e.path||e.breadcrumbName,label:r({route:e,params:n,routes:t,paths:c(a,e.path,n)})})))},null));const d={separator:o};return u&&(d.overlay=u),br(fk,sl(sl({},d),{},{key:l||e.breadcrumbName}),{default:()=>[r({route:e,params:n,routes:t,paths:a})]})}))})({routes:d,params:p,separator:f,itemRender:g}):h.length&&(u=h.map(((e,t)=>(Ts("object"==typeof e.type&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR)),yr(e,{separator:f,key:t})))));const m={[r.value]:!0,[`${r.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[a.value]:!0};return l(br("nav",sl(sl({},o),{},{class:m}),[br("ol",null,[u])]))}}}),gP=jn({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:{prefixCls:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=$d("breadcrumb",e);return()=>{var e;const{separator:t,class:i}=o,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?a:"/"])}}});function mP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}fP.Item=fk,fP.Separator=gP,fP.install=function(e){return e.component(fP.name,fP),e.component(fk.name,fk),e.component(gP.name,gP),e},"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var vP={exports:{}};vP.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",l="hour",a="day",s="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(o,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()1)return e(l[0])}else{var a=t.name;O[a]=t,r=a}return!o&&r&&(y=r),r||!o&&y},x=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=b;C.l=$,C.i=S,C.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return x(e)25){var i=r(this).startOf(o).add(1,o).date(t),l=r(this).endOf(n);if(i.isBefore(l))return 1}var a=r(this).startOf(o).date(t).startOf(n).subtract(1,"millisecond"),s=this.diff(a,n,!0);return s<0?r(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}($P);const xP=mP($P.exports);var CP={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}(CP);const kP=mP(CP.exports);var PP={exports:{}};!function(e,t){var n,o;e.exports=(n="month",o="quarter",function(e,t){var r=t.prototype;r.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=r.add;r.add=function(e,t){return e=Number(e),this.$utils().p(t)===o?this.add(3*e,n):i.bind(this)(e,t)};var l=r.startOf;r.startOf=function(e,t){var r=this.$utils(),i=!!r.u(t)||t;if(r.p(e)===o){var a=this.quarter()-1;return i?this.month(3*a).startOf(n).startOf("day"):this.month(3*a+2).endOf(n).endOf("day")}return l.bind(this)(e,t)}})}(PP);const TP=mP(PP.exports);var MP={exports:{}};!function(e,t){e.exports=function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return o.bind(this)(i)}}}(MP);const IP=mP(MP.exports);var EP={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,o=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,o=i.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,a("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[n,a("day")],Do:[r,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],M:[o,a("month")],MM:[n,a("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=l(e)}],YYYY:[/\d{4}/,a("year")],Z:s,ZZ:s};function p(n){var o,r;o=n,r=i&&i.formats;for(var l=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=l.length,s=0;s-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),r=o.year,i=o.month,l=o.day,a=o.hours,s=o.minutes,c=o.seconds,u=o.milliseconds,d=o.zone,h=new Date,f=l||(r||i?1:h.getDate()),g=r||h.getFullYear(),m=0;r&&!i||(m=i>0?i-1:h.getMonth());var v=a||0,b=s||0,y=c||0,O=u||0;return d?new Date(Date.UTC(g,m,f,v,b,y,O+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,b,y,O)):new Date(g,m,f,v,b,y,O)}catch(w){return new Date("")}}(t,a,o),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),i={}}else if(a instanceof Array)for(var h=a.length,f=1;f<=h;f+=1){l[1]=a[f-1];var g=n.apply(this,l);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===h&&(this.$d=new Date(""))}else r.call(this,e)}}}()}(EP);const AP=mP(EP.exports);bP.extend(AP),bP.extend(IP),bP.extend(OP),bP.extend(SP),bP.extend(xP),bP.extend(kP),bP.extend(TP),bP.extend(((e,t)=>{const n=t.prototype,o=n.format;n.format=function(e){const t=(e||"").replace("Wo","wo");return o.bind(this)(t)}}));const DP={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},RP=e=>DP[e]||e.split("_")[0],zP=()=>{ks(Cs,!1,"Not match any format. Please help to fire a issue about this.")},BP=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function jP(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let i=0;it)return e;r+=n.length}}const NP=(e,t)=>{if(!e)return null;if(bP.isDayjs(e))return e;const n=t.matchAll(BP);let o=bP(e,t);if(null===n)return o;for(const r of n){const t=r[0],n=r.index;if("Q"===t){const t=e.slice(n-1,n),r=jP(e,n,t).match(/\d+/)[0];o=o.quarter(parseInt(r))}if("wo"===t.toLowerCase()){const t=e.slice(n-1,n),r=jP(e,n,t).match(/\d+/)[0];o=o.week(parseInt(r))}"ww"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length)))),"w"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length+1))))}return o},_P={getNow:()=>bP(),getFixedDate:e=>bP(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>bP().locale(RP(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(RP(e)).weekday(0),getWeek:(e,t)=>t.locale(RP(e)).week(),getShortWeekDays:e=>bP().locale(RP(e)).localeData().weekdaysMin(),getShortMonths:e=>bP().locale(RP(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(RP(e)).format(n),parse:(e,t,n)=>{const o=RP(e);for(let r=0;rArray.isArray(e)?e.map((e=>NP(e,t))):NP(e,t),toString:(e,t)=>Array.isArray(e)?e.map((e=>bP.isDayjs(e)?e.format(t):e)):bP.isDayjs(e)?e.format(t):e};function QP(e){const t=co();return cl(cl({},e),t)}const LP=Symbol("PanelContextProps"),HP=e=>{To(LP,e)},FP=()=>Mo(LP,{}),WP={visibility:"hidden"};function XP(e,t){let{slots:n}=t;var o;const r=QP(e),{prefixCls:i,prevIcon:l="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:p,onNext:h}=r,{hideNextBtn:f,hidePrevBtn:g}=FP();return br("div",{class:i},[u&&br("button",{type:"button",onClick:u,tabindex:-1,class:`${i}-super-prev-btn`,style:g.value?WP:{}},[s]),p&&br("button",{type:"button",onClick:p,tabindex:-1,class:`${i}-prev-btn`,style:g.value?WP:{}},[l]),br("div",{class:`${i}-view`},[null===(o=n.default)||void 0===o?void 0:o.call(n)]),h&&br("button",{type:"button",onClick:h,tabindex:-1,class:`${i}-next-btn`,style:f.value?WP:{}},[a]),d&&br("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:f.value?WP:{}},[c])])}function YP(e){const t=QP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:i,onNextDecades:l}=t,{hideHeader:a}=FP();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/sT)*sT,d=u+sT-1;return br(XP,sl(sl({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:l}),{default:()=>[u,Or("-"),d]})}function VP(e,t,n,o,r){let i=e.setHour(t,n);return i=e.setMinute(i,o),i=e.setSecond(i,r),i}function ZP(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function UP(e,t){const n=e.getYear(t),o=e.getMonth(t)+1,r=e.getEndDate(e.getFixedDate(`${n}-${o}-01`));return`${n}-${o<10?`0${o}`:`${o}`}-${e.getDate(r)}`}function KP(e){const{prefixCls:t,disabledDate:n,onSelect:o,picker:r,rowNum:i,colNum:l,prefixColumn:a,rowClassName:s,baseDate:c,getCellClassName:u,getCellText:d,getCellNode:p,getCellDate:h,generateConfig:f,titleCell:g,headerCells:m}=QP(e),{onDateMouseenter:v,onDateMouseleave:b,mode:y}=FP(),O=`${t}-cell`,w=[];for(let S=0;S{e.stopPropagation(),m||o(s)},onMouseenter:()=>{!m&&v&&v(s)},onMouseleave:()=>{!m&&b&&b(s)}},[p?p(s):br("div",{class:`${O}-inner`},[d(s)])]))}w.push(br("tr",{key:S,class:s&&s(t)},[e]))}return br("div",{class:`${t}-body`},[br("table",{class:`${t}-content`},[m&&br("thead",null,[br("tr",null,[m])]),br("tbody",null,[w])])])}function GP(e){const t=QP(e),n=aT-1,{prefixCls:o,viewDate:r,generateConfig:i}=t,l=`${o}-cell`,a=i.getYear(r),s=Math.floor(a/aT)*aT,c=Math.floor(a/sT)*sT,u=c+sT-1,d=i.setYear(r,c-Math.ceil((12*aT-sT)/2));return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:d,getCellText:e=>{const t=i.getYear(e);return`${t}-${t+n}`},getCellClassName:e=>{const t=i.getYear(e);return{[`${l}-in-view`]:c<=t&&t+n<=u,[`${l}-selected`]:t===s}},getCellDate:(e,t)=>i.addYear(e,t*aT)}),null)}XP.displayName="Header",XP.inheritAttrs=!1,YP.displayName="DecadeHeader",YP.inheritAttrs=!1,KP.displayName="PanelBody",KP.inheritAttrs=!1,GP.displayName="DecadeBody",GP.inheritAttrs=!1;const qP=new Map;function JP(e,t,n){if(qP.get(e)&&ma.cancel(qP.get(e)),n<=0)return void qP.set(e,ma((()=>{e.scrollTop=t})));const o=(t-e.scrollTop)/n*10;qP.set(e,ma((()=>{e.scrollTop+=o,e.scrollTop!==t&&JP(e,t,n-10)})))}function eT(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:i,onEnter:l}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Im.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Im.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Im.UP:if(r)return r(-1),!0;break;case Im.DOWN:if(r)return r(1),!0;break;case Im.PAGE_UP:if(i)return i(-1),!0;break;case Im.PAGE_DOWN:if(i)return i(1),!0;break;case Im.ENTER:if(l)return l(),!0}return!1}function tT(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function nT(e,t,n){const o="time"===e?8:10,r="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let oT=null;const rT=new Set,iT={year:e=>"month"===e||"date"===e?"year":e,month:e=>"date"===e?"month":e,quarter:e=>"month"===e||"date"===e?"quarter":e,week:e=>"date"===e?"week":e,time:null,date:null};function lT(e,t){return e.some((e=>e&&e.contains(t)))}const aT=10,sT=10*aT;function cT(e){const t=QP(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:i,operationRef:l,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;l.value={onKeydown:e=>eT(e,{onLeftRight:e=>{a(r.addYear(i,e*aT),"key")},onCtrlLeftRight:e=>{a(r.addYear(i,e*sT),"key")},onUpDown:e=>{a(r.addYear(i,e*aT*3),"key")},onEnter:()=>{s("year",i)}})};const u=e=>{const t=r.addYear(i,e*sT);o(t),s(null,t)};return br("div",{class:c},[br(YP,sl(sl({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),br(GP,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{a(e,"mouse"),s("year",e)}}),null)])}function uT(e,t){return!e&&!t||!(!e||!t)&&void 0}function dT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)}function pT(e,t){return Math.floor(e.getMonth(t)/3)+1}function hT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:dT(e,t,n)&&pT(e,t)===pT(e,n)}function fT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:dT(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function gT(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function mT(e,t,n,o){const r=uT(n,o);return"boolean"==typeof r?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function vT(e,t,n){return gT(e,t,n)&&function(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function bT(e,t,n,o){return!!(t&&n&&o)&&!gT(e,t,o)&&!gT(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function yT(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*o);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function OT(e,t){let{generateConfig:n,locale:o,format:r}=t;return"function"==typeof r?r(e):n.locale.format(o.locale,e,r)}function wT(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return e&&"function"!=typeof r[0]?n.locale.parse(o.locale,e,r):null}function ST(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const i=(e,n,i)=>{let l=n;for(;l<=i;){let n;switch(e){case"date":if(n=r.setDate(t,l),!o(n))return!1;break;case"month":if(n=r.setMonth(t,l),!ST({cellDate:n,mode:"month",generateConfig:r,disabledDate:o}))return!1;break;case"year":if(n=r.setYear(t,l),!ST({cellDate:n,mode:"year",generateConfig:r,disabledDate:o}))return!1}l+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":return i("date",1,r.getDate(r.getEndDate(t)));case"quarter":{const e=3*Math.floor(r.getMonth(t)/3);return i("month",e,e+2)}case"year":return i("month",0,11);case"decade":{const e=r.getYear(t),n=Math.floor(e/aT)*aT;return i("year",n,n+aT-1)}}}function $T(e){const t=QP(e),{hideHeader:n}=FP();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:i,value:l,format:a}=t;return br(XP,{prefixCls:`${o}-header`},{default:()=>[l?OT(l,{locale:i,format:a,generateConfig:r}):" "]})}cT.displayName="DecadePanel",cT.inheritAttrs=!1,$T.displayName="TimeHeader",$T.inheritAttrs=!1;const xT=jn({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=FP(),n=bt(null),o=bt(new Map),r=bt();return bn((()=>e.value),(()=>{const r=o.value.get(e.value);r&&!1!==t.value&&JP(n.value,r.offsetTop,120)})),Kn((()=>{var e;null===(e=r.value)||void 0===e||e.call(r)})),bn(t,(()=>{var i;null===(i=r.value)||void 0===i||i.call(r),Ft((()=>{if(t.value){const t=o.value.get(e.value);t&&(r.value=function(e,t){let n;return function o(){Uh(e)?t():n=ma((()=>{o()}))}(),()=>{ma.cancel(n)}}(t,(()=>{JP(n.value,t.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),()=>{const{prefixCls:t,units:r,onSelect:i,value:l,active:a,hideDisabledOptions:s}=e,c=`${t}-cell`;return br("ul",{class:xl(`${t}-column`,{[`${t}-column-active`]:a}),ref:n,style:{position:"relative"}},[r.map((e=>s&&e.disabled?null:br("li",{key:e.value,ref:t=>{o.value.set(e.value,t)},class:xl(c,{[`${c}-disabled`]:e.disabled,[`${c}-selected`]:l===e.value}),onClick:()=>{e.disabled||i(e.value)}},[br("div",{class:`${c}-inner`},[e.label])])))])}}});function CT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);for(;o.length{!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n&&"name"!==n||n.startsWith("data-__")||(t[n]=e[n])})),t}function TT(e,t){return e?e[t]:null}function MT(e,t,n){const o=[TT(e,0),TT(e,1)];return o[n]="function"==typeof t?t(o[n]):t,o[0]||o[1]?o:null}function IT(e,t,n,o){const r=[];for(let i=e;i<=t;i+=n)r.push({label:CT(i,2),value:i,disabled:(o||[]).includes(i)});return r}const ET=jn({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=Lr((()=>e.value?e.generateConfig.getHour(e.value):-1)),n=Lr((()=>!!e.use12Hours&&t.value>=12)),o=Lr((()=>e.use12Hours?t.value%12:t.value)),r=Lr((()=>e.value?e.generateConfig.getMinute(e.value):-1)),i=Lr((()=>e.value?e.generateConfig.getSecond(e.value):-1)),l=bt(e.generateConfig.getNow()),a=bt(),s=bt(),c=bt();Zn((()=>{l.value=e.generateConfig.getNow()})),mn((()=>{if(e.disabledTime){const t=e.disabledTime(l);[a.value,s.value,c.value]=[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}));const u=(t,n,o,r)=>{let i=e.value||e.generateConfig.getNow();const l=Math.max(0,n),a=Math.max(0,o),s=Math.max(0,r);return i=VP(e.generateConfig,i,e.use12Hours&&t?l+12:l,a,s),i},d=Lr((()=>{var t;return IT(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,a.value&&a.value())})),p=Lr((()=>{if(!e.use12Hours)return[!1,!1];const t=[!0,!0];return d.value.forEach((e=>{let{disabled:n,value:o}=e;n||(o>=12?t[1]=!1:t[0]=!1)})),t})),h=Lr((()=>e.use12Hours?d.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map((e=>{const t=e.value%12,n=0===t?"12":CT(t,2);return cl(cl({},e),{label:n,value:t})})):d.value)),f=Lr((()=>{var n;return IT(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,s.value&&s.value(t.value))})),g=Lr((()=>{var n;return IT(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,c.value&&c.value(t.value,r.value))}));return()=>{const{prefixCls:t,operationRef:l,activeColumnIndex:a,showHour:s,showMinute:c,showSecond:d,use12Hours:m,hideDisabledOptions:v,onSelect:b}=e,y=[],O=`${t}-content`,w=`${t}-time-panel`;function S(e,t,n,o,r){!1!==e&&y.push({node:Yh(t,{prefixCls:w,value:n,active:a===y.length,onSelect:r,units:o,hideDisabledOptions:v}),onSelect:r,value:n,units:o})}l.value={onUpDown:e=>{const t=y[a];if(t){const n=t.units.findIndex((e=>e.value===t.value)),o=t.units.length;for(let r=1;r{b(u(n.value,e,r.value,i.value),"mouse")})),S(c,br(xT,{key:"minute"},null),r.value,f.value,(e=>{b(u(n.value,o.value,e,i.value),"mouse")})),S(d,br(xT,{key:"second"},null),i.value,g.value,(e=>{b(u(n.value,o.value,r.value,e),"mouse")}));let $=-1;return"boolean"==typeof n.value&&($=n.value?1:0),S(!0===m,br(xT,{key:"12hours"},null),$,[{label:"AM",value:0,disabled:p.value[0]},{label:"PM",value:1,disabled:p.value[1]}],(e=>{b(u(!!e,o.value,r.value,i.value),"mouse")})),br("div",{class:O},[y.map((e=>{let{node:t}=e;return t}))])}}});function AT(e){const t=QP(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:i,operationRef:l,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:p}=t,h=`${r}-time-panel`,f=bt(),g=bt(-1),m=[a,s,c,u].filter((e=>!1!==e)).length;return l.value={onKeydown:e=>eT(e,{onLeftRight:e=>{g.value=(g.value+e+m)%m},onUpDown:e=>{-1===g.value?g.value=0:f.value&&f.value.onUpDown(e)},onEnter:()=>{d(p||n.getNow(),"key"),g.value=-1}}),onBlur:()=>{g.value=-1}},br("div",{class:xl(h,{[`${h}-active`]:i})},[br($T,sl(sl({},t),{},{format:o,prefixCls:r}),null),br(ET,sl(sl({},t),{},{prefixCls:r,activeColumnIndex:g.value,operationRef:f}),null)])}function DT(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:i,isSameCell:l,offsetCell:a,today:s,value:c}=e;return function(e){const u=a(e,-1),d=a(e,1),p=TT(o,0),h=TT(o,1),f=TT(r,0),g=TT(r,1),m=bT(n,f,g,e);function v(e){return l(p,e)}function b(e){return l(h,e)}const y=l(f,e),O=l(g,e),w=(m||O)&&(!i(u)||b(u)),S=(m||y)&&(!i(d)||v(d));return{[`${t}-in-view`]:i(e),[`${t}-in-range`]:bT(n,p,h,e),[`${t}-range-start`]:v(e),[`${t}-range-end`]:b(e),[`${t}-range-start-single`]:v(e)&&!h,[`${t}-range-end-single`]:b(e)&&!p,[`${t}-range-start-near-hover`]:v(e)&&(l(u,f)||bT(n,f,g,u)),[`${t}-range-end-near-hover`]:b(e)&&(l(d,g)||bT(n,f,g,d)),[`${t}-range-hover`]:m,[`${t}-range-hover-start`]:y,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:S,[`${t}-range-hover-edge-start-near-range`]:w&&l(u,h),[`${t}-range-hover-edge-end-near-range`]:S&&l(d,p),[`${t}-today`]:l(s,e),[`${t}-selected`]:l(c,e)}}}AT.displayName="TimePanel",AT.inheritAttrs=!1;const RT=Symbol("RangeContextProps"),zT=()=>Mo(RT,{rangedValue:bt(),hoverRangedValue:bt(),inRange:bt(),panelPosition:bt()}),BT=jn({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:bt(e.value.rangedValue),hoverRangedValue:bt(e.value.hoverRangedValue),inRange:bt(e.value.inRange),panelPosition:bt(e.value.panelPosition)};return(e=>{To(RT,e)})(o),bn((()=>e.value),(()=>{Object.keys(e.value).forEach((t=>{o[t]&&(o[t].value=e.value[t])}))})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function jT(e){const t=QP(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:i,rowCount:l,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=zT(),p=function(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r);let l=t.addDate(r,o-i);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}(i.locale,o,a),h=`${n}-cell`,f=o.locale.getWeekFirstDay(i.locale),g=o.getNow(),m=[],v=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);r&&m.push(br("th",{key:"empty","aria-label":"empty cell"},null));for(let O=0;O<7;O+=1)m.push(br("th",{key:O},[v[(O+f)%7]]));const b=DT({cellPrefixCls:h,today:g,value:s,generateConfig:o,rangedValue:r?null:u.value,hoverRangedValue:r?null:d.value,isSameCell:(e,t)=>gT(o,e,t),isInView:e=>fT(o,e,a),offsetCell:(e,t)=>o.addDate(e,t)}),y=c?e=>c({current:e,today:g}):void 0;return br(KP,sl(sl({},t),{},{rowNum:l,colNum:7,baseDate:p,getCellNode:y,getCellText:o.getDate,getCellClassName:b,getCellDate:o.addDate,titleCell:e=>OT(e,{locale:i,format:"YYYY-MM-DD",generateConfig:o}),headerCells:m}),null)}function NT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextMonth:l,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:p}=FP();if(p.value)return null;const h=`${n}-header`,f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),g=o.getMonth(i),m=br("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})]),v=br("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?OT(i,{locale:r,format:r.monthFormat,generateConfig:o}):f[g]]),b=r.monthBeforeYear?[v,m]:[m,v];return br(XP,sl(sl({},t),{},{prefixCls:h,onSuperPrev:c,onPrev:a,onNext:l,onSuperNext:s}),{default:()=>[b]})}function _T(e){const t=QP(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:i,operationRef:l,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:p}=t,h=`${n}-${o}-panel`;l.value={onKeydown:e=>eT(e,cl({onLeftRight:e=>{p(a.addDate(s||c,e),"key")},onCtrlLeftRight:e=>{p(a.addYear(s||c,e),"key")},onUpDown:e=>{p(a.addDate(s||c,7*e),"key")},onPageUpDown:e=>{p(a.addMonth(s||c,e),"key")}},r))};const f=e=>{const t=a.addYear(c,e);u(t),d(null,t)},g=e=>{const t=a.addMonth(c,e);u(t),d(null,t)};return br("div",{class:xl(h,{[`${h}-active`]:i})},[br(NT,sl(sl({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onPrevMonth:()=>{g(-1)},onNextMonth:()=>{g(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),br(jT,sl(sl({},t),{},{onSelect:e=>p(e,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:6}),null)])}jT.displayName="DateBody",jT.inheritAttrs=!1,jT.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"],NT.displayName="DateHeader",NT.inheritAttrs=!1,_T.displayName="DatePanel",_T.inheritAttrs=!1;const QT=function(){for(var e=arguments.length,t=new Array(e),n=0;n{h.value.onBlur&&h.value.onBlur(e),d.value=null};o.value={onKeydown:e=>{if(e.which===Im.TAB){const t=function(e){const t=QT.indexOf(d.value)+e;return QT[t]||null}(e.shiftKey?-1:1);return d.value=t,t&&e.preventDefault(),!0}if(d.value){const t="date"===d.value?p:h;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return!![Im.LEFT,Im.RIGHT,Im.UP,Im.DOWN].includes(e.which)&&(d.value="date",!0)},onBlur:g,onClose:g};const m=(e,t)=>{let n=e;"date"===t&&!i&&f.defaultValue?(n=r.setHour(n,r.getHour(f.defaultValue)),n=r.setMinute(n,r.getMinute(f.defaultValue)),n=r.setSecond(n,r.getSecond(f.defaultValue))):"time"===t&&!i&&l&&(n=r.setYear(n,r.getYear(l)),n=r.setMonth(n,r.getMonth(l)),n=r.setDate(n,r.getDate(l))),c&&c(n,"mouse")},v=a?a(i||null):{};return br("div",{class:xl(u,{[`${u}-active`]:d.value})},[br(_T,sl(sl({},t),{},{operationRef:p,active:"date"===d.value,onSelect:e=>{m(ZP(r,e,i||"object"!=typeof s?null:s.defaultValue),"date")}}),null),br(AT,sl(sl(sl(sl({},t),{},{format:void 0},f),v),{},{disabledTime:null,defaultValue:void 0,operationRef:h,active:"time"===d.value,onSelect:e=>{m(e,"time")}}),null)])}function HT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,value:i}=t,l=`${n}-cell`,a=`${n}-week-panel-row`;return br(_T,sl(sl({},t),{},{panelName:"week",prefixColumn:e=>br("td",{key:"week",class:xl(l,`${l}-week`)},[o.locale.getWeek(r.locale,e)]),rowClassName:e=>xl(a,{[`${a}-selected`]:mT(o,r.locale,i,e)}),keyboardConfig:{onLeftRight:null}}),null)}function FT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=FP();if(c.value)return null;const u=`${n}-header`;return br(XP,sl(sl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:s,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function WT(e){const t=QP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=zT(),u=DT({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(e,t)=>fT(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,t)}),d=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),p=l.setMonth(i,0),h=a?e=>a({current:e,locale:o}):void 0;return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:p,getCellNode:h,getCellText:e=>o.monthFormat?OT(e,{locale:o,format:o.monthFormat,generateConfig:l}):d[l.getMonth(e)],getCellClassName:u,getCellDate:l.addMonth,titleCell:e=>OT(e,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}function XT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addMonth(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addMonth(l||a,3*e),"key")},onEnter:()=>{s("date",l||a)}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return br("div",{class:u},[br(FT,sl(sl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),br(WT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse"),s("date",e)}}),null)])}function YT(e){const t=QP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=FP();if(c.value)return null;const u=`${n}-header`;return br(XP,sl(sl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:s,class:`${n}-year-btn`},[OT(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function VT(e){const t=QP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=zT(),c=DT({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>hT(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,3*t)}),u=l.setDate(l.setMonth(i,0),1);return br(KP,sl(sl({},t),{},{rowNum:1,colNum:4,baseDate:u,getCellText:e=>OT(e,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(e,t)=>l.addMonth(e,3*t),titleCell:e=>OT(e,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}function ZT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addMonth(l||a,3*e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addYear(l||a,e),"key")}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return br("div",{class:u},[br(YT,sl(sl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),br(VT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse")}}),null)])}function UT(e){const t=QP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:i,onNextDecade:l,onDecadeClick:a}=t,{hideHeader:s}=FP();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/GT)*GT,p=d+GT-1;return br(XP,sl(sl({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:l}),{default:()=>[br("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Or("-"),p])]})}function KT(e){const t=QP(e),{prefixCls:n,value:o,viewDate:r,locale:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=zT(),c=`${n}-cell`,u=l.getYear(r),d=Math.floor(u/GT)*GT,p=d+GT-1,h=l.setYear(r,d-Math.ceil((12-GT)/2)),f=DT({cellPrefixCls:c,value:o,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>dT(l,e,t),isInView:e=>{const t=l.getYear(e);return d<=t&&t<=p},offsetCell:(e,t)=>l.addYear(e,t)});return br(KP,sl(sl({},t),{},{rowNum:4,colNum:3,baseDate:h,getCellText:l.getYear,getCellClassName:f,getCellDate:l.addYear,titleCell:e=>OT(e,{locale:i,format:"YYYY",generateConfig:l})}),null)}LT.displayName="DatetimePanel",LT.inheritAttrs=!1,HT.displayName="WeekPanel",HT.inheritAttrs=!1,FT.displayName="MonthHeader",FT.inheritAttrs=!1,WT.displayName="MonthBody",WT.inheritAttrs=!1,XT.displayName="MonthPanel",XT.inheritAttrs=!1,YT.displayName="QuarterHeader",YT.inheritAttrs=!1,VT.displayName="QuarterBody",VT.inheritAttrs=!1,ZT.displayName="QuarterPanel",ZT.inheritAttrs=!1,UT.displayName="YearHeader",UT.inheritAttrs=!1,KT.displayName="YearBody",KT.inheritAttrs=!1;const GT=10;function qT(e){const t=QP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:e=>eT(e,{onLeftRight:e=>{c(i.addYear(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e*GT),"key")},onUpDown:e=>{c(i.addYear(l||a,3*e),"key")},onEnter:()=>{u("date"===s?"date":"month",l||a)}})};const p=e=>{const t=i.addYear(a,10*e);r(t),u(null,t)};return br("div",{class:d},[br(UT,sl(sl({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{u("decade",a)}}),null),br(KT,sl(sl({},t),{},{prefixCls:n,onSelect:e=>{u("date"===s?"date":"month",e),c(e,"mouse")}}),null)])}function JT(e,t,n){return n?br("div",{class:`${e}-footer-extra`},[n(t)]):null}function eM(e){let t,n,{prefixCls:o,components:r={},needConfirmButton:i,onNow:l,onOk:a,okDisabled:s,showNow:c,locale:u}=e;if(i){const e=r.button||"button";l&&!1!==c&&(t=br("li",{class:`${o}-now`},[br("a",{class:`${o}-now-btn`,onClick:l},[u.now])])),n=i&&br("li",{class:`${o}-ok`},[br(e,{disabled:s,onClick:e=>{e.stopPropagation(),a&&a()}},{default:()=>[u.ok]})])}return t||n?br("ul",{class:`${o}-ranges`},[t,n]):null}qT.displayName="YearPanel",qT.inheritAttrs=!1;const tM=jn({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=Lr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),r=Lr((()=>24%e.hourStep==0)),i=Lr((()=>60%e.minuteStep==0)),l=Lr((()=>60%e.secondStep==0)),a=FP(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:p,panelPosition:h,rangedValue:f,hoverRangedValue:g}=zT(),m=bt({}),[v,b]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue,postState:t=>!t&&(null==d?void 0:d.value)&&"time"===e.picker?d.value:t}),[y,O]=Lv(null,{value:Tt(e,"pickerValue"),defaultValue:e.defaultPickerValue||v.value,postState:t=>{const{generateConfig:n,showTime:o,defaultValue:r}=e,i=n.getNow();return t?!v.value&&e.showTime?ZP(n,Array.isArray(t)?t[0]:t,"object"==typeof o?o.defaultValue||i:r||i):t:i}}),w=t=>{O(t),e.onPickerValueChange&&e.onPickerValueChange(t)},S=t=>{const n=iT[e.picker];return n?n(t):t},[$,x]=Lv((()=>"time"===e.picker?"time":S("date")),{value:Tt(e,"mode")});bn((()=>e.picker),(()=>{x(e.picker)}));const C=bt($.value),k=(t,n)=>{const{onPanelChange:o,generateConfig:r}=e,i=S(t||$.value);var l;l=$.value,C.value=l,x(i),o&&($.value!==i||vT(r,y.value,y.value))&&o(n,i)},P=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{picker:r,generateConfig:i,onSelect:l,onChange:a,disabledDate:s}=e;($.value===r||o)&&(b(t),l&&l(t),c&&c(t,n),!a||vT(i,t,v.value)||(null==s?void 0:s(t))||a(t))},T=e=>!(!m.value||!m.value.onKeydown)&&([Im.LEFT,Im.RIGHT,Im.UP,Im.DOWN,Im.PAGE_UP,Im.PAGE_DOWN,Im.ENTER].includes(e.which)&&e.preventDefault(),m.value.onKeydown(e)),M=e=>{m.value&&m.value.onBlur&&m.value.onBlur(e)},I=()=>{const{generateConfig:t,hourStep:n,minuteStep:o,secondStep:a}=e,s=t.getNow(),c=function(e,t,n,o,r,i){const l=Math.floor(e/o)*o;if(l{const{prefixCls:t,direction:n}=e;return xl(`${t}-panel`,{[`${t}-panel-has-range`]:f&&f.value&&f.value[0]&&f.value[1],[`${t}-panel-has-range-hover`]:g&&g.value&&g.value[0]&&g.value[1],[`${t}-panel-rtl`]:"rtl"===n})}));return HP(cl(cl({},a),{mode:$,hideHeader:Lr((()=>{var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=a.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:Lr((()=>p.value&&"right"===h.value)),hideNextBtn:Lr((()=>p.value&&"left"===h.value))})),bn((()=>e.value),(()=>{e.value&&O(e.value)})),()=>{const{prefixCls:t="ant-picker",locale:r,generateConfig:i,disabledDate:l,picker:a="date",tabindex:c=0,showNow:d,showTime:p,showToday:f,renderExtraFooter:g,onMousedown:b,onOk:O,components:S}=e;let x;s&&"right"!==h.value&&(s.value={onKeydown:T,onClose:()=>{m.value&&m.value.onClose&&m.value.onClose()}});const A=cl(cl(cl({},n),e),{operationRef:m,prefixCls:t,viewDate:y.value,value:v.value,onViewDateChange:w,sourceMode:C.value,onPanelChange:k,disabledDate:l});switch(delete A.onChange,delete A.onSelect,$.value){case"decade":x=br(cT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"year":x=br(qT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"month":x=br(XT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"quarter":x=br(ZT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"week":x=br(HT,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"time":delete A.showTime,x=br(AT,sl(sl(sl({},A),"object"==typeof p?p:null),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;default:x=br(p?LT:_T,sl(sl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null)}let D,R,z;if((null==u?void 0:u.value)||(D=JT(t,$.value,g),R=eM({prefixCls:t,components:S,needConfirmButton:o.value,okDisabled:!v.value||l&&l(v.value),locale:r,showNow:d,onNow:o.value&&I,onOk:()=>{v.value&&(P(v.value,"submit",!0),O&&O(v.value))}})),f&&"date"===$.value&&"date"===a&&!p){const e=i.getNow(),n=`${t}-today-btn`,o=l&&l(e);z=br("a",{class:xl(n,o&&`${n}-disabled`),"aria-disabled":o,onClick:()=>{o||P(e,"mouse",!0)}},[r.today])}return br("div",{tabindex:c,class:xl(E.value,n.class),style:n.style,onKeydown:T,onBlur:M,onMousedown:b},[x,D||R||z?br("div",{class:`${t}-footer`},[D,R,z]):null])}}}),nM=e=>br(tM,e),oM={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function rM(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:i,dropdownClassName:l,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:p}=QP(e),h=`${o}-dropdown`;return br(Pm,{showAction:[],hideAction:[],popupPlacement:void 0!==d?d:"rtl"===p?"bottomRight":"bottomLeft",builtinPlacements:oM,prefixCls:h,popupTransitionName:s,popupAlign:a,popupVisible:i,popupClassName:xl(l,{[`${h}-range`]:u,[`${h}-rtl`]:"rtl"===p}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const iM=jn({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup:e=>()=>e.presets.length?br("div",{class:`${e.prefixCls}-presets`},[br("ul",null,[e.presets.map(((t,n)=>{let{label:o,value:r}=t;return br("li",{key:n,onClick:()=>{e.onClick(r)},onMouseenter:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,r)},onMouseleave:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,null)}},[o])}))])]):null});function lM(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:i,onKeydown:l,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const p=yt(!1),h=yt(!1),f=yt(!1),g=yt(!1),m=yt(!1),v=Lr((()=>({onMousedown:()=>{p.value=!0,r(!0)},onKeydown:e=>{if(l(e,(()=>{m.value=!0})),!m.value){switch(e.which){case Im.ENTER:return t.value?!1!==s()&&(p.value=!0):r(!0),void e.preventDefault();case Im.TAB:return void(p.value&&t.value&&!e.shiftKey?(p.value=!1,e.preventDefault()):!p.value&&t.value&&!i(e)&&e.shiftKey&&(p.value=!0,e.preventDefault()));case Im.ESC:return p.value=!0,void c()}t.value||[Im.SHIFT].includes(e.which)?p.value||i(e):r(!0)}},onFocus:e=>{p.value=!0,h.value=!0,u&&u(e)},onBlur:e=>{!f.value&&o(document.activeElement)?(a.value?setTimeout((()=>{let{activeElement:e}=document;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;o(e)&&c()}),0):t.value&&(r(!1),g.value&&s()),h.value=!1,d&&d(e)):f.value=!1}})));bn(t,(()=>{g.value=!1})),bn(n,(()=>{g.value=!0}));const b=yt();return Vn((()=>{var e;b.value=(e=e=>{const n=function(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t.value){const e=o(n);e?h.value&&!e||r(!1):(f.value=!0,ma((()=>{f.value=!1})))}},!oT&&"undefined"!=typeof window&&window.addEventListener&&(oT=e=>{[...rT].forEach((t=>{t(e)}))},window.addEventListener("mousedown",oT)),rT.add(e),()=>{rT.delete(e),0===rT.size&&(window.removeEventListener("mousedown",oT),oT=null)})})),Kn((()=>{b.value&&b.value()})),[v,{focused:h,typing:p}]}function aM(e){let{valueTexts:t,onTextChange:n}=e;const o=bt("");function r(){o.value=t.value[0]}return bn((()=>[...t.value]),(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every((e=>e!==o.value))&&r()}),{immediate:!0}),[o,function(e){o.value=e,n(e)},r]}function sM(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=Tv((()=>{if(!e.value)return[[""],""];let t="";const i=[];for(let l=0;lt[0]!==e[0]||!gk(t[1],e[1])));return[Lr((()=>i.value[0])),Lr((()=>i.value[1]))]}function cM(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=bt(null);let l;function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ma.cancel(l),t?i.value=e:l=ma((()=>{i.value=e}))}const[,s]=sM(i,{formatList:n,generateConfig:o,locale:r});function c(){a(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return bn(e,(()=>{c(!0)})),Kn((()=>{ma.cancel(l)})),[s,function(e){a(e)},c]}function uM(e,t){return Lr((()=>(null==e?void 0:e.value)?e.value:(null==t?void 0:t.value)?(Ps(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map((e=>{const n=t.value[e];return{label:e,value:"function"==typeof n?n():n}}))):[]))}const dM=jn({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=bt(null),i=uM(Lr((()=>e.presets))),l=Lr((()=>{var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),a=Lr((()=>"date"===l.value&&!!e.showTime||"time"===l.value)),s=Lr((()=>kT(tT(e.format,l.value,e.showTime,e.use12Hours)))),c=bt(null),u=bt(null),d=bt(null),[p,h]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue}),f=bt(p.value),g=e=>{f.value=e},m=bt(null),[v,b]=Lv(!1,{value:Tt(e,"open"),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&m.value&&m.value.onClose&&m.value.onClose()}}),[y,O]=sM(f,{formatList:s,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")}),[w,S,$]=aM({valueTexts:y,onTextChange:t=>{const n=wT(t,{locale:e.locale,formatList:s.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||g(n)}}),x=t=>{const{onChange:n,generateConfig:o,locale:r}=e;g(t),h(t),n&&!vT(o,p.value,t)&&n(t,t?OT(t,{generateConfig:o,locale:r,format:s.value[0]}):"")},C=t=>{e.disabled&&t||b(t)},k=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),C(!0))},[P,{focused:T,typing:M}]=lM({blurToCancel:a,open:v,value:w,triggerOpen:C,forwardKeydown:e=>!!(v.value&&m.value&&m.value.onKeydown)&&m.value.onKeydown(e),isClickOutside:e=>!lT([c.value,u.value,d.value],e),onSubmit:()=>!(!f.value||e.disabledDate&&e.disabledDate(f.value)||(x(f.value),C(!1),$(),0)),onCancel:()=>{C(!1),g(p.value),$()},onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)},onFocus:t=>{var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}});bn([v,y],(()=>{v.value||(g(p.value),y.value.length&&""!==y.value[0]?O.value!==w.value&&$():S(""))})),bn(l,(()=>{v.value||$()})),bn(p,(()=>{g(p.value)}));const[I,E,A]=cM(w,{formatList:s,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")});return HP({operationRef:m,hideHeader:Lr((()=>"time"===l.value)),onSelect:(e,t)=>{("submit"===t||"key"!==t&&!a.value)&&(x(e),C(!1))},open:v,defaultOpenValue:Tt(e,"defaultOpenValue"),onDateMouseenter:E,onDateMouseleave:A}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:t="rc-picker",id:o,tabindex:l,dropdownClassName:a,dropdownAlign:h,popupStyle:m,transitionName:b,generateConfig:y,locale:O,inputReadOnly:$,allowClear:E,autofocus:D,picker:R="date",defaultOpenValue:z,suffixIcon:B,clearIcon:j,disabled:N,placeholder:_,getPopupContainer:Q,panelRender:L,onMousedown:H,onMouseenter:F,onMouseleave:W,onContextmenu:X,onClick:Y,onSelect:V,direction:Z,autocomplete:U="off"}=e,K=cl(cl(cl({},e),n),{class:xl({[`${t}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let G=br("div",{class:`${t}-panel-layout`},[br(iM,{prefixCls:t,presets:i.value,onClick:e=>{x(e),C(!1)}},null),br(nM,sl(sl({},K),{},{generateConfig:y,value:f.value,locale:O,tabindex:-1,onSelect:e=>{null==V||V(e),g(e)},direction:Z,onPanelChange:(t,n)=>{const{onPanelChange:o}=e;A(!0),null==o||o(t,n)}}),null)]);L&&(G=L(G));const q=br("div",{class:`${t}-panel-container`,ref:c,onMousedown:e=>{e.preventDefault()}},[G]);let J,ee;B&&(J=br("span",{class:`${t}-suffix`},[B])),E&&p.value&&!N&&(ee=br("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),x(null),C(!1)},class:`${t}-clear`,role:"button"},[j||br("span",{class:`${t}-clear-btn`},null)]));const te=cl(cl(cl(cl({id:o,tabindex:l,disabled:N,readonly:$||"function"==typeof s.value[0]||!M.value,value:I.value||w.value,onInput:e=>{S(e.target.value)},autofocus:D,placeholder:_,ref:r,title:w.value},P.value),{size:nT(R,s.value[0],y)}),PT(e)),{autocomplete:U}),ne=e.inputRender?e.inputRender(te):br("input",te,null),oe="rtl"===Z?"bottomRight":"bottomLeft";return br("div",{ref:d,class:xl(t,n.class,{[`${t}-disabled`]:N,[`${t}-focused`]:T.value,[`${t}-rtl`]:"rtl"===Z}),style:n.style,onMousedown:H,onMouseup:k,onMouseenter:F,onMouseleave:W,onContextmenu:X,onClick:Y},[br("div",{class:xl(`${t}-input`,{[`${t}-input-placeholder`]:!!I.value}),ref:u},[ne,J,ee]),br(rM,{visible:v.value,popupStyle:m,prefixCls:t,dropdownClassName:a,dropdownAlign:h,getPopupContainer:Q,transitionName:b,popupPlacement:oe,direction:Z},{default:()=>[br("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>q})])}}});function pM(e,t,n,o){const r=yT(e,n,o,1);function i(n){return n(e,t)?"same":n(r,t)?"closing":"far"}switch(n){case"year":return i(((e,t)=>function(e,t,n){const o=uT(t,n);return"boolean"==typeof o?o:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(o,e,t)));case"quarter":case"month":return i(((e,t)=>dT(o,e,t)));default:return i(((e,t)=>fT(o,e,t)))}}function hM(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const i=bt([TT(o,0),TT(o,1)]),l=bt(null),a=Lr((()=>TT(t.value,0))),s=Lr((()=>TT(t.value,1))),c=e=>i.value[e]?i.value[e]:TT(l.value,e)||function(e,t,n,o){const r=TT(e,0),i=TT(e,1);if(0===t)return r;if(r&&i)switch(pM(r,i,n,o)){case"same":case"closing":return r;default:return yT(i,n,o,-1)}return r}(t.value,e,n.value,r.value)||a.value||s.value||r.value.getNow(),u=bt(null),d=bt(null);return mn((()=>{u.value=c(0),d.value=c(1)})),[u,d,function(e,n){if(e){let o=MT(l.value,e,n);i.value=MT(i.value,null,n)||[null,null];const r=(n+1)%2;TT(t.value,r)||(o=MT(o,e,r)),l.value=o}else(a.value||s.value)&&(l.value=null)}]}function fM(e){return!!J()&&(ee(e),!0)}function gM(e){var t;const n="function"==typeof(o=e)?o():St(o);var o;return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function mM(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=yt(),o=()=>n.value=Boolean(e());return o(),function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mr()?Vn(e):t?e():Ft(e)}(o,t),n}var vM;const bM="undefined"!=typeof window;bM&&(null===(vM=null===window||void 0===window?void 0:window.navigator)||void 0===vM?void 0:vM.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const yM=bM?window:void 0;function OM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=yM}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro&&"ResizeObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=bn((()=>gM(e)),(e=>{a(),l.value&&o&&e&&(i=new ResizeObserver(t),i.observe(e,r))}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fM(c),{isSupported:l,stop:c}}function wM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:0,height:0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{box:o="content-box"}=n,r=yt(t.width),i=yt(t.height);return OM(e,(e=>{let[t]=e;const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;n?(r.value=n.reduce(((e,t)=>{let{inlineSize:n}=t;return e+n}),0),i.value=n.reduce(((e,t)=>{let{blockSize:n}=t;return e+n}),0)):(r.value=t.contentRect.width,i.value=t.contentRect.height)}),n),bn((()=>gM(e)),(e=>{r.value=e?t.width:0,i.value=e?t.height:0})),{width:r,height:i}}function SM(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function $M(e,t,n,o){return!!e||!(!o||!o[t])||!!n[(t+1)%2]}const xM=jn({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets"],setup(e,t){let{attrs:n,expose:o}=t;const r=Lr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),i=uM(Lr((()=>e.presets)),Lr((()=>e.ranges))),l=bt({}),a=bt(null),s=bt(null),c=bt(null),u=bt(null),d=bt(null),p=bt(null),h=bt(null),f=bt(null),g=Lr((()=>kT(tT(e.format,e.picker,e.showTime,e.use12Hours)))),[m,v]=Lv(0,{value:Tt(e,"activePickerIndex")}),b=bt(null),y=Lr((()=>{const{disabled:t}=e;return Array.isArray(t)?t:[t||!1,t||!1]})),[O,w]=Lv(null,{value:Tt(e,"value"),defaultValue:e.defaultValue,postState:t=>"time"!==e.picker||e.order?SM(t,e.generateConfig):t}),[S,$,x]=hM({values:O,picker:Tt(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Tt(e,"generateConfig")}),[C,k]=Lv(O.value,{postState:t=>{let n=t;if(y.value[0]&&y.value[1])return n;for(let o=0;o<2;o+=1)!y.value[o]||TT(n,o)||TT(e.allowEmpty,o)||(n=MT(n,e.generateConfig.getNow(),o));return n}}),[P,T]=Lv([e.picker,e.picker],{value:Tt(e,"mode")});bn((()=>e.picker),(()=>{T([e.picker,e.picker])}));const[M,I]=function(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:i,disabled:l,generateConfig:a}=e;const s=Lr((()=>TT(r.value,0))),c=Lr((()=>TT(r.value,1)));function u(e){return a.value.locale.getWeekFirstDate(o.value.locale,e)}function d(e){return 100*a.value.getYear(e)+a.value.getMonth(e)}function p(e){return 10*a.value.getYear(e)+pT(a.value,e)}return[e=>{var o;if(i&&(null===(o=null==i?void 0:i.value)||void 0===o?void 0:o.call(i,e)))return!0;if(l[1]&&c)return!gT(a.value,e,c.value)&&a.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return p(e)>p(c.value);case"month":return d(e)>d(c.value);case"week":return u(e)>u(c.value);default:return!gT(a.value,e,c.value)&&a.value.isAfter(e,c.value)}return!1},e=>{var o;if(null===(o=i.value)||void 0===o?void 0:o.call(i,e))return!0;if(l[0]&&s)return!gT(a.value,e,c.value)&&a.value.isAfter(s.value,e);if(t.value[0]&&s.value)switch(n.value){case"quarter":return p(e)!y.value[m.value]&&e,onChange:t=>{var n;null===(n=e.onOpenChange)||void 0===n||n.call(e,t),!t&&b.value&&b.value.onClose&&b.value.onClose()}}),D=Lr((()=>E.value&&0===m.value)),R=Lr((()=>E.value&&1===m.value)),z=bt(0),B=bt(0),j=bt(0),{width:N}=wM(a);bn([E,N],(()=>{!E.value&&a.value&&(j.value=N.value)}));const{width:_}=wM(s),{width:Q}=wM(f),{width:L}=wM(c),{width:H}=wM(d);bn([m,E,_,Q,L,H,()=>e.direction],(()=>{B.value=0,E.value&&m.value?c.value&&d.value&&s.value&&(B.value=L.value+H.value,_.value&&Q.value&&B.value>_.value-Q.value-("rtl"===e.direction||f.value.offsetLeft>B.value?0:f.value.offsetLeft)&&(z.value=B.value)):0===m.value&&(z.value=0)}),{immediate:!0});const F=bt();function W(e,t){if(e)clearTimeout(F.value),l.value[t]=!0,v(t),A(e),E.value||x(null,t);else if(m.value===t){A(e);const t=l.value;F.value=setTimeout((()=>{t===l.value&&(l.value={})}))}}function X(e){W(!0,e),setTimeout((()=>{const t=[p,h][e];t.value&&t.value.focus()}),0)}function Y(t,n){let o=t,r=TT(o,0),i=TT(o,1);const{generateConfig:a,locale:s,picker:c,order:u,onCalendarChange:d,allowEmpty:p,onChange:h,showTime:f}=e;r&&i&&a.isAfter(r,i)&&("week"===c&&!mT(a,s.locale,r,i)||"quarter"===c&&!hT(a,r,i)||"week"!==c&&"quarter"!==c&&"time"!==c&&!(f?vT(a,r,i):gT(a,r,i))?(0===n?(o=[r,null],i=null):(r=null,o=[null,i]),l.value={[n]:!0}):"time"===c&&!1===u||(o=SM(o,a))),k(o);const v=o&&o[0]?OT(o[0],{generateConfig:a,locale:s,format:g.value[0]}):"",b=o&&o[1]?OT(o[1],{generateConfig:a,locale:s,format:g.value[0]}):"";d&&d(o,[v,b],{range:0===n?"start":"end"});const S=$M(r,0,y.value,p),$=$M(i,1,y.value,p);(null===o||S&&$)&&(w(o),!h||vT(a,TT(O.value,0),r)&&vT(a,TT(O.value,1),i)||h(o,[v,b]));let x=null;0!==n||y.value[1]?1!==n||y.value[0]||(x=0):x=1,null===x||x===m.value||l.value[x]&&TT(o,x)||!TT(o,n)?W(!1,n):X(x)}const V=e=>!!(E&&b.value&&b.value.onKeydown)&&b.value.onKeydown(e),Z={formatList:g,generateConfig:Tt(e,"generateConfig"),locale:Tt(e,"locale")},[U,K]=sM(Lr((()=>TT(C.value,0))),Z),[G,q]=sM(Lr((()=>TT(C.value,1))),Z),J=(t,n)=>{const o=wT(t,{locale:e.locale,formatList:g.value,generateConfig:e.generateConfig});o&&!(0===n?M:I)(o)&&(k(MT(C.value,o,n)),x(o,n))},[ee,te,ne]=aM({valueTexts:U,onTextChange:e=>J(e,0)}),[oe,re,ie]=aM({valueTexts:G,onTextChange:e=>J(e,1)}),[le,ae]=Hv(null),[se,ce]=Hv(null),[ue,de,pe]=cM(ee,Z),[he,fe,ge]=cM(oe,Z),me=(t,n)=>({forwardKeydown:V,onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},isClickOutside:e=>!lT([s.value,c.value,u.value,a.value],e),onFocus:n=>{var o;v(t),null===(o=e.onFocus)||void 0===o||o.call(e,n)},triggerOpen:e=>{W(e,t)},onSubmit:()=>{if(!C.value||e.disabledDate&&e.disabledDate(C.value[t]))return!1;Y(C.value,t),n()},onCancel:()=>{W(!1,t),k(O.value),n()}}),[ve,{focused:be,typing:ye}]=lM(cl(cl({},me(0,ne)),{blurToCancel:r,open:D,value:ee,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),[Oe,{focused:we,typing:Se}]=lM(cl(cl({},me(1,ie)),{blurToCancel:r,open:R,value:oe,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),$e=t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),E.value||p.value.contains(t.target)||h.value.contains(t.target)||(y.value[0]?y.value[1]||X(1):X(0))},xe=t=>{var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),!E.value||!be.value&&!we.value||p.value.contains(t.target)||h.value.contains(t.target)||t.preventDefault()},Ce=Lr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[0])?OT(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""})),ke=Lr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[1])?OT(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}));bn([E,U,G],(()=>{E.value||(k(O.value),U.value.length&&""!==U.value[0]?K.value!==ee.value&&ne():te(""),G.value.length&&""!==G.value[0]?q.value!==oe.value&&ie():re(""))})),bn([Ce,ke],(()=>{k(O.value)})),o({focus:()=>{p.value&&p.value.focus()},blur:()=>{p.value&&p.value.blur(),h.value&&h.value.blur()}});const Pe=Lr((()=>E.value&&se.value&&se.value[0]&&se.value[1]&&e.generateConfig.isAfter(se.value[1],se.value[0])?se.value:null));function Te(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{generateConfig:o,showTime:r,dateRender:i,direction:l,disabledTime:a,prefixCls:s,locale:c}=e;let u=r;if(r&&"object"==typeof r&&r.defaultValue){const e=r.defaultValue;u=cl(cl({},r),{defaultValue:TT(e,m.value)||void 0})}let d=null;return i&&(d=e=>{let{current:t,today:n}=e;return i({current:t,today:n,info:{range:m.value?"end":"start"}})}),br(BT,{value:{inRange:!0,panelPosition:t,rangedValue:le.value||C.value,hoverRangedValue:Pe.value}},{default:()=>[br(nM,sl(sl(sl({},e),n),{},{dateRender:d,showTime:u,mode:P.value[m.value],generateConfig:o,style:void 0,direction:l,disabledDate:0===m.value?M:I,disabledTime:e=>!!a&&a(e,0===m.value?"start":"end"),class:xl({[`${s}-panel-focused`]:0===m.value?!ye.value:!Se.value}),value:TT(C.value,m.value),locale:c,tabIndex:-1,onPanelChange:(n,r)=>{var i,l,a;0===m.value&&pe(!0),1===m.value&&ge(!0),i=MT(P.value,r,m.value),l=MT(C.value,n,m.value),T(i),null===(a=e.onPanelChange)||void 0===a||a.call(e,l,i);let s=n;"right"===t&&P.value[m.value]===r&&(s=yT(s,r,o,-1)),x(s,m.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===m.value?TT(C.value,1):TT(C.value,0)}),null)]})}return HP({operationRef:b,hideHeader:Lr((()=>"time"===e.picker)),onDateMouseenter:e=>{ce(MT(C.value,e,m.value)),0===m.value?de(e):fe(e)},onDateMouseleave:()=>{ce(MT(C.value,null,m.value)),0===m.value?pe():ge()},hideRanges:Lr((()=>!0)),onSelect:(e,t)=>{const n=MT(C.value,e,m.value);"submit"===t||"key"!==t&&!r.value?(Y(n,m.value),0===m.value?pe():ge()):k(n)},open:E}),()=>{const{prefixCls:t="rc-picker",id:o,popupStyle:l,dropdownClassName:v,transitionName:b,dropdownAlign:w,getPopupContainer:k,generateConfig:T,locale:M,placeholder:I,autofocus:A,picker:D="date",showTime:R,separator:N="~",disabledDate:_,panelRender:Q,allowClear:L,suffixIcon:H,clearIcon:F,inputReadOnly:X,renderExtraFooter:V,onMouseenter:Z,onMouseleave:U,onMouseup:K,onOk:G,components:q,direction:J,autocomplete:ne="off"}=e,ie="rtl"===J?{right:`${B.value}px`}:{left:`${B.value}px`},le=br("div",{class:xl(`${t}-range-wrapper`,`${t}-${D}-range-wrapper`),style:{minWidth:`${j.value}px`}},[br("div",{ref:f,class:`${t}-range-arrow`,style:ie},null),function(){let e;const n=JT(t,P.value[m.value],V),o=eM({prefixCls:t,components:q,needConfirmButton:r.value,okDisabled:!TT(C.value,m.value)||_&&_(C.value[m.value]),locale:M,onOk:()=>{TT(C.value,m.value)&&(Y(C.value,m.value),G&&G(C.value))}});if("time"===D||R)e=Te();else{const t=0===m.value?S.value:$.value,n=yT(t,D,T),o=P.value[m.value]===D,r=Te(!!o&&"left",{pickerValue:t,onPickerValueChange:e=>{x(e,m.value)}}),i=Te("right",{pickerValue:n,onPickerValueChange:e=>{x(yT(e,D,T,-1),m.value)}});e=br(er,null,"rtl"===J?[i,o&&r]:[r,o&&i])}let l=br("div",{class:`${t}-panel-layout`},[br(iM,{prefixCls:t,presets:i.value,onClick:e=>{Y(e,null),W(!1,m.value)},onHover:e=>{ae(e)}},null),br("div",null,[br("div",{class:`${t}-panels`},[e]),(n||o)&&br("div",{class:`${t}-footer`},[n,o])])]);return Q&&(l=Q(l)),br("div",{class:`${t}-panel-container`,style:{marginLeft:`${z.value}px`},ref:s,onMousedown:e=>{e.preventDefault()}},[l])}()]);let se,ce;H&&(se=br("span",{class:`${t}-suffix`},[H])),L&&(TT(O.value,0)&&!y.value[0]||TT(O.value,1)&&!y.value[1])&&(ce=br("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=O.value;y.value[0]||(t=MT(t,null,0)),y.value[1]||(t=MT(t,null,1)),Y(t,null),W(!1,m.value)},class:`${t}-clear`},[F||br("span",{class:`${t}-clear-btn`},null)]));const de={size:nT(D,g.value[0],T)};let pe=0,fe=0;c.value&&u.value&&d.value&&(0===m.value?fe=c.value.offsetWidth:(pe=B.value,fe=u.value.offsetWidth));const ge="rtl"===J?{right:`${pe}px`}:{left:`${pe}px`};return br("div",sl({ref:a,class:xl(t,`${t}-range`,n.class,{[`${t}-disabled`]:y.value[0]&&y.value[1],[`${t}-focused`]:0===m.value?be.value:we.value,[`${t}-rtl`]:"rtl"===J}),style:n.style,onClick:$e,onMouseenter:Z,onMouseleave:U,onMousedown:xe,onMouseup:K},PT(e)),[br("div",{class:xl(`${t}-input`,{[`${t}-input-active`]:0===m.value,[`${t}-input-placeholder`]:!!ue.value}),ref:c},[br("input",sl(sl(sl({id:o,disabled:y.value[0],readonly:X||"function"==typeof g.value[0]||!ye.value,value:ue.value||ee.value,onInput:e=>{te(e.target.value)},autofocus:A,placeholder:TT(I,0)||"",ref:p},ve.value),de),{},{autocomplete:ne}),null)]),br("div",{class:`${t}-range-separator`,ref:d},[N]),br("div",{class:xl(`${t}-input`,{[`${t}-input-active`]:1===m.value,[`${t}-input-placeholder`]:!!he.value}),ref:u},[br("input",sl(sl(sl({disabled:y.value[1],readonly:X||"function"==typeof g.value[0]||!Se.value,value:he.value||oe.value,onInput:e=>{re(e.target.value)},placeholder:TT(I,1)||"",ref:h},Oe.value),de),{},{autocomplete:ne}),null)]),br("div",{class:`${t}-active-bar`,style:cl(cl({},ge),{width:`${fe}px`,position:"absolute"})},null),se,ce,br(rM,{visible:E.value,popupStyle:l,prefixCls:t,dropdownClassName:v,dropdownAlign:w,getPopupContainer:k,transitionName:b,range:!0,direction:J},{default:()=>[br("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>le})])}}}),CM=xM,kM={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:$p.any,required:Boolean},PM=jn({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Zl(kM,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=bt(void 0===e.checked?e.defaultChecked:e.checked),l=bt();bn((()=>e.checked),(()=>{i.value=e.checked})),r({focus(){var e;null===(e=l.value)||void 0===e||e.focus()},blur(){var e;null===(e=l.value)||void 0===e||e.blur()}});const a=bt(),s=t=>{if(e.disabled)return;void 0===e.checked&&(i.value=t.target.checked),t.shiftKey=a.value;const n={target:cl(cl({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(l.value.checked=!!e.checked),o("change",n),a.value=!1},c=e=>{o("click",e),a.value=e.shiftKey};return()=>{const{prefixCls:t,name:o,id:r,type:a,disabled:u,readonly:d,tabindex:p,autofocus:h,value:f,required:g}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=$[t]),e)),{}),C=xl(t,v,{[`${t}-checked`]:i.value,[`${t}-disabled`]:u}),k=cl(cl({name:o,id:r,type:a,readonly:d,disabled:u,tabindex:p,class:`${t}-input`,checked:!!i.value,autofocus:h,value:f},x),{onChange:s,onClick:c,onFocus:b,onBlur:y,onKeydown:O,onKeypress:w,onKeyup:S,required:g});return br("span",{class:C},[br("input",sl({ref:l},k),null),br("span",{class:`${t}-inner`},null)])}}}),TM=Symbol("radioGroupContextKey"),MM=Symbol("radioOptionTypeContextKey"),IM=new Hc("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),EM=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:cl(cl({},Xu(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},AM=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:h,colorTextDisabled:f,paddingXS:g,radioDotDisabledColor:m,lineType:v,radioDotDisabledSize:b,wireframe:y,colorWhite:O}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:cl(cl({},Xu(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${v} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:IM,animationDuration:i,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:cl(cl({},Xu(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${w}`]:{borderColor:o},[`${t}-input:focus-visible + ${w}`]:cl({},Zu(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:y?o:O,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:o,backgroundColor:y?c:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/r})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},DM=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:l,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:p,controlHeightLG:h,controlHeightSM:f,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:O,radioButtonHoverColor:w,radioButtonActiveColor:S,radioSolidCheckedColor:$,colorTextDisabled:x,colorBgContainerDisabled:C,radioDisabledButtonCheckedColor:k,radioDisabledButtonCheckedBg:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*r+"px",background:d,border:`${r}px ${i} ${l}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${l}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:h,fontSize:p,lineHeight:h-2*r+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:f,paddingInline:g-r,paddingBlock:0,lineHeight:f-2*r+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":cl({},Zu(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:O,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:$,background:y,borderColor:y,"&:hover":{color:$,background:w,borderColor:w},"&:active":{color:$,background:S,borderColor:S}},"&-disabled":{color:x,backgroundColor:C,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:C,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:P,borderColor:l,boxShadow:"none"}}}},RM=Ku("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:l,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:p,controlOutlineWidth:h,colorTextLightSolid:f,wireframe:g}=e,m=`0 0 0 ${h}px ${a}`,v=l-8,b=Ju(e,{radioFocusShadow:m,radioButtonFocusShadow:m,radioSize:l,radioDotSize:g?v:l-2*(4+n),radioDotDisabledSize:v,radioCheckedColor:d,radioDotDisabledColor:r,radioSolidCheckedColor:f,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:u,radioButtonHoverColor:s,radioButtonActiveColor:c,radioButtonPaddingHorizontal:t-n,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[EM(b),AM(b),DM(b)]})),zM=()=>({prefixCls:String,checked:Sa(),disabled:Sa(),isGroup:Sa(),value:$p.any,name:String,id:String,autofocus:Sa(),onChange:$a(),onFocus:$a(),onBlur:$a(),onClick:$a(),"onUpdate:checked":$a(),"onUpdate:value":$a()}),BM=jn({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:zM(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:i}=t;const l=gy(),a=vy.useInject(),s=Mo(MM,void 0),c=Mo(TM,void 0),u=Wa(),d=Lr((()=>{var e;return null!==(e=g.value)&&void 0!==e?e:u.value})),p=bt(),{prefixCls:h,direction:f,disabled:g}=$d("radio",e),m=Lr((()=>"button"===(null==c?void 0:c.optionType.value)||"button"===s?`${h.value}-button`:h.value)),v=Wa(),[b,y]=RM(h);o({focus:()=>{p.value.focus()},blur:()=>{p.value.blur()}});const O=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),l.onFieldChange()},w=e=>{n("change",e),c&&c.onChange&&c.onChange(e)};return()=>{var t;const n=c,{prefixCls:o,id:s=l.id.value}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.value),(e=>{d.value=e,p.value=!1})),(e=>{To(TM,e)})({onChange:t=>{const n=d.value,{value:r}=t.target;"value"in e||(d.value=r),p.value||r===n||(p.value=!0,o("update:value",r),o("change",t),i.onFieldChange()),Ft((()=>{p.value=!1}))},value:d,disabled:Lr((()=>e.disabled)),name:Lr((()=>e.name)),optionType:Lr((()=>e.optionType))}),()=>{var t;const{options:o,buttonStyle:p,id:h=i.id.value}=e,f=`${l.value}-group`,g=xl(f,`${f}-${p}`,{[`${f}-${s.value}`]:s.value,[`${f}-rtl`]:"rtl"===a.value},r.class,u.value);let m=null;return m=o&&o.length>0?o.map((t=>{if("string"==typeof t||"number"==typeof t)return br(BM,{key:t,prefixCls:l.value,disabled:e.disabled,value:t,checked:d.value===t},{default:()=>[t]});const{value:n,disabled:o,label:r}=t;return br(BM,{key:`radio-group-value-options-${n}`,prefixCls:l.value,disabled:o||e.disabled,value:n,checked:d.value===n},{default:()=>[r]})})):null===(t=n.default)||void 0===t?void 0:t.call(n),c(br("div",sl(sl({},r),{},{class:g,id:h}),[m]))}}}),NM=jn({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:zM(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=$d("radio",e);return(e=>{To(MM,e)})("button"),()=>{var t;return br(BM,sl(sl(sl({},o),e),{},{prefixCls:r.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function _M(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:i,value:l,onChange:a,divRef:s}=e,c=o.getYear(l||o.getNow());let u=c-10,d=u+20;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const p=r&&"年"===r.year?"年":"",h=[];for(let f=u;f{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),l=o.getMonth(t);i===o.getYear(r)&&l>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&ls.value},null)}function QM(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:i,locale:l,onChange:a,divRef:s}=e,c=i.getMonth(r||i.getNow());let u=0,d=11;if(o){const[e,t]=o,n=i.getYear(r);i.getYear(t)===n&&(d=i.getMonth(t)),i.getYear(e)===n&&(u=i.getMonth(e))}const p=l.shortMonths||i.locale.getShortMonths(l.locale),h=[];for(let f=u;f<=d;f+=1)h.push({label:p[f],value:f});return br(qS,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:h,onChange:e=>{a(i.setMonth(r,e))},getPopupContainer:()=>s.value},null)}function LM(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:i}=e;return br(jM,{onChange:e=>{let{target:{value:t}}=e;i(t)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[br(NM,{value:"month"},{default:()=>[n.month]}),br(NM,{value:"year"},{default:()=>[n.year]})]})}BM.Group=jM,BM.Button=NM,BM.install=function(e){return e.component(BM.name,BM),e.component(BM.Group.name,BM.Group),e.component(BM.Button.name,BM.Button),e},_M.inheritAttrs=!1,QM.inheritAttrs=!1,LM.inheritAttrs=!1;const HM=jn({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=bt(null),r=vy.useInject();return vy.useProvide(r,{isFormItemInput:!1}),()=>{const t=cl(cl({},e),n),{prefixCls:r,fullscreen:i,mode:l,onChange:a,onModeChange:s}=t,c=cl(cl({},t),{fullscreen:i,divRef:o});return br("div",{class:`${r}-header`,ref:o},[br(_M,sl(sl({},c),{},{onChange:e=>{a(e,"year")}}),null),"month"===l&&br(QM,sl(sl({},c),{},{onChange:e=>{a(e,"month")}}),null),br(LM,sl(sl({},c),{},{onModeChange:s}),null)])}}}),FM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),WM=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),XM=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),YM=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":cl({},WM(Ju(e,{inputBorderHoverColor:e.colorBorder})))}),VM=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},ZM=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),UM=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:l,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":cl({},XM(Ju(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":cl({},XM(Ju(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},KM=e=>cl(cl({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},FM(e.colorTextPlaceholder)),{"&:hover":cl({},WM(e)),"&:focus, &-focused":cl({},XM(e)),"&-disabled, &[disabled]":cl({},YM(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":cl({},VM(e)),"&-sm":cl({},ZM(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),GM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:cl({},VM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:cl({},ZM(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:cl(cl({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},qM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:cl(cl(cl(cl({},Xu(e)),KM(e)),UM(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},JM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},eI=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:l,iconCls:a}=e;return{[`${t}-affix-wrapper`]:cl(cl(cl(cl(cl({},KM(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:cl(cl({},WM(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),JM(e)),{[`${a}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}}),UM(e,`${t}-affix-wrapper`))}},tI=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${t}-group`]:cl(cl(cl({},Xu(e)),GM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},nI=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function oI(e){return Ju(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const rI=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},iI=Ku("Input",(e=>{const t=oI(e);return[qM(t),rI(t),eI(t),tI(t),nI(t),QS(t)]})),lI=(e,t,n,o)=>{const{lineHeight:r}=e,i=Math.floor(n*r)+2,l=Math.max((t-i)/2,0);return{padding:`${l}px ${o}px ${Math.max(t-i-l,0)}px`}},aI=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:i,borderRadiusSM:l,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:p,colorTextLightSolid:h,controlHeightSM:f,pickerDateHoverRangeBorderColor:g,pickerCellBorderGap:m,pickerBasicCellHoverWithRangeColor:v,pickerPanelCellWidth:b,colorTextDisabled:y,colorBgContainerDisabled:O}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:l,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view),\n &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:l,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:p}},[`&-in-view${n}-selected ${o},\n &-in-view${n}-range-start ${o},\n &-in-view${n}-range-end ${o}`]:{color:h,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),\n &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:p}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-start${n}-range-start-single,\n &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,\n &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,\n &-in-view${n}-range-hover-end${n}-range-end-single,\n &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:f,borderTop:`${c}px dashed ${g}`,borderBottom:`${c}px dashed ${g}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${n}-in-range${n}-range-hover::before,\n &-in-view${n}-range-start${n}-range-hover::before,\n &-in-view${n}-range-end${n}-range-hover::before,\n &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,\n &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-start::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:v},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after,\n tr > &-in-view${n}-range-hover-end:first-child::after,\n &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,\n &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,\n &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(b-r)/2,borderInlineStart:`${c}px dashed ${g}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after,\n tr > &-in-view${n}-range-hover-start:last-child::after,\n &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,\n &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,\n &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(b-r)/2,borderInlineEnd:`${c}px dashed ${g}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:y,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:O}},[`&-disabled${n}-today ${o}::before`]:{borderColor:y}}},sI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:i,paddingSM:l,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:p,colorPrimary:h,colorTextHeading:f,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:v,pickerTextHeight:b,motionDurationMid:y,colorIconHover:O,fontWeightStrong:w,pickerPanelCellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:x,colorText:C,fontSize:k,pickerBasicCellHoverWithRangeColor:P,motionDurationSlow:T,pickerPanelWithoutTimeCellHeight:M,pickerQuarterPanelContentHeight:I,colorLink:E,colorLinkActive:A,colorLinkHover:D,pickerDateHoverRangeBorderColor:R,borderRadiusSM:z,colorTextLightSolid:B,borderRadius:j,controlItemBgHover:N,pickerTimePanelColumnHeight:_,pickerTimePanelColumnWidth:Q,pickerTimePanelCellHeight:L,controlItemBgActive:H,marginXXS:F}=e,W=7*i+2*l+4,X=(W-2*a)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${g}`,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${a}px`,color:f,borderBottom:`${u}px ${d} ${g}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:`${b}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:k,"&:hover":{color:O}},"&-view":{flex:"auto",fontWeight:w,lineHeight:`${b}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:S+2*$,color:C,verticalAlign:"middle"}},"&-cell":cl({padding:`${$}px 0`,color:x,cursor:"pointer","&-in-view":{color:C}},aI(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n},\n &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:P,transition:`all ${T}`,content:'""'}},[`&-date-panel\n ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start\n ${n}::after`]:{insetInlineEnd:-(i-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:4*M},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${g}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:b-2*u+"px",textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:b-2*u+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${g}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:E,"&:hover":{color:D},"&:active":{color:A},[`&${t}-today-btn-disabled`]:{color:x,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:X,borderInlineStart:`${u}px dashed ${R}`,borderStartStartRadius:z,borderBottomStartRadius:z,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:X,borderInlineEnd:`${u}px dashed ${R}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:z,borderBottomEndRadius:z}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:X,borderInlineEnd:`${u}px dashed ${R}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:X,borderInlineStart:`${u}px dashed ${R}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n},\n &-selected ${n},\n ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:z,borderEndStartRadius:z},"&:last-child":{borderStartEndRadius:z,borderEndEndRadius:z}},"&:hover td":{background:N},"&-selected td,\n &-selected:hover td":{background:h,[`&${t}-cell-week`]:{color:new mu(B).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:B},[n]:{color:B}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-content`]:{width:7*i,th:{width:i}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${T}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:_},"&-column":{flex:"1 0 auto",width:Q,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:_-L,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${g}`},"&-active":{background:new mu(H).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:Q-2*F,height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Q-L)/2,color:C,lineHeight:`${L}px`,borderRadius:z,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:x,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:_-L+2*s}}}},cI=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:i,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":cl({},XM(Ju(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":cl({},XM(Ju(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${t}-active-bar`]:{background:i}}}}},uI=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:i,inputPaddingHorizontal:l,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:p,colorBgContainerDisabled:h,colorTextDisabled:f,colorTextPlaceholder:g,controlHeightLG:m,fontSizeLG:v,controlHeightSM:b,inputPaddingHorizontalSM:y,paddingXS:O,marginXS:w,colorTextDescription:S,lineWidthBold:$,lineHeight:x,colorPrimary:C,motionDurationSlow:k,zIndexPopup:P,paddingXXS:T,paddingSM:M,pickerTextHeight:I,controlItemBgActive:E,colorPrimaryBorder:A,sizePopupArrow:D,borderRadiusXS:R,borderRadiusOuter:z,colorBgElevated:B,borderRadiusLG:j,boxShadowSecondary:N,borderRadiusSM:_,colorSplit:Q,controlItemBgHover:L,presetsWidth:H,presetsMaxWidth:F}=e;return[{[t]:cl(cl(cl({},Xu(e)),lI(e,r,i,l)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${p}, box-shadow ${p}`,"&:hover, &-focused":cl({},WM(e)),"&-focused":cl({},XM(e)),[`&${t}-disabled`]:{background:h,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:f}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":cl(cl({},KM(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:g}}},"&-large":cl(cl({},lI(e,m,v,l)),{[`${t}-input > input`]:{fontSize:v}}),"&-small":cl({},lI(e,b,i,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:O/2,color:f,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${p}, color ${p}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:f,fontSize:v,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:$,marginInlineStart:l,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${O}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":cl(cl(cl({},Xu(e)),sI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:sS},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:lS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:cS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:aS},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-ranges`]:{marginBottom:0,padding:`${T}px ${M}px`,overflow:"hidden",lineHeight:I-2*s-O/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:C,background:E,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:cl({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*l,transition:`left ${k} ease-out`},Hu(D,R,z,B,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:B,borderRadius:j,boxShadow:N,transition:`margin ${k}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:O,borderInlineEnd:`${s}px ${c} ${Q}`,li:cl(cl({},Wu),{borderRadius:_,paddingInline:O,paddingBlock:(b-Math.round(i*x))/2,cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:w},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:2*D/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},gS(e,"slide-up"),gS(e,"slide-down"),iS(e,"move-up"),iS(e,"move-down")]},dI=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,colorPrimary:r,paddingXXS:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:1.5*o,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new mu(r).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new mu(r).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:1.65*n,pickerYearMonthCellWidth:1.5*n,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:1.4*n,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:1.4*n,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},pI=Ku("DatePicker",(e=>{const t=Ju(oI(e),dI(e));return[uI(t),cI(t),QS(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),hI=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:i}=e;return{[t]:cl(cl(cl({},sI(e)),Xu(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},fI=Ku("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=Ju(oI(e),dI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:.75*e.controlHeightSM,dateContentHeight:3*(e.fontSizeSM*e.lineHeightSM+e.marginXS)+2*e.lineWidth});return[hI(n)]}),{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256}),gI=ya(function(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,o){return t(n,o)&&e.getMonth(n)===e.getMonth(o)}function o(t,o){return n(t,o)&&e.getDate(t)===e.getDate(o)}const r=jn({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(r,i){let{emit:l,slots:a,attrs:s}=i;const c=r,{prefixCls:u,direction:d}=$d("picker",c),[p,h]=fI(u),f=Lr((()=>`${u.value}-calendar`)),g=t=>c.valueFormat?e.toString(t,c.valueFormat):t,m=Lr((()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value)),v=Lr((()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue)),[b,y]=Lv((()=>m.value||e.getNow()),{defaultValue:v.value,value:m}),[O,w]=Lv("month",{value:Tt(c,"mode")}),S=Lr((()=>"year"===O.value?"month":"date")),$=Lr((()=>t=>{var n;return!!c.validRange&&(e.isAfter(c.validRange[0],t)||e.isAfter(t,c.validRange[1]))||!!(null===(n=c.disabledDate)||void 0===n?void 0:n.call(c,t))})),x=(e,t)=>{l("panelChange",g(e),t)},C=e=>{w(e),x(b.value,e)},k=(e,r)=>{(e=>{if(y(e),!o(e,b.value)){("date"===S.value&&!n(e,b.value)||"month"===S.value&&!t(e,b.value))&&x(e,O.value);const o=g(e);l("update:value",o),l("change",o)}})(e),l("select",g(e),{source:r})},P=Lr((()=>{const{locale:e}=c,t=cl(cl({},Za),e);return t.lang=cl(cl({},t.lang),(e||{}).lang),t})),[T]=qa("Calendar",P);return()=>{const t=e.getNow(),{dateFullCellRender:r=(null==a?void 0:a.dateFullCellRender),dateCellRender:i=(null==a?void 0:a.dateCellRender),monthFullCellRender:l=(null==a?void 0:a.monthFullCellRender),monthCellRender:g=(null==a?void 0:a.monthCellRender),headerRender:m=(null==a?void 0:a.headerRender),fullscreen:v=!0,validRange:y}=c;return p(br("div",sl(sl({},s),{},{class:xl(f.value,{[`${f.value}-full`]:v,[`${f.value}-mini`]:!v,[`${f.value}-rtl`]:"rtl"===d.value},s.class,h.value)}),[m?m({value:b.value,type:O.value,onChange:e=>{k(e,"customize")},onTypeChange:C}):br(HM,{prefixCls:f.value,value:b.value,generateConfig:e,mode:O.value,fullscreen:v,locale:T.value.lang,validRange:y,onChange:k,onModeChange:C},null),br(nM,{value:b.value,prefixCls:u.value,locale:T.value.lang,generateConfig:e,dateRender:n=>{let{current:l}=n;return r?r({current:l}):br("div",{class:xl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:o(t,l)})},[br("div",{class:`${f.value}-date-value`},[String(e.getDate(l)).padStart(2,"0")]),br("div",{class:`${f.value}-date-content`},[i&&i({current:l})])])},monthCellRender:o=>((o,r)=>{let{current:i}=o;if(l)return l({current:i});const a=r.shortMonths||e.locale.getShortMonths(r.locale);return br("div",{class:xl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:n(t,i)})},[br("div",{class:`${f.value}-date-value`},[a[e.getMonth(i)]]),br("div",{class:`${f.value}-date-content`},[g&&g({current:i})])])})(o,T.value.lang),onSelect:e=>{k(e,S.value)},mode:S.value,picker:S.value,disabledDate:$.value,hideHeader:!0},null)]))}}});return r.install=function(e){return e.component(r.name,r),e},r}(_P));function mI(e){const t=yt([]),n=yt("function"==typeof e?e():e),o=function(e){const t=yt(),n=yt(!1);return Kn((()=>{n.value=!0,ma.cancel(t.value)})),function(){for(var o=arguments.length,r=new Array(o),i=0;i{e(...r)})))}}((()=>{let e=n.value;t.value.forEach((t=>{e=t(e)})),t.value=[],n.value=e}));return[n,function(e){t.value.push(e),o()}]}const vI=jn({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=bt();function i(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}n({domRef:r});const l=Lr((()=>{var t;return e.editable&&!1!==e.closable&&!(null===(t=e.tab)||void 0===t?void 0:t.disabled)}));return()=>{var t;const{prefixCls:n,id:a,active:s,tab:{key:c,tab:u,disabled:d,closeIcon:p},renderWrapper:h,removeAriaLabel:f,editable:g,onFocus:m}=e,v=`${n}-tab`,b=br("div",{key:c,ref:r,class:xl(v,{[`${v}-with-remove`]:l.value,[`${v}-active`]:s,[`${v}-disabled`]:d}),style:o.style,onClick:i},[br("div",{role:"tab","aria-selected":s,id:a&&`${a}-tab-${c}`,class:`${v}-btn`,"aria-controls":a&&`${a}-panel-${c}`,"aria-disabled":d,tabindex:d?null:0,onClick:e=>{e.stopPropagation(),i(e)},onKeydown:e=>{[Im.SPACE,Im.ENTER].includes(e.which)&&(e.preventDefault(),i(e))},onFocus:m},["function"==typeof u?u():u]),l.value&&br("button",{type:"button","aria-label":f||"remove",tabindex:0,class:`${v}-remove`,onClick:t=>{t.stopPropagation(),function(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}(t)}},[(null==p?void 0:p())||(null===(t=g.removeIcon)||void 0===t?void 0:t.call(g))||"×"])]);return h?h(b):b}}}),bI={width:0,height:0,left:0,top:0},yI=jn({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:o}=t;const r=bt();return n({domRef:r}),()=>{const{prefixCls:t,editable:n,locale:i}=e;return n&&!1!==n.showAdd?br("button",{ref:r,type:"button",class:`${t}-nav-add`,style:o.style,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),OI=jn({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:{prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:$p.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:$a()},emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,i]=Hv(!1),[l,a]=Hv(null),s=t=>{const n=e.tabs.filter((e=>!e.disabled));let o=n.findIndex((e=>e.key===l.value))||0;const r=n.length;for(let e=0;e{const{which:n}=t;if(r.value)switch(n){case Im.UP:s(-1),t.preventDefault();break;case Im.DOWN:s(1),t.preventDefault();break;case Im.ESC:i(!1);break;case Im.SPACE:case Im.ENTER:null!==l.value&&e.onTabClick(l.value,t)}else[Im.DOWN,Im.SPACE,Im.ENTER].includes(n)&&(i(!0),t.preventDefault())},u=Lr((()=>`${e.id}-more-popup`)),d=Lr((()=>null!==l.value?`${u.value}-${l.value}`:null));return Vn((()=>{bn(l,(()=>{const e=document.getElementById(d.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),bn(r,(()=>{r.value||a(null)})),dk({}),()=>{var t;const{prefixCls:a,id:s,tabs:p,locale:h,mobile:f,moreIcon:g=(null===(t=o.moreIcon)||void 0===t?void 0:t.call(o))||br(GC,null,null),moreTransitionName:m,editable:v,tabBarGutter:b,rtl:y,onTabClick:O,popupClassName:w}=e;if(!p.length)return null;const S=`${a}-dropdown`,$=null==h?void 0:h.dropdownAriaLabel,x={[y?"marginRight":"marginLeft"]:b};p.length||(x.visibility="hidden",x.order=1);const C=xl({[`${S}-rtl`]:y,[`${w}`]:!0}),k=f?null:br(Jx,{prefixCls:S,trigger:["hover"],visible:r.value,transitionName:m,onVisibleChange:i,overlayClassName:C,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>br(uP,{onClick:e=>{let{key:t,domEvent:n}=e;O(t,n),i(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":void 0!==$?$:"expanded dropdown"},{default:()=>[p.map((t=>{var n,o;const r=v&&!1!==t.closable&&!t.disabled;return br(Bk,{key:t.key,id:`${u.value}-${t.key}`,role:"option","aria-controls":s&&`${s}-panel-${t.key}`,disabled:t.disabled},{default:()=>[br("span",null,["function"==typeof t.tab?t.tab():t.tab]),r&&br("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${S}-menu-item-remove`,onClick:n=>{var o,r;n.stopPropagation(),o=n,r=t.key,o.preventDefault(),o.stopPropagation(),e.editable.onEdit("remove",{key:r,event:o})}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(o=v.removeIcon)||void 0===o?void 0:o.call(v))||"×"])]})}))]}),default:()=>br("button",{type:"button",class:`${a}-nav-more`,style:x,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${s}-more`,"aria-expanded":r.value,onKeydown:c},[g])});return br("div",{class:xl(`${a}-nav-operations`,n.class),style:n.style},[k,br(yI,{prefixCls:a,locale:h,editable:v},null)])}}}),wI=Symbol("tabsContextKey"),SI=()=>Mo(wI,{tabs:bt([]),prefixCls:bt()}),$I=Math.pow(.995,20);function xI(e,t){const n=bt(e);return[n,function(e){const o="function"==typeof e?e(n.value):e;o!==n.value&&t(o,n.value),n.value=o}]}const CI=()=>{const e=bt(new Map);return Zn((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]},kI={width:0,height:0,left:0,top:0,right:0},PI=jn({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:wa(),editable:wa(),moreIcon:$p.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:wa(),popupClassName:String,getPopupContainer:$a(),onTabClick:{type:Function},onTabScroll:{type:Function}},slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:i}=SI(),l=yt(),a=yt(),s=yt(),c=yt(),[u,d]=CI(),p=Lr((()=>"top"===e.tabPosition||"bottom"===e.tabPosition)),[h,f]=xI(0,((t,n)=>{p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),[g,m]=xI(0,((t,n)=>{!p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),[v,b]=Hv(0),[y,O]=Hv(0),[w,S]=Hv(null),[$,x]=Hv(null),[C,k]=Hv(0),[P,T]=Hv(0),[M,I]=mI(new Map),E=function(e,t){const n=bt(new Map);return mn((()=>{var o,r;const i=new Map,l=e.value,a=t.value.get(null===(o=l[0])||void 0===o?void 0:o.key)||bI,s=a.left+a.width;for(let e=0;e`${i.value}-nav-operations-hidden`)),D=yt(0),R=yt(0);mn((()=>{p.value?e.rtl?(D.value=0,R.value=Math.max(0,v.value-w.value)):(D.value=Math.min(0,w.value-v.value),R.value=0):(D.value=Math.min(0,$.value-y.value),R.value=0)}));const z=e=>eR.value?R.value:e,B=yt(),[j,N]=Hv(),_=()=>{N(Date.now())},Q=()=>{clearTimeout(B.value)},L=(e,t)=>{e((e=>z(e+t)))};!function(e,t){const[n,o]=Hv(),[r,i]=Hv(0),[l,a]=Hv(0),[s,c]=Hv(),u=bt(),d=bt(),p=bt({onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),clearInterval(u.value)},onTouchMove:function(e){if(!n.value)return;e.preventDefault();const{screenX:l,screenY:s}=e.touches[0],u=l-n.value.x,d=s-n.value.y;t(u,d),o({x:l,y:s});const p=Date.now();a(p-r.value),i(p),c({x:u,y:d})},onTouchEnd:function(){if(!n.value)return;const e=s.value;if(o(null),c(null),e){const n=e.x/l.value,o=e.y/l.value,r=Math.abs(n),i=Math.abs(o);if(Math.max(r,i)<.1)return;let a=n,s=o;u.value=setInterval((()=>{Math.abs(a)<.01&&Math.abs(s)<.01?clearInterval(u.value):(a*=$I,s*=$I,t(20*a,20*s))}),20)}},onWheel:function(e){const{deltaX:n,deltaY:o}=e;let r=0;const i=Math.abs(n),l=Math.abs(o);i===l?r="x"===d.value?n:o:i>l?(r=n,d.value="x"):(r=o,d.value="y"),t(-r,-r)&&e.preventDefault()}});function h(e){p.value.onTouchStart(e)}function f(e){p.value.onTouchMove(e)}function g(e){p.value.onTouchEnd(e)}function m(e){p.value.onWheel(e)}Vn((()=>{var t,n;document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",g,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",h,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",m,{passive:!1})})),Kn((()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",g)}))}(l,((e,t)=>{if(p.value){if(w.value>=v.value)return!1;L(f,e)}else{if($.value>=y.value)return!1;L(m,t)}return Q(),_(),!0})),bn(j,(()=>{Q(),j.value&&(B.value=setTimeout((()=>{N(0)}),100))}));const H=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=E.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(p.value){let t=h.value;e.rtl?n.righth.value+w.value&&(t=n.right+n.width-w.value):n.left<-h.value?t=-n.left:n.left+n.width>-h.value+w.value&&(t=-(n.left+n.width-w.value)),m(0),f(z(t))}else{let e=g.value;n.top<-g.value?e=-n.top:n.top+n.height>-g.value+$.value&&(e=-(n.top+n.height-$.value)),f(0),m(z(e))}},F=yt(0),W=yt(0);mn((()=>{let t,n,o,i,l,a;const s=E.value;["top","bottom"].includes(e.tabPosition)?(t="width",i=w.value,l=v.value,a=C.value,n=e.rtl?"right":"left",o=Math.abs(h.value)):(t="height",i=$.value,l=v.value,a=P.value,n="top",o=-g.value);let c=i;l+a>i&&lo+c){p=e-1;break}}let f=0;for(let e=d-1;e>=0;e-=1)if((s.get(u[e].key)||kI)[n]{var e,t,n,o,i;const s=(null===(e=l.value)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=l.value)||void 0===t?void 0:t.offsetHeight)||0,p=(null===(n=c.value)||void 0===n?void 0:n.$el)||{},h=p.offsetWidth||0,f=p.offsetHeight||0;S(s),x(u),k(h),T(f);const g=((null===(o=a.value)||void 0===o?void 0:o.offsetWidth)||0)-h,m=((null===(i=a.value)||void 0===i?void 0:i.offsetHeight)||0)-f;b(g),O(m),I((()=>{const e=new Map;return r.value.forEach((t=>{let{key:n}=t;const o=d.value.get(n),r=(null==o?void 0:o.$el)||o;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))},Y=Lr((()=>[...r.value.slice(0,F.value),...r.value.slice(W.value+1)])),[V,Z]=Hv(),U=Lr((()=>E.value.get(e.activeKey))),K=yt(),G=()=>{ma.cancel(K.value)};bn([U,p,()=>e.rtl],(()=>{const t={};U.value&&(p.value?(e.rtl?t.right=Sl(U.value.right):t.left=Sl(U.value.left),t.width=Sl(U.value.width)):(t.top=Sl(U.value.top),t.height=Sl(U.value.height))),G(),K.value=ma((()=>{Z(t)}))})),bn([()=>e.activeKey,U,E,p],(()=>{H()}),{flush:"post"}),bn([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],(()=>{X()}),{flush:"post"});const q=e=>{let{position:t,prefixCls:n,extra:o}=e;if(!o)return null;const r=null==o?void 0:o({position:t});return r?br("div",{class:`${n}-extra-content`},[r]):null};return Kn((()=>{Q(),G()})),()=>{const{id:t,animated:d,activeKey:f,rtl:m,editable:b,locale:O,tabPosition:S,tabBarGutter:x,onTabClick:C}=e,{class:k,style:P}=n,T=i.value,M=!!Y.value.length,I=`${T}-nav-wrap`;let E,D,R,z;p.value?m?(D=h.value>0,E=h.value+w.value{const{key:r}=e;return br(vI,{id:t,prefixCls:T,key:r,tab:e,style:0===n?void 0:B,closable:e.closable,editable:b,active:r===f,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:u(r),onClick:e=>{C(r,e)},onFocus:()=>{H(r),_(),l.value&&(m||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)}));return br("div",{role:"tablist",class:xl(`${T}-nav`,k),style:P,onKeydown:()=>{_()}},[br(q,{position:"left",prefixCls:T,extra:o.leftExtra},null),br(ua,{onResize:X},{default:()=>[br("div",{class:xl(I,{[`${I}-ping-left`]:E,[`${I}-ping-right`]:D,[`${I}-ping-top`]:R,[`${I}-ping-bottom`]:z}),ref:l},[br(ua,{onResize:X},{default:()=>[br("div",{ref:a,class:`${T}-nav-list`,style:{transform:`translate(${h.value}px, ${g.value}px)`,transition:j.value?"none":void 0}},[N,br(yI,{ref:c,prefixCls:T,locale:O,editable:b,style:cl(cl({},0===N.length?void 0:B),{visibility:M?"hidden":null})},null),br("div",{class:xl(`${T}-ink-bar`,{[`${T}-ink-bar-animated`]:d.inkBar}),style:V.value},null)])]})])]}),br(OI,sl(sl({},e),{},{removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:s,prefixCls:T,tabs:Y.value,class:!M&&A.value}),Nw(o,["moreIcon"])),br(q,{position:"right",prefixCls:T,extra:o.rightExtra},null),br(q,{position:"right",prefixCls:T,extra:o.tabBarExtraContent},null)])}}}),TI=jn({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=SI();return()=>{const{id:o,activeKey:r,animated:i,tabPosition:l,rtl:a,destroyInactiveTabPane:s}=e,c=i.tabPane,u=n.value,d=t.value.findIndex((e=>e.key===r));return br("div",{class:`${u}-content-holder`},[br("div",{class:[`${u}-content`,`${u}-content-${l}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map((e=>Yh(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:o,animated:c,active:e.key===r,destroyInactiveTabPane:s})))])])}}}),MI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function II(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[gS(e,"slide-up"),gS(e,"slide-down")]]},zI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},BI=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:cl(cl({},Xu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":cl(cl({},Wu),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},jI=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},NI=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},_I=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:i}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":cl({"&:focus:not(:focus-visible), &:active":{color:n}},Uu(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},QI=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},LI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:i,tabsActiveColor:l,colorSplit:a}=e;return{[t]:cl(cl(cl(cl({},Xu(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:cl({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},Uu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),_I(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},HI=Ku("Tabs",(e=>{const t=e.controlHeightLG,n=Ju(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[NI(n),QI(n),jI(n),BI(n),zI(n),LI(n),RI(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let FI=0;const WI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:$a(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:ka(),animated:Pa([Boolean,Object]),renderTabBar:$a(),tabBarGutter:{type:Number},tabBarStyle:wa(),tabPosition:ka(),destroyInactiveTabPane:Sa(),hideAdd:Boolean,type:ka(),size:ka(),centered:Boolean,onEdit:$a(),onChange:$a(),onTabClick:$a(),onTabScroll:$a(),"onUpdate:activeKey":$a(),locale:wa(),onPrevClick:$a(),onNextClick:$a(),tabBarExtraContent:$p.any}),XI=jn({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:cl(cl({},Zl(WI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ca()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;xp(!(void 0!==e.onPrevClick||void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),xp(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),xp(!(void 0!==o.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:i,size:l,rootPrefixCls:a,getPopupContainer:s}=$d("tabs",e),[c,u]=HI(r),d=Lr((()=>"rtl"===i.value)),p=Lr((()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:cl({inkBar:!0,tabPane:!1},"object"==typeof t?t:{})})),[h,f]=Hv(!1);Vn((()=>{f(pv())}));const[g,m]=Lv((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:Lr((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[v,b]=Hv((()=>e.tabs.findIndex((e=>e.key===g.value))));mn((()=>{var t;let n=e.tabs.findIndex((e=>e.key===g.value));-1===n&&(n=Math.max(0,Math.min(v.value,e.tabs.length-1)),m(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),b(n)}));const[y,O]=Lv(null,{value:Lr((()=>e.id))}),w=Lr((()=>h.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));Vn((()=>{e.id||(O(`rc-tabs-${FI}`),FI+=1)}));const S=(t,n)=>{var o,r;null===(o=e.onTabClick)||void 0===o||o.call(e,t,n);const i=t!==g.value;m(t),i&&(null===(r=e.onChange)||void 0===r||r.call(e,t))};return(e=>{To(wI,e)})({tabs:Lr((()=>e.tabs)),prefixCls:r}),()=>{const{id:t,type:i,tabBarGutter:f,tabBarStyle:m,locale:v,destroyInactiveTabPane:b,renderTabBar:O=o.renderTabBar,onTabScroll:$,hideAdd:x,centered:C}=e,k={id:y.value,activeKey:g.value,animated:p.value,tabPosition:w.value,rtl:d.value,mobile:h.value};let P,T;"editable-card"===i&&(P={onEdit:(t,n)=>{let{key:o,event:r}=n;var i;null===(i=e.onEdit)||void 0===i||i.call(e,"add"===t?r:o,t)},removeIcon:()=>br(qb,null,null),addIcon:o.addIcon?o.addIcon:()=>br(DI,null,null),showAdd:!0!==x});const M=cl(cl({},k),{moreTransitionName:`${a.value}-slide-up`,editable:P,locale:v,tabBarGutter:f,onTabClick:S,onTabScroll:$,style:m,getPopupContainer:s.value,popupClassName:xl(e.popupClassName,u.value)});T=O?O(cl(cl({},M),{DefaultTabBar:PI})):br(PI,M,Nw(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const I=r.value;return c(br("div",sl(sl({},n),{},{id:t,class:xl(I,`${I}-${w.value}`,{[u.value]:!0,[`${I}-${l.value}`]:l.value,[`${I}-card`]:["card","editable-card"].includes(i),[`${I}-editable-card`]:"editable-card"===i,[`${I}-centered`]:C,[`${I}-mobile`]:h.value,[`${I}-editable`]:"editable-card"===i,[`${I}-rtl`]:d.value},n.class)}),[T,br(TI,sl(sl({destroyInactiveTabPane:b},k),{},{animated:p.value}),null)]))}}}),YI=jn({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Zl(WI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=e=>{r("update:activeKey",e),r("change",e)};return()=>{var t;const r=ql(null===(t=o.default)||void 0===t?void 0:t.call(o)).map((e=>{if(sa(e)){const t=cl({},e.props||{});for(const[e,d]of Object.entries(t))delete t[e],t[ml(e)]=d;const n=e.children||{},o=void 0!==e.key?e.key:void 0,{tab:r=n.tab,disabled:i,forceRender:l,closable:a,animated:s,active:c,destroyInactiveTabPane:u}=t;return cl(cl({key:o},t),{node:e,closeIcon:n.closeIcon,tab:r,disabled:""===i||i,forceRender:""===l||l,closable:""===a||a,animated:""===s||s,active:""===c||c,destroyInactiveTabPane:""===u||u})}return null})).filter((e=>e));return br(XI,sl(sl(sl({},xd(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:r}),o)}}}),VI=jn({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:$p.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=bt(e.forceRender);bn([()=>e.active,()=>e.destroyInactiveTabPane],(()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)}),{immediate:!0});const i=Lr((()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var t;const{prefixCls:l,forceRender:a,id:s,active:c,tabKey:u}=e;return br("div",{id:s&&`${s}-panel-${u}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":s&&`${s}-tab-${u}`,"aria-hidden":!c,style:[i.value,n.style],class:[`${l}-tabpane`,c&&`${l}-tabpane-active`,n.class]},[(c||r.value||a)&&(null===(t=o.default)||void 0===t?void 0:t.call(o))])}}});YI.TabPane=VI,YI.install=function(e){return e.component(YI.name,YI),e.component(VI.name,VI),e};const ZI=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:i}=e;return cl(cl({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":cl(cl({display:"inline-block",flex:1},Wu),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},UI=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${r}px 0 0 0 ${n},\n 0 ${r}px 0 0 ${n},\n ${r}px ${r}px 0 0 ${n},\n ${r}px 0 0 0 ${n} inset,\n 0 ${r}px 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},KI=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i}=e;return cl(cl({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:r*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},GI=e=>cl(cl({margin:`-${e.marginXXS}px 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":cl({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Wu),"&-description":{color:e.colorTextDescription}}),qI=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},JI=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eE=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:i,cardPaddingBase:l}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:ZI(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:cl({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:UI(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:KI(e),[`${t}-meta`]:GI(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:qI(e),[`${t}-loading`]:JI(e),[`${t}-rtl`]:{direction:"rtl"}}},tE=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},nE=Ku("Card",(e=>{const t=Ju(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,cardHeadHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[eE(t),tE(t)]})),oE=jn({compatConfig:{MODE:3},name:"SkeletonTitle",props:{prefixCls:String,width:{type:[Number,String]}},setup:e=>()=>{const{prefixCls:t,width:n}=e;return br("h3",{class:t,style:{width:"number"==typeof n?`${n}px`:n}},null)}}),rE=jn({compatConfig:{MODE:3},name:"SkeletonParagraph",props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup:e=>()=>{const{prefixCls:t,rows:n}=e,o=[...Array(n)].map(((t,n)=>{const o=(t=>{const{width:n,rows:o=2}=e;return Array.isArray(n)?n[t]:o-1===t?n:void 0})(n);return br("li",{key:n,style:{width:"number"==typeof o?`${o}px`:o}},null)}));return br("ul",{class:t},[o])}}),iE=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),lE=e=>{const{prefixCls:t,size:n,shape:o}=e,r=xl({[`${t}-lg`]:"large"===n,[`${t}-sm`]:"small"===n}),i=xl({[`${t}-circle`]:"circle"===o,[`${t}-square`]:"square"===o,[`${t}-round`]:"round"===o}),l="number"==typeof n?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return br("span",{class:xl(t,r,i),style:l},null)};lE.displayName="SkeletonElement";const aE=lE,sE=new Hc("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),cE=e=>({height:e,lineHeight:`${e}px`}),uE=e=>cl({width:e},cE(e)),dE=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:sE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),pE=e=>cl({width:5*e,minWidth:5*e},cE(e)),hE=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[`${t}`]:cl({display:"inline-block",verticalAlign:"top",background:n},uE(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:cl({},uE(r)),[`${t}${t}-sm`]:cl({},uE(i))}},fE=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return{[`${o}`]:cl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},pE(t)),[`${o}-lg`]:cl({},pE(r)),[`${o}-sm`]:cl({},pE(i))}},gE=e=>cl({width:e},cE(e)),mE=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:cl(cl({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},gE(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:cl(cl({},gE(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},vE=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},bE=e=>cl({width:2*e,minWidth:2*e},cE(e)),yE=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return cl(cl(cl(cl(cl({[`${n}`]:cl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:2*o,minWidth:2*o},bE(o))},vE(e,o,n)),{[`${n}-lg`]:cl({},bE(r))}),vE(e,r,`${n}-lg`)),{[`${n}-sm`]:cl({},bE(i))}),vE(e,i,`${n}-sm`))},OE=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:l,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:p,marginSM:h,borderRadius:f,skeletonTitleHeight:g,skeletonBlockRadius:m,skeletonParagraphLineHeight:v,controlHeightXS:b,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:cl({display:"inline-block",verticalAlign:"top",background:d},uE(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:cl({},uE(c)),[`${n}-sm`]:cl({},uE(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:h,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:cl(cl(cl(cl({display:"inline-block",width:"auto"},yE(e)),hE(e)),fE(e)),mE(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${l},\n ${a}\n `]:cl({},dE(e))}}},wE=Ku("Skeleton",(e=>{const{componentCls:t}=e,n=Ju(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[OE(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}));function SE(e){return e&&"object"==typeof e?e:{}}const $E=jn({compatConfig:{MODE:3},name:"ASkeleton",props:Zl({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}},{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=$d("skeleton",e),[i,l]=wE(o);return()=>{var t;const{loading:a,avatar:s,title:c,paragraph:u,active:d,round:p}=e,h=o.value;if(a||void 0===e.loading){const e=!!s||""===s,t=!!c||""===c,n=!!u||""===u;let o,a;if(e){const e=cl(cl({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),SE(s));o=br("div",{class:`${h}-header`},[br(aE,e,null)])}if(t||n){let o,r;if(t){const t=cl(cl({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),SE(c));o=br(oE,t,null)}if(n){const n=cl(cl({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),SE(u));r=br(rE,n,null)}a=br("div",{class:`${h}-content`},[o,r])}const f=xl(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:d,[`${h}-rtl`]:"rtl"===r.value,[`${h}-round`]:p,[l.value]:!0});return i(br("div",{class:f},[o,a]))}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),xE=jn({compatConfig:{MODE:3},name:"ASkeletonButton",props:Zl(cl(cl({},iE()),{size:String,block:Boolean}),{size:"default"}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),CE=jn({compatConfig:{MODE:3},name:"ASkeletonInput",props:cl(cl({},xd(iE(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),kE=jn({compatConfig:{MODE:3},name:"ASkeletonImage",props:xd(iE(),["size","shape","active"]),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,o.value)));return()=>n(br("div",{class:r.value},[br("div",{class:`${t.value}-image`},[br("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[br("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",class:`${t.value}-image-path`},null)])])]))}}),PE=jn({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Zl(cl(cl({},iE()),{shape:String}),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=$d("skeleton",e),[n,o]=wE(t),r=Lr((()=>xl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value)));return()=>n(br("div",{class:r.value},[br(aE,sl(sl({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});$E.Button=xE,$E.Avatar=PE,$E.Input=CE,$E.Image=kE,$E.Title=oE,$E.install=function(e){return e.component($E.name,$E),e.component($E.Button.name,xE),e.component($E.Avatar.name,PE),e.component($E.Input.name,CE),e.component($E.Image.name,kE),e.component($E.Title.name,oE),e};const{TabPane:TE}=YI,ME=jn({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:{prefixCls:String,title:$p.any,extra:$p.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:$p.any,tabList:{type:Array},tabBarExtraContent:$p.any,activeTabKey:String,defaultActiveTabKey:String,cover:$p.any,onTabChange:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,size:l}=$d("card",e),[a,s]=nE(r),c=e=>e.map(((t,n)=>pr(t)&&!ia(t)||!pr(t)?br("li",{style:{width:100/e.length+"%"},key:`action-${n}`},[br("span",null,[t])]):null)),u=t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},d=function(){let e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{t&&EO(t.type)&&t.type.__ANT_CARD_GRID&&(e=!0)})),e};return()=>{var t,p,h,f,g,m;const{headStyle:v={},bodyStyle:b={},loading:y,bordered:O=!0,type:w,tabList:S,hoverable:$,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k=aa(null===(t=n.tabBarExtraContent)||void 0===t?void 0:t.call(n)),title:P=aa(null===(p=n.title)||void 0===p?void 0:p.call(n)),extra:T=aa(null===(h=n.extra)||void 0===h?void 0:h.call(n)),actions:M=aa(null===(f=n.actions)||void 0===f?void 0:f.call(n)),cover:I=aa(null===(g=n.cover)||void 0===g?void 0:g.call(n))}=e,E=ql(null===(m=n.default)||void 0===m?void 0:m.call(n)),A=r.value,D={[`${A}`]:!0,[s.value]:!0,[`${A}-loading`]:y,[`${A}-bordered`]:O,[`${A}-hoverable`]:!!$,[`${A}-contain-grid`]:d(E),[`${A}-contain-tabs`]:S&&S.length,[`${A}-${l.value}`]:l.value,[`${A}-type-${w}`]:!!w,[`${A}-rtl`]:"rtl"===i.value},R=br($E,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[E]}),z=void 0!==x,B={size:"large",[z?"activeKey":"defaultActiveKey"]:z?x:C,onChange:u,class:`${A}-head-tabs`};let j;const N=S&&S.length?br(YI,B,{default:()=>[S.map((e=>{const{tab:t,slots:o}=e,r=null==o?void 0:o.tab;xp(!o,"Card","tabList slots is deprecated, Please use `customTab` instead.");let i=void 0!==t?t:n[r]?n[r](e):null;return i=oo(n,"customTab",e,(()=>[i])),br(TE,{tab:i,key:e.key,disabled:e.disabled},null)}))],rightExtra:k?()=>k:null}):null;(P||T||N)&&(j=br("div",{class:`${A}-head`,style:v},[br("div",{class:`${A}-head-wrapper`},[P&&br("div",{class:`${A}-head-title`},[P]),T&&br("div",{class:`${A}-extra`},[T])]),N]));const _=I?br("div",{class:`${A}-cover`},[I]):null,Q=br("div",{class:`${A}-body`,style:b},[y?R:E]),L=M&&M.length?br("ul",{class:`${A}-actions`},[c(M)]):null;return a(br("div",sl(sl({ref:"cardContainerRef"},o),{},{class:[D,o.class]}),[j,_,E&&E.length?Q:null,L]))}}}),IE=ME,EE=jn({compatConfig:{MODE:3},name:"ACardMeta",props:{prefixCls:String,title:{validator:()=>!0},description:{validator:()=>!0},avatar:{validator:()=>!0}},slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("card",e);return()=>{const t={[`${o.value}-meta`]:!0},r=ca(n,e,"avatar"),i=ca(n,e,"title"),l=ca(n,e,"description"),a=r?br("div",{class:`${o.value}-meta-avatar`},[r]):null,s=i?br("div",{class:`${o.value}-meta-title`},[i]):null,c=l?br("div",{class:`${o.value}-meta-description`},[l]):null,u=s||c?br("div",{class:`${o.value}-meta-detail`},[s,c]):null;return br("div",{class:t},[a,u])}}}),AE=jn({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("card",e),r=Lr((()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable})));return()=>{var e;return br("div",{class:r.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});IE.Meta=EE,IE.Grid=AE,IE.install=function(e){return e.component(IE.name,IE),e.component(EE.name,EE),e.component(AE.name,AE),e};const DE=()=>({openAnimation:$p.object,prefixCls:String,header:$p.any,headerClass:String,showArrow:Sa(),isActive:Sa(),destroyInactivePanel:Sa(),disabled:Sa(),accordion:Sa(),forceRender:Sa(),expandIcon:$a(),extra:$p.any,panelKey:Pa(),collapsible:ka(),role:String,onItemClick:$a()}),RE=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:i,collapseHeaderPadding:l,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:p,colorTextDisabled:h,fontSize:f,lineHeight:g,marginSM:m,paddingSM:v,motionDurationSlow:b,fontSizeIcon:y}=e,O=`${s}px ${c} ${u}`;return{[t]:cl(cl({},Xu(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:p,lineHeight:g,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:y,svg:{transition:`transform ${b}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:v}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},zE=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},BE=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},jE=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},NE=Ku("Collapse",(e=>{const t=Ju(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[RE(t),BE(t),jE(t),zE(t),IS(t)]}));function _E(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map((e=>String(e)))}const QE=jn({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Zl({prefixCls:String,activeKey:Pa([Array,Number,String]),defaultActiveKey:Pa([Array,Number,String]),accordion:Sa(),destroyInactivePanel:Sa(),bordered:Sa(),expandIcon:$a(),openAnimation:$p.object,expandIconPosition:ka(),collapsible:ka(),ghost:Sa(),onChange:$a(),"onUpdate:activeKey":$a()},{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Kk("ant-motion-collapse",!1),expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=bt(_E(yx([e.activeKey,e.defaultActiveKey])));bn((()=>e.activeKey),(()=>{i.value=_E(e.activeKey)}),{deep:!0});const{prefixCls:l,direction:a}=$d("collapse",e),[s,c]=NE(l),u=Lr((()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===a.value?"end":"start"})),d=t=>{const{expandIcon:n=o.expandIcon}=e,r=n?n(t):br(sk,{rotate:t.isActive?90:void 0},null);return br("div",{class:[`${l.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(e.collapsible)&&p(t.panelKey)},[sa(Array.isArray(n)?r[0]:r)?Yh(r,{class:`${l.value}-arrow`},!1):r])},p=t=>{let n=i.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];const e=n.indexOf(t);e>-1?n.splice(e,1):n.push(t)}(t=>{void 0===e.activeKey&&(i.value=t);const n=e.accordion?t[0]:t;r("update:activeKey",n),r("change",n)})(n)},h=(t,n)=>{var o,r,a;if(ia(t))return;const s=i.value,{accordion:c,destroyInactivePanel:u,collapsible:h,openAnimation:f}=e,g=String(null!==(o=t.key)&&void 0!==o?o:n),{header:m=(null===(a=null===(r=t.children)||void 0===r?void 0:r.header)||void 0===a?void 0:a.call(r)),headerClass:v,collapsible:b,disabled:y}=t.props||{};let O=!1;O=c?s[0]===g:s.indexOf(g)>-1;let w=null!=b?b:h;return(y||""===y)&&(w="disabled"),Yh(t,{key:g,panelKey:g,header:m,headerClass:v,isActive:O,prefixCls:l.value,destroyInactivePanel:u,openAnimation:f,accordion:c,onItemClick:"disabled"===w?null:p,expandIcon:d,collapsible:w})};return()=>{const{accordion:t,bordered:r,ghost:i}=e,d=xl(l.value,{[`${l.value}-borderless`]:!r,[`${l.value}-icon-position-${u.value}`]:!0,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-ghost`]:!!i,[n.class]:!!n.class},c.value);return s(br("div",sl(sl({class:d},function(e){return Object.keys(e).reduce(((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t)),{})}(n)),{},{style:n.style,role:t?"tablist":null}),[ql(null===(p=o.default)||void 0===p?void 0:p.call(o)).map(h)]));var p}}}),LE=jn({compatConfig:{MODE:3},name:"PanelContent",props:DE(),setup(e,t){let{slots:n}=t;const o=yt(!1);return mn((()=>{(e.isActive||e.forceRender)&&(o.value=!0)})),()=>{var t;if(!o.value)return null;const{prefixCls:r,isActive:i,role:l}=e;return br("div",{class:xl(`${r}-content`,{[`${r}-content-active`]:i,[`${r}-content-inactive`]:!i}),role:l},[br("div",{class:`${r}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),HE=jn({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Zl(DE(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;xp(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=$d("collapse",e),l=()=>{o("itemClick",e.panelKey)},a=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||l()};return()=>{var t,o;const{header:s=(null===(t=n.header)||void 0===t?void 0:t.call(n)),headerClass:c,isActive:u,showArrow:d,destroyInactivePanel:p,accordion:h,forceRender:f,openAnimation:g,expandIcon:m=n.expandIcon,extra:v=(null===(o=n.extra)||void 0===o?void 0:o.call(n)),collapsible:b}=e,y="disabled"===b,O=i.value,w=xl(`${O}-header`,{[c]:c,[`${O}-header-collapsible-only`]:"header"===b,[`${O}-icon-collapsible-only`]:"icon"===b}),S=xl({[`${O}-item`]:!0,[`${O}-item-active`]:u,[`${O}-item-disabled`]:y,[`${O}-no-arrow`]:!d,[`${r.class}`]:!!r.class});let $=br("i",{class:"arrow"},null);d&&"function"==typeof m&&($=m(e));const x=$n(br(LE,{prefixCls:O,isActive:u,forceRender:f,role:h?"tabpanel":null},{default:n.default}),[[gi,u]]),C=cl({appear:!1,css:!1},g);return br("div",sl(sl({},r),{},{class:S}),[br("div",{class:w,onClick:()=>!["header","icon"].includes(b)&&l(),role:h?"tab":"button",tabindex:y?-1:0,"aria-expanded":u,onKeypress:a},[d&&$,br("span",{onClick:()=>"header"===b&&l(),class:`${O}-header-text`},[s]),v&&br("div",{class:`${O}-extra`},[v])]),br(qr,C,{default:()=>[!p||u?x:null]})])}}});QE.Panel=HE,QE.install=function(e){return e.component(QE.name,QE),e.component(HE.name,HE),e};const FE=function(e){let t="";const n=Object.keys(e);return n.forEach((function(o,r){let i=e[o];(function(e){return/[height|width]$/.test(e)})(o=o.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase())&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},UE=e=>{const t=[],n=KE(e),o=GE(e);for(let r=n;re.currentSlide-qE(e),GE=e=>e.currentSlide+JE(e),qE=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,JE=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,eA=e=>e&&e.offsetWidth||0,tA=e=>e&&e.offsetHeight||0,nA=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.startX-e.curX,r=e.startY-e.curY,i=Math.atan2(r,o);return t=Math.round(180*i/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315?"left":t>=135&&t<=225?"right":!0===n?t>=35&&t<=135?"up":"down":"vertical"},oA=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},rA=(e,t)=>{const n={};return t.forEach((t=>n[t]=e[t])),n},iA=(e,t)=>{const n=(e=>{const t=e.infinite?2*e.slideCount:e.slideCount;let n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0;const r=[];for(;nn[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((o=>{if(e.vertical){if(o.offsetTop+tA(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+eA(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;const i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},aA=(e,t)=>t.reduce(((t,n)=>t&&e.hasOwnProperty(n)),!0)?null:void 0,sA=e=>{let t,n;aA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=hA(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const t=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",n=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=cl(cl({},r),{WebkitTransform:t,transform:n,msTransform:o})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},cA=e=>{aA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=sA(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},uA=e=>{if(e.unslick)return 0;aA(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:i,slidesToShow:l,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:p,vertical:h}=e;let f,g,m=0,v=0;if(p||1===e.slideCount)return 0;let b=0;if(o?(b=-dA(e),i%a!=0&&t+a>i&&(b=-(t>i?l-(t-i):i%a)),r&&(b+=parseInt(l/2))):(i%a!=0&&t+a>i&&(b=l-i%a),r&&(b=parseInt(l/2))),m=b*s,v=b*d,f=h?t*d*-1+v:t*s*-1+m,!0===u){let i;const l=n;if(i=t+dA(e),g=l&&l.childNodes[i],f=g?-1*g.offsetLeft:0,!0===r){i=o?t+dA(e):t,g=l&&l.children[i],f=0;for(let e=0;ee.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),pA=e=>e.unslick||!e.infinite?0:e.slideCount,hA=e=>1===e.slideCount?1:dA(e)+e.slideCount+pA(e),fA=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+gA(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o&&t%2==0&&(e+=1),e}return o?0:t-1},mA=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o||t%2!=0||(e+=1),e}return o?t-1:0},vA=()=>!("undefined"==typeof window||!window.document||!window.document.createElement),bA=e=>{let t,n,o,r;r=e.rtl?e.slideCount-1-e.index:e.index;const i=r<0||r>=e.slideCount;let l;return e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount==0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===l}},yA=(e,t)=>e.key+"-"+t,OA=function(e,t){let n;const o=[],r=[],i=[],l=t.length,a=KE(e),s=GE(e);return t.forEach(((t,c)=>{let u;const d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?t:br("div");const p=function(e){const t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"==typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(cl(cl({},e),{index:c})),h=u.props.class||"";let f=bA(cl(cl({},e),{index:c}));if(o.push(Zh(u,{key:"original"+yA(u,c),tabindex:"-1","data-index":c,"aria-hidden":!f["slick-active"],class:xl(f,h),style:cl(cl({outline:"none"},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){const o=l-c;o<=dA(e)&&l!==e.slidesToShow&&(n=-o,n>=a&&(u=t),f=bA(cl(cl({},e),{index:n})),r.push(Zh(u,{key:"precloned"+yA(u,n),class:xl(f,h),tabindex:"-1","data-index":n,"aria-hidden":!f["slick-active"],style:cl(cl({},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}}))),l!==e.slidesToShow&&(n=l+c,n{e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},wA=(e,t)=>{let{attrs:n,slots:o}=t;const r=OA(n,ql(null==o?void 0:o.default())),{onMouseenter:i,onMouseover:l,onMouseleave:a}=n,s={onMouseenter:i,onMouseover:l,onMouseleave:a},c=cl({class:"slick-track",style:n.trackStyle},s);return br("div",c,[r])};wA.inheritAttrs=!1;const SA=wA,$A=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:p,onMouseover:h,onMouseleave:f}=n,g=function(e){let t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t}({slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l}),m={onMouseenter:p,onMouseover:h,onMouseleave:f};let v=[];for(let b=0;b=s&&a<=n:a===s}),p={message:"dots",index:b,slidesToScroll:r,currentSlide:a};v=v.concat(br("li",{key:b,class:d},[Yh(c({i:b}),{onClick:e})]))}return Yh(s({dots:v}),cl({class:d},m))};$A.inheritAttrs=!1;const xA=$A;function CA(){}function kA(e,t,n){n&&n.preventDefault(),t(e,n)}const PA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:i,slideCount:l,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(e){kA({message:"previous"},o,e)};!r&&(0===i||l<=a)&&(s["slick-disabled"]=!0,c=CA);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:i,slideCount:l};let p;return p=n.prevArrow?Yh(n.prevArrow(cl(cl({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):br("button",sl({key:"0",type:"button"},u),[" ",Or("Previous")]),p};PA.inheritAttrs=!1;const TA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:i}=n,l={"slick-arrow":!0,"slick-next":!0};let a=function(e){kA({message:"next"},o,e)};oA(n)||(l["slick-disabled"]=!0,a=CA);const s={key:"1","data-role":"none",class:xl(l),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:i};let u;return u=n.nextArrow?Yh(n.nextArrow(cl(cl({},s),c)),{key:"1",class:xl(l),style:{display:"block"},onClick:a},!1):br("button",sl({key:"1",type:"button"},s),[" ",Or("Next")]),u};function MA(){}TA.inheritAttrs=!1;const IA={name:"InnerSlider",mixins:[pm],inheritAttrs:!1,props:cl({},XE),data(){this.preProps=cl({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return cl(cl(cl({},YE),{currentSlide:this.initialSlide,slideCount:this.children.length}),e)},watch:{autoplay(e,t){!t&&e?this.handleAutoPlay("playing"):e?this.handleAutoPlay("update"):this.pause("paused")},__propsSymbol__(){const e=this.$props,t=cl(cl({listRef:this.list,trackRef:this.track},e),this.$data);let n=!1;for(const o of Object.keys(this.preProps)){if(!e.hasOwnProperty(o)){n=!0;break}if("object"!=typeof e[o]&&"function"!=typeof e[o]&&"symbol"!=typeof e[o]&&e[o]!==this.preProps[o]){n=!0;break}}this.updateState(t,n,(()=>{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.preProps=cl({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=UE(cl(cl({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e))}this.$nextTick((()=>{const e=cl({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,(()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")})),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Yl((()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout((()=>this.onWindowResized()),this.speed))):this.onWindowResized()})),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(e=>{e.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,e.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)}))},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((e=>clearTimeout(e))),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),null===(e=this.ro)||void 0===e||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=UE(cl(cl({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=tA(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=vw((()=>this.resizeWindow(e)),50),this.debouncedResize()},resizeWindow(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!Boolean(this.track))return;const t=cl(cl({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(t,e,(()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=(e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(eA(n)),r=e.trackRef,i=Math.ceil(eA(r));let l;if(e.vertical)l=o;else{let t=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(t*=o/100),l=Math.ceil((o-t)/e.slidesToShow)}const a=n&&tA(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=UE(cl(cl({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const p={slideCount:t,slideWidth:l,listWidth:o,trackWidth:i,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p})(e);e=cl(cl(cl({},e),o),{slideIndex:o.currentSlide});const r=uA(e);e=cl(cl({},e),{left:r});const i=sA(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=i),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let t=0,n=0;const o=[],r=dA(cl(cl(cl({},this.$props),this.$data),{slideCount:e.length})),i=pA(cl(cl(cl({},this.$props),this.$data),{slideCount:e.length}));e.forEach((e=>{var n,r;const i=(null===(r=null===(n=e.props.style)||void 0===n?void 0:n.width)||void 0===r?void 0:r.split("px")[0])||0;o.push(i),t+=i}));for(let e=0;e{const o=()=>++n&&n>=t&&this.onWindowResized();if(e.onclick){const t=e.onclick;e.onclick=()=>{t(),e.parentNode.focus()}}else e.onclick=()=>e.parentNode.focus();e.onload||(this.$props.lazyLoad?e.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(e.onload=o,e.onerror=()=>{o(),this.__emit("lazyLoadError")}))}))},progressiveLazyLoad(){const e=[],t=cl(cl({},this.$props),this.$data);for(let n=this.currentSlide;n=-dA(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{asNavFor:n,currentSlide:o,beforeChange:r,speed:i,afterChange:l}=this.$props,{state:a,nextState:s}=(e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:i,slideCount:l,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:h}=e;if(t&&n)return{};let f,g,m,v=i,b={},y={};const O=r?i:VE(i,0,l-1);if(o){if(!r&&(i<0||i>=l))return{};i<0?v=i+l:i>=l&&(v=i-l),a&&h.indexOf(v)<0&&(h=h.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:h,targetSlide:v},y={animating:!1,targetSlide:v}}else f=v,v<0?(f=v+l,r?l%u!=0&&(f=l-l%u):f=0):!oA(e)&&v>s?v=f=s:c&&v>=l?(v=r?l:l-1,f=r?0:l-1):v>=l&&(f=v-l,r?l%u!=0&&(f=0):f=l-d),!r&&v+d>=l&&(f=l-d),g=uA(cl(cl({},e),{slideIndex:v})),m=uA(cl(cl({},e),{slideIndex:f})),r||(g===m&&(v=f),g=m),a&&(h=h.concat(UE(cl(cl({},e),{currentSlide:v})))),p?(b={animating:!0,currentSlide:f,trackStyle:cA(cl(cl({},e),{left:g})),lazyLoadedList:h,targetSlide:O},y={animating:!1,currentSlide:f,trackStyle:sA(cl(cl({},e),{left:m})),swipeLeft:null,targetSlide:O}):b={currentSlide:f,trackStyle:sA(cl(cl({},e),{left:m})),lazyLoadedList:h,targetSlide:O};return{state:b,nextState:y}})(cl(cl(cl({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!a)return;r&&r(o,a.currentSlide);const c=a.lazyLoadedList.filter((e=>this.lazyLoadedList.indexOf(e)<0));this.$attrs.onLazyLoad&&c.length>0&&this.__emit("lazyLoad",c),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(o),delete this.animationEndCallback),this.setState(a,(()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout((()=>{const{animating:e}=s,t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{this.callbackTimers.push(setTimeout((()=>this.setState({animating:e})),10)),l&&l(a.currentSlide),delete this.animationEndCallback}))}),i))}))},changeSlide(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=((e,t)=>{let n,o,r;const{slidesToScroll:i,slidesToShow:l,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,p=a%i!=0?0:(a-s)%i;if("previous"===t.message)o=0===p?i:l-p,r=s-o,u&&!d&&(n=s-o,r=-1===n?a-1:n),d||(r=c-i);else if("next"===t.message)o=0===p?i:p,r=s+o,u&&!d&&(r=(s+i)%a+p),d||(r=c+i);else if("dots"===t.message)r=t.index*t.slidesToScroll;else if("children"===t.message){if(r=t.index,d){const n=fA(cl(cl({},e),{targetSlide:r}));r>t.currentSlide&&"left"===n?r-=a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":"")(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){window.ontouchmove=e=>{(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=((e,t,n)=>("IMG"===e.target.tagName&&ZE(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}))(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove(e){const t=((e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:i,verticalSwiping:l,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:p,swiping:h,slideCount:f,slidesToScroll:g,infinite:m,touchObject:v,swipeEvent:b,listHeight:y,listWidth:O}=t;if(n)return;if(o)return ZE(e);let w;r&&i&&l&&ZE(e);let S={};const $=uA(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));const x=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!l&&!h&&x>10)return{scrolling:!0};l&&(v.swipeLength=x);let C=(a?-1:1)*(v.curX>v.startX?1:-1);l&&(C=v.curY>v.startY?1:-1);const k=Math.ceil(f/g),P=nA(t.touchObject,l);let T=v.swipeLength;return m||(0===s&&("right"===P||"down"===P)||s+1>=k&&("left"===P||"up"===P)||!oA(t)&&("left"===P||"up"===P))&&(T=v.swipeLength*c,!1===u&&d&&(d(P),S.edgeDragged=!0)),!p&&b&&(b(P),S.swiped=!0),w=r?$+T*(y/O)*C:a?$-T*C:$+T*C,l&&(w=$+T*C),S=cl(cl({},S),{touchObject:v,swipeLeft:w,trackStyle:sA(cl(cl({},t),{left:w}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(S.swiping=!0,ZE(e)),S})(e,cl(cl(cl({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=((e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:i,touchThreshold:l,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:p,currentSlide:h,infinite:f}=t;if(!n)return o&&ZE(e),{};const g=a?s/l:i/l,m=nA(r,a),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){let n,o;ZE(e),d&&d(m);const r=f?h:p;switch(m){case"left":case"up":o=r+lA(t),n=c?iA(t,o):o,v.currentDirection=0;break;case"right":case"down":o=r-lA(t),n=c?iA(t,o):o,v.currentDirection=1;break;default:n=r}v.triggerSlideHandler=n}else{const e=uA(t);v.trackStyle=cA(cl(cl({},t),{left:e}))}return v})(e,cl(cl(cl({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"previous"})),0))},slickNext(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"next"})),0))},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t)),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!oA(cl(cl({},this.$props),this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return br("button",null,[t+1])},appendDots(e){let{dots:t}=e;return br("ul",{style:{display:"block"}},[t])}},render(){const e=xl("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=cl(cl({},this.$props),this.$data);let n=rA(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;let r,i,l;if(n=cl(cl({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:MA,onMouseover:o?this.onTrackOver:MA}),!0===this.dots&&this.slideCount>=this.slidesToShow){let e=rA(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);e.customPaging=this.customPaging,e.appendDots=this.appendDots;const{customPaging:n,appendDots:o}=this.$slots;n&&(e.customPaging=n),o&&(e.appendDots=o);const{pauseOnDotsHover:i}=this.$props;e=cl(cl({},e),{clickHandler:this.changeSlide,onMouseover:i?this.onDotsOver:MA,onMouseleave:i?this.onDotsLeave:MA}),r=br(xA,e,null)}const a=rA(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(i=br(PA,a,null),l=br(TA,a,null));let u=null;this.vertical&&(u={height:"number"==typeof this.listHeight?`${this.listHeight}px`:this.listHeight});let d=null;!1===this.vertical?!0===this.centerMode&&(d={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(d={padding:this.centerPadding+" 0px"});const p=cl(cl({},u),d),h=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:h?this.swipeStart:MA,onMousemove:this.dragging&&h?this.swipeMove:MA,onMouseup:h?this.swipeEnd:MA,onMouseleave:this.dragging&&h?this.swipeEnd:MA,[Ma?"onTouchstartPassive":"onTouchstart"]:h?this.swipeStart:MA,[Ma?"onTouchmovePassive":"onTouchmove"]:this.dragging&&h?this.swipeMove:MA,onTouchend:h?this.touchEnd:MA,onTouchcancel:this.dragging&&h?this.swipeEnd:MA,onKeydown:this.accessibility?this.keyHandler:MA},g={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},g={class:e}),br("div",g,[this.unslick?"":i,br("div",f,[br(SA,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},EA=jn({name:"Slider",mixins:[pm],inheritAttrs:!1,props:cl({},XE),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map((e=>e.breakpoint));e.sort(((e,t)=>e-t)),e.forEach(((t,n)=>{let o;o=WE(0===n?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),vA()&&this.media(o,(()=>{this.setState({breakpoint:t})}))}));const t=WE({minWidth:e.slice(-1)[0]});vA()&&this.media(t,(()=>{this.setState({breakpoint:null})}))}},beforeUnmount(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=e=>{let{matches:n}=e;n&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;null===(e=this.innerSlider)||void 0===e||e.slickPrev()},slickNext(){var e;null===(e=this.innerSlider)||void 0===e||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=this.innerSlider)||void 0===n||n.slickGoTo(e,t)},slickPause(){var e;null===(e=this.innerSlider)||void 0===e||e.pause("paused")},slickPlay(){var e;null===(e=this.innerSlider)||void 0===e||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter((e=>e.breakpoint===this.breakpoint)),t="unslick"===n[0].settings?"unslick":cl(cl({},this.$props),n[0].settings)):t=cl({},this.$props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);let o=Jl(this)||[];o=o.filter((e=>"string"==typeof e?!!e.trim():!!e)),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(t.variableWidth=!1);const r=[];let i=null;for(let a=0;a=o.length));n+=1)l.push(Yh(o[n],{key:100*a+10*r+n,tabindex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}));n.push(br("div",{key:10*a+r},[l]))}t.variableWidth?r.push(br("div",{key:a,style:{width:i}},[n])):r.push(br("div",{key:a},[n]))}if("unslick"===t){const e="regular slider "+(this.className||"");return br("div",{class:e},[o])}r.length<=t.slidesToShow&&(t.unslick=!0);const l=cl(cl(cl({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return br(IA,sl(sl({},l),{},{__propsSymbol__:[]}),this.$slots)}}),AA=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:i}=e,l=1.25*-o,a=i;return{[t]:cl(cl({},Xu(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},DA=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:cl(cl({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":cl(cl({},r),{button:r})})}}}},RA=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},zA=Ku("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Ju(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[AA(o),DA(o),RA(o)]}),{dotWidth:16,dotHeight:3,dotWidthActive:24}),BA=jn({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:{effect:ka(),dots:Sa(!0),vertical:Sa(),autoplay:Sa(),easing:String,beforeChange:$a(),afterChange:$a(),prefixCls:String,accessibility:Sa(),nextArrow:$p.any,prevArrow:$p.any,pauseOnHover:Sa(),adaptiveHeight:Sa(),arrows:Sa(!1),autoplaySpeed:Number,centerMode:Sa(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Sa(!1),fade:Sa(),focusOnSelect:Sa(),infinite:Sa(),initialSlide:Number,lazyLoad:ka(),rtl:Sa(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Sa(),swipeToSlide:Sa(),swipeEvent:$a(),touchMove:Sa(),touchThreshold:Number,variableWidth:Sa(),useCSS:Sa(),slickGoTo:Number,responsive:Array,dotPosition:ka(),verticalSwiping:Sa(!1)},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt();r({goTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=i.value)||void 0===n||n.slickGoTo(e,t)},autoplay:e=>{var t,n;null===(n=null===(t=i.value)||void 0===t?void 0:t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:()=>{var e;null===(e=i.value)||void 0===e||e.slickPrev()},next:()=>{var e;null===(e=i.value)||void 0===e||e.slickNext()},innerSlider:Lr((()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.innerSlider}))}),mn((()=>{Ts(void 0===e.vertical)}));const{prefixCls:l,direction:a}=$d("carousel",e),[s,c]=zA(l),u=Lr((()=>e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom")),d=Lr((()=>"left"===u.value||"right"===u.value)),p=Lr((()=>{const t="slick-dots";return xl({[t]:!0,[`${t}-${u.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})}));return()=>{const{dots:t,arrows:r,draggable:u,effect:h}=e,{class:f,style:g}=o,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const XA=Symbol("TreeContextKey"),YA=jn({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return To(XA,Lr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),VA=()=>Mo(XA,Lr((()=>({})))),ZA=Symbol("KeysStateKey"),UA=()=>Mo(ZA,{expandedKeys:yt([]),selectedKeys:yt([]),loadedKeys:yt([]),loadingKeys:yt([]),checkedKeys:yt([]),halfCheckedKeys:yt([]),expandedKeysSet:Lr((()=>new Set)),selectedKeysSet:Lr((()=>new Set)),loadedKeysSet:Lr((()=>new Set)),loadingKeysSet:Lr((()=>new Set)),checkedKeysSet:Lr((()=>new Set)),halfCheckedKeysSet:Lr((()=>new Set)),flattenNodes:yt([])}),KA=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const i=`${t}-indent-unit`,l=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:$p.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:$p.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:$p.any,switcherIcon:$p.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),eD="open",tD="close",nD=jn({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:GA,isTreeNode:1,setup(e,t){let{attrs:n,slots:o,expose:r}=t;e.data,Object.keys(e.data.slots||{}).map((e=>"`v-slot:"+e+"` "));const i=yt(!1),l=VA(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:p}=UA(),{dragOverNodeKey:h,dropPosition:f,keyEntities:g}=l.value,m=Lr((()=>mD(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:p.value,dragOverNodeKey:h,dropPosition:f,keyEntities:g}))),v=tx((()=>m.value.expanded)),b=tx((()=>m.value.selected)),y=tx((()=>m.value.checked)),O=tx((()=>m.value.loaded)),w=tx((()=>m.value.loading)),S=tx((()=>m.value.halfChecked)),$=tx((()=>m.value.dragOver)),x=tx((()=>m.value.dragOverGapTop)),C=tx((()=>m.value.dragOverGapBottom)),k=tx((()=>m.value.pos)),P=yt(),T=Lr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{children:o}=n[t]||{};return!!(o||[]).length})),M=Lr((()=>{const{isLeaf:t}=e,{loadData:n}=l.value,o=T.value;return!1!==t&&(t||!n&&!o||n&&O.value&&!o)})),I=Lr((()=>M.value?null:v.value?eD:tD)),E=Lr((()=>{const{disabled:t}=e,{disabled:n}=l.value;return!(!n&&!t)})),A=Lr((()=>{const{checkable:t}=e,{checkable:n}=l.value;return!(!n||!1===t)&&n})),D=Lr((()=>{const{selectable:t}=e,{selectable:n}=l.value;return"boolean"==typeof t?t:n})),R=Lr((()=>{const{data:t,active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l}=e;return cl(cl({active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l},t),{dataRef:t,data:t,isLeaf:M.value,checked:y.value,expanded:v.value,loading:w.value,selected:b.value,halfChecked:S.value})})),z=Mr(),B=Lr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{parent:o}=n[t]||{};return cl(cl({},vD(cl({},e,m.value))),{parent:o})})),j=rt({eventData:B,eventKey:Lr((()=>e.eventKey)),selectHandle:P,pos:k,key:z.vnode.key});r(j);const N=e=>{const{onNodeDoubleClick:t}=l.value;t(e,B.value)},_=t=>{if(E.value)return;const{disableCheckbox:n}=e,{onNodeCheck:o}=l.value;if(!A.value||n)return;t.preventDefault();const r=!y.value;o(t,B.value,r)},Q=e=>{const{onNodeClick:t}=l.value;t(e,B.value),D.value?(e=>{if(E.value)return;const{onNodeSelect:t}=l.value;e.preventDefault(),t(e,B.value)})(e):_(e)},L=e=>{const{onNodeMouseEnter:t}=l.value;t(e,B.value)},H=e=>{const{onNodeMouseLeave:t}=l.value;t(e,B.value)},F=e=>{const{onNodeContextMenu:t}=l.value;t(e,B.value)},W=e=>{const{onNodeDragStart:t}=l.value;e.stopPropagation(),i.value=!0,t(e,j);try{e.dataTransfer.setData("text/plain","")}catch(n){}},X=e=>{const{onNodeDragEnter:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,j)},Y=e=>{const{onNodeDragOver:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,j)},V=e=>{const{onNodeDragLeave:t}=l.value;e.stopPropagation(),t(e,j)},Z=e=>{const{onNodeDragEnd:t}=l.value;e.stopPropagation(),i.value=!1,t(e,j)},U=e=>{const{onNodeDrop:t}=l.value;e.preventDefault(),e.stopPropagation(),i.value=!1,t(e,j)},K=e=>{const{onNodeExpand:t}=l.value;w.value||t(e,B.value)},G=()=>{const{draggable:e,prefixCls:t}=l.value;return e&&(null==e?void 0:e.icon)?br("span",{class:`${t}-draggable-icon`},[e.icon]):null},q=()=>{const{loadData:e,onNodeLoad:t}=l.value;w.value||e&&v.value&&!M.value&&(T.value||O.value||t(B.value))};Vn((()=>{q()})),Un((()=>{q()}));const J=()=>{const{prefixCls:t}=l.value,n=(()=>{var t,n,r;const{switcherIcon:i=o.switcherIcon||(null===(t=l.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.switcherIcon])}=e,{switcherIcon:a}=l.value,s=i||a;return"function"==typeof s?s(R.value):s})();if(M.value)return!1!==n?br("span",{class:xl(`${t}-switcher`,`${t}-switcher-noop`)},[n]):null;const r=xl(`${t}-switcher`,`${t}-switcher_${v.value?eD:tD}`);return!1!==n?br("span",{onClick:K,class:r},[n]):null},ee=()=>{var t,n;const{disableCheckbox:o}=e,{prefixCls:r}=l.value,i=E.value;return A.value?br("span",{class:xl(`${r}-checkbox`,y.value&&`${r}-checkbox-checked`,!y.value&&S.value&&`${r}-checkbox-indeterminate`,(i||o)&&`${r}-checkbox-disabled`),onClick:_},[null===(n=(t=l.value).customCheckable)||void 0===n?void 0:n.call(t)]):null},te=()=>{const{prefixCls:e}=l.value;return br("span",{class:xl(`${e}-iconEle`,`${e}-icon__${I.value||"docu"}`,w.value&&`${e}-icon_loading`)},null)},ne=()=>{const{disabled:t,eventKey:n}=e,{draggable:o,dropLevelOffset:r,dropPosition:i,prefixCls:a,indent:s,dropIndicatorRender:c,dragOverNodeKey:u,direction:d}=l.value;return t||!1===o||u!==n?null:c({dropPosition:i,dropLevelOffset:r,indent:s,prefixCls:a,direction:d})},oe=()=>{var t,n,r,a,s,c;const{icon:u=o.icon,data:d}=e,p=o.title||(null===(t=l.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.title])||(null===(a=l.value.slots)||void 0===a?void 0:a.title)||e.title,{prefixCls:h,showIcon:f,icon:g,loadData:m}=l.value,v=E.value,y=`${h}-node-content-wrapper`;let O,S;if(f){const e=u||(null===(s=l.value.slots)||void 0===s?void 0:s[null===(c=null==d?void 0:d.slots)||void 0===c?void 0:c.icon])||g;O=e?br("span",{class:xl(`${h}-iconEle`,`${h}-icon__customize`)},["function"==typeof e?e(R.value):e]):te()}else m&&w.value&&(O=te());S="function"==typeof p?p(R.value):p,S=void 0===S?"---":S;const $=br("span",{class:`${h}-title`},[S]);return br("span",{ref:P,title:"string"==typeof p?p:"",class:xl(`${y}`,`${y}-${I.value||"normal"}`,!v&&(b.value||i.value)&&`${h}-node-selected`),onMouseenter:L,onMouseleave:H,onContextmenu:F,onClick:Q,onDblclick:N},[O,$,ne()])};return()=>{const t=cl(cl({},e),n),{eventKey:o,isLeaf:r,isStart:i,isEnd:a,domRef:s,active:c,data:u,onMousemove:d,selectable:p}=t,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{data:t}=e,{draggable:n}=l.value;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})(),R=!T&&D,z=P===o,j=void 0!==p?{"aria-selected":!!p}:void 0;return br("div",sl(sl({ref:s,class:xl(n.class,`${f}-treenode`,{[`${f}-treenode-disabled`]:T,[`${f}-treenode-switcher-${v.value?"open":"close"}`]:!r,[`${f}-treenode-checkbox-checked`]:y.value,[`${f}-treenode-checkbox-indeterminate`]:S.value,[`${f}-treenode-selected`]:b.value,[`${f}-treenode-loading`]:w.value,[`${f}-treenode-active`]:c,[`${f}-treenode-leaf-last`]:A,[`${f}-treenode-draggable`]:R,dragging:z,"drop-target":k===o,"drop-container":O===o,"drag-over":!T&&$.value,"drag-over-gap-top":!T&&x.value,"drag-over-gap-bottom":!T&&C.value,"filter-node":g&&g(B.value)}),style:n.style,draggable:R,"aria-grabbed":z,onDragstart:R?W:void 0,onDragenter:D?X:void 0,onDragover:D?Y:void 0,onDragleave:D?V:void 0,onDrop:D?U:void 0,onDragend:D?Z:void 0,onMousemove:d},j),M),[br(KA,{prefixCls:f,level:I,isStart:i,isEnd:a},null),G(),J(),ee(),oe()])}}});function oD(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function rD(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function iD(e){return e.split("-")}function lD(e,t){return`${e}-${t}`}function aD(e){if(e.parent){const t=iD(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function sD(e,t,n,o,r,i,l,a,s,c){var u;const{clientX:d,clientY:p}=e,{top:h,height:f}=e.target.getBoundingClientRect(),g=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o;let m=a[n.eventKey];if(pe.key===m.key)),t=l[e<=0?0:e-1].key;m=a[t]}const v=m.key,b=m,y=m.key;let O=0,w=0;if(!s.has(v))for(let C=0;C-1.5?i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1:i({dragNode:S,dropNode:$,dropPosition:0})?O=0:i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1:i({dragNode:S,dropNode:$,dropPosition:1})?O=1:x=!1,{dropPosition:O,dropLevelOffset:w,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:y,dropContainerKey:0===O?null:(null===(u=m.parent)||void 0===u?void 0:u.key)||null,dropAllowed:x}}function cD(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function uD(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function dD(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=t[e];if(!r)return;n.add(e);const{parent:i,node:l}=r;l.disabled||i&&o(i.key)}return(e||[]).forEach((e=>{o(e)})),[...n]}function pD(e,t){return null!=e?e:t}function hD(e){const{title:t,_title:n,key:o,children:r}=e||{},i=t||"title";return{title:i,_title:n||[i],key:o||"key",children:r||"children"}}function fD(e){return function e(){return la(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return null;const l=t.children||{},a=t.key,s={};for(const[e,$]of Object.entries(t.props))s[ml(e)]=$;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=cl(cl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),icon:v=(null===(o=l.icon)||void 0===o?void 0:o.call(l,g)),switcherIcon:b=(null===(r=l.switcherIcon)||void 0===r?void 0:r.call(l,g))}=s,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]?arguments[1]:{};const a=r||(arguments.length>2?arguments[2]:void 0),s={},c={};let u={posEntities:s,keyEntities:c};return t&&(u=t(u)||u),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:i,fieldNames:l}=o,{key:a,children:s}=hD(l),c=r||s;let u;i?"string"==typeof i?u=e=>e[i]:"function"==typeof i&&(u=e=>i(e)):u=(e,t)=>pD(e[a],t),function n(o,r,i,l){const a=o?o[c]:e,s=o?lD(i.pos,r):"0",d=o?[...l,o]:[];if(o){const e=u(o,s),n={node:o,index:r,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:i?i.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:i,parentPos:l,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:i,pos:r,level:a},h=pD(i,r);s[r]=p,c[h]=p,p.parent=s[l],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)}),{externalGetKey:a,childrenPropName:i,fieldNames:l}),o&&o(u),u}function mD(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:i,checkedKeysSet:l,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:i.has(e),checked:l.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function vD(e){const{data:t,expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h}=e,f=cl(cl({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h,key:h});return"props"in f||Object.defineProperty(f,"props",{get:()=>e}),f}const bD="__rc_cascader_search_mark__",yD=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},OD=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function wD(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],i=r?r.parent:null,l=r?r.children:null;return n===QA?!(l&&l.some((e=>e.key&&o.has(e.key)))):!(i&&!i.node.disabled&&o.has(i.key))}))}function SD(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let i=t;const l=[];for(let a=0;a{const r=e[n.value];return o?String(r)===String(t):r===t})),c=-1!==s?null==i?void 0:i[s]:null;l.push({value:null!==(r=null==c?void 0:c[n.value])&&void 0!==r?r:t,index:s,option:c}),i=null==c?void 0:c[n.children]}return l}function $D(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function xD(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function CD(e,t,n,o,r,i){let l;l=i||xD;const a=new Set(e.filter((e=>!!n[e])));let s;return s=!0===t?function(e,t,n,o){const r=new Set(e),i=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((e=>{const{key:t,node:n,children:i=[]}=e;r.has(t)&&!o(n)&&i.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const l=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let a=!0,s=!1;(t.children||[]).filter((e=>!o(e.node))).forEach((e=>{let{key:t}=e;const n=r.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)})),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from($D(i,r))}}(a,r,o,l):function(e,t,n,o,r){const i=new Set(e);let l=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((e=>{const{key:t,node:n,children:o=[]}=e;i.has(t)||l.has(t)||r(n)||o.filter((e=>!r(e.node))).forEach((e=>{i.delete(e.key)}))}));l=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter((e=>!r(e.node))).forEach((e=>{let{key:t}=e;const n=i.has(t);o&&!n&&(o=!1),s||!n&&!l.has(t)||(s=!0)})),o||i.delete(t.key),s&&l.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from($D(l,i))}}(a,t.halfCheckedKeys,r,o,l),s}const kD=Symbol("CascaderContextKey"),PD=()=>Mo(kD),TD=(e,t,n,o,r,i)=>{const l=dv(),a=Lr((()=>"rtl"===l.direction)),[s,c,u]=[bt([]),bt(),bt([])];mn((()=>{let e=-1,r=t.value;const i=[],l=[],a=o.value.length;for(let t=0;te[n.value.value]===o.value[t]));if(-1===a)break;e=a,i.push(e),l.push(o.value[t]),r=r[e][n.value.children]}let d=t.value;for(let t=0;t{r(e)},p=()=>{if(s.value.length>1){const e=s.value.slice(0,-1);d(e)}else l.toggleOpen(!1)},h=()=>{var e;const t=((null===(e=u.value[c.value])||void 0===e?void 0:e[n.value.children])||[]).find((e=>!e.disabled));if(t){const e=[...s.value,t[n.value.value]];d(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case Im.UP:case Im.DOWN:{let e=0;t===Im.UP?e=-1:t===Im.DOWN&&(e=1),0!==e&&(e=>{const t=u.value.length;let o=c.value;-1===o&&e<0&&(o=t);for(let r=0;re[n.value.value])),t[t.length-1]):i(s.value,e)}break;case Im.ESC:l.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function MD(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:i}=e;const{customSlots:l,checkable:a}=PD(),s=!1!==a.value?l.value.checkable:a.value,c="function"==typeof s?s():"boolean"==typeof s?null:s;return br("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:i},[c])}MD.props=["prefixCls","checked","halfChecked","disabled","onClick"],MD.displayName="Checkbox",MD.inheritAttrs=!1;const ID="__cascader_fix_label__";function ED(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:i,onToggleOpen:l,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:p}=e;var h,f,g,m,v,b;const y=`${t}-menu`,O=`${t}-menu-item`,{fieldNames:w,changeOnSelect:S,expandTrigger:$,expandIcon:x,loadingIcon:C,dropdownMenuColumnStyle:k,customSlots:P}=PD(),T=null!==(h=x.value)&&void 0!==h?h:null===(g=(f=P.value).expandIcon)||void 0===g?void 0:g.call(f),M=null!==(m=C.value)&&void 0!==m?m:null===(b=(v=P.value).loadingIcon)||void 0===b?void 0:b.call(v),I="hover"===$.value;return br("ul",{class:y,role:"menu"},[o.map((e=>{var o;const{disabled:h}=e,f=e[bD],g=null!==(o=e[ID])&&void 0!==o?o:e[w.value.label],m=e[w.value.value],v=FA(e,w.value),b=f?f.map((e=>e[w.value.value])):[...i,m],y=LA(b),$=d.includes(y),x=c.has(y),C=u.has(y),P=()=>{h||I&&v||s(b)},E=()=>{p(e)&&a(b,v)};let A;return"string"==typeof e.title?A=e.title:"string"==typeof g&&(A=g),br("li",{key:y,class:[O,{[`${O}-expand`]:!v,[`${O}-active`]:r===m,[`${O}-disabled`]:h,[`${O}-loading`]:$}],style:k.value,role:"menuitemcheckbox",title:A,"aria-checked":x,"data-path-key":y,onClick:()=>{P(),n&&!v||E()},onDblclick:()=>{S.value&&l(!1)},onMouseenter:()=>{I&&P()},onMousedown:e=>{e.preventDefault()}},[n&&br(MD,{prefixCls:`${t}-checkbox`,checked:x,halfChecked:C,disabled:h,onClick:e=>{e.stopPropagation(),E()}},null),br("div",{class:`${O}-content`},[g]),!$&&T&&!v&&br("div",{class:`${O}-expand-icon`},[T]),$&&M&&br("div",{class:`${O}-loading-icon`},[M])])}))])}ED.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],ED.displayName="Column",ED.inheritAttrs=!1;const AD=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=dv(),i=bt(),l=Lr((()=>"rtl"===r.direction)),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:p,searchOptions:h,dropdownPrefixCls:f,loadData:g,expandTrigger:m,customSlots:v}=PD(),b=Lr((()=>f.value||r.prefixCls)),y=yt([]);mn((()=>{y.value.length&&y.value.forEach((e=>{const t=SD(e.split(NA),a.value,u.value,!0).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];(!n||n[u.value.children]||FA(n,u.value))&&(y.value=y.value.filter((t=>t!==e)))}))}));const O=Lr((()=>new Set(HA(s.value)))),w=Lr((()=>new Set(HA(c.value)))),[S,$]=(()=>{const e=dv(),{values:t}=PD(),[n,o]=Hv([]);return bn((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),x=e=>{$(e),(e=>{if(!g.value||r.searchValue)return;const t=SD(e,a.value,u.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!FA(n,u.value)){const n=LA(e);y.value=[...y.value,n],g.value(t)}})(e)},C=e=>{const{disabled:t}=e,n=FA(e,u.value);return!t&&(n||d.value||r.multiple)},k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(e),!r.multiple&&(t||d.value&&("hover"===m.value||n))&&r.toggleOpen(!1)},P=Lr((()=>r.searchValue?h.value:a.value)),T=Lr((()=>{const e=[{options:P.value}];let t=P.value;for(let n=0;ne[u.value.value]===o)),i=null==r?void 0:r[u.value.children];if(!(null==i?void 0:i.length))break;t=i,e.push({options:i})}return e}));TD(t,P,u,S,x,((e,t)=>{C(t)&&k(e,FA(t,u.value),!0)}));const M=e=>{e.preventDefault()};return Vn((()=>{bn(S,(e=>{var t;for(let n=0;n{var e,t,a,s,c;const{notFoundContent:d=(null===(e=o.notFoundContent)||void 0===e?void 0:e.call(o))||(null===(a=(t=v.value).notFoundContent)||void 0===a?void 0:a.call(t)),multiple:p,toggleOpen:h}=r,f=!(null===(c=null===(s=T.value[0])||void 0===s?void 0:s.options)||void 0===c?void 0:c.length),g=[{[u.value.value]:"__EMPTY__",[ID]:d,disabled:!0}],m=cl(cl({},n),{multiple:!f&&p,onSelect:k,onActive:x,onToggleOpen:h,checkedSet:O.value,halfCheckedSet:w.value,loadingKeys:y.value,isSelectable:C}),$=(f?[{options:g}]:T.value).map(((e,t)=>{const n=S.value.slice(0,t),o=S.value[t];return br(ED,sl(sl({key:t},m),{},{prefixCls:b.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return br("div",{class:[`${b.value}-menus`,{[`${b.value}-menu-empty`]:f,[`${b.value}-rtl`]:l.value}],onMousedown:M,ref:i},[$])}}});function DD(e){const t=bt(0),n=yt();return mn((()=>{const o=new Map;let r=0;const i=e.value||{};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=i[e],{level:n}=t;let l=o.get(n);l||(l=new Set,o.set(n,l)),l.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}function RD(){return cl(cl({},cl(cl({},xd(fv(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:wa(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:_A},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:$p.any,loadingIcon:$p.any})),{onChange:Function,customSlots:Object})}function zD(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((e=>Array.isArray(e)?e:[e])):[]}const BD=jn({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Zl(RD(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>!!e.checkable)),[a,s]=Lv(e.defaultValue,{value:Lr((()=>e.value)),postState:zD}),c=Lr((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}(e.fieldNames))),u=Lr((()=>e.options||[])),d=(p=u,h=c,Lr((()=>gD(p.value,{fieldNames:h.value,initWrapper:e=>cl(cl({},e),{pathKeyEntities:{}}),processEntity:(e,t)=>{const n=e.nodes.map((e=>e[h.value.value])).join(NA);t.pathKeyEntities[n]=e,e.key=n}}).pathKeyEntities)));var p,h;const f=e=>{const t=d.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[c.value.value]))}))},[g,m]=Lv("",{value:Lr((()=>e.searchValue)),postState:e=>e||""}),v=(t,n)=>{m(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:b,searchConfig:y}=function(e){const t=yt(!1),n=bt({});return mn((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=cl(cl({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(Tt(e,"showSearch")),O=((e,t,n,o,r,i)=>Lr((()=>{const{filter:l=yD,render:a=OD,limit:s=50,sort:c}=r.value,u=[];return e.value?(function t(r,d){r.forEach((r=>{if(!c&&s>0&&u.length>=s)return;const p=[...d,r],h=r[n.value.children];h&&0!==h.length&&!i.value||l(e.value,p,{label:n.value.label})&&u.push(cl(cl({},r),{[n.value.label]:a({inputValue:e.value,path:p,prefixCls:o.value,fieldNames:n.value}),[bD]:p})),h&&t(r[n.value.children],p)}))}(t.value,[]),c&&u.sort(((t,o)=>c(t[bD],o[bD],e.value,n.value))),s>0?u.slice(0,s):u):[]})))(g,u,c,Lr((()=>e.dropdownPrefixCls||e.prefixCls)),y,Tt(e,"changeOnSelect")),w=((e,t,n)=>Lr((()=>{const o=[],r=[];return n.value.forEach((n=>{SD(n,e.value,t.value).every((e=>e.option))?r.push(n):o.push(n)})),[r,o]})))(u,c,a),[S,$,x]=[bt([]),bt([]),bt([])],{maxLevel:C,levelEntities:k}=DD(d);mn((()=>{const[e,t]=w.value;if(!l.value||!a.value.length)return void([S.value,$.value,x.value]=[e,[],t]);const n=HA(e),o=d.value,{checkedKeys:r,halfCheckedKeys:i}=CD(n,!0,o,C.value,k.value);[S.value,$.value,x.value]=[f(r),f(i),t]}));const P=((e,t,n,o,r)=>Lr((()=>{const i=r.value||(e=>{let{labels:t}=e;const n=o.value?t.slice(-1):t;return n.every((e=>["string","number"].includes(typeof e)))?n.join(" / "):n.reduce(((e,t,n)=>{const o=sa(t)?Yh(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const o=SD(e,t.value,n.value),r=i({labels:o.map((e=>{let{option:t,value:o}=e;var r;return null!==(r=null==t?void 0:t[n.value.label])&&void 0!==r?r:o})),selectedOptions:o.map((e=>{let{option:t}=e;return t}))}),l=LA(e);return{label:r,value:l,key:l,valueCells:e}}))})))(Lr((()=>{const t=wD(HA(S.value),d.value,e.showCheckedStrategy);return[...x.value,...f(t)]})),u,c,l,Tt(e,"displayRender")),T=t=>{if(s(t),e.onChange){const n=zD(t),o=n.map((e=>SD(e,u.value,c.value).map((e=>e.option)))),r=l.value?n:n[0],i=l.value?o:o[0];e.onChange(r,i)}},M=t=>{if(m(""),l.value){const n=LA(t),o=HA(S.value),r=HA($.value),i=o.includes(n),l=x.value.some((e=>LA(e)===n));let a=S.value,s=x.value;if(l&&!i)s=x.value.filter((e=>LA(e)!==n));else{const t=i?o.filter((e=>e!==n)):[...o,n];let l;({checkedKeys:l}=CD(t,!i||{checked:!1,halfCheckedKeys:r},d.value,C.value,k.value));const s=wD(l,d.value,e.showCheckedStrategy);a=f(s)}T([...s,...a])}else T(t)},I=(e,t)=>{if("clear"===t.type)return void T([]);const{valueCells:n}=t.values[0];M(n)},E=Lr((()=>void 0!==e.open?e.open:e.popupVisible)),A=Lr((()=>e.dropdownClassName||e.popupClassName)),D=Lr((()=>e.dropdownStyle||e.popupStyle||{})),R=Lr((()=>e.placement||e.popupPlacement)),z=t=>{var n,o;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(o=e.onPopupVisibleChange)||void 0===o||o.call(e,t)},{changeOnSelect:B,checkable:j,dropdownPrefixCls:N,loadData:_,expandTrigger:Q,expandIcon:L,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W}=Ct(e);(e=>{To(kD,e)})({options:u,fieldNames:c,values:S,halfValues:$,changeOnSelect:B,onSelect:M,checkable:j,searchOptions:O,dropdownPrefixCls:N,loadData:_,expandTrigger:Q,expandIcon:L,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W});const X=bt();o({focus(){var e;null===(e=X.value)||void 0===e||e.focus()},blur(){var e;null===(e=X.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=X.value)||void 0===t||t.scrollTo(e)}});const Y=Lr((()=>xd(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])));return()=>{const t=!(g.value?O.value:u.value).length,{dropdownMatchSelectWidth:o=!1}=e,a=g.value&&y.value.matchInputWidth||t?{}:{minWidth:"auto"};return br(mv,sl(sl(sl({},Y.value),n),{},{ref:X,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:o,dropdownStyle:cl(cl({},D.value),a),displayValues:P.value,onDisplayValuesChange:I,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:v,showSearch:b.value,OptionList:AD,emptyOptions:t,open:E.value,dropdownClassName:A.value,placement:R.value,onDropdownVisibleChange:z,getRawInputElement:()=>{var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}}),r)}}}),jD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function ND(e){for(var t=1;tds()&&window.document.documentElement,FD=e=>{if(ds()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some((e=>e in n.style))}return!1};function WD(e,t){return Array.isArray(e)||void 0===t?FD(e):((e,t)=>{if(!FD(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o})(e,t)}let XD;const YD=()=>{const e=yt(!1);return Vn((()=>{e.value=(()=>{if(!HD())return!1;if(void 0!==XD)return XD;const e=document.createElement("div");return 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),XD=1===e.scrollHeight,document.body.removeChild(e),XD})()})),e},VD=Symbol("rowContextKey"),ZD=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},UD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},KD=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let i=o;i>=0;i--)0===i?(r[`${n}${t}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${i}`]={marginInlineEnd:0},r[`${n}${t}-order-${i}`]={order:0}):(r[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/o*100}%`,maxWidth:i/o*100+"%"},r[`${n}${t}-push-${i}`]={insetInlineStart:i/o*100+"%"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:i/o*100+"%"},r[`${n}${t}-offset-${i}`]={marginInlineStart:i/o*100+"%"},r[`${n}${t}-order-${i}`]={order:i});return r})(e,t),GD=Ku("Grid",(e=>[ZD(e)])),qD=Ku("Grid",(e=>{const t=Ju(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[UD(t),KD(t,""),KD(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:cl({},KD(e,n))}))(t,n[e],e))).reduce(((e,t)=>cl(cl({},e),t)),{})]})),JD=jn({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:Pa([String,Object]),justify:Pa([String,Object]),prefixCls:String,gutter:Pa([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("row",e),[l,a]=GD(r);let s;const c=J$(),u=bt({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=bt({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=t=>Lr((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n{s=c.value.subscribe((t=>{d.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(u.value=t)}))})),Kn((()=>{c.value.unsubscribe(s)}));const m=Lr((()=>{const t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let o=0;oe.wrap))},To(VD,v);const b=Lr((()=>xl(r.value,{[`${r.value}-no-wrap`]:!1===e.wrap,[`${r.value}-${f.value}`]:f.value,[`${r.value}-${h.value}`]:h.value,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value))),y=Lr((()=>{const e=m.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,o=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),g.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return l(br("div",sl(sl({},o),{},{class:b.value,style:cl(cl({},y.value),o.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});function eR(){return eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}})):e}function cR(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function uR(e,t,n){var o=0,r=e.length;!function i(l){if(l&&l.length)n(l);else{var a=o;o+=1,a()\[\]\\.,;:\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,}))$/,bR=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,yR={integer:function(e){return yR.number(e)&&parseInt(e,10)===e},float:function(e){return yR.number(e)&&!yR.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Uue){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!yR.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(vR)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gR)return gR;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),l=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?l:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var c=s.v4().source,u=s.v6().source;return gR=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(bR)}},OR="enum",wR={required:mR,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(sR(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)mR(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?yR[i](t)||o.push(sR(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(sR(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,l="number"==typeof e.min,a="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&o.push(sR(r.messages[c].len,e.fullField,e.len)):l&&!a&&se.max?o.push(sR(r.messages[c].max,e.fullField,e.max)):l&&a&&(se.max)&&o.push(sR(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[OR]=Array.isArray(e[OR])?e[OR]:[],-1===e[OR].indexOf(t)&&o.push(sR(r.messages[OR],e.fullField,e[OR].join(", ")))},pattern:function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(sR(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(sR(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},SR=function(e,t,n,o,r){var i=e.type,l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,i)&&!e.required)return n();wR.required(e,t,o,l,r,i),cR(t,i)||wR.type(e,t,o,l,r)}n(l)},$R={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"string")&&!e.required)return n();wR.required(e,t,o,i,r,"string"),cR(t,"string")||(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r),wR.pattern(e,t,o,i,r),!0===e.whitespace&&wR.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),cR(t)||wR.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();wR.required(e,t,o,i,r,"array"),null!=t&&(wR.type(e,t,o,i,r),wR.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r),void 0!==t&&wR.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"string")&&!e.required)return n();wR.required(e,t,o,i,r),cR(t,"string")||wR.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t,"date")&&!e.required)return n();var l;wR.required(e,t,o,i,r),cR(t,"date")||(l=t instanceof Date?t:new Date(t),wR.type(e,l,o,i,r),l&&wR.range(e,l.getTime(),o,i,r))}n(i)},url:SR,hex:SR,email:SR,required:function(e,t,n,o,r){var i=[],l=Array.isArray(t)?"array":typeof t;wR.required(e,t,o,i,r,l),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(cR(t)&&!e.required)return n();wR.required(e,t,o,i,r)}n(i)}};function xR(){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 CR=xR(),kR=function(){function e(e){this.rules=null,this._messages=CR,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=fR(xR(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,l=n,a=o;if("function"==typeof l&&(a=l,l={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,i),Promise.resolve(i);if(l.messages){var s=this.messages();s===CR&&(s=xR()),fR(s,l.messages),l.messages=s}else l.messages=this.messages();var c={};(l.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var l=n;"function"==typeof l.transform&&(i===t&&(i=eR({},i)),o=i[e]=l.transform(o)),(l="function"==typeof l?{validator:l}:eR({},l)).validator=r.getValidationMethod(l),l.validator&&(l.field=e,l.fullField=l.fullField||e,l.type=r.getType(l),c[e]=c[e]||[],c[e].push({rule:l,value:o,source:i,field:e}))}))}));var u={};return pR(c,l,(function(t,n){var o,r=t.rule,a=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return eR({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(o){void 0===o&&(o=[]);var c=Array.isArray(o)?o:[o];!l.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(hR(r,i));if(l.first&&d.length)return u[r.field]=1,n(d);if(a){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(hR(r,i)):l.error&&(d=[l.error(r,sR(l.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=eR({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(s.bind(null,e))}));var f=new e(h);f.messages(l.messages),t.rule.options&&(t.rule.options.messages=l.messages,t.rule.options.error=l.error),f.validate(t.value,t.rule.options||l,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(a=a&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,c,t.source,l);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,l)}catch(d){console.error,l.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===o?c():!1===o?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},l=0;l3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!TR(e,t.slice(0,-1))?e:MR(e,t,n,o)}function ER(e){return PR(e)}function AR(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function DR(e,t){const n=Array.isArray(e)?[...e]:cl({},e);return t?(Object.keys(t).forEach((e=>{const o=n[e],r=t[e],i=AR(o)&&AR(r);n[e]=i?DR(o,r||{}):r})),n):n}function RR(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oDR(e,t)),e)}function zR(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return TR(e,t)}(e,t);n=function(e,t,n){return IR(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}kR.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");$R[e]=t},kR.warning=lR,kR.messages=CR,kR.validators=$R;const BR="'${name}' is not a valid ${type}",jR={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:BR,method:BR,array:BR,object:BR,number:BR,date:BR,boolean:BR,integer:BR,float:BR,regexp:BR,email:BR,url:BR,hex:BR},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var NR=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Uue){i(Uue)}}function a(e){try{s(o.throw(e))}catch(Uue){i(Uue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const _R=kR;function QR(e,t,n,o,r){return NR(this,void 0,void 0,(function*(){const i=cl({},n);delete i.ruleIndex,delete i.trigger;let l=null;i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const a=new _R({[e]:[i]}),s=RR({},jR,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},cl({},o)))}catch(p){c=p.errors?p.errors.map(((e,t)=>{let{message:n}=e;return sa(n)?yr(n,{key:`error_${t}`}):n})):[s.default()]}if(!c.length&&l)return(yield Promise.all(t.map(((t,n)=>QR(`${e}.${n}`,t,l,o,r))))).reduce(((e,t)=>[...e,...t]),[]);const u=cl(cl(cl({},n),{name:e,enum:(n.enum||[]).join(", ")}),r),d=c.map((e=>"string"==typeof e?function(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}(e,u):e));return d}))}function LR(e,t,n,o,r,i){const l=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=cl(cl({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n{r||o(...t)}))}));r=i&&"function"==typeof i.then&&"function"==typeof i.catch,r&&i.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:i}=t;return!!n==!!r?o-i:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>NR(this,void 0,void 0,(function*(){for(let e=0;eQR(l,t,e,o,i).then((t=>({errors:t,rule:e})))));s=(r?function(e){return NR(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((o=>{o.then((o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])}))}))}))}))}(e):function(e){return NR(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>[].concat(...e)))}))}(e)).then((e=>Promise.reject(e)))}return s.catch((e=>e)),s}const HR=Symbol("formContextKey"),FR=e=>{To(HR,e)},WR=()=>Mo(HR,{name:Lr((()=>{})),labelAlign:Lr((()=>"right")),vertical:Lr((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:Lr((()=>{})),rules:Lr((()=>{})),colon:Lr((()=>{})),labelWrap:Lr((()=>{})),labelCol:Lr((()=>{})),requiredMark:Lr((()=>!1)),validateTrigger:Lr((()=>{})),onValidate:()=>{},validateMessages:Lr((()=>jR))}),XR=Symbol("formItemPrefixContextKey"),YR=["xs","sm","md","lg","xl","xxl"],VR=jn({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:i,wrap:l}=Mo(VD,{gutter:Lr((()=>{})),wrap:Lr((()=>{})),supportFlexGap:Lr((()=>{}))}),{prefixCls:a,direction:s}=$d("col",e),[c,u]=qD(a),d=Lr((()=>{const{span:t,order:n,offset:r,push:i,pull:l}=e,c=a.value;let d={};return YR.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),d=cl(cl({},d),{[`${c}-${t}-${n.span}`]:void 0!==n.span,[`${c}-${t}-order-${n.order}`]:n.order||0===n.order,[`${c}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${c}-${t}-push-${n.push}`]:n.push||0===n.push,[`${c}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${c}-rtl`]:"rtl"===s.value})})),xl(c,{[`${c}-${t}`]:void 0!==t,[`${c}-order-${n}`]:n,[`${c}-offset-${r}`]:r,[`${c}-push-${i}`]:i,[`${c}-pull-${l}`]:l},d,o.class,u.value)})),p=Lr((()=>{const{flex:t}=e,n=r.value,o={};if(n&&n[0]>0){const e=n[0]/2+"px";o.paddingLeft=e,o.paddingRight=e}if(n&&n[1]>0&&!i.value){const e=n[1]/2+"px";o.paddingTop=e,o.paddingBottom=e}return t&&(o.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(t),!1!==l.value||o.minWidth||(o.minWidth=0)),o}));return()=>{var e;return c(br("div",sl(sl({},o),{},{class:d.value,style:[p.value,o.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),ZR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function UR(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var i,l,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:p,labelAlign:h,colon:f,required:g,requiredMark:m}=cl(cl({},e),r),[v]=qa("Form"),b=null!==(i=e.label)&&void 0!==i?i:null===(l=n.label)||void 0===l?void 0:l.call(n);if(!b)return null;const{vertical:y,labelAlign:O,labelCol:w,labelWrap:S,colon:$}=WR(),x=p||(null==w?void 0:w.value)||{},C=`${u}-item-label`,k=xl(C,"left"===(h||(null==O?void 0:O.value))&&`${C}-left`,x.class,{[`${C}-wrap`]:!!S.value});let P=b;const T=!0===f||!1!==(null==$?void 0:$.value)&&!1!==f;if(T&&!y.value&&"string"==typeof b&&""!==b.trim()&&(P=b.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const t=br("span",{class:`${u}-item-tooltip`},[br(Tx,{title:e.tooltip},{default:()=>[br(qR,null,null)]})]);P=br(er,null,[P,n.tooltip?null===(a=n.tooltip)||void 0===a?void 0:a.call(n,{class:`${u}-item-tooltip`}):t])}"optional"!==m||g||(P=br(er,null,[P,br("span",{class:`${u}-item-optional`},[(null===(s=v.value)||void 0===s?void 0:s.optional)||(null===(c=Ka.Form)||void 0===c?void 0:c.optional)])]));const M=xl({[`${u}-item-required`]:g,[`${u}-item-required-mark-optional`]:"optional"===m,[`${u}-item-no-colon`]:!T});return br(VR,sl(sl({},x),{},{class:k}),{default:()=>[br("label",{for:d,class:M,title:"string"==typeof b?b:"",onClick:e=>o("click",e)},[P])]})};JR.displayName="FormItemLabel",JR.inheritAttrs=!1;const ez=JR,tz=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},nz=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),oz=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rz=e=>{const{componentCls:t}=e;return{[e.componentCls]:cl(cl(cl({},Xu(e)),nz(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":cl({},oz(e,e.controlHeightSM)),"&-large":cl({},oz(e,e.controlHeightLG))})}},iz=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:cl(cl({},Xu(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:mS,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},lz=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},az=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},sz=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),cz=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:sz(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},uz=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:sz(e),[`@media (max-width: ${e.screenXSMax}px)`]:[cz(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:sz(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:sz(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:sz(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:sz(e)}}}},dz=Ku("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=Ju(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[rz(o),iz(o),tz(o),lz(o),az(o),uz(o),IS(o),mS]})),pz=jn({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=Mo(XR,{prefixCls:Lr((()=>""))}),i=Lr((()=>`${o.value}-item-explain`)),l=Lr((()=>!(!e.errors||!e.errors.length))),a=bt(r.value),[,s]=dz(o);return bn([l,r],(()=>{l.value&&(a.value=r.value)})),()=>{var t,r;const l=Kk(`${o.value}-show-help-item`),c=lm(`${o.value}-show-help-item`,l);return c.role="alert",c.class=[s.value,i.value,n.class,`${o.value}-show-help`],br(qr,sl(sl({},im(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[$n(br(Di,sl(sl({},c),{},{tag:"div"}),{default:()=>[null===(r=e.errors)||void 0===r?void 0:r.map(((e,t)=>br("div",{key:t,class:a.value?`${i.value}-${a.value}`:""},[e])))]}),[[gi,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}}),hz=jn({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=WR(),{wrapperCol:r}=o,i=cl({},o);var l;return delete i.labelCol,delete i.wrapperCol,FR(i),l={prefixCls:Lr((()=>e.prefixCls)),status:Lr((()=>e.status))},To(XR,l),()=>{var t,o,i;const{prefixCls:l,wrapperCol:a,marginBottom:s,onErrorVisibleChanged:c,help:u=(null===(t=n.help)||void 0===t?void 0:t.call(n)),errors:d=la(null===(o=n.errors)||void 0===o?void 0:o.call(n)),extra:p=(null===(i=n.extra)||void 0===i?void 0:i.call(n))}=e,h=`${l}-item`,f=a||(null==r?void 0:r.value)||{},g=xl(`${h}-control`,f.class);return br(VR,sl(sl({},f),{},{class:g}),{default:()=>{var e;return br(er,null,[br("div",{class:`${h}-control-input`},[br("div",{class:`${h}-control-input-content`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])]),null!==s||d.length?br("div",{style:{display:"flex",flexWrap:"nowrap"}},[br(pz,{errors:d,help:u,class:`${h}-explain-connected`,onErrorVisibleChanged:c},null),!!s&&br("div",{style:{width:0,height:`${s}px`}},null)]):null,p?br("div",{class:`${h}-extra`},[p]):null])}})}}});ba("success","warning","error","validating","");const fz={success:E$,warning:B$,error:oy,validating:Hb};function gz(e,t,n){let o=e;const r=t;let i=0;try{for(let e=r.length;ie.name||e.prop)),p=yt([]),h=yt(!1),f=yt(),g=Lr((()=>ER(d.value))),m=Lr((()=>{if(g.value.length){const e=u.name.value,t=g.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),v=Lr((()=>(()=>{const e=u.model.value;return e&&d.value?gz(e,g.value,!0).v:void 0})())),b=yt(ew(v.value)),y=Lr((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:u.validateTrigger.value;return t=void 0===t?"change":t,PR(t)})),O=Lr((()=>{let t=u.rules.value;const n=e.rules,o=void 0!==e.required?{required:!!e.required,trigger:y.value}:[],r=gz(t,g.value);t=t?r.o[r.k]||r.v:[];const i=[].concat(n||t||[]);return ww(i,(e=>e.required))?i:i.concat(o)})),w=Lr((()=>{const t=O.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),S=yt();mn((()=>{S.value=e.validateStatus}));const $=Lr((()=>{let t={};return"string"==typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=cl(cl({},t),e.messageVariables)),t})),x=t=>{if(0===g.value.length)return;const{validateFirst:n=!1}=e,{triggerName:o}=t||{};let r=O.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;return!t&&!y.value.length||PR(t||y.value).includes(o)}))),!r.length)return Promise.resolve();const i=LR(g.value,v.value,r,cl({validateMessages:u.validateMessages.value},t),n,$.value);return S.value="validating",p.value=[],i.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===S.value){const t=e.filter((e=>e&&e.errors.length));S.value=t.length?"error":"success",p.value=t.map((e=>e.errors)),u.onValidate(d.value,!p.value.length,p.value.length?dt(p.value[0]):null)}})),i},C=()=>{x({triggerName:"blur"})},k=()=>{h.value?h.value=!1:x({triggerName:"change"})},P=()=>{S.value=e.validateStatus,h.value=!1,p.value=[]},T=()=>{var t;S.value=e.validateStatus,h.value=!0,p.value=[];const n=u.model.value||{},o=v.value,r=gz(n,g.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(t=b.value)&&void 0!==t?t:[]):r.o[r.k]=b.value,Ft((()=>{h.value=!1}))},M=Lr((()=>void 0===e.htmlFor?m.value:e.htmlFor)),I=()=>{const e=M.value;if(!e||!f.value)return;const t=f.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};r({onFieldBlur:C,onFieldChange:k,clearValidate:P,resetField:T}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lr((()=>!0));const n=bt(new Map);bn([t,n],(()=>{})),To(dy,e),To(py,{addFormItemField:(e,t)=>{n.value.set(e,t),n.value=new Map(n.value)},removeFormItemField:e=>{n.value.delete(e),n.value=new Map(n.value)}})}({id:m,onFieldBlur:()=>{e.autoLink&&C()},onFieldChange:()=>{e.autoLink&&k()},clearValidate:P},Lr((()=>!!(e.autoLink&&u.model.value&&d.value))));let E=!1;bn(d,(e=>{e?E||(E=!0,u.addField(i,{fieldValue:v,fieldId:m,fieldName:d,resetField:T,clearValidate:P,namePath:g,validateRules:x,rules:O})):(E=!1,u.removeField(i))}),{immediate:!0}),Kn((()=>{u.removeField(i)}));const A=function(e){const t=yt(e.value.slice());let n=null;return mn((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(p),D=Lr((()=>void 0!==e.validateStatus?e.validateStatus:A.value.length?"error":S.value)),R=Lr((()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:D.value&&e.hasFeedback,[`${l.value}-item-has-success`]:"success"===D.value,[`${l.value}-item-has-warning`]:"warning"===D.value,[`${l.value}-item-has-error`]:"error"===D.value,[`${l.value}-item-is-validating`]:"validating"===D.value,[`${l.value}-item-hidden`]:e.hidden}))),z=rt({});vy.useProvide(z),mn((()=>{let t;if(e.hasFeedback){const e=D.value&&fz[D.value];t=e?br("span",{class:xl(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${D.value}`)},[br(e,null,null)]):null}cl(z,{status:D.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const B=yt(null),j=yt(!1);Vn((()=>{bn(j,(()=>{j.value&&(()=>{if(c.value){const e=getComputedStyle(c.value);B.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const N=e=>{e||(B.value=null)};return()=>{var t,r;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);const i=null!==(r=e.help)&&void 0!==r?r:n.help?la(n.help()):null,s=!!(null!=i&&Array.isArray(i)&&i.length||A.value.length);return j.value=s,a(br("div",{class:[R.value,s?`${l.value}-item-with-help`:"",o.class],ref:c},[br(JD,sl(sl({},o),{},{class:`${l.value}-row`,key:"row"}),{default:()=>{var t,o;return br(er,null,[br(ez,sl(sl({},e),{},{htmlFor:M.value,required:w.value,requiredMark:u.requiredMark.value,prefixCls:l.value,onClick:I,label:e.label}),{label:n.label,tooltip:n.tooltip}),br(hz,sl(sl({},e),{},{errors:null!=i?PR(i):A.value,marginBottom:B.value,prefixCls:l.value,status:D.value,ref:f,help:i,extra:null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n),onErrorVisibleChanged:N}),{default:n.default})])}}),!!B.value&&br("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${B.value}px`}},null)]))}}});function bz(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,i)=>{e.forEach(((e,l)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[l]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}function yz(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function Oz(e){return null==e?[]:Array.isArray(e)?e:[e]}function wz(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let i=0;for(let l=r.length;i1&&void 0!==arguments[1]?arguments[1]:bt({}),n=arguments.length>2?arguments[2]:void 0;const o=ew(St(e)),r=rt({}),i=yt([]),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=Oz(e.trigger||"change");return Cw(n,t).length})):e};let a=null;const s=function(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=LR([e],t,o,cl({validateMessages:jR},i),!!i.validateFirst);return r[e]?(r[e].validateStatus="validating",l.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const i=t.filter((e=>e&&e.errors.length));r[e].validateStatus=i.length?"error":"success",r[e].help=i.length?i.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!i.length,i.length?dt(r[e].help[0]):null)}})),l):l.catch((e=>e))},c=(n,o)=>{let r=[],c=!0;n?r=Array.isArray(n)?n:[n]:(c=!1,r=i.value);const u=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const i=[],c={};for(let a=0;a({name:u,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:u,errors:t,warnings:n}):{name:u,errors:t,warnings:n}})))}const u=bz(i);a=u;const d=u.then((()=>a===u?Promise.resolve(c):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:c,errorFields:t,outOfDate:a!==u})}));return d.catch((e=>e)),d}(r,o||{},c);return u.catch((e=>e)),u};let u=o,d=!0;const p=e=>{const t=[];i.value.forEach((o=>{const r=wz(e,o,!1),i=wz(u,o,!1);!(d&&(null==n?void 0:n.immediate)&&r.isValid)&&em(r.v,i.v)||t.push(o)})),c(t,{trigger:"change"}),d=!1,u=ew(dt(e))},h=null==n?void 0:n.debounce;let f=!0;return bn(t,(()=>{i.value=t?Object.keys(St(t)):[],!f&&n&&n.validateOnRuleChange&&c(),f=!1}),{deep:!0,immediate:!0}),bn(i,(()=>{const e={};i.value.forEach((n=>{e[n]=cl({},r[n],{autoLink:!1,required:yz(St(t)[n])}),delete r[n]}));for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&delete r[t];cl(r,e)}),{immediate:!0}),bn(e,h&&h.wait?vw(p,h.wait,Ew(h,["wait"])):p,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{cl(St(e),cl(cl({},ew(o)),n)),Ft((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:yz(St(t)[e])}}))}))},validate:c,validateField:s,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let r=0;r{let t=[];t=e?Array.isArray(e)?e:[e]:i.value,t.forEach((e=>{r[e]&&cl(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:n,slots:o,expose:r,attrs:i}=t;const{prefixCls:l,direction:a,form:s,size:c,disabled:u}=$d("form",e),d=Lr((()=>""===e.requiredMark||e.requiredMark)),p=Lr((()=>{var t;return void 0!==d.value?d.value:s&&void 0!==(null===(t=s.value)||void 0===t?void 0:t.requiredMark)?s.value.requiredMark:!e.hideRequiredMark}));Sd(c),Xa(u);const h=Lr((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=s.value)||void 0===n?void 0:n.colon})),{validateMessages:f}=Mo(_a,{validateMessages:Lr((()=>{}))}),g=Lr((()=>cl(cl(cl({},jR),f.value),e.validateMessages))),[m,v]=dz(l),b=Lr((()=>xl(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:!1===p.value,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-${c.value}`]:c.value},v.value))),y=bt(),O={},w=e=>{const t=!!e,n=t?PR(e).map(ER):[];return t?Object.values(O).filter((e=>n.findIndex((t=>{return n=t,o=e.fieldName.value,em(PR(n),PR(o));var n,o}))>-1)):Object.values(O)},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=w(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&jd(o,cl({scrollMode:"if-needed",block:"nearest"},t))}},$=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(O).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),zR(e.model,t)}return zR(e.model,t)},x=(t,n)=>{if(Ts(),!e.model)return Ts(),Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?PR(t).map(ER):[],i=[];Object.values(O).forEach((e=>{var t;if(o||r.push(e.namePath.value),!(null===(t=e.rules)||void 0===t?void 0:t.value.length))return;const l=e.namePath.value;if(!o||function(e,t){return e&&e.some((e=>function(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}(e,t)))}(r,l)){const t=e.validateRules(cl({validateMessages:g.value},n));i.push(t.then((()=>({name:l,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}));const l=bz(i);y.value=l;const a=l.then((()=>y.value===l?Promise.resolve($(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:$(r),errorFields:t,outOfDate:y.value!==l})}));return a.catch((e=>e)),a},C=function(){return x(...arguments)},k=t=>{t.preventDefault(),t.stopPropagation(),n("submit",t),e.model&&x().then((e=>{n("finish",e)})).catch((t=>{(t=>{const{scrollToFirstError:o}=e;if(n("finishFailed",t),o&&t.errorFields.length){let e={};"object"==typeof o&&(e=o),S(t.errorFields[0].name,e)}})(t)}))};return r({resetFields:t=>{e.model?w(t).forEach((e=>{e.resetField()})):Ts()},clearValidate:e=>{w(e).forEach((e=>{e.clearValidate()}))},validateFields:x,getFieldsValue:$,validate:function(){return C(...arguments)},scrollToField:S}),FR({model:Lr((()=>e.model)),name:Lr((()=>e.name)),labelAlign:Lr((()=>e.labelAlign)),labelCol:Lr((()=>e.labelCol)),labelWrap:Lr((()=>e.labelWrap)),wrapperCol:Lr((()=>e.wrapperCol)),vertical:Lr((()=>"vertical"===e.layout)),colon:h,requiredMark:p,validateTrigger:Lr((()=>e.validateTrigger)),rules:Lr((()=>e.rules)),addField:(e,t)=>{O[e]=t},removeField:e=>{delete O[e]},onValidate:(e,t,o)=>{n("validate",e,t,o)},validateMessages:g}),bn((()=>e.rules),(()=>{e.validateOnRuleChange&&x()})),()=>{var e;return m(br("form",sl(sl({},i),{},{onSubmit:k,class:[b.value,i.class]}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}}),$z=Sz;$z.useInjectFormItemContext=gy,$z.ItemRest=my,$z.install=function(e){return e.component($z.name,$z),e.component($z.Item.name,$z.Item),e.component(my.name,my),e};const xz=new Hc("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Cz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:cl(cl({},Xu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:cl(cl({},Xu(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:cl(cl({},Xu(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:cl({},Zu(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:xz,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function kz(e,t){const n=Ju(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cz(n)]}const Pz=Ku("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[kz(n,e)]})),Tz=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,i=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[kz(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":cl(cl({},Wu),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},QS(e)]},Mz=Ku("Cascader",(e=>[Tz(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180}),Iz=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const i=[],l=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&i.push(" / ");let n=e[r.label];const a=typeof n;"string"!==a&&"number"!==a||(n=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[...e,t,n]),[]),r=[];let i=0;return o.forEach(((t,o)=>{const l=i+t.length;let a=e.slice(i,l);i=l,o%2==1&&(a=br("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),l,o)),i.push(n)})),i},Ez=jn({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Zl(cl(cl({},xd(RD(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:$p.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function}),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:i}=t;const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:p,getPopupContainer:h,renderEmpty:f,size:g,disabled:m}=$d("cascader",e),v=Lr((()=>d("select",e.prefixCls))),{compactSize:b,compactItemClassnames:y}=Hw(v,p),O=Lr((()=>b.value||g.value)),w=Wa(),S=Lr((()=>{var e;return null!==(e=m.value)&&void 0!==e?e:w.value})),[$,x]=YS(v),[C]=Mz(c),k=Lr((()=>"rtl"===p.value)),P=Lr((()=>{if(!e.showSearch)return e.showSearch;let t={render:Iz};return"object"==typeof e.showSearch&&(t=cl(cl({},t),e.showSearch)),t})),T=Lr((()=>xl(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:k.value},x.value))),M=bt();o({focus(){var e;null===(e=M.value)||void 0===e||e.focus()},blur(){var e;null===(e=M.value)||void 0===e||e.blur()}});const I=function(){for(var e=arguments.length,t=new Array(e),n=0;nvoid 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),D=Lr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft"));return()=>{var t,o;const{notFoundContent:i=(null===(t=r.notFoundContent)||void 0===t?void 0:t.call(r)),expandIcon:d=(null===(o=r.expandIcon)||void 0===o?void 0:o.call(r)),multiple:g,bordered:m,allowClear:b,choiceTransitionName:w,transitionName:R,id:z=l.id.value}=e,B=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:I,onBlur:E,ref:M}),r)))}}}),Az=ya(cl(Ez,{SHOW_CHILD:QA,SHOW_PARENT:_A})),Dz=Symbol("CheckboxGroupContext");var Rz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(null==f?void 0:f.disabled.value)||u.value));mn((()=>{!e.skipGroup&&f&&f.registerValue(g,e.value)})),Kn((()=>{f&&f.cancelValue(g)})),Vn((()=>{Ts(!(void 0===e.checked&&!f&&void 0!==e.value))}));const v=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),l.onFieldChange()},b=bt();return i({focus:()=>{var e;null===(e=b.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=b.value)||void 0===e||e.blur()}}),()=>{var t;const i=ql(null===(t=r.default)||void 0===t?void 0:t.call(r)),{indeterminate:u,skipGroup:g,id:y=l.id.value}=e,O=Rz(e,["indeterminate","skipGroup","id"]),{onMouseenter:w,onMouseleave:S,onInput:$,class:x,style:C}=o,k=Rz(o,["onMouseenter","onMouseleave","onInput","class","style"]),P=cl(cl(cl(cl({},O),{id:y,prefixCls:s.value}),k),{disabled:m.value});f&&!g?(P.onChange=function(){for(var t=arguments.length,o=new Array(t),r=0;r`${a.value}-group`)),[u,d]=Pz(c),p=bt((void 0===e.value?e.defaultValue:e.value)||[]);bn((()=>e.value),(()=>{p.value=e.value||[]}));const h=Lr((()=>e.options.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e)))),f=bt(Symbol()),g=bt(new Map),m=bt(new Map);return bn(f,(()=>{const e=new Map;for(const t of g.value.values())e.set(t,!0);m.value=e})),To(Dz,{cancelValue:e=>{g.value.delete(e),f.value=Symbol()},registerValue:(e,t)=>{g.value.set(e,t),f.value=Symbol()},toggleOption:t=>{const n=p.value.indexOf(t.value),o=[...p.value];-1===n?o.push(t.value):o.splice(n,1),void 0===e.value&&(p.value=o);const i=o.filter((e=>m.value.has(e))).sort(((e,t)=>h.value.findIndex((t=>t.value===e))-h.value.findIndex((e=>e.value===t))));r("update:value",i),r("change",i),l.onFieldChange()},mergedValue:p,name:Lr((()=>e.name)),disabled:Lr((()=>e.disabled))}),i({mergedValue:p}),()=>{var t;const{id:r=l.id.value}=e;let i=null;return h.value&&h.value.length>0&&(i=h.value.map((t=>{var o;return br(zz,{prefixCls:a.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==p.value.indexOf(t.value),onChange:t.onChange,class:`${c.value}-item`},{default:()=>[void 0!==n.label?null===(o=n.label)||void 0===o?void 0:o.call(n,t):t.label]})}))),u(br("div",sl(sl({},o),{},{class:[c.value,{[`${c.value}-rtl`]:"rtl"===s.value},o.class,d.value],id:r}),[i||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}});zz.Group=Bz,zz.install=function(e){return e.component(zz.name,zz),e.component(Bz.name,Bz),e};const jz={useBreakpoint:ex},Nz=ya(VR),_z=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:i,commentFontSizeSm:l,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:h}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:l,lineHeight:"18px"},"&-name":{color:a,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:h,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:l,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},Qz=Ku("Comment",(e=>{const t=Ju(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[_z(t)]})),Lz=ya(jn({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:{actions:Array,author:$p.any,avatar:$p.any,content:$p.any,prefixCls:String,datetime:$p.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("comment",e),[l,a]=Qz(r),s=(e,t)=>br("div",{class:`${e}-nested`},[t]),c=e=>e&&e.length?e.map(((e,t)=>br("li",{key:`action-${t}`},[e]))):null;return()=>{var t,u,d,p,h,f,g,m,v,b,y;const O=r.value,w=null!==(t=e.actions)&&void 0!==t?t:null===(u=n.actions)||void 0===u?void 0:u.call(n),S=null!==(d=e.author)&&void 0!==d?d:null===(p=n.author)||void 0===p?void 0:p.call(n),$=null!==(h=e.avatar)&&void 0!==h?h:null===(f=n.avatar)||void 0===f?void 0:f.call(n),x=null!==(g=e.content)&&void 0!==g?g:null===(m=n.content)||void 0===m?void 0:m.call(n),C=null!==(v=e.datetime)&&void 0!==v?v:null===(b=n.datetime)||void 0===b?void 0:b.call(n),k=br("div",{class:`${O}-avatar`},["string"==typeof $?br("img",{src:$,alt:"comment-avatar"},null):$]),P=w?br("ul",{class:`${O}-actions`},[c(Array.isArray(w)?w:[w])]):null,T=br("div",{class:`${O}-content-author`},[S&&br("span",{class:`${O}-content-author-name`},[S]),C&&br("span",{class:`${O}-content-author-time`},[C])]),M=br("div",{class:`${O}-content`},[T,br("div",{class:`${O}-content-detail`},[x]),P]),I=br("div",{class:`${O}-inner`},[k,M]),E=ql(null===(y=n.default)||void 0===y?void 0:y.call(n));return l(br("div",sl(sl({},o),{},{class:[O,{[`${O}-rtl`]:"rtl"===i.value},o.class,a.value]}),[I,E&&E.length?s(O,E):null]))}}}));let Hz=cl({},Ka.Modal);const Fz="internalMark",Wz=jn({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Ts(e.ANT_MARK__===Fz);const o=rt({antLocale:cl(cl({},e.locale),{exist:!0}),ANT_MARK__:Fz});return To("localeData",o),bn((()=>e.locale),(e=>{var t;t=e&&e.Modal,Hz=t?cl(cl({},Hz),t):cl({},Ka.Modal),o.antLocale=cl(cl({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});Wz.install=function(e){return e.component(Wz.name,Wz),e};const Xz=ya(Wz),Yz=jn({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let n,{attrs:o,slots:r}=t,i=!1;const l=Lr((()=>void 0===e.duration?4.5:e.duration)),a=()=>{l.value&&!i&&(n=setTimeout((()=>{c()}),1e3*l.value))},s=()=>{n&&(clearTimeout(n),n=null)},c=t=>{t&&t.stopPropagation(),s();const{onClose:n,noticeKey:o}=e;n&&n(o)};return Vn((()=>{a()})),Gn((()=>{i=!0,s()})),bn([l,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[i,l,c]=t;(n!==i||o!==l||r!==c&&c)&&(s(),a())}),{flush:"post"}),()=>{var t,n;const{prefixCls:i,closable:l,closeIcon:u=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r)),onClick:d,holder:p}=e,{class:h,style:f}=o,g=`${i}-notice`,m=Object.keys(o).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=o[t]),e)),{}),v=br("div",sl({class:xl(g,h,{[`${g}-closable`]:l}),style:f,onMouseenter:s,onMouseleave:a,onClick:d},m),[br("div",{class:`${g}-content`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),l?br("a",{tabindex:0,onClick:c,class:`${g}-close`},[u||br("span",{class:`${g}-close-x`},null)]):null]);return p?br(qo,{to:p},{default:()=>v}):v}}});let Vz=0;const Zz=Date.now();function Uz(){const e=Vz;return Vz+=1,`rcNotification_${Zz}_${e}`}const Kz=jn({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=new Map,l=bt([]),a=Lr((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),lm(o)})),s=e=>{l.value=l.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return o({add:(t,n)=>{const o=t.key||Uz(),r=cl(cl({},t),{key:o}),{maxCount:i}=e,a=l.value.map((e=>e.notice.key)).indexOf(o),s=l.value.concat();-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&l.value.length>=i&&(r.key=s[0].notice.key,r.updateMark=Uz(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),l.value=s},remove:s,notices:l}),()=>{var t;const{prefixCls:o,closeIcon:c=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:o}))}=e,u=l.value.map(((t,n)=>{let{notice:r,holderCallback:a}=t;const u=n===l.value.length-1?r.updateMark:void 0,{key:d,userPassKey:p}=r,{content:h}=r,f=cl(cl(cl({prefixCls:o,closeIcon:"function"==typeof c?c({prefixCls:o}):c},r),r.props),{key:d,noticeKey:p||d,updateMark:u,onClose:e=>{var t;s(e),null===(t=r.onClose)||void 0===t||t.call(r)},onClick:r.onClick});return a?br("div",{key:d,class:`${o}-hook-holder`,ref:e=>{void 0!==d&&(e?(i.set(d,e),a(e,f)):i.delete(d))}},null):br(Yz,sl(sl({},f),{},{class:xl(f.class,e.hashId)}),{default:()=>["function"==typeof h?h({prefixCls:o}):h]})})),d={[o]:1,[n.class]:!!n.class,[e.hashId]:!0};return br("div",{class:d,style:n.style||{top:"65px",left:"50%"}},[br(Di,sl({tag:"div"},a.value),{default:()=>[u]})])}}});Kz.newInstance=function(e,t){const n=e||{},{name:o="notification",getContainer:r,appContext:i,prefixCls:l,rootPrefixCls:a,transitionName:s,hasTransitionName:c,useStyle:u}=n,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);roj.getPrefixCls(o,l))),[,h]=u(d);return Vn((()=>{t({notice(e){var t;null===(t=i.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=i.value)||void 0===t||t.remove(e)},destroy(){Fi(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:i})})),()=>{const e=oj,t=e.getRootPrefixCls(a,d.value),n=c?s:`${d.value}-${s}`;return br(aj,sl(sl({},e),{},{prefixCls:t}),{default:()=>[br(Kz,sl(sl({ref:i},r),{},{prefixCls:d.value,transitionName:n,hashId:h.value}),null)]})}}}),f=br(h,d);f.appContext=i||f.appContext,Fi(f,p)};const Gz=Kz;let qz=0;const Jz=Date.now();function eB(){const e=qz;return qz+=1,`rcNotification_${Jz}_${e}`}const tB=jn({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,i=Lr((()=>e.notices)),l=Lr((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return lm(t)})),a=bt({});bn(i,(()=>{const t={};Object.keys(a.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),a.value=t}));const s=Lr((()=>Object.keys(a.value)));return()=>{var t;const{prefixCls:c,closeIcon:u=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o,{prefixCls:c}))}=e,d=s.value.map((t=>{var o,s;const d=a.value[t],p=null===(o=e.getClassName)||void 0===o?void 0:o.call(e,t),h=null===(s=e.getStyles)||void 0===s?void 0:s.call(e,t),f=d.map(((t,n)=>{let{notice:o,holderCallback:l}=t;const a=n===i.value.length-1?o.updateMark:void 0,{key:s,userPassKey:d}=o,{content:p}=o,h=cl(cl(cl({prefixCls:c,closeIcon:"function"==typeof u?u({prefixCls:c}):u},o),o.props),{key:s,noticeKey:d||s,updateMark:a,onClose:t=>{var n;(t=>{e.remove(t)})(t),null===(n=o.onClose)||void 0===n||n.call(o)},onClick:o.onClick});return l?br("div",{key:s,class:`${c}-hook-holder`,ref:e=>{void 0!==s&&(e?(r.set(s,e),l(e,h)):r.delete(s))}},null):br(Yz,sl(sl({},h),{},{class:xl(h.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:c}):p]})})),g={[c]:1,[`${c}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[p]:!!p};return br("div",{key:t,class:g,style:n.style||h||{top:"65px",left:"50%"}},[br(Di,sl(sl({tag:"div"},l.value),{},{onAfterLeave:function(){var n;d.length>0||(Reflect.deleteProperty(a.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}}),{default:()=>[f]})])}));return br(gm,{getContainer:e.getContainer},{default:()=>[d]})}}}),nB=()=>document.body;let oB=0;function rB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=nB,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:l,onAllRemoved:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{c.value=c.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},p=Lr((()=>br(tB,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:d,getClassName:i,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null))),h=yt([]),f={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{t&&Object.keys(t).forEach((n=>{const o=t[n];void 0!==o&&(e[n]=o)}))})),e}(s,e);null!==t.key&&void 0!==t.key||(t.key=`vc-notification-${oB}`,oB+=1),h.value=[...h.value,{type:"open",config:t}]},close:e=>{h.value=[...h.value,{type:"close",key:e}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return bn(h,(()=>{h.value.length&&(h.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||eB(),o=cl(cl({},e),{key:n}),i=c.value.map((e=>e.notice.key)).indexOf(n),l=c.value.concat();-1!==i?l.splice(i,1,{notice:o,holderCallback:t}):(r&&c.value.length>=r&&(o.key=l[0].notice.key,o.updateMark=eB(),o.userPassKey=n,l.shift()),l.push({notice:o,holderCallback:t})),c.value=l})(e.config);break;case"close":d(e.key);break;case"destroy":c.value=[]}})),h.value=[])})),[f,()=>p.value]}const iB=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:h,borderRadiusLG:f,zIndexPopup:g,messageNoticeContentPadding:m}=e,v=new Hc("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),b=new Hc("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:cl(cl({},Xu(e)),{position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:m,background:r,borderRadius:f,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:l},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},lB=Ku("Message",(e=>{const t=Ju(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[iB(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),aB={info:br(L$,null,null),success:br(E$,null,null),error:br(oy,null,null),warning:br(B$,null,null),loading:br(Hb,null,null)},sB=jn({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return br("div",{class:xl(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||aB[e.type],br("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),cB=jn({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var o,r;const{getPrefixCls:i,getPopupContainer:l}=$d("message",e),a=Lr((()=>i("message",e.prefixCls))),[,s]=lB(a),c=br("span",{class:`${a.value}-close-x`},[br(qb,{class:`${a.value}-close-icon`},null)]),[u,d]=rB({getStyles:()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:8;return{left:"50%",transform:"translateX(-50%)",top:"number"==typeof n?`${n}px`:n}},prefixCls:a.value,getClassName:()=>xl(s.value,e.rtl?`${a.value}-rtl`:""),motion:()=>{var t;return _p({prefixCls:a.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},closable:!1,closeIcon:c,duration:null!==(o=e.duration)&&void 0!==o?o:3,getContainer:null!==(r=e.staticGetContainer)&&void 0!==r?r:l.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(cl(cl({},u),{prefixCls:a,hashId:s})),d}});let uB=0;function dB(e){const t=yt(null),n=Symbol("messageHolderKey"),o=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},r=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:i}=t.value,l=`${r}-notice`,{content:a,icon:s,type:c,key:u,class:d,onClose:p}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{t=e((()=>{n(!0)}))})),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}((e=>(n(cl(cl({},h),{key:f,content:()=>br(sB,{prefixCls:r,type:c,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:xl(c&&`${l}-${c}`,i,d),onClose:()=>{null==p||p(),e()}})),()=>{o(f)})))},i={open:r,destroy:e=>{var n;void 0!==e?o(e):null===(n=t.value)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{i[e]=(t,n,o)=>{let i,l,a;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(l=n,a=o);const s=cl(cl({onClose:a,duration:l},i),{type:e});return r(s)}})),[i,()=>br(cB,sl(sl({key:n},e),{},{ref:t}),null)]}function pB(e){return dB(e)}let hB,fB,gB,mB=3,vB=1,bB="",yB="move-up",OB=!1,wB=()=>document.body,SB=!1;const $B={info:L$,success:E$,error:oy,warning:B$,loading:Hb},xB=Object.keys($B),CB={open:function(e){const t=void 0!==e.duration?e.duration:mB,n=e.key||vB++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){fB?t(fB):Gz.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||bB,rootPrefixCls:e.rootPrefixCls,transitionName:yB,hasTransitionName:OB,style:{top:hB},getContainer:wB||e.getPopupContainer,maxCount:gB,name:"message",useStyle:lB},(e=>{fB?t(fB):(fB=e,t(e))}))}(e,(o=>{o.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const o=$B[e.type],r=o?br(o,null,null):"",i=xl(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===SB});return br("div",{class:i},["function"==typeof e.icon?e.icon():e.icon||r,br("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{fB&&fB.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(hB=e.top,fB=null),void 0!==e.duration&&(mB=e.duration),void 0!==e.prefixCls&&(bB=e.prefixCls),void 0!==e.getContainer&&(wB=e.getContainer,fB=null),void 0!==e.transitionName&&(yB=e.transitionName,fB=null,OB=!0),void 0!==e.maxCount&&(gB=e.maxCount,fB=null),void 0!==e.rtl&&(SB=e.rtl)},destroy(e){if(fB)if(e){const{removeNotice:t}=fB;t(e)}else{const{destroy:e}=fB;e(),fB=null}}};function kB(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(cl(cl({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}xB.forEach((e=>kB(CB,e))),CB.warn=CB.warning,CB.useMessage=pB;const PB=CB,TB=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hc("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},MB=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:l,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:h,notificationMarginEdge:f,motionDurationMid:g,motionEaseInOut:m,fontSize:v,lineHeight:b,width:y,notificationIconSize:O}=e,w=`${n}-notice`,S=new Hc("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),$=new Hc("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:cl(cl(cl(cl({},Xu(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:f,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:$,animationPlayState:"running"}}),TB(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[w]:{position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:i,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:p,borderRadius:l,boxShadow:o,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+O,fontSize:r},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+O,fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:O,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]},IB=Ku("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=Ju(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[MB(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function EB(e,t){return t||br("span",{class:`${e}-close-x`},[br(qb,{class:`${e}-close-icon`},null)])}br(L$,null,null),br(E$,null,null),br(oy,null,null),br(B$,null,null),br(Hb,null,null);const AB={success:E$,info:L$,error:oy,warning:B$};function DB(e){let{prefixCls:t,icon:n,type:o,message:r,description:i,btn:l}=e,a=null;return n?a=br("span",{class:`${t}-icon`},[$l(n)]):o&&(a=br(AB[o],{class:`${t}-icon ${t}-icon-${o}`},null)),br("div",{class:xl({[`${t}-with-icon`]:a}),role:"alert"},[a,br("div",{class:`${t}-message`},[r]),br("div",{class:`${t}-description`},[i]),l&&br("div",{class:`${t}-btn`},[l])])}function RB(e,t,n){let o;switch(t="number"==typeof t?`${t}px`:t,n="number"==typeof n?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}const zB=jn({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:o,getPopupContainer:r}=$d("notification",e),i=Lr((()=>e.prefixCls||o("notification"))),[,l]=IB(i),[a,s]=rB({prefixCls:i.value,getStyles:t=>{var n,o;return RB(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>xl(l.value,{[`${i.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(i.value),closable:!0,closeIcon:EB(i.value),duration:4.5,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=r.value)||void 0===n?void 0:n.call(r))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(cl(cl({},a),{prefixCls:i.value,hashId:l})),s}});function BB(e){const t=yt(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,i=`${o}-notice`,{message:l,description:a,icon:s,type:c,btn:u,class:d}=e;return n(cl(cl({placement:"topRight"},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(DB,{prefixCls:i,icon:"function"==typeof s?s():s,type:c,message:"function"==typeof l?l():l,description:"function"==typeof a?a():a,btn:"function"==typeof u?u():u},null),class:xl(c&&`${i}-${c}`,r,d)}))},r={open:o,destroy:e=>{var n,o;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(o=t.value)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>o(cl(cl({},t),{type:e}))})),[r,()=>br(zB,sl(sl({key:n},e),{},{ref:t}),null)]}function jB(e){return BB(e)}const NB={};let _B,QB=4.5,LB="24px",HB="24px",FB="",WB="topRight",XB=()=>document.body,YB=null,VB=!1;const ZB={success:d$,info:w$,error:k$,warning:m$},UB={open:function(e){const{icon:t,type:n,description:o,message:r,btn:i}=e,l=void 0===e.duration?QB:e.duration;!function(e,t){let{prefixCls:n,placement:o=WB,getContainer:r=XB,top:i,bottom:l,closeIcon:a=YB,appContext:s}=e;const{getPrefixCls:c}=ij(),u=c("notification",n||FB),d=`${u}-${o}-${VB}`,p=NB[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const h=xl(`${u}-${o}`,{[`${u}-rtl`]:!0===VB});Gz.newInstance({name:"notification",prefixCls:n||FB,useStyle:IB,class:h,style:RB(o,null!=i?i:LB,null!=l?l:HB),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return br("span",{class:`${t}-close-x`},[$l(a,{},br(qb,{class:`${t}-close-icon`},null))])},maxCount:_B,hasTransitionName:!0},(e=>{NB[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:l}=e;const a=`${l}-notice`;let s=null;if(t)s=()=>br("span",{class:`${a}-icon`},[$l(t)]);else if(n){const e=ZB[n];s=()=>br(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return br("div",{class:s?`${a}-with-icon`:""},[s&&s(),br("div",{class:`${a}-message`},[!o&&s?br("span",{class:`${a}-message-single-line-auto-margin`},null):null,$l(r)]),br("div",{class:`${a}-description`},[$l(o)]),i?br("span",{class:`${a}-btn`},[$l(i)]):null])},duration:l,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(NB).forEach((t=>Promise.resolve(NB[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:i,closeIcon:l,prefixCls:a}=e;void 0!==a&&(FB=a),void 0!==t&&(QB=t),void 0!==n&&(WB=n),void 0!==o&&(HB="number"==typeof o?`${o}px`:o),void 0!==r&&(LB="number"==typeof r?`${r}px`:r),void 0!==i&&(XB=i),void 0!==l&&(YB=l),void 0!==e.rtl&&(VB=e.rtl),void 0!==e.maxCount&&(_B=e.maxCount)},destroy(){Object.keys(NB).forEach((e=>{Promise.resolve(NB[e]).then((e=>{e.destroy()})),delete NB[e]}))}};["success","info","warning","error"].forEach((e=>{UB[e]=t=>UB.open(cl(cl({},t),{type:e}))})),UB.warn=UB.warning,UB.useNotification=jB;const KB=UB,GB=`-ant-${Date.now()}-${Math.random()}`;function qB(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new mu(e),i=$u(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new mu(t.primaryColor),i=$u(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const l=new mu(i[0]);n["primary-color-active-deprecated-f-30"]=o(l,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(l,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);ds()?ws(n,`${GB}-dynamic-theme`):Ts()}const JB=e=>{const[t,n]=ad();return Lc(Lr((()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))};function ej(){return oj.prefixCls||"ant"}function tj(){return oj.iconPrefixCls||Na}const nj=rt({}),oj=rt({});let rj;mn((()=>{cl(oj,nj),oj.prefixCls=ej(),oj.iconPrefixCls=tj(),oj.getPrefixCls=(e,t)=>t||(e?`${oj.prefixCls}-${e}`:oj.prefixCls),oj.getRootPrefixCls=()=>oj.prefixCls?oj.prefixCls:ej()}));const ij=()=>({getPrefixCls:(e,t)=>t||(e?`${ej()}-${e}`:ej()),getIconPrefixCls:tj,getRootPrefixCls:()=>oj.prefixCls?oj.prefixCls:ej()}),lj=jn({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:{iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:wa(),input:wa(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:wa(),pageHeader:wa(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:wa(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:wa(),pagination:wa(),theme:wa(),select:wa()},setup(e,t){let{slots:n}=t;const o=Ha(),r=Lr((()=>e.iconPrefixCls||o.iconPrefixCls.value||Na)),i=Lr((()=>r.value!==o.iconPrefixCls.value)),l=Lr((()=>{var t;return e.csp||(null===(t=o.csp)||void 0===t?void 0:t.value)})),a=JB(r),s=function(e,t){const n=Lr((()=>(null==e?void 0:e.value)||{})),o=Lr((()=>!1!==n.value.inherit&&(null==t?void 0:t.value)?t.value:od));return Lr((()=>{if(!(null==e?void 0:e.value))return null==t?void 0:t.value;const r=cl({},o.value.components);return Object.keys(e.value.components||{}).forEach((t=>{r[t]=cl(cl({},r[t]),e.value.components[t])})),cl(cl(cl({},o.value),n.value),{token:cl(cl({},o.value.token),n.value.token),components:r})}))}(Lr((()=>e.theme)),Lr((()=>{var e;return null===(e=o.theme)||void 0===e?void 0:e.value}))),c=Lr((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),u=Lr((()=>{var t;return e.locale||(null===(t=o.locale)||void 0===t?void 0:t.value)}));bn(u,(()=>{nj.locale=u.value}),{immediate:!0});const d=Lr((()=>{var t;return e.direction||(null===(t=o.direction)||void 0===t?void 0:t.value)})),p=Lr((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=o.space)||void 0===n?void 0:n.value})),h=Lr((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=o.virtual)||void 0===n?void 0:n.value})),f=Lr((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),g=Lr((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=o.getTargetContainer)||void 0===t?void 0:t.value})),m=Lr((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=o.getPopupContainer)||void 0===t?void 0:t.value})),v=Lr((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=o.pageHeader)||void 0===t?void 0:t.value})),b=Lr((()=>{var t;return void 0!==e.input?e.input:null===(t=o.input)||void 0===t?void 0:t.value})),y=Lr((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=o.pagination)||void 0===t?void 0:t.value})),O=Lr((()=>{var t;return void 0!==e.form?e.form:null===(t=o.form)||void 0===t?void 0:t.value})),w=Lr((()=>{var t;return void 0!==e.select?e.select:null===(t=o.select)||void 0===t?void 0:t.value})),S=Lr((()=>e.componentSize)),$=Lr((()=>e.componentDisabled)),x={csp:l,autoInsertSpaceInButton:c,locale:u,direction:d,space:p,virtual:h,dropdownMatchSelectWidth:f,getPrefixCls:(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const i=r||o.getPrefixCls("");return t?`${i}-${t}`:i},iconPrefixCls:r,theme:Lr((()=>{var e,t;return null!==(e=s.value)&&void 0!==e?e:null===(t=o.theme)||void 0===t?void 0:t.value})),renderEmpty:t=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||yd)(t),getTargetContainer:g,getPopupContainer:m,pageHeader:v,input:b,pagination:y,form:O,select:w,componentSize:S,componentDisabled:$,transformCellText:Lr((()=>e.transformCellText))},C=Lr((()=>{const e=s.value||{},{algorithm:t,token:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0)?As(t):void 0;return cl(cl({},o),{theme:r,token:cl(cl({},Eu),n)})})),k=Lr((()=>{var t,n;let o={};return u.value&&(o=(null===(t=u.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Ka.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=cl(cl({},o),e.form.validateMessages)),o}));return(e=>{To(Qa,e)})(x),To(_a,{validateMessages:k}),Sd(S),Xa($),mn((()=>{d.value&&(PB.config({rtl:"rtl"===d.value}),KB.config({rtl:"rtl"===d.value}))})),()=>br(Ga,{children:(t,o,r)=>(t=>{var o,r;let l=i.value?a(null===(o=n.default)||void 0===o?void 0:o.call(n)):null===(r=n.default)||void 0===r?void 0:r.call(n);if(e.theme){const e=function(){return l}();l=br(ld,{value:C.value},{default:()=>[e]})}return br(Xz,{locale:u.value||t,ANT_MARK__:Fz},{default:()=>[l]})})(r)},null)}});lj.config=e=>{rj&&rj(),rj=mn((()=>{cl(nj,rt(e)),cl(oj,rt(e))})),e.theme&&qB(ej(),e.theme)},lj.install=function(e){e.component(lj.name,lj)};const aj=lj,sj=(e,t)=>{let{attrs:n,slots:o}=t;return br(WC,sl(sl({size:"small",type:"primary"},e),n),o)},cj=(e,t,n)=>{const o=yl(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},uj=e=>Fu(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),dj=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,l=t-n;return{[r]:cl(cl({},Xu(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},pj=Ku("Tag",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,i=Math.round(t*n),l=Ju(e,{tagFontSize:e.fontSizeSM,tagLineHeight:i-2*o,tagDefaultBg:e.colorFillAlter,tagDefaultColor:e.colorText,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[dj(l),uj(l),cj(l,"success","Success"),cj(l,"processing","Info"),cj(l,"error","Error"),cj(l,"warning","Warning")]})),hj=jn({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i}=$d("tag",e),[l,a]=pj(i),s=t=>{const{checked:n}=e;o("update:checked",!n),o("change",!n),o("click",t)},c=Lr((()=>xl(i.value,a.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked})));return()=>{var e;return l(br("span",sl(sl({},r),{},{class:[c.value,r.class],onClick:s}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),fj=jn({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:$p.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Oa(),"onUpdate:visible":Function,icon:$p.any,bordered:{type:Boolean,default:!0}},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i,direction:l}=$d("tag",e),[a,s]=pj(i),c=yt(!0);mn((()=>{void 0!==e.visible&&(c.value=e.visible)}));const u=t=>{t.stopPropagation(),o("update:visible",!1),o("close",t),t.defaultPrevented||void 0===e.visible&&(c.value=!1)},d=Lr((()=>{return Sx(e.color)||(t=e.color,wx.includes(t));var t})),p=Lr((()=>xl(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!c.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-borderless`]:!e.bordered}))),h=e=>{o("click",e)};return()=>{var t,o,l;const{icon:s=(null===(t=n.icon)||void 0===t?void 0:t.call(n)),color:c,closeIcon:f=(null===(o=n.closeIcon)||void 0===o?void 0:o.call(n)),closable:g=!1}=e,m={backgroundColor:c&&!d.value?c:void 0},v=s||null,b=null===(l=n.default)||void 0===l?void 0:l.call(n),y=v?br(er,null,[v,br("span",null,[b])]):b,O=void 0!==e.onClick,w=br("span",sl(sl({},r),{},{onClick:h,class:[p.value,r.class],style:[m,r.style]}),[y,g?f?br("span",{class:`${i.value}-close-icon`,onClick:u},[f]):br(qb,{class:`${i.value}-close-icon`,onClick:u},null):null]);return a(O?br(lC,null,{default:()=>[w]}):w)}}});fj.CheckableTag=hj,fj.install=function(e){return e.component(fj.name,fj),e.component(hj.name,hj),e};const gj=fj,mj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function vj(e){for(var t=1;tv.value||f.value)),[O,w]=pI(d),S=bt();i({focus:()=>{var e;null===(e=S.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}});const $=t=>s.valueFormat?e.toString(t,s.valueFormat):t,x=(e,t)=>{const n=$(e);a("update:value",n),a("change",n,t),c.onFieldChange()},C=e=>{a("update:open",e),a("openChange",e)},k=e=>{a("focus",e)},P=e=>{a("blur",e),c.onFieldBlur()},T=(e,t)=>{const n=$(e);a("panelChange",n,t)},M=e=>{const t=$(e);a("ok",t)},[I]=qa("DatePicker",Za),E=Lr((()=>s.value?s.valueFormat?e.toDate(s.value,s.valueFormat):s.value:""===s.value?void 0:s.value)),A=Lr((()=>s.defaultValue?s.valueFormat?e.toDate(s.defaultValue,s.valueFormat):s.defaultValue:""===s.defaultValue?void 0:s.defaultValue)),D=Lr((()=>s.defaultPickerValue?s.valueFormat?e.toDate(s.defaultPickerValue,s.valueFormat):s.defaultPickerValue:""===s.defaultPickerValue?void 0:s.defaultPickerValue));return()=>{var t,o,i,a,f,v;const $=cl(cl({},I.value),s.locale),R=cl(cl({},s),l),{bordered:z=!0,placeholder:B,suffixIcon:j=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),showToday:N=!0,transitionName:_,allowClear:Q=!0,dateRender:L=r.dateRender,renderExtraFooter:H=r.renderExtraFooter,monthCellRender:F=r.monthCellRender||s.monthCellContentRender||r.monthCellContentRender,clearIcon:W=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:X=c.id.value}=R,Y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rm.value||h.value)),[y,O]=pI(u),w=bt();o({focus:()=>{var e;null===(e=w.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=w.value)||void 0===e||e.blur()}});const S=t=>a.valueFormat?e.toString(t,a.valueFormat):t,$=(e,t)=>{const n=S(e);l("update:value",n),l("change",n,t),s.onFieldChange()},x=e=>{l("update:open",e),l("openChange",e)},C=e=>{l("focus",e)},k=e=>{l("blur",e),s.onFieldBlur()},P=(e,t)=>{const n=S(e);l("panelChange",n,t)},T=e=>{const t=S(e);l("ok",t)},M=(e,t,n)=>{const o=S(e);l("calendarChange",o,t,n)},[I]=qa("DatePicker",Za),E=Lr((()=>a.value&&a.valueFormat?e.toDate(a.value,a.valueFormat):a.value)),A=Lr((()=>a.defaultValue&&a.valueFormat?e.toDate(a.defaultValue,a.valueFormat):a.defaultValue)),D=Lr((()=>a.defaultPickerValue&&a.valueFormat?e.toDate(a.defaultPickerValue,a.valueFormat):a.defaultPickerValue));return()=>{var t,n,o,l,h,m,S;const R=cl(cl({},I.value),a.locale),z=cl(cl({},a),i),{prefixCls:B,bordered:j=!0,placeholder:N,suffixIcon:_=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),picker:Q="date",transitionName:L,allowClear:H=!0,dateRender:F=r.dateRender,renderExtraFooter:W=r.renderExtraFooter,separator:X=(null===(n=r.separator)||void 0===n?void 0:n.call(r)),clearIcon:Y=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:V=s.id.value}=z,Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(e.component(Hj.name,Hj),e.component(Zj.name,Zj),e.component(Wj.name,Wj),e.component(Fj.name,Fj),e.component(Vj.name,Vj),e)});function Kj(e){return null!=e}const Gj=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:i,bordered:l,label:a,content:s,colon:c}=e,u=n;return l?br(u,{class:[{[`${t}-item-label`]:Kj(a),[`${t}-item-content`]:Kj(s)}],colSpan:o},{default:()=>[Kj(a)&&br("span",{style:r},[a]),Kj(s)&&br("span",{style:i},[s])]}):br(u,{class:[`${t}-item`],colSpan:o},{default:()=>[br("div",{class:`${t}-item-container`},[(a||0===a)&&br("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||0===s)&&br("span",{class:`${t}-item-content`,style:i},[s])])]})},qj=e=>{const t=(e,t,n)=>{let{colon:o,prefixCls:r,bordered:i}=t,{component:l,type:a,showLabel:s,showContent:c,labelStyle:u,contentStyle:d}=n;return e.map(((e,t)=>{var n,p;const h=e.props||{},{prefixCls:f=r,span:g=1,labelStyle:m=h["label-style"],contentStyle:v=h["content-style"],label:b=(null===(p=null===(n=e.children)||void 0===n?void 0:n.label)||void 0===p?void 0:p.call(n))}=h,y=Jl(e),O=function(e){const t=((pr(e)?e.props:e.$attrs)||{}).class||{};let n={};return"string"==typeof t?t.split(" ").forEach((e=>{n[e.trim()]=!0})):Array.isArray(t)?xl(t).split(" ").forEach((e=>{n[e.trim()]=!0})):n=cl(cl({},n),t),n}(e),w=ra(e),{key:S}=e;return"string"==typeof l?br(Gj,{key:`${a}-${String(S)||t}`,class:O,style:w,labelStyle:cl(cl({},u),m),contentStyle:cl(cl({},d),v),span:g,colon:o,component:l,itemPrefixCls:f,bordered:i,label:s?b:null,content:c?y:null},null):[br(Gj,{key:`label-${String(S)||t}`,class:O,style:cl(cl(cl({},u),w),m),span:1,colon:o,component:l[0],itemPrefixCls:f,bordered:i,label:b},null),br(Gj,{key:`content-${String(S)||t}`,class:O,style:cl(cl(cl({},d),w),v),span:2*g-1,component:l[1],itemPrefixCls:f,bordered:i,content:y},null)]}))},{prefixCls:n,vertical:o,row:r,index:i,bordered:l}=e,{labelStyle:a,contentStyle:s}=Mo(iN,{labelStyle:bt({}),contentStyle:bt({})});return o?br(er,null,[br("tr",{key:`label-${i}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),br("tr",{key:`content-${i}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):br("tr",{key:i,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},Jj=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},eN=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:l}=e;return{[t]:cl(cl(cl({},Xu(e)),Jj(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:cl(cl({},Wu),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},tN=Ku("Descriptions",(e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,a=Ju(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:e.padding,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:e.marginXS,descriptionsItemLabelColonMarginLeft:e.marginXXS/2});return[eN(a)]}));$p.any;const nN=jn({compatConfig:{MODE:3},name:"ADescriptionsItem",props:{prefixCls:String,label:$p.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}},setup(e,t){let{slots:n}=t;return()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),oN={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function rN(e,t,n){let o=e;return(void 0===n||n>t)&&(o=Yh(e,{span:t}),Ts()),o}const iN=Symbol("descriptionsContext"),lN=jn({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:$p.any,extra:$p.any,column:{type:[Number,Object],default:()=>oN},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}},slots:Object,Item:nN,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("descriptions",e);let l;const a=bt({}),[s,c]=tN(r),u=J$();Yn((()=>{l=u.value.subscribe((t=>{"object"==typeof e.column&&(a.value=t)}))})),Kn((()=>{u.value.unsubscribe(l)})),To(iN,{labelStyle:Tt(e,"labelStyle"),contentStyle:Tt(e,"contentStyle")});const d=Lr((()=>function(e,t){if("number"==typeof e)return e;if("object"==typeof e)for(let n=0;n{var t,l,a;const{size:u,bordered:p=!1,layout:h="horizontal",colon:f=!0,title:g=(null===(t=n.title)||void 0===t?void 0:t.call(n)),extra:m=(null===(l=n.extra)||void 0===l?void 0:l.call(n))}=e,v=function(e,t){const n=ql(e),o=[];let r=[],i=t;return n.forEach(((e,l)=>{var a;const s=null===(a=e.props)||void 0===a?void 0:a.span,c=s||1;if(l===n.length-1)return r.push(rN(e,i,s)),void o.push(r);cbr(qj,{key:t,index:t,colon:f,prefixCls:r.value,vertical:"vertical"===h,bordered:p,row:e},null)))])])])]))}}});lN.install=function(e){return e.component(lN.name,lN),e.component(lN.Item.name,lN.Item),e};const aN=lN,sN=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:cl(cl({},Xu(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},cN=Ku("Divider",(e=>{const t=Ju(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[sN(t)]}),{sizePaddingEdgeHorizontal:0}),uN=ya(jn({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("divider",e),[l,a]=cN(r),s=Lr((()=>"left"===e.orientation&&null!=e.orientationMargin)),c=Lr((()=>"right"===e.orientation&&null!=e.orientationMargin)),u=Lr((()=>{const{type:t,dashed:n,plain:o}=e,l=r.value;return{[l]:!0,[a.value]:!!a.value,[`${l}-${t}`]:!0,[`${l}-dashed`]:!!n,[`${l}-plain`]:!!o,[`${l}-rtl`]:"rtl"===i.value,[`${l}-no-default-orientation-margin-left`]:s.value,[`${l}-no-default-orientation-margin-right`]:c.value}})),d=Lr((()=>{const t="number"==typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return cl(cl({},s.value&&{marginLeft:t}),c.value&&{marginRight:t})})),p=Lr((()=>e.orientation.length>0?"-"+e.orientation:e.orientation));return()=>{var e;const t=ql(null===(e=n.default)||void 0===e?void 0:e.call(n));return l(br("div",sl(sl({},o),{},{class:[u.value,t.length?`${r.value}-with-text ${r.value}-with-text${p.value}`:"",o.class],role:"separator"}),[t.length?br("span",{class:`${r.value}-inner-text`,style:d.value},[t]):null]))}}}));hk.Button=ok,hk.install=function(e){return e.component(hk.name,hk),e.component(ok.name,ok),e};const dN=()=>({prefixCls:String,width:$p.oneOfType([$p.string,$p.number]),height:$p.oneOfType([$p.string,$p.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:wa(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Ca(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:$a(),maskMotion:wa()});Object.keys({transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"}).filter((e=>{if("undefined"==typeof document)return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0];const pN=!("undefined"!=typeof window&&window.document&&window.document.createElement),hN=jn({compatConfig:{MODE:3},inheritAttrs:!1,props:cl(cl({},dN()),{getContainer:Function,getOpenCount:Function,scrollLocker:$p.any,inline:Boolean}),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:o}=t;const r=yt(),i=yt(),l=yt(),a=yt(),s=yt();let c=[];Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16),Vn((()=>{Ft((()=>{var t;const{open:n,getContainer:o,showMask:r,autofocus:i}=e,l=null==o?void 0:o();f(e),n&&(l&&(l.parentNode,document.body),Ft((()=>{i&&u()})),r&&(null===(t=e.scrollLocker)||void 0===t||t.lock()))}))})),bn((()=>e.level),(()=>{f(e)}),{flush:"post"}),bn((()=>e.open),(()=>{const{open:t,getContainer:n,scrollLocker:o,showMask:r,autofocus:i}=e,l=null==n?void 0:n();l&&(l.parentNode,document.body),t?(i&&u(),r&&(null==o||o.lock())):null==o||o.unLock()}),{flush:"post"}),Gn((()=>{var t;const{open:n}=e;n&&(document.body.style.touchAction=""),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),bn((()=>e.placement),(e=>{e&&(s.value=null)}));const u=()=>{var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)},d=e=>{n("close",e)},p=e=>{e.keyCode===Im.ESC&&(e.stopPropagation(),d(e))},h=()=>{const{open:t,afterVisibleChange:n}=e;n&&n(!!t)},f=e=>{let{level:t,getContainer:n}=e;if(pN)return;const o=null==n?void 0:n(),r=o?o.parentNode:null;var i;c=[],"all"===t?(r?Array.prototype.slice.call(r.children):[]).forEach((e=>{"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==o&&c.push(e)})):t&&(i=t,Array.isArray(i)?i:[i]).forEach((e=>{document.querySelectorAll(e).forEach((e=>{c.push(e)}))}))},g=e=>{n("handleClick",e)},m=yt(!1);return bn(i,(()=>{Ft((()=>{m.value=!0}))})),()=>{var t,n;const{width:c,height:u,open:f,prefixCls:v,placement:b,level:y,levelMove:O,ease:w,duration:S,getContainer:$,onChange:x,afterVisibleChange:C,showMask:k,maskClosable:P,maskStyle:T,keyboard:M,getOpenCount:I,scrollLocker:E,contentWrapperStyle:A,style:D,class:R,rootClassName:z,rootStyle:B,maskMotion:j,motion:N,inline:_}=e,Q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[k&&$n(br("div",{class:`${v}-mask`,onClick:P?d:void 0,style:T,ref:l},null),[[gi,L]])]}),br(qr,sl(sl({},F),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[$n(br("div",{class:`${v}-content-wrapper`,style:[A],ref:r},[br("div",{class:[`${v}-content`,R],style:D,ref:s},[null===(t=o.default)||void 0===t?void 0:t.call(o)]),o.handler?br("div",{onClick:g,ref:a},[null===(n=o.handler)||void 0===n?void 0:n.call(o)]):null]),[[gi,L]])]})])}}});var fN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=bt(null),i=e=>{n("handleClick",e)},l=e=>{n("close",e)};return()=>{const{getContainer:t,wrapperClassName:n,rootClassName:a,rootStyle:s,forceRender:c}=e,u=fN(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let d=null;if(!t)return br(hN,sl(sl({},u),{},{rootClassName:a,rootStyle:s,open:e.open,onClose:l,onHandleClick:i,inline:!0}),o);const p=!!o.handler||c;return(p||e.open||r.value)&&(d=br(Cm,{autoLock:!0,visible:e.open,forceRender:p,getContainer:t,wrapperClassName:n},{default:t=>{var{visible:n,afterClose:c}=t,d=fN(t,["visible","afterClose"]);return br(hN,sl(sl(sl({ref:r},u),d),{},{rootClassName:a,rootStyle:s,open:void 0!==n?n:e.open,afterVisibleChange:void 0!==c?c:e.afterVisibleChange,onClose:l,onHandleClick:i}),o)}})),d}}}),mN=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},vN=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:l,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:h,marginSM:f,colorIcon:g,colorIconHover:m,colorText:v,fontWeightStrong:b,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:O}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:g,fontWeight:b,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:v,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${O}px`,borderTop:`${d}px ${p} ${h}`},"&-rtl":{direction:"rtl"}}}},bN=Ku("Drawer",(e=>{const t=Ju(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[vN(t),mN(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase}))),yN=["top","right","bottom","left"],ON={distance:180},wN=ya(jn({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Zl({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:$p.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:wa(),rootClassName:String,rootStyle:wa(),size:{type:String},drawerStyle:wa(),headerStyle:wa(),bodyStyle:wa(),contentWrapperStyle:{type:Object,default:void 0},title:$p.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:$p.oneOfType([$p.string,$p.number]),height:$p.oneOfType([$p.string,$p.number]),zIndex:Number,prefixCls:String,push:$p.oneOfType([$p.looseBool,{type:Object}]),placement:$p.oneOf(yN),keyboard:{type:Boolean,default:void 0},extra:$p.any,footer:$p.any,footerStyle:wa(),level:$p.any,levelMove:{type:[Number,Array,Function]},handle:$p.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function},{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ON}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const i=yt(!1),l=yt(!1),a=yt(null),s=yt(!1),c=yt(!1),u=Lr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible}));bn(u,(()=>{u.value?s.value=!0:c.value=!1}),{immediate:!0}),bn([u,s],(()=>{u.value&&s.value&&(c.value=!0)}),{immediate:!0});const d=Mo("parentDrawerOpts",null),{prefixCls:p,getPopupContainer:h,direction:f}=$d("drawer",e),[g,m]=bN(p),v=Lr((()=>void 0===e.getContainer&&(null==h?void 0:h.value)?()=>h.value(document.body):e.getContainer));xp(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),To("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,Ft((()=>{b()}))}}),Vn((()=>{u.value&&d&&d.setPush()})),Gn((()=>{d&&d.setPull()})),bn(c,(()=>{d&&(c.value?d.setPush():d.setPull())}),{flush:"post"});const b=()=>{var e,t;null===(t=null===(e=a.value)||void 0===e?void 0:e.domFocus)||void 0===t||t.call(e)},y=e=>{n("update:visible",!1),n("update:open",!1),n("close",e)},O=t=>{var o;t||(!1===l.value&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),null===(o=e.afterVisibleChange)||void 0===o||o.call(e,t),n("afterVisibleChange",t),n("afterOpenChange",t)},w=Lr((()=>{const{push:t,placement:n}=e;let o;return o="boolean"==typeof t?t?ON.distance:0:t.distance,o=parseFloat(String(o||0)),"left"===n||"right"===n?`translateX(${"left"===n?o:-o}px)`:"top"===n||"bottom"===n?`translateY(${"top"===n?o:-o}px)`:null})),S=Lr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:"large"===e.size?736:378})),$=Lr((()=>{var t;return null!==(t=e.height)&&void 0!==t?t:"large"===e.size?736:378})),x=Lr((()=>{const{mask:t,placement:n}=e;if(!c.value&&!t)return{};const o={};return"left"===n||"right"===n?o.width=Zx(S.value)?`${S.value}px`:S.value:o.height=Zx($.value)?`${$.value}px`:$.value,o})),C=Lr((()=>{const{zIndex:t,contentWrapperStyle:n}=e,o=x.value;return[{zIndex:t,transform:i.value?w.value:void 0},cl({},n),o]})),k=t=>{const{closable:n,headerStyle:r}=e,i=ca(o,e,"extra"),l=ca(o,e,"title");return l||n?br("div",{class:xl(`${t}-header`,{[`${t}-header-close-only`]:n&&!l&&!i}),style:r},[br("div",{class:`${t}-header-title`},[P(t),l&&br("div",{class:`${t}-title`},[l])]),i&&br("div",{class:`${t}-extra`},[i])]):null},P=t=>{var n;const{closable:r}=e,i=o.closeIcon?null===(n=o.closeIcon)||void 0===n?void 0:n.call(o):e.closeIcon;return r&&br("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${t}-close`},[void 0===i?br(qb,null,null):i])},T=t=>{const n=ca(o,e,"footer");return n?br("div",{class:`${t}-footer`,style:e.footerStyle},[n]):null},M=Lr((()=>xl({"no-mask":!e.mask,[`${p.value}-rtl`]:"rtl"===f.value},e.rootClassName,m.value))),I=Lr((()=>im(am(p.value,"mask-motion")))),E=e=>im(am(p.value,`panel-motion-${e}`));return()=>{const{width:t,height:n,placement:i,mask:u,forceRender:d}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[br(gN,sl(sl({},f),{},{maskMotion:I.value,motion:E,width:S.value,height:$.value,getContainer:v.value,rootClassName:M.value,rootStyle:e.rootStyle,contentWrapperStyle:C.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>(t=>{var n;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:r,drawerStyle:i}=e;return br("div",{class:`${t}-wrapper-body`,style:i},[k(t),br("div",{key:"body",class:`${t}-body`,style:r},[null===(n=o.default)||void 0===n?void 0:n.call(o)]),T(t)])})(p.value)})]}))}}})),SN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function $N(e){for(var t=1;t({prefixCls:String,description:$p.any,type:ka("default"),shape:ka("circle"),tooltip:$p.any,href:String,target:$a(),badge:wa(),onClick:$a()}),TN=jn({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:{prefixCls:ka()},setup(e,t){let{attrs:n,slots:o}=t;return()=>{var t;const{prefixCls:r}=e,i=la(null===(t=o.description)||void 0===t?void 0:t.call(o));return br("div",sl(sl({},n),{},{class:[n.class,`${r}-content`]}),[o.icon||i.length?br(er,null,[o.icon&&br("div",{class:`${r}-icon`},[o.icon()]),i.length?br("div",{class:`${r}-description`},[i]):null]):br("div",{class:`${r}-icon`},[br(kN,null,null)])])}}}),MN=Symbol("floatButtonGroupContext"),IN=()=>Mo(MN,{shape:bt()}),EN=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),AN=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,l=new Hc("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new Hc("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:cl({},Zw(`${i}-wrap`,l,a,o,!0))},{[`${i}-wrap`]:{[`\n &${i}-wrap-enter,\n &${i}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},DN=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:cl(cl({},Xu(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:l}}}}},RN=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:l,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:cl(cl({},Xu(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:l}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},zN=Ku("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:l,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=Ju(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:l,floatButtonIconSize:1.5*a,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:o-2*c,floatButtonBodyPadding:c,badgeOffset:1.5*c,dotOffsetInCircle:EN(o/2),dotOffsetInSquare:EN(u)});return[DN(d),RN(d),Gw(e),AN(d)]})),BN="float-btn",jN=jn({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:Zl(PN(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=$d(BN,e),[l,a]=zN(r),{shape:s}=IN(),c=bt(null),u=Lr((()=>(null==s?void 0:s.value)||e.shape));return()=>{var t;const{prefixCls:s,type:d="default",shape:p="circle",description:h=(null===(t=o.description)||void 0===t?void 0:t.call(o)),tooltip:f,badge:g={}}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.tooltip&&o.tooltip()||f:void 0,default:()=>br(Ux,g,{default:()=>[br("div",{class:`${r.value}-body`},[br(TN,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return l(e.href?br("a",sl(sl(sl({ref:c},n),m),{},{class:v}),[b]):br("button",sl(sl(sl({ref:c},n),m),{},{class:v,type:"button"}),[b]))}}}),NN=jn({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Zl(cl(cl({},PN()),{trigger:ka(),open:Sa(),onOpenChange:$a(),"onUpdate:open":$a()}),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l}=$d(BN,e),[a,s]=zN(i),[c,u]=Lv(!1,{value:Lr((()=>e.open))}),d=bt(null),p=bt(null);(e=>{To(MN,e)})({shape:Lr((()=>e.shape))});const h={onMouseenter(){var t;u(!0),r("update:open",!0),null===(t=e.onOpenChange)||void 0===t||t.call(e,!0)},onMouseleave(){var t;u(!1),r("update:open",!1),null===(t=e.onOpenChange)||void 0===t||t.call(e,!1)}},f=Lr((()=>"hover"===e.trigger?h:{})),g=t=>{var n,o,i;(null===(n=d.value)||void 0===n?void 0:n.contains(t.target))?(null===(o=ea(p.value))||void 0===o?void 0:o.contains(t.target))&&(()=>{var t;const n=!c.value;r("update:open",n),null===(t=e.onOpenChange)||void 0===t||t.call(e,n),u(n)})():(u(!1),r("update:open",!1),null===(i=e.onOpenChange)||void 0===i||i.call(e,!1))};return bn(Lr((()=>e.trigger)),(e=>{ds()&&(document.removeEventListener("click",g),"click"===e&&document.addEventListener("click",g))}),{immediate:!0}),Kn((()=>{document.removeEventListener("click",g)})),()=>{var t;const{shape:r="circle",type:u="default",tooltip:h,description:g,trigger:m}=e,v=`${i.value}-group`,b=xl(v,s.value,n.class,{[`${v}-rtl`]:"rtl"===l.value,[`${v}-${r}`]:r,[`${v}-${r}-shadow`]:!m}),y=xl(s.value,`${v}-wrap`),O=im(`${v}-wrap`);return a(br("div",sl(sl({ref:d},n),{},{class:b},f.value),[m&&["click","hover"].includes(m)?br(er,null,[br(qr,O,{default:()=>[$n(br("div",{class:y},[o.default&&o.default()]),[[gi,c.value]])]}),br(jN,{ref:p,type:u,shape:r,tooltip:h,description:g},{icon:()=>{var e,t;return c.value?(null===(e=o.closeIcon)||void 0===e?void 0:e.call(o))||br(qb,null,null):(null===(t=o.icon)||void 0===t?void 0:t.call(o))||br(kN,null,null)},tooltip:o.tooltip,description:o.description})]):null===(t=o.default)||void 0===t?void 0:t.call(o)]))}}}),_N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function QN(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=$d(BN,e),[a]=zN(i),s=bt(),c=rt({visible:0===e.visibilityHeight,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=t=>{const{target:n=u,duration:o}=e;Qd(0,{getContainer:n,duration:o}),r("click",t)},p=va((t=>{const{visibilityHeight:n}=e,o=_d(t.target,!0);c.visible=o>=n})),h=()=>{const{target:t}=e,n=(t||u)();p({target:n}),null==n||n.addEventListener("scroll",p)},f=()=>{const{target:t}=e,n=(t||u)();p.cancel(),null==n||n.removeEventListener("scroll",p)};bn((()=>e.target),(()=>{f(),Ft((()=>{h()}))})),Vn((()=>{Ft((()=>{h()}))})),Qn((()=>{Ft((()=>{h()}))})),Ln((()=>{f()})),Kn((()=>{f()}));const g=IN();return()=>{const{description:t,type:r,shape:u,tooltip:p,badge:h}=e,f=cl(cl({},o),{shape:(null==g?void 0:g.shape.value)||u,onClick:d,class:{[`${i.value}`]:!0,[`${o.class}`]:o.class,[`${i.value}-rtl`]:"rtl"===l.value},description:t,type:r,tooltip:p,badge:h}),m=im("fade");return a(br(qr,m,{default:()=>[$n(br(jN,sl(sl({},f),{},{ref:s}),{icon:()=>{var e;return(null===(e=n.icon)||void 0===e?void 0:e.call(n))||br(FN,null,null)}}),[[gi,c.visible]])]}))}}});jN.Group=NN,jN.BackTop=WN,jN.install=function(e){return e.component(jN.name,jN),e.component(NN.name,NN),e.component(WN.name,WN),e};const XN=e=>null!=e&&(!Array.isArray(e)||la(e).length);function YN(e){return XN(e.prefix)||XN(e.suffix)||XN(e.allowClear)}function VN(e){return XN(e.addonBefore)||XN(e.addonAfter)}function ZN(e){return null==e?"":String(e)}function UN(e,t,n,o){if(!n)return;const r=t;if("click"===t.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return r.target=t,r.currentTarget=t,t.value="",void n(r)}if(void 0!==o)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,void n(r);n(r)}function KN(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}const GN=()=>cl(cl({},{addonBefore:$p.any,addonAfter:$p.any,prefix:$p.any,suffix:$p.any,clearIcon:$p.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:$p.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),qN=()=>cl(cl({},GN()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:ka("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),JN=jn({name:"BaseInput",inheritAttrs:!1,props:GN(),setup(e,t){let{slots:n,attrs:o}=t;const r=bt(),i=t=>{var n;if(null===(n=r.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},l=()=>{var t;const{allowClear:o,value:r,disabled:i,readonly:l,handleReset:a,suffix:s=n.suffix,prefixCls:c}=e;if(!o)return null;const u=!i&&!l&&r,d=`${c}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return br("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:xl({[`${d}-hidden`]:!u,[`${d}-has-suffix`]:!!s},d),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:s,value:c,disabled:u,allowClear:d,readonly:p,hidden:h,prefixCls:f,prefix:g=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:m=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:v=n.addonAfter,addonBefore:b=n.addonBefore,inputElement:y,affixWrapperClassName:O,wrapperClassName:w,groupClassName:S}=e;let $=Yh(y,{value:c,hidden:h});if(YN({prefix:g,suffix:m,allowClear:d})){const e=`${f}-affix-wrapper`,t=xl(e,{[`${e}-disabled`]:u,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:m&&d&&c},!VN({addonAfter:v,addonBefore:b})&&o.class,O),n=(m||d)&&br("span",{class:`${f}-suffix`},[l(),m]);$=br("span",{class:t,style:o.style,hidden:!VN({addonAfter:v,addonBefore:b})&&h,onMousedown:i,ref:r},[g&&br("span",{class:`${f}-prefix`},[g]),Yh(y,{style:null,value:c,hidden:null}),n])}if(VN({addonAfter:v,addonBefore:b})){const e=`${f}-group`,t=`${e}-addon`,n=xl(`${f}-wrapper`,e,w),r=xl(`${f}-group-wrapper`,o.class,S);return br("span",{class:r,style:o.style,hidden:h},[br("span",{class:n},[b&&br("span",{class:t},[b]),Yh($,{style:null,hidden:null}),v&&br("span",{class:t},[v])])])}return $}}}),e_=jn({name:"VCInput",inheritAttrs:!1,props:qN(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(void 0===e.value?e.defaultValue:e.value),a=yt(!1),s=yt();bn((()=>e.value),(()=>{l.value=e.value})),bn((()=>e.disabled),(()=>{e.disabled&&(a.value=!1)}));const c=e=>{s.value&&KN(s.value,e)};r({focus:c,blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()},input:s,stateValue:l,setSelectionRange:(e,t,n)=>{var o;null===(o=s.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=s.value)||void 0===e||e.select()}});const u=e=>{i("change",e)},d=Mr(),p=(t,n)=>{l.value!==t&&(void 0===e.value?l.value=t:Ft((()=>{s.value.value!==l.value&&d.update()})),Ft((()=>{n&&n()})))},h=t=>{const{value:n,composing:o}=t.target;if((t.isComposing||o)&&e.lazy||l.value===n)return;const r=t.target.value;UN(s.value,t,u),p(r)},f=e=>{13===e.keyCode&&i("pressEnter",e),i("keydown",e)},g=e=>{a.value=!0,i("focus",e)},m=e=>{a.value=!1,i("blur",e)},v=e=>{UN(s.value,e,u),p("",(()=>{c()}))},b=()=>{var t,r;const{addonBefore:i=n.addonBefore,addonAfter:l=n.addonAfter,disabled:a,valueModifiers:c={},htmlSize:u,autocomplete:d,prefixCls:p,inputClassName:v,prefix:b=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:y=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:O,type:w="text"}=e,S=cl(cl(cl({},xd(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),o),{autocomplete:d,onChange:h,onInput:h,onFocus:g,onBlur:m,onKeydown:f,class:xl(p,{[`${p}-disabled`]:a},v,!VN({addonAfter:l,addonBefore:i})&&!YN({prefix:b,suffix:y,allowClear:O})&&o.class),ref:s,key:"ant-input",size:u,type:w});return c.lazy&&delete S.onInput,S.autofocus||delete S.autofocus,$n(br("input",xd(S,["size"]),null),[[Bm]])},y=()=>{var t;const{maxlength:o,suffix:r=(null===(t=n.suffix)||void 0===t?void 0:t.call(n)),showCount:i,prefixCls:a}=e,s=Number(o)>0;if(r||i){const e=[...ZN(l.value)].length,t="object"==typeof i?i.formatter({count:e,maxlength:o}):`${e}${s?` / ${o}`:""}`;return br(er,null,[!!i&&br("span",{class:xl(`${a}-show-count-suffix`,{[`${a}-show-count-has-suffix`]:!!r})},[t]),r])}return null};return Vn((()=>{})),()=>{const{prefixCls:t,disabled:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rxd(qN(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),n_=t_,o_=()=>cl(cl({},xd(t_(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Oa(),onCompositionend:Oa(),valueModifiers:Object}),r_=jn({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:n_(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=bt(),a=gy(),s=vy.useInject(),c=Lr((()=>Oy(s.status,e.status))),{direction:u,prefixCls:d,size:p,autocomplete:h}=$d("input",e),{compactSize:f,compactItemClassnames:g}=Hw(d,u),m=Lr((()=>f.value||p.value)),[v,b]=iI(d),y=Wa();r({focus:e=>{var t;null===(t=l.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},input:l,setSelectionRange:(e,t,n)=>{var o;null===(o=l.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=l.value)||void 0===e||e.select()}});const O=bt([]),w=()=>{O.value.push(setTimeout((()=>{var e,t,n,o;(null===(e=l.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=l.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=l.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=l.value)||void 0===o||o.input.removeAttribute("value"))})))};Vn((()=>{w()})),Zn((()=>{O.value.forEach((e=>clearTimeout(e)))})),Kn((()=>{O.value.forEach((e=>clearTimeout(e)))}));const S=e=>{w(),i("blur",e),a.onFieldBlur()},$=e=>{w(),i("focus",e)},x=e=>{i("update:value",e.target.value),i("change",e),i("input",e),a.onFieldChange()};return()=>{var t,r,i,p,f,O;const{hasFeedback:w,feedbackIcon:C}=s,{allowClear:k,bordered:P=!0,prefix:T=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:M=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),addonAfter:I=(null===(i=n.addonAfter)||void 0===i?void 0:i.call(n)),addonBefore:E=(null===(p=n.addonBefore)||void 0===p?void 0:p.call(n)),id:A=(null===(f=a.id)||void 0===f?void 0:f.value)}=e,D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(oy,null,null));return v(br(e_,sl(sl(sl({},o),xd(D,["onUpdate:value","onChange","onInput"])),{},{onChange:x,id:A,disabled:null!==(O=e.disabled)&&void 0!==O?O:y.value,ref:l,prefixCls:z,autocomplete:h.value,onBlur:S,onFocus:$,prefix:T,suffix:R,allowClear:k,addonAfter:I&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[I]})]}),addonBefore:E&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[E]})]}),class:[o.class,g.value],inputClassName:xl({[`${z}-sm`]:"small"===m.value,[`${z}-lg`]:"large"===m.value,[`${z}-rtl`]:"rtl"===u.value,[`${z}-borderless`]:!P},!B&&yy(z,c.value),b.value),affixWrapperClassName:xl({[`${z}-affix-wrapper-sm`]:"small"===m.value,[`${z}-affix-wrapper-lg`]:"large"===m.value,[`${z}-affix-wrapper-rtl`]:"rtl"===u.value,[`${z}-affix-wrapper-borderless`]:!P},yy(`${z}-affix-wrapper`,c.value,w),b.value),wrapperClassName:xl({[`${z}-group-rtl`]:"rtl"===u.value},b.value),groupClassName:xl({[`${z}-group-wrapper-sm`]:"small"===m.value,[`${z}-group-wrapper-lg`]:"large"===m.value,[`${z}-group-wrapper-rtl`]:"rtl"===u.value},yy(`${z}-group-wrapper`,c.value,w),b.value)}),cl(cl({},n),{clearIcon:j})))}}}),i_=jn({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,getPrefixCls:l}=$d("input-group",e),a=vy.useInject();vy.useProvide(a,{isFormItemInput:!1});const s=Lr((()=>l("input"))),[c,u]=iI(s),d=Lr((()=>{const t=r.value;return{[`${t}`]:!0,[u.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{var e;return c(br("span",sl(sl({},o),{},{class:xl(d.value,o.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),l_=jn({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:cl(cl({},n_()),{inputPrefixCls:String,enterButton:$p.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(),a=yt(!1);r({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()}});const s=e=>{i("update:value",e.target.value),e&&e.target&&"click"===e.type&&i("search",e.target.value,e),i("change",e)},c=e=>{var t;document.activeElement===(null===(t=l.value)||void 0===t?void 0:t.input)&&e.preventDefault()},u=e=>{var t,n;i("search",null===(n=null===(t=l.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},d=t=>{a.value||e.loading||u(t)},p=e=>{a.value=!0,i("compositionstart",e)},h=e=>{a.value=!1,i("compositionend",e)},{prefixCls:f,getPrefixCls:g,direction:m,size:v}=$d("input-search",e),b=Lr((()=>g("input",e.inputPrefixCls)));return()=>{var t,r,i,a;const{disabled:g,loading:y,addonAfter:O=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:w=(null===(r=n.suffix)||void 0===r?void 0:r.call(n))}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[e?null:x||$]})}O&&(P=[P,O]);const M=xl(f.value,{[`${f.value}-rtl`]:"rtl"===m.value,[`${f.value}-${v.value}`]:!!v.value,[`${f.value}-with-button`]:!!$},o.class);return br(r_,sl(sl(sl({ref:l},xd(S,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:d,onCompositionstart:p,onCompositionend:h,size:v.value,prefixCls:b.value,addonAfter:P,suffix:w,onChange:s,class:M,disabled:g}),n)}}}),a_=e=>null!=e&&(!Array.isArray(e)||la(e).length),s_=["text","input"],c_=jn({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:$p.oneOf(ba("text","input")),value:xa(),defaultValue:xa(),allowClear:{type:Boolean,default:void 0},element:xa(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:xa(),prefix:xa(),addonBefore:xa(),addonAfter:xa(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=vy.useInject(),i=t=>{const{value:o,disabled:r,readonly:i,handleReset:l,suffix:a=n.suffix}=e,s=`${t}-clear-icon`;return br(oy,{onClick:l,onMousedown:e=>e.preventDefault(),class:xl({[`${s}-hidden`]:!(!r&&!i&&o),[`${s}-has-suffix`]:!!a},s),role:"button"},null)};return()=>{var t;const{prefixCls:l,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===s_[0]?((t,l)=>{const{value:a,allowClear:s,direction:c,bordered:u,hidden:d,status:p,addonAfter:h=n.addonAfter,addonBefore:f=n.addonBefore,hashId:g}=e,{status:m,hasFeedback:v}=r;if(!s)return Yh(l,{value:a,disabled:e.disabled});const b=xl(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,yy(`${t}-affix-wrapper`,Oy(m,p),v),{[`${t}-affix-wrapper-rtl`]:"rtl"===c,[`${t}-affix-wrapper-borderless`]:!u,[`${o.class}`]:(y={addonAfter:h,addonBefore:f},!(a_(y.addonBefore)||a_(y.addonAfter))&&o.class)},g);var y;return br("span",{class:b,style:o.style,hidden:d},[Yh(l,{style:null,value:a,disabled:e.disabled}),i(t)])})(l,s):null}}}),u_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],d_={};let p_;function h_(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p_||(p_=document.createElement("textarea"),p_.setAttribute("tab-index","-1"),p_.setAttribute("aria-hidden","true"),document.body.appendChild(p_)),e.getAttribute("wrap")?p_.setAttribute("wrap",e.getAttribute("wrap")):p_.removeAttribute("wrap");const{paddingSize:r,borderSize:i,boxSizing:l,sizingStyle:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&d_[n])return d_[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:u_.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:l,boxSizing:r};return t&&n&&(d_[n]=a),a}(e,t);p_.setAttribute("style",`${a};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),p_.value=e.value||e.placeholder||"";let s,c=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=p_.scrollHeight;if("border-box"===l?d+=i:"content-box"===l&&(d-=r),null!==n||null!==o){p_.value=" ";const e=p_.scrollHeight-r;null!==n&&(c=e*n,"border-box"===l&&(c=c+r+i),d=Math.max(c,d)),null!==o&&(u=e*o,"border-box"===l&&(u=u+r+i),s=d>u?"":"hidden",d=Math.min(u,d))}return{height:`${d}px`,minHeight:`${c}px`,maxHeight:`${u}px`,overflowY:s,resize:"none"}}const f_=jn({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:o_(),setup(e,t){let n,o,{attrs:r,emit:i,expose:l}=t;const a=bt(),s=bt({}),c=bt(0);Kn((()=>{ma.cancel(n),ma.cancel(o)}));const u=()=>{const t=e.autoSize||e.autosize;if(!t||!a.value)return;const{minRows:n,maxRows:r}=t;s.value=h_(a.value,!1,n,r),c.value=1,ma.cancel(o),o=ma((()=>{c.value=2,o=ma((()=>{c.value=0,(()=>{try{if(document.activeElement===a.value){const e=a.value.selectionStart,t=a.value.selectionEnd;a.value.setSelectionRange(e,t)}}catch(Uue){}})()}))}))},d=t=>{0===c.value&&(i("resize",t),(e.autoSize||e.autosize)&&(ma.cancel(n),n=ma(u)))};Ts(void 0===e.autosize),bn((()=>e.value),(()=>{Ft((()=>{u()}))})),Vn((()=>{Ft((()=>{u()}))}));const p=Mr();return l({resizeTextarea:u,textArea:a,instance:p}),()=>(()=>{const{prefixCls:t,autoSize:n,autosize:o,disabled:i}=e,l=xd(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),u=xl(t,r.class,{[`${t}-disabled`]:i}),p=[r.style,s.value,1===c.value?{overflowX:"hidden",overflowY:"hidden"}:null],h=cl(cl(cl({},l),r),{style:p,class:u});return h.autofocus||delete h.autofocus,0===h.rows&&delete h.rows,br(ua,{onResize:d,disabled:!(n||o)},{default:()=>[$n(br("textarea",sl(sl({},h),{},{ref:a}),null),[[Bm]])]})})()}});function g_(e,t){return[...e||""].slice(0,t).join("")}function m_(e,t,n,o){let r=n;return e?r=g_(n,o):[...t||""].lengtho&&(r=t),r}const v_=jn({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:o_(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;const i=gy(),l=vy.useInject(),a=Lr((()=>Oy(l.status,e.status))),s=yt(void 0===e.value?e.defaultValue:e.value),c=yt(),u=yt(""),{prefixCls:d,size:p,direction:h}=$d("input",e),[f,g]=iI(d),m=Wa(),v=Lr((()=>""===e.showCount||e.showCount||!1)),b=Lr((()=>Number(e.maxlength)>0)),y=yt(!1),O=yt(),w=yt(0),S=e=>{y.value=!0,O.value=u.value,w.value=e.currentTarget.selectionStart,r("compositionstart",e)},$=t=>{var n;y.value=!1;let o=t.currentTarget.value;b.value&&(o=m_(w.value>=e.maxlength+1||w.value===(null===(n=O.value)||void 0===n?void 0:n.length),O.value,o,e.maxlength)),o!==u.value&&(k(o),UN(t.currentTarget,t,M,o)),r("compositionend",t)},x=Mr();bn((()=>e.value),(()=>{var t;x.vnode.props,s.value=null!==(t=e.value)&&void 0!==t?t:""}));const C=e=>{var t;KN(null===(t=c.value)||void 0===t?void 0:t.textArea,e)},k=(t,n)=>{s.value!==t&&(void 0===e.value?s.value=t:Ft((()=>{var e,t,n;c.value.textArea.value!==u.value&&(null===(n=null===(e=c.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),Ft((()=>{n&&n()})))},P=e=>{13===e.keyCode&&r("pressEnter",e),r("keydown",e)},T=t=>{const{onBlur:n}=e;null==n||n(t),i.onFieldBlur()},M=e=>{r("update:value",e.target.value),r("change",e),r("input",e),i.onFieldChange()},I=e=>{UN(c.value.textArea,e,M),k("",(()=>{C()}))},E=t=>{const{composing:n}=t.target;let o=t.target.value;if(y.value=!(!t.isComposing&&!n),!(y.value&&e.lazy||s.value===o)){if(b.value){const n=t.target;o=m_(n.selectionStart>=e.maxlength+1||n.selectionStart===o.length||!n.selectionStart,u.value,o,e.maxlength)}UN(t.currentTarget,t,M,o),k(o)}},A=()=>{var t,o;const{class:r}=n,{bordered:l=!0}=e,s=cl(cl(cl({},xd(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!l,[`${r}`]:r&&!v.value,[`${d.value}-sm`]:"small"===p.value,[`${d.value}-lg`]:"large"===p.value},yy(d.value,a.value),g.value],disabled:m.value,showCount:null,prefixCls:d.value,onInput:E,onChange:E,onBlur:T,onKeydown:P,onCompositionstart:S,onCompositionend:$});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete s.onInput,br(f_,sl(sl({},s),{},{id:null!==(o=null==s?void 0:s.id)&&void 0!==o?o:i.id.value,ref:c,maxlength:e.maxlength}),null)};return o({focus:C,blur:()=>{var e,t;null===(t=null===(e=c.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:c}),mn((()=>{let t=ZN(s.value);y.value||!b.value||null!==e.value&&void 0!==e.value||(t=g_(t,e.maxlength)),u.value=t})),()=>{var t;const{maxlength:o,bordered:r=!0,hidden:i}=e,{style:a,class:s}=n,c=cl(cl(cl({},e),n),{prefixCls:d.value,inputType:"text",handleReset:I,direction:h.value,bordered:r,style:v.value?void 0:a,hashId:g.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:m.value});let p=br(c_,sl(sl({},c),{},{value:u.value,status:e.status}),{element:A});if(v.value||l.hasFeedback){const e=[...u.value].length;let t="";t="object"==typeof v.value?v.value.formatter({value:u.value,count:e,maxlength:o}):`${e}${b.value?` / ${o}`:""}`,p=br("div",{hidden:i,class:xl(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:"rtl"===h.value,[`${d.value}-textarea-show-count`]:v.value,[`${d.value}-textarea-in-form-item`]:l.isFormItemInput},`${d.value}-textarea-show-count`,s,g.value),style:a,"data-count":"object"!=typeof t?t:void 0},[p,l.hasFeedback&&br("span",{class:`${d.value}-textarea-suffix`},[l.feedbackIcon])])}return f(p)}}}),b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function y_(e){for(var t=1;tbr(e?S_:P_,null,null),I_=jn({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:cl(cl({},n_()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=yt(!1),a=()=>{const{disabled:t}=e;t||(l.value=!l.value,i("update:visible",l.value))};mn((()=>{void 0!==e.visible&&(l.value=!!e.visible)}));const s=yt();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const{prefixCls:c,getPrefixCls:u}=$d("input-password",e),d=Lr((()=>u("input",e.inputPrefixCls))),p=()=>{const{size:t,visibilityToggle:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{action:o,iconRender:r=n.iconRender||M_}=e,i=T_[o]||"",s=r(l.value),c={[i]:a,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return Yh(sa(s)?s:br("span",null,[s]),c)})(c.value),p=xl(c.value,o.class,{[`${c.value}-${t}`]:!!t}),h=cl(cl(cl({},xd(i,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:p,prefixCls:d.value,suffix:u});return t&&(h.size=t),br(r_,sl({ref:s},h),n)};return()=>p()}});function E_(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function A_(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:$p.shape({x:Number,y:Number}).loose,title:$p.any,footer:$p.any,transitionName:String,maskTransitionName:String,animation:$p.any,maskAnimation:$p.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:$p.any,maskProps:$p.any,wrapProps:$p.any,getContainer:$p.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:$p.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function D_(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}r_.Group=i_,r_.Search=l_,r_.TextArea=v_,r_.Password=I_,r_.install=function(e){return e.component(r_.name,r_),e.component(r_.Group.name,r_.Group),e.component(r_.Search.name,r_.Search),e.component(r_.TextArea.name,r_.TextArea),e.component(r_.Password.name,r_.Password),e};let R_=-1;function z_(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[o],"number"!=typeof n&&(n=t.body[o])}return n}const B_={width:0,height:0,overflow:"hidden",outline:"none"},j_=jn({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:cl(cl({},A_()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=bt(),l=bt(),a=bt();n({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},changeActive:e=>{const{activeElement:t}=document;e&&t===l.value?i.value.focus():e||t!==i.value||l.value.focus()}});const s=bt(),c=Lr((()=>{const{width:t,height:n}=e,o={};return void 0!==t&&(o.width="number"==typeof t?`${t}px`:t),void 0!==n&&(o.height="number"==typeof n?`${n}px`:n),s.value&&(o.transformOrigin=s.value),o})),u=()=>{Ft((()=>{if(a.value){const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=z_(r),n.top+=z_(r,!0),n}(a.value);s.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},d=t=>{e.onVisibleChanged(t)};return()=>{var t,n,s,p;const{prefixCls:h,footer:f=(null===(t=o.footer)||void 0===t?void 0:t.call(o)),title:g=(null===(n=o.title)||void 0===n?void 0:n.call(o)),ariaId:m,closable:v,closeIcon:b=(null===(s=o.closeIcon)||void 0===s?void 0:s.call(o)),onClose:y,bodyStyle:O,bodyProps:w,onMousedown:S,onMouseup:$,visible:x,modalRender:C=o.modalRender,destroyOnClose:k,motionName:P}=e;let T,M,I;f&&(T=br("div",{class:`${h}-footer`},[f])),g&&(M=br("div",{class:`${h}-header`},[br("div",{class:`${h}-title`,id:m},[g])])),v&&(I=br("button",{type:"button",onClick:y,"aria-label":"Close",class:`${h}-close`},[b||br("span",{class:`${h}-close-x`},null)]));const E=br("div",{class:`${h}-content`},[I,M,br("div",sl({class:`${h}-body`,style:O},w),[null===(p=o.default)||void 0===p?void 0:p.call(o)]),T]),A=im(P);return br(qr,sl(sl({},A),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[x||!k?$n(br("div",sl(sl({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[h,r.class],onMousedown:S,onMouseup:$}),[br("div",{tabindex:0,ref:i,style:B_,"aria-hidden":"true"},null),C?C({originVNode:E}):E,br("div",{tabindex:0,ref:l,style:B_,"aria-hidden":"true"},null)]),[[gi,x]]):null]})}}}),N_=jn({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:(e,t)=>()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:r}=e,i=im(r);return br(qr,i,{default:()=>[$n(br("div",sl({class:`${t}-mask`},o),null),[[gi,n]])]})}}),__=jn({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Zl(cl(cl({},A_()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=yt(),i=yt(),l=yt(),a=yt(e.visible),s=yt(`vcDialogTitle${R_+=1,R_}`),c=t=>{var n,o;if(t)ps(i.value,document.activeElement)||(r.value=document.activeElement,null===(n=l.value)||void 0===n||n.focus());else{const t=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch(Uue){}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},u=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},d=yt(!1),p=yt(),h=()=>{clearTimeout(p.value),d.value=!0},f=()=>{p.value=setTimeout((()=>{d.value=!1}))},g=t=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===t.target&&u(t)},m=t=>{if(e.keyboard&&t.keyCode===Im.ESC)return t.stopPropagation(),void u(t);e.visible&&t.keyCode===Im.TAB&&l.value.changeActive(!t.shiftKey)};return bn((()=>e.visible),(()=>{e.visible&&(a.value=!0)}),{flush:"post"}),Kn((()=>{var t;clearTimeout(p.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),mn((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),a.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:r,visible:d,maskTransitionName:p,maskAnimation:v,zIndex:b,wrapClassName:y,rootClassName:O,wrapStyle:w,closable:S,maskProps:$,maskStyle:x,transitionName:C,animation:k,wrapProps:P,title:T=o.title}=e,{style:M,class:I}=n;return br("div",sl({class:[`${t}-root`,O]},Lm(e,{data:!0})),[br(N_,{prefixCls:t,visible:r&&d,motionName:D_(t,p,v),style:cl({zIndex:b},x),maskProps:$},null),br("div",sl({tabIndex:-1,onKeydown:m,class:xl(`${t}-wrap`,y),ref:i,onClick:g,role:"dialog","aria-labelledby":T?s.value:null,style:cl(cl({zIndex:b},w),{display:a.value?null:"none"})},P),[br(j_,sl(sl({},xd(e,["scrollLocker"])),{},{style:M,class:I,onMousedown:h,onMouseup:f,ref:l,closable:S,ariaId:s.value,prefixCls:t,visible:d,onClose:u,onVisibleChanged:c,motionName:D_(t,C,k)}),o)])])}}}),Q_=A_(),L_=jn({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Zl(Q_,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=bt(e.visible);return fm({},{inTriggerContext:!1}),bn((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:i,forceRender:l,destroyOnClose:a=!1,afterClose:s}=e;let c=cl(cl(cl({},e),n),{ref:"_component",key:"dialog"});return!1===i?br(__,sl(sl({},c),{},{getOpenCount:()=>2}),o):l||!a||r.value?br(Cm,{autoLock:!0,visible:t,forceRender:l,getContainer:i},{default:e=>(c=cl(cl(cl({},c),e),{afterClose:()=>{null==s||s(),r.value=!1}}),br(__,c,o))}):null}}});function H_(e,t,n,o){const r=t+n,i=(n-o)/2;if(n>o){if(t>0)return{[e]:i};if(t<0&&ro)return{[e]:t<0?i:-i};return{}}function F_(e,t,n,o){const{width:r,height:i}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let l=null;return e<=r&&t<=i?l={x:0,y:0}:(e>r||t>i)&&(l=cl(cl({},H_("x",n,e,r)),H_("y",o,t,i))),l}const W_=Symbol("previewGroupContext"),X_=e=>{To(W_,e)},Y_=()=>Mo(W_,{isPreviewGroup:yt(!1),previewUrls:Lr((()=>new Map)),setPreviewUrls:()=>{},current:bt(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),V_=jn({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o=Lr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof e.preview?q_(e.preview,t):t})),r=rt(new Map),i=bt(),l=Lr((()=>o.value.visible)),a=Lr((()=>o.value.getContainer)),[s,c]=Lv(!!l.value,{value:l,onChange:(e,t)=>{var n,r;null===(r=(n=o.value).onVisibleChange)||void 0===r||r.call(n,e,t)}}),u=bt(null),d=Lr((()=>void 0!==l.value)),p=Lr((()=>Array.from(r.keys()))),h=Lr((()=>p.value[o.value.current])),f=Lr((()=>new Map(Array.from(r).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),g=e=>{i.value=e},m=e=>{u.value=e},v=e=>{null==e||e.stopPropagation(),c(!1),m(null)};return bn(h,(e=>{g(e)}),{immediate:!0,flush:"post"}),mn((()=>{s.value&&d.value&&g(h.value)}),{flush:"post"}),X_({isPreviewGroup:yt(!0),previewUrls:f,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r.set(e,{url:t,canPreview:n})},current:i,setCurrent:g,setShowPreview:c,setMousePosition:m,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.set(e,{url:t,canPreview:n}),()=>{r.delete(e)}}}),()=>{const t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({})}}),emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:i,zoomIn:l,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:p}=rt(e.icons),h=yt(1),f=yt(0),g=rt({x:1,y:1}),[m,v]=function(e){const t=bt(null),n=rt(cl({},e)),o=bt([]);return Vn((()=>{t.value&&ma.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=ma((()=>{let e;o.value.forEach((t=>{e=cl(cl({},e),t)})),cl(n,e),t.value=null}))),o.value.push(e)}]}(U_),b=()=>n("close"),y=yt(),O=rt({originX:0,originY:0,deltaX:0,deltaY:0}),w=yt(!1),S=Y_(),{previewUrls:$,current:x,isPreviewGroup:C,setCurrent:k}=S,P=Lr((()=>$.value.size)),T=Lr((()=>Array.from($.value.keys()))),M=Lr((()=>T.value.indexOf(x.value))),I=Lr((()=>C.value?$.value.get(x.value):e.src)),E=Lr((()=>C.value&&P.value>1)),A=yt({wheelDirection:0}),D=()=>{h.value=1,f.value=0,g.x=1,g.y=1,v(U_),n("afterClose")},R=e=>{e?h.value+=.5:h.value++,v(U_)},z=e=>{h.value>1&&(e?h.value-=.5:h.value--),v(U_)},B=e=>{e.preventDefault(),e.stopPropagation(),M.value>0&&k(T.value[M.value-1])},j=e=>{e.preventDefault(),e.stopPropagation(),M.valueR(),type:"zoomIn"},{icon:a,onClick:()=>z(),type:"zoomOut",disabled:Lr((()=>1===h.value))},{icon:i,onClick:()=>{f.value+=90},type:"rotateRight"},{icon:r,onClick:()=>{f.value-=90},type:"rotateLeft"},{icon:d,onClick:()=>{g.x=-g.x},type:"flipX"},{icon:p,onClick:()=>{g.y=-g.y},type:"flipY"}],H=()=>{if(e.visible&&w.value){const e=y.value.offsetWidth*h.value,t=y.value.offsetHeight*h.value,{left:n,top:o}=E_(y.value),r=f.value%180!=0;w.value=!1;const i=F_(r?t:e,r?e:t,n,o);i&&v(cl({},i))}},F=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),O.deltaX=e.pageX-m.x,O.deltaY=e.pageY-m.y,O.originX=m.x,O.originY=m.y,w.value=!0)},W=t=>{e.visible&&w.value&&v({x:t.pageX-O.deltaX,y:t.pageY-O.deltaY})},X=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;A.value={wheelDirection:n}},Y=t=>{e.visible&&E.value&&(t.preventDefault(),t.keyCode===Im.LEFT?M.value>0&&k(T.value[M.value-1]):t.keyCode===Im.RIGHT&&M.value{e.visible&&(1!==h.value&&(h.value=1),m.x===U_.x&&m.y===U_.y||v(U_))};let Z=()=>{};return Vn((()=>{bn([()=>e.visible,w],(()=>{let e,t;Z();const n=Ia(window,"mouseup",H,!1),o=Ia(window,"mousemove",W,!1),r=Ia(window,"wheel",X,{passive:!1}),i=Ia(window,"keydown",Y,!1);try{window.top!==window.self&&(e=Ia(window.top,"mouseup",H,!1),t=Ia(window.top,"mousemove",W,!1))}catch(l){}Z=()=>{n.remove(),o.remove(),r.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),bn([A],(()=>{const{wheelDirection:e}=A.value;e>0?z(!0):e<0&&R(!0)}))})),Gn((()=>{Z()})),()=>{const{visible:t,prefixCls:n,rootClassName:r}=e;return br(L_,sl(sl({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:b,afterClose:D,visible:t,wrapClassName:N,rootClassName:r,getContainer:e.getContainer}),{default:()=>[br("div",{class:[`${e.prefixCls}-operations-wrapper`,r]},[br("ul",{class:`${e.prefixCls}-operations`},[L.map((t=>{let{icon:n,onClick:o,type:r,disabled:i}=t;return br("li",{class:xl(_,{[`${e.prefixCls}-operations-operation-disabled`]:i&&(null==i?void 0:i.value)}),onClick:o,key:r},[yr(n,{class:Q})])}))])]),br("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[br("img",{onMousedown:F,onDblclick:V,ref:y,class:`${e.prefixCls}-img`,src:I.value,alt:e.alt,style:{transform:`scale3d(${g.x*h.value}, ${g.y*h.value}, 1) rotate(${f.value}deg)`}},null)]),E.value&&br("div",{class:xl(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:M.value<=0}),onClick:B},[c]),E.value&&br("div",{class:xl(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:M.value>=P.value-1}),onClick:j},[u])]})}}}),G_=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:$p.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),q_=(e,t)=>{const n=cl({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let J_=0;const eQ=jn({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:G_(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Lr((()=>e.prefixCls)),l=Lr((()=>`${i.value}-preview`)),a=Lr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?q_(e.preview,t):t})),s=Lr((()=>{var t;return null!==(t=a.value.src)&&void 0!==t?t:e.src})),c=Lr((()=>e.placeholder&&!0!==e.placeholder||o.placeholder)),u=Lr((()=>a.value.visible)),d=Lr((()=>a.value.getContainer)),p=Lr((()=>void 0!==u.value)),[h,f]=Lv(!!u.value,{value:u,onChange:(e,t)=>{var n,o;null===(o=(n=a.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),g=bt(c.value?"loading":"normal");bn((()=>e.src),(()=>{g.value=c.value?"loading":"normal"}));const m=bt(null),v=Lr((()=>"error"===g.value)),b=Y_(),{isPreviewGroup:y,setCurrent:O,setShowPreview:w,setMousePosition:S,registerImage:$}=b,x=bt(J_++),C=Lr((()=>e.preview&&!v.value)),k=()=>{g.value="normal"},P=e=>{g.value="error",r("error",e)},T=e=>{if(!p.value){const{left:t,top:n}=E_(e.target);y.value?(O(x.value),S({x:t,y:n})):m.value={x:t,y:n}}y.value?w(!0):f(!0),r("click",e)},M=()=>{f(!1),p.value||(m.value=null)},I=bt(null);bn((()=>I),(()=>{"loading"===g.value&&I.value.complete&&(I.value.naturalWidth||I.value.naturalHeight)&&k()}));let E=()=>{};Vn((()=>{bn([s,C],(()=>{if(E(),!y.value)return()=>{};E=$(x.value,s.value,C.value),C.value||E()}),{flush:"post",immediate:!0})})),Gn((()=>{E()}));const A=e=>{return"number"==typeof(t=e)||qf(t)&&"[object Number]"==pf(t)?e+"px":e;var t};return()=>{const{prefixCls:t,wrapperClassName:i,fallback:c,src:u,placeholder:p,wrapperStyle:f,rootClassName:b}=e,{width:O,height:w,crossorigin:S,decoding:$,alt:x,sizes:E,srcset:D,usemap:R,class:z,style:B}=n,j=a.value,{icons:N,maskClassName:_}=j,Q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{r("click",e)},style:cl({width:A(O),height:A(w)},f)},[br("img",sl(sl(sl({},F),v.value&&c?{src:c}:{onLoad:k,onError:P,src:u}),{},{ref:I}),null),"loading"===g.value&&br("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||o.placeholder&&o.placeholder()]),o.previewMask&&C.value&&br("div",{class:[`${t}-mask`,_]},[o.previewMask()])]),!y.value&&C.value&&br(K_,sl(sl({},Q),{},{"aria-hidden":!h.value,visible:h.value,prefixCls:l.value,onClose:M,mousePosition:m.value,src:H,alt:x,getContainer:d.value,icons:N,rootClassName:b}),null)])}}});eQ.PreviewGroup=Z_;const tQ=eQ,nQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function oQ(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:cl(cl({},PQ("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:cl(cl({},PQ("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Gw(e)}]},MQ=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:cl(cl({},Xu(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:cl({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Uu(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},IQ=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},EQ=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},AQ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},DQ=Ku("Modal",(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=Ju(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[MQ(r),IQ(r),EQ(r),TQ(r),e.wireframe&&AQ(r),MS(r,"zoom")]})),RQ=e=>({position:e||"absolute",inset:0}),zQ=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new mu("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:cl(cl({},Wu),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},BQ=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:i}=e,l=new mu(n).setAlpha(.1),a=l.clone().setAlpha(.2);return{[`${t}-operations`]:cl(cl({},Xu(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},jQ=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:l}=e,a=new mu(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},NQ=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:cl(cl({},RQ()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":cl(cl({},RQ()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[BQ(e),jQ(e)]}]},_Q=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:cl({},zQ(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:cl({},RQ())}}},QQ=e=>{const{previewCls:t}=e;return{[`${t}-root`]:MS(e,"zoom"),"&":Gw(e,!0)}},LQ=Ku("Image",(e=>{const t=`${e.componentCls}-preview`,n=Ju(e,{previewCls:t,modalMaskBg:new mu("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[_Q(n),NQ(n),TQ(Ju(n,{componentCls:t})),QQ(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new mu(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new mu(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),HQ={rotateLeft:br(lQ,null,null),rotateRight:br(dQ,null,null),zoomIn:br(mQ,null,null),zoomOut:br(wQ,null,null),close:br(qb,null,null),left:br(LD,null,null),right:br(sk,null,null),flipX:br(kQ,null,null),flipY:br(kQ,{rotate:90},null)},FQ=jn({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:xa()},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:i}=$d("image",e),l=Lr((()=>`${r.value}-preview`)),[a,s]=LQ(r),c=Lr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return cl(cl({},n),{rootClassName:s.value,transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>a(br(Z_,sl(sl({},cl(cl({},n),e)),{},{preview:c.value,icons:HQ,previewPrefixCls:l.value}),o))}}),WQ=jn({name:"AImage",inheritAttrs:!1,props:G_(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:i,configProvider:l}=$d("image",e),[a,s]=LQ(r),c=Lr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return cl(cl({icons:HQ},n),{transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>{var t,i;const u=(null===(i=null===(t=l.locale)||void 0===t?void 0:t.value)||void 0===i?void 0:i.Image)||Ka.Image,d=()=>br("div",{class:`${r.value}-mask-info`},[br(S_,null,null),null==u?void 0:u.preview]),{previewMask:p=n.previewMask||d}=e;return a(br(tQ,sl(sl({},cl(cl(cl({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:xl(e.rootClassName,s.value)}),cl(cl({},n),{previewMask:"function"==typeof p?p:null})))}}});WQ.PreviewGroup=FQ,WQ.install=function(e){return e.component(WQ.name,WQ),e.component(WQ.PreviewGroup.name,WQ.PreviewGroup),e};const XQ=WQ,YQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function VQ(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(GQ()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new rL(Number.MAX_SAFE_INTEGER);if(n0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":tL(this.number)}}class iL{constructor(e){if(this.origin="",oL(e))return void(this.empty=!0);if(this.origin=String(e),"-"===e||Number.isNaN(e))return void(this.nan=!0);let t=e;if(JQ(t)&&(t=Number(t)),t="string"==typeof t?t:tL(t),nL(t)){const e=qQ(t);this.negative=e.negative;const n=e.trimStr.split(".");this.integer=BigInt(n[0]);const o=n[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(t)}negate(){const e=new iL(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new iL(e);const t=new iL(e);if(t.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=(this.alignDecimal(n)+t.alignDecimal(n)).toString(),{negativeStr:r,trimStr:i}=qQ(o),l=`${r}${i.padStart(n+1,"0")}`;return new iL(`${l.slice(0,-n)}.${l.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(null==e?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":qQ(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr}}function lL(e){return GQ()?new iL(e):new rL(e)}function aL(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";const{negativeStr:r,integerStr:i,decimalStr:l}=qQ(e),a=`${t}${l}`,s=`${r}${i}`;if(n>=0){const i=Number(l[n]);return i>=5&&!o?aL(lL(e).add(`${r}0.${"0".repeat(n)}${10-i}`).toString(),t,n,o):0===n?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return".0"===a?s:`${s}${a}`}const sL=jn({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:$a()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=bt(),i=(e,t)=>{e.preventDefault(),o("step",t),r.value=setTimeout((function e(){o("step",t),r.value=setTimeout(e,200)}),600)},l=()=>{clearTimeout(r.value)};return Kn((()=>{l()})),()=>{if(pv())return null;const{prefixCls:t,upDisabled:o,downDisabled:r}=e,a=`${t}-handler`,s=xl(a,`${a}-up`,{[`${a}-up-disabled`]:o}),c=xl(a,`${a}-down`,{[`${a}-down-disabled`]:r}),u={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:d,downNode:p}=n;return br("div",{class:`${a}-wrap`},[br("span",sl(sl({},u),{},{onMousedown:e=>{i(e,!0)},"aria-label":"Increase Value","aria-disabled":o,class:s}),[(null==d?void 0:d())||br("span",{unselectable:"on",class:`${t}-handler-up-inner`},null)]),br("span",sl(sl({},u),{},{onMousedown:e=>{i(e,!1)},"aria-label":"Decrease Value","aria-disabled":r,class:c}),[(null==p?void 0:p())||br("span",{unselectable:"on",class:`${t}-handler-down-inner`},null)])])}}}),cL=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),uL=e=>{const t=lL(e);return t.isInvalidate()?null:t},dL=()=>({stringMode:Sa(),defaultValue:Pa([String,Number]),value:Pa([String,Number]),prefixCls:ka(),min:Pa([String,Number]),max:Pa([String,Number]),step:Pa([String,Number],1),tabindex:Number,controls:Sa(!0),readonly:Sa(),disabled:Sa(),autofocus:Sa(),keyboard:Sa(!0),parser:$a(),formatter:$a(),precision:Number,decimalSeparator:String,onInput:$a(),onChange:$a(),onPressEnter:$a(),onStep:$a(),onBlur:$a(),onFocus:$a()}),pL=jn({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:cl(cl({},dL()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const l=yt(),a=yt(!1),s=yt(!1),c=yt(!1),u=yt(lL(e.value)),d=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(eL(t),eL(e.step))},p=t=>{const n=String(t);if(e.parser)return e.parser(n);let o=n;return e.decimalSeparator&&(o=o.replace(e.decimalSeparator,".")),o.replace(/[^\w.-]+/g,"")},h=yt(""),f=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(h.value)});let o="number"==typeof t?tL(t):t;if(!n){const t=d(o,n);nL(o)&&(e.decimalSeparator||t>=0)&&(o=aL(o,e.decimalSeparator||".",t))}return o},g=(()=>{const t=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":t:f(u.value.toString(),!1)})();function m(e,t){h.value=f(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}h.value=g;const v=Lr((()=>uL(e.max))),b=Lr((()=>uL(e.min))),y=Lr((()=>!(!v.value||!u.value||u.value.isInvalidate())&&v.value.lessEquals(u.value))),O=Lr((()=>!(!b.value||!u.value||u.value.isInvalidate())&&u.value.lessEquals(b.value))),[w,S]=function(e,t){const n=bt(null);return[function(){try{const{selectionStart:t,selectionEnd:o,value:r}=e.value,i=r.substring(0,t),l=r.substring(o);n.value={start:t,end:o,value:r,beforeTxt:i,afterTxt:l}}catch(Uue){}},function(){if(e.value&&n.value&&t.value)try{const{value:t}=e.value,{beforeTxt:o,afterTxt:r,start:i}=n.value;let l=t.length;if(t.endsWith(r))l=t.length-n.value.afterTxt.length;else if(t.startsWith(o))l=o.length;else{const e=o[i-1],n=t.indexOf(e,i-1);-1!==n&&(l=n+1)}e.value.setSelectionRange(l,l)}catch(Uue){Uue.message}}]}(l,a),$=e=>v.value&&!e.lessEquals(v.value)?v.value:b.value&&!b.value.lessEquals(e)?b.value:null,x=e=>!$(e),C=(t,n)=>{var o;let r=t,i=x(r)||r.isEmpty();if(r.isEmpty()||n||(r=$(r)||r,i=!0),!e.readonly&&!e.disabled&&i){const t=r.toString(),i=d(t,n);return i>=0&&(r=lL(aL(t,".",i))),r.equals(u.value)||(l=r,void 0===e.value&&(u.value=l),null===(o=e.onChange)||void 0===o||o.call(e,r.isEmpty()?null:cL(e.stringMode,r)),void 0===e.value&&m(r,n)),r}var l;return u.value},k=(()=>{const e=yt(0),t=()=>{ma.cancel(e.value)};return Kn((()=>{t()})),n=>{t(),e.value=ma((()=>{n()}))}})(),P=t=>{var n;if(w(),h.value=t,!c.value){const e=lL(p(t));e.isNaN()||C(e,!0)}null===(n=e.onInput)||void 0===n||n.call(e,t),k((()=>{let n=t;e.parser||(n=t.replace(/。/g,".")),n!==t&&P(n)}))},T=()=>{c.value=!0},M=()=>{c.value=!1,P(l.value.value)},I=e=>{P(e.target.value)},E=t=>{var n,o;if(t&&y.value||!t&&O.value)return;s.value=!1;let r=lL(e.step);t||(r=r.negate());const i=(u.value||lL(0)).add(r.toString()),a=C(i,!1);null===(n=e.onStep)||void 0===n||n.call(e,cL(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(o=l.value)||void 0===o||o.focus()},A=t=>{const n=lL(p(h.value));let o=n;o=n.isNaN()?u.value:C(n,t),void 0!==e.value?m(u.value,!1):o.isNaN()||m(o,!1)},D=t=>{var n;const{which:o}=t;s.value=!0,o===Im.ENTER&&(c.value||(s.value=!1),A(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t)),!1!==e.keyboard&&!c.value&&[Im.UP,Im.DOWN].includes(o)&&(E(Im.UP===o),t.preventDefault())},R=()=>{s.value=!1},z=e=>{A(!1),a.value=!1,s.value=!1,r("blur",e)};return bn((()=>e.precision),(()=>{u.value.isInvalidate()||m(u.value,!1)}),{flush:"post"}),bn((()=>e.value),(()=>{const t=lL(e.value);u.value=t;const n=lL(p(h.value));t.equals(n)&&s.value&&!e.formatter||m(t,s.value)}),{flush:"post"}),bn(h,(()=>{e.formatter&&S()}),{flush:"post"}),bn((()=>e.disabled),(e=>{e&&(a.value=!1)})),i({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()}}),()=>{const t=cl(cl({},n),e),{prefixCls:i="rc-input-number",min:s,max:c,step:d=1,defaultValue:p,value:f,disabled:g,readonly:m,keyboard:v,controls:b=!0,autofocus:w,stringMode:S,parser:$,formatter:C,precision:k,decimalSeparator:P,onChange:A,onInput:B,onPressEnter:j,onStep:N,lazy:_,class:Q,style:L}=t,H=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{a.value=!0,r("focus",e)}},Y),{},{onBlur:z,onCompositionstart:T,onCompositionend:M}),null)])])}}});function hL(e){return null!=e}const fL=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:i,fontSizeLG:l,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:h,controlHeight:f,inputPaddingHorizontal:g,colorBgContainer:m,colorTextDisabled:v,borderRadiusSM:b,borderRadiusLG:y,controlWidth:O,handleVisible:w}=e;return[{[t]:cl(cl(cl(cl({},Xu(e)),KM(e)),UM(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:y,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":cl({},WM(e)),"&-focused":cl({},XM(e)),"&-disabled":cl(cl({},YM(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":cl(cl(cl({},Xu(e)),GM(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}}}}),[t]:{"&-input":cl(cl({width:"100%",height:f-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},FM(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gL=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:cl(cl(cl({},KM(e)),UM(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:cl(cl({},WM(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},mL=Ku("InputNumber",(e=>{const t=oI(e);return[fL(t),gL(t),QS(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}))),vL=dL(),bL=jn({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:cl(cl({},vL),{size:ka(),bordered:Sa(!0),placeholder:String,name:String,id:String,type:String,addonBefore:$p.any,addonAfter:$p.any,prefix:$p.any,"onUpdate:value":vL.onChange,valueModifiers:Object,status:ka()}),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:i}=t;const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,size:u,direction:d,disabled:p}=$d("input-number",e),{compactSize:h,compactItemClassnames:f}=Hw(c,d),g=Wa(),m=Lr((()=>{var e;return null!==(e=p.value)&&void 0!==e?e:g.value})),[v,b]=mL(c),y=Lr((()=>h.value||u.value)),O=yt(void 0===e.value?e.defaultValue:e.value),w=yt(!1);bn((()=>e.value),(()=>{O.value=e.value}));const S=yt(null),$=()=>{var e;null===(e=S.value)||void 0===e||e.focus()};o({focus:$,blur:()=>{var e;null===(e=S.value)||void 0===e||e.blur()}});const x=t=>{void 0===e.value&&(O.value=t),n("update:value",t),n("change",t),l.onFieldChange()},C=e=>{w.value=!1,n("blur",e),l.onFieldBlur()},k=e=>{w.value=!0,n("focus",e)};return()=>{var t,n,o,u;const{hasFeedback:p,isFormItemInput:h,feedbackIcon:g}=a,P=null!==(t=e.id)&&void 0!==t?t:l.id.value,T=cl(cl(cl({},r),e),{id:P,disabled:m.value}),{class:M,bordered:I,readonly:E,style:A,addonBefore:D=(null===(n=i.addonBefore)||void 0===n?void 0:n.call(i)),addonAfter:R=(null===(o=i.addonAfter)||void 0===o?void 0:o.call(i)),prefix:z=(null===(u=i.prefix)||void 0===u?void 0:u.call(i)),valueModifiers:B={}}=T,j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${N}-handler-up-inner`},[i.upIcon()]):()=>br(KQ,{class:`${N}-handler-up-inner`},null),downHandler:i.downIcon?()=>br("span",{class:`${N}-handler-down-inner`},[i.downIcon()]):()=>br(jb,{class:`${N}-handler-down-inner`},null)});const L=hL(D)||hL(R),H=hL(z);if(H||p){const e=xl(`${N}-affix-wrapper`,yy(`${N}-affix-wrapper`,s.value,p),{[`${N}-affix-wrapper-focused`]:w.value,[`${N}-affix-wrapper-disabled`]:m.value,[`${N}-affix-wrapper-sm`]:"small"===y.value,[`${N}-affix-wrapper-lg`]:"large"===y.value,[`${N}-affix-wrapper-rtl`]:"rtl"===d.value,[`${N}-affix-wrapper-readonly`]:E,[`${N}-affix-wrapper-borderless`]:!I,[`${M}`]:!L&&M},b.value);Q=br("div",{class:e,style:A,onClick:$},[H&&br("span",{class:`${N}-prefix`},[z]),Q,p&&br("span",{class:`${N}-suffix`},[g])])}if(L){const e=`${N}-group`,t=`${e}-addon`,n=D?br("div",{class:t},[D]):null,o=R?br("div",{class:t},[R]):null,r=xl(`${N}-wrapper`,e,{[`${e}-rtl`]:"rtl"===d.value},b.value),i=xl(`${N}-group-wrapper`,{[`${N}-group-wrapper-sm`]:"small"===y.value,[`${N}-group-wrapper-lg`]:"large"===y.value,[`${N}-group-wrapper-rtl`]:"rtl"===d.value},yy(`${c}-group-wrapper`,s.value,p),M,b.value);Q=br("div",{class:i,style:A},[br("div",{class:r},[n&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[n]})]}),Q,o&&br(Fw,null,{default:()=>[br(by,null,{default:()=>[o]})]})])])}return v(Yh(Q,{style:A}))}}}),yL=cl(bL,{install:e=>(e.component(bL.name,bL),e)}),OL=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},wL=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:l,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:h,motionDurationMid:f,motionDurationSlow:g,fontSize:m,borderRadius:v}=e;return{[n]:cl(cl({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:m,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${f}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:r,lineHeight:`${p}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${f}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-h,zIndex:1,width:h,height:h,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},OL(e)),{"&-rtl":{direction:"rtl"}})}},SL=Ku("Layout",(e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:i}=e,l=1.25*r,a=Ju(e,{layoutHeaderHeight:2*o,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+2*i,layoutZeroTriggerSize:r});return[wL(a)]}),(e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}})),$L=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function xL(e){let{suffixCls:t,tagName:n,name:o}=e;return e=>jn({compatConfig:{MODE:3},name:o,props:$L(),setup(o,r){let{slots:i}=r;const{prefixCls:l}=$d(t,o);return()=>{const t=cl(cl({},o),{prefixCls:l.value,tagName:n});return br(e,t,i)}}})}const CL=jn({compatConfig:{MODE:3},props:$L(),setup(e,t){let{slots:n}=t;return()=>br(e.tagName,{class:e.prefixCls},n)}}),kL=jn({compatConfig:{MODE:3},inheritAttrs:!1,props:$L(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("",e),[l,a]=SL(r),s=bt([]);To(kk,{addSider:e=>{s.value=[...s.value,e]},removeSider:e=>{s.value=s.value.filter((t=>t!==e))}});const c=Lr((()=>{const{prefixCls:t,hasSider:n}=e;return{[a.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:"boolean"==typeof n?n:s.value.length>0,[`${t}-rtl`]:"rtl"===i.value}}));return()=>{const{tagName:t}=e;return l(br(t,cl(cl({},o),{class:[c.value,o.class]}),n))}}}),PL=xL({suffixCls:"layout",tagName:"section",name:"ALayout"})(kL),TL=xL({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(CL),ML=xL({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(CL),IL=xL({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(CL),EL=PL,AL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function DL(e){for(var t=1;t{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),_L=jn({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Zl({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:$p.any,width:$p.oneOfType([$p.number,$p.string]),collapsedWidth:$p.oneOfType([$p.number,$p.string]),breakpoint:$p.oneOf(ba("xs","sm","md","lg","xl","xxl","xxxl")),theme:$p.oneOf(ba("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function},{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:i}=$d("layout-sider",e),l=Mo(kk,void 0),a=yt(!!(void 0!==e.collapsed?e.collapsed:e.defaultCollapsed)),s=yt(!1);bn((()=>e.collapsed),(()=>{a.value=!!e.collapsed})),To(Ck,a);const c=(t,o)=>{void 0===e.collapsed&&(a.value=t),n("update:collapsed",t),n("collapse",t,o)},u=yt((e=>{s.value=e.matches,n("breakpoint",e.matches),a.value!==e.matches&&c(e.matches,"responsive")}));let d;function p(e){return u.value(e)}const h=NL("ant-sider-");l&&l.addSider(h),Vn((()=>{bn((()=>e.breakpoint),(()=>{try{null==d||d.removeEventListener("change",p)}catch(t){null==d||d.removeListener(p)}if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&e.breakpoint&&e.breakpoint in jL){d=n(`(max-width: ${jL[e.breakpoint]})`);try{d.addEventListener("change",p)}catch(t){d.addListener(p)}p(d)}}}),{immediate:!0})})),Kn((()=>{try{null==d||d.removeEventListener("change",p)}catch(e){null==d||d.removeListener(p)}l&&l.removeSider(h)}));const f=()=>{c(!a.value,"clickTrigger")};return()=>{var t,n;const l=i.value,{collapsedWidth:c,width:u,reverseArrow:d,zeroWidthTriggerStyle:p,trigger:h=(null===(t=r.trigger)||void 0===t?void 0:t.call(r)),collapsible:g,theme:m}=e,v=a.value?c:u,b=Zx(v)?`${v}px`:String(v),y=0===parseFloat(String(c||0))?br("span",{onClick:f,class:xl(`${l}-zero-width-trigger`,`${l}-zero-width-trigger-${d?"right":"left"}`),style:p},[h||br(BL,null,null)]):null,O={expanded:br(d?sk:LD,null,null),collapsed:br(d?LD:sk,null,null)},w=a.value?"collapsed":"expanded",S=null!==h?y||br("div",{class:`${l}-trigger`,onClick:f,style:{width:b}},[h||O[w]]):null,$=[o.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],x=xl(l,`${l}-${m}`,{[`${l}-collapsed`]:!!a.value,[`${l}-has-trigger`]:g&&null!==h&&!y,[`${l}-below`]:!!s.value,[`${l}-zero-width`]:0===parseFloat(b)},o.class);return br("aside",sl(sl({},o),{},{class:x,style:$}),[br("div",{class:`${l}-children`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),g||s.value&&y?S:null])}}}),QL=TL,LL=ML,HL=_L,FL=IL,WL=cl(EL,{Header:TL,Footer:ML,Content:IL,Sider:_L,install:e=>(e.component(EL.name,EL),e.component(TL.name,TL),e.component(ML.name,ML),e.component(_L.name,_L),e.component(IL.name,IL),e)});function XL(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,l=void 0!==i&&i,a=r.noLeading,s=void 0!==a&&a,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function h(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),i=0;ie?s?(p=Date.now(),l||(o=setTimeout(u?g:f,e))):f():!0!==l&&(o=setTimeout(u?g:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;h(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const YL=new Hc("antSpinMove",{to:{opacity:1}}),VL=new Hc("antRotate",{to:{transform:"rotate(405deg)"}}),ZL=e=>({[`${e.componentCls}`]:cl(cl({},Xu(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:YL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:VL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),UL=Ku("Spin",(e=>{const t=Ju(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[ZL(t)]}),{contentHeight:400});let KL=null;const GL=jn({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Zl({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:$p.any,delay:Number,indicator:$p.any},{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:i,direction:l}=$d("spin",e),[a,s]=UL(r),c=yt(e.spinning&&(u=e.spinning,d=e.delay,!(u&&d&&!isNaN(Number(d)))));var u,d;let p;return bn([()=>e.spinning,()=>e.delay],(()=>{null==p||p.cancel(),p=XL(e.delay,(()=>{c.value=e.spinning})),null==p||p()}),{immediate:!0,flush:"post"}),Kn((()=>{null==p||p.cancel()})),()=>{var t,u;const{class:d}=n,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr(t,null,null)},GL.install=function(e){return e.component(GL.name,GL),e};const qL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function JL(e){for(var t=1;t{const t=cl(cl(cl({},e),{size:"small"}),n);return br(qS,t,o)}}}),cH=jn({name:"MiddleSelect",inheritAttrs:!1,props:VS(),Option:qS.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=cl(cl(cl({},e),{size:"middle"}),n);return br(qS,t,o)}}}),uH=jn({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:$p.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},i=t=>{n("keypress",t,r,e.page)};return()=>{const{showTitle:t,page:n,itemRender:l}=e,{class:a,style:s}=o,c=`${e.rootPrefixCls}-item`,u=xl(c,`${c}-${e.page}`,{[`${c}-active`]:e.active,[`${c}-disabled`]:!e.page},a);return br("li",{onClick:r,onKeypress:i,title:t?String(n):null,tabindex:"0",class:u,style:s},[l({page:n,type:"page",originalElement:br("a",{rel:"nofollow"},[n])})])}}}),dH=13,pH=38,hH=40,fH=jn({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:$p.any,current:Number,pageSizeOptions:$p.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:$p.object,rootPrefixCls:String,selectPrefixCls:String,goButton:$p.any},setup(e){const t=bt(""),n=Lr((()=>!t.value||isNaN(t.value)?void 0:Number(t.value))),o=t=>`${t.value} ${e.locale.items_per_page}`,r=e=>{const{value:n,composing:o}=e.target;e.isComposing||o||t.value===n||(t.value=n)},i=o=>{const{goButton:r,quickGo:i,rootPrefixCls:l}=e;r||""===t.value||(o.relatedTarget&&(o.relatedTarget.className.indexOf(`${l}-item-link`)>=0||o.relatedTarget.className.indexOf(`${l}-item`)>=0)||i(n.value),t.value="")},l=o=>{""!==t.value&&(o.keyCode!==dH&&"click"!==o.type||(e.quickGo(n.value),t.value=""))},a=Lr((()=>{const{pageSize:t,pageSizeOptions:n}=e;return n.some((e=>e.toString()===t.toString()))?n:n.concat([t.toString()]).sort(((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))))}));return()=>{const{rootPrefixCls:n,locale:s,changeSize:c,quickGo:u,goButton:d,selectComponentClass:p,selectPrefixCls:h,pageSize:f,disabled:g}=e,m=`${n}-options`;let v=null,b=null,y=null;if(!c&&!u)return null;if(c&&p){const t=e.buildOptionText||o,n=a.value.map(((e,n)=>br(p.Option,{key:n,value:e},{default:()=>[t({value:e})]})));v=br(p,{disabled:g,prefixCls:h,showSearch:!1,class:`${m}-size-changer`,optionLabelProp:"children",value:(f||a.value[0]).toString(),onChange:e=>c(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return u&&(d&&(y="boolean"==typeof d?br("button",{type:"button",onClick:l,onKeyup:l,disabled:g,class:`${m}-quick-jumper-button`},[s.jump_to_confirm]):br("span",{onClick:l,onKeyup:l},[d])),b=br("div",{class:`${m}-quick-jumper`},[s.jump_to,$n(br("input",{disabled:g,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:i},null),[[Bm]]),s.page,y])),br("li",{class:`${m}`},[v,b])}}});function gH(e,t,n){const o=void 0===e?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const mH=jn({compatConfig:{MODE:3},name:"Pagination",mixins:[pm],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:$p.string.def("rc-pagination"),selectPrefixCls:$p.string.def("rc-select"),current:Number,defaultCurrent:$p.number.def(1),total:$p.number.def(0),pageSize:Number,defaultPageSize:$p.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:$p.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:$p.oneOfType([$p.looseBool,$p.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:$p.arrayOf($p.oneOfType([$p.number,$p.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:$p.object.def({items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}),itemRender:$p.func.def((function(e){let{originalElement:t}=e;return t})),prevIcon:$p.any,nextIcon:$p.any,jumpPrevIcon:$p.any,jumpNextIcon:$p.any,totalBoundaryShowSizeChanger:$p.number.def(50)},data(){const e=this.$props;let t=yx([this.current,this.defaultCurrent]);const n=yx([this.pageSize,this.defaultPageSize]);return t=Math.min(t,gH(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=gH(e,this.$data,this.$props);n=n>o?o:n,Kl(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick((()=>{if(this.$refs.paginationNode){const e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}}))},total(){const e={},t=gH(this.pageSize,this.$data,this.$props);if(Kl(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=0===n&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(gH(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return na(this,e,this.$props)||br("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=gH(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return r=""===t?t:isNaN(Number(t))?o:t>=n?n:Number(t),r},isValid(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==this.stateCurrent;var t},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return!(n<=t)&&e},handleKeyDown(e){e.keyCode!==pH&&e.keyCode!==hH||e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===dH?this.handleChange(t):e.keyCode===pH?this.handleChange(t-1):e.keyCode===hH&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=gH(e,this.$data,this.$props);t=t>o?o:t,0===o&&(t=this.stateCurrent),"number"==typeof e&&(Kl(this,"pageSize")||this.setState({statePageSize:e}),Kl(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const e=gH(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),Kl(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?v-1:0,A=v+1=2*I&&3!==v&&($[0]=br(uH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:o,page:o,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),$.unshift(x)),S-v>=2*I&&v!==S-2&&($[$.length-1]=br(uH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:i,page:i,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),$.push(C)),1!==o&&$.unshift(k),i!==S&&$.push(P)}let z=null;s&&(z=br("li",{class:`${e}-total-text`},[s(o,[0===o?0:(v-1)*b+1,v*b>o?o:v*b])]));const B=!D||!S,j=!R||!S,N=this.buildOptionText||this.$slots.buildOptionText;return br("ul",sl(sl({unselectable:"on",ref:"paginationNode"},w),{},{class:xl({[`${e}`]:!0,[`${e}-disabled`]:t},O)}),[z,br("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:xl(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(E)]),$,br("li",{title:a?r.next_page:null,onClick:this.next,tabindex:j?null:0,onKeypress:this.runIfEnterNext,class:xl(`${e}-next`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderNext(A)]),br(fH,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:f,selectPrefixCls:g,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:b,pageSizeOptions:m,buildOptionText:N||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:M},null)])}}),vH=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`\n &:hover ${t}-item:not(${t}-item-active),\n &:active ${t}-item:not(${t}-item-active),\n &:hover ${t}-item-link,\n &:active ${t}-item-link\n `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bH=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:cl(cl({},ZM(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},yH=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},OH=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":cl({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Zu(e))},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:cl({},Zu(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:cl(cl({},KM(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},wH=e=>{const{componentCls:t}=e;return{[`${t}-item`]:cl(cl({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Uu(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},SH=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),wH(e)),OH(e)),yH(e)),bH(e)),vH(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},$H=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},xH=Ku("Pagination",(e=>{const t=Ju(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},oI(e));return[SH(t),e.wireframe&&$H(t)]})),CH=ya(jn({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:{total:Number,defaultCurrent:Number,disabled:Sa(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Sa(),showSizeChanger:Sa(),pageSizeOptions:Ca(),buildOptionText:$a(),showQuickJumper:Pa([Boolean,Object]),showTotal:$a(),size:ka(),simple:Sa(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:$a(),role:String,responsive:Boolean,showLessItems:Sa(),onChange:$a(),onShowSizeChange:$a(),"onUpdate:current":$a(),"onUpdate:pageSize":$a()},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:i,direction:l,size:a}=$d("pagination",e),[s,c]=xH(r),u=Lr((()=>i.getPrefixCls("select",e.selectPrefixCls))),d=ex(),[p]=qa("Pagination",Ya,Tt(e,"locale"));return()=>{var t;const{itemRender:i=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:f,responsive:g}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=br("span",{class:`${e}-item-ellipsis`},[Or("•••")]);return{prevIcon:br("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?br(sk,null,null):br(LD,null,null)]),nextIcon:br("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?br(LD,null,null):br(sk,null,null)]),jumpPrevIcon:br("a",{rel:"nofollow",class:`${e}-item-link`},[br("div",{class:`${e}-item-container`},["rtl"===l.value?br(aH,{class:`${e}-item-link-icon`},null):br(nH,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:br("a",{rel:"nofollow",class:`${e}-item-link`},[br("div",{class:`${e}-item-container`},["rtl"===l.value?br(nH,{class:`${e}-item-link-icon`},null):br(aH,{class:`${e}-item-link-icon`},null),t])])}})(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:f||(v?sH:cH),locale:p.value,buildOptionText:h}),o),{class:xl({[`${r.value}-mini`]:v,[`${r.value}-rtl`]:"rtl"===l.value},o.class,c.value),itemRender:i});return s(br(mH,b,null))}}})),kH=jn({compatConfig:{MODE:3},name:"AListItemMeta",props:{avatar:$p.any,description:$p.any,prefixCls:String,title:$p.any},displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("list",e);return()=>{var t,r,i,l,a,s;const c=`${o.value}-item-meta`,u=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),d=null!==(i=e.description)&&void 0!==i?i:null===(l=n.description)||void 0===l?void 0:l.call(n),p=null!==(a=e.avatar)&&void 0!==a?a:null===(s=n.avatar)||void 0===s?void 0:s.call(n),h=br("div",{class:`${o.value}-item-meta-content`},[u&&br("h4",{class:`${o.value}-item-meta-title`},[u]),d&&br("div",{class:`${o.value}-item-meta-description`},[d])]);return br("div",{class:c},[p&&br("div",{class:`${o.value}-item-meta-avatar`},[p]),(u||d)&&h])}}}),PH=Symbol("ListContextKey"),TH=jn({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:kH,props:{prefixCls:String,extra:$p.any,actions:$p.array,grid:Object,colStyle:{type:Object,default:void 0}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:i}=Mo(PH,{grid:bt(),itemLayout:bt()}),{prefixCls:l}=$d("list",e),a=()=>{var e;const t=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];let o;return t.forEach((e=>{var t;(t=e)&&t.type===tr&&!ia(e)&&(o=!0)})),o&&t.length>1},s=()=>{var t,o;const i=null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n);return"vertical"===r.value?!!i:!a()};return()=>{var t,a,c,u,d;const{class:p}=o,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&br("ul",{class:`${f}-item-action`,key:"actions"},[v.map(((e,t)=>br("li",{key:`${f}-item-action-${t}`},[e,t!==v.length-1&&br("em",{class:`${f}-item-action-split`},null)])))]),y=i.value?"div":"li",O=br(y,sl(sl({},h),{},{class:xl(`${f}-item`,{[`${f}-item-no-flex`]:!s()},p)}),{default:()=>["vertical"===r.value&&g?[br("div",{class:`${f}-item-main`,key:"content"},[m,b]),br("div",{class:`${f}-item-extra`,key:"extra"},[g])]:[m,b,Yh(g,{key:"extra"})]]});return i.value?br(VR,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),MH=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:i,listItemPaddingSM:l,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},IH=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:l}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${l}px`}}}}}},EH=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:l,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:p,margin:h,colorText:f,colorTextDescription:g,motionDurationSlow:m,lineWidth:v}=e;return{[`${t}`]:cl(cl({},Xu(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${p}px`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},AH=Ku("List",(e=>{const t=Ju(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[EH(t),MH(t),IH(t)]}),{contentWidth:220}),DH=jn({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:TH,props:Zl({bordered:Sa(),dataSource:Ca(),extra:{validator:()=>!0},grid:wa(),itemLayout:String,loading:Pa([Boolean,Object]),loadMore:{validator:()=>!0},pagination:Pa([Boolean,Object]),prefixCls:String,rowKey:Pa([String,Number,Function]),renderItem:$a(),size:String,split:Sa(),header:{validator:()=>!0},footer:{validator:()=>!0},locale:wa()},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,i;To(PH,{grid:Tt(e,"grid"),itemLayout:Tt(e,"itemLayout")});const l={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=$d("list",e),[u,d]=AH(a),p=Lr((()=>e.pagination&&"object"==typeof e.pagination?e.pagination:{})),h=bt(null!==(r=p.value.defaultCurrent)&&void 0!==r?r:1),f=bt(null!==(i=p.value.defaultPageSize)&&void 0!==i?i:10);bn(p,(()=>{"current"in p.value&&(h.value=p.value.current),"pageSize"in p.value&&(f.value=p.value.pageSize)}));const g=[],m=e=>(t,n)=>{h.value=t,f.value=n,p.value[e]&&p.value[e](t,n)},v=m("onChange"),b=m("onShowSizeChange"),y=Lr((()=>"boolean"==typeof e.loading?{spinning:e.loading}:e.loading)),O=Lr((()=>y.value&&y.value.spinning)),w=Lr((()=>{let t="";switch(e.size){case"large":t="lg";break;case"small":t="sm"}return t})),S=Lr((()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:"vertical"===e.itemLayout,[`${a.value}-${w.value}`]:w.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:O.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:"rtl"===s.value}))),$=Lr((()=>{const t=cl(cl(cl({},l),{total:e.dataSource.length,current:h.value,pageSize:f.value}),e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t})),x=Lr((()=>{let t=[...e.dataSource];return e.pagination&&e.dataSource.length>($.value.current-1)*$.value.pageSize&&(t=[...e.dataSource].splice(($.value.current-1)*$.value.pageSize,$.value.pageSize)),t})),C=ex(),k=tx((()=>{for(let e=0;e{if(!e.grid)return;const t=k.value&&e.grid[k.value]?e.grid[k.value]:e.grid.column;return t?{width:100/t+"%",maxWidth:100/t+"%"}:void 0}));return()=>{var t,r,i,l,s,p,h,f;const m=null!==(t=e.loadMore)&&void 0!==t?t:null===(r=n.loadMore)||void 0===r?void 0:r.call(n),w=null!==(i=e.footer)&&void 0!==i?i:null===(l=n.footer)||void 0===l?void 0:l.call(n),C=null!==(s=e.header)&&void 0!==s?s:null===(p=n.header)||void 0===p?void 0:p.call(n),k=ql(null===(h=n.default)||void 0===h?void 0:h.call(n)),T=!!(m||e.pagination||w),M=xl(cl(cl({},S.value),{[`${a.value}-something-after-last-item`]:T}),o.class,d.value),I=e.pagination?br("div",{class:`${a.value}-pagination`},[br(CH,sl(sl({},$.value),{},{onChange:v,onShowSizeChange:b}),null)]):null;let E=O.value&&br("div",{style:{minHeight:"53px"}},null);if(x.value.length>0){g.length=0;const t=x.value.map(((t,o)=>((t,o)=>{var r;const i=null!==(r=e.renderItem)&&void 0!==r?r:n.renderItem;if(!i)return null;let l;const a=typeof e.rowKey;return l="function"===a?e.rowKey(t):"string"===a||"number"===a?t[e.rowKey]:t.key,l||(l=`list-item-${o}`),g[o]=l,i({item:t,index:o})})(t,o))),o=t.map(((e,t)=>br("div",{key:g[t],style:P.value},[e])));E=e.grid?br(JD,{gutter:e.grid.gutter},{default:()=>[o]}):br("ul",{class:`${a.value}-items`},[t])}else k.length||O.value||(E=br("div",{class:`${a.value}-empty-text`},[(null===(f=e.locale)||void 0===f?void 0:f.emptyText)||c("List")]));const A=$.value.position||"bottom";return u(br("div",sl(sl({},o),{},{class:M}),[("top"===A||"both"===A)&&I,C&&br("div",{class:`${a.value}-header`},[C]),br(GL,y.value,{default:()=>[E,k]}),w&&br("div",{class:`${a.value}-footer`},[w]),m||("bottom"===A||"both"===A)&&I]))}}});DH.install=function(e){return e.component(DH.name,DH),e.component(DH.Item.name,DH.Item),e.component(DH.Item.Meta.name,DH.Item.Meta),e};const RH=DH;function zH(e){return(e||"").toLowerCase()}function BH(e,t){const{measureLocation:n,prefix:o,targetText:r,selectionStart:i,split:l}=t;let a=e.slice(0,n);a[a.length-l.length]===l&&(a=a.slice(0,a.length-l.length)),a&&(a=`${a}${l}`);let s=function(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const i=t.length;for(let l=0;l[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:i,onFocus:l=_H,loading:a}=Mo(NH,{activeIndex:yt(),loading:yt(!1)});let s;const c=e=>{clearTimeout(s),s=setTimeout((()=>{l(e)}))};return Kn((()=>{clearTimeout(s)})),()=>{var t;const{prefixCls:l,options:s}=e,u=s[o.value]||{};return br(uP,{prefixCls:`${l}-menu`,activeKey:u.value,onSelect:e=>{let{key:t}=e;const n=s.find((e=>{let{value:n}=e;return n===t}));i(n)},onMousedown:c},{default:()=>[!a.value&&s.map(((e,t)=>{var o,i;const{value:l,disabled:a,label:s=e.value,class:c,style:u}=e;return br(Bk,{key:l,disabled:a,onMouseenter:()=>{r(t)},class:c,style:u},{default:()=>[null!==(i=null===(o=n.option)||void 0===o?void 0:o.call(n,e))&&void 0!==i?i:"function"==typeof s?s(e):s]})})),a.value||0!==s.length?null:br(Bk,{key:"notFoundContent",disabled:!0},{default:()=>[null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n)]}),a.value&&br(Bk,{key:"loading",disabled:!0},{default:()=>[br(GL,{size:"small"},null)]})]})}}}),LH={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},HH=jn({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:t}=e;return br(QH,{prefixCls:o(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},i=Lr((()=>{const{placement:t,direction:n}=e;let o="topRight";return o="rtl"===n?"top"===t?"topLeft":"bottomLeft":"top"===t?"topRight":"bottomRight",o}));return()=>{const{visible:t,transitionName:l,getPopupContainer:a}=e;return br(Pm,{prefixCls:o(),popupVisible:t,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:l,builtinPlacements:LH,getPopupContainer:a},{default:n.default})}}}),FH=ba("top","bottom"),WH={autofocus:{type:Boolean,default:void 0},prefix:$p.oneOfType([$p.string,$p.arrayOf($p.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:$p.oneOf(FH),character:$p.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:Ca(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},XH=cl(cl({},WH),{dropdownClassName:String}),YH={prefix:"@",split:" ",rows:1,validateSearch:function(e,t){const{split:n}=t;return!n||-1===e.indexOf(n)},filterOption:()=>jH};Zl(XH,YH);var VH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{c.value=e.value}));const u=e=>{n("change",e)},d=e=>{let{target:{value:t,composing:n},isComposing:o}=e;o||n||u(t)},p=e=>{cl(c,{measuring:!1,measureLocation:0,measureText:null}),null==e||e()},h=e=>{const{which:t}=e;if(c.measuring)if(t===Im.UP||t===Im.DOWN){const n=S.value.length,o=t===Im.UP?-1:1,r=(c.activeIndex+o+n)%n;c.activeIndex=r,e.preventDefault()}else if(t===Im.ESC)p();else if(t===Im.ENTER){if(e.preventDefault(),!S.value.length)return void p();const t=S.value[c.activeIndex];O(t)}},f=t=>{const{key:o,which:r}=t,{measureText:i,measuring:l}=c,{prefix:a,validateSearch:s}=e,u=t.target;if(u.composing)return;const d=function(e){const{selectionStart:t}=e;return e.value.slice(0,t)}(u),{location:h,prefix:f}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce(((t,n)=>{const o=e.lastIndexOf(n);return o>t.location?{location:o,prefix:n}:t}),{location:-1,prefix:""})}(d,a);if(-1===[Im.ESC,Im.UP,Im.DOWN,Im.ENTER].indexOf(r))if(-1!==h){const t=d.slice(h+f.length),r=s(t,e),a=!!w(t).length;r?(o===f||"Shift"===o||l||t!==i&&a)&&((e,t,n)=>{cl(c,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})})(t,f,h):l&&p(),r&&n("search",t,f)}else l&&p()},g=e=>{c.measuring||n("pressenter",e)},m=e=>{b(e)},v=e=>{y(e)},b=e=>{clearTimeout(s.value);const{isFocus:t}=c;!t&&e&&n("focus",e),c.isFocus=!0},y=e=>{s.value=setTimeout((()=>{c.isFocus=!1,p(),n("blur",e)}),100)},O=t=>{const{split:o}=e,{value:r=""}=t,{text:i,selectionLocation:l}=BH(c.value,{measureLocation:c.measureLocation,targetText:r,prefix:c.measurePrefix,selectionStart:a.value.selectionStart,split:o});u(i),p((()=>{var e,t;e=a.value,t=l,e.setSelectionRange(t,t),e.blur(),e.focus()})),n("select",t,c.measurePrefix)},w=t=>{const n=t||c.measureText||"",{filterOption:o}=e;return e.options.filter((e=>0==!!o||o(n,e)))},S=Lr((()=>w()));return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),To(NH,{activeIndex:Tt(c,"activeIndex"),setActiveIndex:e=>{c.activeIndex=e},selectOption:O,onFocus:b,onBlur:y,loading:Tt(e,"loading")}),Un((()=>{Ft((()=>{c.measuring&&(l.value.scrollTop=a.value.scrollTop)}))})),()=>{const{measureLocation:t,measurePrefix:n,measuring:r}=c,{prefixCls:s,placement:u,transitionName:p,getPopupContainer:b,direction:y}=e,O=VH(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:w,style:$}=o,x=VH(o,["class","style"]),C=cl(cl(cl({},xd(O,["value","prefix","split","validateSearch","filterOption","options","loading"])),x),{onChange:ZH,onSelect:ZH,value:c.value,onInput:d,onBlur:v,onKeydown:h,onKeyup:f,onFocus:m,onPressenter:g});return br("div",{class:xl(s,w),style:$},[$n(br("textarea",sl({ref:a},C),null),[[Bm]]),r&&br("div",{ref:l,class:`${s}-measure`},[c.value.slice(0,t),br(HH,{prefixCls:s,transitionName:p,dropdownClassName:e.dropdownClassName,placement:u,options:r?S.value:[],visible:!0,direction:y,getPopupContainer:b},{default:()=>[br("span",null,[n])],notFoundContent:i.notFoundContent,option:i.option}),c.value.slice(t+n.length)])])}}}),KH=cl(cl({},{value:String,disabled:Boolean,payload:wa()}),{label:xa([])}),GH={name:"Option",props:KH,render(e,t){let{slots:n}=t;var o;return null===(o=n.default)||void 0===o?void 0:o.call(n)}};cl({compatConfig:{MODE:3}},GH);const qH=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:l,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:p,borderRadiusLG:h,boxShadowSecondary:f}=e,g=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:cl(cl(cl(cl(cl({},Xu(e)),KM(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),UM(e,t)),{"&-disabled":{"> textarea":cl({},YM(e))},"&-focused":cl({},XM(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":cl({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},FM(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":cl(cl({},Xu(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:p,borderRadius:h,outline:"none",boxShadow:f,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":cl(cl({},Wu),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${g}px ${r}px`,color:i,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},JH=Ku("Mentions",(e=>{const t=oI(e);return[qH(t)]}),(e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50})));var eF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rOy(v.status,e.status)));dk({prefixCls:Lr((()=>`${s.value}-menu`)),mode:Lr((()=>"vertical")),selectable:Lr((()=>!1)),onClick:()=>{},validator:e=>{Ts()}}),bn((()=>e.value),(e=>{g.value=e}));const y=e=>{h.value=!0,o("focus",e)},O=e=>{h.value=!1,o("blur",e),m.onFieldBlur()},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n{void 0===e.value&&(g.value=t),o("update:value",t),o("change",t),m.onFieldChange()},$=()=>{const t=e.notFoundContent;return void 0!==t?t:n.notFoundContent?n.notFoundContent():c("Select")};i({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const x=Lr((()=>e.loading?tF:e.filterOption));return()=>{const{disabled:t,getPopupContainer:o,rows:i=1,id:l=m.id.value}=e,a=eF(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:c,feedbackIcon:C}=v,{class:k}=r,P=eF(r,["class"]),T=xd(a,["defaultValue","onUpdate:value","prefixCls"]),M=xl({[`${s.value}-disabled`]:t,[`${s.value}-focused`]:h.value,[`${s.value}-rtl`]:"rtl"===u.value},yy(s.value,b.value),!c&&k,p.value),I=cl(cl(cl(cl({prefixCls:s.value},T),{disabled:t,direction:u.value,filterOption:x.value,getPopupContainer:o,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:br(GL,{size:"small"},null)}]:e.options||ql((null===(E=n.default)||void 0===E?void 0:E.call(n))||[]).map((e=>{var t,n;return cl(cl({},ta(e)),{label:null===(n=null===(t=e.children)||void 0===t?void 0:t.default)||void 0===n?void 0:n.call(t)})})),class:M}),P),{rows:i,onChange:S,onSelect:w,onFocus:y,onBlur:O,ref:f,value:g.value,id:l});var E;const A=br(UH,sl(sl({},I),{},{dropdownClassName:p.value}),{notFoundContent:$,option:n.option});return d(c?br("div",{class:xl(`${s.value}-affix-wrapper`,yy(`${s.value}-affix-wrapper`,b.value,c),k,p.value)},[A,br("span",{class:`${s.value}-suffix`},[C])]):A)}}}),oF=jn(cl(cl({compatConfig:{MODE:3}},GH),{name:"AMentionsOption",props:KH})),rF=cl(nF,{Option:oF,getMentions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return r.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))},install:e=>(e.component(nF.name,nF),e.component(oF.name,oF),e)});let iF;const lF=e=>{iF={x:e.pageX,y:e.pageY},setTimeout((()=>iF=null),100)};HD()&&Ia(document.documentElement,"click",lF,!0);const aF=jn({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Zl({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:$p.any,closable:{type:Boolean,default:void 0},closeIcon:$p.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:$p.any,okText:$p.any,okType:String,cancelText:$p.any,icon:$p.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:wa(),cancelButtonProps:wa(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:wa(),maskStyle:wa(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:wa()},{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=qa("Modal"),{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c}=$d("modal",e),[u,d]=DQ(l);Ts(void 0===e.visible);const p=e=>{n("update:visible",!1),n("update:open",!1),n("cancel",e),n("change",!1)},h=e=>{n("ok",e)},f=()=>{var t,n;const{okText:r=(null===(t=o.okText)||void 0===t?void 0:t.call(o)),okType:l,cancelText:a=(null===(n=o.cancelText)||void 0===n?void 0:n.call(o)),confirmLoading:s}=e;return br(er,null,[br(WC,sl({onClick:p},e.cancelButtonProps),{default:()=>[a||i.value.cancelText]}),br(WC,sl(sl({},aC(l)),{},{loading:s,onClick:h},e.okButtonProps),{default:()=>[r||i.value.okText]})])};return()=>{var t,n;const{prefixCls:i,visible:h,open:g,wrapClassName:m,centered:v,getContainer:b,closeIcon:y=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o)),focusTriggerAfterClose:O=!0}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbr("span",{class:`${l.value}-close-x`},[y||br(qb,{class:`${l.value}-close-icon`},null)])})))}}}),sF=()=>{const e=yt(!1);return Kn((()=>{e.value=!0})),e};function cF(e){return!(!e||!e.then)}const uF=jn({compatConfig:{MODE:3},name:"ActionButton",props:{type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:wa(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean},setup(e,t){let{slots:n}=t;const o=yt(!1),r=yt(),i=yt(!1);let l;const a=sF();Vn((()=>{e.autofocus&&(l=setTimeout((()=>{var e,t;return null===(t=null===(e=ea(r.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)})))})),Kn((()=>{clearTimeout(l)}));const s=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r{const{actionFn:n}=e;if(o.value)return;if(o.value=!0,!n)return void s();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!cF(r))return o.value=!1,void s(t)}else if(n.length)r=n(e.close),o.value=!1;else if(r=n(),!r)return void s();(e=>{cF(e)&&(i.value=!0,e.then((function(){a.value||(i.value=!1),s(...arguments),o.value=!1}),(e=>(a.value||(i.value=!1),o.value=!1,Promise.reject(e)))))})(r)};return()=>{const{type:t,prefixCls:o,buttonProps:l}=e;return br(WC,sl(sl(sl({},aC(t)),{},{onClick:c,loading:i.value,prefixCls:o},l),{},{ref:r}),n)}}});function dF(e){return"function"==typeof e?e():e}const pF=jn({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=qa("Modal");return()=>{const{icon:t,onCancel:r,onOk:i,close:l,okText:a,closable:s=!1,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,maskStyle:f,okButtonProps:g,cancelButtonProps:m,okCancel:v,width:b=416,mask:y=!0,maskClosable:O=!1,type:w,open:S,title:$,content:x,direction:C,closeIcon:k,modalRender:P,focusTriggerAfterClose:T,rootPrefixCls:M,bodyStyle:I,wrapClassName:E,footer:A}=e;let D=t;if(!t&&null!==t)switch(w){case"info":D=br(L$,null,null);break;case"success":D=br(E$,null,null);break;case"error":D=br(oy,null,null);break;default:D=br(B$,null,null)}const R=e.okType||"primary",z=e.prefixCls||"ant-modal",B=`${z}-confirm`,j=n.style||{},N=null!=v?v:"confirm"===w,_=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),Q=`${z}-confirm`,L=xl(Q,`${Q}-${e.type}`,{[`${Q}-rtl`]:"rtl"===C},n.class),H=o.value,F=N&&br(uF,{actionFn:r,close:l,autofocus:"cancel"===_,buttonProps:m,prefixCls:`${M}-btn`},{default:()=>[dF(e.cancelText)||H.cancelText]});return br(aF,{prefixCls:z,class:L,wrapClassName:xl({[`${Q}-centered`]:!!p},E),onCancel:e=>null==l?void 0:l({triggerCancel:!0},e),open:S,title:"",footer:"",transitionName:am(M,"zoom",e.transitionName),maskTransitionName:am(M,"fade",e.maskTransitionName),mask:y,maskClosable:O,maskStyle:f,style:j,bodyStyle:I,width:b,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,closable:s,closeIcon:k,modalRender:P,focusTriggerAfterClose:T},{default:()=>[br("div",{class:`${B}-body-wrapper`},[br("div",{class:`${B}-body`},[dF(D),void 0===$?null:br("span",{class:`${B}-title`},[dF($)]),br("div",{class:`${B}-content`},[dF(x)])]),void 0!==A?dF(A):br("div",{class:`${B}-btns`},[F,br(uF,{type:R,actionFn:i,close:l,autofocus:"ok"===_,buttonProps:g,prefixCls:`${M}-btn`},{default:()=>[dF(a)||(N?H.okText:H.justOkText)]})])])]})}}}),hF=[],fF=e=>{const t=document.createDocumentFragment();let n=cl(cl({},xd(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(Fi(null,t),o.component.update(),o=null);for(var n=arguments.length,r=new Array(n),l=0;le&&e.triggerCancel));e.onCancel&&a&&e.onCancel((()=>{}),...r.slice(1));for(let e=0;e{"function"==typeof e.afterClose&&e.afterClose(),r.apply(this,o)}}),n.visible&&delete n.visible,l(n)}function l(e){n="function"==typeof e?e(n):cl(cl({},n),e),o&&(cl(o.component.props,n),o.component.update())}const a=e=>{const t=oj,n=t.prefixCls,o=e.prefixCls||`${n}-modal`,r=t.iconPrefixCls,i=Hz;return br(aj,sl(sl({},t),{},{prefixCls:n}),{default:()=>[br(pF,sl(sl({},e),{},{rootPrefixCls:n,prefixCls:o,iconPrefixCls:r,locale:i,cancelText:e.cancelText||i.cancelText}),null)]})};return o=function(n){const o=br(a,cl({},n));return o.appContext=e.parentContext||e.appContext||o.appContext,Fi(o,t),o}(n),hF.push(i),{destroy:i,update:l}};function gF(e){return cl(cl({},e),{type:"warning"})}function mF(e){return cl(cl({},e),{type:"info"})}function vF(e){return cl(cl({},e),{type:"success"})}function bF(e){return cl(cl({},e),{type:"error"})}function yF(e){return cl(cl({},e),{type:"confirm"})}const OF=jn({name:"HookModal",inheritAttrs:!1,props:Zl({config:Object,afterClose:Function,destroyAction:Function,open:Boolean},{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=Lr((()=>e.open)),i=Lr((()=>e.config)),{direction:l,getPrefixCls:a}=Ha(),s=a("modal"),c=a(),u=()=>{var t,n;null==e||e.afterClose(),null===(n=(t=i.value).afterClose)||void 0===n||n.call(t)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const p=null!==(o=i.value.okCancel)&&void 0!==o?o:"confirm"===i.value.type,[h]=qa("Modal",Ka.Modal);return()=>br(pF,sl(sl({prefixCls:s,rootPrefixCls:c},i.value),{},{close:d,open:r.value,afterClose:u,okText:i.value.okText||(p?null==h?void 0:h.value.okText:null==h?void 0:h.value.justOkText),direction:i.value.direction||l.value,cancelText:i.value.cancelText||(null==h?void 0:h.value.cancelText)}),null)}});let wF=0;const SF=jn({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=yt([]);return n({addModal:e=>(o.value.push(e),o.value=o.value.slice(),()=>{o.value=o.value.filter((t=>t!==e))})}),()=>o.value.map((e=>e()))}});function $F(){const e=yt(null),t=yt([]);bn(t,(()=>{t.value.length&&([...t.value].forEach((e=>{e()})),t.value=[])}),{immediate:!0});const n=n=>function(o){var r;wF+=1;const i=yt(!0),l=yt(null),a=yt(St(o)),s=yt({});bn((()=>o),(e=>{d(cl(cl({},vt(e)?e.value:e),s.value))}));const c=function(){i.value=!1;for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));a.value.onCancel&&o&&a.value.onCancel((()=>{}),...t.slice(1))};let u;u=null===(r=e.value)||void 0===r?void 0:r.addModal((()=>br(OF,{key:`modal-${wF}`,config:n(a.value),ref:l,open:i.value,destroyAction:c,afterClose:()=>{null==u||u()}},null))),u&&hF.push(u);const d=e=>{a.value=cl(cl({},a.value),e)};return{destroy:()=>{l.value?c():t.value=[...t.value,c]},update:e=>{s.value=e,l.value?d(e):t.value=[...t.value,()=>d(e)]}}},o=Lr((()=>({info:n(mF),success:n(vF),error:n(bF),warning:n(gF),confirm:n(yF)}))),r=Symbol("modalHolderKey");return[o.value,()=>br(SF,{key:r,ref:e},null)]}function xF(e){return fF(gF(e))}aF.useModal=$F,aF.info=function(e){return fF(mF(e))},aF.success=function(e){return fF(vF(e))},aF.error=function(e){return fF(bF(e))},aF.warning=xF,aF.warn=xF,aF.confirm=function(e){return fF(yF(e))},aF.destroyAll=function(){for(;hF.length;){const e=hF.pop();e&&e()}},aF.install=function(e){return e.component(aF.name,aF),e};const CF=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:i="",prefixCls:l}=e;let a;if("function"==typeof n)a=n({value:t});else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,i),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${r}${s}`),a=[br("span",{key:"int",class:`${l}-content-value-int`},[e,t]),s&&br("span",{key:"decimal",class:`${l}-content-value-decimal`},[s])]}else a=e}return br("span",{class:`${l}-content-value`},[a])};CF.displayName="StatisticNumber";const kF=CF,PF=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:i,colorTextHeading:l,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:cl(cl({},Xu(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},TF=Ku("Statistic",(e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=Ju(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[PF(r)]})),MF=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Pa([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:$a(),formatter:xa(),precision:Number,prefix:{validator:()=>!0},suffix:{validator:()=>!0},title:{validator:()=>!0},loading:Sa()}),IF=jn({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Zl(MF(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("statistic",e),[l,a]=TF(r);return()=>{var t,s,c,u,d,p,h;const{value:f=0,valueStyle:g,valueRender:m}=e,v=r.value,b=null!==(t=e.title)&&void 0!==t?t:null===(s=n.title)||void 0===s?void 0:s.call(n),y=null!==(c=e.prefix)&&void 0!==c?c:null===(u=n.prefix)||void 0===u?void 0:u.call(n),O=null!==(d=e.suffix)&&void 0!==d?d:null===(p=n.suffix)||void 0===p?void 0:p.call(n),w=null!==(h=e.formatter)&&void 0!==h?h:n.formatter;let S=br(kF,sl({"data-for-update":Date.now()},cl(cl({},e),{prefixCls:v,value:f,formatter:w})),null);return m&&(S=m(S)),l(br("div",sl(sl({},o),{},{class:[v,{[`${v}-rtl`]:"rtl"===i.value},o.class,a.value]}),[b&&br("div",{class:`${v}-title`},[b]),br($E,{paragraph:!1,loading:e.loading},{default:()=>[br("div",{style:g,class:`${v}-content`},[y&&br("span",{class:`${v}-content-prefix`},[y]),S,O&&br("span",{class:`${v}-content-suffix`},[O])])]})]))}}}),EF=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function AF(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map((e=>e.slice(1,-1))),i=t.replace(o,"[]"),l=EF.reduce(((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let a=0;return l.replace(o,(()=>{const e=r[a];return a+=1,e}))}(Math.max(o-r,0),n)}function DF(e){return new Date(e).getTime()}const RF=jn({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Zl(cl(cl({},MF()),{value:Pa([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=bt(),i=bt(),l=()=>{const{value:t}=e;DF(t)>=Date.now()?a():s()},a=()=>{if(r.value)return;const t=DF(e.value);r.value=setInterval((()=>{i.value.$forceUpdate(),t>Date.now()&&n("change",t-Date.now()),l()}),33.333333333333336)},s=()=>{const{value:t}=e;r.value&&(clearInterval(r.value),r.value=void 0,DF(t){let{value:n,config:o}=t;const{format:r}=e;return AF(n,cl(cl({},o),{format:r}))},u=e=>e;return Vn((()=>{l()})),Un((()=>{l()})),Kn((()=>{s()})),()=>{const t=e.value;return br(IF,sl({ref:i},cl(cl({},xd(e,["onFinish","onChange"])),{value:t,valueRender:u,formatter:c})),o)}}});IF.Countdown=RF,IF.install=function(e){return e.component(IF.name,IF),e.component(IF.Countdown.name,IF.Countdown),e};const zF=IF.Countdown,BF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function jF(e){for(var t=1;t{const{keyCode:t}=e;t===Im.ENTER&&e.preventDefault()},s=e=>{const{keyCode:t}=e;t===Im.ENTER&&o("click",e)},c=e=>{o("click",e)},u=()=>{l.value&&l.value.focus()};return Vn((()=>{e.autofocus&&u()})),i({focus:u,blur:()=>{l.value&&l.value.blur()}}),()=>{var t;const{noStyle:o,disabled:i}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var t,n,o;return null!==(o=null!==(t=e.size)&&void 0!==t?t:null===(n=null==i?void 0:i.value)||void 0===n?void 0:n.size)&&void 0!==o?o:"small"})),d=bt(),p=bt();bn(u,(()=>{[d.value,p.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map((e=>function(e){return"string"==typeof e?ZF[e]:e||0}(e)))}),{immediate:!0});const h=Lr((()=>void 0===e.align&&"horizontal"===e.direction?"center":e.align)),f=Lr((()=>xl(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:"rtl"===l.value,[`${r.value}-align-${h.value}`]:h.value}))),g=Lr((()=>"rtl"===l.value?"marginLeft":"marginRight")),m=Lr((()=>{const t={};return c.value&&(t.columnGap=`${d.value}px`,t.rowGap=`${p.value}px`),cl(cl({},t),e.wrap&&{flexWrap:"wrap",marginBottom:-p.value+"px"})}));return()=>{var t,i;const{wrap:l,direction:s="horizontal"}=e,u=null===(t=n.default)||void 0===t?void 0:t.call(n),h=la(u),v=h.length;if(0===v)return null;const b=null===(i=n.split)||void 0===i?void 0:i.call(n),y=`${r.value}-item`,O=d.value,w=v-1;return br("div",sl(sl({},o),{},{class:[f.value,o.class],style:[m.value,o.style]}),[h.map(((e,t)=>{const n=u.indexOf(e);let o={};return c.value||("vertical"===s?t{const{componentCls:t,antCls:n}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":cl(cl({},Lu(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:e.marginXS/2+"px 0",overflow:"hidden"},"&-title":cl({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Wu),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":cl({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Wu),"&-extra":{margin:e.marginXS/2+"px 0",whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},qF=Ku("PageHeader",(e=>{const t=Ju(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[GF(t)]})),JF=ya(jn({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:{backIcon:{validator:()=>!0},prefixCls:String,title:{validator:()=>!0},subTitle:{validator:()=>!0},breadcrumb:$p.object,tags:{validator:()=>!0},footer:{validator:()=>!0},extra:{validator:()=>!0},avatar:wa(),ghost:{type:Boolean,default:void 0},onBack:Function},slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,pageHeader:a}=$d("page-header",e),[s,c]=qF(i),u=yt(!1),d=sF(),p=e=>{let{width:t}=e;d.value||(u.value=t<768)},h=Lr((()=>{var t,n,o;return null===(o=null!==(t=e.ghost)&&void 0!==t?t:null===(n=null==a?void 0:a.value)||void 0===n?void 0:n.ghost)||void 0===o||o})),f=()=>{var t;return e.breadcrumb?br(fP,e.breadcrumb,null):null===(t=o.breadcrumb)||void 0===t?void 0:t.call(o)},g=()=>{var t,r,a,s,c,u,d,p,h;const{avatar:f}=e,g=null!==(t=e.title)&&void 0!==t?t:null===(r=o.title)||void 0===r?void 0:r.call(o),m=null!==(a=e.subTitle)&&void 0!==a?a:null===(s=o.subTitle)||void 0===s?void 0:s.call(o),v=null!==(c=e.tags)&&void 0!==c?c:null===(u=o.tags)||void 0===u?void 0:u.call(o),b=null!==(d=e.extra)&&void 0!==d?d:null===(p=o.extra)||void 0===p?void 0:p.call(o),y=`${i.value}-heading`,O=g||m||v||b;if(!O)return null;const w=(()=>{var t,n,r;return null!==(r=null!==(t=e.backIcon)&&void 0!==t?t:null===(n=o.backIcon)||void 0===n?void 0:n.call(o))&&void 0!==r?r:"rtl"===l.value?br(XF,null,null):br(QF,null,null)})(),S=(t=>t&&e.onBack?br(Ga,{componentName:"PageHeader",children:e=>{let{back:o}=e;return br("div",{class:`${i.value}-back`},[br(VF,{onClick:e=>{n("back",e)},class:`${i.value}-back-button`,"aria-label":o},{default:()=>[t]})])}},null):null)(w);return br("div",{class:y},[(S||f||O)&&br("div",{class:`${y}-left`},[S,f?br(lx,f,null):null===(h=o.avatar)||void 0===h?void 0:h.call(o),g&&br("span",{class:`${y}-title`,title:"string"==typeof g?g:void 0},[g]),m&&br("span",{class:`${y}-sub-title`,title:"string"==typeof m?m:void 0},[m]),v&&br("span",{class:`${y}-tags`},[v])]),b&&br("span",{class:`${y}-extra`},[br(KF,null,{default:()=>[b]})])])},m=()=>{var t,n;const r=null!==(t=e.footer)&&void 0!==t?t:la(null===(n=o.footer)||void 0===n?void 0:n.call(o));return null==(l=r)||""===l||Array.isArray(l)&&0===l.length?null:br("div",{class:`${i.value}-footer`},[r]);var l},v=e=>br("div",{class:`${i.value}-content`},[e]);return()=>{var t,n;const a=(null===(t=e.breadcrumb)||void 0===t?void 0:t.routes)||o.breadcrumb,d=e.footer||o.footer,b=ql(null===(n=o.default)||void 0===n?void 0:n.call(o)),y=xl(i.value,{"has-breadcrumb":a,"has-footer":d,[`${i.value}-ghost`]:h.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-compact`]:u.value},r.class,c.value);return s(br(ua,{onResize:p},{default:()=>[br("div",sl(sl({},r),{},{class:y}),[f(),g(),b.length?v(b):null,m()])]}))}}})),eW=Ku("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXS:l,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+l,marginBottom:l,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}})),tW=ya(jn({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Zl(cl(cl({},hx()),{prefixCls:String,content:xa(),title:xa(),description:xa(),okType:ka("primary"),disabled:{type:Boolean,default:!1},okText:xa(),cancelText:xa(),icon:xa(),okButtonProps:wa(),cancelButtonProps:wa(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),cl(cl({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=bt();Ts(void 0===e.visible),r({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=l.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const[a,s]=Lv(!1,{value:Tt(e,"open")}),c=(t,n)=>{void 0===e.open&&s(t),o("update:open",t),o("openChange",t,n)},u=e=>{c(!1,e)},d=t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(e,t)},p=t=>{var n;c(!1,t),null===(n=e.onCancel)||void 0===n||n.call(e,t)},h=t=>{const{disabled:n}=e;n||c(t)},{prefixCls:f,getPrefixCls:g}=$d("popconfirm",e),m=Lr((()=>g())),v=Lr((()=>g("btn"))),[b]=eW(f),[y]=qa("Popconfirm",Ka.Popconfirm),O=()=>{var t,o,r,i,l;const{okButtonProps:a,cancelButtonProps:s,title:c=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:h=(null===(o=n.description)||void 0===o?void 0:o.call(n)),cancelText:g=(null===(r=n.cancel)||void 0===r?void 0:r.call(n)),okText:m=(null===(i=n.okText)||void 0===i?void 0:i.call(n)),okType:b,icon:O=(null===(l=n.icon)||void 0===l?void 0:l.call(n))||br(B$,null,null),showCancel:w=!0}=e,{cancelButton:S,okButton:$}=n,x=cl({onClick:p,size:"small"},s),C=cl(cl(cl({onClick:d},aC(b)),{size:"small"}),a);return br("div",{class:`${f.value}-inner-content`},[br("div",{class:`${f.value}-message`},[O&&br("span",{class:`${f.value}-message-icon`},[O]),br("div",{class:[`${f.value}-message-title`,{[`${f.value}-message-title-only`]:!!h}]},[c])]),h&&br("div",{class:`${f.value}-description`},[h]),br("div",{class:`${f.value}-buttons`},[w?S?S(x):br(WC,x,{default:()=>[g||y.value.cancelText]}):null,$?$(C):br(uF,{buttonProps:cl(cl({size:"small"},aC(b)),a),actionFn:d,close:u,prefixCls:v.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[m||y.value.okText]})])])};return()=>{var t;const{placement:o,overlayClassName:r,trigger:s="click"}=e,u=xd(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[Vh((null===(t=n.default)||void 0===t?void 0:t.call(n))||[],{onKeydown:e=>{(e=>{e.keyCode===Im.ESC&&a&&c(!1,e)})(e)}},!1)],content:O}))}}})),nW=["normal","exception","active","success"],oW=()=>({prefixCls:String,type:ka(),percent:Number,format:$a(),status:ka(),showInfo:Sa(),strokeWidth:Number,strokeLinecap:ka(),strokeColor:xa(),trailColor:String,width:Number,success:wa(),gapDegree:Number,gapPosition:ka(),size:Pa([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:ka()});function rW(e){return!e||e<0?0:e>100?100:e}function iW(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(xp(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const lW=(e,t,n)=>{var o,r,i,l;let a=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=o?o:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return{width:a,height:s}},aW=(e,t)=>{const{from:n=xu.blue,to:o=xu.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`}:{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},sW=jn({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:cl(cl({},oW()),{strokeColor:xa(),direction:ka()}),setup(e,t){let{slots:n,attrs:o}=t;const r=Lr((()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!=typeof t?aW(t,n):{backgroundColor:t}})),i=Lr((()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0)),l=Lr((()=>e.trailColor?{backgroundColor:e.trailColor}:void 0)),a=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]})),s=Lr((()=>lW(a.value,"line",{strokeWidth:e.strokeWidth}))),c=Lr((()=>{const{percent:t}=e;return cl({width:`${rW(t)}%`,height:`${s.value.height}px`,borderRadius:i.value},r.value)})),u=Lr((()=>iW(e))),d=Lr((()=>{const{success:t}=e;return{width:`${rW(u.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:null==t?void 0:t.strokeColor}})),p={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var t;return br(er,null,[br("div",sl(sl({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,p]}),[br("div",{class:`${e.prefixCls}-inner`,style:l.value},[br("div",{class:`${e.prefixCls}-bg`,style:c.value},null),void 0!==u.value?br("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});let cW=0;function uW(e){return+e.replace("%","")}function dW(e){return Array.isArray(e)?e:[e]}function pW(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=50-o/2;let l=0,a=-i,s=0,c=-2*i;switch(arguments.length>5?arguments[5]:void 0){case"left":l=-i,a=0,s=2*i,c=0;break;case"right":l=i,a=0,s=-2*i,c=0;break;case"bottom":a=i,c=2*i}const u=`M 50,50 m ${l},${a}\n a ${i},${i} 0 1 1 ${s},${-c}\n a ${i},${i} 0 1 1 ${-s},${c}`,d=2*Math.PI*i;return{pathString:u,pathStyle:{stroke:n,strokeDasharray:`${t/100*(d-r)}px ${d}px`,strokeDashoffset:`-${r/2+e/100*(d-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}const hW=jn({compatConfig:{MODE:3},name:"VCCircle",props:Zl({gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},{percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1}),setup(e){cW+=1;const t=bt(cW),n=Lr((()=>dW(e.percent))),o=Lr((()=>dW(e.strokeColor))),[r,i]=CI();(e=>{const t=bt(null);Un((()=>{const n=Date.now();let o=!1;e.value.forEach((e=>{const r=(null==e?void 0:e.$el)||e;if(!r)return;o=!0;const i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())}))})(i);const l=()=>{const{prefixCls:i,strokeWidth:l,strokeLinecap:a,gapDegree:s,gapPosition:c}=e;let u=0;return n.value.map(((e,n)=>{const d=o.value[n]||o.value[o.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?`url(#${i}-gradient-${t.value})`:"",{pathString:h,pathStyle:f}=pW(u,e,d,l,s,c);u+=e;const g={key:n,d:h,stroke:p,"stroke-linecap":a,"stroke-width":l,opacity:0===e?0:1,"fill-opacity":"0",class:`${i}-circle-path`,style:f};return br("path",sl({ref:r(n)},g),null)}))};return()=>{const{prefixCls:n,strokeWidth:r,trailWidth:i,gapDegree:a,gapPosition:s,trailColor:c,strokeLinecap:u,strokeColor:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"[object Object]"===Object.prototype.toString.call(e))),m={d:h,stroke:c,"stroke-linecap":u,"stroke-width":i||r,"fill-opacity":"0",class:`${n}-circle-trail`,style:f};return br("svg",sl({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[g&&br("defs",null,[br("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(g).sort(((e,t)=>uW(e)-uW(t))).map(((e,t)=>br("stop",{key:t,offset:e,"stop-color":g[e]},null)))])]),br("path",m,null),l().reverse()])}}}),fW=jn({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Zl(cl(cl({},oW()),{strokeColor:xa()}),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=Lr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120})),i=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[r.value,r.value]})),l=Lr((()=>lW(i.value,"circle"))),a=Lr((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),s=Lr((()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:.15*l.value.width+6+"px"}))),c=Lr((()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max(3/l.value.width*100,6)})),u=Lr((()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0)),d=Lr((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=rW(iW({success:n,successPercent:o}));return[r,rW(rW(t)-r)]}(e))),p=Lr((()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor))),h=Lr((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||xu.green,n||null]}({success:e.success,strokeColor:e.strokeColor}))),f=Lr((()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:p.value})));return()=>{var t;const r=br(hW,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return br("div",sl(sl({},o),{},{class:[f.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?br(Tx,null,{default:()=>[br("span",null,[r])],title:n.default}):br(er,null,[r,null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),gW=jn({compatConfig:{MODE:3},name:"Steps",props:cl(cl({},oW()),{steps:Number,strokeColor:Pa(),trailColor:String}),setup(e,t){let{slots:n}=t;const o=Lr((()=>Math.round(e.steps*((e.percent||0)/100)))),r=Lr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),i=Lr((()=>lW(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),l=Lr((()=>{const{steps:t,strokeColor:n,trailColor:r,prefixCls:l}=e,a=[];for(let e=0;e{var t;return br("div",{class:`${e.prefixCls}-steps-outer`},[l.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),mW=new Hc("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),vW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:cl(cl({},Xu(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:mW,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},bW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},yW=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},OW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wW=Ku("Progress",(e=>{const t=e.marginXXS/2,n=Ju(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[vW(n),bW(n),yW(n),OW(n)]})),SW=ya(jn({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:Zl(oW(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("progress",e),[l,a]=wW(r),s=Lr((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=Lr((()=>{const{percent:t=0}=e,n=iW(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),u=Lr((()=>{const{status:t}=e;return!nW.includes(t)&&c.value>=100?"success":t||"normal"})),d=Lr((()=>{const{type:t,showInfo:n,size:o}=e,l=r.value;return{[l]:!0,[`${l}-inline-circle`]:"circle"===t&&lW(o,"circle").width<=20,[`${l}-${"dashboard"===t?"circle":t}`]:!0,[`${l}-status-${u.value}`]:!0,[`${l}-show-info`]:n,[`${l}-${o}`]:o,[`${l}-rtl`]:"rtl"===i.value,[a.value]:!0}})),p=Lr((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:a,title:c}=e,{class:h}=o,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{showInfo:t,format:o,type:i,percent:l,title:a}=e,s=iW(e);if(!t)return null;let c;const d=o||(null==n?void 0:n.format)||(e=>`${e}%`),p="line"===i;return o||(null==n?void 0:n.format)||"exception"!==u.value&&"success"!==u.value?c=d(rW(l),rW(s)):"exception"===u.value?c=br(p?oy:qb,null,null):"success"===u.value&&(c=br(p?E$:Vb,null,null)),br("span",{class:`${r.value}-text`,title:void 0===a&&"string"==typeof c?c:void 0},[c])})();let m;return"line"===t?m=a?br(gW,sl(sl({},e),{},{strokeColor:p.value,prefixCls:r.value,steps:a}),{default:()=>[g]}):br(sW,sl(sl({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:i.value}),{default:()=>[g]}):"circle"!==t&&"dashboard"!==t||(m=br(fW,sl(sl({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[g]})),l(br("div",sl(sl({role:"progressbar"},f),{},{class:[d.value,h],title:c}),[m]))}}})),$W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function xW(e){for(var t=1;t{const{index:o}=e;n("hover",t,o)},r=t=>{const{index:o}=e;n("click",t,o)},i=t=>{const{index:o}=e;13===t.keyCode&&n("click",t,o)},l=Lr((()=>{const{prefixCls:t,index:n,value:o,allowHalf:r,focused:i}=e,l=n+1;let a=t;return 0===o&&0===n&&i?a+=` ${t}-focused`:r&&o+.5>=l&&o{const{disabled:t,prefixCls:n,characterRender:a,character:s,index:c,count:u,value:d}=e,p="function"==typeof s?s({disabled:t,prefixCls:n,index:c,count:u,value:d}):s;let h=br("li",{class:l.value},[br("div",{onClick:t?null:r,onKeydown:t?null:i,onMousemove:t?null:o,role:"radio","aria-checked":d>c?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabindex:t?-1:0},[br("div",{class:`${n}-first`},[p]),br("div",{class:`${n}-second`},[p])])]);return a&&(h=a(h,e)),h}}}),MW=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},IW=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),EW=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl({},Xu(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),MW(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),IW(e))}},AW=Ku("Rate",(e=>{const{colorFillContent:t}=e,n=Ju(e,{rateStarColor:e["yellow-6"],rateStarSize:.5*e.controlHeightLG,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[EW(n)]})),DW=jn({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Zl({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:$p.any,autofocus:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function},{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,direction:a}=$d("rate",e),[s,c]=AW(l),u=gy(),d=bt(),[p,h]=CI(),f=rt({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});bn((()=>e.value),(()=>{f.value=e.value}));const g=(t,n)=>{const o="rtl"===a.value;let r=t+1;if(e.allowHalf){const e=(e=>ea(h.value.get(e)))(t),i=function(e){const t=function(e){let t,n;const o=e.ownerDocument,{body:r}=o,i=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=i.clientLeft||r.clientLeft||0,n-=i.clientTop||r.clientTop||0,{left:t,top:n}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=function(e){let t=e.pageXOffset;const n="scrollLeft";if("number"!=typeof t){const o=e.document;t=o.documentElement[n],"number"!=typeof t&&(t=o.body[n])}return t}(o),t.left}(e),l=e.clientWidth;(o&&n-i>l/2||!o&&n-i{void 0===e.value&&(f.value=t),r("update:value",t),r("change",t),u.onFieldChange()},v=(e,t)=>{const n=g(t,e.pageX);n!==f.cleanedValue&&(f.hoverValue=n,f.cleanedValue=null),r("hoverChange",n)},b=()=>{f.hoverValue=void 0,f.cleanedValue=null,r("hoverChange",void 0)},y=(t,n)=>{const{allowClear:o}=e,r=g(n,t.pageX);let i=!1;o&&(i=r===f.value),b(),m(i?0:r),f.cleanedValue=i?r:null},O=e=>{f.focused=!0,r("focus",e)},w=e=>{f.focused=!1,r("blur",e),u.onFieldBlur()},S=t=>{const{keyCode:n}=t,{count:o,allowHalf:i}=e,l="rtl"===a.value;n===Im.RIGHT&&f.value0&&!l||n===Im.RIGHT&&f.value>0&&l?(f.value-=i?.5:1,m(f.value),t.preventDefault()):n===Im.LEFT&&f.value{e.disabled||d.value.focus()};i({focus:$,blur:()=>{e.disabled||d.value.blur()}}),Vn((()=>{const{autofocus:t,disabled:n}=e;t&&!n&&$()}));const x=(t,n)=>{let{index:o}=n;const{tooltips:r}=e;return r?br(Tx,{title:r[o]},{default:()=>[t]}):t};return()=>{const{count:t,allowHalf:r,disabled:i,tabindex:h,id:g=u.id.value}=e,{class:m,style:$}=o,C=[],k=i?`${l.value}-disabled`:"",P=e.character||n.character||(()=>br(PW,null,null));for(let e=0;ebr("svg",{width:"252",height:"294"},[br("defs",null,[br("path",{d:"M0 .387h251.772v251.772H0z"},null)]),br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(0 .012)"},[br("mask",{fill:"#fff"},null),br("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),br("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),br("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),br("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),br("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),br("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),br("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),br("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),br("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),br("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),br("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),br("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),br("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),br("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),br("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),br("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),br("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),br("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),br("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),br("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),br("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),br("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),br("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),br("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),br("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),br("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),br("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),br("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),br("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),br("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),br("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),br("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),br("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),br("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),br("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),br("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),br("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),br("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),br("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),br("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),LW=()=>br("svg",{width:"254",height:"294"},[br("defs",null,[br("path",{d:"M0 .335h253.49v253.49H0z"},null),br("path",{d:"M0 293.665h253.49V.401H0z"},null)]),br("g",{fill:"none","fill-rule":"evenodd"},[br("g",{transform:"translate(0 .067)"},[br("mask",{fill:"#fff"},null),br("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),br("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),br("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),br("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),br("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),br("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),br("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),br("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),br("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),br("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),br("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),br("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),br("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),br("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),br("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),br("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),br("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),br("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),br("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),br("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),br("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),br("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),br("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),br("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),br("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),br("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),br("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),br("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),br("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),br("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),br("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),br("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),br("mask",{fill:"#fff"},null),br("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),br("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),br("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),br("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),br("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),br("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),br("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),br("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),br("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),HW=()=>br("svg",{width:"251",height:"294"},[br("g",{fill:"none","fill-rule":"evenodd"},[br("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),br("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),br("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),br("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),br("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),br("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),br("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),br("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),br("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),br("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),br("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),br("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),br("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),br("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),br("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),br("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),br("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),br("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),br("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),br("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),br("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),br("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),br("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),br("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),br("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),br("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),br("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),br("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),br("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),br("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),br("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),br("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),br("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),br("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),br("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),br("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),br("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),br("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),br("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),FW=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:l,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${2*a}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${2.5*r}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},WW=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},XW=e=>(e=>[FW(e),WW(e)])(e),YW=Ku("Result",(e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=Ju(e,{resultTitleFontSize:n,resultSubtitleFontSize:e.fontSize,resultIconFontSize:3*n,resultExtraMargin:`${t}px 0 0 0`,resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning});return[XW(o)]}),{imageWidth:250,imageHeight:295}),VW={success:E$,error:oy,info:B$,warning:_W},ZW={404:QW,500:LW,403:HW},UW=Object.keys(ZW),KW=(e,t)=>{let{status:n,icon:o}=t;if(UW.includes(`${n}`))return br("div",{class:`${e}-icon ${e}-image`},[br(ZW[n],null,null)]);const r=o||br(VW[n],null,null);return br("div",{class:`${e}-icon`},[r])},GW=(e,t)=>t&&br("div",{class:`${e}-extra`},[t]),qW=jn({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:{prefixCls:String,icon:$p.any,status:{type:[Number,String],default:"info"},title:$p.any,subTitle:$p.any,extra:$p.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("result",e),[l,a]=YW(r),s=Lr((()=>xl(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:"rtl"===i.value})));return()=>{var t,i,a,c,u,d,p,h;const f=null!==(t=e.title)&&void 0!==t?t:null===(i=n.title)||void 0===i?void 0:i.call(n),g=null!==(a=e.subTitle)&&void 0!==a?a:null===(c=n.subTitle)||void 0===c?void 0:c.call(n),m=null!==(u=e.icon)&&void 0!==u?u:null===(d=n.icon)||void 0===d?void 0:d.call(n),v=null!==(p=e.extra)&&void 0!==p?p:null===(h=n.extra)||void 0===h?void 0:h.call(n),b=r.value;return l(br("div",sl(sl({},o),{},{class:[s.value,o.class]}),[KW(b,{status:e.status,icon:m}),br("div",{class:`${b}-title`},[f]),g&&br("div",{class:`${b}-subtitle`},[g]),GW(b,v),n.default&&br("div",{class:`${b}-content`},[n.default()])]))}}});qW.PRESENTED_IMAGE_403=ZW[403],qW.PRESENTED_IMAGE_404=ZW[404],qW.PRESENTED_IMAGE_500=ZW[500],qW.install=function(e){return e.component(qW.name,qW),e};const JW=qW,eX=ya(JD),tX=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:i,class:l}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=cl(cl({},i),u);return o?br("div",{class:l,style:d},null):null};tX.inheritAttrs=!1;const nX=tX,oX=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:i,marks:l,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:p,min:h,dotStyle:f,activeDotStyle:g}=n,m=p-h,v=((e,t,n,o,r,i)=>{Ts();const l=Object.keys(t).map(parseFloat).sort(((e,t)=>e-t));if(n&&o)for(let a=r;a<=i;a+=o)-1===l.indexOf(a)&&l.push(a);return l})(0,l,a,s,h,p).map((e=>{const t=Math.abs(e-h)/m*100+"%",n=!c&&e===d||c&&e<=d&&e>=u;let l=cl(cl({},f),r?{[i?"top":"bottom"]:t}:{[i?"right":"left"]:t});n&&(l=cl(cl({},l),g));const a=xl({[`${o}-dot`]:!0,[`${o}-dot-active`]:n,[`${o}-dot-reverse`]:i});return br("span",{class:a,style:l,key:e},null)}));return br("div",{class:`${o}-step`},[v])};oX.inheritAttrs=!1;const rX=oX,iX=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:i,reverse:l,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:p,onClickLabel:h}=n,f=Object.keys(a),g=o.mark,m=d-p,v=f.map(parseFloat).sort(((e,t)=>e-t)).map((e=>{const t="function"==typeof a[e]?a[e]():a[e],n="object"==typeof t&&!sa(t);let o=n?t.label:t;if(!o&&0!==o)return null;g&&(o=g({point:e,label:o}));const d=xl({[`${r}-text`]:!0,[`${r}-text-active`]:!s&&e===c||s&&e<=c&&e>=u}),f=i?{marginBottom:"-50%",[l?"top":"bottom"]:(e-p)/m*100+"%"}:{transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:(e-p)/m*100+"%"},v=n?cl(cl({},f),t.style):f;return br("span",sl({class:d,style:v,key:e,onMousedown:t=>h(t,e)},{[Ma?"onTouchstartPassive":"onTouchstart"]:t=>h(t,e)}),[o])}));return br("div",{class:r},[v])};iX.inheritAttrs=!1;const lX=iX,aX=jn({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:$p.oneOfType([$p.number,$p.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=yt(!1),l=yt(),a=()=>{document.activeElement===l.value&&(i.value=!0)},s=e=>{i.value=!1,o("blur",e)},c=()=>{i.value=!1},u=()=>{var e;null===(e=l.value)||void 0===e||e.focus()},d=e=>{e.preventDefault(),u(),o("mousedown",e)};r({focus:u,blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},clickFocus:()=>{i.value=!0,u()},ref:l});let p=null;Vn((()=>{p=Ia(document,"mouseup",a)})),Kn((()=>{null==p||p.remove()}));const h=Lr((()=>{const{vertical:t,offset:n,reverse:o}=e;return t?{[o?"top":"bottom"]:`${n}%`,[o?"bottom":"top"]:"auto",transform:o?null:"translateY(+50%)"}:{[o?"right":"left"]:`${n}%`,[o?"left":"right"]:"auto",transform:`translateX(${o?"+":"-"}50%)`}}));return()=>{const{prefixCls:t,disabled:o,min:r,max:a,value:u,tabindex:p,ariaLabel:f,ariaLabelledBy:g,ariaValueTextFormatter:m,onMouseenter:v,onMouseleave:b}=e,y=xl(n.class,{[`${t}-handle-click-focused`]:i.value}),O={"aria-valuemin":r,"aria-valuemax":a,"aria-valuenow":u,"aria-disabled":!!o},w=[n.style,h.value];let S,$=p||0;(o||null===p)&&($=null),m&&(S=m(u));const x=cl(cl(cl(cl({},n),{role:"slider",tabindex:$}),O),{class:y,onBlur:s,onKeydown:c,onMousedown:d,onMouseenter:v,onMouseleave:b,ref:l,style:w});return br("div",sl(sl({},x),{},{"aria-label":f,"aria-labelledby":g,"aria-valuetext":S}),null)}}});function sX(e,t){try{return Object.keys(t).some((n=>e.target===t[n].ref))}catch(n){return!1}}function cX(e,t){let{min:n,max:o}=t;return eo}function uX(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function dX(e,t){let{marks:n,step:o,min:r,max:i}=t;const l=Object.keys(n).map(parseFloat);if(null!==o){const t=Math.pow(10,pX(o)),n=Math.floor((i*t-r*t)/(o*t)),a=Math.min((e-r)/o,n),s=Math.round(a)*o+r;l.push(s)}const a=l.map((t=>Math.abs(e-t)));return l[a.indexOf(Math.min(...a))]}function pX(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function hX(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function fX(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function gX(e,t){const n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function mX(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function vX(e,t){const{step:n}=t,o=isFinite(dX(e,t))?dX(e,t):0;return null===n?o:parseFloat(o.toFixed(pX(n)))}function bX(e){e.stopPropagation(),e.preventDefault()}function yX(e,t,n){const o="increase",r="decrease";let i=o;switch(e.keyCode){case Im.UP:i=t&&n?r:o;break;case Im.RIGHT:i=!t&&n?r:o;break;case Im.DOWN:i=t&&n?o:r;break;case Im.LEFT:i=!t&&n?o:r;break;case Im.END:return(e,t)=>t.max;case Im.HOME:return(e,t)=>t.min;case Im.PAGE_UP:return(e,t)=>e+2*t.step;case Im.PAGE_DOWN:return(e,t)=>e-2*t.step;default:return}return(e,t)=>function(e,t,n){const o={increase:(e,t)=>e+t,decrease:(e,t)=>e-t},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}function OX(){}function wX(e){const t={id:String,min:Number,max:Number,step:Number,marks:$p.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:$p.object,maximumTrackStyle:$p.object,handleStyle:$p.oneOfType([$p.object,$p.arrayOf($p.object)]),trackStyle:$p.oneOfType([$p.object,$p.arrayOf($p.object)]),railStyle:$p.object,dotStyle:$p.object,activeDotStyle:$p.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return jn({compatConfig:{MODE:3},name:"CreateSlider",mixins:[pm,e],inheritAttrs:!1,props:Zl(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){return Ts(),this.handlesRefs={},{}},mounted(){this.$nextTick((()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:e,disabled:t}=this;e&&!t&&this.focus()}))},beforeUnmount(){this.$nextTick((()=>{this.removeDocumentEvents()}))},methods:{defaultHandle(e){var{index:t,directives:n,className:o,style:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=2&&!a&&!l.map(((e,t)=>{const n=!!t||e>=i[t];return t===l.length-1?e<=i[t]:n})).some((e=>!e)),this.dragTrack)this.dragOffset=n,this.startBounds=[...i];else{if(a){const t=gX(r,e.target);this.dragOffset=n-t,n=t}else this.dragOffset=0;this.onStart(n)}},onMouseDown(e){if(0!==e.button)return;this.removeDocumentEvents();const t=hX(this.$props.vertical,e);this.onDown(e,t),this.addDocumentMouseEvents()},onTouchStart(e){if(uX(e))return;const t=fX(this.vertical,e);this.onDown(e,t),this.addDocumentTouchEvents(),bX(e)},onFocus(e){const{vertical:t}=this;if(sX(e,this.handlesRefs)&&!this.dragTrack){const n=gX(t,e.target);this.dragOffset=0,this.onStart(n),bX(e),this.$emit("focus",e)}},onBlur(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(e){if(!this.sliderRef)return void this.onEnd();const t=hX(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(uX(e)||!this.sliderRef)return void this.onEnd();const t=fX(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&sX(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel(e,t){e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(()=>this.onEnd(!0)))},getSliderStart(){const e=this.sliderRef,{vertical:t,reverse:n}=this,o=e.getBoundingClientRect();return t?n?o.bottom:o.top:window.pageXOffset+(n?o.right:o.left)},getSliderLength(){const e=this.sliderRef;if(!e)return 0;const t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents(){this.onTouchMoveListener=Ia(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Ia(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Ia(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Ia(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach((e=>{var t,n;null===(n=null===(t=this.handlesRefs[e])||void 0===t?void 0:t.blur)||void 0===n||n.call(t)}))},calcValue(e){const{vertical:t,min:n,max:o}=this,r=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-r)*(o-n)+n:r*(o-n)+n},calcValueByPos(e){const t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset(e){const{min:t,max:n}=this,o=(e-t)/(n-t);return Math.max(0,100*o)},saveSlider(e){this.sliderRef=e},saveHandle(e,t){this.handlesRefs[e]=t}},render(){const{prefixCls:e,marks:t,dots:n,step:o,included:r,disabled:i,vertical:l,reverse:a,min:s,max:c,maximumTrackStyle:u,railStyle:d,dotStyle:p,activeDotStyle:h,id:f}=this,{class:g,style:m}=this.$attrs,{tracks:v,handles:b}=this.renderSlider(),y=xl(e,g,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:i,[`${e}-vertical`]:l,[`${e}-horizontal`]:!l}),O={vertical:l,marks:t,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,reverse:a,class:`${e}-mark`,onClickLabel:i?OX:this.onClickMarkLabel},w={[Ma?"onTouchstartPassive":"onTouchstart"]:i?OX:this.onTouchStart};return br("div",sl(sl({id:f,ref:this.saveSlider,tabindex:"-1",class:y},w),{},{onMousedown:i?OX:this.onMouseDown,onMouseup:i?OX:this.onMouseUp,onKeydown:i?OX:this.onKeyDown,onFocus:i?OX:this.onFocus,onBlur:i?OX:this.onBlur,style:m}),[br("div",{class:`${e}-rail`,style:cl(cl({},u),d)},null),v,br(rX,{prefixCls:e,vertical:l,reverse:a,marks:t,dots:n,step:o,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,dotStyle:p,activeDotStyle:h},null),b,br(lX,O,{mark:this.$slots.mark}),Jl(this)])}})}const SX=jn({compatConfig:{MODE:3},name:"Slider",mixins:[pm],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:$p.oneOfType([$p.number,$p.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),cX(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!Kl(this,"value"),n=e.sValue>this.max?cl(cl({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){bX(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=yX(e,n,t);if(o){bX(e);const{sValue:t}=this,n=o(t,this.$props),r=this.trimAlignValue(n);if(r===t)return;this.onChange({sValue:r}),this.$emit("afterChange",r),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;const n=cl(cl({},this.$props),t);return vX(mX(e,n),n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:i,mergedTrackStyle:l,length:a,offset:s}=e;return br(nX,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:cl(cl({},i),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:i,handleStyle:l,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:p,startPoint:h,reverse:f,handle:g,defaultHandle:m}=this,v=g||m,{sValue:b,dragging:y}=this,O=this.calcOffset(b),w=v({class:`${e}-handle`,prefixCls:e,vertical:t,offset:O,value:b,dragging:y,disabled:o,min:d,max:p,reverse:f,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:l[0]||l,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),S=void 0!==h?this.calcOffset(h):0,$=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:f,vertical:t,included:n,offset:S,minimumTrackStyle:r,mergedTrackStyle:$,length:O-S}),handles:w}}}}),$X=wX(SX),xX=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:i,pushable:l}=r,a=Number(l),s=mX(t,r);let c=s;return i||null==n||void 0===o||(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),vX(c,r)},CX={defaultValue:$p.arrayOf($p.number),value:$p.arrayOf($p.number),count:Number,pushable:Sp($p.oneOfType([$p.looseBool,$p.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:$p.arrayOf($p.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},kX=jn({compatConfig:{MODE:3},name:"Range",mixins:[pm],inheritAttrs:!1,props:Zl(CX,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map((()=>t)),r=Kl(this,"defaultValue")?this.defaultValue:o;let{value:i}=this;void 0===i&&(i=r);const l=i.map(((e,t)=>xX({value:e,handle:t,props:this.$props})));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map(((e,n)=>xX({value:e,handle:n,bounds:t,props:this.$props})));if(t.length===n.length){if(n.every(((e,n)=>e===t[n])))return null}else n=e.map(((e,t)=>xX({value:e,handle:t,props:this.$props})));if(this.setState({bounds:n}),e.some((e=>cX(e,this.$props)))){const t=e.map((e=>mX(e,this.$props)));this.$emit("change",t)}},onChange(e){if(Kl(this,"value")){const t={};["sHandle","recent"].forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}else this.setState(e);const t=cl(cl({},this.$data),e).bounds;this.$emit("change",t)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o);if(n===t[r])return null;const i=[...t];return i[r]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),n===t[this.prevMovedHandleIndex])return;const r=[...t];r[this.prevMovedHandleIndex]=n,this.onChange({bounds:r})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){bX(e);const{$data:r,$props:i}=this,l=i.max||100,a=i.min||0;if(n){let e=i.vertical?-t:t;e=i.reverse?-e:e;const n=l-Math.max(...o),s=a-Math.min(...o),c=Math.min(Math.max(e/(this.getSliderLength()/100),s),n),u=o.map((e=>Math.floor(Math.max(Math.min(e+c,l),a))));return void(r.bounds.map(((e,t)=>e===u[t])).some((e=>!e))&&this.onChange({bounds:u}))}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t);u!==s[c]&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=yX(e,n,t);if(o){bX(e);const{bounds:t,sHandle:n}=this,r=t[null===n?this.recent:n],i=o(r,this.$props),l=xX({value:i,handle:n,bounds:t,props:this.$props});if(l===r)return;const a=!0;this.moveTo(l,a)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)e-t)),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,i=null===o?r:o;n[i]=e;let l=i;!1!==this.$props.pushable?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort(((e,t)=>e-t)),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[l].focus()})),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let i=0;if(e[t+1]-n=o.length||r<0)return!1;const i=t+n,l=o[r],{pushable:a}=this,s=Number(a),c=n*(e[i]-l);return!!this.pushHandle(e,i,n,s-c)&&(e[t]=l,!0)},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return xX({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const i=this.$data||{},{bounds:l}=i;if(e=void 0===e?i.sHandle:e,r=Number(r),!o&&null!=e&&void 0!==l){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:i,offsets:l,trackStyle:a}=e;return t.slice(0,-1).map(((e,t)=>{const s=t+1,c=xl({[`${n}-track`]:!0,[`${n}-track-${s}`]:!0});return br(nX,{class:c,vertical:r,reverse:o,included:i,offset:l[s-1],length:l[s]-l[s-1],style:a[t],key:s},null)}))},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:i,min:l,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:p,tabindex:h,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:m}=this,v=c||u,b=t.map((e=>this.calcOffset(e))),y=`${n}-handle`,O=t.map(((t,r)=>{let c=h[r]||0;(i||null===h[r])&&(c=null);const u=e===r;return v({class:xl({[y]:!0,[`${y}-${r+1}`]:!0,[`${y}-dragging`]:u}),prefixCls:n,vertical:o,dragging:u,offset:b[r],value:t,index:r,tabindex:c,min:l,max:a,reverse:s,disabled:i,style:p[r],ref:e=>this.saveHandle(r,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[r],ariaLabelledBy:g[r],ariaValueTextFormatter:m[r]})}));return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:b,trackStyle:d}),handles:O}}}}),PX=wX(kX),TX=jn({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Px(),setup(e,t){let{attrs:n,slots:o}=t;const r=bt(null),i=bt(null);function l(){ma.cancel(i.value),i.value=null}const a=()=>{l(),e.open&&(i.value=ma((()=>{var e;null===(e=r.value)||void 0===e||e.forcePopupAlign(),i.value=null})))};return bn([()=>e.open,()=>e.title],(()=>{a()}),{flush:"post",immediate:!0}),Qn((()=>{a()})),Kn((()=>{l()})),()=>br(Tx,sl(sl({ref:r},e),n),o)}}),MX=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:l}=e;return{[t]:cl(cl({},Xu(e)),{position:"relative",height:n,margin:`${i}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new mu(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},IX=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i}=e,l=t?"width":"height",a=t?"height":"width",s=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:o,[a]:3*o,[`${n}-rail`]:{[l]:"100%",[a]:o},[`${n}-track`]:{[a]:o},[`${n}-handle`]:{[s]:(3*o-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[l]:"100%",[a]:o},[`${n}-dot`]:{position:"absolute",[s]:(o-i)/2}}},EX=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:cl(cl({},IX(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},AX=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:cl(cl({},IX(e,!1)),{height:"100%"})}},DX=Ku("Slider",(e=>{const t=Ju(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[MX(t),EX(t),AX(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}));var RX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",BX=ya(jn({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:{id:String,prefixCls:String,tooltipPrefixCls:String,range:Pa([Boolean,Object]),reverse:Sa(),min:Number,max:Number,step:Pa([Object,Number]),marks:wa(),dots:Sa(),value:Pa([Array,Number]),defaultValue:Pa([Array,Number]),included:Sa(),disabled:Sa(),vertical:Sa(),tipFormatter:Pa([Function,Object],(()=>zX)),tooltipOpen:Sa(),tooltipVisible:Sa(),tooltipPlacement:ka(),getTooltipPopupContainer:$a(),autofocus:Sa(),handleStyle:Pa([Array,Object]),trackStyle:Pa([Array,Object]),onChange:$a(),onAfterChange:$a(),onFocus:$a(),onBlur:$a(),"onUpdate:value":$a()},slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=$d("slider",e),[d,p]=DX(l),h=gy(),f=bt(),g=bt({}),m=(e,t)=>{g.value[e]=t},v=Lr((()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===s.value?"left":"right":"top")),b=e=>{r("update:value",e),r("change",e),h.onFieldChange()},y=e=>{r("blur",e)};i({focus:()=>{var e;null===(e=f.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=f.value)||void 0===e||e.blur()}});const O=t=>{var{tooltipPrefixCls:n}=t,o=t.info,{value:r,dragging:i,index:s}=o,u=RX(o,["value","dragging","index"]);const{tipFormatter:d,tooltipOpen:p=e.tooltipVisible,getTooltipPopupContainer:h}=e,f=!!d&&(g.value[s]||i),b=p||void 0===p&&f;return br(TX,{prefixCls:n,title:d?d(r):"",open:b,placement:v.value,transitionName:`${a.value}-zoom-down`,key:s,overlayClassName:`${l.value}-tooltip`,getPopupContainer:h||(null==c?void 0:c.value)},{default:()=>[br(aX,sl(sl({},u),{},{value:r,onMouseenter:()=>m(s,!0),onMouseleave:()=>m(s,!1)}),null)]})};return()=>{const{tooltipPrefixCls:t,range:r,id:i=h.id.value}=e,a=RX(e,["tooltipPrefixCls","range","id"]),c=u.getPrefixCls("tooltip",t),g=xl(n.class,{[`${l.value}-rtl`]:"rtl"===s.value},p.value);let m;return"rtl"!==s.value||a.vertical||(a.reverse=!a.reverse),"object"==typeof r&&(m=r.draggableTrack),d(r?br(PX,sl(sl(sl({},n),a),{},{step:a.step,draggableTrack:m,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}):br($X,sl(sl(sl({},n),a),{},{id:i,step:a.step,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}))}}}));function jX(e){return"string"==typeof e}function NX(){}const _X=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:ka(),iconPrefix:String,icon:$p.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:$p.any,title:$p.any,subTitle:$p.any,progressDot:Sp($p.oneOfType([$p.looseBool,$p.func])),tailContent:$p.any,icons:$p.shape({finish:$p.any,error:$p.any}).loose,onClick:$a(),onStepClick:$a(),stepIcon:$a(),itemRender:$a(),__legacy:Sa()}),QX=jn({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:_X(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=t=>{o("click",t),o("stepClick",e.stepIndex)},l=t=>{let{icon:o,title:r,description:i}=t;const{prefixCls:l,stepNumber:a,status:s,iconPrefix:c,icons:u,progressDot:d=n.progressDot,stepIcon:p=n.stepIcon}=e;let h;const f=xl(`${l}-icon`,`${c}icon`,{[`${c}icon-${o}`]:o&&jX(o),[`${c}icon-check`]:!o&&"finish"===s&&(u&&!u.finish||!u),[`${c}icon-cross`]:!o&&"error"===s&&(u&&!u.error||!u)}),g=br("span",{class:`${l}-icon-dot`},null);return h=d?br("span",{class:`${l}-icon`},"function"==typeof d?[d({iconDot:g,index:a-1,status:s,title:r,description:i,prefixCls:l})]:[g]):o&&!jX(o)?br("span",{class:`${l}-icon`},[o]):u&&u.finish&&"finish"===s?br("span",{class:`${l}-icon`},[u.finish]):u&&u.error&&"error"===s?br("span",{class:`${l}-icon`},[u.error]):o||"finish"===s||"error"===s?br("span",{class:f},null):br("span",{class:`${l}-icon`},[a]),p&&(h=p({index:a-1,status:s,title:r,description:i,node:h})),h};return()=>{var t,o,a,s;const{prefixCls:c,itemWidth:u,active:d,status:p="wait",tailContent:h,adjustMarginRight:f,disabled:g,title:m=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:v=(null===(o=n.description)||void 0===o?void 0:o.call(n)),subTitle:b=(null===(a=n.subTitle)||void 0===a?void 0:a.call(n)),icon:y=(null===(s=n.icon)||void 0===s?void 0:s.call(n)),onClick:O,onStepClick:w}=e,S=xl(`${c}-item`,`${c}-item-${p||"wait"}`,{[`${c}-item-custom`]:y,[`${c}-item-active`]:d,[`${c}-item-disabled`]:!0===g}),$={};u&&($.width=u),f&&($.marginRight=f);const x={onClick:O||NX};w&&!g&&(x.role="button",x.tabindex=0,x.onClick=i);const C=br("div",sl(sl({},xd(r,["__legacy"])),{},{class:[S,r.class],style:[r.style,$]}),[br("div",sl(sl({},x),{},{class:`${c}-item-container`}),[br("div",{class:`${c}-item-tail`},[h]),br("div",{class:`${c}-item-icon`},[l({icon:y,title:m,description:v})]),br("div",{class:`${c}-item-content`},[br("div",{class:`${c}-item-title`},[m,b&&br("div",{title:"string"==typeof b?b:void 0,class:`${c}-item-subtitle`},[b])]),v&&br("div",{class:`${c}-item-description`},[v])])])]);return e.itemRender?e.itemRender(C):C}}}),LX=jn({compatConfig:{MODE:3},name:"Steps",props:{type:$p.string.def("default"),prefixCls:$p.string.def("vc-steps"),iconPrefix:$p.string.def("vc"),direction:$p.string.def("horizontal"),labelPlacement:$p.string.def("horizontal"),status:ka("process"),size:$p.string.def(""),progressDot:$p.oneOfType([$p.looseBool,$p.func]).def(void 0),initial:$p.number.def(0),current:$p.number.def(0),items:$p.array.def((()=>[])),icons:$p.shape({finish:$p.any,error:$p.any}).loose,stepIcon:$a(),isInline:$p.looseBool,itemRender:$a()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=t=>{const{current:n}=e;n!==t&&o("change",t)},i=(t,o,i)=>{const{prefixCls:l,iconPrefix:a,status:s,current:c,initial:u,icons:d,stepIcon:p=n.stepIcon,isInline:h,itemRender:f,progressDot:g=n.progressDot}=e,m=h||g,v=cl(cl({},t),{class:""}),b=u+o,y={active:b===c,stepNumber:b+1,stepIndex:b,key:b,prefixCls:l,iconPrefix:a,progressDot:m,stepIcon:p,icons:d,onStepClick:r};return"error"===s&&o===c-1&&(v.class=`${l}-next-error`),v.status||(v.status=b===c?s:bf(v,e)),br(QX,sl(sl(sl({},v),y),{},{__legacy:!1}),null))},l=(e,t)=>i(cl({},e.props),t,(t=>Yh(e,t)));return()=>{var t;const{prefixCls:o,direction:r,type:a,labelPlacement:s,iconPrefix:c,status:u,size:d,current:p,progressDot:h=n.progressDot,initial:f,icons:g,items:m,isInline:v,itemRender:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re)).map(((e,t)=>i(e,t))),la(null===(t=n.default)||void 0===t?void 0:t.call(n)).map(l)])}}}),HX=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},FX=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:2*(n/2+e.controlHeightLG),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},WX=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:cl(cl({maxWidth:"100%",paddingInlineEnd:0},Wu),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},XX=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},YX=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:i,motionDurationSlow:l}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:n/2+"px 0",padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(i-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},VX=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},ZX=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},UX=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},KX=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.paddingXS+e.lineWidth,l={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":cl({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-finish":cl({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-error":l,"&-active, &-process":cl({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var GX,qX;(qX=GX||(GX={})).wait="wait",qX.process="process",qX.finish="finish",qX.error="error";const JX=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${e}TailColor`,a=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[`${e}IconBgColor`],borderColor:t[a],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[l]}}},eY=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return cl(cl(cl(cl(cl(cl({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},JX(GX.wait,e)),JX(GX.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),JX(GX.finish,e)),JX(GX.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},tY=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},nY=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl({},Xu(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),eY(e)),tY(e)),HX(e)),ZX(e)),UX(e)),FX(e)),YX(e)),WX(e)),VX(e)),XX(e)),KX(e))}},oY=Ku("Steps",(e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:i,controlHeightLG:l,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:p,colorFillContent:h,controlItemBgActive:f,colorError:g,colorBgContainer:m,colorBorderSecondary:v}=e,b=e.controlHeight,y=e.colorSplit,O=Ju(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:b,stepsIconCustomSize:b,stepsIconCustomTop:0,stepsIconCustomFontSize:l/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:i,stepsSmallIconSize:o,stepsDotSize:i/4,stepsCurrentDotSize:l/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?m:h,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?m:f,finishIconBorderColor:t?c:f,finishDotColor:c,errorIconColor:a,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:y,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:c,stepsProgressSize:l,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:v});return[nY(O)]}),{descriptionWidth:140}),rY=jn({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Zl({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Sa(),items:Ca(),labelPlacement:ka(),status:ka(),size:ka(),direction:ka(),progressDot:Pa([Boolean,Function]),type:ka(),onChange:$a(),"onUpdate:current":$a()},{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l,configProvider:a}=$d("steps",e),[s,c]=oY(i),[,u]=ad(),d=ex(),p=Lr((()=>e.responsive&&d.value.xs?"vertical":e.direction)),h=Lr((()=>a.getPrefixCls("",e.iconPrefix))),f=e=>{r("update:current",e),r("change",e)},g=Lr((()=>"inline"===e.type)),m=Lr((()=>g.value?void 0:e.percent)),v=t=>{let{node:n,status:o}=t;if("process"===o&&void 0!==e.percent){const t="small"===e.size?u.value.controlHeight:u.value.controlHeightLG;return br("div",{class:`${i.value}-progress-icon`},[br(SW,{type:"circle",percent:m.value,size:t,strokeWidth:4,format:()=>null},null),n])}return n},b=Lr((()=>({finish:br(Vb,{class:`${i.value}-finish-icon`},null),error:br(qb,{class:`${i.value}-error-icon`},null)})));return()=>{const t=xl({[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-with-progress`]:void 0!==m.value},n.class,c.value);return s(br(LX,sl(sl(sl({icons:b.value},n),xd(e,["percent","responsive"])),{},{items:e.items,direction:p.value,prefixCls:i.value,iconPrefix:h.value,class:t,onChange:f,isInline:g.value,itemRender:g.value?(e,t)=>e.description?br(Tx,{title:e.description},{default:()=>[t]}):t:void 0}),cl({stepIcon:v},o)))}}}),iY=jn(cl(cl({compatConfig:{MODE:3}},QX),{name:"AStep",props:_X()})),lY=cl(rY,{Step:iY,install:e=>(e.component(rY.name,rY),e.component(iY.name,iY),e)}),aY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},sY=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},cY=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},uY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},dY=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl({},Xu(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Uu(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},pY=Ku("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=t-4,r=n-4,i=Ju(e,{switchMinWidth:2*o+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+2+4,switchPadding:2,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:2*r+4,switchHeightSM:n,switchInnerMarginMinSM:r/2,switchInnerMarginMaxSM:r+2+4,switchPinSizeSM:r,switchHandleShadow:`0 2px 4px 0 ${new mu("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[dY(i),uY(i),cY(i),sY(i),aY(i)]})),hY=ba("small","default"),fY=ya(jn({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:{id:String,prefixCls:String,size:$p.oneOf(hY),disabled:{type:Boolean,default:void 0},checkedChildren:$p.any,unCheckedChildren:$p.any,tabindex:$p.oneOfType([$p.string,$p.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:$p.oneOfType([$p.string,$p.number,$p.looseBool]),checkedValue:$p.oneOfType([$p.string,$p.number,$p.looseBool]).def(!0),unCheckedValue:$p.oneOfType([$p.string,$p.number,$p.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function},slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;const l=gy(),a=Wa(),s=Lr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:a.value}));Yn((()=>{Ts(),Ts()}));const c=bt(void 0!==e.checked?e.checked:n.defaultChecked),u=Lr((()=>c.value===e.checkedValue));bn((()=>e.checked),(()=>{c.value=e.checked}));const{prefixCls:d,direction:p,size:h}=$d("switch",e),[f,g]=pY(d),m=bt(),v=()=>{var e;null===(e=m.value)||void 0===e||e.focus()};r({focus:v,blur:()=>{var e;null===(e=m.value)||void 0===e||e.blur()}}),Vn((()=>{Ft((()=>{e.autofocus&&!s.value&&m.value.focus()}))}));const b=(e,t)=>{s.value||(i("update:checked",e),i("change",e,t),l.onFieldChange())},y=e=>{i("blur",e)},O=t=>{v();const n=u.value?e.unCheckedValue:e.checkedValue;b(n,t),i("click",n,t)},w=t=>{t.keyCode===Im.LEFT?b(e.unCheckedValue,t):t.keyCode===Im.RIGHT&&b(e.checkedValue,t),i("keydown",t)},S=e=>{var t;null===(t=m.value)||void 0===t||t.blur(),i("mouseup",e)},$=Lr((()=>({[`${d.value}-small`]:"small"===h.value,[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:"rtl"===p.value,[g.value]:!0})));return()=>{var t;return f(br(lC,null,{default:()=>[br("button",sl(sl(sl({},xd(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:null!==(t=e.id)&&void 0!==t?t:l.id.value,onKeydown:w,onClick:O,onBlur:y,onMouseup:S,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,$.value],ref:m}),[br("div",{class:`${d.value}-handle`},[e.loading?br(Hb,{class:`${d.value}-loading-icon`},null):null]),br("span",{class:`${d.value}-inner`},[br("span",{class:`${d.value}-inner-checked`},[ca(o,e,"checkedChildren")]),br("span",{class:`${d.value}-inner-unchecked`},[ca(o,e,"unCheckedChildren")])])])]}))}}})),gY=Symbol("TableContextProps"),mY=()=>Mo(gY,{});function vY(e){return null==e?[]:Array.isArray(e)?e:[e]}function bY(e,t){if(!t&&"number"!=typeof t)return e;const n=vY(t);let o=e;for(let r=0;r{const{key:o,dataIndex:r}=e||{};let i=o||vY(r).join("-")||"RC_TABLE_KEY";for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)})),t}function OY(){const e={};function t(e,n){n&&Object.keys(n).forEach((o=>{const r=n[o];r&&"object"==typeof r?(e[o]=e[o]||{},t(e[o],r)):e[o]=r}))}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,n)})),e}function wY(e){return null!=e}const SY=Symbol("SlotsContextProps"),$Y=()=>Mo(SY,Lr((()=>({})))),xY=Symbol("ContextProps"),CY="RC_TABLE_INTERNAL_COL_DEFINE",kY=Symbol("HoverContextProps"),PY=yt(!1),TY=jn({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=$Y(),{onHover:r,startRow:i,endRow:l}=Mo(kY,{startRow:yt(-1),endRow:yt(-1),onHover(){}}),a=Lr((()=>{var t,n,o,r;return null!==(o=null!==(t=e.colSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.colSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.colspan})),s=Lr((()=>{var t,n,o,r;return null!==(o=null!==(t=e.rowSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.rowSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.rowspan})),c=tx((()=>{const{index:t}=e;return function(e,t,n,o){return e<=o&&e+t-1>=n}(t,s.value||1,i.value,l.value)})),u=PY,d=t=>{var n;const{record:o,additionalProps:i}=e;o&&r(-1,-1),null===(n=null==i?void 0:i.onMouseleave)||void 0===n||n.call(i,t)},p=e=>{const t=la(e)[0];return pr(t)?t.type===tr?t.children:Array.isArray(t.children)?p(t.children):void 0:t};return()=>{var t,i,l,h,f,g;const{prefixCls:m,record:v,index:b,renderIndex:y,dataIndex:O,customRender:w,component:S="td",fixLeft:$,fixRight:x,firstFixLeft:C,lastFixLeft:k,firstFixRight:P,lastFixRight:T,appendNode:M=(null===(t=n.appendNode)||void 0===t?void 0:t.call(n)),additionalProps:I={},ellipsis:E,align:A,rowType:D,isSticky:R,column:z={},cellType:B}=e,j=`${m}-cell`;let N,_;const Q=null===(i=n.default)||void 0===i?void 0:i.call(n);if(wY(Q)||"header"===B)_=Q;else{const t=bY(v,O);if(_=t,w){const e=w({text:t,value:t,record:v,index:b,renderIndex:y,column:z.__originColumn__});!(L=e)||"object"!=typeof L||Array.isArray(L)||pr(L)?_=e:(_=e.children,N=e.props)}if(!(CY in z)&&"body"===B&&o.value.bodyCell&&!(null===(l=z.slots)||void 0===l?void 0:l.customRender)){const e=oo(o.value,"bodyCell",{text:t,value:t,record:v,index:b,column:z.__originColumn__},(()=>{const e=void 0===_?t:_;return["object"==typeof e&&sa(e)||"object"!=typeof e?e:null]}));_=ql(e)}e.transformCellText&&(_=e.transformCellText({text:_,record:v,index:b,column:z.__originColumn__}))}var L;"object"!=typeof _||Array.isArray(_)||pr(_)||(_=null),E&&(k||P)&&(_=br("span",{class:`${j}-content`},[_])),Array.isArray(_)&&1===_.length&&(_=_[0]);const H=N||{},{colSpan:F,rowSpan:W,style:X,class:Y}=H,V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{((t,n)=>{var o;const{record:i,index:l,additionalProps:a}=e;i&&r(l,l+n-1),null===(o=null==a?void 0:a.onMouseenter)||void 0===o||o.call(a,t)})(t,U)},onMouseleave:d,style:[I.style,J,K,X]});return br(S,ne,{default:()=>[M,_,null===(g=n.dragHandle)||void 0===g?void 0:g.call(n)]})}}});function MY(e,t,n,o,r){const i=n[e]||{},l=n[t]||{};let a,s;"left"===i.fixed?a=o.left[e]:"right"===l.fixed&&(s=o.right[t]);let c=!1,u=!1,d=!1,p=!1;const h=n[t+1],f=n[e-1];return"rtl"===r?void 0!==a?p=!(f&&"left"===f.fixed):void 0!==s&&(d=!(h&&"right"===h.fixed)):void 0!==a?c=!(h&&"left"===h.fixed):void 0!==s&&(u=!(f&&"right"===f.fixed)),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const IY={start:"mousedown",move:"mousemove",stop:"mouseup"},EY={start:"touchstart",move:"touchmove",stop:"touchend"},AY=jn({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:50},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};Gn((()=>{r()})),mn((()=>{xp(!isNaN(e.width),"Table","width must be a number when use resizable")}));const{onResizeColumn:i}=Mo(xY,{onResizeColumn:()=>{}}),l=Lr((()=>"number"!=typeof e.minWidth||isNaN(e.minWidth)?50:e.minWidth)),a=Lr((()=>"number"!=typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth)),s=Mr();let c=0;const u=yt(!1);let d;const p=n=>{let o=0;o=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;const r=t-o;let s=Math.max(c-r,l.value);s=Math.min(s,a.value),ma.cancel(d),d=ma((()=>{i(s,e.column.__originColumn__)}))},h=e=>{p(e)},f=e=>{u.value=!1,p(e),r()},g=(e,i)=>{u.value=!0,r(),c=s.vnode.el.parentNode.getBoundingClientRect().width,e instanceof MouseEvent&&1!==e.which||(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=Ia(document.documentElement,i.move,h),o=Ia(document.documentElement,i.stop,f))},m=e=>{e.stopPropagation(),e.preventDefault(),g(e,IY)},v=e=>{e.stopPropagation(),e.preventDefault()};return()=>{const{prefixCls:t}=e,n={[Ma?"onTouchstartPassive":"onTouchstart"]:e=>(e=>{e.stopPropagation(),e.preventDefault(),g(e,EY)})(e)};return br("div",sl(sl({class:`${t}-resize-handle ${u.value?"dragging":""}`,onMousedown:m},n),{},{onClick:v}),[br("div",{class:`${t}-resize-handle-line`},null)])}}}),DY=jn({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=mY();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:i,flattenColumns:l,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map((e=>e.column)),u));const p=yY(r.map((e=>e.column)));return br(a,d,{default:()=>[r.map(((e,t)=>{const{column:r}=e,a=MY(e.colStart,e.colEnd,l,i,o);let c;r&&r.customHeaderCell&&(c=e.column.customHeaderCell(r));const u=r;return br(TY,sl(sl(sl({},e),{},{cellType:"header",ellipsis:r.ellipsis,align:r.align,component:s,prefixCls:n,key:p[t]},a),{},{additionalProps:c,rowType:"header",column:r}),{default:()=>r.title,dragHandle:()=>u.resizable?br(AY,{prefixCls:n,width:u.width,minWidth:u.minWidth,maxWidth:u.maxWidth,column:u},null):null})}))]})}}}),RY=jn({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=mY(),n=Lr((()=>function(e){const t=[];!function e(n,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];let i=o;const l=n.filter(Boolean).map((n=>{const o={key:n.key,class:xl(n.className,n.class),column:n,colStart:i};let l=1;const a=n.children;return a&&a.length>0&&(l=e(a,i,r+1).reduce(((e,t)=>e+t),0),o.hasSubColumns=!0),"colSpan"in n&&({colSpan:l}=n),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=l,o.colEnd=o.colStart+l-1,t[r].push(o),i+=l,l}));return l}(e,0);const n=t.length;for(let o=0;o{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-o)}));return t}(e.columns)));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:i,flattenColumns:l,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return br(s,{class:`${o}-thead`},{default:()=>[n.value.map(((e,t)=>br(DY,{key:t,flattenColumns:l,cells:e,stickyOffsets:i,rowComponent:c,cellComponent:u,customHeaderRow:a,index:t},null)))]})}}}),zY=Symbol("ExpandedRowProps"),BY=jn({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=mY(),i=Mo(zY,{}),{fixHeader:l,fixColumn:a,componentWidth:s,horizonScroll:c}=i;return()=>{const{prefixCls:t,component:i,cellComponent:u,expanded:d,colSpan:p,isEmpty:h}=e;return br(i,{class:o.class,style:{display:d?null:"none"}},{default:()=>[br(TY,{component:u,prefixCls:t,colSpan:p},{default:()=>{var e;let o=null===(e=n.default)||void 0===e?void 0:e.call(n);return(h?c.value:a.value)&&(o=br("div",{style:{width:s.value-(l.value?r.scrollbarSize:0)+"px",position:"sticky",left:0,overflow:"hidden"},class:`${t}-expanded-row-fixed`},[o])),o}})]})}}}),jY=jn({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=bt();return Vn((()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)})),()=>br(ua,{onResize:t=>{let{offsetWidth:o}=t;n("columnResize",e.columnKey,o)}},{default:()=>[br("td",{ref:o,style:{padding:0,border:0,height:0}},[br("div",{style:{height:0,overflow:"hidden"}},[Or(" ")])])]})}}),NY=Symbol("BodyContextProps"),_Y=()=>Mo(NY,{}),QY=jn({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=mY(),r=_Y(),i=yt(!1),l=Lr((()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey)));mn((()=>{l.value&&(i.value=!0)}));const a=Lr((()=>"row"===r.expandableType&&(!e.rowExpandable||e.rowExpandable(e.record)))),s=Lr((()=>"nest"===r.expandableType)),c=Lr((()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName])),u=Lr((()=>a.value||s.value)),d=(e,t)=>{r.onTriggerExpand(e,t)},p=Lr((()=>{var t;return(null===(t=e.customRow)||void 0===t?void 0:t.call(e,e.record,e.index))||{}})),h=function(t){var n,o;r.expandRowByClick&&u.value&&d(e.record,t);for(var i=arguments.length,l=new Array(i>1?i-1:0),a=1;a{const{record:t,index:n,indent:o}=e,{rowClassName:i}=r;return"string"==typeof i?i:"function"==typeof i?i(t,n,o):""})),g=Lr((()=>yY(r.flattenColumns)));return()=>{const{class:t,style:u}=n,{record:m,index:v,rowKey:b,indent:y=0,rowComponent:O,cellComponent:w}=e,{prefixCls:S,fixedInfoList:$,transformCellText:x}=o,{flattenColumns:C,expandedRowClassName:k,indentSize:P,expandIcon:T,expandedRowRender:M,expandIconColumnIndex:I}=r,E=br(O,sl(sl({},p.value),{},{"data-row-key":b,class:xl(t,`${S}-row`,`${S}-row-level-${y}`,f.value,p.value.class),style:[u,p.value.style],onClick:h}),{default:()=>[C.map(((t,n)=>{const{customRender:o,dataIndex:r,className:i}=t,a=g[n],u=$[n];let p;t.customCell&&(p=t.customCell(m,v,t));const h=n===(I||0)&&s.value?br(er,null,[br("span",{style:{paddingLeft:P*y+"px"},class:`${S}-row-indent indent-level-${y}`},null),T({prefixCls:S,expanded:l.value,expandable:c.value,record:m,onExpand:d})]):null;return br(TY,sl(sl({cellType:"body",class:i,ellipsis:t.ellipsis,align:t.align,component:w,prefixCls:S,key:a,record:m,index:v,renderIndex:e.renderIndex,dataIndex:r,customRender:o},u),{},{additionalProps:p,column:t,transformCellText:x,appendNode:h}),null)}))]});let A;if(a.value&&(i.value||l.value)){const e=M({record:m,index:v,indent:y+1,expanded:l.value}),t=k&&k(m,v,y);A=br(BY,{expanded:l.value,class:xl(`${S}-expanded-row`,`${S}-expanded-row-level-${y+1}`,t),prefixCls:S,component:O,cellComponent:w,colSpan:C.length,isEmpty:!1},{default:()=>[e]})}return br(er,null,[E,A])}}});function LY(e,t,n,o,r,i){const l=[];l.push({record:e,indent:t,index:i});const a=r(e),s=null==o?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{}}),r=mY(),i=_Y(),l=(a=Tt(e,"data"),s=Tt(e,"childrenColumnName"),c=Tt(e,"expandedKeys"),u=Tt(e,"getRowKey"),Lr((()=>{const e=s.value,t=c.value,n=a.value;if(null==t?void 0:t.size){const o=[];for(let r=0;r<(null==n?void 0:n.length);r+=1){const i=n[r];o.push(...LY(i,0,e,t,u.value,r))}return o}return null==n?void 0:n.map(((e,t)=>({record:e,indent:0,index:t})))})));var a,s,c,u;const d=yt(-1),p=yt(-1);let h;return(e=>{To(kY,e)})({startRow:d,endRow:p,onHover:(e,t)=>{clearTimeout(h),h=setTimeout((()=>{d.value=e,p.value=t}),100)}}),()=>{var t;const{data:a,getRowKey:s,measureColumnWidth:c,expandedKeys:u,customRow:d,rowExpandable:p,childrenColumnName:h}=e,{onColumnResize:f}=o,{prefixCls:g,getComponent:m}=r,{flattenColumns:v}=i,b=m(["body","wrapper"],"tbody"),y=m(["body","row"],"tr"),O=m(["body","cell"],"td");let w;w=a.length?l.value.map(((e,t)=>{const{record:n,indent:o,index:r}=e,i=s(n,t);return br(QY,{key:i,rowKey:i,record:n,recordKey:i,index:t,renderIndex:r,rowComponent:y,cellComponent:O,expandedKeys:u,customRow:d,getRowKey:s,rowExpandable:p,childrenColumnName:h,indent:o},null)})):br(BY,{expanded:!0,class:`${g}-placeholder`,prefixCls:g,component:y,cellComponent:O,colSpan:v.length,isEmpty:!0},{default:()=>[null===(t=n.emptyNode)||void 0===t?void 0:t.call(n)]});const S=yY(v);return br(b,{class:`${g}-tbody`},{default:()=>[c&&br("tr",{"aria-hidden":"true",class:`${g}-measure-row`,style:{height:0,fontSize:0}},[S.map((e=>br(jY,{key:e,columnKey:e,onColumnResize:f},null)))]),w]})}}}),WY={};function XY(e){return e.reduce(((e,t)=>{const{fixed:n}=t,o=!0===n?"left":n,r=t.children;return r&&r.length>0?[...e,...XY(r).map((e=>cl({fixed:o},e)))]:[...e,cl(cl({},t),{fixed:o})]}),[])}function YY(e){return e.map((e=>{const{fixed:t}=e;let n=t;return"left"===t?n="right":"right"===t&&(n="left"),cl({fixed:n},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{ma.cancel(n)})),[t,function(e){o.value.push(e),ma.cancel(n),n=ma((()=>{const e=o.value;o.value=[],e.forEach((e=>{t.value=e(t.value)}))}))}]}var ZY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=0;l-=1){const e=t[l],o=n&&n[l],a=o&&o[CY];if(e||a||i){const t=ZY(a||{},["columnType"]);r.unshift(br("col",sl({key:l,style:{width:"number"==typeof e?`${e}px`:e}},t),null)),i=!0}}return br("colgroup",null,[r])}function KY(e,t){let{slots:n}=t;var o;return br("div",null,[null===(o=n.default)||void 0===o?void 0:o.call(n)])}KY.displayName="Panel";let GY=0;const qY=jn({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=mY(),r="table-summary-uni-key-"+ ++GY,i=Lr((()=>""===e.fixed||e.fixed));return mn((()=>{o.summaryCollect(r,i.value)})),Kn((()=>{o.summaryCollect(r,!1)})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),JY=jn({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var e;return br("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),eV=Symbol("SummaryContextProps"),tV=jn({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=mY(),i=Mo(eV,{});return()=>{const{index:t,colSpan:l=1,rowSpan:a,align:s}=e,{prefixCls:c,direction:u}=r,{scrollColumnIndex:d,stickyOffsets:p,flattenColumns:h}=i,f=t+l-1+1===d?l+1:l,g=MY(t,t+f-1,h,p,u);return br(TY,sl({class:n.class,index:t,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:f,rowSpan:a,customRender:()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}},g),null)}}}),nV=jn({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=mY();return(e=>{To(eV,e)})(rt({stickyOffsets:Tt(e,"stickyOffsets"),flattenColumns:Tt(e,"flattenColumns"),scrollColumnIndex:Lr((()=>{const t=e.flattenColumns.length-1,n=e.flattenColumns[t];return(null==n?void 0:n.scrollbar)?t:null}))})),()=>{var e;const{prefixCls:t}=o;return br("tfoot",{class:`${t}-summary`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),oV=qY;function rV(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:i}=e;const l=`${t}-row-expand-icon`;return br("span",i?{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:e=>{o(n,e),e.stopPropagation()}}:{class:[l,`${t}-row-spaced`]},null)}const iV=jn({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=mY(),i=yt(0),l=yt(0),a=yt(0);mn((()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,a.value=i.value&&l.value*(l.value/i.value)}),{flush:"post"});const s=yt(),[c,u]=VY({scrollLeft:0,isHiddenScrollBar:!0}),d=bt({delta:0,x:0}),p=yt(!1),h=()=>{p.value=!1},f=e=>{d.value={delta:e.pageX-c.value.scrollLeft,x:0},p.value=!0,e.preventDefault()},g=e=>{const{buttons:t}=e||(null===window||void 0===window?void 0:window.event);if(!p.value||0===t)return void(p.value&&(p.value=!1));let o=d.value.x+e.pageX-d.value.x-d.value.delta;o<=0&&(o=0),o+a.value>=l.value&&(o=l.value-a.value),n("scroll",{scrollLeft:o/l.value*(i.value+2)}),d.value.x=e.pageX},m=()=>{if(!e.scrollBodyRef.value)return;const t=E_(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,o=e.container===window?document.documentElement.scrollTop+window.innerHeight:E_(e.container).top+e.container.clientHeight;n-vm()<=o||t>=o-e.offsetScroll?u((e=>cl(cl({},e),{isHiddenScrollBar:!0}))):u((e=>cl(cl({},e),{isHiddenScrollBar:!1})))};o({setScrollLeft:e=>{u((t=>cl(cl({},t),{scrollLeft:e/i.value*l.value||0})))}});let v=null,b=null,y=null,O=null;Vn((()=>{v=Ia(document.body,"mouseup",h,!1),b=Ia(document.body,"mousemove",g,!1),y=Ia(window,"resize",m,!1)})),Qn((()=>{Ft((()=>{m()}))})),Vn((()=>{setTimeout((()=>{bn([a,p],(()=>{m()}),{immediate:!0,flush:"post"})}))})),bn((()=>e.container),(()=>{null==O||O.remove(),O=Ia(e.container,"scroll",m,!1)}),{immediate:!0,flush:"post"}),Kn((()=>{null==v||v.remove(),null==b||b.remove(),null==O||O.remove(),null==y||y.remove()})),bn((()=>cl({},c.value)),((t,n)=>{t.isHiddenScrollBar===(null==n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||u((t=>{const n=e.scrollBodyRef.value;return n?cl(cl({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t}))}),{immediate:!0});const w=vm();return()=>{if(i.value<=l.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:t}=r;return br("div",{style:{height:`${w}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[br("div",{onMousedown:f,ref:s,class:xl(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:p.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),lV=ds()?window:null,aV=jn({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=mY(),l=Lr((()=>i.isSticky&&!e.fixHeader?0:i.scrollbarSize)),a=bt(),s=e=>{const{currentTarget:t,deltaX:n}=e;n&&(r("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},c=bt();Vn((()=>{Ft((()=>{c.value=Ia(a.value,"wheel",s)}))})),Kn((()=>{var e;null===(e=c.value)||void 0===e||e.remove()}));const u=Lr((()=>e.flattenColumns.every((e=>e.width&&0!==e.width&&"0px"!==e.width)))),d=bt([]),p=bt([]);mn((()=>{const t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,n]:e.columns,p.value=l.value?[...e.flattenColumns,n]:e.flattenColumns}));const h=Lr((()=>{const{stickyOffsets:t,direction:n}=e,{right:o,left:r}=t;return cl(cl({},t),{left:"rtl"===n?[...r.map((e=>e+l.value)),0]:r,right:"rtl"===n?o:[...o.map((e=>e+l.value)),0],isSticky:i.isSticky})})),f=(g=Tt(e,"colWidths"),m=Tt(e,"columCount"),Lr((()=>{const e=[],t=g.value,n=m.value;for(let o=0;o{var t;const{noData:r,columCount:s,stickyTopOffset:c,stickyBottomOffset:g,stickyClassName:m,maxContentScroll:v}=e,{isSticky:b}=i;return br("div",{style:cl({overflow:"hidden"},b?{top:`${c}px`,bottom:`${g}px`}:{}),ref:a,class:xl(n.class,{[m]:!!m})},[br("table",{style:{tableLayout:"fixed",visibility:r||f.value?null:"hidden"}},[(!r||!v||u.value)&&br(UY,{colWidths:f.value?[...f.value,l.value]:[],columCount:s+1,columns:p.value},null),null===(t=o.default)||void 0===t?void 0:t.call(o,cl(cl({},e),{stickyOffsets:h.value,columns:d.value,flattenColumns:p.value}))])])}}});function sV(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[t,Tt(e,t)]))))}const cV=[],uV={},dV="rc-table-internal-hook",pV=jn({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Lr((()=>e.data||cV)),l=Lr((()=>!!i.value.length)),a=Lr((()=>OY(e.components,{}))),s=(e,t)=>bY(a.value,e)||t,c=Lr((()=>{const t=e.rowKey;return"function"==typeof t?t:e=>e&&e[t]})),u=Lr((()=>e.expandIcon||rV)),d=Lr((()=>e.childrenColumnName||"children")),p=Lr((()=>e.expandedRowRender?"row":!(!e.canExpandable&&!i.value.some((e=>e&&"object"==typeof e&&e[d.value])))&&"nest")),h=yt([]),f=mn((()=>{e.defaultExpandedRowKeys&&(h.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(h.value=function(e,t,n){const o=[];return function e(r){(r||[]).forEach(((r,i)=>{o.push(t(r,i)),e(r[n])}))}(e),o}(i.value,c.value,d.value))}));f();const g=Lr((()=>new Set(e.expandedRowKeys||h.value||[]))),m=e=>{const t=c.value(e,i.value.indexOf(e));let n;const o=g.value.has(t);o?(g.value.delete(t),n=[...g.value]):n=[...g.value,t],h.value=n,r("expand",!o,e),r("update:expandedRowKeys",n),r("expandedRowsChange",n)},v=bt(0),[b,y]=function(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:i,getRowKey:l,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:p,expandColumnWidth:h,expandFixed:f}=e;const g=$Y(),m=Lr((()=>{if(r.value){let e=o.value.slice();if(!e.includes(WY)){const t=u.value||0;t>=0&&e.splice(t,0,WY)}const t=e.indexOf(WY);e=e.filter(((e,n)=>e!==WY||n===t));const r=o.value[t];let d;d="left"!==f.value&&!f.value||u.value?"right"!==f.value&&!f.value||u.value!==o.value.length?r?r.fixed:null:"right":"left";const m=i.value,v=c.value,b=s.value,y=n.value,O=p.value,w={[CY]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:oo(g.value,"expandColumnTitle",{},(()=>[""])),fixed:d,class:`${n.value}-row-expand-icon-cell`,width:h.value,customRender:e=>{let{record:t,index:n}=e;const o=l.value(t,n),r=m.has(o),i=!v||v(t),s=b({prefixCls:y,expanded:r,expandable:i,record:t,onExpand:a});return O?br("span",{onClick:e=>e.stopPropagation()},[s]):s}};return e.map((e=>e===WY?w:e))}return o.value.filter((e=>e!==WY))})),v=Lr((()=>{let e=m.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e})),b=Lr((()=>"rtl"===d.value?YY(XY(v.value)):XY(v.value)));return[v,b]}(cl(cl({},Ct(e)),{expandable:Lr((()=>!!e.expandedRowRender)),expandedKeys:g,getRowKey:c,onTriggerExpand:m,expandIcon:u}),Lr((()=>e.internalHooks===dV?e.transformColumns:null))),O=Lr((()=>({columns:b.value,flattenColumns:y.value}))),w=bt(),S=bt(),$=bt(),x=bt({scrollWidth:0,clientWidth:0}),C=bt(),[k,P]=Hv(!1),[T,M]=Hv(!1),[I,E]=VY(new Map),A=Lr((()=>yY(y.value))),D=Lr((()=>A.value.map((e=>I.value.get(e))))),R=Lr((()=>y.value.length)),z=(B=D,j=R,N=Tt(e,"direction"),Lr((()=>{const e=[],t=[];let n=0,o=0;const r=B.value,i=j.value,l=N.value;for(let a=0;ae.scroll&&wY(e.scroll.y))),Q=Lr((()=>e.scroll&&wY(e.scroll.x)||Boolean(e.expandFixed))),L=Lr((()=>Q.value&&y.value.some((e=>{let{fixed:t}=e;return t})))),H=bt(),F=function(e,t){return Lr((()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:i=(()=>lV)}="object"==typeof e.value?e.value:{},l=i()||lV,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}}))}(Tt(e,"sticky"),Tt(e,"prefixCls")),W=rt({}),X=Lr((()=>{const e=Object.values(W)[0];return(_.value||F.value.isSticky)&&e})),Y=bt({}),V=bt({}),Z=bt({});mn((()=>{_.value&&(V.value={overflowY:"scroll",maxHeight:Sl(e.scroll.y)}),Q.value&&(Y.value={overflowX:"auto"},_.value||(V.value={overflowY:"hidden"}),Z.value={width:!0===e.scroll.x?"auto":Sl(e.scroll.x),minWidth:"100%"})}));const[U,K]=function(e){const t=bt(e||null),n=bt();function o(){clearTimeout(n.value)}return Kn((()=>{o()})),[function(e){t.value=e,o(),n.value=setTimeout((()=>{t.value=null,n.value=void 0}),100)},function(){return t.value}]}(null);function G(e,t){if(!t)return;if("function"==typeof t)return void t(e);const n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}const q=t=>{let{currentTarget:n,scrollLeft:o}=t;var r;const i="rtl"===e.direction,l="number"==typeof o?o:n.scrollLeft,a=n||uV;if(K()&&K()!==a||(U(a),G(l,S.value),G(l,$.value),G(l,C.value),G(l,null===(r=H.value)||void 0===r?void 0:r.setScrollLeft)),n){const{scrollWidth:e,clientWidth:t}=n;i?(P(-l0)):(P(l>0),M(l{Q.value&&$.value?q({currentTarget:$.value}):(P(!1),M(!1))};let ee;const te=e=>{e!==v.value&&(J(),v.value=w.value?w.value.offsetWidth:e)},ne=e=>{let{width:t}=e;clearTimeout(ee),0!==v.value?ee=setTimeout((()=>{te(t)}),100):te(t)};bn([Q,()=>e.data,()=>e.columns],(()=>{Q.value&&J()}),{flush:"post"});const[oe,re]=Hv(0);Vn((()=>{PY.value=PY.value||WD("position","sticky")})),Vn((()=>{Ft((()=>{var e,t;J(),re(function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:bm(t),height:bm(n)}}($.value).width),x.value={scrollWidth:(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0}}))})),Un((()=>{Ft((()=>{var e,t;const n=(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,o=(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0;x.value.scrollWidth===n&&x.value.clientWidth===o||(x.value={scrollWidth:n,clientWidth:o})}))})),mn((()=>{e.internalHooks===dV&&e.internalRefs&&e.onUpdateInternalRefs({body:$.value?$.value.$el||$.value:null})}),{flush:"post"});const ie=Lr((()=>e.tableLayout?e.tableLayout:L.value?"max-content"===e.scroll.x?"auto":"fixed":_.value||F.value.isSticky||y.value.some((e=>{let{ellipsis:t}=e;return t}))?"fixed":"auto")),le=()=>{var e;return l.value?null:(null===(e=o.emptyText)||void 0===e?void 0:e.call(o))||"No Data"};(e=>{To(gY,e)})(rt(cl(cl({},Ct(sV(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:oe,fixedInfoList:Lr((()=>y.value.map(((t,n)=>MY(n,n,y.value,z.value,e.direction))))),isSticky:Lr((()=>F.value.isSticky)),summaryCollect:(e,t)=>{t?W[e]=t:delete W[e]}}))),(e=>{To(NY,e)})(rt(cl(cl({},Ct(sV(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:b,flattenColumns:y,tableLayout:ie,expandIcon:u,expandableType:p,onTriggerExpand:m}))),(e=>{To(HY,e)})({onColumnResize:(e,t)=>{Uh(w.value)&&E((n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n}))}}),(e=>{To(zY,e)})({componentWidth:v,fixHeader:_,fixColumn:L,horizonScroll:Q});const ae=()=>br(FY,{data:i.value,measureColumnWidth:_.value||Q.value||F.value.isSticky,expandedKeys:g.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:le}),se=()=>br(UY,{colWidths:y.value.map((e=>{let{width:t}=e;return t})),columns:y.value},null);return()=>{var t;const{prefixCls:r,scroll:l,tableLayout:a,direction:c,title:u=o.title,footer:d=o.footer,id:p,showHeader:h,customHeaderRow:f}=e,{isSticky:g,offsetHeader:m,offsetSummary:v,offsetScroll:P,stickyClassName:M,container:I}=F.value,E=s(["table"],"table"),A=s(["body"]),B=null===(t=o.summary)||void 0===t?void 0:t.call(o,{pageData:i.value});let j=()=>null;const N={colWidths:D.value,columCount:y.value.length,stickyOffsets:z.value,customHeaderRow:f,fixHeader:_.value,scroll:l};if(_.value||g){let e=()=>null;"function"==typeof A?(e=()=>A(i.value,{scrollbarSize:oe.value,ref:$,onScroll:q}),N.colWidths=y.value.map(((e,t)=>{let{width:n}=e;const o=t===b.value.length-1?n-oe.value:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):e=()=>br("div",{style:cl(cl({},Y.value),V.value),onScroll:q,ref:$,class:xl(`${r}-body`)},[br(E,{style:cl(cl({},Z.value),{tableLayout:ie.value})},{default:()=>[se(),ae(),!X.value&&B&&br(nV,{stickyOffsets:z.value,flattenColumns:y.value},{default:()=>[B]})]})]);const t=cl(cl(cl({noData:!i.value.length,maxContentScroll:Q.value&&"max-content"===l.x},N),O.value),{direction:c,stickyClassName:M,onScroll:q});j=()=>br(er,null,[!1!==h&&br(aV,sl(sl({},t),{},{stickyTopOffset:m,class:`${r}-header`,ref:S}),{default:e=>br(er,null,[br(RY,e,null),"top"===X.value&&br(nV,e,{default:()=>[B]})])}),e(),X.value&&"top"!==X.value&&br(aV,sl(sl({},t),{},{stickyBottomOffset:v,class:`${r}-summary`,ref:C}),{default:e=>br(nV,e,{default:()=>[B]})}),g&&$.value&&br(iV,{ref:H,offsetScroll:P,scrollBodyRef:$,onScroll:q,container:I,scrollBodySizeInfo:x.value},null)])}else j=()=>br("div",{style:cl(cl({},Y.value),V.value),class:xl(`${r}-content`),onScroll:q,ref:$},[br(E,{style:cl(cl({},Z.value),{tableLayout:ie.value})},{default:()=>[se(),!1!==h&&br(RY,sl(sl({},N),O.value),null),ae(),B&&br(nV,{stickyOffsets:z.value,flattenColumns:y.value},{default:()=>[B]})]})]);const W=Lm(n,{aria:!0,data:!0}),U=()=>br("div",sl(sl({},W),{},{class:xl(r,{[`${r}-rtl`]:"rtl"===c,[`${r}-ping-left`]:k.value,[`${r}-ping-right`]:T.value,[`${r}-layout-fixed`]:"fixed"===a,[`${r}-fixed-header`]:_.value,[`${r}-fixed-column`]:L.value,[`${r}-scroll-horizontal`]:Q.value,[`${r}-has-fix-left`]:y.value[0]&&y.value[0].fixed,[`${r}-has-fix-right`]:y.value[R.value-1]&&"right"===y.value[R.value-1].fixed,[n.class]:n.class}),style:n.style,id:p,ref:w}),[u&&br(KY,{class:`${r}-title`},{default:()=>[u(i.value)]}),br("div",{class:`${r}-container`},[j()]),d&&br(KY,{class:`${r}-footer`},{default:()=>[d(i.value)]})]);return Q.value?br(ua,{onResize:ne},{default:U}):U()}}}),hV=10;function fV(e,t,n){const o=Lr((()=>t.value&&"object"==typeof t.value?t.value:{})),r=Lr((()=>o.value.total||0)),[i,l]=Hv((()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:hV}))),a=Lr((()=>{const t=function(){const e=cl({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[t];void 0!==o&&(e[t]=o)}))}return e}(i.value,o.value,{total:r.value>0?r.value:e.value}),n=Math.ceil((r.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t})),s=(e,n)=>{!1!==t.value&&l({current:null!=e?e:1,pageSize:n||a.value.pageSize})},c=(e,r)=>{var i,l;t.value&&(null===(l=(i=o.value).onChange)||void 0===l||l.call(i,e,r)),s(e,r),n(e,r||a.value.pageSize)};return[Lr((()=>!1===t.value?{}:cl(cl({},a.value),{onChange:c}))),s]}const gV={},mV="SELECT_ALL",vV="SELECT_INVERT",bV="SELECT_NONE",yV=[];function OV(e,t){let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[...n,...OV(e,t[e])])})),n}function wV(e,t){const n=Lr((()=>{const t=e.value||{},{checkStrictly:n=!0}=t;return cl(cl({},t),{checkStrictly:n})})),[o,r]=Lv(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||yV,{value:Lr((()=>n.value.selectedRowKeys))}),i=yt(new Map),l=e=>{if(n.value.preserveSelectedRowKeys){const n=new Map;e.forEach((e=>{let o=t.getRecordByKey(e);!o&&i.value.has(e)&&(o=i.value.get(e)),n.set(e,o)})),i.value=n}};mn((()=>{l(o.value)}));const a=Lr((()=>n.value.checkStrictly?null:gD(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities)),s=Lr((()=>OV(t.childrenColumnName.value,t.pageData.value))),c=Lr((()=>{const e=new Map,o=t.getRowKey.value,r=n.value.getCheckboxProps;return s.value.forEach(((t,n)=>{const i=o(t,n),l=(r?r(t):null)||{};e.set(i,l)})),e})),{maxLevel:u,levelEntities:d}=DD(a),p=e=>{var n;return!!(null===(n=c.value.get(t.getRowKey.value(e)))||void 0===n?void 0:n.disabled)},h=Lr((()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=CD(o.value,!0,a.value,u.value,d.value,p);return[e||[],t]})),f=Lr((()=>h.value[0])),g=Lr((()=>h.value[1])),m=Lr((()=>{const e="radio"===n.value.type?f.value.slice(0,1):f.value;return new Set(e)})),v=Lr((()=>"radio"===n.value.type?new Set:new Set(g.value))),[b,y]=Hv(null),O=e=>{let o,a;l(e);const{preserveSelectedRowKeys:s,onChange:c}=n.value,{getRecordByKey:u}=t;s?(o=e,a=e.map((e=>i.value.get(e)))):(o=[],a=[],e.forEach((e=>{const t=u(e);void 0!==t&&(o.push(e),a.push(t))}))),r(o),null==c||c(o,a)},w=(e,o,r,i)=>{const{onSelect:l}=n.value,{getRecordByKey:a}=t||{};if(l){const t=r.map((e=>a(e)));l(a(e),o,t,i)}O(r)},S=Lr((()=>{const{onSelectInvert:e,onSelectNone:o,selections:r,hideSelectAll:i}=n.value,{data:l,pageData:a,getRowKey:s,locale:u}=t;return!r||i?null:(!0===r?[mV,vV,bV]:r).map((t=>t===mV?{key:"all",text:u.value.selectionAll,onSelect(){O(l.value.map(((e,t)=>s.value(e,t))).filter((e=>{const t=c.value.get(e);return!(null==t?void 0:t.disabled)||m.value.has(e)})))}}:t===vV?{key:"invert",text:u.value.selectInvert,onSelect(){const t=new Set(m.value);a.value.forEach(((e,n)=>{const o=s.value(e,n),r=c.value.get(o);(null==r?void 0:r.disabled)||(t.has(o)?t.delete(o):t.add(o))}));const n=Array.from(t);e&&(xp(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),O(n)}}:t===bV?{key:"none",text:u.value.selectNone,onSelect(){null==o||o(),O(Array.from(m.value).filter((e=>{const t=c.value.get(e);return null==t?void 0:t.disabled})))}}:t))})),$=Lr((()=>s.value.length));return[o=>{var r;const{onSelectAll:i,onSelectMultiple:l,columnWidth:h,type:g,fixed:x,renderCell:C,hideSelectAll:k,checkStrictly:P}=n.value,{prefixCls:T,getRecordByKey:M,getRowKey:I,expandType:E,getPopupContainer:A}=t;if(!e.value)return o.filter((e=>e!==gV));let D=o.slice();const R=new Set(m.value),z=s.value.map(I.value).filter((e=>!c.value.get(e).disabled)),B=z.every((e=>R.has(e))),j=z.some((e=>R.has(e))),N=()=>{const e=[];B?z.forEach((t=>{R.delete(t),e.push(t)})):z.forEach((t=>{R.has(t)||(R.add(t),e.push(t))}));const t=Array.from(R);null==i||i(!B,t.map((e=>M(e))),e.map((e=>M(e)))),O(t)};let _,Q;if("radio"!==g){let e;if(S.value){const t=br(uP,{getPopupContainer:A.value},{default:()=>[S.value.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return br(uP.Item,{key:n||t,onClick:()=>{null==r||r(z)}},{default:()=>[o]})}))]});e=br("div",{class:`${T.value}-selection-extra`},[br(hk,{overlay:t,getPopupContainer:A.value},{default:()=>[br("span",null,[br(jb,null,null)])]})])}const t=s.value.map(((e,t)=>{const n=I.value(e,t),o=c.value.get(n)||{};return cl({checked:R.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===$.value,o=n&&t.every((e=>{let{checked:t}=e;return t})),r=n&&t.some((e=>{let{checked:t}=e;return t}));_=!k&&br("div",{class:`${T.value}-selection`},[br(zz,{checked:n?o:!!$.value&&B,indeterminate:n?!o&&r:!B&&j,onChange:N,disabled:0===$.value||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0},null),e])}if(Q="radio"===g?e=>{let{record:t,index:n}=e;const o=I.value(t,n),r=R.has(o);return{node:br(BM,sl(sl({},c.value.get(o)),{},{checked:r,onClick:e=>e.stopPropagation(),onChange:e=>{R.has(o)||w(o,!0,[o],e.nativeEvent)}}),null),checked:r}}:e=>{let{record:t,index:n}=e;var o;const r=I.value(t,n),i=R.has(r),s=v.value.has(r),h=c.value.get(r);let g;return"nest"===E.value?(g=s,xp("boolean"!=typeof(null==h?void 0:h.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):g=null!==(o=null==h?void 0:h.indeterminate)&&void 0!==o?o:s,{node:br(zz,sl(sl({},h),{},{indeterminate:g,checked:i,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let o=-1,s=-1;if(n&&P){const e=new Set([b.value,r]);z.some(((t,n)=>{if(e.has(t)){if(-1!==o)return s=n,!0;o=n}return!1}))}if(-1!==s&&o!==s&&P){const e=z.slice(o,s+1),t=[];i?e.forEach((e=>{R.has(e)&&(t.push(e),R.delete(e))})):e.forEach((e=>{R.has(e)||(t.push(e),R.add(e))}));const n=Array.from(R);null==l||l(!i,n.map((e=>M(e))),t.map((e=>M(e)))),O(n)}else{const e=f.value;if(P){const n=i?oD(e,r):rD(e,r);w(r,!i,n,t)}else{const n=CD([...e,r],!0,a.value,u.value,d.value,p),{checkedKeys:o,halfCheckedKeys:l}=n;let s=o;if(i){const e=new Set(o);e.delete(r),s=CD(Array.from(e),{checked:!1,halfCheckedKeys:l},a.value,u.value,d.value,p).checkedKeys}w(r,!i,s,t)}}y(r)}}),null),checked:i}},!D.includes(gV))if(0===D.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[CY])||void 0===t?void 0:t.columnType)}))){const[e,...t]=D;D=[e,gV,...t]}else D=[gV,...D];const L=D.indexOf(gV);D=D.filter(((e,t)=>e!==gV||t===L));const H=D[L-1],F=D[L+1];let W=x;void 0===W&&(void 0!==(null==F?void 0:F.fixed)?W=F.fixed:void 0!==(null==H?void 0:H.fixed)&&(W=H.fixed)),W&&H&&"EXPAND_COLUMN"===(null===(r=H[CY])||void 0===r?void 0:r.columnType)&&void 0===H.fixed&&(H.fixed=W);const X={fixed:W,width:h,className:`${T.value}-selection-column`,title:n.value.columnTitle||_,customRender:e=>{let{record:t,index:n}=e;const{node:o,checked:r}=Q({record:t,index:n});return C?C(r,t,n,o):o},[CY]:{class:`${T.value}-selection-col`}};return D.map((e=>e===gV?X:e))},m]}const SV={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function $V(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]),t=[];return e.forEach((e=>{var n,o,r,i;if(!e)return;const l=e.key,a=(null===(n=e.props)||void 0===n?void 0:n.style)||{},s=(null===(o=e.props)||void 0===o?void 0:o.class)||"",c=e.props||{};for(const[t,h]of Object.entries(c))c[ml(t)]=h;const u=e.children||{},{default:d}=u,p=cl(cl(cl({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const l=DV(i,n);e.children?("sortOrder"in e&&r(e,l),o=[...o,...QV(e.children,t,l)]):e.sorter&&("sortOrder"in e?r(e,l):t&&e.defaultSortOrder&&o.push({column:e,key:AV(e,l),multiplePriority:NV(e),sortOrder:e.defaultSortOrder}))})),o}function LV(e,t,n,o,r,i,l,a){return(t||[]).map(((t,s)=>{const c=DV(s,a);let u=t;if(u.sorter){const a=u.sortDirections||r,s=void 0===u.showSorterTooltip?l:u.showSorterTooltip,d=AV(u,c),p=n.find((e=>{let{key:t}=e;return t===d})),h=p?p.sortOrder:null,f=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(a,h),g=a.includes(BV)&&br(EV,{class:xl(`${e}-column-sorter-up`,{active:h===BV}),role:"presentation"},null),m=a.includes(jV)&&br(kV,{role:"presentation",class:xl(`${e}-column-sorter-down`,{active:h===jV})},null),{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let O=v;f===jV?O=y:f===BV&&(O=b);const w="object"==typeof s?s:{title:O};u=cl(cl({},u),{className:xl(u.className,{[`${e}-column-sort`]:h}),title:n=>{const o=br("div",{class:`${e}-column-sorters`},[br("span",{class:`${e}-column-title`},[RV(t.title,n)]),br("span",{class:xl(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!g||!m)})},[br("span",{class:`${e}-column-sorter-inner`},[g,m])])]);return s?br(Tx,w,{default:()=>[o]}):o},customHeaderCell:n=>{const r=t.customHeaderCell&&t.customHeaderCell(n)||{},i=r.onClick,l=r.onKeydown;return r.onClick=e=>{o({column:t,key:d,sortOrder:f,multiplePriority:NV(t)}),i&&i(e)},r.onKeydown=e=>{e.keyCode===Im.ENTER&&(o({column:t,key:d,sortOrder:f,multiplePriority:NV(t)}),null==l||l(e))},h&&(r["aria-sort"]="ascend"===h?"ascending":"descending"),r.class=xl(r.class,`${e}-column-has-sorters`),r.tabindex=0,r}})}return"children"in u&&(u=cl(cl({},u),{children:LV(e,u.children,n,o,r,i,l,c)})),u}))}function HV(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function FV(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(HV);return 0===t.length&&e.length?cl(cl({},HV(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function WV(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return _V(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n{const o=e[n];return o?cl(cl({},e),{[n]:WV(o,t,n)}):e})):r}function XV(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:i,showSorterTooltip:l}=e;const[a,s]=Hv(QV(n.value,!0)),c=Lr((()=>{let e=!0;const t=QV(n.value,!1);if(!t.length)return a.value;const o=[];function r(t){e?o.push(t):o.push(cl(cl({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o})),u=Lr((()=>{const e=c.value.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}));function d(e){let t;t=!1!==e.multiplePriority&&c.value.length&&!1!==c.value[0].multiplePriority?[...c.value.filter((t=>{let{key:n}=t;return n!==e.key})),e]:[e],s(t),o(FV(t),t)}const p=Lr((()=>FV(c.value)));return[e=>LV(t.value,e,c.value,d,r.value,i.value,l.value),c,u,p]}const YV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function VV(e){for(var t=1;t{const{keyCode:t}=e;t===Im.ENTER&&e.stopPropagation()},qV=(e,t)=>{let{slots:n}=t;var o;return br("div",{onClick:e=>e.stopPropagation(),onKeydown:GV},[null===(o=n.default)||void 0===o?void 0:o.call(n)])},JV=jn({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:ka(),onChange:$a(),filterSearch:Pa([Boolean,Function]),tablePrefixCls:ka(),locale:wa()},setup:e=>()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:i}=e;return o?br("div",{class:`${r}-filter-dropdown-search`},[br(r_,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>br(sy,null,null)})]):null}});var eZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Kk())),s=(t,n)=>{var o,r,i,s;"appear"===n?null===(r=null===(o=a.value)||void 0===o?void 0:o.onAfterEnter)||void 0===r||r.call(o,t):"leave"===n&&(null===(s=null===(i=a.value)||void 0===i?void 0:i.onAfterLeave)||void 0===s||s.call(i,t)),l.value||e.onMotionEnd(),l.value=!0};return bn((()=>e.motionNodes),(()=>{e.motionNodes&&"hide"===e.motionType&&r.value&&Ft((()=>{r.value=!1}))}),{immediate:!0,flush:"post"}),Vn((()=>{e.motionNodes&&e.onMotionStart()})),Kn((()=>{e.motionNodes&&s()})),()=>{const{motion:t,motionNodes:l,motionType:c,active:u,eventKey:d}=e,p=eZ(e,["motion","motionNodes","motionType","active","eventKey"]);return l?br(qr,sl(sl({},a.value),{},{appear:"show"===c,onAfterAppear:e=>s(e,"appear"),onAfterLeave:e=>s(e,"leave")}),{default:()=>[$n(br("div",{class:`${i.value.prefixCls}-treenode-motion`},[l.map((e=>{const t=eZ(e.data,[]),{title:n,key:r,isStart:i,isEnd:l}=e;return delete t.children,br(nD,sl(sl({},t),{},{title:n,active:u,data:e.data,key:r,eventKey:r,isStart:i,isEnd:l}),o)}))]),[[gi,r.value]])]}):br(nD,sl(sl({class:n.class,style:n.style},p),{},{active:u,eventKey:d}),o)}}});function nZ(e,t,n){const o=e.findIndex((e=>e.key===n)),r=e[o+1],i=t.findIndex((e=>e.key===n));if(r){const e=t.findIndex((e=>e.key===r.key));return t.slice(i+1,e)}return t.slice(i+1)}var oZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},lZ=`RC_TREE_MOTION_${Math.random()}`,aZ={key:lZ},sZ={key:lZ,level:0,index:0,pos:"0",node:aZ,nodes:[aZ]},cZ={parent:null,children:[],pos:sZ.pos,data:aZ,title:null,key:lZ,isStart:[],isEnd:[]};function uZ(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function dZ(e){const{key:t,pos:n}=e;return pD(t,n)}function pZ(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const hZ=jn({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:qA,setup(e,t){let{expose:n,attrs:o}=t;const r=bt(),i=bt(),{expandedKeys:l,flattenNodes:a}=UA();n({scrollTo:e=>{r.value.scrollTo(e)},getIndentWidth:()=>i.value.offsetWidth});const s=yt(a.value),c=yt([]),u=bt(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const p=VA();bn([()=>l.value.slice(),a],((t,n)=>{let[o,r]=t,[i,l]=n;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){const n=new Map;e.forEach((e=>{n.set(e,!0)}));const o=t.filter((e=>!n.has(e)));return 1===o.length?o[0]:null}return n{let{key:t}=e;return t===a.key})),i=uZ(nZ(l,r,a.key),t,n,o),d=l.slice();d.splice(e+1,0,cZ),s.value=d,c.value=i,u.value="show"}else{const e=r.findIndex((e=>{let{key:t}=e;return t===a.key})),i=uZ(nZ(r,l,a.key),t,n,o),d=r.slice();d.splice(e+1,0,cZ),s.value=d,c.value=i,u.value="hide"}}else l!==r&&(s.value=r)})),bn((()=>p.value.dragging),(e=>{e||d()}));const h=Lr((()=>void 0===e.motion?s.value:a.value)),f=()=>{e.onActiveChange(null)};return()=>{const t=cl(cl({},e),o),{prefixCls:n,selectable:l,checkable:a,disabled:s,motion:p,height:g,itemHeight:m,virtual:v,focusable:b,activeItem:y,focused:O,tabindex:w,onKeydown:S,onFocus:$,onBlur:x,onListChangeStart:C,onListChangeEnd:k}=t,P=oZ(t,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return br(er,null,[O&&y&&br("span",{style:rZ,"aria-live":"assertive"},[pZ(y)]),br("div",null,[br("input",{style:rZ,disabled:!1===b||s,tabindex:!1!==b?w:null,onKeydown:S,onFocus:$,onBlur:x,value:"",onChange:iZ,"aria-label":"for screen reader"},null)]),br("div",{class:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[br("div",{class:`${n}-indent`},[br("div",{ref:i,class:`${n}-indent-unit`},null)])]),br(Pv,sl(sl({},xd(P,["onActiveChange"])),{},{data:h.value,itemKey:dZ,height:g,fullHeight:!1,virtual:v,itemHeight:m,prefixCls:`${n}-list`,ref:r,onVisibleChange:(e,t)=>{const n=new Set(e);t.filter((e=>!n.has(e))).some((e=>dZ(e)===lZ))&&d()}}),{default:e=>{const{pos:t}=e,n=oZ(e.data,[]),{title:o,key:r,isStart:i,isEnd:l}=e,a=pD(r,t);return delete n.key,delete n.children,br(tZ,sl(sl({},n),{},{eventKey:a,title:o,active:!!y&&r===y.key,data:e.data,isStart:i,isEnd:l,motion:p,motionNodes:r===lZ?c.value:null,motionType:u.value,onMotionStart:C,onMotionEnd:d,onMousemove:f}),null)}})])}}}),fZ=jn({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Zl(JA(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=-n*o+"px";break;case 1:r.bottom=0,r.left=-n*o+"px";break;case 0:r.bottom=0,r.left=`${o}`}return br("div",{style:r},null)},allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=yt(!1);let l={};const a=yt(),s=yt([]),c=yt([]),u=yt([]),d=yt([]),p=yt([]),h=yt([]),f={},g=rt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),m=yt([]);bn([()=>e.treeData,()=>e.children],(()=>{m.value=void 0!==e.treeData?dt(e.treeData).slice():fD(dt(e.children))}),{immediate:!0,deep:!0});const v=yt({}),b=yt(!1),y=yt(null),O=yt(!1),w=Lr((()=>hD(e.fieldNames))),S=yt();let $=null,x=null,C=null;const k=Lr((()=>({expandedKeysSet:P.value,selectedKeysSet:T.value,loadedKeysSet:M.value,loadingKeysSet:I.value,checkedKeysSet:E.value,halfCheckedKeysSet:A.value,dragOverNodeKey:g.dragOverNodeKey,dropPosition:g.dropPosition,keyEntities:v.value}))),P=Lr((()=>new Set(h.value))),T=Lr((()=>new Set(s.value))),M=Lr((()=>new Set(d.value))),I=Lr((()=>new Set(p.value))),E=Lr((()=>new Set(c.value))),A=Lr((()=>new Set(u.value)));mn((()=>{if(m.value){const e=gD(m.value,{fieldNames:w.value});v.value=cl({[lZ]:sZ},e.keyEntities)}}));let D=!1;bn([()=>e.expandedKeys,()=>e.autoExpandParent,v],((t,n)=>{let[o,r]=t,[i,l]=n,a=h.value;if(void 0!==e.expandedKeys||D&&r!==l)a=e.autoExpandParent||!D&&e.defaultExpandParent?dD(e.expandedKeys,v.value):e.expandedKeys;else if(!D&&e.defaultExpandAll){const e=cl({},v.value);delete e[lZ],a=Object.keys(e).map((t=>e[t].key))}else!D&&e.defaultExpandedKeys&&(a=e.autoExpandParent||e.defaultExpandParent?dD(e.defaultExpandedKeys,v.value):e.defaultExpandedKeys);a&&(h.value=a),D=!0}),{immediate:!0});const R=yt([]);mn((()=>{R.value=function(e,t,n){const{_title:o,key:r,children:i}=hD(n),l=new Set(!0===t?[]:t),a=[];return function e(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(((c,u)=>{const d=lD(s?s.pos:"0",u),p=pD(c[r],d);let h;for(let e=0;e{e.selectable&&(void 0!==e.selectedKeys?s.value=cD(e.selectedKeys,e):!D&&e.defaultSelectedKeys&&(s.value=cD(e.defaultSelectedKeys,e)))}));const{maxLevel:z,levelEntities:B}=DD(v);mn((()=>{if(e.checkable){let t;if(void 0!==e.checkedKeys?t=uD(e.checkedKeys)||{}:!D&&e.defaultCheckedKeys?t=uD(e.defaultCheckedKeys)||{}:m.value&&(t=uD(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),t){let{checkedKeys:n=[],halfCheckedKeys:o=[]}=t;if(!e.checkStrictly){const e=CD(n,!0,v.value,z.value,B.value);({checkedKeys:n,halfCheckedKeys:o}=e)}c.value=n,u.value=o}}})),mn((()=>{e.loadedKeys&&(d.value=e.loadedKeys)}));const j=()=>{cl(g,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},N=e=>{S.value.scrollTo(e)};bn((()=>e.activeKey),(()=>{void 0!==e.activeKey&&(y.value=e.activeKey)}),{immediate:!0}),bn(y,(e=>{Ft((()=>{null!==e&&N({key:e})}))}),{immediate:!0,flush:"post"});const _=t=>{void 0===e.expandedKeys&&(h.value=t)},Q=()=>{null!==g.draggingNodeKey&&cl(g,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$=null,C=null},L=(t,n)=>{const{onDragend:o}=e;g.dragOverNodeKey=null,Q(),null==o||o({event:t,node:n.eventData}),x=null},H=e=>{L(e,null),window.removeEventListener("dragend",H)},F=(t,n)=>{const{onDragstart:o}=e,{eventKey:r,eventData:i}=n;x=n,$={x:t.clientX,y:t.clientY};const l=oD(h.value,r);g.draggingNodeKey=r,g.dragChildrenKeys=function(e,t){const n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{let{key:o,children:r}=t;n.push(o),e(r)}))}(t[e].children),n}(r,v.value),a.value=S.value.getIndentWidth(),_(l),window.addEventListener("dragend",H),o&&o({event:t,node:i})},W=(t,n)=>{const{onDragenter:o,onExpand:r,allowDrop:i,direction:s}=e,{pos:c,eventKey:u}=n;if(C!==u&&(C=u),!x)return void j();const{dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:O}=sD(t,x,n,a.value,$,i,R.value,v.value,P.value,s);-1===g.dragChildrenKeys.indexOf(f)&&y?(l||(l={}),Object.keys(l).forEach((e=>{clearTimeout(l[e])})),x.eventKey!==n.eventKey&&(l[c]=window.setTimeout((()=>{if(null===g.draggingNodeKey)return;let e=h.value.slice();const o=v.value[n.eventKey];o&&(o.children||[]).length&&(e=rD(h.value,n.eventKey)),_(e),r&&r(e,{node:n.eventData,expanded:!0,nativeEvent:t})}),800)),x.eventKey!==f||0!==p?(cl(g,{dragOverNodeKey:O,dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y}),o&&o({event:t,node:n.eventData,expandedKeys:h.value})):j()):j()},X=(t,n)=>{const{onDragover:o,allowDrop:r,direction:i}=e;if(!x)return;const{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropAllowed:d,dropTargetPos:p,dragOverNodeKey:h}=sD(t,x,n,a.value,$,r,R.value,v.value,P.value,i);-1===g.dragChildrenKeys.indexOf(c)&&d&&(x.eventKey===c&&0===s?null===g.dropPosition&&null===g.dropLevelOffset&&null===g.dropTargetKey&&null===g.dropContainerKey&&null===g.dropTargetPos&&!1===g.dropAllowed&&null===g.dragOverNodeKey||j():l===g.dropPosition&&s===g.dropLevelOffset&&c===g.dropTargetKey&&u===g.dropContainerKey&&p===g.dropTargetPos&&d===g.dropAllowed&&h===g.dragOverNodeKey||cl(g,{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropTargetPos:p,dropAllowed:d,dragOverNodeKey:h}),o&&o({event:t,node:n.eventData}))},Y=(t,n)=>{C!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(j(),C=null);const{onDragleave:o}=e;o&&o({event:t,node:n.eventData})},V=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r;const{dragChildrenKeys:i,dropPosition:l,dropTargetKey:a,dropTargetPos:s,dropAllowed:c}=g;if(!c)return;const{onDrop:u}=e;if(g.dragOverNodeKey=null,Q(),null===a)return;const d=cl(cl({},mD(a,dt(k.value))),{active:(null===(r=ce.value)||void 0===r?void 0:r.key)===a,data:v.value[a].node});i.indexOf(a);const p=iD(s),h={event:t,node:vD(d),dragNode:x?x.eventData:null,dragNodesKeys:[x.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),x=null},Z=(e,t)=>{const{expanded:n,key:o}=t,r=R.value.filter((e=>e.key===o))[0],i=vD(cl(cl({},mD(o,k.value)),{data:r.data}));_(n?oD(h.value,o):rD(h.value,o)),ie(e,i)},U=(t,n)=>{const{onClick:o,expandAction:r}=e;"click"===r&&Z(t,n),o&&o(t,n)},K=(t,n)=>{const{onDblclick:o,expandAction:r}=e;"doubleclick"!==r&&"dblclick"!==r||Z(t,n),o&&o(t,n)},G=(t,n)=>{let o=s.value;const{onSelect:r,multiple:i}=e,{selected:l}=n,a=n[w.value.key],c=!l;o=c?i?rD(o,a):[a]:oD(o,a);const u=v.value,d=o.map((e=>{const t=u[e];return t?t.node:null})).filter((e=>e));void 0===e.selectedKeys&&(s.value=o),r&&r(o,{event:"select",selected:c,node:n,selectedNodes:d,nativeEvent:t})},q=(t,n,o)=>{const{checkStrictly:r,onCheck:i}=e,l=n[w.value.key];let a;const s={event:"check",node:n,checked:o,nativeEvent:t},d=v.value;if(r){const t=o?rD(c.value,l):oD(c.value,l);a={checked:t,halfChecked:oD(u.value,l)},s.checkedNodes=t.map((e=>d[e])).filter((e=>e)).map((e=>e.node)),void 0===e.checkedKeys&&(c.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=CD([...c.value,l],!0,d,z.value,B.value);if(!o){const e=new Set(t);e.delete(l),({checkedKeys:t,halfCheckedKeys:n}=CD(Array.from(e),{checked:!1,halfCheckedKeys:n},d,z.value,B.value))}a=t,s.checkedNodes=[],s.checkedNodesPositions=[],s.halfCheckedKeys=n,t.forEach((e=>{const t=d[e];if(!t)return;const{node:n,pos:o}=t;s.checkedNodes.push(n),s.checkedNodesPositions.push({node:n,pos:o})})),void 0===e.checkedKeys&&(c.value=t,u.value=n)}i&&i(a,s)},J=t=>{const n=t[w.value.key],o=new Promise(((o,r)=>{const{loadData:i,onLoad:l}=e;if(!i||M.value.has(n)||I.value.has(n))return null;i(t).then((()=>{const r=rD(d.value,n),i=oD(p.value,n);l&&l(r,{event:"load",node:t}),void 0===e.loadedKeys&&(d.value=r),p.value=i,o()})).catch((t=>{const i=oD(p.value,n);if(p.value=i,f[n]=(f[n]||0)+1,f[n]>=10){const t=rD(d.value,n);void 0===e.loadedKeys&&(d.value=t),o()}r(t)})),p.value=rD(p.value,n)}));return o.catch((()=>{})),o},ee=(t,n)=>{const{onMouseenter:o}=e;o&&o({event:t,node:n})},te=(t,n)=>{const{onMouseleave:o}=e;o&&o({event:t,node:n})},ne=(t,n)=>{const{onRightClick:o}=e;o&&(t.preventDefault(),o({event:t,node:n}))},oe=t=>{const{onFocus:n}=e;b.value=!0,n&&n(t)},re=t=>{const{onBlur:n}=e;b.value=!1,se(null),n&&n(t)},ie=(t,n)=>{let o=h.value;const{onExpand:r,loadData:i}=e,{expanded:l}=n,a=n[w.value.key];if(O.value)return;o.indexOf(a);const s=!l;if(o=s?rD(o,a):oD(o,a),_(o),r&&r(o,{node:n,expanded:s,nativeEvent:t}),s&&i){const e=J(n);e&&e.then((()=>{})).catch((e=>{const t=oD(h.value,a);_(t),Promise.reject(e)}))}},le=()=>{O.value=!0},ae=()=>{setTimeout((()=>{O.value=!1}))},se=t=>{const{onActiveChange:n}=e;y.value!==t&&(void 0!==e.activeKey&&(y.value=t),null!==t&&N({key:t}),n&&n(t))},ce=Lr((()=>null===y.value?null:R.value.find((e=>{let{key:t}=e;return t===y.value}))||null)),ue=e=>{let t=R.value.findIndex((e=>{let{key:t}=e;return t===y.value}));-1===t&&e<0&&(t=R.value.length),t=(t+e+R.value.length)%R.value.length;const n=R.value[t];if(n){const{key:e}=n;se(e)}else se(null)},de=Lr((()=>vD(cl(cl({},mD(y.value,k.value)),{data:ce.value.data,active:!0})))),pe=t=>{const{onKeydown:n,checkable:o,selectable:r}=e;switch(t.which){case Im.UP:ue(-1),t.preventDefault();break;case Im.DOWN:ue(1),t.preventDefault()}const i=ce.value;if(i&&i.data){const e=!1===i.data.isLeaf||!!(i.data.children||[]).length,n=de.value;switch(t.which){case Im.LEFT:e&&P.value.has(y.value)?ie({},n):i.parent&&se(i.parent.key),t.preventDefault();break;case Im.RIGHT:e&&!P.value.has(y.value)?ie({},n):i.children&&i.children.length&&se(i.children[0].key),t.preventDefault();break;case Im.ENTER:case Im.SPACE:!o||n.disabled||!1===n.checkable||n.disableCheckbox?o||!r||n.disabled||!1===n.selectable||G({},n):q({},n,!E.value.has(y.value))}}n&&n(t)};return r({onNodeExpand:ie,scrollTo:N,onKeydown:pe,selectedKeys:Lr((()=>s.value)),checkedKeys:Lr((()=>c.value)),halfCheckedKeys:Lr((()=>u.value)),loadedKeys:Lr((()=>d.value)),loadingKeys:Lr((()=>p.value)),expandedKeys:Lr((()=>h.value))}),Gn((()=>{window.removeEventListener("dragend",H),i.value=!0})),To(ZA,{expandedKeys:h,selectedKeys:s,loadedKeys:d,loadingKeys:p,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:P,selectedKeysSet:T,loadedKeysSet:M,loadingKeysSet:I,checkedKeysSet:E,halfCheckedKeysSet:A,flattenNodes:R}),()=>{const{draggingNodeKey:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c}=g,{prefixCls:u,showLine:d,focusable:p,tabindex:h=0,selectable:f,showIcon:m,icon:O=o.icon,switcherIcon:w,draggable:$,checkable:x,checkStrictly:C,disabled:k,motion:P,loadData:T,filterTreeNode:M,height:I,itemHeight:E,virtual:A,dropIndicatorRender:D,onContextmenu:R,onScroll:z,direction:B,rootClassName:j,rootStyle:N}=e,{class:_,style:Q}=n,H=Lm(cl(cl({},e),n),{aria:!0,data:!0});let Z;return Z=!!$&&("object"==typeof $?$:"function"==typeof $?{nodeDraggable:$}:{}),br(YA,{value:{prefixCls:u,selectable:f,showIcon:m,icon:O,switcherIcon:w,draggable:Z,draggingNodeKey:t,checkable:x,customCheckable:o.checkable,checkStrictly:C,disabled:k,keyEntities:v.value,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c,dragging:null!==t,indent:a.value,direction:B,dropIndicatorRender:D,loadData:T,filterTreeNode:M,onNodeClick:U,onNodeDoubleClick:K,onNodeExpand:ie,onNodeSelect:G,onNodeCheck:q,onNodeLoad:J,onNodeMouseEnter:ee,onNodeMouseLeave:te,onNodeContextMenu:ne,onNodeDragStart:F,onNodeDragEnter:W,onNodeDragOver:X,onNodeDragLeave:Y,onNodeDragEnd:L,onNodeDrop:V,slots:o}},{default:()=>[br("div",{role:"tree",class:xl(u,_,j,{[`${u}-show-line`]:d,[`${u}-focused`]:b.value,[`${u}-active-focused`]:null!==y.value}),style:N},[br(hZ,sl({ref:S,prefixCls:u,style:Q,disabled:k,selectable:f,checkable:!!x,motion:P,height:I,itemHeight:E,virtual:A,focusable:p,focused:b.value,tabindex:h,activeItem:ce.value,onFocus:oe,onBlur:re,onKeydown:pe,onActiveChange:se,onListChangeStart:le,onListChangeEnd:ae,onContextmenu:R,onScroll:z},H),null)])]})}}}),gZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function mZ(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),_Z=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),QZ=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,l=(i-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:cl(cl({},Xu(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:cl({},Zu(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:jZ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:cl({},Zu(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:cl(cl({},NZ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:cl({lineHeight:`${i}px`,userSelect:"none"},_Z(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},LZ=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},HZ=(e,t)=>{const n=`.${e}`,o=Ju(t,{treeCls:n,treeNodeCls:`${n}-treenode`,treeNodePadding:t.paddingXS/2,treeTitleHeight:t.controlHeightSM});return[QZ(e,o),LZ(o)]},FZ=Ku("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:kz(`${n}-checkbox`,e)},HZ(n,e),IS(e)]})),WZ=()=>{const e=JA();return cl(cl({},e),{showLine:Pa([Boolean,Object]),multiple:Sa(),autoExpandParent:Sa(),checkStrictly:Sa(),checkable:Sa(),disabled:Sa(),defaultExpandAll:Sa(),defaultExpandParent:Sa(),defaultExpandedKeys:Ca(),expandedKeys:Ca(),checkedKeys:Pa([Array,Object]),defaultCheckedKeys:Ca(),selectedKeys:Ca(),defaultSelectedKeys:Ca(),selectable:Sa(),loadedKeys:Ca(),draggable:Sa(),showIcon:Sa(),icon:$a(),switcherIcon:$p.any,prefixCls:String,replaceFields:wa(),blockNode:Sa(),openAnimation:$p.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":$a(),"onUpdate:checkedKeys":$a(),"onUpdate:expandedKeys":$a()})},XZ=jn({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Zl(WZ(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:i}=t;void 0===e.treeData&&i.default;const{prefixCls:l,direction:a,virtual:s}=$d("tree",e),[c,u]=FZ(l),d=bt();o({treeRef:d,onNodeExpand:function(){var e;null===(e=d.value)||void 0===e||e.onNodeExpand(...arguments)},scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))}),mn((()=>{xp(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));const p=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},h=(e,t)=>{r("update:expandedKeys",e),r("expand",e,t)},f=(e,t)=>{r("update:selectedKeys",e),r("select",e,t)};return()=>{const{showIcon:t,showLine:o,switcherIcon:r=i.switcherIcon,icon:g=i.icon,blockNode:m,checkable:v,selectable:b,fieldNames:y=e.replaceFields,motion:O=e.openAnimation,itemHeight:w=28,onDoubleclick:S,onDblclick:$}=e,x=cl(cl(cl({},n),xd(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(o),dropIndicatorRender:BZ,fieldNames:y,icon:g,itemHeight:w}),C=i.default?la(i.default()):void 0;return c(br(fZ,sl(sl({},x),{},{virtual:s.value,motion:O,ref:d,prefixCls:l.value,class:xl({[`${l.value}-icon-hide`]:!t,[`${l.value}-block-node`]:m,[`${l.value}-unselectable`]:!b,[`${l.value}-rtl`]:"rtl"===a.value},n.class,u.value),direction:a.value,checkable:v,selectable:b,switcherIcon:e=>zZ(l.value,r,e,i.leafIcon,o),onCheck:p,onExpand:h,onSelect:f,onDblclick:$||S,children:C}),cl(cl({},i),{checkable:()=>br("span",{class:`${l.value}-checkbox-inner`},null)})))}}}),YZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function VZ(e){for(var t=1;t{if(a===nU.End)return!1;if(function(e){return e===o||e===r}(e)){if(l.push(e),a===nU.None)a=nU.Start;else if(a===nU.Start)return a=nU.End,!1}else a===nU.Start&&l.push(e);return n.includes(e)})),l):[]}function lU(e,t,n){const o=[...t],r=[];return rU(e,n,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length})),r}function aU(e){const{isLeaf:t,expanded:n}=e;return br(t?yZ:n?KZ:tU,null,null)}(oU=nU||(nU={}))[oU.None=0]="None",oU[oU.Start=1]="Start",oU[oU.End=2]="End";const sU=jn({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Zl(cl(cl({},WZ()),{expandAction:Pa([Boolean,String])}),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;var l;const a=bt(e.treeData||fD(la(null===(l=o.default)||void 0===l?void 0:l.call(o))));bn((()=>e.treeData),(()=>{a.value=e.treeData})),Un((()=>{Ft((()=>{var t;void 0===e.treeData&&o.default&&(a.value=fD(la(null===(t=o.default)||void 0===t?void 0:t.call(o))))}))}));const s=bt(),c=bt(),u=Lr((()=>hD(e.fieldNames))),d=bt();i({scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Lr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))});const p=bt(e.selectedKeys||e.defaultSelectedKeys||[]),h=bt((()=>{const{keyEntities:t}=gD(a.value,{fieldNames:u.value});let n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?dD(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n})());bn((()=>e.selectedKeys),(()=>{void 0!==e.selectedKeys&&(p.value=e.selectedKeys)}),{immediate:!0}),bn((()=>e.expandedKeys),(()=>{void 0!==e.expandedKeys&&(h.value=e.expandedKeys)}),{immediate:!0});const f=vw(((e,t)=>{const{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||d.value.onNodeExpand(e,t)}),200,{leading:!0}),g=(t,n)=>{void 0===e.expandedKeys&&(h.value=t),r("update:expandedKeys",t),r("expand",t,n)},m=(t,n)=>{const{expandAction:o}=e;"click"===o&&f(t,n),r("click",t,n)},v=(t,n)=>{const{expandAction:o}=e;"dblclick"!==o&&"doubleclick"!==o||f(t,n),r("doubleclick",t,n),r("dblclick",t,n)},b=(t,n)=>{const{multiple:o}=e,{node:i,nativeEvent:l}=n,d=i[u.value.key],f=cl(cl({},n),{selected:!0}),g=(null==l?void 0:l.ctrlKey)||(null==l?void 0:l.metaKey),m=null==l?void 0:l.shiftKey;let v;o&&g?(v=t,s.value=d,c.value=v,f.selectedNodes=lU(a.value,v,u.value)):o&&m?(v=Array.from(new Set([...c.value||[],...iU({treeData:a.value,expandedKeys:h.value,startKey:d,endKey:s.value,fieldNames:u.value})])),f.selectedNodes=lU(a.value,v,u.value)):(v=[d],s.value=d,c.value=v,f.selectedNodes=lU(a.value,v,u.value)),r("update:selectedKeys",v),r("select",v,f),void 0===e.selectedKeys&&(p.value=v)},y=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},{prefixCls:O,direction:w}=$d("tree",e);return()=>{const t=xl(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:"rtl"===w.value},n.class),{icon:r=o.icon,blockNode:i=!0}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(e.component(XZ.name,XZ),e.component(cU.name,cU),e.component(sU.name,sU),e)});function dU(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=new Set;return function e(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const l=o.has(t);if(Ps(!l,"Warning: There may be circular references"),l)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);const a=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;ne(t[n],r[n],a)))}return!1}(e,t)}const{SubMenu:pU,Item:hU}=uP;function fU(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function gU(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l}=e;return t.map(((e,t)=>{const a=String(e.value);if(e.children)return br(pU,{key:a||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[gU({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l})]});const s=r?zz:BM,c=br(hU,{key:void 0!==e.value?a:t},{default:()=>[br(s,{checked:o.includes(a)},null),br("span",null,[e.text])]});return i.trim()?"function"==typeof l?l(i,e)?c:void 0:fU(i,e.text)?c:void 0:c}))}const mU=jn({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=$Y(),r=Lr((()=>{var t;return null!==(t=e.filterMode)&&void 0!==t?t:"menu"})),i=Lr((()=>{var t;return null!==(t=e.filterSearch)&&void 0!==t&&t})),l=Lr((()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible)),a=Lr((()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange)),s=yt(!1),c=Lr((()=>{var t;return!(!e.filterState||!(null===(t=e.filterState.filteredKeys)||void 0===t?void 0:t.length)&&!e.filterState.forceFiltered)})),u=Lr((()=>{var t;return yU(null===(t=e.column)||void 0===t?void 0:t.filters)})),d=Lr((()=>{const{filterDropdown:t,slots:n={},customFilterDropdown:r}=e.column;return t||n.filterDropdown&&o.value[n.filterDropdown]||r&&o.value.customFilterDropdown})),p=Lr((()=>{const{filterIcon:t,slots:n={}}=e.column;return t||n.filterIcon&&o.value[n.filterIcon]||o.value.customFilterIcon})),h=e=>{var t;s.value=e,null===(t=a.value)||void 0===t||t.call(a,e)},f=Lr((()=>"boolean"==typeof l.value?l.value:s.value)),g=Lr((()=>{var t;return null===(t=e.filterState)||void 0===t?void 0:t.filteredKeys})),m=yt([]),v=e=>{let{selectedKeys:t}=e;m.value=t},b=(t,n)=>{let{node:o,checked:r}=n;e.filterMultiple?v({selectedKeys:t}):v({selectedKeys:r&&o.key?[o.key]:[]})};bn(g,(()=>{s.value&&v({selectedKeys:g.value||[]})}),{immediate:!0});const y=yt([]),O=yt(),w=e=>{O.value=setTimeout((()=>{y.value=e}))},S=()=>{clearTimeout(O.value)};Kn((()=>{clearTimeout(O.value)}));const $=yt(""),x=e=>{const{value:t}=e.target;$.value=t};bn(s,(()=>{s.value||($.value="")}));const C=t=>{const{column:n,columnKey:o,filterState:r}=e,i=t&&t.length?t:null;return null!==i||r&&r.filteredKeys?dU(i,null==r?void 0:r.filteredKeys,!0)?null:void e.triggerFilter({column:n,key:o,filteredKeys:i}):null},k=()=>{h(!1),C(m.value)},P=function(){let{confirm:t,closeDropdown:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};t&&C([]),n&&h(!1),$.value="",e.column.filterResetToDefaultFilteredValue?m.value=(e.column.defaultFilteredValue||[]).map((e=>String(e))):m.value=[]},T=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&h(!1),C(m.value)},M=e=>{e&&void 0!==g.value&&(m.value=g.value||[]),h(e),e||d.value||k()},{direction:I}=$d("",e),E=e=>{if(e.target.checked){const e=u.value;m.value=e}else m.value=[]},A=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:t};return e.children&&(o.children=A({filters:e.children})),o}))},D=e=>{var t;return cl(cl({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>D(e))))||[]})},R=Lr((()=>A({filters:e.column.filters}))),z=Lr((()=>{return xl({[`${e.dropdownPrefixCls}-menu-without-submenu`]:(t=e.column.filters||[],!t.some((e=>{let{children:t}=e;return t&&t.length>0})))});var t})),B=()=>{const t=m.value,{column:n,locale:o,tablePrefixCls:l,filterMultiple:a,dropdownPrefixCls:s,getPopupContainer:c,prefixCls:d}=e;return 0===(n.filters||[]).length?br(vd,{image:vd.PRESENTED_IMAGE_SIMPLE,description:o.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===r.value?br(er,null,[br(JV,{filterSearch:i.value,value:$.value,onChange:x,tablePrefixCls:l,locale:o},null),br("div",{class:`${l}-filter-dropdown-tree`},[a?br(zz,{class:`${l}-filter-dropdown-checkall`,onChange:E,checked:t.length===u.value.length,indeterminate:t.length>0&&t.length[o.filterCheckall]}):null,br(uU,{checkable:!0,selectable:!1,blockNode:!0,multiple:a,checkStrictly:!a,class:`${s}-menu`,onCheck:b,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:$.value.trim()?e=>"function"==typeof i.value?i.value($.value,D(e)):fU($.value,e.title):void 0},null)])]):br(er,null,[br(JV,{filterSearch:i.value,value:$.value,onChange:x,tablePrefixCls:l,locale:o},null),br(uP,{multiple:a,prefixCls:`${s}-menu`,class:z.value,onClick:S,onSelect:v,onDeselect:v,selectedKeys:t,getPopupContainer:c,openKeys:y.value,onOpenChange:w},{default:()=>gU({filters:n.filters||[],filterSearch:i.value,prefixCls:d,filteredKeys:m.value,filterMultiple:a,searchValue:$.value})})])},j=Lr((()=>{const t=m.value;return e.column.filterResetToDefaultFilteredValue?dU((e.column.defaultFilteredValue||[]).map((e=>String(e))),t,!0):0===t.length}));return()=>{var t;const{tablePrefixCls:o,prefixCls:r,column:i,dropdownPrefixCls:l,locale:a,getPopupContainer:s}=e;let u;u="function"==typeof d.value?d.value({prefixCls:`${l}-custom`,setSelectedKeys:e=>v({selectedKeys:e}),selectedKeys:m.value,confirm:T,clearFilters:P,filters:i.filters,visible:f.value,column:i.__originColumn__,close:()=>{h(!1)}}):d.value?d.value:br(er,null,[B(),br("div",{class:`${r}-dropdown-btns`},[br(WC,{type:"link",size:"small",disabled:j.value,onClick:()=>P()},{default:()=>[a.filterReset]}),br(WC,{type:"primary",size:"small",onClick:k},{default:()=>[a.filterConfirm]})])]);const g=br(qV,{class:`${r}-dropdown`},{default:()=>[u]});let b;return b="function"==typeof p.value?p.value({filtered:c.value,column:i.__originColumn__}):p.value?p.value:br(KV,null,null),br("div",{class:`${r}-column`},[br("span",{class:`${o}-column-title`},[null===(t=n.default)||void 0===t?void 0:t.call(n)]),br(hk,{overlay:g,trigger:["click"],open:f.value,onOpenChange:M,getPopupContainer:s,placement:"rtl"===I.value?"bottomLeft":"bottomRight"},{default:()=>[br("span",{role:"button",tabindex:-1,class:xl(`${r}-trigger`,{active:c.value}),onClick:e=>{e.stopPropagation()}},[b])]})])}}});function vU(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var i,l;const a=DV(r,n),s=e.filterDropdown||(null===(i=null==e?void 0:e.slots)||void 0===i?void 0:i.filterDropdown)||e.customFilterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!==(l=null==t?void 0:t.map(String))&&void 0!==l?l:t),o.push({column:e,key:AV(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:AV(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[...o,...vU(e.children,t,a)])})),o}function bU(e,t,n,o,r,i,l,a){return n.map(((n,s)=>{var c;const u=DV(s,a),{filterMultiple:d=!0,filterMode:p,filterSearch:h}=n;let f=n;const g=n.filterDropdown||(null===(c=null==n?void 0:n.slots)||void 0===c?void 0:c.filterDropdown)||n.customFilterDropdown;if(f.filters||g){const a=AV(f,u),s=o.find((e=>{let{key:t}=e;return a===t}));f=cl(cl({},f),{title:o=>br(mU,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:f,columnKey:a,filterState:s,filterMultiple:d,filterMode:p,filterSearch:h,triggerFilter:i,locale:r,getPopupContainer:l},{default:()=>[RV(n.title,o)]})})}return"children"in f&&(f=cl(cl({},f),{children:bU(e,t,f.children,o,r,i,l,u)})),f}))}function yU(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[...t,...yU(o)])})),t}function OU(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;var i;const l=r.filterDropdown||(null===(i=null==r?void 0:r.slots)||void 0===i?void 0:i.filterDropdown)||r.customFilterDropdown,{filters:a}=r;if(l)t[n]=o||null;else if(Array.isArray(o)){const e=yU(a);t[n]=e.filter((e=>o.includes(String(e))))}else t[n]=null})),t}function wU(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:o},filteredKeys:r}=t;return n&&r&&r.length?e.filter((e=>r.some((t=>{const r=yU(o),i=r.findIndex((e=>String(e)===String(t))),l=-1!==i?r[i]:t;return n(l,e)})))):e}),e)}function SU(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:i,getPopupContainer:l}=e;const[a,s]=Hv(vU(o.value,!0)),c=Lr((()=>{const e=vU(o.value,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(o.value||[]).map(((e,t)=>AV(e,DV(t))));return a.value.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=o.value[e.findIndex((e=>e===t.key))];return cl(cl({},t),{column:cl(cl({},t.column),n),forceFiltered:n.filtered})}))}return xp(n,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),e})),u=Lr((()=>OU(c.value))),d=e=>{const t=c.value.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),s(t),i(OU(t),t)};return[e=>bU(t.value,n.value,e,c.value,r.value,d,l.value),c,u]}function $U(e,t){return e.map((e=>{const n=cl({},e);return n.title=RV(n.title,t),"children"in n&&(n.children=$U(n.children,t)),n}))}function xU(e){return[t=>$U(t,e.value)]}function CU(e){return function(t){let{prefixCls:n,onExpand:o,record:r,expanded:i,expandable:l}=t;const a=`${n}-row-expand-icon`;return br("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},class:xl(a,{[`${a}-spaced`]:!l,[`${a}-expanded`]:l&&i,[`${a}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function kU(e,t){const n=t.value;return e.map((e=>{var o;if(e===gV||e===WY)return e;const r=cl({},e),{slots:i={}}=r;return r.__originColumn__=e,xp(!("slots"in r),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach((e=>{const t=i[e];void 0===r[e]&&n[t]&&(r[e]=n[t])})),t.value.headerCell&&!(null===(o=e.slots)||void 0===o?void 0:o.title)&&(r.title=oo(t.value,"headerCell",{title:e.title,column:e},(()=>[e.title]))),"children"in r&&Array.isArray(r.children)&&(r.children=kU(r.children,t)),r}))}function PU(e){return[t=>kU(t,e)]}const TU=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(n,o,r)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${o}px -${r+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:cl(cl(cl({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`\n > ${t}-content,\n > ${t}-header\n `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},MU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:cl(cl({},Wu),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},IU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},EU=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:l,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:h,lineHeight:f,tablePaddingVertical:g,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:b}=e,y=o/2-i,O=2*y+3*i,w=`${i}px ${a} ${s}`,S=b-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:cl(cl({},Lu(e)),{position:"relative",float:"left",boxSizing:"border-box",width:O,height:O,padding:0,color:"inherit",lineHeight:`${O}px`,background:c,border:w,borderRadius:d,transform:`scale(${o/O})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:i},"&::after":{top:S,bottom:S,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*f-3*i)/2-Math.ceil((1.4*h-3*i)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${m}px`,padding:`${g}px ${m}px`}}}},AU=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:h,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:O,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:$,controlItemBgActive:x,boxShadowSecondary:C}=e,k=`${n}-dropdown`,P=`${t}-filter-dropdown`,T=`${n}-tree`,M=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-l,marginInline:`${l}px ${-f/2}px`,padding:`0 ${l}px`,color:p,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:cl(cl({},Xu(e)),{minWidth:r,backgroundColor:w,borderRadius:g,boxShadow:C,[`${k}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:O,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[T]:{padding:0},[`${T}-treenode ${T}-node-content-wrapper:hover`]:{backgroundColor:$},[`${T}-treenode-checkbox-checked ${T}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:x}}},[`${P}-search`]:{padding:a,borderBottom:M,"&-input":{input:{minWidth:i},[o]:{color:O}}},[`${P}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:M}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},DU=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:a}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:l},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${o}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${o}`}}}}},RU=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},zU=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},BU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},jU=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:i,tableHeaderIconColor:l,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*i},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},NU=e=>{const{componentCls:t}=e,n=(n,o,r,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${o}px ${r}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${r}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`}},[`${t}-selection-column`]:{paddingInlineStart:r/4+"px"}}});return{[`${t}-wrapper`]:cl(cl({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},_U=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},QU=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},LU=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:l,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:a,display:"flex",alignItems:"center",background:l,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},HU=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},FU=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:i,lineType:l,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:f,tableRowHoverBg:g,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:O}=e,w=`${i}px ${l} ${a}`;return{[`${t}-wrapper`]:cl(cl({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:cl(cl({},Xu(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${O}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:h,borderBottom:w,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:w,borderBottom:"transparent"},"&:last-child > td":{borderBottom:w},[`&:first-child > td,\n &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:w}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${p}, border-color ${p}`,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`\n &${t}-row:hover > td,\n > td${t}-cell-row-hover\n `]:{background:g},[`&${t}-row-selected`]:{"> td":{background:m},"&:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:b,background:y}})}},WU=Ku("Table",(e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:l,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:p,colorIcon:h,colorIconHover:f,opacityLoading:g,colorBgContainer:m,borderRadiusLG:v,colorFillContent:b,colorFillSecondary:y,controlInteractiveSize:O}=e,w=new mu(h),S=new mu(f),$=t,x=new mu(y).onBackground(m).toHexString(),C=new mu(b).onBackground(m).toHexString(),k=new mu(p).onBackground(m).toHexString(),P=Ju(e,{tableFontSize:a,tableBg:m,tableRadius:v,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:k,tableFooterTextColor:r,tableFooterBg:k,tableHeaderCellSplitColor:l,tableHeaderSortBg:x,tableHeaderSortHoverBg:C,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*g).toRgbString(),tableBodySortBg:k,tableFixedHeaderSortActiveBg:x,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:m,tableRowHoverBg:k,tableSelectedRowBg:$,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:m,tableExpandColumnWidth:O+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[FU(P),RU(P),HU(P),QU(P),AU(P),TU(P),zU(P),EU(P),HU(P),IU(P),jU(P),DU(P),LU(P),MU(P),NU(P),_U(P),BU(P)]})),XU=[],YU=()=>({prefixCls:ka(),columns:Ca(),rowKey:Pa([String,Function]),tableLayout:ka(),rowClassName:Pa([String,Function]),title:$a(),footer:$a(),id:ka(),showHeader:Sa(),components:wa(),customRow:$a(),customHeaderRow:$a(),direction:ka(),expandFixed:Pa([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Ca(),defaultExpandedRowKeys:Ca(),expandedRowRender:$a(),expandRowByClick:Sa(),expandIcon:$a(),onExpand:$a(),onExpandedRowsChange:$a(),"onUpdate:expandedRowKeys":$a(),defaultExpandAllRows:Sa(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Sa(),expandedRowClassName:$a(),childrenColumnName:ka(),rowExpandable:$a(),sticky:Pa([Boolean,Object]),dropdownPrefixCls:String,dataSource:Ca(),pagination:Pa([Boolean,Object]),loading:Pa([Boolean,Object]),size:ka(),bordered:Sa(),locale:wa(),onChange:$a(),onResizeColumn:$a(),rowSelection:wa(),getPopupContainer:$a(),scroll:wa(),sortDirections:Ca(),showSorterTooltip:Pa([Boolean,Object],!0),transformCellText:$a()}),VU=jn({name:"InternalTable",inheritAttrs:!1,props:Zl(cl(cl({},YU()),{contextSlots:wa()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;xp(!("function"==typeof e.rowKey&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),(e=>{To(SY,e)})(Lr((()=>e.contextSlots))),(e=>{To(xY,e)})({onResizeColumn:(e,t)=>{i("resizeColumn",e,t)}});const l=ex(),a=Lr((()=>{const t=new Set(Object.keys(l.value).filter((e=>l.value[e])));return e.columns.filter((e=>!e.responsive||e.responsive.some((e=>t.has(e)))))})),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:p}=$d("table",e),[h,f]=WU(d),g=Lr((()=>{var t;return e.transformCellText||(null===(t=p.transformCellText)||void 0===t?void 0:t.value)})),[m]=qa("Table",Ka.Table,Tt(e,"locale")),v=Lr((()=>e.dataSource||XU)),b=Lr((()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls))),y=Lr((()=>e.childrenColumnName||"children")),O=Lr((()=>v.value.some((e=>null==e?void 0:e[y.value]))?"nest":e.expandedRowRender?"row":null)),w=rt({body:null}),S=e=>{cl(w,e)},$=Lr((()=>"function"==typeof e.rowKey?e.rowKey:t=>null==t?void 0:t[e.rowKey])),[x]=function(e,t,n){const o=yt({});return bn([e,t,n],(()=>{const r=new Map,i=n.value,l=t.value;!function e(t){t.forEach(((t,n)=>{const o=i(t,n);r.set(o,t),t&&"object"==typeof t&&l in t&&e(t[l]||[])}))}(e.value),o.value={kvMap:r}}),{deep:!0,immediate:!0}),[function(e){return o.value.kvMap.get(e)}]}(v,y,$),C={},k=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pagination:r,scroll:i,onChange:l}=e,a=cl(cl({},C),t);o&&(C.resetPagination(),a.pagination.current&&(a.pagination.current=1),r&&r.onChange&&r.onChange(1,a.pagination.pageSize)),i&&!1!==i.scrollToFirstRowOnChange&&w.body&&Qd(0,{getContainer:()=>w.body}),null==l||l(a.pagination,a.filters,a.sorter,{currentDataSource:wU(WV(v.value,a.sorterStates,y.value),a.filterStates),action:n})},[P,T,M,I]=XV({prefixCls:d,mergedColumns:a,onSorterChange:(e,t)=>{k({sorter:e,sorterStates:t},"sort",!1)},sortDirections:Lr((()=>e.sortDirections||["ascend","descend"])),tableLocale:m,showSorterTooltip:Tt(e,"showSorterTooltip")}),E=Lr((()=>WV(v.value,T.value,y.value))),[A,D,R]=SU({prefixCls:d,locale:m,dropdownPrefixCls:b,mergedColumns:a,onFilterChange:(e,t)=>{k({filters:e,filterStates:t},"filter",!0)},getPopupContainer:Tt(e,"getPopupContainer")}),z=Lr((()=>wU(E.value,D.value))),[B]=PU(Tt(e,"contextSlots")),j=Lr((()=>{const e={},t=R.value;return Object.keys(t).forEach((n=>{null!==t[n]&&(e[n]=t[n])})),cl(cl({},M.value),{filters:e})})),[N]=xU(j),[_,Q]=fV(Lr((()=>z.value.length)),Tt(e,"pagination"),((e,t)=>{k({pagination:cl(cl({},C.pagination),{current:e,pageSize:t})},"paginate")}));mn((()=>{C.sorter=I.value,C.sorterStates=T.value,C.filters=R.value,C.filterStates=D.value,C.pagination=!1===e.pagination?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(_.value,e.pagination),C.resetPagination=Q}));const L=Lr((()=>{if(!1===e.pagination||!_.value.pageSize)return z.value;const{current:t=1,total:n,pageSize:o=hV}=_.value;return xp(t>0,"Table","`current` should be positive number."),z.value.lengtho?z.value.slice((t-1)*o,t*o):z.value:z.value.slice((t-1)*o,t*o)}));mn((()=>{Ft((()=>{const{total:e,pageSize:t=hV}=_.value;z.value.lengtht&&xp(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")}))}),{flush:"post"});const H=Lr((()=>!1===e.showExpandColumn?-1:"nest"===O.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex)),F=bt();bn((()=>e.rowSelection),(()=>{F.value=e.rowSelection?cl({},e.rowSelection):e.rowSelection}),{deep:!0,immediate:!0});const[W,X]=wV(F,{prefixCls:d,data:z,pageData:L,getRowKey:$,getRecordByKey:x,expandType:O,childrenColumnName:y,locale:m,getPopupContainer:Lr((()=>e.getPopupContainer))}),Y=(t,n,o)=>{let r;const{rowClassName:i}=e;return r=xl("function"==typeof i?i(t,n,o):i),xl({[`${d.value}-row-selected`]:X.value.has($.value(t,n))},r)};r({selectedKeySet:X});const V=Lr((()=>"number"==typeof e.indentSize?e.indentSize:15)),Z=e=>N(W(A(P(B(e)))));return()=>{var t;const{expandIcon:r=o.expandIcon||CU(m.value),pagination:i,loading:l,bordered:p}=e;let b,y,O;if(!1!==i&&(null===(t=_.value)||void 0===t?void 0:t.total)){let e;e=_.value.size?_.value.size:"small"===s.value||"middle"===s.value?"small":void 0;const t=t=>br(CH,sl(sl({},_.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${t}`,_.value.class],size:e}),null),n="rtl"===u.value?"left":"right",{position:o}=_.value;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==`${e}`));e||r||i||(y=t(n)),e&&(b=t(e.toLowerCase().replace("top",""))),r&&(y=t(r.toLowerCase().replace("bottom","")))}else y=t(n)}"boolean"==typeof l?O={spinning:l}:"object"==typeof l&&(O=cl({spinning:!0},l));const x=xl(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:"rtl"===u.value},n.class,f.value),C=xd(e,["columns"]);return h(br("div",{class:x,style:n.style},[br(GL,sl({spinning:!1},O),{default:()=>[b,br(pV,sl(sl(sl({},n),C),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:H.value,indentSize:V.value,expandIcon:r,columns:a.value,direction:u.value,prefixCls:d.value,class:xl({[`${d.value}-middle`]:"middle"===s.value,[`${d.value}-small`]:"small"===s.value,[`${d.value}-bordered`]:p,[`${d.value}-empty`]:0===v.value.length}),data:L.value,rowKey:$.value,rowClassName:Y,internalHooks:dV,internalRefs:w,onUpdateInternalRefs:S,transformColumns:Z,transformCellText:g.value}),cl(cl({},o),{emptyText:()=>{var t,n;return(null===(t=o.emptyText)||void 0===t?void 0:t.call(o))||(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||c("Table")}})),y]})]))}}}),ZU=jn({name:"ATable",inheritAttrs:!1,props:Zl(YU(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=bt();return r({table:i}),()=>{var t;const r=e.columns||zV(null===(t=o.default)||void 0===t?void 0:t.call(o));return br(VU,sl(sl(sl({ref:i},n),e),{},{columns:r||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:cl({},o)}),o)}}}),UU=jn({name:"ATableColumn",slots:Object,render:()=>null}),KU=jn({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render:()=>null}),GU=JY,qU=tV,JU=cl(oV,{Cell:qU,Row:GU,name:"ATableSummary"}),eK=cl(ZU,{SELECTION_ALL:mV,SELECTION_INVERT:vV,SELECTION_NONE:bV,SELECTION_COLUMN:gV,EXPAND_COLUMN:WY,Column:UU,ColumnGroup:KU,Summary:JU,install:e=>(e.component(JU.name,JU),e.component(qU.name,qU),e.component(GU.name,GU),e.component(ZU.name,ZU),e.component(UU.name,UU),e.component(KU.name,KU),e)}),tK={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},nK=jn({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Zl(tK,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=t=>{var o;n("change",t),""===t.target.value&&(null===(o=e.handleClear)||void 0===o||o.call(e))};return()=>{const{placeholder:t,value:n,prefixCls:r,disabled:i}=e;return br(r_,{placeholder:t,class:r,value:n,onChange:o,disabled:i,allowClear:!0},{prefix:()=>br(sy,null,null)})}}}),oK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function rK(e){for(var t=1;t{const{renderedText:t,renderedEl:o,item:r,checked:i,disabled:l,prefixCls:a,showRemove:s}=e,c=xl({[`${a}-content-item`]:!0,[`${a}-content-item-disabled`]:l||r.disabled});let u;return"string"!=typeof t&&"number"!=typeof t||(u=String(t)),br(Ga,{componentName:"Transfer",defaultLocale:Ka.Transfer},{default:e=>{const t=br("span",{class:`${a}-content-item-text`},[o]);return s?br("li",{class:c,title:u},[t,br(VF,{disabled:l||r.disabled,class:`${a}-content-item-remove`,"aria-label":e.remove,onClick:()=>{n("remove",r)}},{default:()=>[br(aK,null,null)]})]):br("li",{class:c,title:u,onClick:l||r.disabled?sK:()=>{n("click",r)}},[br(zz,{class:`${a}-checkbox`,checked:i,disabled:l||r.disabled},null),t])}})}}}),uK=jn({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:{prefixCls:String,filteredRenderItems:$p.array.def([]),selectedKeys:$p.array,disabled:Sa(),showRemove:Sa(),pagination:$p.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function},emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=bt(1),i=t=>{const{selectedKeys:o}=e,r=o.indexOf(t.key)>=0;n("itemSelect",t.key,!r)},l=e=>{n("itemRemove",[e.key])},a=e=>{n("scroll",e)},s=Lr((()=>function(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return"object"==typeof e?cl(cl({},t),e):t}(e.pagination)));bn([s,()=>e.filteredRenderItems],(()=>{if(s.value){const t=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,t)}}),{immediate:!0});const c=Lr((()=>{const{filteredRenderItems:t}=e;let n=t;return s.value&&(n=t.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),n})),u=e=>{r.value=e};return o({items:c}),()=>{const{prefixCls:t,filteredRenderItems:n,selectedKeys:o,disabled:d,showRemove:p}=e;let h=null;s.value&&(h=br(CH,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:d,class:`${t}-pagination`,total:n.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const f=c.value.map((e=>{let{renderedEl:n,renderedText:r,item:a}=e;const{disabled:s}=a,c=o.indexOf(a.key)>=0;return br(cK,{disabled:d||s,key:a.key,item:a,renderedText:r,renderedEl:n,checked:c,prefixCls:t,onClick:i,onRemove:l,showRemove:p},null)}));return br(er,null,[br("ul",{class:xl(`${t}-content`,{[`${t}-content-show-remove`]:p}),onScroll:a},[f]),h])}}}),dK=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},pK=()=>null;function hK(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const fK=jn({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:{prefixCls:String,dataSource:Ca([]),filter:String,filterOption:Function,checkedKeys:$p.arrayOf($p.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Sa(!1),searchPlaceholder:String,notFoundContent:$p.any,itemUnit:String,itemsUnit:String,renderList:$p.any,disabled:Sa(),direction:ka(),showSelectAll:Sa(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:$p.any,showRemove:Sa(),pagination:$p.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=bt(""),i=bt(),l=bt(),a=t=>{const{renderItem:n=pK}=e,o=n(t),r=!(!(i=o)||sa(i)||"[object Object]"!==Object.prototype.toString.call(i));var i;return{renderedText:r?o.value:o,renderedEl:r?o.label:o,item:t}},s=bt([]),c=bt([]);mn((()=>{const t=[],n=[];e.dataSource.forEach((e=>{const o=a(e),{renderedText:i}=o;if(r.value&&r.value.trim()&&!g(i,e))return null;t.push(e),n.push(o)})),s.value=t,c.value=n}));const u=Lr((()=>{const{checkedKeys:t}=e;if(0===t.length)return"none";const n=dK(t);return s.value.every((e=>n.has(e.key)||!!e.disabled))?"all":"part"})),d=Lr((()=>hK(s.value))),p=(t,n)=>Array.from(new Set([...t,...e.checkedKeys])).filter((e=>-1===n.indexOf(e))),h=t=>{var n;const{target:{value:o}}=t;r.value=o,null===(n=e.handleFilter)||void 0===n||n.call(e,t)},f=t=>{var n;r.value="",null===(n=e.handleClear)||void 0===n||n.call(e,t)},g=(t,n)=>{const{filterOption:o}=e;return o?o(r.value,n):t.includes(r.value)},m=(t,n)=>{const{itemsUnit:o,itemUnit:r,selectAllLabel:i}=e;if(i)return"function"==typeof i?i({selectedCount:t,totalCount:n}):i;const l=n>1?o:r;return br(er,null,[(t>0?`${t}/`:"")+n,Or(" "),l])},v=Lr((()=>Array.isArray(e.notFoundContent)?e.notFoundContent["left"===e.direction?0:1]:e.notFoundContent)),b=(t,o,a,u,d,p)=>{const g=d?br("div",{class:`${t}-body-search-wrapper`},[br(nK,{prefixCls:`${t}-search`,onChange:h,handleClear:f,placeholder:o,value:r.value,disabled:p},null)]):null;let m;const{onEvents:b}=Ul(n),{bodyContent:y,customize:O}=((e,t)=>{let n=e?e(t):null;const o=!!n&&la(n).length>0;return o||(n=br(uK,sl(sl({},t),{},{ref:l}),null)),{customize:o,bodyContent:n}})(u,cl(cl(cl({},e),{filteredItems:s.value,filteredRenderItems:c.value,selectedKeys:a}),b));return m=O?br("div",{class:`${t}-body-customize-wrapper`},[y]):s.value.length?y:br("div",{class:`${t}-body-not-found`},[v.value]),br("div",{class:d?`${t}-body ${t}-body-with-search`:`${t}-body`,ref:i},[g,m])};return()=>{var t,r;const{prefixCls:i,checkedKeys:a,disabled:c,showSearch:h,searchPlaceholder:f,selectAll:g,selectCurrent:v,selectInvert:y,removeAll:O,removeCurrent:w,renderList:S,onItemSelectAll:$,onItemRemove:x,showSelectAll:C=!0,showRemove:k,pagination:P}=e,T=null===(t=o.footer)||void 0===t?void 0:t.call(o,cl({},e)),M=xl(i,{[`${i}-with-pagination`]:!!P,[`${i}-with-footer`]:!!T}),I=b(i,f,a,S,h,c),E=T?br("div",{class:`${i}-footer`},[T]):null,A=!k&&!P&&(t=>{let{disabled:n,prefixCls:o}=t;var r;const i="all"===u.value;return br(zz,{disabled:0===(null===(r=e.dataSource)||void 0===r?void 0:r.length)||n,checked:i,indeterminate:"part"===u.value,class:`${o}-checkbox`,onChange:()=>{const t=d.value;e.onItemSelectAll(p(i?[]:t,i?e.checkedKeys:[]))}},null)})({disabled:c,prefixCls:i});let D=null;D=br(uP,null,k?{default:()=>[P&&br(uP.Item,{key:"removeCurrent",onClick:()=>{const e=hK((l.value.items||[]).map((e=>e.item)));null==x||x(e)}},{default:()=>[w]}),br(uP.Item,{key:"removeAll",onClick:()=>{null==x||x(d.value)}},{default:()=>[O]})]}:{default:()=>[br(uP.Item,{key:"selectAll",onClick:()=>{const e=d.value;$(p(e,[]))}},{default:()=>[g]}),P&&br(uP.Item,{onClick:()=>{const e=hK((l.value.items||[]).map((e=>e.item)));$(p(e,[]))}},{default:()=>[v]}),br(uP.Item,{key:"selectInvert",onClick:()=>{let e;e=P?hK((l.value.items||[]).map((e=>e.item))):d.value;const t=new Set(a),n=[],o=[];e.forEach((e=>{t.has(e)?o.push(e):n.push(e)})),$(p(n,o))}},{default:()=>[y]})]});const R=br(hk,{class:`${i}-header-dropdown`,overlay:D,disabled:c},{default:()=>[br(jb,null,null)]});return br("div",{class:M,style:n.style},[br("div",{class:`${i}-header`},[C?br(er,null,[A,R]):null,br("span",{class:`${i}-header-selected`},[br("span",null,[m(a.length,s.value.length)]),br("span",{class:`${i}-header-title`},[null===(r=o.titleText)||void 0===r?void 0:r.call(o)])])]),I,E])}}});function gK(){}const mK=e=>{const{disabled:t,moveToLeft:n=gK,moveToRight:o=gK,leftArrowText:r="",rightArrowText:i="",leftActive:l,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return br("div",{class:s,style:c},[br(WC,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:br("rtl"!==u?sk:LD,null,null)},{default:()=>[i]}),!d&&br(WC,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:br("rtl"!==u?LD:sk,null,null)},{default:()=>[r]})])};mK.displayName="Operation",mK.inheritAttrs=!1;const vK=mK,bK=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:i,margin:l}=e,a=`${t}-table`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${l}px 0 ${i}px`}},[`${t}-input[disabled]`]:{backgroundColor:"transparent"}}}},yK=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},OK=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:cl({},yK(e,e.colorError)),[`${t}-status-warning`]:cl({},yK(e,e.colorWarning))}},wK=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:i,transferHeaderHeight:l,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:p,listWidth:h,listWidthLG:f,fontSizeIcon:g,marginXS:m,paddingSM:v,lineType:b,iconCls:y,motionDurationSlow:O}=e;return{display:"flex",flexDirection:"column",width:h,height:p,border:`${r}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:l,padding:`${a-r}px ${v}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${b} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":cl(cl({},Wu),{flex:"auto",textAlign:"end"}),"&-dropdown":cl(cl({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${v}px`,transition:`all ${O}`,"> *:not(:last-child)":{marginInlineEnd:m},"> *":{flex:"none"},"&-text":cl(cl({},Wu),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${O}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${b} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${b} ${o}`},"&-checkbox":{lineHeight:1}}},SK=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:i,marginXXS:l,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:cl(cl({},Xu(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:wK(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:l},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},$K=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},xK=Ku("Transfer",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:i}=e,l=Math.round(t*n),a=r,s=i,c=Ju(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-l)/2),transferItemPaddingVertical:(s-l)/2});return[SK(c),bK(c),OK(c),$K(c)]}),{listWidth:180,listHeight:200,listWidthLG:250}),CK=ya(jn({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:{id:String,prefixCls:String,dataSource:Ca([]),disabled:Sa(),targetKeys:Ca(),selectedKeys:Ca(),render:$a(),listStyle:Pa([Function,Object],(()=>({}))),operationStyle:wa(void 0),titles:Ca(),operations:Ca(),showSearch:Sa(!1),filterOption:$a(),searchPlaceholder:String,notFoundContent:$p.any,locale:wa(),rowKey:$a(),showSelectAll:Sa(),selectAllLabels:Ca(),children:$a(),oneWay:Sa(),pagination:Pa([Object,Boolean]),status:ka(),onChange:$a(),onSelectChange:$a(),onSearch:$a(),onScroll:$a(),"onUpdate:targetKeys":$a(),"onUpdate:selectedKeys":$a()},slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{configProvider:l,prefixCls:a,direction:s}=$d("transfer",e),[c,u]=xK(a),d=bt([]),p=bt([]),h=gy(),f=vy.useInject(),g=Lr((()=>Oy(f.status,e.status)));bn((()=>e.selectedKeys),(()=>{var t,n;d.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((t=>-1===e.targetKeys.indexOf(t))))||[],p.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((t=>e.targetKeys.indexOf(t)>-1)))||[]}),{immediate:!0});const m=t=>{const{targetKeys:o=[],dataSource:r=[]}=e,i="right"===t?d.value:p.value,l=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)})),t})(r),a=i.filter((e=>!l.has(e))),s=dK(a),c="right"===t?a.concat(o):o.filter((e=>!s.has(e))),u="right"===t?"left":"right";"right"===t?d.value=[]:p.value=[],n("update:targetKeys",c),S(u,[]),n("change",c,t,a),h.onFieldChange()},v=()=>{m("left")},b=()=>{m("right")},y=(e,t)=>{S(e,t)},O=e=>y("left",e),w=e=>y("right",e),S=(t,o)=>{"left"===t?(e.selectedKeys||(d.value=o),n("update:selectedKeys",[...o,...p.value]),n("selectChange",o,dt(p.value))):(e.selectedKeys||(p.value=o),n("update:selectedKeys",[...o,...d.value]),n("selectChange",dt(d.value),o))},$=(e,t)=>{const o=t.target.value;n("search",e,o)},x=e=>{$("left",e)},C=e=>{$("right",e)},k=e=>{n("search",e,"")},P=()=>{k("left")},T=()=>{k("right")},M=(e,t,n)=>{const o="left"===e?[...d.value]:[...p.value],r=o.indexOf(t);r>-1&&o.splice(r,1),n&&o.push(t),S(e,o)},I=(e,t)=>M("left",e,t),E=(e,t)=>M("right",e,t),A=t=>{const{targetKeys:o=[]}=e,r=o.filter((e=>!t.includes(e)));n("update:targetKeys",r),n("change",r,"left",[...t])},D=(e,t)=>{n("scroll",e,t)},R=e=>{D("left",e)},z=e=>{D("right",e)},B=(e,t)=>"function"==typeof e?e({direction:t}):e,j=bt([]),N=bt([]);mn((()=>{const{dataSource:t,rowKey:n,targetKeys:o=[]}=e,r=[],i=new Array(o.length),l=dK(o);t.forEach((e=>{n&&(e.key=n(e)),l.has(e.key)?i[l.get(e.key)]=e:r.push(e)})),j.value=r,N.value=i})),i({handleSelectChange:S});const _=t=>{var n,i,c,m,y,S;const{disabled:$,operations:k=[],showSearch:M,listStyle:D,operationStyle:_,filterOption:Q,showSelectAll:L,selectAllLabels:H=[],oneWay:F,pagination:W,id:X=h.id.value}=e,{class:Y,style:V}=o,Z=r.children,U=!Z&&W,K=((t,n)=>{const o={notFoundContent:n("Transfer")},i=ca(r,e,"notFoundContent");return i&&(o.notFoundContent=i),void 0!==e.searchPlaceholder&&(o.searchPlaceholder=e.searchPlaceholder),cl(cl(cl({},t),o),e.locale)})(t,l.renderEmpty),{footer:G}=r,q=e.render||r.render,J=p.value.length>0,ee=d.value.length>0,te=xl(a.value,Y,{[`${a.value}-disabled`]:$,[`${a.value}-customize-list`]:!!Z,[`${a.value}-rtl`]:"rtl"===s.value},yy(a.value,g.value,f.hasFeedback),u.value),ne=e.titles,oe=null!==(c=null!==(n=ne&&ne[0])&&void 0!==n?n:null===(i=r.leftTitle)||void 0===i?void 0:i.call(r))&&void 0!==c?c:(K.titles||["",""])[0],re=null!==(S=null!==(m=ne&&ne[1])&&void 0!==m?m:null===(y=r.rightTitle)||void 0===y?void 0:y.call(r))&&void 0!==S?S:(K.titles||["",""])[1];return br("div",sl(sl({},o),{},{class:te,style:V,id:X}),[br(fK,sl({key:"leftList",prefixCls:`${a.value}-list`,dataSource:j.value,filterOption:Q,style:B(D,"left"),checkedKeys:d.value,handleFilter:x,handleClear:P,onItemSelect:I,onItemSelectAll:O,renderItem:q,showSearch:M,renderList:Z,onScroll:R,disabled:$,direction:"rtl"===s.value?"right":"left",showSelectAll:L,selectAllLabel:H[0]||r.leftSelectAllLabel,pagination:U},K),{titleText:()=>oe,footer:G}),br(vK,{key:"operation",class:`${a.value}-operation`,rightActive:ee,rightArrowText:k[0],moveToRight:b,leftActive:J,leftArrowText:k[1],moveToLeft:v,style:_,disabled:$,direction:s.value,oneWay:F},null),br(fK,sl({key:"rightList",prefixCls:`${a.value}-list`,dataSource:N.value,filterOption:Q,style:B(D,"right"),checkedKeys:p.value,handleFilter:C,handleClear:T,onItemSelect:E,onItemSelectAll:w,onItemRemove:A,renderItem:q,showSearch:M,renderList:Z,onScroll:z,disabled:$,direction:"rtl"===s.value?"left":"right",showSelectAll:L,selectAllLabel:H[1]||r.rightSelectAllLabel,showRemove:F,pagination:U},K),{titleText:()=>re,footer:G})])};return()=>c(br(Ga,{componentName:"Transfer",defaultLocale:Ka.Transfer,children:_},null))}}));function kK(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function PK(e){return null==e}const TK=Symbol("TreeSelectContextPropsKey"),MK={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},IK=jn({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=dv(),i=ev(),l=Mo(TK,{}),a=bt(),s=Tv((()=>l.treeData),[()=>r.open,()=>l.treeData],(e=>e[0])),c=Lr((()=>{const{checkable:e,halfCheckedKeys:t,checkedKeys:n}=i;return e?{checked:n,halfChecked:t}:null}));bn((()=>r.open),(()=>{Ft((()=>{var e;r.open&&!r.multiple&&i.checkedKeys.length&&(null===(e=a.value)||void 0===e||e.scrollTo({key:i.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});const u=Lr((()=>String(r.searchValue).toLowerCase())),d=e=>!!u.value&&String(e[i.treeNodeFilterProp]).toLowerCase().includes(u.value),p=yt(i.treeDefaultExpandedKeys),h=yt(null);bn((()=>r.searchValue),(()=>{r.searchValue&&(h.value=function(e,t){const n=[];return function e(o){o.forEach((o=>{n.push(o[t.value]);const r=o[t.children];r&&e(r)}))}(e),n}(dt(l.treeData),dt(l.fieldNames)))}),{immediate:!0});const f=Lr((()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():r.searchValue?h.value:p.value)),g=e=>{var t;p.value=e,h.value=e,null===(t=i.onTreeExpand)||void 0===t||t.call(i,e)},m=e=>{e.preventDefault()},v=(e,t)=>{let{node:n}=t;var o,a;const{checkable:s,checkedKeys:c}=i;s&&kK(n)||(null===(o=l.onSelect)||void 0===o||o.call(l,n.key,{selected:!c.includes(n.key)}),r.multiple||null===(a=r.toggleOpen)||void 0===a||a.call(r,!1))},b=bt(null),y=Lr((()=>i.keyEntities[b.value])),O=e=>{b.value=e};return o({scrollTo:function(){for(var e,t,n=arguments.length,o=new Array(n),r=0;r{var t;const{which:n}=e;switch(n){case Im.UP:case Im.DOWN:case Im.LEFT:case Im.RIGHT:null===(t=a.value)||void 0===t||t.onKeydown(e);break;case Im.ENTER:if(y.value){const{selectable:e,value:t}=y.value.node||{};!1!==e&&v(0,{node:{key:b.value},selected:!i.checkedKeys.includes(t)})}break;case Im.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var e;const{prefixCls:t,multiple:o,searchValue:u,open:p,notFoundContent:h=(null===(e=n.notFoundContent)||void 0===e?void 0:e.call(n))}=r,{listHeight:w,listItemHeight:S,virtual:$,dropdownMatchSelectWidth:x,treeExpandAction:C}=l,{checkable:k,treeDefaultExpandAll:P,treeIcon:T,showTreeIcon:M,switcherIcon:I,treeLine:E,loadData:A,treeLoadedKeys:D,treeMotion:R,onTreeLoad:z,checkedKeys:B}=i;if(0===s.value.length)return br("div",{role:"listbox",class:`${t}-empty`,onMousedown:m},[h]);const j={fieldNames:l.fieldNames};return D&&(j.loadedKeys=D),f.value&&(j.expandedKeys=f.value),br("div",{onMousedown:m},[y.value&&p&&br("span",{style:MK,"aria-live":"assertive"},[y.value.node.value]),br(fZ,sl(sl({ref:a,focusable:!1,prefixCls:`${t}-tree`,treeData:s.value,height:w,itemHeight:S,virtual:!1!==$&&!1!==x,multiple:o,icon:T,showIcon:M,switcherIcon:I,showLine:E,loadData:u?null:A,motion:R,activeKey:b.value,checkable:k,checkStrictly:!0,checkedKeys:c.value,selectedKeys:k?[]:B,defaultExpandAll:P},j),{},{onActiveChange:O,onSelect:v,onCheck:v,onExpand:g,onLoad:z,filterTreeNode:d,expandAction:C}),cl(cl({},n),{checkable:i.customSlots.treeCheckable}))])}}}),EK="SHOW_PARENT",AK="SHOW_CHILD";function DK(e,t,n,o){const r=new Set(e);return t===AK?e.filter((e=>{const t=n[e];return!(t&&t.children&&t.children.some((e=>{let{node:t}=e;return r.has(t[o.value])}))&&t.children.every((e=>{let{node:t}=e;return kK(t)||r.has(t[o.value])})))})):t===EK?e.filter((e=>{const t=n[e],o=t?t.parent:null;return!(o&&!kK(o.node)&&r.has(o.key))})):e}const RK=()=>null;RK.inheritAttrs=!1,RK.displayName="ATreeSelectNode",RK.isTreeSelectNode=!0;const zK=RK;function BK(e){return function e(){return la(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!((i=t)&&i.type&&i.type.isTreeSelectNode))return null;const l=t.children||{},a=t.key,s={};for(const[e,S]of Object.entries(t.props))s[ml(e)]=S;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=cl(cl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),switcherIcon:v=(null===(o=l.switcherIcon)||void 0===o?void 0:o.call(l,g))}=s,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt}),t}function NK(e,t,n){const o=yt();return bn([n,e,t],(()=>{const r=n.value;e.value?o.value=n.value?function(e,t){let{id:n,pId:o,rootPId:r}=t;const i={},l=[];return e.map((e=>{const t=cl({},e),o=t[n];return i[o]=t,t.key=t.key||o,t})).forEach((e=>{const t=e[o],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&l.push(e)})),l}(dt(e.value),cl({id:"id",pId:"pId",rootPId:null},!0!==r?r:{})):dt(e.value).slice():o.value=BK(dt(t.value))}),{immediate:!0,deep:!0}),o}function _K(){return cl(cl({},xd(fv(),["mode"])),{prefixCls:String,id:String,value:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array]},onChange:{type:Function},searchValue:String,inputValue:String,onSearch:{type:Function},autoClearSearchValue:{type:Boolean,default:void 0},filterTreeNode:{type:[Boolean,Function],default:void 0},treeNodeFilterProp:String,onSelect:Function,onDeselect:Function,showCheckedStrategy:{type:String},treeNodeLabelProp:String,fieldNames:{type:Object},multiple:{type:Boolean,default:void 0},treeCheckable:{type:Boolean,default:void 0},treeCheckStrictly:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},treeData:{type:Array},treeDataSimpleMode:{type:[Boolean,Object],default:void 0},loadData:{type:Function},treeLoadedKeys:{type:Array},onTreeLoad:{type:Function},treeDefaultExpandAll:{type:Boolean,default:void 0},treeExpandedKeys:{type:Array},treeDefaultExpandedKeys:{type:Array},onTreeExpand:{type:Function},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,onDropdownVisibleChange:{type:Function},treeLine:{type:[Boolean,Object],default:void 0},treeIcon:$p.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:$p.any,treeMotion:$p.any,children:Array,treeExpandAction:String,showArrow:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:$p.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:$p.any,customSlots:Object})}const QK=jn({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:Zl(_K(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:AK,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Nv(Tt(e,"id")),l=Lr((()=>e.treeCheckable&&!e.treeCheckStrictly)),a=Lr((()=>e.treeCheckable||e.treeCheckStrictly)),s=Lr((()=>e.treeCheckStrictly||e.labelInValue)),c=Lr((()=>a.value||e.multiple)),u=Lr((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}(e.fieldNames))),[d,p]=Lv("",{value:Lr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),h=t=>{var n;p(t),null===(n=e.onSearch)||void 0===n||n.call(e,t)},f=NK(Tt(e,"treeData"),Tt(e,"children"),Tt(e,"treeDataSimpleMode")),{keyEntities:g,valueEntities:m}=((e,t)=>{const n=yt(new Map),o=yt({});return mn((()=>{const r=t.value,i=gD(e.value,{fieldNames:r,initWrapper:e=>cl(cl({},e),{valueEntities:new Map}),processEntity:(e,t)=>{const n=e.node[r.value];t.valueEntities.set(n,e)}});n.value=i.valueEntities,o.value=i.keyEntities})),{valueEntities:n,keyEntities:o}})(f,u),v=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:i}=n;return Lr((()=>{const{children:n}=i.value,l=t.value,a=null==o?void 0:o.value;if(!l||!1===r.value)return e.value;let s;if("function"==typeof r.value)s=r.value;else{const e=l.toUpperCase();s=(t,n)=>{const o=n[a];return String(o).toUpperCase().includes(e)}}return function e(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];for(let i=0,a=t.length;i{var t;return(t=e,Array.isArray(t)?t:void 0!==t?[t]:[]).map((e=>function(e){return!e||"object"!=typeof e}(e)?{value:e}:e))},y=t=>b(t).map((t=>{let{label:n}=t;const{value:o,halfChecked:r}=t;let i;const l=m.value.get(o);return l&&(n=null!=n?n:(t=>{if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];const{_title:n}=u.value;for(let e=0;eb(O.value))),$=yt([]),x=yt([]);mn((()=>{const e=[],t=[];S.value.forEach((n=>{n.halfChecked?t.push(n):e.push(n)})),$.value=e,x.value=t}));const C=Lr((()=>$.value.map((e=>e.value)))),{maxLevel:k,levelEntities:P}=DD(g),[T,M]=((e,t,n,o,r,i)=>{const l=yt([]),a=yt([]);return mn((()=>{let s=e.value.map((e=>{let{value:t}=e;return t})),c=t.value.map((e=>{let{value:t}=e;return t}));const u=s.filter((e=>!o.value[e]));n.value&&({checkedKeys:s,halfCheckedKeys:c}=CD(s,!0,o.value,r.value,i.value)),l.value=Array.from(new Set([...u,...s])),a.value=c})),[l,a]})($,x,l,g,k,P),I=Lr((()=>{const t=DK(T.value,e.showCheckedStrategy,g.value,u.value).map((e=>{var t,n,o;return null!==(o=null===(n=null===(t=g.value[e])||void 0===t?void 0:t.node)||void 0===n?void 0:n[u.value.value])&&void 0!==o?o:e})).map((e=>{const t=$.value.find((t=>t.value===e));return{value:e,label:null==t?void 0:t.label}})),n=y(t),o=n[0];return!c.value&&o&&PK(o.value)&&PK(o.label)?[]:n.map((e=>{var t;return cl(cl({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))})),[E]=(e=>{const t=yt({valueLabels:new Map}),n=yt();return bn(e,(()=>{n.value=dt(e.value)}),{immediate:!0}),[Lr((()=>{const{valueLabels:e}=t.value,o=new Map,r=n.value.map((t=>{var n;const{value:r}=t,i=null!==(n=t.label)&&void 0!==n?n:e.get(r);return o.set(r,i),cl(cl({},t),{label:i})}));return t.value.valueLabels=o,r}))]})(I),A=(t,n,o)=>{const r=y(t);if(w(r),e.autoClearSearchValue&&p(""),e.onChange){let r=t;if(l.value){const n=DK(t,e.showCheckedStrategy,g.value,u.value);r=n.map((e=>{const t=m.value.get(e);return t?t.node[u.value.value]:e}))}const{triggerValue:i,selected:d}=n||{triggerValue:void 0,selected:void 0};let p=r;if(e.treeCheckStrictly){const e=x.value.filter((e=>!r.includes(e.value)));p=[...p,...e]}const h=y(p),v={preValue:$.value,triggerValue:i};let b=!0;(e.treeCheckStrictly||"selection"===o&&!d)&&(b=!1),function(e,t,n,o,r,i){let l=null,a=null;function s(){a||(a=[],function e(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map(((o,c)=>{const u=`${r}-${c}`,d=o[i.value],p=n.includes(d),h=e(o[i.children]||[],u,p),f=br(zK,o,{default:()=>[h.map((e=>e.node))]});if(t===d&&(l=f),p){const e={pos:u,node:f,children:h};return s||a.push(e),e}return null})).filter((e=>e))}(o),a.sort(((e,t)=>{let{node:{props:{value:o}}}=e,{node:{props:{value:r}}}=t;return n.indexOf(o)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:()=>(s(),l)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>(s(),r?a:a.map((e=>{let{node:t}=e;return t})))})}(v,i,t,f.value,b,u.value),a.value?v.checked=d:v.selected=d;const O=s.value?h:h.map((e=>e.value));e.onChange(c.value?O:O[0],s.value?null:h.map((e=>e.label)),v)}},D=(t,n)=>{let{selected:o,source:r}=n;var i,a,s;const d=dt(g.value),p=dt(m.value),h=d[t],f=null==h?void 0:h.node,v=null!==(i=null==f?void 0:f[u.value.value])&&void 0!==i?i:t;if(c.value){let e=o?[...C.value,v]:T.value.filter((e=>e!==v));if(l.value){const{missingRawValues:t,existRawValues:n}=(e=>{const t=[],n=[];return e.forEach((e=>{m.value.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}})(e),r=n.map((e=>p.get(e).key));let i;({checkedKeys:i}=CD(r,!!o||{checked:!1,halfCheckedKeys:M.value},d,k.value,P.value)),e=[...t,...i.map((e=>d[e].node[u.value.value]))]}A(e,{selected:o,triggerValue:v},r||"option")}else A([v],{selected:!0,triggerValue:v},"option");o||!c.value?null===(a=e.onSelect)||void 0===a||a.call(e,v,jK(f)):null===(s=e.onDeselect)||void 0===s||s.call(e,v,jK(f))},R=t=>{if(e.onDropdownVisibleChange){const n={};Object.defineProperty(n,"documentClickClose",{get:()=>!1}),e.onDropdownVisibleChange(t,n)}},z=(e,t)=>{const n=e.map((e=>e.value));"clear"!==t.type?t.values.length&&D(t.values[0].value,{selected:!1,source:"selection"}):A(n,{},"selection")},{treeNodeFilterProp:B,loadData:j,treeLoadedKeys:N,onTreeLoad:_,treeDefaultExpandAll:Q,treeExpandedKeys:L,treeDefaultExpandedKeys:H,onTreeExpand:F,virtual:W,listHeight:X,listItemHeight:Y,treeLine:V,treeIcon:Z,showTreeIcon:U,switcherIcon:K,treeMotion:G,customSlots:q,dropdownMatchSelectWidth:J,treeExpandAction:ee}=Ct(e);!function(e){To(Jm,e)}(td({checkable:a,loadData:j,treeLoadedKeys:N,onTreeLoad:_,checkedKeys:T,halfCheckedKeys:M,treeDefaultExpandAll:Q,treeExpandedKeys:L,treeDefaultExpandedKeys:H,onTreeExpand:F,treeIcon:Z,treeMotion:G,showTreeIcon:U,switcherIcon:K,treeLine:V,treeNodeFilterProp:B,keyEntities:g,customSlots:q})),function(e){To(TK,e)}(td({virtual:W,listHeight:X,listItemHeight:Y,treeData:v,fieldNames:u,onSelect:D,dropdownMatchSelectWidth:J,treeExpandAction:ee}));const te=bt();return o({focus(){var e;null===(e=te.value)||void 0===e||e.focus()},blur(){var e;null===(e=te.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=te.value)||void 0===t||t.scrollTo(e)}}),()=>{var t;const o=xd(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return br(mv,sl(sl(sl({ref:te},n),o),{},{id:i,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:E.value,onDisplayValuesChange:z,searchValue:d.value,onSearch:h,OptionList:IK,emptyOptions:!f.value.length,onDropdownVisibleChange:R,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:null===(t=e.dropdownMatchSelectWidth)||void 0===t||t}),r)}}}),LK=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},HZ(n,Ju(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},kz(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},HK=(e,t,n)=>void 0!==n?n:`${e}-${t}`,FK=jn({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Zl(cl(cl({},xd(_K(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:$p.any,size:ka(),bordered:Sa(),treeLine:Pa([Boolean,Object]),replaceFields:wa(),placement:ka(),status:ka(),popupClassName:String,dropdownClassName:String,"onUpdate:value":$a(),"onUpdate:treeExpandedKeys":$a(),"onUpdate:searchValue":$a()}),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;void 0===e.treeData&&o.default,xp(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),xp(void 0===e.replaceFields,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),xp(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=gy(),a=vy.useInject(),s=Lr((()=>Oy(a.status,e.status))),{prefixCls:c,renderEmpty:u,direction:d,virtual:p,dropdownMatchSelectWidth:h,size:f,getPopupContainer:g,getPrefixCls:m,disabled:v}=$d("select",e),{compactSize:b,compactItemClassnames:y}=Hw(c,d),O=Lr((()=>b.value||f.value)),w=Wa(),S=Lr((()=>{var e;return null!==(e=v.value)&&void 0!==e?e:w.value})),$=Lr((()=>m())),x=Lr((()=>void 0!==e.placement?e.placement:"rtl"===d.value?"bottomRight":"bottomLeft")),C=Lr((()=>HK($.value,rm(x.value),e.transitionName))),k=Lr((()=>HK($.value,"",e.choiceTransitionName))),P=Lr((()=>m("select-tree",e.prefixCls))),T=Lr((()=>m("tree-select",e.prefixCls))),[M,I]=YS(c),[E]=function(e,t){return Ku("TreeSelect",(e=>{const n=Ju(e,{treePrefixCls:t.value});return[LK(n)]}))(e)}(T,P),A=Lr((()=>xl(e.popupClassName||e.dropdownClassName,`${T.value}-dropdown`,{[`${T.value}-dropdown-rtl`]:"rtl"===d.value},I.value))),D=Lr((()=>!(!e.treeCheckable&&!e.multiple))),R=Lr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!D.value)),z=bt();r({focus(){var e,t;null===(t=(e=z.value).focus)||void 0===t||t.call(e)},blur(){var e,t;null===(t=(e=z.value).blur)||void 0===t||t.call(e)}});const B=function(){for(var e=arguments.length,t=new Array(e),n=0;n{i("update:treeExpandedKeys",e),i("treeExpand",e)},N=e=>{i("update:searchValue",e),i("search",e)},_=e=>{i("blur",e),l.onFieldBlur()};return()=>{var t,r;const{notFoundContent:i=(null===(t=o.notFoundContent)||void 0===t?void 0:t.call(o)),prefixCls:f,bordered:m,listHeight:v,listItemHeight:b,multiple:w,treeIcon:$,treeLine:Q,showArrow:L,switcherIcon:H=(null===(r=o.switcherIcon)||void 0===r?void 0:r.call(o)),fieldNames:F=e.replaceFields,id:W=l.id.value}=e,{isFormItemInput:X,hasFeedback:Y,feedbackIcon:V}=a,{suffixIcon:Z,removeIcon:U,clearIcon:K}=cy(cl(cl({},e),{multiple:D.value,showArrow:R.value,hasFeedback:Y,feedbackIcon:V,prefixCls:c.value}),o);let G;G=void 0!==i?i:u("Select");const q=xd(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),J=xl(!f&&T.value,{[`${c.value}-lg`]:"large"===O.value,[`${c.value}-sm`]:"small"===O.value,[`${c.value}-rtl`]:"rtl"===d.value,[`${c.value}-borderless`]:!m,[`${c.value}-in-form-item`]:X},yy(c.value,s.value,Y),y.value,n.class,I.value),ee={};return void 0===e.treeData&&o.default&&(ee.children=ql(o.default())),M(E(br(QK,sl(sl(sl(sl({},n),q),{},{disabled:S.value,virtual:p.value,dropdownMatchSelectWidth:h.value,id:W,fieldNames:F,ref:z,prefixCls:c.value,class:J,listHeight:v,listItemHeight:b,treeLine:!!Q,inputIcon:Z,multiple:w,removeIcon:U,clearIcon:K,switcherIcon:e=>zZ(P.value,H,e,o.leafIcon,Q),showTreeIcon:$,notFoundContent:G,getPopupContainer:null==g?void 0:g.value,treeMotion:null,dropdownClassName:A.value,choiceTransitionName:k.value,onChange:B,onBlur:_,onSearch:N,onTreeExpand:j},ee),{},{transitionName:C.value,customSlots:cl(cl({},o),{treeCheckable:()=>br("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:x.value,showArrow:Y||L}),cl(cl({},o),{treeCheckable:()=>br("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),WK=zK,XK=cl(FK,{TreeNode:zK,SHOW_ALL:"SHOW_ALL",SHOW_PARENT:EK,SHOW_CHILD:AK,install:e=>(e.component(FK.name,FK),e.component(WK.displayName,WK),e)}),YK=()=>({format:String,showNow:Sa(),showHour:Sa(),showMinute:Sa(),showSecond:Sa(),use12Hours:Sa(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Sa(),popupClassName:String,status:ka()}),{TimePicker:VK,TimeRangePicker:ZK}=function(e){const t=Lj(e,cl(cl({},YK()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t;return{TimePicker:jn({name:"ATimePicker",inheritAttrs:!1,props:cl(cl(cl(cl({},Mj()),Ij()),YK()),{addon:{type:Function}}),slots:Object,setup(e,t){let{slots:o,expose:r,emit:i,attrs:l}=t;const a=e,s=gy();xp(!(o.addon||a.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const c=bt();r({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}});const u=(e,t)=>{i("update:value",e),i("change",e,t),s.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),s.onFieldBlur()},f=e=>{i("ok",e)};return()=>{const{id:e=s.id.value}=a;return br(n,sl(sl(sl({},l),xd(a,["onUpdate:value","onUpdate:open"])),{},{id:e,dropdownClassName:a.popupClassName,mode:void 0,ref:c,renderExtraFooter:a.addon||o.addon||a.renderExtraFooter||o.renderExtraFooter,onChange:u,onOpenChange:d,onFocus:p,onBlur:h,onOk:f}),o)}}}),TimeRangePicker:jn({name:"ATimeRangePicker",inheritAttrs:!1,props:cl(cl(cl(cl({},Mj()),Ej()),YK()),{order:{type:Boolean,default:!0}}),slots:Object,setup(e,t){let{slots:n,expose:r,emit:i,attrs:l}=t;const a=e,s=bt(),c=gy();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const u=(e,t)=>{i("update:value",e),i("change",e,t),c.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),c.onFieldBlur()},f=(e,t)=>{i("panelChange",e,t)},g=e=>{i("ok",e)},m=(e,t,n)=>{i("calendarChange",e,t,n)};return()=>{const{id:e=c.id.value}=a;return br(o,sl(sl(sl({},l),xd(a,["onUpdate:open","onUpdate:value"])),{},{id:e,dropdownClassName:a.popupClassName,picker:"time",mode:void 0,ref:s,onChange:u,onOpenChange:d,onFocus:p,onBlur:h,onPanelChange:f,onOk:g,onCalendarChange:m}),n)}}})}}(_P),UK=cl(VK,{TimePicker:VK,TimeRangePicker:ZK,install:e=>(e.component(VK.name,VK),e.component(ZK.name,ZK),e)}),KK=jn({compatConfig:{MODE:3},name:"ATimelineItem",props:Zl({prefixCls:String,color:String,dot:$p.any,pending:Sa(),position:$p.oneOf(ba("left","right","")).def(""),label:$p.any},{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("timeline",e),r=Lr((()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending}))),i=Lr((()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue")),l=Lr((()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.value})));return()=>{var t,a,s;const{label:c=(null===(t=n.label)||void 0===t?void 0:t.call(n)),dot:u=(null===(a=n.dot)||void 0===a?void 0:a.call(n))}=e;return br("li",{class:r.value},[c&&br("div",{class:`${o.value}-item-label`},[c]),br("div",{class:`${o.value}-item-tail`},null),br("div",{class:[l.value,!!u&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[u]),br("div",{class:`${o.value}-item-content`},[null===(s=n.default)||void 0===s?void 0:s.call(n)])])}}}),GK=e=>{const{componentCls:t}=e;return{[t]:cl(cl({},Xu(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},qK=Ku("Timeline",(e=>{const t=Ju(e,{timeLineItemPaddingBottom:1.25*e.padding,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth});return[GK(t)]})),JK=jn({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Zl({prefixCls:String,pending:$p.any,pendingDot:$p.any,reverse:Sa(),mode:$p.oneOf(ba("left","alternate","right",""))},{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("timeline",e),[l,a]=qK(r),s=(t,n)=>{const o=t.props||{};return"alternate"===e.mode?"right"===o.position?`${r.value}-item-right`:"left"===o.position||n%2==0?`${r.value}-item-left`:`${r.value}-item-right`:"left"===e.mode?`${r.value}-item-left`:"right"===e.mode||"right"===o.position?`${r.value}-item-right`:""};return()=>{var t,c,u;const{pending:d=(null===(t=n.pending)||void 0===t?void 0:t.call(n)),pendingDot:p=(null===(c=n.pendingDot)||void 0===c?void 0:c.call(n)),reverse:h,mode:f}=e,g="boolean"==typeof d?null:d,m=la(null===(u=n.default)||void 0===u?void 0:u.call(n)),v=d?br(KK,{pending:!!d,dot:p||br(Hb,null,null)},{default:()=>[g]}):null;v&&m.push(v);const b=h?m.reverse():m,y=b.length,O=`${r.value}-item-last`,w=b.map(((e,t)=>yr(e,{class:xl([!h&&d?t===y-2?O:"":t===y-1?O:"",s(e,t)])}))),S=b.some((e=>{var t,n;return!(!(null===(t=e.props)||void 0===t?void 0:t.label)&&!(null===(n=e.children)||void 0===n?void 0:n.label))})),$=xl(r.value,{[`${r.value}-pending`]:!!d,[`${r.value}-reverse`]:!!h,[`${r.value}-${f}`]:!!f&&!S,[`${r.value}-label`]:S,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value);return l(br("ul",sl(sl({},o),{},{class:$}),[w]))}}});JK.Item=KK,JK.install=function(e){return e.component(JK.name,JK),e.component(KK.name,KK),e};const eG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function tG(e){for(var t=1;t{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},lG=e=>{const{componentCls:t}=e;return{"a&, a":cl(cl({},Lu(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},aG=e=>{const{componentCls:t}=e,n=oI(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sG=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),cG=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:cl(cl(cl(cl(cl(cl(cl(cl(cl({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},iG(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Pu[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lG(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:cl(cl({},Lu(e)),{marginInlineStart:e.marginXXS})}),aG(e)),sG(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},uG=Ku("Typography",(e=>[cG(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),dG=jn({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i}=Ct(e),l=rt({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});bn((()=>e.value),(e=>{l.current=e}));const a=bt();function s(e){a.value=e}function c(e){let{target:{value:t}}=e;l.current=t.replace(/[\r\n]/g,""),n("change",l.current)}function u(){l.inComposition=!0}function d(){l.inComposition=!1}function p(e){const{keyCode:t}=e;t===Im.ENTER&&e.preventDefault(),l.inComposition||(l.lastKeyCode=t)}function h(t){const{keyCode:o,ctrlKey:r,altKey:i,metaKey:a,shiftKey:s}=t;l.lastKeyCode!==o||l.inComposition||r||i||a||s||(o===Im.ENTER?(g(),n("end")):o===Im.ESC&&(l.current=e.originContent,n("cancel")))}function f(){g()}function g(){n("save",l.current.trim())}Vn((()=>{var e;if(a.value){const t=null===(e=a.value)||void 0===e?void 0:e.resizableTextArea,n=null==t?void 0:t.textArea;n.focus();const{length:o}=n.value;n.setSelectionRange(o,o)}}));const[m,v]=uG(i);return()=>{const t=xl({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:"rtl"===e.direction,[e.component?`${i.value}-${e.component}`:""]:!0},r.class,v.value);return m(br("div",sl(sl({},r),{},{class:t}),[br(v_,{ref:s,maxlength:e.maxlength,value:l.current,onChange:c,onKeydown:p,onKeyup:h,onCompositionstart:u,onCompositionend:d,onBlur:f,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):br(rG,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});let pG;const hG={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function fG(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=(r=n,Array.prototype.slice.apply(r).map((e=>`${e}: ${r.getPropertyValue(e)};`)).join(""));var r;e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}const gG=(e,t,n,o,r)=>{pG||(pG=document.createElement("div"),pG.setAttribute("aria-hidden","true"),document.body.appendChild(pG));const{rows:i,suffix:l=""}=t,a=function(e){const t=document.createElement("div");fG(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}(e),s=Math.round(a*i*100)/100;fG(pG,e);const c=Wi({render:()=>br("div",{style:hG},[br("span",{style:hG},[n,l]),br("span",{style:hG},[o])])});function u(){return Math.round(100*pG.getBoundingClientRect().height)/100-.1<=s}if(c.mount(pG),u())return c.unmount(),{content:n,text:pG.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(pG.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(pG.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const h=[];pG.innerHTML="";const f=document.createElement("span");pG.appendChild(f);const g=document.createTextNode(r+l);function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=Math.floor((n+o)/2),l=t.slice(0,i);if(e.textContent=l,n>=o-1)for(let a=o;a>=n;a-=1){const n=t.slice(0,a);if(e.textContent=n,u()||!n)return a===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return u()?m(e,t,i,o,i):m(e,t,n,i,r)}function v(e){if(3===e.nodeType){const n=e.textContent||"",o=document.createTextNode(n);return t=o,f.insertBefore(t,g),m(o,n)}var t;return{finished:!1,vNode:null}}return f.appendChild(g),p.forEach((e=>{pG.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=v(e);return n&&h.push(n),t})),{content:h,text:pG.innerHTML,ellipsis:!0}},mG=jn({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=$d("typography",e),[l,a]=uG(r);return()=>{var t;const s=cl(cl({},e),o),{prefixCls:c,direction:u,component:d="article"}=s,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),vG=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),DG=jn({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:AG(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=$d("typography",e),a=rt({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=bt(),c=bt(),u=Lr((()=>{const t=e.ellipsis;return t?cl({rows:1,expandable:!1},"object"==typeof t?t:null):{}}));function d(e){const{onExpand:t}=u.value;a.expanded=!0,null==t||t(e)}function p(t){t.preventDefault(),a.originContent=e.content,O(!0)}function h(e){f(e),O(!1)}function f(t){const{onChange:n}=v.value;t!==e.content&&(r("update:content",t),null==n||n(t))}function g(){var e,t;null===(t=(e=v.value).onCancel)||void 0===t||t.call(e),O(!1)}function m(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,o=cl({},"object"==typeof n?n:null);var r;void 0===o.text&&(o.text=e.ellipsis||e.editable?e.content:null===(r=ea(s.value))||void 0===r?void 0:r.innerText),yG(o.text||""),a.copied=!0,Ft((()=>{o.onCopy&&o.onCopy(t),a.copyId=setTimeout((()=>{a.copied=!1}),3e3)}))}Vn((()=>{a.clientRendered=!0})),Kn((()=>{clearTimeout(a.copyId),ma.cancel(a.rafId)})),bn([()=>u.value.rows,()=>e.content],(()=>{Ft((()=>{w()}))}),{flush:"post",deep:!0,immediate:!0}),mn((()=>{void 0===e.content&&(Ts(!e.editable),Ts(!e.ellipsis))}));const v=Lr((()=>{const t=e.editable;return t?cl({},"object"==typeof t?t:null):{editing:!1}})),[b,y]=Lv(!1,{value:Lr((()=>v.value.editing))});function O(e){const{onStart:t}=v.value;e&&t&&t(),y(e)}function w(){ma.cancel(a.rafId),a.rafId=ma((()=>{$()}))}bn(b,(e=>{var t;e||null===(t=c.value)||void 0===t||t.focus()}),{flush:"post"});const S=Lr((()=>{const{rows:t,expandable:n,suffix:o,onEllipsis:r,tooltip:i}=u.value;return!o&&!i&&!(e.editable||e.copyable||n||r)&&(1===t?EG:IG)})),$=()=>{const{ellipsisText:t,isEllipsis:n}=a,{rows:o,suffix:r,onEllipsis:i}=u.value;if(!o||o<0||!ea(s.value)||a.expanded||void 0===e.content)return;if(S.value)return;const{content:l,text:c,ellipsis:d}=gG(ea(s.value),{rows:o,suffix:r},e.content,P(!0),"...");t===c&&a.isEllipsis===d||(a.ellipsisText=c,a.ellipsisContent=l,a.isEllipsis=d,n!==d&&i&&i(d))};function x(e){const{expandable:t,symbol:o}=u.value;if(!t)return null;if(!e&&(a.expanded||!a.isEllipsis))return null;const r=(n.ellipsisSymbol?n.ellipsisSymbol():o)||a.expandStr;return br("a",{key:"expand",class:`${i.value}-expand`,onClick:d,"aria-label":a.expandStr},[r])}function C(){if(!e.editable)return;const{tooltip:t,triggerType:o=["icon"]}=e.editable,r=n.editableIcon?n.editableIcon():br(MG,{role:"button"},null),l=n.editableTooltip?n.editableTooltip():a.editStr,s="string"==typeof l?l:"";return-1!==o.indexOf("icon")?br(Tx,{key:"edit",title:!1===t?"":l},{default:()=>[br(VF,{ref:c,class:`${i.value}-edit`,onClick:p,"aria-label":s},{default:()=>[r]})]}):null}function k(){if(!e.copyable)return;const{tooltip:t}=e.copyable,o=a.copied?a.copiedStr:a.copyStr,r=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):o,l="string"==typeof r?r:"",s=a.copied?br(Vb,null,null):br(xG,null,null),c=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):s;return br(Tx,{key:"copy",title:!1===t?"":r},{default:()=>[br(VF,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:a.copied}],onClick:m,"aria-label":l},{default:()=>[c]})]})}function P(e){return[x(e),C(),k()].filter((e=>e))}return()=>{var t;const{triggerType:r=["icon"]}=v.value,c=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=n.default)||void 0===t?void 0:t.call(n):n.default?n.default():e.content;return b.value?function(){const{class:t,style:r}=o,{maxlength:s,autoSize:c,onEnd:u}=v.value;return br(dG,{class:t,style:r,prefixCls:i.value,value:e.content,originContent:a.originContent,maxlength:s,autoSize:c,onSave:h,onChange:f,onCancel:g,onEnd:u,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}():br(Ga,{componentName:"Text",children:t=>{const d=cl(cl({},e),o),{type:h,disabled:f,content:g,class:m,style:v}=d,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&I;let D=c;if(y&&a.isEllipsis&&!a.expanded&&!I){const{title:e}=b;let t=e||"";e||"string"!=typeof c&&"number"!=typeof c||(t=String(c)),t=null==t?void 0:t.slice(String(a.ellipsisContent||"").length),D=br(er,null,[dt(a.ellipsisContent),br("span",{title:t,"aria-hidden":"true"},["..."]),O])}else D=br(er,null,[c,O]);D=function(e,t){let{mark:n,code:o,underline:r,delete:i,strong:l,keyboard:a}=e,s=t;function c(e,t){if(!e)return;const n=function(){return s}();s=br(t,null,{default:()=>[n]})}return c(l,"strong"),c(r,"u"),c(i,"del"),c(o,"code"),c(n,"mark"),c(a,"kbd"),s}(e,D);const R=$&&y&&a.isEllipsis&&!a.expanded&&!I,z=n.ellipsisTooltip?n.ellipsisTooltip():$;return br(ua,{onResize:w,disabled:!y},{default:()=>[br(mG,sl({ref:s,class:[{[`${i.value}-${h}`]:h,[`${i.value}-disabled`]:f,[`${i.value}-ellipsis`]:y,[`${i.value}-single-line`]:1===y&&!a.isEllipsis,[`${i.value}-ellipsis-single-line`]:E,[`${i.value}-ellipsis-multiple-line`]:A},m],style:cl(cl({},v),{WebkitLineClamp:A?y:void 0}),"aria-label":void 0,direction:l.value,onClick:-1!==r.indexOf("text")?p:()=>{}},M),{default:()=>[R?br(Tx,{title:!0===$?c:z},{default:()=>[br("span",null,[D])]}):D,P()]})]})}},null)}}}),RG=(e,t)=>{let{slots:n,attrs:o}=t;const r=cl(cl({},e),o),{ellipsis:i,rel:l}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{slots:n,attrs:o}=t;const r=cl(cl(cl({},e),{component:"div"}),o);return br(DG,r,n)};BG.displayName="ATypographyParagraph",BG.inheritAttrs=!1,BG.props=xd(AG(),["component"]);const jG=BG,NG=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;Ts();const i=cl(cl(cl({},e),{ellipsis:r&&"object"==typeof r?xd(r,["expandable","rows"]):r,component:"span"}),o);return br(DG,i,n)};NG.displayName="ATypographyText",NG.inheritAttrs=!1,NG.props=cl(cl({},xd(AG(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const _G=NG,QG=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{slots:n,attrs:o}=t;const{level:r=1}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach((t=>{const o=e.data[t];Array.isArray(o)?o.forEach((e=>{n.append(`${t}[]`,e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),FG(t)):e.onSuccess(FG(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((e=>{null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort(){t.abort()}}}mG.Text=_G,mG.Title=HG,mG.Paragraph=jG,mG.Link=zG,mG.Base=DG,mG.install=function(e){return e.component(mG.name,mG),e.component(mG.Text.displayName,_G),e.component(mG.Title.displayName,HG),e.component(mG.Paragraph.displayName,jG),e.component(mG.Link.displayName,zG),e};const XG=+new Date;let YG=0;function VG(){return`vc-upload-${XG}-${++YG}`}const ZG=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=o.toLowerCase(),n=t.toLowerCase();let r=[n];return".jpg"!==n&&".jpeg"!==n||(r=[".jpg",".jpeg"]),r.some((t=>e.endsWith(t)))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)}))}return!0},UG=(e,t,n)=>{const o=(e,r)=>{e.path=r||"",e.isFile?e.file((o=>{n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){const n=e.createReader();let o=[];!function e(){n.readEntries((n=>{const r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?e():t(o)}))}()}(e,(t=>{t.forEach((t=>{o(t,`${r}${e.name}/`)}))}))};e.forEach((e=>{o(e.webkitGetAsEntry())}))},KG=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var GG=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Uue){i(Uue)}}function a(e){try{s(o.throw(e))}catch(Uue){i(Uue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const qG=jn({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:KG(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt(VG()),l={},a=bt();let s=!1;const c=(t,n)=>GG(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch(Uue){r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:i}=e;let l;l="function"==typeof i?yield i(t):i;const{data:a}=e;let s;s="function"==typeof a?yield a(t):a;const c="object"!=typeof r&&"string"!=typeof r||!r?t:r;let u;u=c instanceof File?c:new File([c],t.name,{type:t.type});const d=u;return d.uid=t.uid,{origin:t,data:s,parsedFile:d,action:l}})),u=e=>{if(e){const t=e.uid?e.uid:e;l[t]&&l[t].abort&&l[t].abort(),delete l[t]}else Object.keys(l).forEach((e=>{l[e]&&l[e].abort&&l[e].abort(),delete l[e]}))};Vn((()=>{s=!0})),Kn((()=>{s=!1,u()}));const d=t=>{const n=[...t],o=n.map((e=>(e.uid=VG(),c(e,n))));Promise.all(o).then((t=>{const{onBatchStart:n}=e;null==n||n(t.map((e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}}))),t.filter((e=>null!==e.parsedFile)).forEach((t=>{(t=>{let{data:n,origin:o,action:r,parsedFile:i}=t;if(!s)return;const{onStart:a,customRequest:c,name:u,headers:d,withCredentials:p,method:h}=e,{uid:f}=o,g=c||WG,m={action:r,filename:u,data:n,file:i,headers:d,withCredentials:p,method:h||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,i)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,i,n),delete l[f]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,i),delete l[f]}};a(o),l[f]=g(m)})(t)}))}))},p=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,l=[...r].filter((e=>!o||ZG(e,n)));d(l),i.value=VG()},h=t=>{const n=a.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},f=e=>{"Enter"===e.key&&h(e)},g=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)UG(Array.prototype.slice.call(t.dataTransfer.items),d,(t=>ZG(t,e.accept)));else{const o=Bw(Array.prototype.slice.call(t.dataTransfer.files),(t=>ZG(t,e.accept)));let r=o[0];const i=o[1];!1===n&&(r=r.slice(0,1)),d(r),i.length&&e.onReject&&e.onReject(i)}};return r({abort:u}),()=>{var t;const{componentTag:r,prefixCls:l,disabled:s,id:c,multiple:u,accept:d,capture:m,directory:v,openFileDialogOnClick:b,onMouseenter:y,onMouseleave:O}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},onKeydown:b?f:()=>{},onMouseenter:y,onMouseleave:O,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:S,role:"button",style:o.style}),{default:()=>[br("input",sl(sl(sl({},Lm(w,{aria:!0,data:!0})),{},{id:c,type:"file",ref:a,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:i.value,style:{display:"none"},accept:d},$),{},{multiple:u,onChange:p},null!=m?{capture:m}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function JG(){}const eq=jn({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Zl(KG(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:JG,onError:JG,onSuccess:JG,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=bt();return r({abort:e=>{var t;null===(t=i.value)||void 0===t||t.abort(e)}}),()=>br(qG,sl(sl(sl({},e),o),{},{ref:i}),n)}}),tq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function nq(e){for(var t=1;t{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function yq(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const Oq=e=>0===e.indexOf("image/"),wq=200,Sq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function $q(e){for(var t=1;t{l.value=setTimeout((()=>{i.value=!0}),300)})),Kn((()=>{clearTimeout(l.value)}));const a=yt(null===(r=e.file)||void 0===r?void 0:r.status);bn((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(a.value=e)}));const{rootPrefixCls:s}=$d("upload",e),c=Lr((()=>im(`${s.value}-fade`)));return()=>{var t,r;const{prefixCls:l,locale:s,listType:u,file:d,items:p,progress:h,iconRender:f=n.iconRender,actionIconRender:g=n.actionIconRender,itemRender:m=n.itemRender,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:O,previewIcon:w=n.previewIcon,removeIcon:S=n.removeIcon,downloadIcon:$=n.downloadIcon,onPreview:x,onDownload:C,onClose:k}=e,{class:P,style:T}=o,M=f({file:d});let I=br("div",{class:`${l}-text-icon`},[M]);if("picture"===u||"picture-card"===u)if("uploading"===a.value||!d.thumbUrl&&!d.url){const e={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:"uploading"!==a.value};I=br("div",{class:e},[M])}else{const e=(null==v?void 0:v(d))?br("img",{src:d.thumbUrl||d.url,alt:d.name,class:`${l}-list-item-image`,crossorigin:d.crossOrigin},null):M,t={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:v&&!v(d)};I=br("a",{class:t,onClick:e=>x(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const E={[`${l}-list-item`]:!0,[`${l}-list-item-${a.value}`]:!0},A="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,D=y?g({customIcon:S?S({file:d}):br(aK,null,null),callback:()=>k(d),prefixCls:l,title:s.removeFile}):null,R=O&&"done"===a.value?g({customIcon:$?$({file:d}):br(kq,null,null),callback:()=>C(d),prefixCls:l,title:s.downloadFile}):null,z="picture-card"!==u&&br("span",{key:"download-delete",class:[`${l}-list-item-actions`,{picture:"picture"===u}]},[R,D]),B=`${l}-list-item-name`,j=d.url?[br("a",sl(sl({key:"view",target:"_blank",rel:"noopener noreferrer",class:B,title:d.name},A),{},{href:d.url,onClick:e=>x(d,e)}),[d.name]),z]:[br("span",{key:"view",class:B,onClick:e=>x(d,e),title:d.name},[d.name]),z],N=b?br("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>x(d,e),title:s.previewFile},[w?w({file:d}):br(S_,null,null)]):null,_="picture-card"===u&&"uploading"!==a.value&&br("span",{class:`${l}-list-item-actions`},[N,"done"===a.value&&R,D]),Q=br("div",{class:E},[I,j,_,i.value&&br(qr,c.value,{default:()=>[$n(br("div",{class:`${l}-list-item-progress`},["percent"in d?br(SW,sl(sl({},h),{},{type:"line",percent:d.percent}),null):null]),[[gi,"uploading"===a.value]])]})]),L={[`${l}-list-item-container`]:!0,[`${P}`]:!!P},H=d.response&&"string"==typeof d.response?d.response:(null===(t=d.error)||void 0===t?void 0:t.statusText)||(null===(r=d.error)||void 0===r?void 0:r.message)||s.uploadError,F="error"===a.value?br(Tx,{title:H,getPopupContainer:e=>e.parentNode},{default:()=>[Q]}):Q;return br("div",{class:L,style:T},[m?m({originNode:F,file:d,fileList:p,actions:{download:C.bind(null,d),preview:x.bind(null,d),remove:k.bind(null,d)}}):F])}}}),Tq=(e,t)=>{let{slots:n}=t;var o;return la(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},Mq=jn({compatConfig:{MODE:3},name:"AUploadList",props:Zl({listType:ka(),onPreview:$a(),onDownload:$a(),onRemove:$a(),items:Ca(),progress:wa(),prefixCls:ka(),showRemoveIcon:Sa(),showDownloadIcon:Sa(),showPreviewIcon:Sa(),removeIcon:$a(),downloadIcon:$a(),previewIcon:$a(),locale:wa(void 0),previewFile:$a(),iconRender:$a(),isImageUrl:$a(),appendAction:$a(),appendActionVisible:Sa(),itemRender:$a()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!Oq(e.type))return void t("");const n=document.createElement("canvas");n.width=wq,n.height=wq,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let l=wq,a=wq,s=0,c=0;e>i?(a=i*(wq/e),c=-(a-l)/2):(l=e*(wq/i),s=-(l-a)/2),o.drawImage(r,s,c,l,a);const u=n.toDataURL();document.body.removeChild(n),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",(()=>{t.result&&(r.src=t.result)})),t.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))},isImageUrl:e=>{if(e.type&&!e.thumbUrl)return Oq(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=yt(!1),i=Mr();Vn((()=>{r.value})),mn((()=>{"picture"!==e.listType&&"picture-card"!==e.listType||(e.items||[]).forEach((t=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",e.previewFile&&e.previewFile(t.originFileObj).then((e=>{t.thumbUrl=e||"",i.update()})))}))}));const l=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},a=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},s=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},c=t=>{let{file:o}=t;const r=e.iconRender||n.iconRender;if(r)return r({file:o,listType:e.listType});const i="uploading"===o.status,l=e.isImageUrl&&e.isImageUrl(o)?br(uq,null,null):br(gq,null,null);let a=br(i?Hb:iq,null,null);return"picture"===e.listType?a=i?br(Hb,null,null):l:"picture-card"===e.listType&&(a=i?e.locale.uploading:l),a},u=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,i={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return sa(t)?br(WC,i,{icon:()=>t}):br(WC,i,{default:()=>[br("span",null,[t])]})};o({handlePreview:l,handleDownload:a});const{prefixCls:d,rootPrefixCls:p}=$d("upload",e),h=Lr((()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0}))),f=Lr((()=>{const t=cl({},Kk(`${p.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=cl(cl({},lm(`${d.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:h.value,appear:r.value});return"picture-card"!==e.listType?cl(cl({},t),n):n}));return()=>{const{listType:t,locale:o,isImageUrl:r,items:i=[],showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,removeIcon:m,previewIcon:v,downloadIcon:b,progress:y,appendAction:O,itemRender:w,appendActionVisible:S}=e,$=null==O?void 0:O();return br(Di,sl(sl({},f.value),{},{tag:"div"}),{default:()=>[i.map((e=>{const{uid:f}=e;return br(Pq,{key:f,locale:o,prefixCls:d.value,file:e,items:i,progress:y,listType:t,isImgUrl:r,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,onPreview:l,onDownload:a,onClose:s,removeIcon:m,previewIcon:v,downloadIcon:b,itemRender:w},cl(cl({},n),{iconRender:c,actionIconRender:u}))})),O?$n(br(Tq,{key:"__ant_upload_appendAction"},{default:()=>$}),[[gi,!!S]]):null]})}}}),Iq=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},Eq=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,c=Math.round(r*i);return{[`${t}-wrapper`]:{[`${t}-list`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:cl(cl({},Wu),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus,\n &.picture ${s}\n `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Aq=new Hc("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Dq=new Hc("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Rq=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Aq},[`${n}-leave`]:{animationName:Dq}}},Aq,Dq]},zq=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[l]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:cl(cl({},Wu),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Bq=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:cl(cl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new mu(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},jq=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Nq=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:cl(cl({},Xu(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},_q=Ku("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:i}=e,l=Ju(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*i});return[Nq(l),Iq(l),zq(l),Bq(l),Eq(l),Rq(l),jq(l),IS(l)]}));var Qq=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(Uue){i(Uue)}}function a(e){try{s(o.throw(e))}catch(Uue){i(Uue)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Lq=`__LIST_IGNORE_${Date.now()}__`,Hq=jn({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Zl(mq(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=gy(),{prefixCls:l,direction:a,disabled:s}=$d("upload",e),[c,u]=_q(l),d=Wa(),p=Lr((()=>{var e;return null!==(e=d.value)&&void 0!==e?e:s.value})),[h,f]=Lv(e.defaultFileList||[],{value:Tt(e,"fileList"),postState:e=>{const t=Date.now();return(null!=e?e:[]).map(((e,n)=>(e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${t}_${n}__`),e)))}}),g=bt("drop"),m=bt(null);Vn((()=>{xp(void 0!==e.fileList||void 0===o.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),xp(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),xp(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const v=(t,n,o)=>{var r,l;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),f(a);const s={file:t,fileList:a};o&&(s.event=o),null===(r=e["onUpdate:fileList"])||void 0===r||r.call(e,s.fileList),null===(l=e.onChange)||void 0===l||l.call(e,s),i.onFieldChange()},b=(t,n)=>Qq(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[Lq],e===Lq)return Object.defineProperty(t,Lq,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),y=e=>{const t=e.filter((e=>!e.file[Lq]));if(!t.length)return;const n=t.map((e=>vq(e.file)));let o=[...h.value];n.forEach((e=>{o=bq(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(Uue){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}v(r,o)}))},O=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(Uue){}if(!yq(t,h.value))return;const o=vq(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=bq(o,h.value);v(o,r)},w=(e,t)=>{if(!yq(t,h.value))return;const n=vq(t);n.status="uploading",n.percent=e.percent;const o=bq(n,h.value);v(n,o,e)},S=(e,t,n)=>{if(!yq(n,h.value))return;const o=vq(n);o.error=e,o.response=t,o.status="error";const r=bq(o,h.value);v(o,r)},$=t=>{let n;const o=e.onRemove||e.remove;Promise.resolve("function"==typeof o?o(t):o).then((e=>{var o,r;if(!1===e)return;const i=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(t,h.value);i&&(n=cl(cl({},t),{status:"removed"}),null===(o=h.value)||void 0===o||o.forEach((e=>{const t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")})),null===(r=m.value)||void 0===r||r.abort(n),v(n,i))}))},x=t=>{var n;g.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};r({onBatchStart:y,onSuccess:O,onProgress:w,onError:S,fileList:h,upload:m});const[C]=qa("Upload",Ka.Upload,Lr((()=>e.locale))),k=(t,o)=>{const{removeIcon:r,previewIcon:i,downloadIcon:a,previewFile:s,onPreview:c,onDownload:u,isImageUrl:d,progress:f,itemRender:g,iconRender:m,showUploadList:v}=e,{showDownloadIcon:b,showPreviewIcon:y,showRemoveIcon:O}="boolean"==typeof v?{}:v;return v?br(Mq,{prefixCls:l.value,listType:e.listType,items:h.value,previewFile:s,onPreview:c,onDownload:u,onRemove:$,showRemoveIcon:!p.value&&O,showPreviewIcon:y,showDownloadIcon:b,removeIcon:r,previewIcon:i,downloadIcon:a,iconRender:m,locale:C.value,isImageUrl:d,progress:f,itemRender:g,appendActionVisible:o,appendAction:t},cl({},n)):null==t?void 0:t()};return()=>{var t,r,s;const{listType:d,type:f}=e,{class:v,style:$}=o,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"uploading"===e.status)),[`${l.value}-drag-hover`]:"dragover"===g.value,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value},o.class,u.value);return c(br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,T,v,u.value)}),[br("div",{class:e,onDrop:x,onDragover:x,onDragleave:x,style:o.style},[br(eq,sl(sl({},P),{},{ref:m,class:`${l.value}-btn`}),sl({default:()=>[br("div",{class:`${l.value}-drag-container`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])]},n))]),k()]))}const M=xl(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${d}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value}),I=ql(null===(s=n.default)||void 0===s?void 0:s.call(n)),E=e=>br("div",{class:M,style:e},[br(eq,sl(sl({},P),{},{ref:m}),n)]);return c("picture-card"===d?br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,T,o.class,u.value)}),[k(E,!(!I||!I.length))]):br("span",sl(sl({},o),{},{class:xl(`${l.value}-wrapper`,T,o.class,u.value)}),[E(I&&I.length?void 0:{display:"none"}),k()]))}}});var Fq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{height:t}=e,r=Fq(e,["height"]),{style:i}=o,l=Fq(o,["style"]),a=cl(cl(cl({},r),l),{type:"drag",style:cl(cl({},i),{height:"number"==typeof t?`${t}px`:t})});return br(Hq,a,n)}}}),Xq=Wq,Yq=cl(Hq,{Dragger:Wq,LIST_IGNORE:Lq,install:e=>(e.component(Hq.name,Hq),e.component(Wq.name,Wq),e)});function Vq(){return window.devicePixelRatio||1}function Zq(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}function Uq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=yM}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro&&"MutationObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=bn((()=>gM(e)),(e=>{a(),l.value&&o&&e&&(i=new MutationObserver(t),i.observe(e,r))}),{immediate:!0}),c=()=>{a(),s()};return fM(c),{isSupported:l,stop:c}}const Kq=ya(jn({name:"AWatermark",inheritAttrs:!1,props:Zl({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Pa([String,Array]),font:wa(),rootClassName:String,gap:Ca(),offset:Ca()},{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const r=yt(),i=yt(),l=yt(!1),a=Lr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[0])&&void 0!==n?n:100})),s=Lr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[1])&&void 0!==n?n:100})),c=Lr((()=>a.value/2)),u=Lr((()=>s.value/2)),d=Lr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[0])&&void 0!==n?n:c.value})),p=Lr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[1])&&void 0!==n?n:u.value})),h=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontSize)&&void 0!==n?n:16})),f=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontWeight)&&void 0!==n?n:"normal"})),g=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontStyle)&&void 0!==n?n:"normal"})),m=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"sans-serif"})),v=Lr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.color)&&void 0!==n?n:"rgba(0, 0, 0, 0.15)"})),b=Lr((()=>{var t;const n={zIndex:null!==(t=e.zIndex)&&void 0!==t?t:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let o=d.value-c.value,r=p.value-u.value;return o>0&&(n.left=`${o}px`,n.width=`calc(100% - ${o}px)`,o=0),r>0&&(n.top=`${r}px`,n.height=`calc(100% - ${r}px)`,r=0),n.backgroundPosition=`${o}px ${r}px`,n})),y=()=>{i.value&&(i.value.remove(),i.value=void 0)},O=(e,t)=>{var n,o;r.value&&i.value&&(l.value=!0,i.value.setAttribute("style",(o=cl(cl({},b.value),{backgroundImage:`url('${e}')`,backgroundSize:2*(a.value+t)+"px"}),Object.keys(o).map((e=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)}: ${o[e]};`)).join(" "))),null===(n=r.value)||void 0===n||n.append(i.value),setTimeout((()=>{l.value=!1})))},w=(t,n,o,r,i)=>{const l=Vq(),a=e.content,s=Number(h.value)*l;t.font=`${g.value} normal ${f.value} ${s}px/${i}px ${m.value}`,t.fillStyle=v.value,t.textAlign="center",t.textBaseline="top",t.translate(r/2,0);const c=Array.isArray(a)?a:[a];null==c||c.forEach(((e,r)=>{t.fillText(null!=e?e:"",n,o+r*(s+3*l))}))},S=()=>{var t;const n=document.createElement("canvas"),o=n.getContext("2d"),r=e.image,l=null!==(t=e.rotate)&&void 0!==t?t:-22;if(o){i.value||(i.value=document.createElement("div"));const t=Vq(),[c,u]=(t=>{let n=120,o=64;const r=e.content,i=e.image,l=e.width,a=e.height;if(!i&&t.measureText){t.font=`${Number(h.value)}px ${m.value}`;const e=Array.isArray(r)?r:[r],i=e.map((e=>t.measureText(e).width));n=Math.ceil(Math.max(...i)),o=Number(h.value)*e.length+3*(e.length-1)}return[null!=l?l:n,null!=a?a:o]})(o),d=(a.value+c)*t,p=(s.value+u)*t;n.setAttribute("width",2*d+"px"),n.setAttribute("height",2*p+"px");const f=a.value*t/2,g=s.value*t/2,v=c*t,b=u*t,y=(v+a.value*t)/2,S=(b+s.value*t)/2,$=f+d,x=g+p,C=y+d,k=S+p;if(o.save(),Zq(o,y,S,l),r){const e=new Image;e.onload=()=>{o.drawImage(e,f,g,v,b),o.restore(),Zq(o,C,k,l),o.drawImage(e,$,x,v,b),O(n.toDataURL(),c)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=r}else w(o,f,g,v,b),o.restore(),Zq(o,C,k,l),w(o,$,x,v,b),O(n.toDataURL(),c)}};return Vn((()=>{S()})),bn((()=>e),(()=>{S()}),{deep:!0,flush:"post"}),Kn((()=>{y()})),Uq(r,(e=>{l.value||e.forEach((e=>{((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>e===t))),"attributes"===e.type&&e.target===t&&(n=!0),n})(e,i.value)&&(y(),S())}))}),{attributes:!0}),()=>{var t;return br("div",sl(sl({},o),{},{ref:r,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}));function Gq(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function qq(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Jq=cl({overflow:"hidden"},Wu),eJ=e=>{const{componentCls:t}=e;return{[t]:cl(cl(cl(cl(cl({},Xu(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":cl(cl({},qq(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":cl({minHeight:e.controlHeight-2*e.segmentedContainerPadding,lineHeight:e.controlHeight-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},Jq),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:cl(cl({},qq(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedContainerPadding,lineHeight:e.controlHeightLG-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedContainerPadding,lineHeight:e.controlHeightSM-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Gq(`&-disabled ${t}-item`,e)),Gq(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},tJ=Ku("Segmented",(e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:i,colorBgLayout:l,colorBgElevated:a}=e,s=Ju(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:l,bgColorHover:i,bgColorSelected:a});return[eJ(s)]})),nJ=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,oJ=e=>void 0!==e?`${e}px`:void 0,rJ=jn({props:{value:xa(),getValueIndex:xa(),prefixCls:xa(),motionName:xa(),onMotionStart:xa(),onMotionEnd:xa(),direction:xa(),containerRef:xa()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=bt(),r=t=>{var n;const o=e.getValueIndex(t),r=null===(n=e.containerRef.value)||void 0===n?void 0:n.querySelectorAll(`.${e.prefixCls}-item`)[o];return(null==r?void 0:r.offsetParent)&&r},i=bt(null),l=bt(null);bn((()=>e.value),((e,t)=>{const o=r(t),a=r(e),s=nJ(o),c=nJ(a);i.value=s,l.value=c,n(o&&a?"motionStart":"motionEnd")}),{flush:"post"});const a=Lr((()=>{var t,n;return"rtl"===e.direction?oJ(-(null===(t=i.value)||void 0===t?void 0:t.right)):oJ(null===(n=i.value)||void 0===n?void 0:n.left)})),s=Lr((()=>{var t,n;return"rtl"===e.direction?oJ(-(null===(t=l.value)||void 0===t?void 0:t.right)):oJ(null===(n=l.value)||void 0===n?void 0:n.left)}));let c;const u=e=>{clearTimeout(c),Ft((()=>{e&&(e.style.transform="translateX(var(--thumb-start-left))",e.style.width="var(--thumb-start-width)")}))},d=t=>{c=setTimeout((()=>{t&&(Zk(t,`${e.motionName}-appear-active`),t.style.transform="translateX(var(--thumb-active-left))",t.style.width="var(--thumb-active-width)")}))},p=t=>{i.value=null,l.value=null,t&&(t.style.transform=null,t.style.width=null,Uk(t,`${e.motionName}-appear-active`)),n("motionEnd")},h=Lr((()=>{var e,t;return{"--thumb-start-left":a.value,"--thumb-start-width":oJ(null===(e=i.value)||void 0===e?void 0:e.width),"--thumb-active-left":s.value,"--thumb-active-width":oJ(null===(t=l.value)||void 0===t?void 0:t.width)}}));return Kn((()=>{clearTimeout(c)})),()=>{const t={ref:o,style:h.value,class:[`${e.prefixCls}-thumb`]};return br(qr,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:p},{default:()=>[i.value&&l.value?br("div",t,null):null]})}}}),iJ=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:i,payload:l,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e;return br("label",{class:xl({[`${s}-item-disabled`]:i},d)},[br("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:u,onChange:e=>{i||o("change",e,r)}},null),br("div",{class:`${s}-item-label`,title:"string"==typeof a?a:""},["function"==typeof c?c({value:r,disabled:i,payload:l,title:a}):null!=c?c:r])])};iJ.inheritAttrs=!1;const lJ=ya(jn({name:"ASegmented",inheritAttrs:!1,props:Zl({prefixCls:String,options:Ca(),block:Sa(),disabled:Sa(),size:ka(),value:cl(cl({},Pa([String,Number])),{required:!0}),motionName:String,onChange:$a(),"onUpdate:value":$a()},{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,size:a}=$d("segmented",e),[s,c]=tJ(i),u=yt(),d=yt(!1),p=Lr((()=>e.options.map((e=>"object"==typeof e&&null!==e?e:{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e})))),h=(t,o)=>{e.disabled||(n("update:value",o),n("change",o))};return()=>{const t=i.value;return s(br("div",sl(sl({},r),{},{class:xl(t,{[c.value]:!0,[`${t}-block`]:e.block,[`${t}-disabled`]:e.disabled,[`${t}-lg`]:"large"==a.value,[`${t}-sm`]:"small"==a.value,[`${t}-rtl`]:"rtl"===l.value},r.class),ref:u}),[br("div",{class:`${t}-group`},[br(rJ,{containerRef:u,prefixCls:t,value:e.value,motionName:`${t}-${e.motionName}`,direction:l.value,getValueIndex:e=>p.value.findIndex((t=>t.value===e)),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),p.value.map((n=>br(iJ,sl(sl({key:n.value,prefixCls:t,checked:n.value===e.value,onChange:h},n),{},{className:xl(n.className,`${t}-item`,{[`${t}-item-selected`]:n.value===e.value&&!d.value}),disabled:!!e.disabled||!!n.disabled}),o)))])]))}}})),aJ=Ku("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:cl(cl({},Xu(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}})(Ju(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})))),sJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};function cJ(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:ka("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:wa()}); /** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT */ -var RJ,zJ;!function(e){class t{static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,o){let l,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=s&&s<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(l=s;;l++){const n=8*t.getNumDataCodewords(l,o),r=i.getTotalBits(e,l);if(r<=n){a=r;break}if(l>=c)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&a<=8*t.getNumDataCodewords(l,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}r(p.length==a);const h=8*t.getNumDataCodewords(l,o);r(p.length<=h),n(0,Math.min(4,h-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.lengthf[t>>>3]|=e<<7-(7&t))),new t(l,o,f,u)}constructor(e,n,o,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const l=[];for(let t=0;t>>9);const i=21522^(t<<10|n);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(i,r));this.setFunctionModule(8,7,o(i,6)),this.setFunctionModule(8,8,o(i,7)),this.setFunctionModule(7,8,o(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(i,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,i=Math.floor(n/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,l=t+n;0<=i&&i{(t!=c-l||n>=s)&&p.push(e[t])}));return r(p.length==a),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r>>3],7-(7&n)),n++)}}r(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][l],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[l][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;re+(t?1:0)),n);const o=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*o)/o)-1;return r(0<=i&&i<=9),e+=i*t.PENALTY_N4,r(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let o=this.size-7;n.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return r(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");const n=[];for(let t=0;t0));for(const r of e){const e=r^o.shift();o.push(0),n.forEach(((n,r)=>o[r]^=t.reedSolomonMultiply(n,e)))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return r(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];r(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function o(e,t){return 0!=(e>>>t&1)}function r(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;class i{static makeBytes(e){const t=[];for(const o of e)n(o,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o=1<1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(i,l){if(!i&&null!==r)return n.push(`M${r+t} ${o+t}h${l-r}v1H${r+t}z`),void(r=null);if(l!==e.length-1)i&&null===r&&(r=l);else{if(!i)return;null===r?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${r+t},${o+t} h${l+1-r}v1H${r+t}z`)}}))})),n.join("")}function WJ(e,t){return e.slice().map(((e,n)=>n=t.y+t.h?e:e.map(((e,n)=>(n=t.x+t.w)&&e))))}function XJ(e,t,n,o){if(null==o)return null;const r=e.length+2*n,i=Math.floor(.1*t),l=r/t,a=(o.width||i)*l,s=(o.height||i)*l,c=null==o.x?e.length/2-a/2:o.x*l,u=null==o.y?e.length/2-s/2:o.y*l;let d=null;if(o.excavate){const e=Math.floor(c),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(a+c-e),h:Math.ceil(s+u-t)}}return{x:c,y:u,h:s,w:a,excavation:d}}function YJ(e,t){return null!=t?Math.floor(t):e?4:0}const ZJ=function(){try{(new Path2D).addPath(new Path2D)}catch(Eue){return!1}return!0}(),VJ=jn({name:"QRCodeCanvas",inheritAttrs:!1,props:cl(cl({},DJ()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=Lr((()=>{var t;return null===(t=e.imageSettings)||void 0===t?void 0:t.src})),i=yt(null),l=yt(null),a=yt(!1);return o({toDataURL:(e,t)=>{var n;return null===(n=i.value)||void 0===n?void 0:n.toDataURL(e,t)}}),mn((()=>{const{value:t,size:n=NJ,level:o=_J,bgColor:r=QJ,fgColor:s=LJ,includeMargin:c=HJ,marginSize:u,imageSettings:d}=e;if(null!=i.value){const e=i.value,p=e.getContext("2d");if(!p)return;let h=BJ.QrCode.encodeText(t,jJ[o]).getModules();const f=YJ(c,u),g=h.length+2*f,m=XJ(h,n,f,d),v=l.value,b=a.value&&null!=m&&null!==v&&v.complete&&0!==v.naturalHeight&&0!==v.naturalWidth;b&&null!=m.excavation&&(h=WJ(h,m.excavation));const y=window.devicePixelRatio||1;e.height=e.width=n*y;const O=n/g*y;p.scale(O,O),p.fillStyle=r,p.fillRect(0,0,g,g),p.fillStyle=s,ZJ?p.fill(new Path2D(FJ(h,f))):h.forEach((function(e,t){e.forEach((function(e,n){e&&p.fillRect(n+f,t+f,1,1)}))})),b&&p.drawImage(v,m.x+f,m.y+f,m.w,m.h)}}),{flush:"post"}),bn(r,(()=>{a.value=!1})),()=>{var t;const o=null!==(t=e.size)&&void 0!==t?t:NJ,s={height:`${o}px`,width:`${o}px`};let c=null;return null!=r.value&&(c=br("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:l},null)),br(er,null,[br("canvas",sl(sl({},n),{},{style:[s,n.style],ref:i}),null),c])}}}),UJ=jn({name:"QRCodeSVG",inheritAttrs:!1,props:cl(cl({},DJ()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,i=null,l=null;return mn((()=>{const{value:a,size:s=NJ,level:c=_J,includeMargin:u=HJ,marginSize:d,imageSettings:p}=e;t=BJ.QrCode.encodeText(a,jJ[c]).getModules(),n=YJ(u,d),o=t.length+2*n,r=XJ(t,s,n,p),null!=p&&null!=r&&(null!=r.excavation&&(t=WJ(t,r.excavation)),l=br("image",{"xlink:href":p.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),i=FJ(t,n)})),()=>{const t=e.bgColor&&QJ,n=e.fgColor&&LJ;return br("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&br("title",null,[e.title]),br("path",{fill:t,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),br("path",{fill:n,d:i,"shape-rendering":"crispEdges"},null),l])}}}),KJ=ya(jn({name:"AQrcode",inheritAttrs:!1,props:cl(cl({},DJ()),{errorLevel:ka("M"),icon:String,iconSize:{type:Number,default:40},status:ka("active"),bordered:{type:Boolean,default:!0}}),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[i]=qa("QRCode"),{prefixCls:l}=$d("qrcode",e),[a,s]=aJ(l),[,c]=ad(),u=bt();r({toDataURL:(e,t)=>{var n;return null===(n=u.value)||void 0===n?void 0:n.toDataURL(e,t)}});const d=Lr((()=>{const{value:t,icon:n="",size:o=160,iconSize:r=40,color:i=c.value.colorText,bgColor:l="transparent",errorLevel:a="M"}=e,s={src:n,x:void 0,y:void 0,height:r,width:r,excavate:!0};return{value:t,size:o-2*(c.value.paddingSM+c.value.lineWidth),level:a,bgColor:l,fgColor:i,imageSettings:n?s:void 0}}));return()=>{const t=l.value;return a(br("div",sl(sl({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,t,{[`${t}-borderless`]:!e.bordered}]}),["active"!==e.status&&br("div",{class:`${t}-mask`},["loading"===e.status&&br(GL,null,null),"expired"===e.status&&br(er,null,[br("p",{class:`${t}-expired`},[i.value.expired]),br(WC,{type:"link",onClick:e=>n("refresh",e)},{default:()=>[i.value.refresh],icon:()=>br(SJ,null,null)})])]),"canvas"===e.type?br(VJ,sl({ref:u},d.value),null):br(UJ,d.value,null)]))}}}));function GJ(e,t,n,o){const[r,i]=Hv(void 0);mn((()=>{const t="function"==typeof e.value?e.value():e.value;i(t||null)}),{flush:"post"});const[l,a]=Hv(null),s=()=>{if(t.value)if(r.value){!function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:i,left:l}=e.getBoundingClientRect();return o>=0&&l>=0&&r<=t&&i<=n}(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:e,top:n,width:i,height:s}=r.value.getBoundingClientRect(),c={left:e,top:n,width:i,height:s,radius:0};JSON.stringify(l.value)!==JSON.stringify(c)&&a(c)}else a(null);else a(null)};return Zn((()=>{bn([t,r],(()=>{s()}),{flush:"post",immediate:!0}),window.addEventListener("resize",s)})),Kn((()=>{window.removeEventListener("resize",s)})),[Lr((()=>{var e,t;if(!l.value)return l.value;const o=(null===(e=n.value)||void 0===e?void 0:e.offset)||6,r=(null===(t=n.value)||void 0===t?void 0:t.radius)||2;return{left:l.value.left-o,top:l.value.top-o,width:l.value.width+2*o,height:l.value.height+2*o,radius:r}})),r]}const qJ=()=>cl(cl({},{arrow:Pa([Boolean,Object]),target:Pa([String,Function,Object]),title:Pa([String,Object]),description:Pa([String,Object]),placement:ka(),mask:Pa([Object,Boolean],!0),className:{type:String},style:wa(),scrollIntoViewOptions:Pa([Boolean,Object])}),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:$a(),onFinish:$a(),renderPanel:$a(),onPrev:$a(),onNext:$a()}),JJ=jn({name:"DefaultPanel",inheritAttrs:!1,props:qJ(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:t,current:o,total:r,title:i,description:l,onClose:a,onPrev:s,onNext:c,onFinish:u}=e;return br("div",sl(sl({},n),{},{class:xl(`${t}-content`,n.class)}),[br("div",{class:`${t}-inner`},[br("button",{type:"button",onClick:a,"aria-label":"Close",class:`${t}-close`},[br("span",{class:`${t}-close-x`},[Or("×")])]),br("div",{class:`${t}-header`},[br("div",{class:`${t}-title`},[i])]),br("div",{class:`${t}-description`},[l]),br("div",{class:`${t}-footer`},[br("div",{class:`${t}-sliders`},[r>1?[...Array.from({length:r}).keys()].map(((e,t)=>br("span",{key:e,class:t===o?"active":""},null))):null]),br("div",{class:`${t}-buttons`},[0!==o?br("button",{class:`${t}-prev-btn`,onClick:s},[Or("Prev")]):null,o===r-1?br("button",{class:`${t}-finish-btn`,onClick:u},[Or("Finish")]):br("button",{class:`${t}-next-btn`,onClick:c},[Or("Next")])])])])])}}}),e0=jn({name:"TourStep",inheritAttrs:!1,props:qJ(),setup(e,t){let{attrs:n}=t;return()=>{const{current:t,renderPanel:o}=e;return br(er,null,["function"==typeof o?o(cl(cl({},n),e),t):br(JJ,sl(sl({},n),e),null)])}}});let t0=0;const n0=ds();function o0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt("");const t=`vc_unique_${function(){let e;return n0?(e=t0,t0+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}const r0={fill:"transparent","pointer-events":"auto"},i0=jn({name:"TourMask",props:{prefixCls:{type:String},pos:wa(),rootClassName:{type:String},showMask:Sa(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Sa(),animated:Pa([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=o0();return()=>{const{prefixCls:t,open:r,rootClassName:i,pos:l,showMask:a,fill:s,animated:c,zIndex:u}=e,d=`${t}-mask-${o}`,p="object"==typeof c?null==c?void 0:c.placeholder:c;return br(Cm,{visible:r,autoLock:!0},{default:()=>r&&br("div",sl(sl({},n),{},{class:xl(`${t}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:u,pointerEvents:"none"},n.style]}),[a?br("svg",{style:{width:"100%",height:"100%"}},[br("defs",null,[br("mask",{id:d},[br("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&br("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:p?`${t}-placeholder-animated`:""},null)])]),br("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:s,mask:`url(#${d})`},null),l&&br(er,null,[br("rect",sl(sl({},r0),{},{x:"0",y:"0",width:"100%",height:l.top}),null),br("rect",sl(sl({},r0),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),br("rect",sl(sl({},r0),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),br("rect",sl(sl({},r0),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),l0=[0,0],a0={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function s0(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};return Object.keys(a0).forEach((n=>{t[n]=cl(cl({},a0[n]),{autoArrow:e,targetOffset:l0})})),t}s0();const c0={left:"50%",top:"50%",width:"1px",height:"1px"},u0=()=>{const{builtinPlacements:e,popupAlign:t}=zp();return{builtinPlacements:e,popupAlign:t,steps:Ca(),open:Sa(),defaultCurrent:{type:Number},current:{type:Number},onChange:$a(),onClose:$a(),onFinish:$a(),mask:Pa([Boolean,Object],!0),arrow:Pa([Boolean,Object],!0),rootClassName:{type:String},placement:ka("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:$a(),gap:wa(),animated:Pa([Boolean,Object]),scrollIntoViewOptions:Pa([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},d0=jn({name:"Tour",inheritAttrs:!1,props:Vl(u0(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:i,gap:l,arrow:a}=Ct(e),s=bt(),[c,u]=Lv(0,{value:Lr((()=>e.current)),defaultValue:t.value}),[d,p]=Lv(void 0,{value:Lr((()=>e.open)),postState:t=>!(c.value<0||c.value>=e.steps.length)&&(null==t||t)}),h=yt(d.value);mn((()=>{d.value&&!h.value&&u(0),h.value=d.value}));const f=Lr((()=>e.steps[c.value]||{})),g=Lr((()=>{var e;return null!==(e=f.value.placement)&&void 0!==e?e:n.value})),m=Lr((()=>{var e;return d.value&&(null!==(e=f.value.mask)&&void 0!==e?e:o.value)})),v=Lr((()=>{var e;return null!==(e=f.value.scrollIntoViewOptions)&&void 0!==e?e:r.value})),[b,y]=GJ(Lr((()=>f.value.target)),i,l,v),O=Lr((()=>!!y.value&&(void 0===f.value.arrow?a.value:f.value.arrow))),w=Lr((()=>"object"==typeof O.value&&O.value.pointAtCenter));bn(w,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()})),bn(c,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()}));const S=t=>{var n;u(t),null===(n=e.onChange)||void 0===n||n.call(e,t)};return()=>{var t;const{prefixCls:n,steps:o,onClose:r,onFinish:i,rootClassName:l,renderPanel:a,animated:u,zIndex:h}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{p(!1),null==r||r(c.value)},x="boolean"==typeof m.value?m.value:!!m.value,C="boolean"==typeof m.value?void 0:m.value,k=Lr((()=>{const e=b.value||c0,t={};return Object.keys(e).forEach((n=>{"number"==typeof e[n]?t[n]=`${e[n]}px`:t[n]=e[n]})),t}));return d.value?br(er,null,[br(i0,{zIndex:h,prefixCls:n,pos:b.value,showMask:x,style:null==C?void 0:C.style,fill:null==C?void 0:C.color,open:d.value,animated:u,rootClassName:l},null),br(Pm,sl(sl({},v),{},{builtinPlacements:f.value.target?null!==(t=v.builtinPlacements)&&void 0!==t?t:s0(w.value):void 0,ref:s,popupStyle:f.value.target?f.value.style:cl(cl({},f.value.style),{position:"fixed",left:c0.left,top:c0.top,transform:"translate(-50%, -50%)"}),popupPlacement:g.value,popupVisible:d.value,popupClassName:xl(l,f.value.className),prefixCls:n,popup:()=>br(e0,sl({arrow:O.value,key:"content",prefixCls:n,total:o.length,renderPanel:a,onPrev:()=>{S(c.value-1)},onNext:()=>{S(c.value+1)},onClose:$,current:c.value,onFinish:()=>{$(),null==i||i()}},f.value),null),forceRender:!1,destroyPopupOnHide:!0,zIndex:h,mask:!1,getTriggerDOMNode:()=>y.value||document.body}),{default:()=>[br(Cm,{visible:d.value,autoLock:!0},{default:()=>[br("div",{class:xl(l,`${n}-target-placeholder`),style:cl(cl({},k.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),p0=jn({name:"ATourPanel",inheritAttrs:!1,props:cl(cl({},qJ()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:i}=Ct(e),l=Lr((()=>r.value===i.value-1)),a=t=>{var n;const o=e.prevButtonProps;null===(n=e.onPrev)||void 0===n||n.call(e,t),"function"==typeof(null==o?void 0:o.onClick)&&(null==o||o.onClick())},s=t=>{var n,o;const r=e.nextButtonProps;l.value?null===(n=e.onFinish)||void 0===n||n.call(e,t):null===(o=e.onNext)||void 0===o||o.call(e,t),"function"==typeof(null==r?void 0:r.onClick)&&(null==r||r.onClick())};return()=>{const{prefixCls:t,title:c,onClose:u,cover:d,description:p,type:h,arrow:f}=e,g=e.prevButtonProps,m=e.nextButtonProps;let v,b,y,O;c&&(v=br("div",{class:`${t}-header`},[br("div",{class:`${t}-title`},[c])])),p&&(b=br("div",{class:`${t}-description`},[p])),d&&(y=br("div",{class:`${t}-cover`},[d])),O=o.indicatorsRender?o.indicatorsRender({current:r.value,total:i}):[...Array.from({length:i.value}).keys()].map(((e,n)=>br("span",{key:e,class:xl(n===r.value&&`${t}-indicator-active`,`${t}-indicator`)},null)));const w="primary"===h?"default":"primary",S={type:"default",ghost:"primary"===h};return br(Ga,{componentName:"Tour",defaultLocale:Ka.Tour},{default:e=>{var o,c;return br("div",sl(sl({},n),{},{class:xl("primary"===h?`${t}-primary`:"",n.class,`${t}-content`)}),[f&&br("div",{class:`${t}-arrow`,key:"arrow"},null),br("div",{class:`${t}-inner`},[br(qb,{class:`${t}-close`,onClick:u},null),y,v,b,br("div",{class:`${t}-footer`},[i.value>1&&br("div",{class:`${t}-indicators`},[O]),br("div",{class:`${t}-buttons`},[0!==r.value?br(WC,sl(sl(sl({},S),g),{},{onClick:a,size:"small",class:xl(`${t}-prev-btn`,null==g?void 0:g.className)}),{default:()=>[null!==(o=null==g?void 0:g.children)&&void 0!==o?o:e.Previous]}):null,br(WC,sl(sl({type:w},m),{},{onClick:s,size:"small",class:xl(`${t}-next-btn`,null==m?void 0:m.className)}),{default:()=>[null!==(c=null==m?void 0:m.children)&&void 0!==c?c:l.value?e.Finish:e.Next]})])])])])}})}}}),h0=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const i=bt(null==r?void 0:r.value);bn(Lr((()=>null==o?void 0:o.value)),(e=>{i.value=null!=e?e:null==r?void 0:r.value}),{immediate:!0});const l=Lr((()=>{var e,o;return"number"==typeof i.value?n&&(null===(o=null===(e=n.value)||void 0===e?void 0:e[i.value])||void 0===o?void 0:o.type):null==t?void 0:t.value}));return{currentMergedType:Lr((()=>{var e;return null!==(e=l.value)&&void 0!==e?e:null==t?void 0:t.value})),updateInnerCurrent:e=>{i.value=e}}},f0=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:i,borderRadiusXS:l,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:p,tourZIndexPopup:h,fontSize:f,colorBgContainer:g,fontWeightStrong:m,marginXS:v,colorTextLightSolid:b,tourBorderRadius:y,colorWhite:O,colorBgTextHover:w,tourCloseSize:S,motionDurationSlow:$,antCls:x}=e;return[{[t]:cl(cl({},Xu(e)),{color:s,position:"absolute",zIndex:h,display:"block",visibility:"visible",fontSize:f,lineHeight:n,width:520,"--antd-arrow-background-color":g,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:p,position:"relative",backgroundColor:g,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:S,height:S,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+S+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:f,fontWeight:m}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${l}px ${l}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:v}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:b,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:i,boxShadow:p,[`${t}-close`]:{color:b},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new mu(b).setAlpha(.15).toRgbString(),"&-active":{background:b}}},[`${t}-prev-btn`]:{color:b,borderColor:new mu(b).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new mu(b).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:O,"&:hover":{background:new mu(w).onBackground(O).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,8)}}},Cx(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},g0=Ku("Tour",(e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=Ju(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[f0(r)]})),m0=ya(jn({name:"ATour",inheritAttrs:!1,props:cl(cl({},u0()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),setup(e,t){let{attrs:n,emit:o,slots:r}=t;const{current:i,type:l,steps:a,defaultCurrent:s}=Ct(e),{prefixCls:c,direction:u}=$d("tour",e),[d,p]=g0(c),{currentMergedType:h,updateInnerCurrent:f}=h0({defaultType:l,steps:a,current:i,defaultCurrent:s});return()=>{const{steps:t,current:i,type:l,rootClassName:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbx({arrowPointAtCenter:!0,autoAdjustOverflow:!0})));return d(br(d0,sl(sl(sl({},n),s),{},{rootClassName:g,prefixCls:c.value,current:i,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:(e,t)=>br(p0,sl(sl({},e),{},{type:l,current:t}),{indicatorsRender:r.indicatorsRender}),onChange:e=>{f(e),o("update:current",e),o("change",e)},steps:t,builtinPlacements:m.value}),null))}}})),v0=Symbol("appConfigContext"),b0=Symbol("appContext"),y0=rt({message:{},notification:{},modal:{}}),O0=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i}}},w0=Ku("App",(e=>[O0(e)])),S0=jn({name:"AApp",props:Vl({rootClassName:String,message:wa(),notification:wa()},{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("app",e),[r,i]=w0(o),l=Lr((()=>xl(i.value,o.value,e.rootClassName))),a=Mo(v0,{}),s=Lr((()=>({message:cl(cl({},a.message),e.message),notification:cl(cl({},a.notification),e.notification)})));var c;c=s.value,To(v0,c);const[u,d]=pB(s.value.message),[p,h]=jB(s.value.notification),[f,g]=$F(),m=Lr((()=>({message:u,notification:p,modal:f})));var v;return v=m.value,To(b0,v),()=>{var e;return r(br("div",{class:l.value},[g(),d(),h(),null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});S0.useApp=()=>Mo(b0,y0),S0.install=function(e){e.component(S0.name,S0)};const $0=S0,x0=Object.freeze(Object.defineProperty({__proto__:null,Affix:Id,Alert:G$,Anchor:Tp,AnchorLink:Zd,App:$0,AutoComplete:l$,AutoCompleteOptGroup:r$,AutoCompleteOption:o$,Avatar:lx,AvatarGroup:Rx,BackTop:WN,Badge:Ux,BadgeRibbon:Zx,Breadcrumb:fP,BreadcrumbItem:fk,BreadcrumbSeparator:gP,Button:WC,ButtonGroup:QC,Calendar:gI,Card:IE,CardGrid:AE,CardMeta:EE,Carousel:jA,Cascader:Az,CheckableTag:hj,Checkbox:zz,CheckboxGroup:Bz,Col:Nz,Collapse:QE,CollapsePanel:HE,Comment:Lz,Compact:Xw,ConfigProvider:aj,DatePicker:Uj,Descriptions:aN,DescriptionsItem:nN,DirectoryTree:sU,Divider:uN,Drawer:wN,Dropdown:hk,DropdownButton:ok,Empty:vd,FloatButton:jN,FloatButtonGroup:NN,Form:$z,FormItem:vz,FormItemRest:my,Grid:jz,Image:XQ,ImagePreviewGroup:FQ,Input:r_,InputGroup:i_,InputNumber:yL,InputPassword:I_,InputSearch:l_,Layout:WL,LayoutContent:FL,LayoutFooter:LL,LayoutHeader:QL,LayoutSider:HL,List:RH,ListItem:TH,ListItemMeta:kH,LocaleProvider:Xz,Mentions:rF,MentionsOption:oF,Menu:uP,MenuDivider:qk,MenuItem:Bk,MenuItemGroup:Gk,Modal:aF,MonthPicker:Wj,PageHeader:JF,Pagination:CH,Popconfirm:tW,Popover:Dx,Progress:SW,QRCode:KJ,QuarterPicker:Zj,Radio:BM,RadioButton:NM,RadioGroup:jM,RangePicker:Vj,Rate:RW,Result:JW,Row:eX,Segmented:lJ,Select:qS,SelectOptGroup:GS,SelectOption:KS,Skeleton:$E,SkeletonAvatar:PE,SkeletonButton:xE,SkeletonImage:kE,SkeletonInput:CE,SkeletonTitle:oE,Slider:BX,Space:KF,Spin:GL,Statistic:IF,StatisticCountdown:zF,Step:iY,Steps:lY,SubMenu:Yk,Switch:fY,TabPane:ZI,Table:eK,TableColumn:UU,TableColumnGroup:KU,TableSummary:JU,TableSummaryCell:qU,TableSummaryRow:GU,Tabs:YI,Tag:gj,Textarea:v_,TimePicker:UK,TimeRangePicker:VK,Timeline:JK,TimelineItem:KK,Tooltip:Tx,Tour:m0,Transfer:CK,Tree:uU,TreeNode:cU,TreeSelect:XK,TreeSelectNode:WK,Typography:mG,TypographyLink:zG,TypographyParagraph:jG,TypographyText:_G,TypographyTitle:HG,Upload:Yq,UploadDragger:Xq,Watermark:Kq,WeekPicker:Fj,message:PB,notification:KB},Symbol.toStringTag,{value:"Module"})),C0={version:Kc,install:function(e){return Object.keys(x0).forEach((t=>{const n=x0[t];n.install&&e.use(n)})),e.use(Uc.StyleProvider),e.config.globalProperties.$message=PB,e.config.globalProperties.$notification=KB,e.config.globalProperties.$info=aF.info,e.config.globalProperties.$success=aF.success,e.config.globalProperties.$error=aF.error,e.config.globalProperties.$warning=aF.warning,e.config.globalProperties.$confirm=aF.confirm,e.config.globalProperties.$destroyAll=aF.destroyAll,e}},k0=function(e,t,n){let o,r;const i="function"==typeof t;function l(e,n){return(e=e||(Tr||en||Po?Mo(Zi,null):null))&&Yi(e),(e=Xi)._s.has(o)||(i?rl(o,t,r,e):function(e,t,n,o){const{state:r,actions:i,getters:l}=t,a=n.state.value[e];let s;s=rl(e,(function(){a||(n.state.value[e]=r?r():{});const t=Ct(n.state.value[e]);return ol(t,i,Object.keys(l||{}).reduce(((t,o)=>(t[o]=pt(Lr((()=>{Yi(n);const t=n._s.get(e);return l[o].call(t,t)}))),t)),{}))}),t,n,0,!0)}(o,r,e)),e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),l.$id=o,l}("main",{state:()=>({id:"",token:"",nameSpaceId:"",groupName:""}),persist:!0,getters:{ID:e=>e.id,TOKEN:e=>e.token,NAME_SPACE_ID:e=>e.nameSpaceId,GROUP_NAME:e=>e.groupName},actions:{clear(){this.id="",this.token="",this.nameSpaceId="",this.groupName=""},setId(e){this.id=e},setToken(e){this.token=e},setNameSpaceId(e){this.nameSpaceId=e},setGroupName(e){this.groupName=e}}}),P0=(e,t="get",n)=>{const o=k0(),{token:r,nameSpaceId:i}=function(e){{e=dt(e);const t={};for(const n in e){const o=e[n];(vt(o)||at(o))&&(t[n]=Tt(e,n))}return t}}(o);return new Promise(((o,l)=>{fetch("/api"+e,{method:t,headers:{"Content-Type":"application/json","EASY-RETRY-AUTH":r.value,"EASY-RETRY-NAMESPACE-ID":i.value},body:n?JSON.stringify(n):null}).then((e=>e.json())).then((e=>{1===e.status?o(e.data):(PB.error(e.message||"未知错误,请联系管理员"),l())})).catch((()=>{PB.error("未知错误,请联系管理员"),l()}))}))}; +var UJ,KJ;!function(e){class t{static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,o){let l,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=s&&s<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(l=s;;l++){const n=8*t.getNumDataCodewords(l,o),r=i.getTotalBits(e,l);if(r<=n){a=r;break}if(l>=c)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&a<=8*t.getNumDataCodewords(l,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}r(p.length==a);const h=8*t.getNumDataCodewords(l,o);r(p.length<=h),n(0,Math.min(4,h-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.lengthf[t>>>3]|=e<<7-(7&t))),new t(l,o,f,u)}constructor(e,n,o,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const l=[];for(let t=0;t>>9);const i=21522^(t<<10|n);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(i,r));this.setFunctionModule(8,7,o(i,6)),this.setFunctionModule(8,8,o(i,7)),this.setFunctionModule(7,8,o(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(i,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,i=Math.floor(n/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,l=t+n;0<=i&&i{(t!=c-l||n>=s)&&p.push(e[t])}));return r(p.length==a),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r>>3],7-(7&n)),n++)}}r(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][l],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[l][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;re+(t?1:0)),n);const o=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*o)/o)-1;return r(0<=i&&i<=9),e+=i*t.PENALTY_N4,r(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let o=this.size-7;n.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return r(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");const n=[];for(let t=0;t0));for(const r of e){const e=r^o.shift();o.push(0),n.forEach(((n,r)=>o[r]^=t.reedSolomonMultiply(n,e)))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return r(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];r(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function o(e,t){return 0!=(e>>>t&1)}function r(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;class i{static makeBytes(e){const t=[];for(const o of e)n(o,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o=1<1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(i,l){if(!i&&null!==r)return n.push(`M${r+t} ${o+t}h${l-r}v1H${r+t}z`),void(r=null);if(l!==e.length-1)i&&null===r&&(r=l);else{if(!i)return;null===r?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${r+t},${o+t} h${l+1-r}v1H${r+t}z`)}}))})),n.join("")}function i0(e,t){return e.slice().map(((e,n)=>n=t.y+t.h?e:e.map(((e,n)=>(n=t.x+t.w)&&e))))}function l0(e,t,n,o){if(null==o)return null;const r=e.length+2*n,i=Math.floor(.1*t),l=r/t,a=(o.width||i)*l,s=(o.height||i)*l,c=null==o.x?e.length/2-a/2:o.x*l,u=null==o.y?e.length/2-s/2:o.y*l;let d=null;if(o.excavate){const e=Math.floor(c),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(a+c-e),h:Math.ceil(s+u-t)}}return{x:c,y:u,h:s,w:a,excavation:d}}function a0(e,t){return null!=t?Math.floor(t):e?4:0}const s0=function(){try{(new Path2D).addPath(new Path2D)}catch(Uue){return!1}return!0}(),c0=jn({name:"QRCodeCanvas",inheritAttrs:!1,props:cl(cl({},ZJ()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=Lr((()=>{var t;return null===(t=e.imageSettings)||void 0===t?void 0:t.src})),i=yt(null),l=yt(null),a=yt(!1);return o({toDataURL:(e,t)=>{var n;return null===(n=i.value)||void 0===n?void 0:n.toDataURL(e,t)}}),mn((()=>{const{value:t,size:n=JJ,level:o=e0,bgColor:r=t0,fgColor:s=n0,includeMargin:c=o0,marginSize:u,imageSettings:d}=e;if(null!=i.value){const e=i.value,p=e.getContext("2d");if(!p)return;let h=GJ.QrCode.encodeText(t,qJ[o]).getModules();const f=a0(c,u),g=h.length+2*f,m=l0(h,n,f,d),v=l.value,b=a.value&&null!=m&&null!==v&&v.complete&&0!==v.naturalHeight&&0!==v.naturalWidth;b&&null!=m.excavation&&(h=i0(h,m.excavation));const y=window.devicePixelRatio||1;e.height=e.width=n*y;const O=n/g*y;p.scale(O,O),p.fillStyle=r,p.fillRect(0,0,g,g),p.fillStyle=s,s0?p.fill(new Path2D(r0(h,f))):h.forEach((function(e,t){e.forEach((function(e,n){e&&p.fillRect(n+f,t+f,1,1)}))})),b&&p.drawImage(v,m.x+f,m.y+f,m.w,m.h)}}),{flush:"post"}),bn(r,(()=>{a.value=!1})),()=>{var t;const o=null!==(t=e.size)&&void 0!==t?t:JJ,s={height:`${o}px`,width:`${o}px`};let c=null;return null!=r.value&&(c=br("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:l},null)),br(er,null,[br("canvas",sl(sl({},n),{},{style:[s,n.style],ref:i}),null),c])}}}),u0=jn({name:"QRCodeSVG",inheritAttrs:!1,props:cl(cl({},ZJ()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,i=null,l=null;return mn((()=>{const{value:a,size:s=JJ,level:c=e0,includeMargin:u=o0,marginSize:d,imageSettings:p}=e;t=GJ.QrCode.encodeText(a,qJ[c]).getModules(),n=a0(u,d),o=t.length+2*n,r=l0(t,s,n,p),null!=p&&null!=r&&(null!=r.excavation&&(t=i0(t,r.excavation)),l=br("image",{"xlink:href":p.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),i=r0(t,n)})),()=>{const t=e.bgColor&&t0,n=e.fgColor&&n0;return br("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&br("title",null,[e.title]),br("path",{fill:t,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),br("path",{fill:n,d:i,"shape-rendering":"crispEdges"},null),l])}}}),d0=ya(jn({name:"AQrcode",inheritAttrs:!1,props:cl(cl({},ZJ()),{errorLevel:ka("M"),icon:String,iconSize:{type:Number,default:40},status:ka("active"),bordered:{type:Boolean,default:!0}}),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[i]=qa("QRCode"),{prefixCls:l}=$d("qrcode",e),[a,s]=aJ(l),[,c]=ad(),u=bt();r({toDataURL:(e,t)=>{var n;return null===(n=u.value)||void 0===n?void 0:n.toDataURL(e,t)}});const d=Lr((()=>{const{value:t,icon:n="",size:o=160,iconSize:r=40,color:i=c.value.colorText,bgColor:l="transparent",errorLevel:a="M"}=e,s={src:n,x:void 0,y:void 0,height:r,width:r,excavate:!0};return{value:t,size:o-2*(c.value.paddingSM+c.value.lineWidth),level:a,bgColor:l,fgColor:i,imageSettings:n?s:void 0}}));return()=>{const t=l.value;return a(br("div",sl(sl({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,t,{[`${t}-borderless`]:!e.bordered}]}),["active"!==e.status&&br("div",{class:`${t}-mask`},["loading"===e.status&&br(GL,null,null),"expired"===e.status&&br(er,null,[br("p",{class:`${t}-expired`},[i.value.expired]),br(WC,{type:"link",onClick:e=>n("refresh",e)},{default:()=>[i.value.refresh],icon:()=>br(PJ,null,null)})])]),"canvas"===e.type?br(c0,sl({ref:u},d.value),null):br(u0,d.value,null)]))}}}));function p0(e,t,n,o){const[r,i]=Hv(void 0);mn((()=>{const t="function"==typeof e.value?e.value():e.value;i(t||null)}),{flush:"post"});const[l,a]=Hv(null),s=()=>{if(t.value)if(r.value){!function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:i,left:l}=e.getBoundingClientRect();return o>=0&&l>=0&&r<=t&&i<=n}(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:e,top:n,width:i,height:s}=r.value.getBoundingClientRect(),c={left:e,top:n,width:i,height:s,radius:0};JSON.stringify(l.value)!==JSON.stringify(c)&&a(c)}else a(null);else a(null)};return Vn((()=>{bn([t,r],(()=>{s()}),{flush:"post",immediate:!0}),window.addEventListener("resize",s)})),Kn((()=>{window.removeEventListener("resize",s)})),[Lr((()=>{var e,t;if(!l.value)return l.value;const o=(null===(e=n.value)||void 0===e?void 0:e.offset)||6,r=(null===(t=n.value)||void 0===t?void 0:t.radius)||2;return{left:l.value.left-o,top:l.value.top-o,width:l.value.width+2*o,height:l.value.height+2*o,radius:r}})),r]}const h0=()=>cl(cl({},{arrow:Pa([Boolean,Object]),target:Pa([String,Function,Object]),title:Pa([String,Object]),description:Pa([String,Object]),placement:ka(),mask:Pa([Object,Boolean],!0),className:{type:String},style:wa(),scrollIntoViewOptions:Pa([Boolean,Object])}),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:$a(),onFinish:$a(),renderPanel:$a(),onPrev:$a(),onNext:$a()}),f0=jn({name:"DefaultPanel",inheritAttrs:!1,props:h0(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:t,current:o,total:r,title:i,description:l,onClose:a,onPrev:s,onNext:c,onFinish:u}=e;return br("div",sl(sl({},n),{},{class:xl(`${t}-content`,n.class)}),[br("div",{class:`${t}-inner`},[br("button",{type:"button",onClick:a,"aria-label":"Close",class:`${t}-close`},[br("span",{class:`${t}-close-x`},[Or("×")])]),br("div",{class:`${t}-header`},[br("div",{class:`${t}-title`},[i])]),br("div",{class:`${t}-description`},[l]),br("div",{class:`${t}-footer`},[br("div",{class:`${t}-sliders`},[r>1?[...Array.from({length:r}).keys()].map(((e,t)=>br("span",{key:e,class:t===o?"active":""},null))):null]),br("div",{class:`${t}-buttons`},[0!==o?br("button",{class:`${t}-prev-btn`,onClick:s},[Or("Prev")]):null,o===r-1?br("button",{class:`${t}-finish-btn`,onClick:u},[Or("Finish")]):br("button",{class:`${t}-next-btn`,onClick:c},[Or("Next")])])])])])}}}),g0=jn({name:"TourStep",inheritAttrs:!1,props:h0(),setup(e,t){let{attrs:n}=t;return()=>{const{current:t,renderPanel:o}=e;return br(er,null,["function"==typeof o?o(cl(cl({},n),e),t):br(f0,sl(sl({},n),e),null)])}}});let m0=0;const v0=ds();function b0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt("");const t=`vc_unique_${function(){let e;return v0?(e=m0,m0+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}const y0={fill:"transparent","pointer-events":"auto"},O0=jn({name:"TourMask",props:{prefixCls:{type:String},pos:wa(),rootClassName:{type:String},showMask:Sa(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Sa(),animated:Pa([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=b0();return()=>{const{prefixCls:t,open:r,rootClassName:i,pos:l,showMask:a,fill:s,animated:c,zIndex:u}=e,d=`${t}-mask-${o}`,p="object"==typeof c?null==c?void 0:c.placeholder:c;return br(Cm,{visible:r,autoLock:!0},{default:()=>r&&br("div",sl(sl({},n),{},{class:xl(`${t}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:u,pointerEvents:"none"},n.style]}),[a?br("svg",{style:{width:"100%",height:"100%"}},[br("defs",null,[br("mask",{id:d},[br("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&br("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:p?`${t}-placeholder-animated`:""},null)])]),br("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:s,mask:`url(#${d})`},null),l&&br(er,null,[br("rect",sl(sl({},y0),{},{x:"0",y:"0",width:"100%",height:l.top}),null),br("rect",sl(sl({},y0),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),br("rect",sl(sl({},y0),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),br("rect",sl(sl({},y0),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),w0=[0,0],S0={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function $0(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};return Object.keys(S0).forEach((n=>{t[n]=cl(cl({},S0[n]),{autoArrow:e,targetOffset:w0})})),t}$0();const x0={left:"50%",top:"50%",width:"1px",height:"1px"},C0=()=>{const{builtinPlacements:e,popupAlign:t}=zp();return{builtinPlacements:e,popupAlign:t,steps:Ca(),open:Sa(),defaultCurrent:{type:Number},current:{type:Number},onChange:$a(),onClose:$a(),onFinish:$a(),mask:Pa([Boolean,Object],!0),arrow:Pa([Boolean,Object],!0),rootClassName:{type:String},placement:ka("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:$a(),gap:wa(),animated:Pa([Boolean,Object]),scrollIntoViewOptions:Pa([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},k0=jn({name:"Tour",inheritAttrs:!1,props:Zl(C0(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:i,gap:l,arrow:a}=Ct(e),s=bt(),[c,u]=Lv(0,{value:Lr((()=>e.current)),defaultValue:t.value}),[d,p]=Lv(void 0,{value:Lr((()=>e.open)),postState:t=>!(c.value<0||c.value>=e.steps.length)&&(null==t||t)}),h=yt(d.value);mn((()=>{d.value&&!h.value&&u(0),h.value=d.value}));const f=Lr((()=>e.steps[c.value]||{})),g=Lr((()=>{var e;return null!==(e=f.value.placement)&&void 0!==e?e:n.value})),m=Lr((()=>{var e;return d.value&&(null!==(e=f.value.mask)&&void 0!==e?e:o.value)})),v=Lr((()=>{var e;return null!==(e=f.value.scrollIntoViewOptions)&&void 0!==e?e:r.value})),[b,y]=p0(Lr((()=>f.value.target)),i,l,v),O=Lr((()=>!!y.value&&(void 0===f.value.arrow?a.value:f.value.arrow))),w=Lr((()=>"object"==typeof O.value&&O.value.pointAtCenter));bn(w,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()})),bn(c,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()}));const S=t=>{var n;u(t),null===(n=e.onChange)||void 0===n||n.call(e,t)};return()=>{var t;const{prefixCls:n,steps:o,onClose:r,onFinish:i,rootClassName:l,renderPanel:a,animated:u,zIndex:h}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{p(!1),null==r||r(c.value)},x="boolean"==typeof m.value?m.value:!!m.value,C="boolean"==typeof m.value?void 0:m.value,k=Lr((()=>{const e=b.value||x0,t={};return Object.keys(e).forEach((n=>{"number"==typeof e[n]?t[n]=`${e[n]}px`:t[n]=e[n]})),t}));return d.value?br(er,null,[br(O0,{zIndex:h,prefixCls:n,pos:b.value,showMask:x,style:null==C?void 0:C.style,fill:null==C?void 0:C.color,open:d.value,animated:u,rootClassName:l},null),br(Pm,sl(sl({},v),{},{builtinPlacements:f.value.target?null!==(t=v.builtinPlacements)&&void 0!==t?t:$0(w.value):void 0,ref:s,popupStyle:f.value.target?f.value.style:cl(cl({},f.value.style),{position:"fixed",left:x0.left,top:x0.top,transform:"translate(-50%, -50%)"}),popupPlacement:g.value,popupVisible:d.value,popupClassName:xl(l,f.value.className),prefixCls:n,popup:()=>br(g0,sl({arrow:O.value,key:"content",prefixCls:n,total:o.length,renderPanel:a,onPrev:()=>{S(c.value-1)},onNext:()=>{S(c.value+1)},onClose:$,current:c.value,onFinish:()=>{$(),null==i||i()}},f.value),null),forceRender:!1,destroyPopupOnHide:!0,zIndex:h,mask:!1,getTriggerDOMNode:()=>y.value||document.body}),{default:()=>[br(Cm,{visible:d.value,autoLock:!0},{default:()=>[br("div",{class:xl(l,`${n}-target-placeholder`),style:cl(cl({},k.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),P0=jn({name:"ATourPanel",inheritAttrs:!1,props:cl(cl({},h0()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:i}=Ct(e),l=Lr((()=>r.value===i.value-1)),a=t=>{var n;const o=e.prevButtonProps;null===(n=e.onPrev)||void 0===n||n.call(e,t),"function"==typeof(null==o?void 0:o.onClick)&&(null==o||o.onClick())},s=t=>{var n,o;const r=e.nextButtonProps;l.value?null===(n=e.onFinish)||void 0===n||n.call(e,t):null===(o=e.onNext)||void 0===o||o.call(e,t),"function"==typeof(null==r?void 0:r.onClick)&&(null==r||r.onClick())};return()=>{const{prefixCls:t,title:c,onClose:u,cover:d,description:p,type:h,arrow:f}=e,g=e.prevButtonProps,m=e.nextButtonProps;let v,b,y,O;c&&(v=br("div",{class:`${t}-header`},[br("div",{class:`${t}-title`},[c])])),p&&(b=br("div",{class:`${t}-description`},[p])),d&&(y=br("div",{class:`${t}-cover`},[d])),O=o.indicatorsRender?o.indicatorsRender({current:r.value,total:i}):[...Array.from({length:i.value}).keys()].map(((e,n)=>br("span",{key:e,class:xl(n===r.value&&`${t}-indicator-active`,`${t}-indicator`)},null)));const w="primary"===h?"default":"primary",S={type:"default",ghost:"primary"===h};return br(Ga,{componentName:"Tour",defaultLocale:Ka.Tour},{default:e=>{var o,c;return br("div",sl(sl({},n),{},{class:xl("primary"===h?`${t}-primary`:"",n.class,`${t}-content`)}),[f&&br("div",{class:`${t}-arrow`,key:"arrow"},null),br("div",{class:`${t}-inner`},[br(qb,{class:`${t}-close`,onClick:u},null),y,v,b,br("div",{class:`${t}-footer`},[i.value>1&&br("div",{class:`${t}-indicators`},[O]),br("div",{class:`${t}-buttons`},[0!==r.value?br(WC,sl(sl(sl({},S),g),{},{onClick:a,size:"small",class:xl(`${t}-prev-btn`,null==g?void 0:g.className)}),{default:()=>[null!==(o=null==g?void 0:g.children)&&void 0!==o?o:e.Previous]}):null,br(WC,sl(sl({type:w},m),{},{onClick:s,size:"small",class:xl(`${t}-next-btn`,null==m?void 0:m.className)}),{default:()=>[null!==(c=null==m?void 0:m.children)&&void 0!==c?c:l.value?e.Finish:e.Next]})])])])])}})}}}),T0=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const i=bt(null==r?void 0:r.value);bn(Lr((()=>null==o?void 0:o.value)),(e=>{i.value=null!=e?e:null==r?void 0:r.value}),{immediate:!0});const l=Lr((()=>{var e,o;return"number"==typeof i.value?n&&(null===(o=null===(e=n.value)||void 0===e?void 0:e[i.value])||void 0===o?void 0:o.type):null==t?void 0:t.value}));return{currentMergedType:Lr((()=>{var e;return null!==(e=l.value)&&void 0!==e?e:null==t?void 0:t.value})),updateInnerCurrent:e=>{i.value=e}}},M0=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:i,borderRadiusXS:l,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:p,tourZIndexPopup:h,fontSize:f,colorBgContainer:g,fontWeightStrong:m,marginXS:v,colorTextLightSolid:b,tourBorderRadius:y,colorWhite:O,colorBgTextHover:w,tourCloseSize:S,motionDurationSlow:$,antCls:x}=e;return[{[t]:cl(cl({},Xu(e)),{color:s,position:"absolute",zIndex:h,display:"block",visibility:"visible",fontSize:f,lineHeight:n,width:520,"--antd-arrow-background-color":g,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:p,position:"relative",backgroundColor:g,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:S,height:S,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+S+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:f,fontWeight:m}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${l}px ${l}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:v}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:b,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:i,boxShadow:p,[`${t}-close`]:{color:b},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new mu(b).setAlpha(.15).toRgbString(),"&-active":{background:b}}},[`${t}-prev-btn`]:{color:b,borderColor:new mu(b).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new mu(b).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:O,"&:hover":{background:new mu(w).onBackground(O).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,8)}}},Cx(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},I0=Ku("Tour",(e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=Ju(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[M0(r)]})),E0=ya(jn({name:"ATour",inheritAttrs:!1,props:cl(cl({},C0()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),setup(e,t){let{attrs:n,emit:o,slots:r}=t;const{current:i,type:l,steps:a,defaultCurrent:s}=Ct(e),{prefixCls:c,direction:u}=$d("tour",e),[d,p]=I0(c),{currentMergedType:h,updateInnerCurrent:f}=T0({defaultType:l,steps:a,current:i,defaultCurrent:s});return()=>{const{steps:t,current:i,type:l,rootClassName:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rbx({arrowPointAtCenter:!0,autoAdjustOverflow:!0})));return d(br(k0,sl(sl(sl({},n),s),{},{rootClassName:g,prefixCls:c.value,current:i,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:(e,t)=>br(P0,sl(sl({},e),{},{type:l,current:t}),{indicatorsRender:r.indicatorsRender}),onChange:e=>{f(e),o("update:current",e),o("change",e)},steps:t,builtinPlacements:m.value}),null))}}})),A0=Symbol("appConfigContext"),D0=Symbol("appContext"),R0=rt({message:{},notification:{},modal:{}}),z0=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i}}},B0=Ku("App",(e=>[z0(e)])),j0=jn({name:"AApp",props:Zl({rootClassName:String,message:wa(),notification:wa()},{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=$d("app",e),[r,i]=B0(o),l=Lr((()=>xl(i.value,o.value,e.rootClassName))),a=Mo(A0,{}),s=Lr((()=>({message:cl(cl({},a.message),e.message),notification:cl(cl({},a.notification),e.notification)})));var c;c=s.value,To(A0,c);const[u,d]=pB(s.value.message),[p,h]=jB(s.value.notification),[f,g]=$F(),m=Lr((()=>({message:u,notification:p,modal:f})));var v;return v=m.value,To(D0,v),()=>{var e;return r(br("div",{class:l.value},[g(),d(),h(),null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});j0.useApp=()=>Mo(D0,R0),j0.install=function(e){e.component(j0.name,j0)};const N0=j0,_0=Object.freeze(Object.defineProperty({__proto__:null,Affix:Id,Alert:G$,Anchor:Tp,AnchorLink:Vd,App:N0,AutoComplete:l$,AutoCompleteOptGroup:r$,AutoCompleteOption:o$,Avatar:lx,AvatarGroup:Rx,BackTop:WN,Badge:Ux,BadgeRibbon:Vx,Breadcrumb:fP,BreadcrumbItem:fk,BreadcrumbSeparator:gP,Button:WC,ButtonGroup:QC,Calendar:gI,Card:IE,CardGrid:AE,CardMeta:EE,Carousel:jA,Cascader:Az,CheckableTag:hj,Checkbox:zz,CheckboxGroup:Bz,Col:Nz,Collapse:QE,CollapsePanel:HE,Comment:Lz,Compact:Xw,ConfigProvider:aj,DatePicker:Uj,Descriptions:aN,DescriptionsItem:nN,DirectoryTree:sU,Divider:uN,Drawer:wN,Dropdown:hk,DropdownButton:ok,Empty:vd,FloatButton:jN,FloatButtonGroup:NN,Form:$z,FormItem:vz,FormItemRest:my,Grid:jz,Image:XQ,ImagePreviewGroup:FQ,Input:r_,InputGroup:i_,InputNumber:yL,InputPassword:I_,InputSearch:l_,Layout:WL,LayoutContent:FL,LayoutFooter:LL,LayoutHeader:QL,LayoutSider:HL,List:RH,ListItem:TH,ListItemMeta:kH,LocaleProvider:Xz,Mentions:rF,MentionsOption:oF,Menu:uP,MenuDivider:qk,MenuItem:Bk,MenuItemGroup:Gk,Modal:aF,MonthPicker:Wj,PageHeader:JF,Pagination:CH,Popconfirm:tW,Popover:Dx,Progress:SW,QRCode:d0,QuarterPicker:Vj,Radio:BM,RadioButton:NM,RadioGroup:jM,RangePicker:Zj,Rate:RW,Result:JW,Row:eX,Segmented:lJ,Select:qS,SelectOptGroup:GS,SelectOption:KS,Skeleton:$E,SkeletonAvatar:PE,SkeletonButton:xE,SkeletonImage:kE,SkeletonInput:CE,SkeletonTitle:oE,Slider:BX,Space:KF,Spin:GL,Statistic:IF,StatisticCountdown:zF,Step:iY,Steps:lY,SubMenu:Yk,Switch:fY,TabPane:VI,Table:eK,TableColumn:UU,TableColumnGroup:KU,TableSummary:JU,TableSummaryCell:qU,TableSummaryRow:GU,Tabs:YI,Tag:gj,Textarea:v_,TimePicker:UK,TimeRangePicker:ZK,Timeline:JK,TimelineItem:KK,Tooltip:Tx,Tour:E0,Transfer:CK,Tree:uU,TreeNode:cU,TreeSelect:XK,TreeSelectNode:WK,Typography:mG,TypographyLink:zG,TypographyParagraph:jG,TypographyText:_G,TypographyTitle:HG,Upload:Yq,UploadDragger:Xq,Watermark:Kq,WeekPicker:Fj,message:PB,notification:KB},Symbol.toStringTag,{value:"Module"})),Q0={version:Kc,install:function(e){return Object.keys(_0).forEach((t=>{const n=_0[t];n.install&&e.use(n)})),e.use(Uc.StyleProvider),e.config.globalProperties.$message=PB,e.config.globalProperties.$notification=KB,e.config.globalProperties.$info=aF.info,e.config.globalProperties.$success=aF.success,e.config.globalProperties.$error=aF.error,e.config.globalProperties.$warning=aF.warning,e.config.globalProperties.$confirm=aF.confirm,e.config.globalProperties.$destroyAll=aF.destroyAll,e}},L0=function(e,t,n){let o,r;const i="function"==typeof t;function l(e,n){return(e=e||(Tr||en||Po?Mo(Vi,null):null))&&Yi(e),(e=Xi)._s.has(o)||(i?rl(o,t,r,e):function(e,t,n,o){const{state:r,actions:i,getters:l}=t,a=n.state.value[e];let s;s=rl(e,(function(){a||(n.state.value[e]=r?r():{});const t=Ct(n.state.value[e]);return ol(t,i,Object.keys(l||{}).reduce(((t,o)=>(t[o]=pt(Lr((()=>{Yi(n);const t=n._s.get(e);return l[o].call(t,t)}))),t)),{}))}),t,n,0,!0)}(o,r,e)),e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),l.$id=o,l}("main",{state:()=>({id:"",token:"",nameSpaceId:"",groupName:""}),persist:!0,getters:{ID:e=>e.id,TOKEN:e=>e.token,NAME_SPACE_ID:e=>e.nameSpaceId,GROUP_NAME:e=>e.groupName},actions:{clear(){this.id="",this.token="",this.nameSpaceId="",this.groupName=""},setId(e){this.id=e},setToken(e){this.token=e},setNameSpaceId(e){this.nameSpaceId=e},setGroupName(e){this.groupName=e}}}),H0=(e,t="get",n)=>{const o=L0(),{token:r,nameSpaceId:i}=function(e){{e=dt(e);const t={};for(const n in e){const o=e[n];(vt(o)||at(o))&&(t[n]=Tt(e,n))}return t}}(o);return new Promise(((o,l)=>{fetch("/api"+e,{method:t,headers:{"Content-Type":"application/json","EASY-RETRY-AUTH":r.value,"EASY-RETRY-NAMESPACE-ID":i.value},body:n?JSON.stringify(n):null}).then((e=>e.json())).then((e=>{1===e.status?o(e.data):(PB.error(e.message||"未知错误,请联系管理员"),l())})).catch((()=>{PB.error("未知错误,请联系管理员"),l()}))}))}; /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function T0(e){return"[object Object]"===Object.prototype.toString.call(e)}function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(r[n]=e[n]);return r}const E0={silent:!1,logLevel:"warn"},A0=["validator"],D0=Object.prototype,R0=D0.toString,z0=D0.hasOwnProperty,B0=/^\s*function (\w+)/;function j0(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(B0);return e?e[1]:""}return""}const N0=function(e){var t,n;return!1!==T0(e)&&(void 0===(t=e.constructor)||!1!==T0(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};let _0=e=>e;const Q0=(e,t)=>z0.call(e,t),L0=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},H0=Array.isArray||function(e){return"[object Array]"===R0.call(e)},F0=e=>"[object Function]"===R0.call(e),W0=(e,t)=>N0(e)&&Q0(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),X0=e=>N0(e)&&(Q0(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>Q0(e,t))));function Y0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Z0(e,t,n=!1){let o,r=!0,i="";o=N0(e)?e:{type:e};const l=W0(o)?o._vueTypes_name+" - ":"";if(X0(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==t)return r;H0(o.type)?(r=o.type.some((e=>!0===Z0(e,t,!0))),i=o.type.map((e=>j0(e))).join(" or ")):(i=j0(o),r="Array"===i?H0(t):"Object"===i?N0(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(B0);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof o.type)}if(!r){const e=`${l}value "${t}" should be of type "${i}"`;return!1===n?(_0(e),!1):e}if(Q0(o,"validator")&&F0(o.validator)){const e=_0,i=[];if(_0=e=>{i.push(e)},r=o.validator(t),_0=e,!r){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(_0(e),r):e}}return r}function V0(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(Q0(this,"default")&&delete this.default,this):F0(e)||!0===Z0(this,e,!0)?(this.default=H0(e)?()=>[...e]:N0(e)?()=>Object.assign({},e):e,this):(_0(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:o}=n;return F0(o)&&(n.validator=Y0(o,n)),n}function U0(e,t){const n=V0(e,t);return Object.defineProperty(n,"validate",{value(e){return F0(this.validator)&&_0(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=Y0(e,this),this}})}function K0(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!N0(n))return o;const{validator:r}=n,i=I0(n,A0);if(F0(r)){let{validator:e}=o;e&&(e=null!==(a=(l=e).__original)&&void 0!==a?a:l),o.validator=Y0(e?function(t){return e.call(this,t)&&r.call(this,t)}:r,o)}var l,a;return Object.assign(o,i)}function G0(e){return e.replace(/^(?!\s*$)/gm," ")}const q0=()=>U0("boolean",{type:Boolean}),J0=()=>U0("object",{type:Object});function e1(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return V0(e.name||"<>",{type:null,validator(n){const o=e(n);return o||_0(`${this._vueTypes_name} - ${t}`),o}})}function t1(e){if(!H0(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,n={validator(n){const o=-1!==e.indexOf(n);return o||_0(t),o}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);t.length>0&&(n.type=t)}return V0("oneOf",n)}function n1(e){if(!H0(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,o=[];for(let i=0;io.indexOf(e)===t));const r=!1===n&&o.length>0?o:null;return V0("oneOfType",t?{type:r,validator(t){const n=[],o=e.some((e=>{const o=Z0(e,t,!0);return"string"==typeof o&&n.push(o),!0===o}));return o||_0(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${G0(n.join("\n"))}`),o}}:{type:r})}function o1(e){return V0("arrayOf",{type:Array,validator(t){let n="";const o=t.every((t=>(n=Z0(e,t,!0),!0===n)));return o||_0(`arrayOf - value validation error:\n${G0(n)}`),o}})}function r1(e){return V0("instanceOf",{type:e})}function i1(e){return V0("objectOf",{type:Object,validator(t){let n="";const o=Object.keys(t).every((o=>(n=Z0(e,t[o],!0),!0===n)));return o||_0(`objectOf - value validation error:\n${G0(n)}`),o}})}function l1(e){const t=Object.keys(e),n=t.filter((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.required)})),o=V0("shape",{type:Object,validator(o){if(!N0(o))return!1;const r=Object.keys(o);if(n.length>0&&n.some((e=>-1===r.indexOf(e)))){const e=n.filter((e=>-1===r.indexOf(e)));return _0(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return r.every((n=>{if(-1===t.indexOf(n))return!0===this._vueTypes_isLoose||(_0(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const r=Z0(e[n],o[n],!0);return"string"==typeof r&&_0(`shape - "${n}" property validation error:\n ${G0(r)}`),!0===r}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const a1=["name","validate","getter"],s1=(()=>{var e;return(e=class{static get any(){return U0("any",{})}static get func(){return U0("function",{type:Function}).def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?q0():q0().def(this.defaults.bool)}static get string(){return U0("string",{type:String}).def(this.defaults.string)}static get number(){return U0("number",{type:Number}).def(this.defaults.number)}static get array(){return U0("array",{type:Array}).def(this.defaults.array)}static get object(){return J0().def(this.defaults.object)}static get integer(){return V0("integer",{type:Number,validator(e){const t=L0(e);return!1===t&&_0(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return V0("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&_0(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&_0("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(_0("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),H0(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:n=!1,getter:o=!1}=e,r=I0(e,a1);if(Q0(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:i}=r;if(W0(i))return delete r.type,Object.defineProperty(this,t,o?{get:()=>K0(t,i,r)}:{value(...e){const n=K0(t,i,r);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let l;return l=o?{get(){const e=Object.assign({},r);return n?U0(t,e):V0(t,e)},enumerable:!0}:{value(...e){const o=Object.assign({},r);let i;return i=n?U0(t,o):V0(t,o),o.validator&&(i.validator=o.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=E0,e.custom=e1,e.oneOf=t1,e.instanceOf=r1,e.oneOfType=n1,e.arrayOf=o1,e.objectOf=i1,e.shape=l1,e.utils={validate:(e,t)=>!0===Z0(t,e,!0),toType:(e,t,n=!1)=>n?U0(e,t):V0(e,t)},e})();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){(class extends s1{static get sensibleDefaults(){return M0({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?M0({},!0!==t?t:e):{}}}).defaults=M0({},e)}();const c1=e=>(on("data-v-a7b59fd3"),e=e(),rn(),e),u1={class:"add-node-btn-box"},d1={class:"add-node-btn"},p1={class:"add-node-popover-body"},h1={class:"icon"},f1=c1((()=>vr("p",null,"任务节点",-1))),g1=c1((()=>vr("p",null,"条件分支",-1))),m1=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},v1=m1(jn({__name:"AddNode",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=e=>{let t={};0===e?t={nodeName:"审核人",nodeType:1,conditionNodes:[{jobId:void 0,nodeName:"任务1",failStrategy:1,workflowNodeStatus:0}],childNode:o.modelValue}:2===e&&(t={nodeName:"条件路由",nodeType:2,conditionNodes:[{nodeName:"条件1",priorityLevel:1,expressionType:1,nodeExpression:void 0},{nodeName:"条件2",priorityLevel:2,expressionType:1,nodeExpression:void 0}],childNode:o.modelValue}),n("update:modelValue",t)};return(t,n)=>{const o=pn("a-button"),i=pn("a-popover");return lr(),ur("div",u1,[vr("div",d1,[e.disabled?wr("",!0):(lr(),dr(i,{key:0,placement:"rightTop",trigger:"click","overlay-style":{width:"216px"}},{content:ln((()=>[vr("div",p1,[vr("ul",h1,[vr("li",null,[br(o,{shape:"circle",size:"large",onClick:n[0]||(n[0]=e=>r(0))},{default:ln((()=>[br(St(AJ),{style:{color:"#3296fa"}})])),_:1}),f1]),vr("li",null,[br(o,{shape:"circle",size:"large",onClick:n[1]||(n[1]=e=>r(2))},{default:ln((()=>[br(St(PJ),{style:{color:"#15bc83"}})])),_:1}),g1])])])])),default:ln((()=>[br(o,{type:"primary",icon:Hr(St(DI)),shape:"circle"},null,8,["icon"])])),_:1}))])])}}}),[["__scopeId","data-v-a7b59fd3"]]),b1=jn({__name:"TaskDrawer",props:{open:q0().def(!1),modelValue:J0().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=bt(!1),i=bt({}),l=bt([]);bn((()=>o.open),(e=>{r.value=e,e&&d()}),{immediate:!0}),bn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0}),Zn((()=>{Ft((()=>{d()}))}));const a=()=>{n("update:modelValue",i.value)},s=()=>{c(),n("save",i.value)},c=()=>{n("update:open",!1),r.value=!1},u=k0(),d=()=>{P0(`/job/list?groupName=${u.GROUP_NAME}`).then((e=>{l.value=e}))};return(e,t)=>{const n=pn("a-typography-paragraph"),o=pn("a-select-option"),u=pn("a-select"),d=pn("a-form-item"),p=pn("a-radio"),h=pn("a-radio-group"),f=pn("a-form"),g=pn("a-button"),m=pn("a-drawer");return lr(),dr(m,{open:r.value,"onUpdate:open":t[4]||(t[4]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:c},{title:ln((()=>[br(n,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:a},null,8,["content"])])),footer:ln((()=>[br(g,{type:"primary",onClick:s},{default:ln((()=>[Or("保存")])),_:1}),br(g,{style:{"margin-left":"12px"},onClick:c},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(f,{layout:"vertical",model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(d,{name:"jobId",label:"所属任务"},{default:ln((()=>[br(u,{value:i.value.jobId,"onUpdate:value":t[1]||(t[1]=e=>i.value.jobId=e)},{default:ln((()=>[(lr(!0),ur(er,null,no(l.value,(e=>(lr(),dr(o,{key:e.id,value:1},{default:ln((()=>[Or(Z(e.jobName),1)])),_:2},1024)))),128))])),_:1},8,["value"])])),_:1}),br(d,{name:"failStrategy",label:"失败策略"},{default:ln((()=>[br(h,{value:i.value.failStrategy,"onUpdate:value":t[2]||(t[2]=e=>i.value.failStrategy=e)},{default:ln((()=>[br(p,{value:1},{default:ln((()=>[Or("跳过")])),_:1}),br(p,{value:2},{default:ln((()=>[Or("阻塞")])),_:1})])),_:1},8,["value"])])),_:1}),br(d,{name:"workFlowNodeStatus",label:"工作流状态"},{default:ln((()=>[br(h,{value:i.value.workflowNodeStatus,"onUpdate:value":t[3]||(t[3]=e=>i.value.workflowNodeStatus=e)},{default:ln((()=>[br(p,{value:0},{default:ln((()=>[Or("关闭")])),_:1}),br(p,{value:1},{default:ln((()=>[Or("开启")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}});var y1=(e=>(e[e.SpEl=1]="SpEl",e[e.Aviator=2]="Aviator",e[e.QL=3]="QL",e))(y1||{}),O1=(e=>(e[e["跳过"]=1]="跳过",e[e["阻塞"]=2]="阻塞",e))(O1||{}),w1=(e=>(e[e["关闭"]=0]="关闭",e[e["开启"]=1]="开启",e))(w1||{});const S1=e=>(on("data-v-d12e3db2"),e=e(),rn(),e),$1={class:"node-wrap"},x1={class:"branch-box"},C1={class:"condition-node"},k1={class:"condition-node-box"},P1={class:"popover"},T1=S1((()=>vr("span",null,"修改",-1))),M1=S1((()=>vr("span",null,"重试",-1))),I1=S1((()=>vr("span",null,"忽略",-1))),E1={class:"auto-judge"},A1=["onClick"],D1={class:"title"},R1={class:"text",style:{color:"#3296fa"}},z1={class:"priority-title"},B1={class:"content",style:{"min-height":"81px"}},j1={key:0,class:"placeholder"},N1=["onClick"],_1={key:1,class:"top-left-cover-line"},Q1={key:2,class:"bottom-left-cover-line"},L1={key:3,class:"top-right-cover-line"},H1={key:4,class:"bottom-right-cover-line"},F1=m1(jn({__name:"TaskNode",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({}),i=bt({});bn((()=>o.modelValue),(()=>{r.value=o.modelValue}),{immediate:!0,deep:!0});const l=()=>{var e;const t=r.value.conditionNodes.length+1;null==(e=r.value.conditionNodes)||e.push({jobId:void 0,nodeName:"任务"+t,failStrategy:1,workflowNodeStatus:0}),n("update:modelValue",r.value)},a=(e,t)=>{e.childNode?a(e.childNode,t):e.childNode=t},s=(e,t=1)=>{var o;r.value.conditionNodes[e]=r.value.conditionNodes.splice(e+t,1,r.value.conditionNodes[e])[0],null==(o=r.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",r.value)},c=bt(0),u=bt(!1),d=bt({}),p=e=>{r.value.conditionNodes[c.value]=e,n("update:modelValue",r.value)};return(t,h)=>{const f=pn("a-button"),g=pn("a-divider"),m=pn("a-popover");return lr(),ur("div",$1,[vr("div",x1,[br(f,{class:"add-branch",primary:"",onClick:l},{default:ln((()=>[Or("添加任务")])),_:1}),(lr(!0),ur(er,null,no(r.value.conditionNodes,((l,p)=>(lr(),ur("div",{class:"col-box",key:p},[vr("div",C1,[vr("div",k1,[br(m,{open:i.value[p]&&!e.disabled,onOpenChange:e=>i.value[p]=e},{content:ln((()=>[vr("div",P1,[br(f,{type:"text",class:"popover-item",onClick:e=>{return t=p,void(o.disabled||(c.value=t,d.value=JSON.parse(JSON.stringify(r.value.conditionNodes[t])),u.value=!0));var t}},{default:ln((()=>[br(St(MG)),T1])),_:2},1032,["onClick"]),br(g,{type:"vertical"}),br(f,{type:"text",class:"popover-item"},{default:ln((()=>[br(St(vJ)),M1])),_:1}),br(g,{type:"vertical"}),br(f,{type:"text",class:"popover-item"},{default:ln((()=>[br(St(pJ)),I1])),_:1})])])),default:ln((()=>[vr("div",E1,[0!=p?(lr(),ur("div",{key:0,class:"sort-left",onClick:_i((e=>s(p,-1)),["stop"])},[br(St(LD))],8,A1)):wr("",!0),vr("div",D1,[vr("span",R1,Z(l.nodeName),1),vr("span",z1,"优先级"+Z(l.priorityLevel),1),e.disabled?wr("",!0):(lr(),dr(St(qb),{key:0,class:"close",onClick:_i((e=>{return t=p,null==(o=r.value.conditionNodes)||o.splice(t,1),void(1==r.value.conditionNodes.length&&(r.value.childNode&&(r.value.conditionNodes[0].childNode?a(r.value.conditionNodes[0].childNode,r.value.childNode):r.value.conditionNodes[0].childNode=r.value.childNode),Ft((()=>{n("update:modelValue",r.value.conditionNodes[0].childNode)}))));var t,o}),["stop"])},null,8,["onClick"]))]),vr("div",B1,[l.jobId?wr("",!0):(lr(),ur("div",j1,"请选择任务")),l.jobId?(lr(),ur(er,{key:1},[vr("div",null,"任务ID: "+Z(l.jobId),1),vr("div",null,"失败策略: "+Z(St(O1)[l.failStrategy]),1),vr("div",null,"工作流状态: "+Z(St(w1)[l.workflowNodeStatus]),1)],64)):wr("",!0)]),p!=r.value.conditionNodes.length-1?(lr(),ur("div",{key:1,class:"sort-right",onClick:_i((e=>s(p)),["stop"])},[br(St(sk))],8,N1)):wr("",!0)])])),_:2},1032,["open","onOpenChange"]),br(v1,{disabled:e.disabled,modelValue:l.childNode,"onUpdate:modelValue":e=>l.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),l.childNode?oo(t.$slots,"default",{key:0,node:l},void 0,!0):wr("",!0),0==p?(lr(),ur("div",_1)):wr("",!0),0==p?(lr(),ur("div",Q1)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",L1)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",H1)):wr("",!0)])))),128))]),r.value.conditionNodes.length>1?(lr(),dr(v1,{key:0,disabled:e.disabled,modelValue:r.value.childNode,"onUpdate:modelValue":h[0]||(h[0]=e=>r.value.childNode=e)},null,8,["disabled","modelValue"])):wr("",!0),br(b1,{open:u.value,"onUpdate:open":h[1]||(h[1]=e=>u.value=e),modelValue:d.value,"onUpdate:modelValue":h[2]||(h[2]=e=>d.value=e),onSave:p},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-d12e3db2"]]);class W1{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=J1(this,e,t);let o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),Y1.from(o,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=J1(this,e,t);let n=[];return this.decompose(e,t,n,0),Y1.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),o=new U1(this),r=new U1(e);for(let i=t,l=t;;){if(o.next(i),r.next(i),i=0,o.lineBreak!=r.lineBreak||o.done!=r.done||o.value!=r.value)return!1;if(l+=o.value.length,o.done||l>=n)return!0}}iter(e=1){return new U1(this,e)}iterRange(e,t=this.length){return new K1(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let o=this.line(e).from;n=this.iterRange(o,Math.max(o,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new G1(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new X1(e):Y1.from(X1.split(e,[])):W1.empty}}class X1 extends W1{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.text[r],l=o+i.length;if((t?n:l)>=e)return new q1(o,l,n,i);o=l+1,n++}}decompose(e,t,n,o){let r=e<=0&&t>=this.length?this:new X1(V1(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&o){let e=n.pop(),t=Z1(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new X1(t,e.length+r.length));else{let e=t.length>>1;n.push(new X1(t.slice(0,e)),new X1(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof X1))return super.replace(e,t,n);[e,t]=J1(this,e,t);let o=Z1(this.text,Z1(n.text,V1(this.text,0,e)),t),r=this.length+n.length-(t-e);return o.length<=32?new X1(o,r):Y1.from(X1.split(o,[]),r)}sliceString(e,t=this.length,n="\n"){[e,t]=J1(this,e,t);let o="";for(let r=0,i=0;r<=t&&ie&&i&&(o+=n),er&&(o+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return o}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],o=-1;for(let r of e)n.push(r),o+=r.length+1,32==n.length&&(t.push(new X1(n,o)),n=[],o=-1);return o>-1&&t.push(new X1(n,o)),t}}class Y1 extends W1{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.children[r],l=o+i.length,a=n+i.lines-1;if((t?a:l)>=e)return i.lineInner(e,t,n,o);o=l+1,n=a+1}}decompose(e,t,n,o){for(let r=0,i=0;i<=t&&r=i){let r=o&((i<=e?1:0)|(a>=t?2:0));i>=e&&a<=t&&!r?n.push(l):l.decompose(e-i,t-i,n,r)}i=a+1}}replace(e,t,n){if([e,t]=J1(this,e,t),n.lines=r&&t<=l){let a=i.replace(e-r,t-r,n),s=this.lines-i.lines+a.lines;if(a.lines>4&&a.lines>s>>6){let r=this.children.slice();return r[o]=a,new Y1(r,this.length-(t-e)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=J1(this,e,t);let o="";for(let r=0,i=0;re&&r&&(o+=n),ei&&(o+=l.sliceString(e-i,t-i,n)),i=a+1}return o}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Y1))return 0;let n=0,[o,r,i,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;o+=t,r+=t){if(o==i||r==l)return n;let a=this.children[o],s=e.children[r];if(a!=s)return n+a.scanIdentical(s,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new X1(n,t)}let o=Math.max(32,n>>5),r=o<<1,i=o>>1,l=[],a=0,s=-1,c=[];function u(e){let t;if(e.lines>r&&e instanceof Y1)for(let n of e.children)u(n);else e.lines>i&&(a>i||!a)?(d(),l.push(e)):e instanceof X1&&a&&(t=c[c.length-1])instanceof X1&&e.lines+t.lines<=32?(a+=e.lines,s+=e.length+1,c[c.length-1]=new X1(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>o&&d(),a+=e.lines,s+=e.length+1,c.push(e))}function d(){0!=a&&(l.push(1==c.length?c[0]:Y1.from(c,s)),s=-1,a=c.length=0)}for(let p of e)u(p);return d(),1==l.length?l[0]:new Y1(l,t)}}function Z1(e,t,n=0,o=1e9){for(let r=0,i=0,l=!0;i=n&&(s>o&&(a=a.slice(0,o-r)),r0?1:(e instanceof X1?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],r=this.offsets[n],i=r>>1,l=o instanceof X1?o.text.length:o.children.length;if(i==(t>0?l:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(o instanceof X1){let r=o.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=o.children[i+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof X1?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class K1{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new U1(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:o}=this.cursor.next(e);return this.pos+=(o.length+e)*t,this.value=o.length<=n?o:t<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class G1{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:o}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(W1.prototype[Symbol.iterator]=function(){return this.iter()},U1.prototype[Symbol.iterator]=K1.prototype[Symbol.iterator]=G1.prototype[Symbol.iterator]=function(){return this});class q1{constructor(e,t,n,o){this.from=e,this.to=t,this.number=n,this.text=o}get length(){return this.to-this.from}}function J1(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}let e2="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Due=1;Duee)return e2[t-1]<=e;return!1}function n2(e){return e>=127462&&e<=127487}function o2(e,t,n=!0,o=!0){return(n?r2:i2)(e,t,o)}function r2(e,t,n){if(t==e.length)return t;t&&l2(e.charCodeAt(t))&&a2(e.charCodeAt(t-1))&&t--;let o=s2(e,t);for(t+=u2(o);t=0&&n2(s2(e,o));)n++,o-=2;if(n%2==0)break;t+=2}}}return t}function i2(e,t,n){for(;t>0;){let o=r2(e,t-2,n);if(o=56320&&e<57344}function a2(e){return e>=55296&&e<56320}function s2(e,t){let n=e.charCodeAt(t);if(!a2(n)||t+1==e.length)return n;let o=e.charCodeAt(t+1);return l2(o)?o-56320+(n-55296<<10)+65536:n}function c2(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function u2(e){return e<65536?1:2}const d2=/\r\n?|\n/;var p2=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(p2||(p2={}));class h2{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-o);r+=l}else{if(n!=p2.Simple&&s>=e&&(n==p2.TrackDel&&oe||n==p2.TrackBefore&&oe))return null;if(s>e||s==e&&t<0&&!l)return e==o||t<0?r:r+a;r+=a}o=s}if(e>o)throw new RangeError(`Position ${e} is out of range for changeset of length ${o}`);return r}touchesRange(e,t=e){for(let n=0,o=0;n=0&&o<=t&&r>=e)return!(ot)||"cover";o=r}return!1}toString(){let e="";for(let t=0;t=0?":"+o:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new h2(e)}static create(e){return new h2(e)}}class f2 extends h2{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return v2(this,((t,n,o,r,i)=>e=e.replace(o,o+(n-t),i)),!1),e}mapDesc(e,t=!1){return b2(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let o=0,r=0;o=0){t[o]=l,t[o+1]=i;let a=o>>1;for(;n.length0&&m2(n,t,r.text),r.forward(e),l+=e}let s=e[i++];for(;l>1].toJSON()))}return e}static of(e,t,n){let o=[],r=[],i=0,l=null;function a(e=!1){if(!e&&!o.length)return;il||e<0||l>t)throw new RangeError(`Invalid change range ${e} to ${l} (in doc of length ${t})`);let u=c?"string"==typeof c?W1.of(c.split(n||d2)):c:W1.empty,d=u.length;if(e==l&&0==d)return;ei&&g2(o,e-i,-1),g2(o,l-e,d),m2(r,o,u),i=l}}(e),a(!l),l}static empty(e){return new f2(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let o=0;ot&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:o?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function m2(e,t,n){if(0==n.length)return;let o=t.length-2>>1;if(o>1])),!(n||l==e.sections.length||e.sections[l+1]<0);)a=e.sections[l++],s=e.sections[l++];t(r,c,i,u,d),r=c,i=u}}}function b2(e,t,n,o=!1){let r=[],i=o?[]:null,l=new O2(e),a=new O2(t);for(let s=-1;;)if(-1==l.ins&&-1==a.ins){let e=Math.min(l.len,a.len);g2(r,e,-1),l.forward(e),a.forward(e)}else if(a.ins>=0&&(l.ins<0||s==l.i||0==l.off&&(a.len=0&&s=0)){if(l.done&&a.done)return i?f2.createSet(r,i):h2.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=l.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.lene||l.ins>=0&&l.len>e)&&(a||o.length>t),i.forward2(e),l.forward(e)}}else g2(o,0,l.ins,a),r&&m2(r,o,l.text),l.next()}}class O2{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?W1.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?W1.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class w2{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,o;return this.empty?n=o=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),o=e.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new w2(n,o,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return S2.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return S2.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return S2.range(e.anchor,e.head)}static create(e,t,n){return new w2(e,t,n)}}class S2{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:S2.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new S2(e.ranges.map((e=>w2.fromJSON(e))),e.main)}static single(e,t=e){return new S2([S2.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;oe?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let o=1;on.head?S2.range(l,i):S2.range(i,l))}}return new S2(e,t)}}function $2(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let x2=0;class C2{constructor(e,t,n,o,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=o,this.id=x2++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new C2(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:k2),!!e.static,e.enables)}of(e){return new P2([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new P2(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new P2(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function k2(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class P2{constructor(e,t,n,o){this.dependencies=e,this.facet=t,this.type=n,this.value=o,this.id=x2++}dynamicSlot(e){var t;let n=this.value,o=this.facet.compareInput,r=this.id,i=e[r]>>1,l=2==this.type,a=!1,s=!1,c=[];for(let u of this.dependencies)"doc"==u?a=!0:"selection"==u?s=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[i]=n(e),1),update(e,t){if(a&&t.docChanged||s&&(t.docChanged||t.selection)||M2(e,c)){let t=n(e);if(l?!T2(t,e.values[i],o):!o(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let a,s=t.config.address[r];if(null!=s){let r=W2(t,s);if(this.dependencies.every((n=>n instanceof C2?t.facet(n)===e.facet(n):!(n instanceof A2)||t.field(n,!1)==e.field(n,!1)))||(l?T2(a=n(e),r,o):o(a=n(e),r)))return e.values[i]=r,0}else a=n(e);return e.values[i]=a,1}}}}function T2(e,t,n){if(e.length!=t.length)return!1;for(let o=0;oe[t.id])),r=n.map((e=>e.type)),i=o.filter((e=>!(1&e))),l=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(E2).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let o=e.values[t],r=this.updateF(o,n);return this.compareF(o,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,E2.of({field:this,create:e})]}get extension(){return this}}const D2=4,R2=3,z2=2,B2=1;function j2(e){return t=>new _2(t,e)}const N2={highest:j2(0),high:j2(B2),default:j2(z2),low:j2(R2),lowest:j2(D2)};class _2{constructor(e,t){this.inner=e,this.prec=t}}class Q2{of(e){return new L2(this,e)}reconfigure(e){return Q2.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class L2{constructor(e,t){this.compartment=e,this.inner=t}}class H2{constructor(e,t,n,o,r,i){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=o,this.staticValues=r,this.facets=i,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let o=[],r=Object.create(null),i=new Map;for(let d of function(e,t,n){let o=[[],[],[],[],[]],r=new Map;function i(e,l){let a=r.get(e);if(null!=a){if(a<=l)return;let t=o[a].indexOf(e);t>-1&&o[a].splice(t,1),e instanceof L2&&n.delete(e.compartment)}if(r.set(e,l),Array.isArray(e))for(let t of e)i(t,l);else if(e instanceof L2){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let o=t.get(e.compartment)||e.inner;n.set(e.compartment,o),i(o,l)}else if(e instanceof _2)i(e.inner,e.prec);else if(e instanceof A2)o[l].push(e),e.provides&&i(e.provides,l);else if(e instanceof P2)o[l].push(e),e.facet.extensions&&i(e.facet.extensions,z2);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(t,l)}}return i(e,z2),o.reduce(((e,t)=>e.concat(t)))}(e,t,i))d instanceof A2?o.push(d):(r[d.facet.id]||(r[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],s=[];for(let d of o)l[d.id]=s.length<<1,s.push((e=>d.slot(e)));let c=null==n?void 0:n.config.facets;for(let d in r){let e=r[d],t=e[0].facet,o=c&&c[d]||[];if(e.every((e=>0==e.type)))if(l[t.id]=a.length<<1|1,k2(o,e))a.push(n.facet(t));else{let o=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(o,n.facet(t))?n.facet(t):o)}else{for(let t of e)0==t.type?(l[t.id]=a.length<<1|1,a.push(t.value)):(l[t.id]=s.length<<1,s.push((e=>t.dynamicSlot(e))));l[t.id]=s.length<<1,s.push((n=>I2(n,t,e)))}}let u=s.map((e=>e(l)));return new H2(e,i,u,l,a,r)}}function F2(e,t){if(1&t)return 2;let n=t>>1,o=e.status[n];if(4==o)throw new Error("Cyclic dependency between fields and/or facets");if(2&o)return o;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function W2(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const X2=C2.define(),Y2=C2.define({combine:e=>e.some((e=>e)),static:!0}),Z2=C2.define({combine:e=>e.length?e[0]:void 0,static:!0}),V2=C2.define(),U2=C2.define(),K2=C2.define(),G2=C2.define({combine:e=>!!e.length&&e[0]});class q2{constructor(e,t){this.type=e,this.value=t}static define(){return new J2}}class J2{of(e){return new q2(this,e)}}class e3{constructor(e){this.map=e}of(e){return new t3(this,e)}}class t3{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new t3(this.type,t)}is(e){return this.type==e}static define(e={}){return new e3(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let o of e){let e=o.map(t);e&&n.push(e)}return n}}t3.reconfigure=t3.define(),t3.appendConfig=t3.define();class n3{constructor(e,t,n,o,r,i){this.startState=e,this.changes=t,this.selection=n,this.effects=o,this.annotations=r,this.scrollIntoView=i,this._doc=null,this._state=null,n&&$2(n,t.newLength),r.some((e=>e.type==n3.time))||(this.annotations=r.concat(n3.time.of(Date.now())))}static create(e,t,n,o,r,i){return new n3(e,t,n,o,r,i)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(n3.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function o3(e,t){let n=[];for(let o=0,r=0;;){let i,l;if(o=e[o]))i=e[o++],l=e[o++];else{if(!(r=0;r--){let i=n[r](e);i&&Object.keys(i).length&&(o=r3(o,i3(t,i,e.changes.newLength),!0))}return o==e?e:n3.create(t,e.changes,e.selection,o.effects,o.annotations,o.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(V2)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:o3(n,t))}if(!0!==n){let o,r;if(!1===n)r=e.changes.invertedDesc,o=f2.empty(t.doc.length);else{let t=e.changes.filter(n);o=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=n3.create(t,o,e.selection&&e.selection.map(r),t3.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let o=t.facet(U2);for(let r=o.length-1;r>=0;r--){let n=o[r](e);e=n instanceof n3?n:Array.isArray(n)&&1==n.length&&n[0]instanceof n3?n[0]:l3(t,s3(n),!1)}return e}(r):r)}n3.time=q2.define(),n3.userEvent=q2.define(),n3.addToHistory=q2.define(),n3.remote=q2.define();const a3=[];function s3(e){return null==e?a3:Array.isArray(e)?e:[e]}var c3=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(c3||(c3={}));const u3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let d3;try{d3=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Aue){}function p3(e){return t=>{if(!/\S/.test(t))return c3.Space;if(function(e){if(d3)return d3.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||u3.test(n)))return!0}return!1}(t))return c3.Word;for(let n=0;n-1)return c3.Word;return c3.Other}}class h3{constructor(e,t,n,o,r,i){this.config=e,this.doc=t,this.selection=n,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=r,i&&(i._state=this);for(let l=0;lr.set(t,e))),n=null),r.set(l.value.compartment,l.value.extension)):l.is(t3.reconfigure)?(n=null,o=l.value):l.is(t3.appendConfig)&&(n=null,o=s3(o).concat(l.value));n?t=e.startState.values.slice():(n=H2.resolve(o,r,this),t=new h3(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let i=e.startState.facet(Y2)?e.newSelection:e.newSelection.asSingle();new h3(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:S2.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),o=this.changes(n.changes),r=[n.range],i=s3(n.effects);for(let l=1;lt.spec.fromJSON(i,e))))}return h3.create({doc:e.doc,selection:S2.fromJSON(e.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(e={}){let t=H2.resolve(e.extensions||[],new Map),n=e.doc instanceof W1?e.doc:W1.of((e.doc||"").split(t.staticFacet(h3.lineSeparator)||d2)),o=e.selection?e.selection instanceof S2?e.selection:S2.single(e.selection.anchor,e.selection.head):S2.single(0);return $2(o,n.length),t.staticFacet(Y2)||(o=o.asSingle()),new h3(t,n,o,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(h3.tabSize)}get lineBreak(){return this.facet(h3.lineSeparator)||"\n"}get readOnly(){return this.facet(G2)}phrase(e,...t){for(let n of this.facet(h3.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let o=+(n||1);return!o||o>t.length?e:t[o-1]}))),e}languageDataAt(e,t,n=-1){let o=[];for(let r of this.facet(X2))for(let i of r(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&o.push(i[e]);return o}charCategorizer(e){return p3(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:o}=this.doc.lineAt(e),r=this.charCategorizer(e),i=e-n,l=e-n;for(;i>0;){let e=o2(t,i,!1);if(r(t.slice(e,i))!=c3.Word)break;i=e}for(;le.length?e[0]:4}),h3.lineSeparator=Z2,h3.readOnly=G2,h3.phrases=C2.define({compare(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length==o.length&&n.every((n=>e[n]==t[n]))}}),h3.languageData=X2,h3.changeFilter=V2,h3.transactionFilter=U2,h3.transactionExtender=K2,Q2.reconfigure=t3.define();class g3{eq(e){return this==e}range(e,t=e){return m3.create(e,t,this)}}g3.prototype.startSide=g3.prototype.endSide=0,g3.prototype.point=!1,g3.prototype.mapMode=p2.TrackDel;let m3=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,o){return new e(t,n,o)}};function v3(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class b3{constructor(e,t,n,o){this.from=e,this.to=t,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,o=0){let r=n?this.to:this.from;for(let i=o,l=r.length;;){if(i==l)return i;let o=i+l>>1,a=r[o]-e||(n?this.value[o].endSide:this.value[o].startSide)-t;if(o==i)return a>=0?i:l;a>=0?l=o:i=o+1}}between(e,t,n,o){for(let r=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,r);rc||s==c&&u.startSide>0&&u.endSide<=0)continue;(c-s||u.endSide-u.startSide)<0||(i<0&&(i=s),u.point&&(l=Math.max(l,c-s)),n.push(u),o.push(s-i),r.push(c-i))}return{mapped:n.length?new b3(o,r,n,l):null,pos:i}}}class y3{constructor(e,t,n,o){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=o}static create(e,t,n,o){return new y3(e,t,n,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:o=0,filterTo:r=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(n&&(t=t.slice().sort(v3)),this.isEmpty)return t.length?y3.of(t):this;let l=new S3(this,null,-1).goto(0),a=0,s=[],c=new O3;for(;l.value||a=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||s.push(e)}else 1==l.rangeIndex&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&e<=r+i.length&&!1===i.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return $3.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return $3.from(e).goto(t)}static compare(e,t,n,o,r=-1){let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),l=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=w3(i,l,n),s=new C3(i,a,r),c=new C3(l,a,r);n.iterGaps(((e,t,n)=>k3(s,e,c,t,n,o))),n.empty&&0==n.length&&k3(s,0,c,0,0,o)}static eq(e,t,n=0,o){null==o&&(o=999999999);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=i.length)return!1;if(!r.length)return!0;let l=w3(r,i),a=new C3(r,l,0).goto(n),s=new C3(i,l,0).goto(n);for(;;){if(a.to!=s.to||!P3(a.active,s.active)||a.point&&(!s.point||!a.point.eq(s.point)))return!1;if(a.to>o)return!0;a.next(),s.next()}}static spans(e,t,n,o,r=-1){let i=new C3(e,null,r).goto(t),l=t,a=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),r=i.pointFroml&&(o.span(l,e,i.active,a),a=i.openEnd(e));if(i.to>n)return a+(i.point&&i.to>n?1:0);l=i.to,i.next()}}static of(e,t=!1){let n=new O3;for(let o of e instanceof m3?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(v3);t=o}return e}(e):e)n.add(o.from,o.to,o.value);return n.finish()}}y3.empty=new y3([],[],null,-1),y3.empty.nextLayer=y3.empty;class O3{finishChunk(e){this.chunks.push(new b3(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new O3)).add(e,t,n)}addInner(e,t,n){let o=e-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(y3.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=y3.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function w3(e,t,n){let o=new Map;for(let i of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&o.push(new S3(i,t,n,r));return 1==o.length?o[0]:new $3(o)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)x3(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)x3(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),x3(this.heap,0)}}}function x3(e,t){for(let n=e[t];;){let o=1+(t<<1);if(o>=e.length)break;let r=e[o];if(o+1=0&&(r=e[o+1],o++),n.compare(r)<0)break;e[o]=n,e[t]=r,t=o}}class C3{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=$3.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){T3(this.active,e),T3(this.activeTo,e),T3(this.activeRank,e),this.minActive=I3(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:o,rank:r}=this.cursor;for(;t-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>e){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&T3(n,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function k3(e,t,n,o,r,i){e.goto(t),n.goto(o);let l=o+r,a=o,s=o-t;for(;;){let t=e.to+s-n.to||e.endSide-n.endSide,o=t<0?e.to+s:n.to,r=Math.min(o,l);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&P3(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(a,r,e.point,n.point):r>a&&!P3(e.active,n.active)&&i.compareRange(a,r,e.active,n.active),o>l)break;a=o,t<=0&&e.next(),t>=0&&n.next()}}function P3(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;o--)e[o+1]=e[o];e[t]=n}function I3(e,t){let n=-1,o=1e9;for(let r=0;r=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=o2(e,r)}return!0===o?-1:e.length}const D3="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),R3="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),z3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class B3{constructor(e,t){this.rules=[];let{finish:n}=t||{};function o(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,i,l){let a=[],s=/^@(\w+)\b/.exec(e[0]),c=s&&"keyframes"==s[1];if(s&&null==t)return i.push(e[0]+";");for(let n in t){let l=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),l,i);else if(l&&"object"==typeof l){if(!s)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(o(n),l,a,c)}else null!=l&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+l+";")}(a.length||c)&&i.push((!n||s||l?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let i in e)r(o(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=z3[D3]||1;return z3[D3]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let o=e[R3],r=n&&n.nonce;o?r&&o.setNonce(r):o=new N3(e,r),o.mount(Array.isArray(t)?t:[t])}}let j3=new Map;class N3{constructor(e,t){let n=e.ownerDocument||e,o=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&o.CSSStyleSheet){let t=j3.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[R3]=t;this.sheet=new o.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],j3.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let o=e.head||e;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],e[R3]=this}mount(e){let t=this.sheet,n=0,o=0;for(let r=0;r-1&&(this.modules.splice(l,1),o--,l=-1),-1==l){if(this.modules.splice(o++,0,i),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},L3="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),H3="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),F3=0;F3<10;F3++)_3[48+F3]=_3[96+F3]=String(F3);for(F3=1;F3<=24;F3++)_3[F3+111]="F"+F3;for(F3=65;F3<=90;F3++)_3[F3]=String.fromCharCode(F3+32),Q3[F3]=String.fromCharCode(F3);for(var W3 in _3)Q3.hasOwnProperty(W3)||(Q3[W3]=_3[W3]);function X3(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Y3(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Z3(e,t){if(!t.anchorNode)return!1;try{return Y3(e,t.anchorNode)}catch(Aue){return!1}}function V3(e){return 3==e.nodeType?l4(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function U3(e,t,n,o){return!!n&&(G3(e,t,n,o,-1)||G3(e,t,n,o,1))}function K3(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function G3(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:q3(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=K3(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?q3(e):0}}}function q3(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function J3(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function e4(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function t4(e,t){let n=t.width/e.offsetWidth,o=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(t.height-e.offsetHeight)<1)&&(o=1),{scaleX:n,scaleY:o}}class n4{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?q3(t):0),n,Math.min(e.focusOffset,n?q3(n):0))}set(e,t,n,o){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=o}}let o4,r4=null;function i4(e){if(e.setActive)return e.setActive();if(r4)return e.focus(r4);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==r4?{get preventScroll(){return r4={preventScroll:!0},!0}}:void 0),!r4){r4=!1;for(let e=0;eMath.max(1,e.scrollHeight-e.clientHeight-4)}class u4{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new u4(e.parentNode,K3(e),t)}static after(e,t){return new u4(e.parentNode,K3(e)+1,t)}}const d4=[];class p4{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,o=this.dom,r=null;for(let i of this.children){if(7&i.flags){if(!i.dom&&(n=r?r.nextSibling:o.firstChild)){let e=p4.get(n);(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(n)}i.sync(e,t),i.flags&=-8}if(n=r?r.nextSibling:o.firstChild,t&&!t.written&&t.node==o&&n!=i.dom&&(t.written=!0),i.dom.parentNode==o)for(;n&&n!=i.dom;)n=h4(n);else o.insertBefore(i.dom,n);r=i.dom}for(n=r?r.nextSibling:o.firstChild,n&&t&&t.node==o&&(t.written=!0);n;)n=h4(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let o=0==q3(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==o&&t.firstChild!=t.lastChild&&(o=e==t.firstChild?-1:1),e=t}n=o<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!p4.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,r=0;;o++){let e=this.children[o];if(e.dom==n)return r;r+=e.length+e.breakAfter}}domBoundsAround(e,t,n=0){let o=-1,r=-1,i=-1,l=-1;for(let a=0,s=n,c=n;at)return n.domBoundsAround(e,t,s);if(u>=e&&-1==o&&(o=a,r=s),s>t&&n.dom.parentNode==this.dom){i=a,l=c;break}c=u,s=u+n.breakAfter}return{from:r,to:l<0?n+this.length:l,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=d4){this.markDirty();for(let o=e;othis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function g4(e,t,n,o,r,i,l,a,s){let{children:c}=e,u=c.length?c[t]:null,d=i.length?i[i.length-1]:null,p=d?d.breakAfter:l;if(!(t==o&&u&&!l&&!p&&i.length<2&&u.merge(n,r,i.length?d:null,0==n,a,s))){if(o0&&(!l&&i.length&&u.merge(n,u.length,i[0],!1,a,0)?u.breakAfter=i.shift().breakAfter:(n2);var T4={mac:P4||/Mac/.test(v4.platform),windows:/Win/.test(v4.platform),linux:/Linux|X11/.test(v4.platform),ie:S4,ie_version:O4?b4.documentMode||6:w4?+w4[1]:y4?+y4[1]:0,gecko:$4,gecko_version:$4?+(/Firefox\/(\d+)/.exec(v4.userAgent)||[0,0])[1]:0,chrome:!!x4,chrome_version:x4?+x4[1]:0,ios:P4,android:/Android\b/.test(v4.userAgent),webkit:C4,safari:k4,webkit_version:C4?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=b4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class M4 extends p4{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof M4)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new M4(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new u4(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let o=e.nodeValue.length;t>o&&(t=o);let r=t,i=t,l=0;0==t&&n<0||t==o&&n>=0?T4.chrome||T4.gecko||(t?(r--,l=1):i=0)?0:a.length-1];return T4.safari&&!l&&0==s.width&&(s=Array.prototype.find.call(a,(e=>e.width))||s),l?J3(s,l<0):s||null}(this.dom,e,t)}}class I4 extends p4{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let o of t)o.setParent(this)}setAttrs(e){if(s4(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof I4&&n.mark.eq(this.mark))||e&&r<=0||te&&t.push(n=e&&(o=r),n=i,r++}let i=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new I4(this.mark,t,i)}domAtPos(e){return D4(this,e)}coordsAt(e,t){return z4(this,e,t)}}class E4 extends p4{static create(e,t,n){return new E4(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=E4.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof E4&&this.widget.compare(n.widget))||e>0&&r<=0||t0)?u4.before(this.dom):u4.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let o=this.dom.getClientRects(),r=null;if(!o.length)return null;let i=this.side?this.side<0:e>0;for(let l=i?o.length-1:0;r=o[l],!(e>0?0==l:l==o.length-1||r.top0?u4.before(this.dom):u4.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return W1.empty}get isHidden(){return!0}}function D4(e,t){let n=e.dom,{children:o}=e,r=0;for(let i=0;ri&&t0;i--){let e=o[i-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let i=r;i0&&t instanceof I4&&r.length&&(o=r[r.length-1])instanceof I4&&o.mark.eq(t.mark)?R4(o,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function z4(e,t,n){let o=null,r=-1,i=null,l=-1;!function e(t,a){for(let s=0,c=0;s=a&&(u.children.length?e(u,a-c):(!i||i.isHidden&&n>0)&&(d>a||c==d&&u.getSide()>0)?(i=u,l=a-c):(c-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let i of o)if(i!=n&&(-1==r.indexOf(i)||e[i]!==t[i]))return!1;return!0}function _4(e,t,n){let o=!1;if(t)for(let r in t)n&&r in n||(o=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(n)for(let r in n)t&&t[r]==n[r]||(o=!0,"style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return o}function Q4(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){N4(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){R4(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=B4(t,this.attrs||{})),n&&(this.attrs=B4({class:n},this.attrs||{}))}domAtPos(e){return D4(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(s4(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(_4(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let o=this.dom.lastChild;for(;o&&p4.get(o)instanceof I4;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(n=p4.get(o))||void 0===n?void 0:n.isEditable)||T4.ios&&this.children.some((e=>e instanceof M4))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof M4)||/[^ -~]/.test(n.text))return null;let o=V3(n.dom);if(1!=o.length)return null;t+=o[0].width,e=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=z4(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(r instanceof L4)return r;if(i>t)break}o=i+r.breakAfter}return null}}class H4 extends p4{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof H4&&this.widget.compare(n.widget))||e>0&&r<=0||t0)}}class F4{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var W4=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(W4||(W4={}));class X4 extends g3{constructor(e,t,n,o){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(e){return new Y4(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new V4(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,o=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:i}=U4(e,o);t=(r?o?-3e8:-1:5e8)-1,n=1+(i?o?2e8:1:-6e8)}return new V4(e,t,n,o,e.widget||null,!0)}static line(e){return new Z4(e)}static set(e,t=!1){return y3.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}X4.none=y3.empty;class Y4 extends X4{constructor(e){let{start:t,end:n}=U4(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof Y4&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&N4(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Y4.prototype.point=!1;class Z4 extends X4{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Z4&&this.spec.class==e.spec.class&&N4(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Z4.prototype.mapMode=p2.TrackBefore,Z4.prototype.point=!0;class V4 extends X4{constructor(e,t,n,o,r,i){super(t,n,r,e),this.block=o,this.isReplace=i,this.mapMode=o?t<=0?p2.TrackBefore:p2.TrackAfter:p2.TrackDel}get type(){return this.startSide!=this.endSide?W4.WidgetRange:this.startSide<=0?W4.WidgetBefore:W4.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof V4&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function U4(e,t=!1){let{inclusiveStart:n,inclusiveEnd:o}=e;return null==n&&(n=e.inclusive),null==o&&(o=e.inclusive),{start:null!=n?n:t,end:null!=o?o:t}}function K4(e,t,n,o=0){let r=n.length-1;r>=0&&n[r]+o>=e?n[r]=Math.max(n[r],t):n.push(e,t)}V4.prototype.point=!0;class G4{constructor(e,t,n,o){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof H4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new L4),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(q4(new A4(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof H4||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let o=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(q4(new M4(this.text.slice(this.textOff,this.textOff+o)),t),n),this.atCursorPos=!0,this.textOff+=o,e-=o,n=0}}span(e,t,n,o){this.buildText(t-e,n,o),this.pos=t,this.openStart<0&&(this.openStart=o)}point(e,t,n,o,r,i){if(this.disallowBlockEffectsFor[i]&&n instanceof V4){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof V4)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new H4(n.widget||new J4("div"),l,n));else{let i=E4.create(n.widget||new J4("span"),l,l?0:n.startSide),a=this.atCursorPos&&!i.isEditable&&r<=o.length&&(e0),s=!i.isEditable&&(eo.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||i.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),a&&(c.append(q4(new A4(1),o),r),r=o.length+Math.max(0,r-o.length)),c.append(q4(i,o),r),this.atCursorPos=s,this.pendingBuffer=s?eo.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,o,r){let i=new G4(e,t,n,r);return i.openEnd=y3.spans(o,t,n,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function q4(e,t){for(let n of t)e=new I4(n,[e],e.length);return e}class J4 extends F4{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const e5=C2.define(),t5=C2.define(),n5=C2.define(),o5=C2.define(),r5=C2.define(),i5=C2.define(),l5=C2.define(),a5=C2.define({combine:e=>e.some((e=>e))}),s5=C2.define({combine:e=>e.some((e=>e))});class c5{constructor(e,t="nearest",n="nearest",o=5,r=5,i=!1){this.range=e,this.y=t,this.x=n,this.yMargin=o,this.xMargin=r,this.isSnapshot=i}map(e){return e.empty?this:new c5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new c5(S2.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const u5=t3.define({map:(e,t)=>e.map(t)});function d5(e,t,n){let o=e.facet(o5);o.length?o[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)}const p5=C2.define({combine:e=>!e.length||e[0]});let h5=0;const f5=C2.define();class g5{constructor(e,t,n,o,r){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=o,this.extension=r(this)}static define(e,t){const{eventHandlers:n,eventObservers:o,provide:r,decorations:i}=t||{};return new g5(h5++,e,n,o,(e=>{let t=[f5.of(e)];return i&&t.push(y5.of((t=>{let n=t.plugin(e);return n?i(n):X4.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return g5.define((t=>new e(t)),t)}}class m5{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(Eue){if(d5(e.state,Eue,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(Aue){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(Eue){d5(e.state,Eue,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(Eue){d5(e.state,Eue,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const v5=C2.define(),b5=C2.define(),y5=C2.define(),O5=C2.define(),w5=C2.define();function S5(e,t,n){let o=e.state.facet(w5);if(!o.length)return o;let r=o.map((t=>t instanceof Function?t(e):t)),i=[];return y3.spans(r,t,n,{point(){},span(e,t,n,o){let r=i;for(let i=n.length-1;i>=0;i--,o--){let l,a=n[i].spec.bidiIsolate;if(null!=a)if(o>0&&r.length&&(l=r[r.length-1]).to==e&&l.direction==a)l.to=t,r=l.inner;else{let n={from:e,to:t,direction:a,inner:[]};r.push(n),r=n.inner}}}}),i}const $5=C2.define();function x5(e){let t=0,n=0,o=0,r=0;for(let i of e.state.facet($5)){let l=i(e);l&&(null!=l.left&&(t=Math.max(t,l.left)),null!=l.right&&(n=Math.max(n,l.right)),null!=l.top&&(o=Math.max(o,l.top)),null!=l.bottom&&(r=Math.max(r,l.bottom)))}return{left:t,right:n,top:o,bottom:r}}const C5=C2.define();class k5{constructor(e,t,n,o){this.fromA=e,this.toA=t,this.fromB=n,this.toB=o}join(e){return new k5(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let o=e[t-1];if(!(o.fromA>n.toA)){if(o.toAc)break;r+=2}if(!a)return n;new k5(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),i=a.toA,l=a.toB}}}class P5{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=f2.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let o=[];this.changes.iterChangedRanges(((e,t,n,r)=>o.push(new k5(e,t,n,r)))),this.changedRanges=o}static create(e,t,n){return new P5(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var T5=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(T5||(T5={}));const M5=T5.LTR,I5=T5.RTL;function E5(e){let t=[];for(let n=0;n=t){if(l.level==n)return i;(r<0||(0!=o?o<0?l.fromt:e[r].level>l.level))&&(r=i)}}if(r<0)throw new RangeError("Index out of range");return r}}function N5(e,t){if(e.length!=t.length)return!1;for(let n=0;ns&&l.push(new j5(s,f.from,p)),L5(e,f.direction==M5!=!(p%2)?o+1:o,r,f.inner,f.from,f.to,l),s=f.to),h=f.to}else{if(h==n||(t?_5[h]!=a:_5[h]==a))break;h++}d?Q5(e,s,h,o+1,r,d,l):st;){let n=!0,u=!1;if(!c||s>i[c-1].to){let e=_5[s-1];e!=a&&(n=!1,u=16==e)}let d=n||1!=a?null:[],p=n?o:o+1,h=s;e:for(;;)if(c&&h==i[c-1].to){if(u)break e;let f=i[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||i[n-1].to!=e){if(_5[e-1]==a)break e;break}e=i[--n].from}d?d.push(f):(f.to=0;e-=3)if(z5[e+1]==-n){let t=z5[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(_5[l]=_5[z5[e]]=n),a=e;break}}else{if(189==z5.length)break;z5[a++]=l,z5[a++]=t,z5[a++]=s}else if(2==(o=_5[l])||1==o){let e=o==r;s=e?0:1;for(let t=a-3;t>=0;t-=3){let n=z5[t+2];if(2&n)break;if(e)z5[t+2]|=2;else{if(4&n)break;z5[t+2]|=4}}}}}(e,r,i,o,a),function(e,t,n,o){for(let r=0,i=o;r<=n.length;r++){let l=r?n[r-1].to:e,a=rs;)t==i&&(t=n[--o].from,i=o?n[o-1].to:e),_5[--t]=u;s=l}else i=l,s++}}}(r,i,o,a),Q5(e,r,i,t,n,o,l)}function H5(e){return[new j5(0,e,0)]}let F5="";function W5(e,t,n,o,r){var i;let l=o.head-e.from,a=-1;if(0==l){if(!r||!e.length)return null;t[0].level!=n&&(l=t[0].side(!1,n),a=0)}else if(l==e.length){if(r)return null;let e=t[t.length-1];e.level!=n&&(l=e.side(!0,n),a=t.length-1)}a<0&&(a=j5.find(t,l,null!==(i=o.bidiLevel)&&void 0!==i?i:-1,o.assoc));let s=t[a];l==s.side(r,n)&&(s=t[a+=r?1:-1],l=s.side(!r,n));let c=r==(s.dir==n),u=o2(e.text,l,c);if(F5=e.text.slice(Math.min(l,u),Math.max(l,u)),u>s.from&&u0&&n.length&&(n.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?o=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,o)=>{et.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(o=e.state.selection.main.head));let r=o>-1?function(e,t,n){let o=Z5(e,n);if(!o)return null;let{node:r,from:i,to:l}=o,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(o.from,o.to)!=a)return null;let s=t.invertedDesc,c=new k5(s.mapPos(i),s.mapPos(l),i,l),u=[];for(let d=r.parentNode;;d=d.parentNode){let t=p4.get(d);if(t instanceof I4)u.push({node:d,deco:t.mark});else{if(t instanceof L4||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{range:c,text:r,marks:u,line:d};if(d==e.contentDOM)return null;u.push({node:d,deco:new Y4({inclusive:!0,attributes:Q4(d),tagName:d.tagName.toLowerCase()})})}}}(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:o}=this.hasComposition;n=new k5(t,o,e.changes.mapPos(t,-1),e.changes.mapPos(o,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(T4.ie||T4.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,n){let o=new U5;return y3.compare(e,t,n,o),o.changes}(this.decorations,this.updateDeco(),e.changes);return n=k5.extendWithRanges(n,i),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:o}=this.view;o.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=T4.chrome||T4.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||o.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let r=[];if(this.view.viewport.from||this.view.viewport.to=0?o[i]:null;if(!e)break;let t,l,a,s,{fromA:c,toA:u,fromB:d,toB:p}=e;if(n&&n.range.fromBd){let e=G4.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),o=G4.build(this.view.state.doc,n.range.toB,p,this.decorations,this.dynamicDecorationMap);l=e.breakAtStart,a=e.openStart,s=o.openEnd;let r=this.compositionView(n);o.breakAtStart?r.breakAfter=1:o.content.length&&r.merge(r.length,r.length,o.content[0],!1,o.openStart,0)&&(r.breakAfter=o.content[0].breakAfter,o.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(r).concat(o.content)}else({content:t,breakAtStart:l,openStart:a,openEnd:s}=G4.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:h,off:f}=r.findPos(u,1),{i:g,off:m}=r.findPos(c,-1);g4(this,g,m,h,f,t,l,a,s)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new M4(e.text.nodeValue);t.flags|=8;for(let{deco:o}of e.marks)t=new I4(o,[t],t.length);let n=new L4;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=p4.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),o=this.children[n.i];t(e.line,o);for(let r=e.marks.length-1;r>=-1;r--)n=o.childPos(n.off,1),o=o.children[n.i],t(r>=0?e.marks[r].node:e.text,o)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,r=!o&&Z3(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||t||r))return;let i=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),s=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(T4.gecko&&l.empty&&!this.hasComposition&&1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null))),a=s=new u4(e,0),i=!0}var c;let u=this.view.observer.selectionRange;!i&&u.focusNode&&U3(a.node,a.offset,u.anchorNode,u.anchorOffset)&&U3(s.node,s.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{T4.android&&T4.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=X3(this.view.root);if(e)if(l.empty){if(T4.gecko){let e=(t=a.node,o=a.offset,1!=t.nodeType?0:(o&&"false"==t.childNodes[o-1].contentEditable?1:0)|(ol.head&&([a,s]=[s,a]),t.setEnd(s.node,s.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,o;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,s)),this.impreciseAnchor=a.precise?null:new u4(u.anchorNode,u.anchorOffset),this.impreciseHead=s.precise?null:new u4(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=X3(e.root),{anchorNode:o,anchorOffset:r}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let i=L4.find(this,t.head);if(!i)return;let l=i.posAtStart;if(t.head==l||t.head==l+i.length)return;let a=this.coordsAt(t.head,-1),s=this.coordsAt(t.head,1);if(!a||!s||a.bottom>s.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(o,r)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let o=e.offset;!t&&o=0;o--){let e=p4.get(n.childNodes[o]);e instanceof L4&&(t=e.domAtPos(e.length))}return t?new u4(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=p4.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;i--){let l=this.children[i],a=r-l.breakAfter,s=a-l.length;if(ae||l.covers(1))&&(!n||l instanceof L4&&!(n instanceof L4&&t>=0))&&(n=l,o=s),r=s}return n?n.coordsAt(e-o,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),o=this.children[t];if(!(o instanceof L4))return null;for(;o.children.length;){let{i:e,off:t}=o.childPos(n,1);for(;;e++){if(e==o.children.length)return null;if((o=o.children[e]).length)break}n=t}if(!(o instanceof M4))return null;let r=o2(o.text,n);if(r==n)return null;let i=l4(o.dom,n,r).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==T5.LTR;for(let s=0,c=0;co)break;if(s>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),i){let t=e.dom.lastChild,o=t?V3(t):[];if(o.length){let e=o[o.length-1],t=a?e.right-n.left:n.right-e.left;t>l&&(l=t,this.minWidth=r,this.minWidthFrom=s,this.minWidthTo=u)}}}s=u+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?T5.RTL:T5.LTR}measureTextSize(){for(let r of this.children)if(r instanceof L4){let e=r.measureTextSize();if(e)return e}let e,t,n,o=document.createElement("div");return o.className="cm-line",o.style.width="99999px",o.style.position="absolute",o.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(o);let r=V3(o.firstChild)[0];e=o.getBoundingClientRect().height,t=r?r.width/27:7,n=r?r.height:e,o.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new f4(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,o=0;;o++){let r=o==t.viewports.length?null:t.viewports[o],i=r?r.from-1:this.length;if(i>n){let o=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(X4.replace({widget:new Y5(o),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!r)break;n=r.to+1}return X4.set(e)}updateDeco(){let e=this.view.state.facet(y5).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!o)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(o={left:Math.min(o.left,t.left),top:Math.min(o.top,t.top),right:Math.max(o.right,t.right),bottom:Math.max(o.bottom,t.bottom)});let r=x5(this.view),i={left:o.left-r.left,top:o.top-r.top,right:o.right+r.right,bottom:o.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,o,r,i,l,a){let s=e.ownerDocument,c=s.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==s.body,h=1,f=1;if(p)e=e4(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:h,scaleY:f}=t4(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,top:t.top,bottom:t.top+u.clientHeight*f}}let g=0,m=0;if("nearest"==r)t.top0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+m+l)):t.bottom>e.bottom&&(m=t.bottom-e.bottom+l,n<0&&t.top-m0&&t.right>e.right+g&&(g=t.right-e.right+g+i)):t.right>e.right&&(g=t.right-e.right+i,n<0&&t.left0))break;o=o.childNodes[r-1],r=q3(o)}if(n>=0)for(let o=e,r=t;;){if(3==o.nodeType)return{node:o,offset:r};if(!(1==o.nodeType&&r=0))break;o=o.childNodes[r],r=0}return null}let U5=class{constructor(){this.changes=[]}compareRange(e,t){K4(e,t,this.changes)}comparePoint(e,t){K4(e,t,this.changes)}};function K5(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function G5(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function q5(e,t){return e.topt.top+1}function J5(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function t8(e,t,n){let o,r,i,l,a,s,c,u,d=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=V3(h);for(let p=0;pm||l==m&&i>g){o=h,r=f,i=g,l=m;let a=m?n0?p0)}0==g?n>f.bottom&&(!c||c.bottomf.top)&&(s=h,u=f):c&&q5(c,f)?c=e8(c,f.bottom):u&&q5(u,f)&&(u=J5(u,f.top))}}if(c&&c.bottom>=n?(o=a,r=c):u&&u.top<=n&&(o=s,r=u),!o)return{node:e,offset:0};let p=Math.max(r.left,Math.min(r.right,t));return 3==o.nodeType?n8(o,p,n):d&&"false"!=o.contentEditable?t8(o,p,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,o)+(t>=(r.left+r.right)/2?1:0)}}function n8(e,t,n){let o=e.nodeValue.length,r=-1,i=1e9,l=0;for(let a=0;an?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u=(c.left+c.right)/2,o=n;if((T4.chrome||T4.gecko)&&l4(e,a).getBoundingClientRect().left==c.right&&(o=!n),u<=0)return{node:e,offset:a+(o?1:0)};r=a+(o?1:0),i=u}}}return{node:e,offset:r>-1?r:l>0?e.nodeValue.length:0}}function o8(e,t,n,o=-1){var r,i;let l,a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,p=d-s;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let O=e.viewState.heightOracle.textHeight/2,w=!1;l=e.elementAtHeight(p),l.type!=W4.Text;)for(;p=o>0?l.bottom+O:l.top-O,!(p>=0&&p<=c);){if(w)return n?null:0;w=!0,o=-o}d=s+p;let h=l.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:r8(e,a,l,u,d);let f=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:f,m=g.elementFromPoint(u,d);m&&!e.contentDOM.contains(m)&&(m=null),m||(u=Math.max(a.left+1,Math.min(a.right-1,u)),m=g.elementFromPoint(u,d),m&&!e.contentDOM.contains(m)&&(m=null));let v,b=-1;if(m&&0!=(null===(r=e.docView.nearest(m))||void 0===r?void 0:r.isEditable))if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:b}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,d);t&&(({startContainer:v,startOffset:b}=t),(!e.contentDOM.contains(v)||T4.safari&&function(e,t,n){let o;if(3!=e.nodeType||t!=(o=e.nodeValue.length))return!1;for(let r=e.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return l4(e,o-1,o).getBoundingClientRect().left>n}(v,b,u)||T4.chrome&&function(e,t,n){if(0!=t)return!1;for(let r=e;;){let e=r.parentNode;if(!e||1!=e.nodeType||e.firstChild!=r)return!1;if(e.classList.contains("cm-line"))break;r=e}let o=1==e.nodeType?e.getBoundingClientRect():l4(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-o.left>5}(v,b,u))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=L4.find(e.docView,h);if(!t)return p>l.top+l.height/2?l.to:l.from;({node:v,offset:b}=t8(t.dom,u,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(i=y.dom)||void 0===i?void 0:i.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;i+=Math.floor((r-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let l=e.state.sliceDoc(n.from,n.to);return n.from+A3(l,i,e.state.tabSize)}function i8(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let o of n.type)if(o.to>t||o.to==t&&(o.to==n.to||o.type==W4.Text))return o;return n}function l8(e,t,n,o){let r=e.state.doc.lineAt(t.head),i=e.bidiSpans(r),l=e.textDirectionAt(r.from);for(let a=t,s=null;;){let t=W5(r,i,l,a,n),c=F5;if(!t){if(r.number==(n?e.state.doc.lines:1))return a;c="\n",r=e.state.doc.line(r.number+(n?1:-1)),i=e.bidiSpans(r),t=S2.cursor(n?r.from:r.to)}if(s){if(!s(c))return a}else{if(!o)return t;s=o(c)}a=t}}function a8(e,t,n){for(;;){let o=0;for(let r of e)r.between(t-1,t+1,((e,r,i)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return o==n.from?n:S2.cursor(o,onull)),T4.gecko&&(t=e.contentDOM.ownerDocument,z8.has(t)||(z8.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,o=t.target;o!=e.contentDOM;o=o.parentNode)if(!o||11==o.nodeType||(n=p4.get(o))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let o of e){let e=o.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let r=e.domEventHandlers[t];r&&n(t).handlers.push(u8(o.value,r))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let r=e.domEventObservers[t];r&&n(t).observers.push(u8(o.value,r))}}for(let o in m8)n(o).handlers.push(m8[o]);for(let o in v8)n(o).observers.push(v8[o]);return t}(e),n=this.handlers,o=this.view.contentDOM;for(let r in t)if("scroll"!=r){let e=!t[r].handlers.length,i=n[r];i&&e!=!i.handlers.length&&(o.removeEventListener(r,this.handleEvent),i=null),i||o.addEventListener(r,this.handleEvent,{passive:e})}for(let r in n)"scroll"==r||t[r]||o.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||p8.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,a4(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(T4.safari&&!T4.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function u8(e,t){return(n,o)=>{try{return t.call(e,o,n)}catch(Eue){d5(n.state,Eue)}}}const d8=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],p8="dthko",h8=[16,17,18,20,91,92,224,225];function f8(e){return.7*Math.max(0,e)+8}class g8{constructor(e,t,n,o){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(O5).map((t=>t(e)));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(h3.allowMultipleSelections)&&function(e,t){let n=e.state.facet(e5);return n.length?n[0](t):T4.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let o=X3(e.root);if(!o||0==o.rangeCount)return!0;let r=o.getRangeAt(0).getClientRects();for(let i=0;i=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=M8(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,o;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,o=e,Math.max(Math.abs(n.clientX-o.clientX),Math.abs(n.clientY-o.clientY))<10))return;this.select(this.lastEvent=e);let r=0,i=0,l=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=x5(this.view);e.clientX-a.left<=l.left+6?r=-f8(l.left-e.clientX):e.clientX+a.right>=l.right-6&&(r=f8(e.clientX-l.right)),e.clientY-a.top<=l.top+6?i=-f8(l.top-e.clientY):e.clientY+a.bottom>=l.bottom-6&&(i=f8(e.clientY-l.bottom)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const m8=Object.create(null),v8=Object.create(null),b8=T4.ie&&T4.ie_version<15||T4.ios&&T4.webkit_version<604;function y8(e,t){let n,{state:o}=e,r=1,i=o.toText(t),l=i.lines==o.selection.ranges.length;if(null!=E8&&o.selection.ranges.every((e=>e.empty))&&E8==i.toString()){let e=-1;n=o.changeByRange((n=>{let a=o.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let s=o.toText((l?i.line(r++).text:t)+o.lineBreak);return{changes:{from:a.from,insert:s},range:S2.cursor(n.from+s.length)}}))}else n=l?o.changeByRange((e=>{let t=i.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:S2.cursor(e.from+t.length)}})):o.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function O8(e,t,n,o){if(1==o)return S2.cursor(t,n);if(2==o)return function(e,t,n=1){let o=e.charCategorizer(t),r=e.doc.lineAt(t),i=t-r.from;if(0==r.length)return S2.cursor(t);0==i?n=1:i==r.length&&(n=-1);let l=i,a=i;n<0?l=o2(r.text,i,!1):a=o2(r.text,i);let s=o(r.text.slice(l,a));for(;l>0;){let e=o2(r.text,l,!1);if(o(r.text.slice(e,l))!=s)break;l=e}for(;a{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},m8.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),v8.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},v8.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},m8.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let o of e.state.facet(n5))if(n=o(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=x8(e,t),o=M8(t),r=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),r=r.map(e.changes))},get(t,i,l){let a,s=x8(e,t),c=O8(e,s.pos,s.bias,o);if(n.pos!=s.pos&&!i){let t=O8(e,n.pos,n.bias,o),r=Math.min(t.from,c.from),i=Math.max(t.to,c.to);c=r1&&(a=function(e,t){for(let n=0;n=t)return S2.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(r,s.pos))?a:l?r.addRange(c):S2.create([c])}}}(e,t)),n){let o=!e.hasFocus;e.inputState.startMouseSelection(new g8(e,t,n,o)),o&&e.observer.ignore((()=>i4(e.contentDOM)));let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let w8=(e,t)=>e>=t.top&&e<=t.bottom,S8=(e,t,n)=>w8(t,n)&&e>=n.left&&e<=n.right;function $8(e,t,n,o){let r=L4.find(e.docView,t);if(!r)return 1;let i=t-r.posAtStart;if(0==i)return 1;if(i==r.length)return-1;let l=r.coordsAt(i,-1);if(l&&S8(n,o,l))return-1;let a=r.coordsAt(i,1);return a&&S8(n,o,a)?1:l&&w8(o,l)?-1:1}function x8(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:$8(e,n,t.clientX,t.clientY)}}const C8=T4.ie&&T4.ie_version<=11;let k8=null,P8=0,T8=0;function M8(e){if(!C8)return e.detail;let t=k8,n=T8;return k8=e,T8=Date.now(),P8=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(P8+1)%3:1}function I8(e,t,n,o){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,l=o&&i&&function(e,t){let n=e.state.facet(t5);return n.length?n[0](t):T4.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:i.from,to:i.to}:null,a={from:r,insert:n},s=e.state.changes(l?[l,a]:a);e.focus(),e.dispatch({changes:s,selection:{anchor:s.mapPos(r,-1),head:s.mapPos(r,1)},userEvent:l?"move.drop":"input.drop"}),e.inputState.draggedContent=null}m8.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let o=e.docView.nearest(t.target);if(o&&o.isWidget){let e=o.posAtStart,t=e+o.length;(e>=n.to||t<=n.from)&&(n=S2.range(e,t))}}let{inputState:o}=e;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},m8.dragend=e=>(e.inputState.draggedContent=null,!1),m8.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let o=Array(n.length),r=0,i=()=>{++r==n.length&&I8(e,t,o.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(o[e]=t.result),i()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return I8(e,t,n,!0),!0}return!1},m8.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=b8?null:t.clipboardData;return n?(y8(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),y8(e,n.value)}),50)}(e),!1)};let E8=null;m8.copy=m8.cut=(e,t)=>{let{text:n,ranges:o,linewise:r}=function(e){let t=[],n=[],o=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let r=-1;for(let{from:o}of e.selection.ranges){let i=e.doc.lineAt(o);i.number>r&&(t.push(i.text),n.push({from:i.from,to:Math.min(e.doc.length,i.to+1)})),r=i.number}o=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:o}}(e.state);if(!n&&!r)return!1;E8=r?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let i=b8?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let o=n.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=t,o.focus(),o.selectionEnd=t.length,o.selectionStart=0,setTimeout((()=>{o.remove(),e.focus()}),50)}(e,n),!1)};const A8=q2.define();function D8(e,t){let n=[];for(let o of e.facet(l5)){let r=o(e,t);r&&n.push(r)}return n?e.update({effects:n,annotations:A8.of(!0)}):null}function R8(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=D8(e.state,t);n?e.dispatch(n):e.update([])}}),10)}v8.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),R8(e)},v8.blur=e=>{e.observer.clearSelectionRange(),R8(e)},v8.compositionstart=v8.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},v8.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,T4.chrome&&T4.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},v8.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},m8.beforeinput=(e,t)=>{var n;let o;if(T4.chrome&&T4.android&&(o=d8.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const z8=new Set,B8=["pre-wrap","normal","pre-line","break-spaces"];class j8{constructor(e){this.lineWrapping=e,this.doc=W1.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return B8.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=o,this.lineLength=r,a){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>L8&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return H8.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,o){let r=this,i=n.doc;for(let l=o.length-1;l>=0;l--){let{fromA:a,toA:s,fromB:c,toB:u}=o[l],d=r.lineAt(a,Q8.ByPosNoHeight,n.setDoc(t),0,0),p=d.to>=s?d:r.lineAt(s,Q8.ByPosNoHeight,n,0,0);for(u+=p.to-s,s=p.to;l>0&&d.from<=o[l-1].toA;)a=o[l-1].fromA,c=o[l-1].fromB,l--,a2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,o-=r.size}else{if(!(r>2*o))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(o=r&&i(this.blockAt(0,n,o,r))}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more&&this.setHeight(e,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class W8 extends F8{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,o){return new _8(o,this.length,n,this.height,this.breaks)}replace(e,t,n){let o=n[0];return 1==n.length&&(o instanceof W8||o instanceof X8&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof X8?o=new W8(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):H8.of(n)}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more?this.setHeight(e,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class X8 extends H8{constructor(e){super(e,0)}heightMetrics(e,t){let n,o=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-o+1,l=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);n=t/i,this.length>i+1&&(l=(this.height-t)/(this.length-i-1))}else n=this.height/i;return{firstLine:o,lastLine:r,perLine:n,perChar:l}}blockAt(e,t,n,o){let{firstLine:r,lastLine:i,perLine:l,perChar:a}=this.heightMetrics(t,o);if(t.lineWrapping){let r=o+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),i=t.doc.lineAt(r),s=l+i.length*a,c=Math.max(n,e-s/2);return new _8(i.from,i.length,c,s,0)}{let o=Math.max(0,Math.min(i-r,Math.floor((e-n)/l))),{from:a,length:s}=t.doc.line(r+o);return new _8(a,s,n+l*o,l,0)}}lineAt(e,t,n,o,r){if(t==Q8.ByHeight)return this.blockAt(e,n,o,r);if(t==Q8.ByPosNoHeight){let{from:t,to:o}=n.doc.lineAt(e);return new _8(t,o-t,0,0,0)}let{firstLine:i,perLine:l,perChar:a}=this.heightMetrics(n,r),s=n.doc.lineAt(e),c=l+s.length*a,u=s.number-i,d=o+l*u+a*(s.from-r-u);return new _8(s.from,s.length,Math.max(o,Math.min(d,o+this.height-c)),c,0)}forEachLine(e,t,n,o,r,i){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:l,perLine:a,perChar:s}=this.heightMetrics(n,r);for(let c=e,u=o;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-l;u+=a*n+s*(e-r-n)}let o=a+s*t.length;i(new _8(t.from,t.length,u,o,0)),u+=o,c=t.to+1}}replace(e,t,n){let o=this.length-t;if(o>0){let e=n[n.length-1];e instanceof X8?n[n.length-1]=new X8(e.length+o):n.push(null,new X8(o-1))}if(e>0){let t=n[0];t instanceof X8?n[0]=new X8(e+t.length):n.unshift(new X8(e-1),null)}return H8.of(n)}decomposeLeft(e,t){t.push(new X8(e-1),null)}decomposeRight(e,t){t.push(null,new X8(this.length-e-1))}updateHeight(e,t=0,n=!1,o){let r=t+this.length;if(o&&o.from<=t+this.length&&o.more){let n=[],i=Math.max(t,o.from),l=-1;for(o.from>t&&n.push(new X8(o.from-t-1).updateHeight(e,t));i<=r&&o.more;){let t=e.doc.lineAt(i).length;n.length&&n.push(null);let r=o.heights[o.index++];-1==l?l=r:Math.abs(r-l)>=L8&&(l=-2);let a=new W8(t,r);a.outdated=!1,n.push(a),i+=t+1}i<=r&&n.push(null,new X8(r-i).updateHeight(e,i));let a=H8.of(n);return(l<0||Math.abs(a.height-this.height)>=L8||Math.abs(l-this.heightMetrics(e,t).perLine)>=L8)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Y8 extends H8{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,o){let r=n+this.left.height;return el))return s;let c=t==Q8.ByPosNoHeight?Q8.ByPosNoHeight:Q8.ByPos;return a?s.join(this.right.lineAt(l,c,n,i,l)):this.left.lineAt(l,c,n,o,r).join(s)}forEachLine(e,t,n,o,r,i){let l=o+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,l,a,i);else{let s=this.lineAt(a,Q8.ByPos,n,o,r);e=e&&s.from<=t&&i(s),t>s.to&&this.right.forEachLine(s.to+1,t,n,l,a,i)}}replace(e,t,n){let o=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-o,t-o,n));let r=[];e>0&&this.decomposeLeft(e,r);let i=r.length;for(let l of n)r.push(l);if(e>0&&Z8(r,i-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,o=n+this.break;if(e>=o)return this.right.decomposeRight(e-o,t);e2*t.size||t.size>2*e.size?H8.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,o){let{left:r,right:i}=this,l=t+r.length+this.break,a=null;return o&&o.from<=t+r.length&&o.more?a=r=r.updateHeight(e,t,n,o):r.updateHeight(e,t,n),o&&o.from<=l+i.length&&o.more?a=i=i.updateHeight(e,l,n,o):i.updateHeight(e,l,n),a?this.balanced(r,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Z8(e,t){let n,o;null==e[t]&&(n=e[t-1])instanceof X8&&(o=e[t+1])instanceof X8&&e.splice(t-1,3,new X8(n.length+1+o.length))}class V8{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof W8?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new W8(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(o,r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new W8(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new X8(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof W8)return e;let t=new W8(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,e),o.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof W8||this.isCovered?(this.writtenTot.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();i=Math.max(i,n.left),l=Math.min(l,n.right),a=Math.max(a,n.top),s=c==e.parentNode?n.bottom:Math.min(s,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:i-n.left,right:Math.max(i,l)-n.left,top:a-(n.top+t),bottom:Math.max(a,s)-(n.top+t)}}function G8(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class q8{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new j8(t),this.stateDeco=e.facet(y5).filter((e=>"function"!=typeof e)),this.heightMap=H8.empty().applyChanges(this.stateDeco,W1.empty,this.heightOracle.setDoc(e.doc),[new k5(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=X4.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let o=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>o>=e&&o<=t))){let{from:t,to:n}=this.lineBlockAt(o);e.push(new t6(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?i6:new l6(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:a6(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(y5).filter((e=>"function"!=typeof e));let o=e.changedRanges,r=k5.extendWithRanges(o,function(e,t,n){let o=new U8;return y3.compare(e,t,n,o,0),o.changes}(n,this.stateDeco,e?e.changes:f2.empty(this.state.doc.length))),i=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=i&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let s=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),s&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(s5)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),o=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?T5.RTL:T5.LTR;let i=this.heightOracle.mustRefreshForWrapping(r),l=t.getBoundingClientRect(),a=i||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let s=0,c=0;if(l.width&&l.height){let{scaleX:e,scaleY:n}=t4(t,l);this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,s|=8,i=a=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(o.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=c4(e.scrollDOM);let h=(this.printing?G8:K8)(t,this.paddingTop),f=h.top-this.pixelViewport.top,g=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let v=l.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,s|=8),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(t)&&(i=!0),i||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:n,charWidth:l,textHeight:a}=e.docView.measureTextSize();i=n>0&&o.refresh(r,n,l,a,v/l,t),i&&(e.docView.minWidth=0,s|=8)}f>0&&g>0?c=Math.max(f,g):f<0&&g<0&&(c=Math.min(f,g)),o.heightChanged=!1;for(let n of this.viewports){let r=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(i?H8.empty().applyChanges(this.stateDeco,W1.empty,this.heightOracle,[new k5(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,i,new N8(n.from,r))}o.heightChanged&&(s|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&s||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),o=this.heightMap,r=this.heightOracle,{visibleTop:i,visibleBottom:l}=this,a=new t6(o.lineAt(i-1e3*n,Q8.ByHeight,r,0,0).from,o.lineAt(l+1e3*(1-n),Q8.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(ea.to){let n,i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),l=o.lineAt(e,Q8.ByPos,r,0,0);n="center"==t.y?(l.top+l.bottom)/2-i/2:"start"==t.y||"nearest"==t.y&&e=l+Math.max(10,Math.min(n,250)))&&o>i-2e3&&r>1,i=o<<1;if(this.defaultTextDirection!=T5.LTR&&!n)return[];let l=[],a=(o,i,s,c)=>{if(i-oo&&ee.from>=s.from&&e.to<=s.to&&Math.abs(e.from-o)e.fromt))));if(!p){if(ie.from<=i&&e.to>=i))){let e=t.moveToLineBoundary(S2.cursor(i),!1,!0).head;e>o&&(i=e)}p=new q8(o,i,this.gapSize(s,o,i,c))}l.push(p)};for(let s of this.viewportLines){if(s.lengths.from&&a(s.from,t,s,e),re.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];y3.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||a6(this.heightMap.lineAt(e,Q8.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return a6(this.heightMap.lineAt(this.scaler.fromDOM(e),Q8.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return a6(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class t6{constructor(e,t){this.from=e,this.to=t}}function n6(e,t,n){let o=[],r=e,i=0;return y3.spans(n,e,t,{span(){},point(e,t){e>r&&(o.push({from:r,to:e}),i+=e-r),r=t}},20),r=1)return t[t.length-1].to;let o=Math.floor(e*n);for(let r=0;;r++){let{from:e,to:n}=t[r],i=n-e;if(o<=i)return e+o;o-=i}}function r6(e,t){let n=0;for(let{from:o,to:r}of e.ranges){if(t<=r){n+=t-o;break}n+=r-o}return n/e.total}const i6={toDOM:e=>e,fromDOM:e=>e,scale:1};class l6{constructor(e,t,n){let o=0,r=0,i=0;this.viewports=n.map((({from:n,to:r})=>{let i=t.lineAt(n,Q8.ByPos,e,0,0).top,l=t.lineAt(r,Q8.ByPos,e,0,0).bottom;return o+=l-i,{from:n,to:r,top:i,bottom:l,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(t.height-o);for(let l of this.viewports)l.domTop=i+(l.top-r)*this.scale,i=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(e){for(let t=0,n=0,o=0;;t++){let r=ta6(e,t))):e._content)}const s6=C2.define({combine:e=>e.join(" ")}),c6=C2.define({combine:e=>e.indexOf(!0)>-1}),u6=B3.newName(),d6=B3.newName(),p6=B3.newName(),h6={"&light":"."+d6,"&dark":"."+p6};function f6(e,t,n){return new B3(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const g6=f6("."+u6,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},h6),m6="￿";class v6{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(h3.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=m6}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let o=e;;){this.findPointBefore(n,o);let e=this.text.length;this.readNode(o);let r=o.nextSibling;if(r==t)break;let i=p4.get(o),l=p4.get(r);(i&&l?i.breakAfter:(i?i.breakAfter:y6(o))||y6(r)&&("BR"!=o.nodeName||o.cmIgnore)&&this.text.length>e)&&this.lineBreak(),o=r}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let r,i=-1,l=1;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),l=this.lineSeparator.length):(r=o.exec(t))&&(i=r.index,l=r[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),l>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=l-1);n=i+l}}readNode(e){if(e.cmIgnore)return;let t=p4.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(b6(e,n.node,n.offset)?t:0))}}function b6(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=r||i?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new O6(n,o)),r==n&&i==o||t.push(new O6(r,i))),t}(e),n=new v6(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,o=2==e.length?e[1].pos:n;return n>-1&&o>-1?S2.single(n+t,o+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!Y3(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),o=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!Y3(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=S2.single(o,n)}}}function S6(e,t){let n,{newSel:o}=t,r=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,a=r.from,s=null;(8===i||T4.android&&t.text.length0&&a>0&&e.charCodeAt(l-1)==t.charCodeAt(a-1);)l--,a--;return"end"==o&&(n-=l+Math.max(0,i-Math.min(l,a))-i),l=l?i-n:0,a=i+(a-l),l=i):a=a?i-n:0,l=i+(l-a),a=i),{from:i,toA:l,toB:a}}(e.state.doc.sliceString(o,l,m6),t.text,a-o,s);c&&(T4.chrome&&13==i&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==m6+m6&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:W1.of(t.text.slice(c.from,c.toB).split(m6))})}else o&&(!e.hasFocus&&e.state.facet(p5)||o.main.eq(r))&&(o=null);if(!n&&!o)return!1;if(!n&&t.typeOver&&!r.empty&&o&&o.main.empty?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,r.to))}:(T4.mac||T4.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(o&&2==n.insert.length&&(o=S2.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:W1.of([" "])}):T4.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(o&&(o=S2.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:W1.of([" "])}),n){if(T4.ios&&e.inputState.flushIOSKey())return!0;if(T4.android&&(n.from==r.from&&n.to==r.to&&1==n.insert.length&&2==n.insert.lines&&a4(e.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&0==n.insert.length||8==i&&n.insert.lengthr.head)&&a4(e.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&a4(e.contentDOM,"Delete",46)))return!0;let t,l=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>t||(t=function(e,t,n){let o,r=e.state,i=r.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=i.fromt.to?r.sliceDoc(t.to,i.to):"";o=r.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let l=r.changes(t),a=n&&n.main.to<=l.newLength?n.main:void 0;if(r.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let s,c=e.state.sliceDoc(t.from,t.to),u=n&&Z5(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);s={from:u.from,to:u.to-e}}else s=e.state.doc.lineAt(i.head);let d=i.to-t.to,p=i.to-i.from;o=r.changeByRange((n=>{if(n.from==i.from&&n.to==i.to)return{changes:l,range:a||n.map(l)};let o=n.to-d,u=o-c.length;if(n.to-n.from!=p||e.state.sliceDoc(u,o)!=c||n.to>=s.from&&n.from<=s.to)return{range:n};let h=r.changes({from:u,to:o,insert:t.insert}),f=n.to-i.to;return{changes:h,range:a?S2.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):n.map(h)}}))}else o={changes:l,selection:a&&r.selection.replaceRange(a)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),r.update(o,{userEvent:l,scrollIntoView:!0})}(e,n,o));return e.state.facet(i5).some((t=>t(e,n.from,n.to,l,a)))||e.dispatch(a()),!0}if(o&&!o.main.eq(r)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n}),!0}return!1}const $6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},x6=T4.ie&&T4.ie_version<=11;class C6{constructor(e){this.view=e,this.active=!1,this.selectionRange=new n4,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(T4.ie&&T4.ie_version<=11||T4.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),x6&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(p5)?n.root.activeElement!=this.dom:!Z3(n.dom,o))return;let r=o.anchorNode&&n.docView.nearest(o.anchorNode);r&&r.ignoreEvent(e)?t||(this.selectionChanged=!1):(T4.ie&&T4.ie_version<=11||T4.android&&T4.chrome)&&!n.state.selection.main.empty&&o.focusNode&&U3(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=T4.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let o=t.startContainer,r=t.startOffset,i=t.endContainer,l=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return U3(a.node,a.offset,i,l)&&([o,r,i,l]=[i,l,o,r]),{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:l}}(this.view)||X3(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Z3(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&a4(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,o=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(o=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:o}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),o=this.selectionChanged&&Z3(this.dom,this.selectionRange);if(e<0&&!o)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new w6(this.view,e,t,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,o=S6(this.view,t);return this.view.state==n&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=k6(t,e.previousSibling||e.target.previousSibling,-1),o=k6(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:o?t.posBefore(o):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function k6(e,t,n){for(;t;){let o=p4.get(t);if(o&&o.parent==e)return o;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}class P6{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new e6(e.state||h3.create(e)),e.scrollTo&&e.scrollTo.is(u5)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(f5).map((e=>new m5(e)));for(let n of this.plugins)n.update(this);this.observer=new C6(this),this.inputState=new c8(this),this.inputState.ensureHandlers(this.plugins),this.docView=new X5(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof n3?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,o=!1,r=this.state;for(let d of e){if(d.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=d.state}if(this.destroyed)return void(this.viewState.state=r);let i=this.hasFocus,l=0,a=null;e.some((e=>e.annotation(A8)))?(this.inputState.notifiedFocused=i,l=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,a=D8(r,i),a||(l=1));let s=this.observer.delayedAndroidKey,c=null;if(s?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(h3.phrases)!=this.state.facet(h3.phrases))return this.setState(r);t=P5.create(this,r,e),t.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new c5(e.empty?e:S2.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(u5)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=I6.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(C5)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(s6)!=t.state.facet(s6)&&(this.viewState.mustMeasureContent=!0),(n||o||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let d of this.state.facet(r5))try{d(t)}catch(Eue){d5(this.state,Eue,"update listener")}(a||c)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!S6(this,c)&&s.force&&a4(this.contentDOM,s.key,s.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new e6(e),this.plugins=e.facet(f5).map((e=>new m5(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new X5(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(f5),n=e.state.facet(f5);if(t!=n){let o=[];for(let r of n){let n=t.indexOf(r);if(n<0)o.push(new m5(r));else{let t=this.plugins[n];t.mustUpdate=e,o.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:i}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(i<0)if(c4(n))r=-1,i=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(o);r=e.from,i=e.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5)break;let a=[];4&l||([this.measureRequests,a]=[a,this.measureRequests]);let s=a.map((e=>{try{return e.read(this)}catch(Eue){return d5(this.state,Eue),M6}})),c=P5.create(this,this.state,[]),u=!1;c.flags|=l,t?t.flags|=l:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c));for(let e=0;e1||e<-1){o+=e,n.scrollTop=o/this.scaleY,i=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(r5))l(t)}get themeClasses(){return u6+" "+(this.state.facet(c6)?p6:d6)+" "+this.state.facet(s6)}updateAttrs(){let e=E6(this,v5,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(p5)?"true":"false",class:"cm-content",style:`${T4.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),E6(this,b5,t);let n=this.observer.ignore((()=>{let n=_4(this.contentDOM,this.contentAttrs,t),o=_4(this.dom,this.editorAttrs,e);return n||o}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(P6.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(C5);let e=this.state.facet(P6.cspNonce);B3.mount(this.root,this.styleModules.concat(g6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return s8(this,e,l8(this,e,t,n))}moveByGroup(e,t){return s8(this,e,l8(this,e,t,(t=>function(e,t,n){let o=e.state.charCategorizer(t),r=o(n);return e=>{let t=o(e);return r==c3.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,o){let r=i8(e,t.head),i=o&&r.type==W4.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(i){let t=e.dom.getBoundingClientRect(),o=e.textDirectionAt(r.from),l=e.posAtCoords({x:n==(o==T5.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2});if(null!=l)return S2.cursor(l,n?-1:1)}return S2.cursor(n?r.to:r.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return s8(this,e,function(e,t,n,o){let r=t.head,i=n?1:-1;if(r==(n?e.state.doc.length:0))return S2.cursor(r,t.assoc);let l,a=t.goalColumn,s=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r,t.assoc||-1),u=e.documentTop;if(c)null==a&&(a=c.left-s.left),l=i<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(s.right-s.left,e.defaultCharacterWidth*(r-t.from))),l=(i<0?t.top:t.bottom)+u}let d=s.left+a,p=null!=o?o:e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let t=l+(p+h)*i,n=o8(e,{x:d,y:t},!1,i);if(ts.bottom||(i<0?nr)){let o=e.docView.coordsForChar(n),r=!o||t0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(a5)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>T6)return H5(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||N5(r.isolates,t=S5(this,e.from,e.to))))return r.order;t||(t=S5(this,e.from,e.to));let o=function(e,t,n){if(!e)return[new j5(0,0,t==I5?1:0)];if(t==M5&&!n.length&&!B5.test(e))return H5(e.length);if(n.length)for(;e.length>_5.length;)_5[_5.length]=256;let o=[],r=t==M5?0:1;return L5(e,r,r,n,0,e.length,o),o}(e.text,n,t);return this.bidiCache.push(new I6(e.from,e.to,n,t,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||T4.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{i4(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return u5.of(new c5("number"==typeof e?S2.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return u5.of(new c5(S2.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return g5.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return g5.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=B3.newName(),o=[s6.of(n),C5.of(f6(`.${n}`,e))];return t&&t.dark&&o.push(c6.of(!0)),o}static baseTheme(e){return N2.lowest(C5.of(f6("."+u6,e,h6)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),o=n&&p4.get(n)||p4.get(e);return(null===(t=null==o?void 0:o.rootView)||void 0===t?void 0:t.view)||null}}P6.styleModule=C5,P6.inputHandler=i5,P6.focusChangeEffect=l5,P6.perLineTextDirection=a5,P6.exceptionSink=o5,P6.updateListener=r5,P6.editable=p5,P6.mouseSelectionStyle=n5,P6.dragMovesSelection=t5,P6.clickAddsSelectionRange=e5,P6.decorations=y5,P6.atomicRanges=O5,P6.bidiIsolatedRanges=w5,P6.scrollMargins=$5,P6.darkTheme=c6,P6.cspNonce=C2.define({combine:e=>e.length?e[0]:""}),P6.contentAttributes=b5,P6.editorAttributes=v5,P6.lineWrapping=P6.contentAttributes.of({class:"cm-lineWrapping"}),P6.announce=t3.define();const T6=4096,M6={};class I6{constructor(e,t,n,o,r,i){this.from=e,this.to=t,this.dir=n,this.isolates=o,this.fresh=r,this.order=i}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],o=e.length?e[e.length-1].dir:T5.LTR;for(let r=Math.max(0,e.length-10);r=0;r--){let t=o[r],i="function"==typeof t?t(e):t;i&&B4(i,n)}return n}const A6=T4.mac?"mac":T4.windows?"win":T4.linux?"linux":"key";function D6(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const R6=N2.default(P6.domEventHandlers({keydown:(e,t)=>_6(j6(t.state),e,t,"editor")})),z6=C2.define({enables:R6}),B6=new WeakMap;function j6(e){let t=e.facet(z6),n=B6.get(t);return n||B6.set(t,n=function(e,t=A6){let n=Object.create(null),o=Object.create(null),r=(e,t)=>{let n=o[e];if(null==n)o[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},i=(e,o,i,l,a)=>{var s,c;let u=n[e]||(n[e]=Object.create(null)),d=o.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let o,r,i,l,a=n[n.length-1];"Space"==a&&(a=" ");for(let s=0;s{let o=N6={view:t,prefix:n,scope:e};return setTimeout((()=>{N6==o&&(N6=null)}),4e3),!0}]})}let p=d.join(" ");r(p,!1);let h=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(s=u._any)||void 0===s?void 0:s.run)||void 0===c?void 0:c.slice())||[]});i&&h.run.push(i),l&&(h.preventDefault=!0),a&&(h.stopPropagation=!0)};for(let l of e){let e=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(l.any)}let o=l[t]||l.key;if(o)for(let t of e)i(t,o,l.run,l.preventDefault,l.stopPropagation),l.shift&&i(t,"Shift-"+o,l.shift,l.preventDefault,l.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let N6=null;function _6(e,t,n,o){let r=function(e){var t=!(L3&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||H3&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Q3:_3)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),i=u2(s2(r,0))==r.length&&" "!=r,l="",a=!1,s=!1,c=!1;N6&&N6.view==n&&N6.scope==o&&(l=N6.prefix+" ",h8.indexOf(t.keyCode)<0&&(s=!0,N6=null));let u,d,p=new Set,h=e=>{if(e){for(let o of e.run)if(!p.has(o)&&(p.add(o),o(n,t)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),s=!0)}return!1},f=e[o];return f&&(h(f[l+D6(r,t,!i)])?a=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(T4.windows&&t.ctrlKey&&t.altKey)&&(u=_3[t.keyCode])&&u!=r?(h(f[l+D6(u,t,!0)])||t.shiftKey&&(d=Q3[t.keyCode])!=r&&d!=u&&h(f[l+D6(d,t,!1)]))&&(a=!0):i&&t.shiftKey&&h(f[l+D6(r,t,!0)])&&(a=!0),!a&&h(f._any)&&(a=!0)),s&&(a=!0),a&&c&&t.stopPropagation(),a}class Q6{constructor(e,t,n,o,r){this.className=e,this.left=t,this.top=n,this.width=o,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let o=e.coordsAtPos(n.head,n.assoc||1);if(!o)return[];let r=L6(e);return[new Q6(t,o.left-r.left,o.top-r.top,null,o.bottom-o.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let o=Math.max(n.from,e.viewport.from),r=Math.min(n.to,e.viewport.to),i=e.textDirection==T5.LTR,l=e.contentDOM,a=l.getBoundingClientRect(),s=L6(e),c=l.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=a.right-(u?parseInt(u.paddingRight):0),h=i8(e,o),f=i8(e,r),g=h.type==W4.Text?h:null,m=f.type==W4.Text?f:null;if(g&&(e.lineWrapping||h.widgetLineBreaks)&&(g=H6(e,o,g)),m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=H6(e,r,m)),g&&m&&g.from==m.from)return b(y(n.from,n.to,g));{let t=g?y(n.from,null,g):O(h,!1),o=m?y(null,n.to,m):O(f,!0),r=[];return(g||h).to<(m||f).from-(g&&m?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2c&&i.from=r)break;a>o&&s(Math.max(e,o),null==t&&e<=c,Math.min(a,r),null==n&&a>=u,l.dir)}if(o=i.to+1,o>=r)break}return 0==a.length&&s(c,null==t,u,null==n,e.textDirection),{top:r,bottom:l,horizontal:a}}function O(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function L6(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==T5.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function H6(e,t,n){let o=S2.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(o,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(o,!0,!0).from),type:W4.Text}}class F6{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(W6)!=e.state.facet(W6)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(W6);for(;t{return n=e,o=this.drawn[t],!(n.constructor==o.constructor&&n.eq(o));var n,o}))){let t=this.dom.firstChild,n=0;for(let o of e)o.update&&t&&o.constructor&&this.drawn[n].constructor&&o.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(o.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const W6=C2.define();function X6(e){return[g5.define((t=>new F6(t,e))),W6.of(e)]}const Y6=!T4.ios,Z6=C2.define({combine:e=>f3(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function V6(e={}){return[Z6.of(e),K6,q6,e7,s5.of(!0)]}function U6(e){return e.startState.facet(Z6)!=e.state.facet(Z6)}const K6=X6({above:!0,markers(e){let{state:t}=e,n=t.facet(Z6),o=[];for(let r of t.selection.ranges){let i=r==t.selection.main;if(r.empty?!i||Y6:n.drawRangeCursor){let t=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=r.empty?r:S2.cursor(r.head,r.head>r.anchor?-1:1);for(let r of Q6.forRange(e,t,n))o.push(r)}}return o},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=U6(e);return n&&G6(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){G6(t.state,e)},class:"cm-cursorLayer"});function G6(e,t){t.style.animationDuration=e.facet(Z6).cursorBlinkRate+"ms"}const q6=X6({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:Q6.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||U6(e),class:"cm-selectionLayer"}),J6={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Y6&&(J6[".cm-line"].caretColor="transparent !important",J6[".cm-content"]={caretColor:"transparent !important"});const e7=N2.highest(P6.theme(J6)),t7=t3.define({map:(e,t)=>null==e?null:t.mapPos(e)}),n7=A2.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(t7)?t.value:e),e))}),o7=g5.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(n7);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(n7)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(n7),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let o=e.scrollDOM.getBoundingClientRect();return{left:n.left-o.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-o.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(n7)!=e&&this.view.dispatch({effects:t7.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function r7(e,t,n,o,r){t.lastIndex=0;for(let i,l=e.iterRange(n,o),a=n;!l.next().done;a+=l.value.length)if(!l.lineBreak)for(;i=t.exec(l.value);)r(a+i.index,i)}class i7{constructor(e){const{regexp:t,decoration:n,decorate:o,boundary:r,maxLength:i=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,o)this.addMatch=(e,t,n,r)=>o(r,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,o,r)=>{let i=n(e,t,o);i&&r(o,o+e[0].length,i)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,o,r)=>r(o,o+e[0].length,n)}this.boundary=r,this.maxLength=i}createDeco(e){let t=new O3,n=t.add.bind(t);for(let{from:o,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let o=[];for(let{from:r,to:i}of n)r=Math.max(e.state.doc.lineAt(r).from,r-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),o.length&&o[o.length-1].to>=r?o[o.length-1].to=i:o.push({from:r,to:i});return o}(e,this.maxLength))r7(e.state.doc,this.regexp,o,r,((t,o)=>this.addMatch(o,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,o=-1;return e.docChanged&&e.changes.iterChanges(((t,r,i,l)=>{l>e.view.viewport.from&&i1e3?this.createDeco(e.view):o>-1?this.updateRange(e.view,t.map(e.changes),n,o):t}updateRange(e,t,n,o){for(let r of e.visibleRanges){let i=Math.max(r.from,n),l=Math.min(r.to,o);if(l>i){let n=e.state.doc.lineAt(i),o=n.ton.from;i--)if(this.boundary.test(n.text[i-1-n.from])){a=i;break}for(;lu.push(n.range(e,t));if(n==o)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,e,t,d)));t=t.update({filterFrom:a,filterTo:s,filter:(e,t)=>es,add:u})}}return t}}const l7=null!=/x/.unicode?"gu":"g",a7=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",l7),s7={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let c7=null;const u7=C2.define({combine(e){let t=f3(e,{render:null,specialChars:a7,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==c7&&"undefined"!=typeof document&&document.body){let t=document.body.style;c7=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return c7||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,l7)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,l7)),t}});function d7(e={}){return[u7.of(e),p7||(p7=g5.fromClass(class{constructor(e){this.view=e,this.decorations=X4.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(u7)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new i7({regexp:e.specialChars,decoration:(t,n,o)=>{let{doc:r}=n.state,i=s2(t[0],0);if(9==i){let e=r.lineAt(o),t=n.state.tabSize,i=E3(e.text,t,o-e.from);return X4.replace({widget:new f7((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=X4.replace({widget:new h7(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(u7);e.startState.facet(u7)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let p7=null;class h7 extends F4{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"•":10==n?"␤":String.fromCharCode(9216+n);var n;let o=e.state.phrase("Control character")+" "+(s7[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,o,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=o,i.setAttribute("aria-label",o),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class f7 extends F4{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const g7=X4.line({class:"cm-activeLine"}),m7=g5.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let o of e.state.selection.ranges){let r=e.lineBlockAt(o.head);r.from>t&&(n.push(g7.range(r.from)),t=r.from)}return X4.set(n)}},{decorations:e=>e.decorations});class v7 extends F4{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?V3(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),o=J3(t[0],"rtl"!=n.direction),r=parseInt(n.lineHeight);return o.bottom-o.top>1.5*r?{left:o.left,right:o.right,top:o.top,bottom:o.top+r}:o}ignoreEvent(){return!1}}const b7=2e3;function y7(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),o=e.state.doc.lineAt(n),r=n-o.from,i=r>b7?-1:r==o.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):E3(o.text,e.state.tabSize,n-o.from);return{line:o.number,col:i,off:r}}function O7(e,t){let n=y7(e,t),o=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},o=o.map(e.changes)}},get(t,r,i){let l=y7(e,t);if(!l)return o;let a=function(e,t,n){let o=Math.min(t.line,n.line),r=Math.max(t.line,n.line),i=[];if(t.off>b7||n.off>b7||t.col<0||n.col<0){let l=Math.min(t.off,n.off),a=Math.max(t.off,n.off);for(let t=o;t<=r;t++){let n=e.doc.line(t);n.length<=a&&i.push(S2.range(n.from+l,n.to+a))}}else{let l=Math.min(t.col,n.col),a=Math.max(t.col,n.col);for(let t=o;t<=r;t++){let n=e.doc.line(t),o=A3(n.text,l,e.tabSize,!0);if(o<0)i.push(S2.cursor(n.to));else{let t=A3(n.text,a,e.tabSize);i.push(S2.range(n.from+o,n.from+t))}}}return i}(e.state,n,l);return a.length?i?S2.create(a.concat(o.ranges)):S2.create(a):o}}:null}function w7(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return P6.mouseSelectionStyle.of(((e,n)=>t(n)?O7(e,n):null))}const S7={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},$7={style:"cursor: crosshair"};function x7(e={}){let[t,n]=S7[e.key||"Alt"],o=g5.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[o,P6.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.isDown)?$7:null}))]}const C7="-10000px";class k7{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e,t){var n;let o=e.state.facet(this.facet),r=o.filter((e=>e));if(o===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[],l=t?[]:null;for(let a=0;at[n]=e)),t.length=l.length),this.input=o,this.tooltips=r,this.tooltipViews=i,!0}}function P7(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const T7=C2.define({combine:e=>{var t,n,o;return{position:T4.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(o=e.find((e=>e.tooltipSpace)))||void 0===o?void 0:o.tooltipSpace)||P7}}}),M7=new WeakMap,I7=g5.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(T7);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new k7(e,D7,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,o=e.state.facet(T7);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=C7,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(e=n.destroy)||void 0===e||e.call(n);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(T4.gecko)o=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==C7&&"0px"==e.style.left){let t=e.getBoundingClientRect();o=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(o||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(T7).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:o}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:o,scaleX:r,scaleY:i}=e,l=[];for(let a=0;a=Math.min(n.bottom,o.bottom)||d.rightMath.min(n.right,o.right)+.1){u.style.top=C7;continue}let h=s.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,g=p.right-p.left,m=null!==(t=M7.get(c))&&void 0!==t?t:p.bottom-p.top,v=c.offset||A7,b=this.view.textDirection==T5.LTR,y=p.width>o.right-o.left?b?o.left:o.right-p.width:b?Math.min(d.left-(h?14:0)+v.x,o.right-g):Math.max(o.left,d.left-g+(h?14:0)-v.x),O=this.above[a];!s.strictSide&&(O?d.top-(p.bottom-p.top)-v.yo.bottom)&&O==o.bottom-d.bottom>d.top-o.top&&(O=this.above[a]=!O);let w=(O?d.top-o.top:o.bottom-d.bottom)-f;if(wy&&e.topS&&(S=O?e.top-m-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(S-e.parent.top)/i+"px",u.style.left=(y-e.parent.left)/r+"px"):(u.style.top=S/i+"px",u.style.left=y/r+"px"),h){let e=d.left+(b?v.x:-v.x)-(y+14-7);h.style.left=e/r+"px"}!0!==c.overlap&&l.push({left:y,top:S,right:$,bottom:S+m}),u.classList.toggle("cm-tooltip-above",O),u.classList.toggle("cm-tooltip-below",!O),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=C7}},{eventObservers:{scroll(){this.maybeMeasure()}}}),E7=P6.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),A7={x:0,y:0},D7=C2.define({enables:[I7,E7]}),R7=C2.define();class z7{static create(e){return new z7(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new k7(e,R7,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let o=n[e];if(void 0!==o)if(void 0===t)t=o;else if(t!==o)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const B7=D7.compute([R7],(e=>{let t=e.facet(R7).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:z7.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class j7{constructor(e,t,n,o,r){this.view=e,this.source=t,this.field=n,this.setHover=o,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let i=e.bidiSpans(e.state.doc.lineAt(o)).find((e=>e.from<=o&&e.to>=o)),l=i&&i.dir==T5.RTL?-1:1;r=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>d5(e.state,t,"hover tooltip")))}else i&&e.dispatch({effects:this.setHover.of(i)})}get tooltip(){let e=this.view.plugin(I7),t=e?e.manager.tooltips.findIndex((e=>e.create==z7.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n&&o&&!function(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-4&&t.clientX<=n.right+4&&t.clientY>=n.top-4&&t.clientY<=n.bottom+4}(o.dom,e)||this.pending){let{pos:o}=n||this.pending,r=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:o;(o==r?this.view.posAtCoords(this.lastMove)==o:function(e,t,n,o,r,i){let l=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(l.left>o||l.rightr||Math.min(l.bottom,a)=t&&s<=n}(this.view,o,r,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function N7(e,t={}){let n=t3.define(),o=A2.define({create:()=>null,update(e,o){if(e&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,e)))return null;if(e&&o.docChanged){let t=o.changes.mapPos(e.pos,-1,p2.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=o.changes.mapPos(e.end)),e=n}for(let t of o.effects)t.is(n)&&(e=t.value),t.is(Q7)&&(e=null);return e},provide:e=>R7.from(e)});return[o,g5.define((r=>new j7(r,e,o,n,t.hoverTime||300))),B7]}function _7(e,t){let n=e.plugin(I7);if(!n)return null;let o=n.manager.tooltips.indexOf(t);return o<0?null:n.manager.tooltipViews[o]}const Q7=t3.define(),L7=C2.define({combine(e){let t,n;for(let o of e)t=t||o.topContainer,n=n||o.bottomContainer;return{topContainer:t,bottomContainer:n}}});function H7(e,t){let n=e.plugin(F7),o=n?n.specs.indexOf(t):-1;return o>-1?n.panels[o]:null}const F7=g5.fromClass(class{constructor(e){this.input=e.state.facet(Y7),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(L7);this.top=new W7(e,!0,t.topContainer),this.bottom=new W7(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(L7);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new W7(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new W7(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Y7);if(n!=this.input){let t=n.filter((e=>e)),o=[],r=[],i=[],l=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),l.push(t)):(t=this.panels[a],t.update&&t.update(e)),o.push(t),(t.top?r:i).push(t)}this.specs=t,this.panels=o,this.top.sync(r),this.bottom.sync(i);for(let e of l)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let o of this.panels)o.update&&o.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>P6.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class W7{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=X7(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=X7(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function X7(e){let t=e.nextSibling;return e.remove(),t}const Y7=C2.define({enables:F7});class Z7 extends g3{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Z7.prototype.elementClass="",Z7.prototype.toDOM=void 0,Z7.prototype.mapMode=p2.TrackBefore,Z7.prototype.startSide=Z7.prototype.endSide=-1,Z7.prototype.point=!0;const V7=C2.define(),U7={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>y3.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},K7=C2.define();function G7(e){return[J7(),K7.of(Object.assign(Object.assign({},U7),e))]}const q7=C2.define({combine:e=>e.some((e=>e))});function J7(e){let t=[e9];return e&&!1===e.fixed&&t.push(q7.of(!0)),t}const e9=g5.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(K7).map((t=>new r9(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(q7),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,o=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(o<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(q7)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=y3.iter(this.view.state.facet(V7),this.view.viewport.from),o=[],r=this.gutters.map((e=>new o9(e,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(i.type)){let e=!0;for(let t of i.type)if(t.type==W4.Text&&e){n9(n,o,t.from);for(let e of r)e.line(this.view,t,o);e=!1}else if(t.widget)for(let e of r)e.widget(this.view,t)}else if(i.type==W4.Text){n9(n,o,i.from);for(let e of r)e.line(this.view,i,o)}else if(i.widget)for(let e of r)e.widget(this.view,i);for(let i of r)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(K7),n=e.state.facet(K7),o=e.docChanged||e.heightChanged||e.viewportChanged||!y3.eq(e.startState.facet(V7),e.state.facet(V7),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(o=!0);else{o=!0;let r=[];for(let o of n){let n=t.indexOf(o);n<0?r.push(new r9(this.view,o)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return o}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>P6.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==T5.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function t9(e){return Array.isArray(e)?e:[e]}function n9(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class o9{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=y3.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:o}=this,r=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==o.elements.length){let t=new i9(e,i,r,n);o.elements.push(t),o.dom.appendChild(t.dom)}else o.elements[this.i].update(e,i,r,n);this.height=t.bottom,this.i++}line(e,t,n){let o=[];n9(this.cursor,o,t.from),n.length&&(o=o.concat(n));let r=this.gutter.config.lineMarker(e,t,o);r&&o.unshift(r);let i=this.gutter;(0!=o.length||i.config.renderEmptyElements)&&this.addElement(e,t,o)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class r9{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(o=>{let r,i=o.target;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=o.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[n](e,l,o)&&o.preventDefault()}));this.markers=t9(t.markers(e)),t.initialSpacer&&(this.spacer=new i9(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=t9(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!y3.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class i9{constructor(e,t,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,o)}update(e,t,n,o){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nf3(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let o in t){let e=n[o],r=t[o];n[o]=e?(t,n,o)=>e(t,n,o)||r(t,n,o):r}return n}})});class s9 extends Z7{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function c9(e,t){return e.state.facet(a9).formatNumber(t,e.state)}const u9=K7.compute([a9],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(l9),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new s9(c9(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(a9)!=e.state.facet(a9),initialSpacer:e=>new s9(c9(e,p9(e.state.doc.lines))),updateSpacer(e,t){let n=c9(t.view,p9(t.view.state.doc.lines));return n==e.number?e:new s9(n)},domEventHandlers:e.facet(a9).domEventHandlers})));function d9(e={}){return[a9.of(e),J7(),u9]}function p9(e){let t=9;for(;t{let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.head).from;r>n&&(n=r,t.push(h9.range(r)))}return y3.of(t)})),g9=1024;let m9=0,v9=class{constructor(e,t){this.from=e,this.to=t}};class b9{constructor(e={}){this.id=m9++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=w9.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}b9.closedBy=new b9({deserialize:e=>e.split(" ")}),b9.openedBy=new b9({deserialize:e=>e.split(" ")}),b9.group=new b9({deserialize:e=>e.split(" ")}),b9.contextHash=new b9({perNode:!0}),b9.lookAhead=new b9({perNode:!0}),b9.mounted=new b9({perNode:!0});class y9{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[b9.mounted.id]}}const O9=Object.create(null);class w9{constructor(e,t,n,o=0){this.name=e,this.props=t,this.id=n,this.flags=o}static define(e){let t=e.props&&e.props.length?Object.create(null):O9,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),o=new w9(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(o)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return o}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(b9.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let o of n.split(" "))t[o]=e[n];return e=>{for(let n=e.prop(b9.group),o=-1;o<(n?n.length:0);o++){let r=t[o<0?e.name:n[o]];if(r)return r}}}}w9.none=new w9("",Object.create(null),0,8);class S9{constructor(e){this.types=e;for(let t=0;t=t){let l=new D9(e.tree,e.overlay[0].from+i.from,-1,i);(r||(r=[o])).push(E9(l,t,n,!1))}}return r?N9(r):o}(this,e,t)}iterate(e){let{enter:t,leave:n,from:o=0,to:r=this.length}=e,i=e.mode||0,l=(i&C9.IncludeAnonymous)>0;for(let a=this.cursor(i|C9.IncludeAnonymous);;){let e=!1;if(a.from<=r&&a.to>=o&&(!l&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(l||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:W9(w9.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new P9(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new P9(w9.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:o,maxBufferLength:r=g9,reused:i=[],minRepeatType:l=o.types.length}=e,a=Array.isArray(n)?new T9(n,n.length):n,s=o.types,c=0,u=0;function d(e,t,n,b,y,O){let{id:w,start:S,end:$,size:x}=a,C=u;for(;x<0;){if(a.next(),-1==x){let t=i[w];return n.push(t),void b.push(S-e)}if(-3==x)return void(c=w);if(-4==x)return void(u=w);throw new RangeError(`Unrecognized record size: ${x}`)}let k,P,T=s[w],M=S-e;if($-S<=r&&(P=m(a.pos-t,y))){let t=new Uint16Array(P.size-P.skip),n=a.pos-P.size,r=t.length;for(;a.pos>n;)r=v(P.start,t,r);k=new M9(t,$-P.start,o),M=P.start-e}else{let e=a.pos-x;a.next();let t=[],n=[],o=w>=l?w:-1,i=0,s=$;for(;a.pos>e;)o>=0&&a.id==o&&a.size>=0?(a.end<=s-r&&(f(t,n,S,i,a.end,s,o,C),i=t.length,s=a.end),a.next()):O>2500?p(S,e,t,n):d(S,e,t,n,o,O+1);if(o>=0&&i>0&&i-1&&i>0){let e=h(T);k=W9(T,t,n,0,t.length,0,$-S,e,e)}else k=g(T,t,n,$-S,C-$)}n.push(k),b.push(M)}function p(e,t,n,i){let l=[],s=0,c=-1;for(;a.pos>t;){let{id:e,start:t,end:n,size:o}=a;if(o>4)a.next();else{if(c>-1&&t=0;e-=3)t[n++]=l[e],t[n++]=l[e+1]-r,t[n++]=l[e+2]-r,t[n++]=n;n.push(new M9(t,l[2]-r,o)),i.push(r-e)}}function h(e){return(t,n,o)=>{let r,i,l=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof P9){if(!a&&r.type==e&&r.length==o)return r;(i=r.prop(b9.lookAhead))&&(l=n[a]+r.length+i)}return g(e,t,n,o,l)}}function f(e,t,n,r,i,l,a,s){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-i);e.push(g(o.types[a],c,u,l-i,s-l)),t.push(i-n)}function g(e,t,n,o,r=0,i){if(c){let e=[b9.contextHash,c];i=i?[e].concat(i):[e]}if(r>25){let e=[b9.lookAhead,r];i=i?[e].concat(i):[e]}return new P9(e,t,n,o,i)}function m(e,t){let n=a.fork(),o=0,i=0,s=0,c=n.end-r,u={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=o,u.start=i,u.skip=s,s+=4,o+=4,n.next();continue}let a=n.pos-e;if(e<0||a=l?4:0,p=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=l&&(d+=4);n.next()}i=p,o+=e,s+=d}return(t<0||o==e)&&(u.size=o,u.start=i,u.skip=s),u.size>4?u:void 0}function v(e,t,n){let{id:o,start:r,end:i,size:s}=a;if(a.next(),s>=0&&o4){let o=a.pos-(s-4);for(;a.pos>o;)n=v(e,t,n)}t[--n]=l,t[--n]=i-e,t[--n]=r-e,t[--n]=o}else-3==s?c=o:-4==s&&(u=o);return n}let b=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,b,y,-1,0);let O=null!==(t=e.length)&&void 0!==t?t:b.length?y[0]+b[0].length:0;return new P9(s[e.topID],b.reverse(),y.reverse(),O)}(e)}}P9.empty=new P9(w9.none,[],[],0);class T9{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new T9(this.buffer,this.index)}}class M9{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return w9.none}toString(){let e=[];for(let t=0;t0));a=i[a+3]);return l}slice(e,t,n){let o=this.buffer,r=new Uint16Array(t-e),i=0;for(let l=e,a=0;l=t&&nt;case 1:return n<=t&&o>t;case 2:return o>t;case 4:return!0}}function E9(e,t,n,o){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?l.length:-1;e!=s;e+=t){let s=l[e],c=a[e]+i.from;if(I9(o,n,c,c+s.length))if(s instanceof M9){if(r&C9.ExcludeBuffers)continue;let l=s.findChild(0,s.buffer.length,t,n-c,o);if(l>-1)return new j9(new B9(i,s,e,c),null,l)}else if(r&C9.IncludeAnonymous||!s.type.isAnonymous||L9(s)){let l;if(!(r&C9.IgnoreMounts)&&(l=y9.get(s))&&!l.overlay)return new D9(l.tree,c,e,i);let a=new D9(s,c,e,i);return r&C9.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?s.children.length-1:0,t,n,o)}}if(r&C9.IncludeAnonymous||!i.type.isAnonymous)return null;if(e=i.index>=0?i.index+t:t<0?-1:i._parent._tree.children.length,i=i._parent,!i)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let o;if(!(n&C9.IgnoreOverlays)&&(o=y9.get(this._tree))&&o.overlay){let n=e-this.from;for(let{from:e,to:r}of o.overlay)if((t>0?e<=n:e=n:r>n))return new D9(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function R9(e,t,n,o){let r=e.cursor(),i=[];if(!r.firstChild())return i;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return i;for(;;){if(null!=o&&r.type.is(o))return i;if(r.type.is(t)&&i.push(r.node),!r.nextSibling())return null==o?i:[]}}function z9(e,t,n=t.length-1){for(let o=e.parent;n>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(t[n]&&t[n]!=o.name)return!1;n--}}return!0}class B9{constructor(e,t,n,o){this.parent=e,this.buffer=t,this.index=n,this.start=o}}class j9 extends A9{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new j9(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&C9.ExcludeBuffers)return null;let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new j9(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new j9(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new j9(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,o=this.index+4,r=n.buffer[this.index+3];if(r>o){let i=n.buffer[this.index+1];e.push(n.slice(o,r,i)),t.push(0)}return new P9(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function N9(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;in.from||o.to0){if(this.index-1)for(let o=t+e,r=e<0?-1:n._tree.children.length;o!=r;o+=e){let e=n._tree.children[o];if(this.mode&C9.IncludeAnonymous||e instanceof M9||!e.type.isAnonymous||L9(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let i=e;i;i=i._parent)if(i.index==o){if(o==this.index)return i;t=i,n=r+1;break e}o=this.stack[--r]}for(let o=n;o=0;r--){if(r<0)return z9(this.node,e,o);let i=n[t.buffer[this.stack[r]]];if(!i.isAnonymous){if(e[o]&&e[o]!=i.name)return!1;o--}}return!0}}function L9(e){return e.children.some((e=>e instanceof M9||!e.type.isAnonymous||L9(e)))}const H9=new WeakMap;function F9(e,t){if(!e.isAnonymous||t instanceof M9||t.type!=e)return 1;let n=H9.get(t);if(null==n){n=1;for(let o of t.children){if(o.type!=e||!(o instanceof P9)){n=1;break}n+=F9(e,o)}H9.set(t,n)}return n}function W9(e,t,n,o,r,i,l,a,s){let c=0;for(let h=o;h=u)break;f+=t}if(c==r+1){if(f>u){let e=n[r];t(e.children,e.positions,0,e.children.length,o[r]+a);continue}d.push(n[r])}else{let t=o[c-1]+n[c-1].length-h;d.push(W9(e,n,o,r,c,h,t,null,s))}p.push(h+a-i)}}(t,n,o,r,0),(a||s)(d,p,l)}class X9{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let o=this.map.get(e);o||this.map.set(e,o=new Map),o.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof j9?this.setBuffer(e.context.buffer,e.index,t):e instanceof D9&&this.map.set(e.tree,t)}get(e){return e instanceof j9?this.getBuffer(e.context.buffer,e.index):e instanceof D9?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Y9{constructor(e,t,n,o,r=!1,i=!1){this.from=e,this.to=t,this.tree=n,this.offset=o,this.open=(r?1:0)|(i?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let o=[new Y9(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&o.push(r);return o}static applyChanges(e,t,n=128){if(!t.length)return e;let o=[],r=1,i=e.length?e[0]:null;for(let l=0,a=0,s=0;;l++){let c=l=n)for(;i&&i.from=t.from||u<=t.to||s){let e=Math.max(t.from,a)-s,n=Math.min(t.to,u)-s;t=e>=n?null:new Y9(e,n,t.tree,t.offset+s,l>0,!!c)}if(t&&o.push(t),i.to>u)break;i=rnew v9(e.from,e.to))):[new v9(0,0)]:[new v9(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let o=this.startParse(e,t,n);for(;;){let e=o.advance();if(e)return e}}}class V9{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new b9({perNode:!0});let U9=0;class K9{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=U9++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new K9([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new q9;return t=>t.modified.indexOf(e)>-1?t:q9.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let G9=0;class q9{constructor(){this.instances=[],this.id=G9++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(o=t,r=n.modified,o.length==r.length&&o.every(((e,t)=>e==r[t])));var o,r}));if(n)return n;let o=[],r=new K9(o,e,t);for(let l of t)l.instances.push(r);let i=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let l of e.set)if(!l.modified.length)for(let e of i)o.push(q9.get(l,e));return r}}function J9(e){let t=Object.create(null);for(let n in e){let o=e[n];Array.isArray(o)||(o=[o]);for(let e of n.split(" "))if(e){let n=[],r=2,i=e;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){r=1;break}let o=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i);if(!o)throw new RangeError("Invalid path: "+e);if(n.push("*"==o[0]?"":'"'==o[0][0]?JSON.parse(o[0]):o[0]),t+=o[0].length,t==e.length)break;let l=e[t++];if(t==e.length&&"!"==l){r=0;break}if("/"!=l)throw new RangeError("Invalid path: "+e);i=e.slice(t)}let l=n.length-1,a=n[l];if(!a)throw new RangeError("Invalid path: "+e);let s=new tee(o,r,l>0?n.slice(0,l):null);t[a]=s.sort(t[a])}}return eee.add(t)}const eee=new b9;class tee{constructor(e,t,n,o){this.tags=e,this.mode=t,this.context=n,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=r;for(let o of e)for(let e of o.set){let o=n[e.id];if(o){t=t?t+" "+o:o;break}}return t},scope:o}}function oee(e,t,n,o=0,r=e.length){let i=new ree(o,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),o,r,"",i.highlighters),i.flush(r)}tee.empty=new tee([],2,null);class ree{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,r){let{type:i,from:l,to:a}=e;if(l>=n||a<=t)return;i.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(i))));let s=o,c=function(e){let t=e.type.prop(eee);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||tee.empty,u=function(e,t){let n=null;for(let o of e){let e=o.style(t);e&&(n=n?n+" "+e:e)}return n}(r,c.tags);if(u&&(s&&(s+=" "),s+=u,1==c.mode&&(o+=(o?" ":"")+u)),this.startSpan(Math.max(t,l),s),c.opaque)return;let d=e.tree&&e.tree.prop(b9.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+l,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let p=0,h=l;;p++){let f=p=g)&&e.nextSibling()););if(!f||g>n)break;h=f.to+l,h>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+l),Math.min(n,h),"",c),this.startSpan(Math.min(n,h),s))}u&&e.parent()}else if(e.firstChild()){d&&(o="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,r),this.startSpan(Math.min(n,e.to),s)}}while(e.nextSibling());e.parent()}}}const iee=K9.define,lee=iee(),aee=iee(),see=iee(aee),cee=iee(aee),uee=iee(),dee=iee(uee),pee=iee(uee),hee=iee(),fee=iee(hee),gee=iee(),mee=iee(),vee=iee(),bee=iee(vee),yee=iee(),Oee={comment:lee,lineComment:iee(lee),blockComment:iee(lee),docComment:iee(lee),name:aee,variableName:iee(aee),typeName:see,tagName:iee(see),propertyName:cee,attributeName:iee(cee),className:iee(aee),labelName:iee(aee),namespace:iee(aee),macroName:iee(aee),literal:uee,string:dee,docString:iee(dee),character:iee(dee),attributeValue:iee(dee),number:pee,integer:iee(pee),float:iee(pee),bool:iee(uee),regexp:iee(uee),escape:iee(uee),color:iee(uee),url:iee(uee),keyword:gee,self:iee(gee),null:iee(gee),atom:iee(gee),unit:iee(gee),modifier:iee(gee),operatorKeyword:iee(gee),controlKeyword:iee(gee),definitionKeyword:iee(gee),moduleKeyword:iee(gee),operator:mee,derefOperator:iee(mee),arithmeticOperator:iee(mee),logicOperator:iee(mee),bitwiseOperator:iee(mee),compareOperator:iee(mee),updateOperator:iee(mee),definitionOperator:iee(mee),typeOperator:iee(mee),controlOperator:iee(mee),punctuation:vee,separator:iee(vee),bracket:bee,angleBracket:iee(bee),squareBracket:iee(bee),paren:iee(bee),brace:iee(bee),content:hee,heading:fee,heading1:iee(fee),heading2:iee(fee),heading3:iee(fee),heading4:iee(fee),heading5:iee(fee),heading6:iee(fee),contentSeparator:iee(hee),list:iee(hee),quote:iee(hee),emphasis:iee(hee),strong:iee(hee),link:iee(hee),monospace:iee(hee),strikethrough:iee(hee),inserted:iee(),deleted:iee(),changed:iee(),invalid:iee(),meta:yee,documentMeta:iee(yee),annotation:iee(yee),processingInstruction:iee(yee),definition:K9.defineModifier(),constant:K9.defineModifier(),function:K9.defineModifier(),standard:K9.defineModifier(),local:K9.defineModifier(),special:K9.defineModifier()};var wee;nee([{tag:Oee.link,class:"tok-link"},{tag:Oee.heading,class:"tok-heading"},{tag:Oee.emphasis,class:"tok-emphasis"},{tag:Oee.strong,class:"tok-strong"},{tag:Oee.keyword,class:"tok-keyword"},{tag:Oee.atom,class:"tok-atom"},{tag:Oee.bool,class:"tok-bool"},{tag:Oee.url,class:"tok-url"},{tag:Oee.labelName,class:"tok-labelName"},{tag:Oee.inserted,class:"tok-inserted"},{tag:Oee.deleted,class:"tok-deleted"},{tag:Oee.literal,class:"tok-literal"},{tag:Oee.string,class:"tok-string"},{tag:Oee.number,class:"tok-number"},{tag:[Oee.regexp,Oee.escape,Oee.special(Oee.string)],class:"tok-string2"},{tag:Oee.variableName,class:"tok-variableName"},{tag:Oee.local(Oee.variableName),class:"tok-variableName tok-local"},{tag:Oee.definition(Oee.variableName),class:"tok-variableName tok-definition"},{tag:Oee.special(Oee.variableName),class:"tok-variableName2"},{tag:Oee.definition(Oee.propertyName),class:"tok-propertyName tok-definition"},{tag:Oee.typeName,class:"tok-typeName"},{tag:Oee.namespace,class:"tok-namespace"},{tag:Oee.className,class:"tok-className"},{tag:Oee.macroName,class:"tok-macroName"},{tag:Oee.propertyName,class:"tok-propertyName"},{tag:Oee.operator,class:"tok-operator"},{tag:Oee.comment,class:"tok-comment"},{tag:Oee.meta,class:"tok-meta"},{tag:Oee.invalid,class:"tok-invalid"},{tag:Oee.punctuation,class:"tok-punctuation"}]);const See=new b9;function $ee(e){return C2.define({combine:e?t=>t.concat(e):void 0})}const xee=new b9;class Cee{constructor(e,t,n=[],o=""){this.data=e,this.name=o,h3.prototype.hasOwnProperty("tree")||Object.defineProperty(h3.prototype,"tree",{get(){return Tee(this)}}),this.parser=t,this.extension=[jee.of(this),h3.languageData.of(((e,t,n)=>{let o=kee(e,t,n),r=o.type.prop(See);if(!r)return[];let i=e.facet(r),l=o.type.prop(xee);if(l){let r=o.resolve(t-o.from,n);for(let t of l)if(t.test(r,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(e,t,n=-1){return kee(e,t,n).type.prop(See)==this.data}findRegions(e){let t=e.facet(jee);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],o=(e,t)=>{if(e.prop(See)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(b9.mounted);if(r){if(r.tree.prop(See)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(o(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new Pee(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Tee(e){let t=e.field(Cee.state,!1);return t?t.tree:P9.empty}class Mee{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Iee=null;class Eee{constructor(e,t,n=[],o,r,i,l,a){this.parser=e,this.state=t,this.fragments=n,this.tree=o,this.treeLen=r,this.viewport=i,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Eee(e,t,[],P9.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Mee(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=P9.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Y9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Iee;Iee=this;try{return e()}finally{Iee=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Aee(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:o,treeLen:r,viewport:i,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,o,r)=>t.push({fromA:e,toA:n,fromB:o,toB:r}))),n=Y9.applyChanges(n,t),o=P9.empty,r=0,i={from:e.mapPos(i.from,-1),to:e.mapPos(i.to,1)},this.skipped.length){l=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),o=e.mapPos(t.to,-1);ne.from&&(this.fragments=Aee(this.fragments,t,o),this.skipped.splice(n--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Z9{createParse(t,n,o){let r=o[0].from,i=o[o.length-1].to;return{parsedPos:r,advance(){let t=Iee;if(t){for(let e of o)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=i,new P9(w9.none,[],[],i-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Iee}}function Aee(e,t,n){return Y9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Dee{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Dee(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Eee.create(e.facet(jee).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Dee(n)}}Cee.state=A2.define({create:Dee.init,update(e,t){for(let n of t.effects)if(n.is(Cee.setState))return n.value;return t.startState.facet(jee)!=t.state.facet(jee)?Dee.init(t.state):e.apply(t)}});let Ree=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Ree=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const zee="undefined"!=typeof navigator&&(null===(wee=navigator.scheduling)||void 0===wee?void 0:wee.isInputPending)?()=>navigator.scheduling.isInputPending():null,Bee=g5.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Cee.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Cee.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Ree(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndo+1e3,a=r.context.work((()=>zee&&zee()||Date.now()>i),o+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Cee.setState.of(new Dee(r.context))})),this.chunkBudget>0&&(!a||l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>d5(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),jee=C2.define({combine:e=>e.length?e[0]:null,enables:e=>[Cee.state,Bee,P6.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class Nee{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const _ee=C2.define(),Qee=C2.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Lee(e){let t=e.facet(Qee);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Hee(e,t){let n="",o=e.tabSize,r=e.facet(Qee)[0];if("\t"==r){for(;t>=o;)n+="\t",t-=o;r=" "}for(let i=0;i=t?function(e,t,n){let o=t.resolveStack(n),r=o.node.enterUnfinishedNodesBefore(n);if(r!=o.node){let e=[];for(let t=r;t!=o.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)o={node:e[t],next:o}}return Yee(o,e,n)}(e,n,t):null}class Wee{constructor(e,t={}){this.state=e,this.options=t,this.unit=Lee(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:o,simulateDoubleBreak:r}=this.options;return null!=o&&o>=n.from&&o<=n.to?r&&o==e?{text:"",from:e}:(t<0?o-1&&(r+=i-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return E3(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:o}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(o);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Xee=new b9;function Yee(e,t,n){for(let o=e;o;o=o.next){let e=Zee(o.node);if(e)return e(Uee.create(t,n,o))}return 0}function Zee(e){let t=e.type.prop(Xee);if(t)return t;let n,o=e.firstChild;if(o&&(n=o.type.prop(b9.closedBy))){let t=e.lastChild,o=t&&n.indexOf(t.name)>-1;return e=>qee(e,!0,1,void 0,o&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Vee:null}function Vee(){return 0}class Uee extends Wee{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Uee(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(Kee(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Yee(this.context.next,this.base,this.pos)}}function Kee(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Gee({closing:e,align:t=!0,units:n=1}){return o=>qee(o,t,n,e)}function qee(e,t,n,o,r){let i=e.textAfter,l=i.match(/^\s*/)[0].length,a=o&&i.slice(l,l+o.length)==o||r==e.pos+l,s=t?function(e){let t=e.node,n=t.childAfter(t.from),o=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),l=null==r||r<=i.from?i.to:Math.min(i.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==o)return null;if(!e.type.isSkipped)return e.from{let o=e&&e.test(n.textAfter);return n.baseIndent+(o?0:t*n.unit)}}const ete=C2.define(),tte=new b9;function nte(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function ote(e,t,n){for(let o of e.facet(ete)){let r=o(e,t,n);if(r)return r}return function(e,t,n){let o=Tee(e);if(o.lengthn)continue;if(r&&l.from=t&&o.to>n&&(r=o)}}return r}(e,t,n)}function rte(e,t){let n=t.mapPos(e.from,1),o=t.mapPos(e.to,-1);return n>=o?void 0:{from:n,to:o}}const ite=t3.define({map:rte}),lte=t3.define({map:rte});function ate(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ste=A2.define({create:()=>X4.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(ite)&&!ute(e,n.value.from,n.value.to)){let{preparePlaceholder:o}=t.state.facet(gte),r=o?X4.replace({widget:new yte(o(t.state,n.value))}):bte;e=e.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(lte)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:o}=t.selection.main;e.between(o,o,((e,t)=>{eo&&(n=!0)})),n&&(e=e.update({filterFrom:o,filterTo:o,filter:(e,t)=>t<=o||e>=o}))}return e},provide:e=>P6.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!r||r.from>e)&&(r={from:e,to:t})})),r}function ute(e,t,n){let o=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(o=!0)})),o}function dte(e,t){return e.field(ste,!1)?t:t.concat(t3.appendConfig.of(mte()))}function pte(e,t,n=!0){let o=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return P6.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${o} ${e.state.phrase("to")} ${r}.`)}const hte=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of ate(e)){let n=ote(e.state,t.from,t.to);if(n)return e.dispatch({effects:dte(e.state,[ite.of(n),pte(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ste,!1))return!1;let t=[];for(let n of ate(e)){let o=cte(e.state,n.from,n.to);o&&t.push(lte.of(o),pte(e,o,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let o=0;o{let t=e.state.field(ste,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(lte.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],fte={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},gte=C2.define({combine:e=>f3(e,fte)});function mte(e){let t=[ste,$te];return e&&t.push(gte.of(e)),t}function vte(e,t){let{state:n}=e,o=n.facet(gte),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),o=cte(e.state,n.from,n.to);o&&e.dispatch({effects:lte.of(o)}),t.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(e,r,t);let i=document.createElement("span");return i.textContent=o.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}const bte=X4.replace({widget:new class extends F4{toDOM(e){return vte(e,null)}}});class yte extends F4{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return vte(e,this.value)}}const Ote={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class wte extends Z7{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Ste(e={}){let t=Object.assign(Object.assign({},Ote),e),n=new wte(t,!0),o=new wte(t,!1),r=g5.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(jee)!=e.state.facet(jee)||e.startState.field(ste,!1)!=e.state.field(ste,!1)||Tee(e.startState)!=Tee(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new O3;for(let r of e.viewportLineBlocks){let i=cte(e.state,r.from,r.to)?o:ote(e.state,r.from,r.to)?n:null;i&&t.add(r.from,r.from,i)}return t.finish()}}),{domEventHandlers:i}=t;return[r,G7({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||y3.empty},initialSpacer:()=>new wte(t,!1),domEventHandlers:Object.assign(Object.assign({},i),{click:(e,t,n)=>{if(i.click&&i.click(e,t,n))return!0;let o=cte(e.state,t.from,t.to);if(o)return e.dispatch({effects:lte.of(o)}),!0;let r=ote(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:ite.of(r)}),!0)}})}),mte()]}const $te=P6.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class xte{constructor(e,t){let n;function o(e){let t=B3.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?o(t.all):void 0,i=t.scope;this.scope=i instanceof Cee?e=>e.prop(See)==i.data:i?e=>e==i:void 0,this.style=nee(e.map((e=>({tag:e.tag,class:e.class||o(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new B3(n):null,this.themeType=t.themeType}static define(e,t){return new xte(e,t||{})}}const Cte=C2.define(),kte=C2.define({combine:e=>e.length?[e[0]]:null});function Pte(e){let t=e.facet(Cte);return t.length?t:e.facet(kte)}function Tte(e,t){let n,o=[Ite];return e instanceof xte&&(e.module&&o.push(P6.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?o.push(kte.of(e)):n?o.push(Cte.computeN([P6.darkTheme],(t=>t.facet(P6.darkTheme)==("dark"==n)?[e]:[]))):o.push(Cte.of(e)),o}class Mte{constructor(e){this.markCache=Object.create(null),this.tree=Tee(e.state),this.decorations=this.buildDeco(e,Pte(e.state))}update(e){let t=Tee(e.state),n=Pte(e.state),o=n!=Pte(e.startState);t.length{n.add(e,t,this.markCache[o]||(this.markCache[o]=X4.mark({class:o})))}),o,r);return n.finish()}}const Ite=N2.high(g5.fromClass(Mte,{decorations:e=>e.decorations})),Ete=xte.define([{tag:Oee.meta,color:"#404740"},{tag:Oee.link,textDecoration:"underline"},{tag:Oee.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Oee.emphasis,fontStyle:"italic"},{tag:Oee.strong,fontWeight:"bold"},{tag:Oee.strikethrough,textDecoration:"line-through"},{tag:Oee.keyword,color:"#708"},{tag:[Oee.atom,Oee.bool,Oee.url,Oee.contentSeparator,Oee.labelName],color:"#219"},{tag:[Oee.literal,Oee.inserted],color:"#164"},{tag:[Oee.string,Oee.deleted],color:"#a11"},{tag:[Oee.regexp,Oee.escape,Oee.special(Oee.string)],color:"#e40"},{tag:Oee.definition(Oee.variableName),color:"#00f"},{tag:Oee.local(Oee.variableName),color:"#30a"},{tag:[Oee.typeName,Oee.namespace],color:"#085"},{tag:Oee.className,color:"#167"},{tag:[Oee.special(Oee.variableName),Oee.macroName],color:"#256"},{tag:Oee.definition(Oee.propertyName),color:"#00c"},{tag:Oee.comment,color:"#940"},{tag:Oee.invalid,color:"#f00"}]),Ate=P6.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Dte="()[]{}",Rte=C2.define({combine:e=>f3(e,{afterCursor:!0,brackets:Dte,maxScanDistance:1e4,renderMatch:jte})}),zte=X4.mark({class:"cm-matchingBracket"}),Bte=X4.mark({class:"cm-nonmatchingBracket"});function jte(e){let t=[],n=e.matched?zte:Bte;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Nte=[A2.define({create:()=>X4.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],o=t.state.facet(Rte);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=Fte(t.state,r.head,-1,o)||r.head>0&&Fte(t.state,r.head-1,1,o)||o.afterCursor&&(Fte(t.state,r.head,1,o)||r.headP6.decorations.from(e)}),Ate];function _te(e={}){return[Rte.of(e),Nte]}const Qte=new b9;function Lte(e,t,n){let o=e.prop(t<0?b9.openedBy:b9.closedBy);if(o)return o;if(1==e.name.length){let o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function Hte(e){let t=e.type.prop(Qte);return t?t(e.node):e}function Fte(e,t,n,o={}){let r=o.maxScanDistance||1e4,i=o.brackets||Dte,l=Tee(e),a=l.resolveInner(t,n);for(let s=a;s;s=s.parent){let e=Lte(s.type,n,i);if(e&&s.from0?t>=o.from&&to.from&&t<=o.to))return Wte(0,0,n,s,o,e,i)}}return function(e,t,n,o,r,i,l){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),s=l.indexOf(a);if(s<0||s%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!u.next().done&&p<=i;){let e=u.value;n<0&&(p+=e.length);let i=t+p*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=l.indexOf(e[t]);if(!(a<0||o.resolveInner(i+t,1).type!=r))if(a%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:i+t,to:i+t+1},matched:a>>1==s>>1};d--}}n>0&&(p+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,l,a.type,r,i)}function Wte(e,t,n,o,r,i,l){let a=o.parent,s={from:r.from,to:r.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(o.from):u.childAfter(o.to)))do{if(n<0?u.to<=o.from:u.from>=o.to){if(0==c&&i.indexOf(u.type.name)>-1&&u.from-1||Zte.push(e)}function Gte(e,t){let n=[];for(let a of t.split(" ")){let t=[];for(let n of a.split(".")){let o=e[n]||Oee[n];o?"function"==typeof o?t.length?t=t.map(o):Kte(n):t.length?Kte(n):t=Array.isArray(o)?o:[o]:Kte(n)}for(let e of t)n.push(e)}if(!n.length)return 0;let o=t.replace(/ /g,"_"),r=o+" "+n.map((e=>e.id)),i=Vte[r];if(i)return i.id;let l=Vte[r]=w9.define({id:Yte.length,name:o,props:[J9({[o]:n})]});return Yte.push(l),l.id}function qte(e,t){return({state:n,dispatch:o})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(o(n.update(r)),!0)}}const Jte=qte(rne,0),ene=qte(one,0),tne=qte(((e,t)=>one(e,t,function(e){let t=[];for(let n of e.selection.ranges){let o=e.doc.lineAt(n.from),r=n.to<=o.to?o:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>o.from?t[i].to=r.to:t.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:r.to})}return t}(t))),0);function nne(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function one(e,t,n=t.selection.ranges){let o=n.map((e=>nne(t,e.from).block));if(!o.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},o,r){let i,l,a=e.sliceDoc(o-50,o),s=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(s)[0].length,d=a.length-c;if(a.slice(d-t.length,d)==t&&s.slice(u,u+n.length)==n)return{open:{pos:o-c,margin:c&&1},close:{pos:r+u,margin:u&&1}};r-o<=100?i=l=e.sliceDoc(o,r):(i=e.sliceDoc(o,o+50),l=e.sliceDoc(r-50,r));let p=/^\s*/.exec(i)[0].length,h=/\s*$/.exec(l)[0].length,f=l.length-h-n.length;return i.slice(p,p+t.length)==t&&l.slice(f,f+n.length)==n?{open:{pos:o+p+t.length,margin:/\s/.test(i.charAt(p+t.length))?1:0},close:{pos:r-h-n.length,margin:/\s/.test(l.charAt(f-1))?1:0}}:null}(t,o[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:o[t].open+" "},{from:e.to,insert:" "+o[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;nr&&(i==l||l>s.from)){r=s.from;let e=/^\s*/.exec(s.text)[0].length,t=e==s.length,i=s.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:i,empty:l,single:a}of o)!a&&l||e.push({from:t.from+i,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&o.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of o)if(n>=0){let o=t.from+n,i=o+r.length;" "==t.text[i-t.from]&&i++,e.push({from:o,to:i})}return{changes:e}}return null}const ine=q2.define(),lne=q2.define(),ane=C2.define(),sne=C2.define({combine:e=>f3(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,o)=>e(n,o)||t(n,o)})}),cne=A2.define({create:()=>Cne.empty,update(e,t){let n=t.state.facet(sne),o=t.annotation(ine);if(o){let r=mne.fromTransaction(t,o.selection),i=o.side,l=0==i?e.undone:e.done;return l=r?vne(l,l.length,n.minDepth,r):One(l,t.startState.selection),new Cne(0==i?o.rest:l,0==i?l:o.rest)}let r=t.annotation(lne);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(n3.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let i=mne.fromTransaction(t),l=t.annotation(n3.time),a=t.annotation(n3.userEvent);return i?e=e.addChanges(i,l,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,a,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Cne(e.done.map(mne.fromJSON),e.undone.map(mne.fromJSON))});function une(e={}){return[cne,sne.of(e),P6.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?pne:"historyRedo"==e.inputType?hne:null;return!!n&&(e.preventDefault(),n(t))}})]}function dne(e,t){return function({state:n,dispatch:o}){if(!t&&n.readOnly)return!1;let r=n.field(cne,!1);if(!r)return!1;let i=r.pop(e,n,t);return!!i&&(o(i),!0)}}const pne=dne(0,!1),hne=dne(1,!1),fne=dne(0,!0),gne=dne(1,!0);class mne{constructor(e,t,n,o,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=o,this.selectionsAfter=r}setSelAfter(e){return new mne(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new mne(e.changes&&f2.fromJSON(e.changes),[],e.mapped&&h2.fromJSON(e.mapped),e.startSelection&&S2.fromJSON(e.startSelection),e.selectionsAfter.map(S2.fromJSON))}static fromTransaction(e,t){let n=yne;for(let o of e.startState.facet(ane)){let t=o(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new mne(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,yne)}static selection(e){return new mne(void 0,yne,void 0,void 0,e)}}function vne(e,t,n,o){let r=t+1>n+20?t-n-1:0,i=e.slice(r,t);return i.push(o),i}function bne(e,t){return e.length?t.length?e.concat(t):e:t}const yne=[];function One(e,t){if(e.length){let n=e[e.length-1],o=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return o.length&&o[o.length-1].eq(t)?e:(o.push(t),vne(e,e.length-1,1e9,n.setSelAfter(o)))}return[mne.selection([t])]}function wne(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Sne(e,t){if(!e.length)return e;let n=e.length,o=yne;for(;n;){let r=$ne(e[n-1],t,o);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,o=r.selectionsAfter}return o.length?[mne.selection(o)]:yne}function $ne(e,t,n){let o=bne(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):yne,n);if(!e.changes)return mne.selection(o);let r=e.changes.map(t),i=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(i):i;return new mne(r,t3.mapEffects(e.effects,t),l,e.startSelection.map(i),o)}const xne=/^(input\.type|delete)($|\.)/;class Cne{constructor(e,t,n=0,o=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new Cne(this.done,this.undone):this}addChanges(e,t,n,o,r){let i=this.done,l=i[i.length-1];return i=l&&l.changes&&!l.changes.empty&&e.changes&&(!n||xne.test(n))&&(!l.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,r,i)=>{for(let l=0;l=e&&r<=t&&(o=!0)}})),o}(l.changes,e.changes))||"input.type.compose"==n)?vne(i,i.length-1,o.minDepth,new mne(e.changes.compose(l.changes),bne(e.effects,l.effects),l.mapped,l.startSelection,yne)):vne(i,i.length,o.minDepth,e),new Cne(i,yne,t,n)}addSelection(e,t,n,o){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:yne;return r.length>0&&t-this.prevTimee.empty!=l.ranges[t].empty)).length)?this:new Cne(One(this.done,e),this.undone,t,n);var i,l}addMapping(e){return new Cne(Sne(this.done,e),Sne(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let o=0==e?this.done:this.undone;if(0==o.length)return null;let r=o[o.length-1],i=r.selectionsAfter[0]||t.selection;if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:ine.of({side:e,rest:wne(o),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==o.length?yne:o.slice(0,o.length-1);return r.mapped&&(n=Sne(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:ine.of({side:e,rest:n,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Cne.empty=new Cne(yne,yne);const kne=[{key:"Mod-z",run:pne,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:hne,preventDefault:!0},{linux:"Ctrl-Shift-z",run:hne,preventDefault:!0},{key:"Mod-u",run:fne,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:gne,preventDefault:!0}];function Pne(e,t){return S2.create(e.ranges.map(t),e.mainIndex)}function Tne(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Mne({state:e,dispatch:t},n){let o=Pne(e.selection,n);return!o.eq(e.selection)&&(t(Tne(e,o)),!0)}function Ine(e,t){return S2.cursor(t?e.to:e.from)}function Ene(e,t){return Mne(e,(n=>n.empty?e.moveByChar(n,t):Ine(n,t)))}function Ane(e){return e.textDirectionAt(e.state.selection.main.head)==T5.LTR}const Dne=e=>Ene(e,!Ane(e)),Rne=e=>Ene(e,Ane(e));function zne(e,t){return Mne(e,(n=>n.empty?e.moveByGroup(n,t):Ine(n,t)))}function Bne(e,t,n){if(t.type.prop(n))return!0;let o=t.to-t.from;return o&&(o>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function jne(e,t,n){let o,r,i=Tee(e).resolveInner(t.head),l=n?b9.closedBy:b9.openedBy;for(let a=t.head;;){let t=n?i.childAfter(a):i.childBefore(a);if(!t)break;Bne(e,t,l)?i=t:a=n?t.to:t.from}return r=i.type.prop(l)&&(o=n?Fte(e,i.from,1):Fte(e,i.to,-1))&&o.matched?n?o.end.to:o.end.from:n?i.to:i.from,S2.cursor(r,n?-1:1)}function Nne(e,t){return Mne(e,(n=>{if(!n.empty)return Ine(n,t);let o=e.moveVertically(n,t);return o.head!=n.head?o:e.moveToLineBoundary(n,t)}))}const _ne=e=>Nne(e,!1),Qne=e=>Nne(e,!0);function Lne(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,o.height):Ine(n,t)));if(i.eq(r.selection))return!1;if(o.selfScroll){let t=e.coordsAtPos(r.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),a=l.top+o.marginTop,s=l.bottom-o.marginBottom;t&&t.top>a&&t.bottomHne(e,!1),Wne=e=>Hne(e,!0);function Xne(e,t,n){let o=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?o.to:o.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&t.head!=o.from+n&&(r=S2.cursor(o.from+n))}return r}function Yne(e,t){let n=Pne(e.state.selection,(e=>{let n=t(e);return S2.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(Tne(e.state,n)),!0)}function Zne(e,t){return Yne(e,(n=>e.moveByChar(n,t)))}const Vne=e=>Zne(e,!Ane(e)),Une=e=>Zne(e,Ane(e));function Kne(e,t){return Yne(e,(n=>e.moveByGroup(n,t)))}function Gne(e,t){return Yne(e,(n=>e.moveVertically(n,t)))}const qne=e=>Gne(e,!1),Jne=e=>Gne(e,!0);function eoe(e,t){return Yne(e,(n=>e.moveVertically(n,t,Lne(e).height)))}const toe=e=>eoe(e,!1),noe=e=>eoe(e,!0),ooe=({state:e,dispatch:t})=>(t(Tne(e,{anchor:0})),!0),roe=({state:e,dispatch:t})=>(t(Tne(e,{anchor:e.doc.length})),!0),ioe=({state:e,dispatch:t})=>(t(Tne(e,{anchor:e.selection.main.anchor,head:0})),!0),loe=({state:e,dispatch:t})=>(t(Tne(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function aoe(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:o}=e,r=o.changeByRange((o=>{let{from:r,to:i}=o;if(r==i){let l=t(o);lr&&(n="delete.forward",l=soe(e,l,!0)),r=Math.min(r,l),i=Math.max(i,l)}else r=soe(e,r,!1),i=soe(e,i,!0);return r==i?{range:o}:{changes:{from:r,to:i},range:S2.cursor(r,rt(e))))o.between(t,t,((e,o)=>{et&&(t=n?o:e)}));return t}const coe=(e,t)=>aoe(e,(n=>{let o,r,i=n.from,{state:l}=e,a=l.doc.lineAt(i);if(!t&&i>a.from&&icoe(e,!1),doe=e=>coe(e,!0),poe=(e,t)=>aoe(e,(n=>{let o=n.head,{state:r}=e,i=r.doc.lineAt(o),l=r.charCategorizer(o);for(let e=null;;){if(o==(t?i.to:i.from)){o==n.head&&i.number!=(t?r.doc.lines:1)&&(o+=t?1:-1);break}let a=o2(i.text,o-i.from,t)+i.from,s=i.text.slice(Math.min(o,a)-i.from,Math.max(o,a)-i.from),c=l(s);if(null!=e&&c!=e)break;" "==s&&o==n.head||(e=c),o=a}return o})),hoe=e=>poe(e,!1);function foe(e){let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.from),i=e.doc.lineAt(o.to);if(o.empty||o.to!=i.from||(i=e.doc.lineAt(o.to-1)),n>=r.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(o)}else t.push({from:r.from,to:i.to,ranges:[o]});n=i.number+1}return t}function goe(e,t,n){if(e.readOnly)return!1;let o=[],r=[];for(let i of foe(e)){if(n?i.to==e.doc.length:0==i.from)continue;let t=e.doc.lineAt(n?i.to+1:i.from-1),l=t.length+1;if(n){o.push({from:i.to,to:t.to},{from:i.from,insert:t.text+e.lineBreak});for(let t of i.ranges)r.push(S2.range(Math.min(e.doc.length,t.anchor+l),Math.min(e.doc.length,t.head+l)))}else{o.push({from:t.from,to:i.from},{from:i.to,insert:e.lineBreak+t.text});for(let e of i.ranges)r.push(S2.range(e.anchor-l,e.head-l))}}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:S2.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function moe(e,t,n){if(e.readOnly)return!1;let o=[];for(let r of foe(e))n?o.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):o.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const voe=boe(!1);function boe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let o=t.changeByRange((n=>{let{from:o,to:r}=n,i=t.doc.lineAt(o),l=!e&&o==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,o=Tee(e).resolveInner(t),r=o.childBefore(t),i=o.childAfter(t);return r&&i&&r.to<=t&&i.from>=t&&(n=r.type.prop(b9.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,o);e&&(o=r=(r<=i.to?i:t.doc.lineAt(r)).to);let a=new Wee(t,{simulateBreak:o,simulateDoubleBreak:!!l}),s=Fee(a,o);for(null==s&&(s=E3(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));ri.from&&o{let r=[];for(let l=o.from;l<=o.to;){let i=e.doc.lineAt(l);i.number>n&&(o.empty||o.to>i.from)&&(t(i,r,o),n=i.number),l=i.to+1}let i=e.changes(r);return{changes:r,range:S2.range(i.mapPos(o.anchor,1),i.mapPos(o.head,1))}}))}const Ooe=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(yoe(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Qee)})})),{userEvent:"input.indent"})),!0),woe=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(yoe(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let r=E3(o,e.tabSize),i=0,l=Hee(e,Math.max(0,r-Lee(e)));for(;iMne(e,(t=>jne(e.state,t,!Ane(e)))),shift:e=>Yne(e,(t=>jne(e.state,t,!Ane(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Mne(e,(t=>jne(e.state,t,Ane(e)))),shift:e=>Yne(e,(t=>jne(e.state,t,Ane(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>goe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>moe(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>goe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>moe(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,o=null;return n.ranges.length>1?o=S2.create([n.main]):n.main.empty||(o=S2.create([S2.cursor(n.main.head)])),!!o&&(t(Tne(e,o)),!0)}},{key:"Mod-Enter",run:boe(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=foe(e).map((({from:t,to:n})=>S2.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:S2.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=Pne(e.selection,(t=>{var n;for(let o=Tee(e).resolveStack(t.from,1);o;o=o.next){let{node:e}=o;if((e.from=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return S2.range(e.to,e.from)}return t}));return t(Tne(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:woe},{key:"Mod-]",run:Ooe},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),o=new Wee(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=yoe(e,((t,r,i)=>{let l=Fee(o,t.from);if(null==l)return;/\S/.test(t.text)||(l=0);let a=/^\s*/.exec(t.text)[0],s=Hee(e,l);(a!=s||i.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(foe(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let o=!1,r=Pne(e.selection,(t=>{let r=Fte(e,t.head,-1)||Fte(e,t.head,1)||t.head>0&&Fte(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),o=nne(e.state,n.from);return o.line?Jte(e):!!o.block&&tne(e)}},{key:"Alt-A",run:ene}].concat([{key:"ArrowLeft",run:Dne,shift:Vne,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>zne(e,!Ane(e)),shift:e=>Kne(e,!Ane(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Mne(e,(t=>Xne(e,t,!Ane(e)))),shift:e=>Yne(e,(t=>Xne(e,t,!Ane(e)))),preventDefault:!0},{key:"ArrowRight",run:Rne,shift:Une,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>zne(e,Ane(e)),shift:e=>Kne(e,Ane(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Mne(e,(t=>Xne(e,t,Ane(e)))),shift:e=>Yne(e,(t=>Xne(e,t,Ane(e)))),preventDefault:!0},{key:"ArrowUp",run:_ne,shift:qne,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ooe,shift:ioe},{mac:"Ctrl-ArrowUp",run:Fne,shift:toe},{key:"ArrowDown",run:Qne,shift:Jne,preventDefault:!0},{mac:"Cmd-ArrowDown",run:roe,shift:loe},{mac:"Ctrl-ArrowDown",run:Wne,shift:noe},{key:"PageUp",run:Fne,shift:toe},{key:"PageDown",run:Wne,shift:noe},{key:"Home",run:e=>Mne(e,(t=>Xne(e,t,!1))),shift:e=>Yne(e,(t=>Xne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:ooe,shift:ioe},{key:"End",run:e=>Mne(e,(t=>Xne(e,t,!0))),shift:e=>Yne(e,(t=>Xne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:roe,shift:loe},{key:"Enter",run:voe},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:uoe,shift:uoe},{key:"Delete",run:doe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:hoe},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>poe(e,!0)},{mac:"Mod-Backspace",run:e=>aoe(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>aoe(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.headMne(e,(t=>S2.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>Yne(e,(t=>S2.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Mne(e,(t=>S2.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>Yne(e,(t=>S2.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:doe},{key:"Ctrl-h",run:uoe},{key:"Ctrl-k",run:e=>aoe(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:W1.of(["",""])},range:S2.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n),r=n==o.from?n-1:o2(o.text,n-o.from,!1)+o.from,i=n==o.to?n+1:o2(o.text,n-o.from,!0)+o.from;return{changes:{from:r,to:i,insert:e.doc.slice(n,i).append(e.doc.slice(r,n))},range:S2.cursor(i)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Wne}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),$oe={key:"Tab",run:Ooe,shift:woe};function xoe(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o];"string"==typeof r?e.setAttribute(o,r):null!=r&&(e[o]=r)}t++}for(;te.normalize("NFKD"):e=>e;class Poe{constructor(e,t,n=0,o=e.length,r,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,o),this.bufferStart=n,this.normalize=r?e=>r(koe(e)):koe,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return s2(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=c2(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=u2(e);let o=this.normalize(t);for(let r=0,i=n;;r++){let e=o.charCodeAt(r),l=this.match(e,i);if(r==o.length-1){if(l)return this.value=l,this;break}i==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,o=n+t[0].length;if(this.matchPos=Roe(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,o,t)))return this.value={from:n,to:o,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||o.to<=t){let o=new Aoe(t,e.sliceString(t,n));return Eoe.set(e,o),o}if(o.from==t&&o.to==n)return o;let{text:r,from:i}=o;return i>t&&(r=e.sliceString(t,i)+r,i=t),o.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Roe(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Aoe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Roe(e,t){if(t>=e.length)return t;let n,o=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function zoe(e){let t=xoe("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:o}=e,r=o.doc.lineAt(o.selection.main.head),[,i,l,a,s]=n,c=a?+a.slice(1):0,u=l?+l:r.number;if(l&&s){let e=u/100;i&&(e=e*("-"==i?-1:1)+r.number/o.doc.lines),u=Math.round(o.doc.lines*e)}else l&&i&&(u=u*("-"==i?-1:1)+r.number);let d=o.doc.line(Math.max(1,Math.min(o.doc.lines,u))),p=S2.cursor(d.from+Math.max(0,Math.min(c,d.length)));e.dispatch({effects:[Boe.of(!1),P6.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:xoe("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Boe.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},xoe("label",e.state.phrase("Go to line"),": ",t)," ",xoe("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Ioe.prototype[Symbol.iterator]=Doe.prototype[Symbol.iterator]=function(){return this});const Boe=t3.define(),joe=A2.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Boe)&&(e=n.value);return e},provide:e=>Y7.from(e,(e=>e?zoe:null))}),Noe=P6.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),_oe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Qoe=C2.define({combine:e=>f3(e,_oe,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function Loe(e){let t=[Yoe,Xoe];return e&&t.push(Qoe.of(e)),t}const Hoe=X4.mark({class:"cm-selectionMatch"}),Foe=X4.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Woe(e,t,n,o){return!(0!=n&&e(t.sliceDoc(n-1,n))==c3.Word||o!=t.doc.length&&e(t.sliceDoc(o,o+1))==c3.Word)}const Xoe=g5.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Qoe),{state:n}=e,o=n.selection;if(o.ranges.length>1)return X4.none;let r,i=o.main,l=null;if(i.empty){if(!t.highlightWordAroundCursor)return X4.none;let e=n.wordAt(i.head);if(!e)return X4.none;l=n.charCategorizer(i.head),r=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e200)return X4.none;if(t.wholeWords){if(r=n.sliceDoc(i.from,i.to),l=n.charCategorizer(i.head),!Woe(l,n,i.from,i.to)||!function(e,t,n,o){return e(t.sliceDoc(n,n+1))==c3.Word&&e(t.sliceDoc(o-1,o))==c3.Word}(l,n,i.from,i.to))return X4.none}else if(r=n.sliceDoc(i.from,i.to).trim(),!r)return X4.none}let a=[];for(let s of e.visibleRanges){let e=new Poe(n.doc,r,s.from,s.to);for(;!e.next().done;){let{from:o,to:r}=e.value;if((!l||Woe(l,n,o,r))&&(i.empty&&o<=i.from&&r>=i.to?a.push(Foe.range(o,r)):(o>=i.to||r<=i.from)&&a.push(Hoe.range(o,r)),a.length>t.maxMatches))return X4.none}}return X4.set(a)}},{decorations:e=>e.decorations}),Yoe=P6.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Zoe=C2.define({combine:e=>f3(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Sre(e),scrollToMatch:e=>P6.scrollIntoView(e)})});class Voe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Moe),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new tre(this):new Goe(this)}getCursor(e,t=0,n){let o=e.doc?e:h3.create({doc:e});return null==n&&(n=o.doc.length),this.regexp?qoe(this,o,t,n):Koe(this,o,t,n)}}class Uoe{constructor(e){this.spec=e}}function Koe(e,t,n,o){return new Poe(t.doc,e.unquoted,n,o,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(r=t.doc,i=t.charCategorizer(t.selection.main.head),(e,t,n,o)=>((o>e||o+n.length=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=Koe(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}function qoe(e,t,n,o){return new Ioe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(r(Joe(n.input,n.index))!=c3.Word||r(ere(n.input,n.index))!=c3.Word)&&(r(ere(n.input,n.index+n[0].length))!=c3.Word||r(Joe(n.input,n.index+n[0].length))!=c3.Word)):void 0},n,o);var r}function Joe(e,t){return e.slice(o2(e,t,!1),t)}function ere(e,t){return e.slice(t,o2(e,t))}class tre extends Uoe{nextMatch(e,t,n){let o=qoe(this.spec,e,n,e.doc.length).next();return o.done&&(o=qoe(this.spec,e,0,t).next()),o.done?null:o.value}prevMatchInRange(e,t,n){for(let o=1;;o++){let r=Math.max(t,n-1e4*o),i=qoe(this.spec,e,r,n),l=null;for(;!i.next().done;)l=i.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=qoe(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}const nre=t3.define(),ore=t3.define(),rre=A2.define({create:e=>new ire(mre(e).create(),null),update(e,t){for(let n of t.effects)n.is(nre)?e=new ire(n.value.create(),e.panel):n.is(ore)&&(e=new ire(e.query,n.value?gre:null));return e},provide:e=>Y7.from(e,(e=>e.panel))});class ire{constructor(e,t){this.query=e,this.panel=t}}const lre=X4.mark({class:"cm-searchMatch"}),are=X4.mark({class:"cm-searchMatch cm-searchMatch-selected"}),sre=g5.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(rre))}update(e){let t=e.state.field(rre);(t!=e.startState.field(rre)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return X4.none;let{view:n}=this,o=new O3;for(let r=0,i=n.visibleRanges,l=i.length;ri[r+1].from-500;)a=i[++r].to;e.highlight(n.state,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));o.add(e,t,r?are:lre)}))}return o.finish()}},{decorations:e=>e.decorations});function cre(e){return t=>{let n=t.state.field(rre,!1);return n&&n.query.spec.valid?e(t,n):yre(t)}}const ure=cre(((e,{query:t})=>{let{to:n}=e.state.selection.main,o=t.nextMatch(e.state,n,n);if(!o)return!1;let r=S2.single(o.from,o.to),i=e.state.facet(Zoe);return e.dispatch({selection:r,effects:[Cre(e,o),i.scrollToMatch(r.main,e)],userEvent:"select.search"}),bre(e),!0})),dre=cre(((e,{query:t})=>{let{state:n}=e,{from:o}=n.selection.main,r=t.prevMatch(n,o,o);if(!r)return!1;let i=S2.single(r.from,r.to),l=e.state.facet(Zoe);return e.dispatch({selection:i,effects:[Cre(e,r),l.scrollToMatch(i.main,e)],userEvent:"select.search"}),bre(e),!0})),pre=cre(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:S2.create(n.map((e=>S2.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),hre=cre(((e,{query:t})=>{let{state:n}=e,{from:o,to:r}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,o,o);if(!i)return!1;let l,a,s=[],c=[];if(i.from==o&&i.to==r&&(a=n.toText(t.getReplacement(i)),s.push({from:i.from,to:i.to,insert:a}),i=t.nextMatch(n,i.from,i.to),c.push(P6.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(o).number)+"."))),i){let t=0==s.length||s[0].from>=i.to?0:i.to-i.from-a.length;l=S2.single(i.from-t,i.to-t),c.push(Cre(e,i)),c.push(n.facet(Zoe).scrollToMatch(l.main,e))}return e.dispatch({changes:s,selection:l,effects:c,userEvent:"input.replace"}),!0})),fre=cre(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:o}=e;return{from:n,to:o,insert:t.getReplacement(e)}}));if(!n.length)return!1;let o=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:P6.announce.of(o),userEvent:"input.replace.all"}),!0}));function gre(e){return e.state.facet(Zoe).createPanel(e)}function mre(e,t){var n,o,r,i,l;let a=e.selection.main,s=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!s)return t;let c=e.facet(Zoe);return new Voe({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==t?void 0:t.caseSensitive)&&void 0!==o?o:c.caseSensitive,literal:null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:c.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:c.regexp,wholeWord:null!==(l=null==t?void 0:t.wholeWord)&&void 0!==l?l:c.wholeWord})}function vre(e){let t=H7(e,gre);return t&&t.dom.querySelector("[main-field]")}function bre(e){let t=vre(e);t&&t==e.root.activeElement&&t.select()}const yre=e=>{let t=e.state.field(rre,!1);if(t&&t.panel){let n=vre(e);if(n&&n!=e.root.activeElement){let o=mre(e.state,t.query.spec);o.valid&&e.dispatch({effects:nre.of(o)}),n.focus(),n.select()}}else e.dispatch({effects:[ore.of(!0),t?nre.of(mre(e.state,t.query.spec)):t3.appendConfig.of(Pre)]});return!0},Ore=e=>{let t=e.state.field(rre,!1);if(!t||!t.panel)return!1;let n=H7(e,gre);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:ore.of(!1)}),!0},wre=[{key:"Mod-f",run:yre,scope:"editor search-panel"},{key:"F3",run:ure,shift:dre,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ure,shift:dre,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ore,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:o,to:r}=n.main,i=[],l=0;for(let a=new Poe(e.doc,e.sliceDoc(o,r));!a.next().done;){if(i.length>1e3)return!1;a.value.from==o&&(l=i.length),i.push(S2.range(a.value.from,a.value.to))}return t(e.update({selection:S2.create(i,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=H7(e,zoe);if(!t){let n=[Boe.of(!0)];null==e.state.field(joe,!1)&&n.push(t3.appendConfig.of([joe,Noe])),e.dispatch({effects:n}),t=H7(e,zoe)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,o=S2.create(n.ranges.map((t=>e.wordAt(t.head)||S2.cursor(t.head))),n.mainIndex);return!o.eq(n)&&(t(e.update({selection:o})),!0)})({state:e,dispatch:t});let o=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=o)))return!1;let r=function(e,t){let{main:n,ranges:o}=e.selection,r=e.wordAt(n.head),i=r&&r.from==n.from&&r.to==n.to;for(let l=!1,a=new Poe(e.doc,t,o[o.length-1].to);;){if(a.next(),!a.done){if(l&&o.some((e=>e.from==a.value.from)))continue;if(i){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(l)return null;a=new Poe(e.doc,t,0,Math.max(0,o[o.length-1].from-1)),l=!0}}(e,o);return!!r&&(t(e.update({selection:e.selection.addRange(S2.range(r.from,r.to),!1),effects:P6.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Sre{constructor(e){this.view=e;let t=this.query=e.state.field(rre).query.spec;function n(e,t,n){return xoe("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=xoe("input",{value:t.search,placeholder:$re(e,"Find"),"aria-label":$re(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=xoe("input",{value:t.replace,placeholder:$re(e,"Replace"),"aria-label":$re(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=xoe("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=xoe("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=xoe("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=xoe("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>ure(e)),[$re(e,"next")]),n("prev",(()=>dre(e)),[$re(e,"previous")]),n("select",(()=>pre(e)),[$re(e,"all")]),xoe("label",null,[this.caseField,$re(e,"match case")]),xoe("label",null,[this.reField,$re(e,"regexp")]),xoe("label",null,[this.wordField,$re(e,"by word")]),...e.state.readOnly?[]:[xoe("br"),this.replaceField,n("replace",(()=>hre(e)),[$re(e,"replace")]),n("replaceAll",(()=>fre(e)),[$re(e,"replace all")])],xoe("button",{name:"close",onclick:()=>Ore(e),"aria-label":$re(e,"close"),type:"button"},["×"])])}commit(){let e=new Voe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:nre.of(e)}))}keydown(e){var t,n,o;t=this.view,n=e,o="search-panel",_6(j6(t.state),n,t,o)?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?dre:ure)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),hre(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(nre)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Zoe).top}}function $re(e,t){return e.state.phrase(t)}const xre=/[\s\.,:;?!]/;function Cre(e,{from:t,to:n}){let o=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,i=Math.max(o.from,t-30),l=Math.min(r,n+30),a=e.state.sliceDoc(i,l);if(i!=o.from)for(let s=0;s<30;s++)if(!xre.test(a[s+1])&&xre.test(a[s])){a=a.slice(s);break}if(l!=r)for(let s=a.length-1;s>a.length-30;s--)if(!xre.test(a[s-1])&&xre.test(a[s])){a=a.slice(0,s);break}return P6.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${o.number}.`)}const kre=P6.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Pre=[rre,N2.low(sre),kre];class Tre{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=Tee(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),r=o.search(Dre(e,!1));return r<0?null:{from:n+r,to:this.pos,text:o.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Mre(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Ire(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,o]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let r=e.matchBefore(o);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}class Ere{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function Are(e){return e.selection.main.from}function Dre(e,t){var n;let{source:o}=e,r=t&&"^"!=o[0],i="$"!=o[o.length-1];return r||i?new RegExp(`${r?"^":""}(?:${o})${i?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const Rre=q2.define(),zre=new WeakMap;function Bre(e){if(!Array.isArray(e))return e;let t=zre.get(e);return t||zre.set(e,t=Ire(e)),t}const jre=t3.define(),Nre=t3.define();class _re{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&o<=57||o>=97&&o<=122?2:o>=65&&o<=90?1:0:(s=c2(o))!=s.toLowerCase()?1:s!=s.toUpperCase()?2:0;(!v||1==b&&g||0==y&&0!=b)&&(t[u]==o||n[u]==o&&(d=!0)?i[u++]=v:i.length&&(m=!1)),y=b,v+=u2(o)}return u==a&&0==i[0]&&m?this.result((d?-200:0)-100,i,e):p==a&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[h,f]):u==a?this.result((d?-200:0)-100-700+(m?0:-1100),i,e):2!=t.length&&this.result((o[0]?-700:0)-200-1100,o,e)}result(e,t,n){let o=[],r=0;for(let i of t){let e=i+(this.astral?u2(s2(n,i)):1);r&&o[r-1]==i?o[r-1]=e:(o[r++]=i,o[r++]=e)}return this.ret(e-n.length,o)}}const Qre=C2.define({combine:e=>f3(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Hre,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>Lre(e(n),t(n)),optionClass:(e,t)=>n=>Lre(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function Lre(e,t){return e?t?e+" "+t:e:t}function Hre(e,t,n,o,r,i){let l,a,s=e.textDirection==T5.RTL,c=s,u=!1,d="top",p=t.left-r.left,h=r.right-t.right,f=o.right-o.left,g=o.bottom-o.top;if(c&&p=g||e>t.top?l=n.bottom-t.top:(d="bottom",l=t.bottom-n.top)}return{style:`${d}: ${l/((t.bottom-t.top)/i.offsetHeight)}px; max-width: ${a/((t.right-t.left)/i.offsetWidth)}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":c?"left":"right")}}function Fre(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}class Wre{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let o=e.state.field(t),{options:r,selected:i}=o.open,l=e.state.facet(Qre);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,o){let r=document.createElement("span");r.className="cm-completionLabel";let i=e.displayLabel||e.label,l=0;for(let a=0;al&&r.appendChild(document.createTextNode(i.slice(l,e)));let n=r.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(i.slice(e,t))),n.className="cm-completionMatchedText",l=t}return le.position-t.position)).map((e=>e.render))}(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Fre(r.length,i,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:o}=e.state.field(t).open;for(let t,r=n.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(t=/-(\d+)$/.exec(r.id))&&+t[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(Qre).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:Nre.of(null)})})),this.showOptions(r,o.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),o=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=o){let{options:r,selected:i,disabled:l}=n.open;o.open&&o.open.options==r||(this.range=Fre(r.length,i,e.state.facet(Qre).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),l!=(null===(t=o.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=Fre(t.options.length,t.selected,this.view.state.facet(Qre).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let r="string"==typeof o?document.createTextNode(o):o(n);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>d5(this.view.state,e,"completion info"))):this.addInfoPane(r,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:o}=e;n.appendChild(t),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)"LI"==n.nodeName&&n.id?o==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):o--;return t&&function(e,t){let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.height/e.offsetHeight;o.topn.bottom&&(e.scrollTop+=(o.bottom-n.bottom)/r)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return o.top>Math.min(r.bottom,t.bottom)-10||o.bottomn.from||0==n.from)&&(r=e,"string"!=typeof s&&s.header?o.appendChild(s.header(s)):o.appendChild(document.createElement("completion-section")).textContent=e)}const c=o.appendChild(document.createElement("li"));c.id=t+"-"+i,c.setAttribute("role","option");let u=this.optionClass(l);u&&(c.className=u);for(let e of this.optionContent){let t=e(l,this.view.state,this.view,a);t&&c.appendChild(t)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.tonew Wre(n,e,t)}function Yre(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class Zre{constructor(e,t,n,o,r,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=r,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Zre(this.options,Kre(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,r){let i=function(e,t){let n=[],o=null,r=e=>{n.push(e);let{section:t}=e.completion;if(t){o||(o=[]);let e="string"==typeof t?t:t.name;o.some((t=>t.name==e))||o.push("string"==typeof t?{name:e}:t)}};for(let s of e)if(s.hasResult()){let e=s.result.getMatch;if(!1===s.result.filter)for(let t of s.result.options)r(new Ere(t,s.source,e?e(t):[],1e9-n.length));else{let n=new _re(t.sliceDoc(s.from,s.to));for(let t of s.result.options)if(n.match(t.label)){let o=t.displayLabel?e?e(t,n.matched):[]:n.matched;r(new Ere(t,s.source,o,n.score+(t.boost||0)))}}}if(o){let e=Object.create(null),t=0,r=(e,t)=>{var n,o;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(o=t.rank)&&void 0!==o?o:1e9)||(e.namet.score-e.score||a(e.completion,t.completion)))){let e=s.completion;!l||l.label!=e.label||l.detail!=e.detail||null!=l.type&&null!=e.type&&l.type!=e.type||l.apply!=e.apply||l.boost!=e.boost?i.push(s):Yre(s.completion)>Yre(l)&&(i[i.length-1]=s),l=s.completion}return i}(e,t);if(!i.length)return o&&e.some((e=>1==e.state))?new Zre(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(Qre).selectOnOpen?0:-1;if(o&&o.selected!=l&&-1!=o.selected){let e=o.options[o.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:iie,above:r.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new Zre(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Vre{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new Vre(Gre,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(Qre),o=(n.override||t.languageDataAt("autocomplete",Are(t)).map(Bre)).map((t=>(this.active.find((e=>e.source==t))||new Jre(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));o.length==this.active.length&&o.every(((e,t)=>e==this.active[t]))&&(o=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,o=0;;){for(;n1==e.state))&&(r=null),!r&&o.every((e=>1!=e.state))&&o.some((e=>e.hasResult()))&&(o=o.map((e=>e.hasResult()?new Jre(e.source,0):e)));for(let i of e.effects)i.is(nie)&&(r=r&&r.setSelected(i.value,this.id));return o==this.active&&r==this.open?this:new Vre(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Ure}}const Ure={"aria-autocomplete":"list"};function Kre(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const Gre=[];function qre(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Jre{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=qre(e),o=this;n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&0!=o.state&&(o=new Jre(o.source,0));for(let r of e.effects)if(r.is(jre))o=new Jre(o.source,1,r.value?Are(e.state):-1);else if(r.is(Nre))o=new Jre(o.source,0);else if(r.is(tie))for(let e of r.value)e.source==o.source&&(o=e);return o}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new Jre(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Are(e.startState))?new Jre(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Jre(this.source,this.state,e.mapPos(this.explicitPos))}}class eie extends Jre{constructor(e,t,n,o,r){super(e,2,t),this.result=n,this.from=o,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var o;let r=e.changes.mapPos(this.from),i=e.changes.mapPos(this.to,1),l=Are(e.state);if((this.explicitPos<0?l<=r:li||"delete"==t&&Are(e.startState)==this.from)return new Jre(this.source,"input"==t&&n.activateOnTyping?1:0);let a,s=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,o){if(!e)return!1;let r=t.sliceDoc(n,o);return"function"==typeof e?e(r,n,o,t):Dre(e,!0).test(r)}(this.result.validFor,e.state,r,i)?new eie(this.source,s,this.result,r,i):this.result.update&&(a=this.result.update(this.result,r,i,new Tre(e.state,l,s>=0)))?new eie(this.source,s,a,a.from,null!==(o=a.to)&&void 0!==o?o:Are(e.state)):new Jre(this.source,1,s)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Jre(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new eie(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const tie=t3.define({map:(e,t)=>e.map((e=>e.map(t)))}),nie=t3.define(),oie=A2.define({create:()=>Vre.start(),update:(e,t)=>e.update(t),provide:e=>[D7.from(e,(e=>e.tooltip)),P6.contentAttributes.from(e,(e=>e.attrs))]});function rie(e,t){const n=t.completion.apply||t.completion.label;let o=e.state.field(oie).active.find((e=>e.source==t.source));return o instanceof eie&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,o){let{main:r}=e.selection,i=n-r.from,l=o-r.from;return Object.assign(Object.assign({},e.changeByRange((a=>a!=r&&n!=o&&e.sliceDoc(a.from+i,a.from+l)!=e.sliceDoc(n,o)?{range:a}:{changes:{from:a.from+i,to:o==r.from?a.to:a.from+l,insert:t},range:S2.cursor(a.from+i+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,o.from,o.to)),{annotations:Rre.of(t.completion)})):n(e,t.completion,o.from,o.to),!0)}const iie=Xre(oie,rie);function lie(e,t="option"){return n=>{let o=n.state.field(oie,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp-1?o.open.selected+i*(e?1:-1):e?0:l-1;return a<0?a="page"==t?0:l-1:a>=l&&(a="page"==t?l-1:0),n.dispatch({effects:nie.of(a)}),!0}}class aie{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const sie=g5.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(oie).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(oie);if(!e.selectionSet&&!e.docChanged&&e.startState.field(oie)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!qre(e)));for(let o=0;o50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(Eue){d5(this.view.state,Eue)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let o of e.transactions)"input"==qre(o)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(oie);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Are(t),o=new Tre(t,n,e.explicitPos==n),r=new aie(e,o);this.running.push(r),Promise.resolve(e.source(o)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:Nre.of(null)}),d5(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(Qre).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Qre);for(let o=0;oe.source==r.active.source));if(i&&1==i.state)if(null==r.done){let e=new Jre(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:tie.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(oie,!1);if(t&&t.tooltip&&this.view.state.facet(Qre).closeOnBlur){let n=t.open&&_7(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:Nre.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:jre.of(!1)})),20),this.composing=0}}}),cie=P6.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class uie{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class die{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,p2.TrackDel),n=e.mapPos(this.to,1,p2.TrackDel);return null==t||null==n?null:new die(this.field,t,n)}}class pie{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],r=e.doc.lineAt(t),i=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let n=i,r=/^\t*/.exec(l)[0].length;for(let t=0;tnew die(e.field,o[e.line]+e.from,o[e.line]+e.to)))}}static parse(e){let t,n=[],o=[],r=[];for(let i of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(i);){let e=t[1]?+t[1]:null,l=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}r.push(new uie(a,o.length,t.index,t.index+l.length)),i=i.slice(0,t.index)+l+i.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(i);){i=i.slice(0,e.index)+e[1]+i.slice(e.index+e[0].length);for(let t of r)t.line==o.length&&t.from>e.index&&(t.from--,t.to--)}o.push(i)}return new pie(o,r)}}let hie=X4.widget({widget:new class extends F4{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),fie=X4.mark({class:"cm-snippetField"});class gie{constructor(e,t){this.ranges=e,this.active=t,this.deco=X4.set(e.map((e=>(e.from==e.to?hie:fie).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new gie(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const mie=t3.define({map:(e,t)=>e&&e.map(t)}),vie=t3.define(),bie=A2.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(mie))return n.value;if(n.is(vie)&&e)return new gie(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>P6.decorations.from(e,(e=>e?e.deco:X4.none))});function yie(e,t){return S2.create(e.filter((e=>e.field==t)).map((e=>S2.range(e.from,e.to))))}function Oie(e){let t=pie.parse(e);return(e,n,o,r)=>{let{text:i,ranges:l}=t.instantiate(e.state,o),a={changes:{from:o,to:r,insert:W1.of(i)},scrollIntoView:!0,annotations:n?Rre.of(n):void 0};if(l.length&&(a.selection=yie(l,0)),l.length>1){let t=new gie(l,0),n=a.effects=[mie.of(t)];void 0===e.state.field(bie,!1)&&n.push(t3.appendConfig.of([bie,xie,kie,cie]))}e.dispatch(e.state.update(a))}}function wie(e){return({state:t,dispatch:n})=>{let o=t.field(bie,!1);if(!o||e<0&&0==o.active)return!1;let r=o.active+e,i=e>0&&!o.ranges.some((t=>t.field==r+e));return n(t.update({selection:yie(o.ranges,r),effects:mie.of(i?null:new gie(o.ranges,r)),scrollIntoView:!0})),!0}}const Sie=[{key:"Tab",run:wie(1),shift:wie(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(bie,!1)&&(t(e.update({effects:mie.of(null)})),!0)}],$ie=C2.define({combine:e=>e.length?e[0]:Sie}),xie=N2.highest(z6.compute([$ie],(e=>e.facet($ie))));function Cie(e,t){return Object.assign(Object.assign({},t),{apply:Oie(e)})}const kie=P6.domEventHandlers({mousedown(e,t){let n,o=t.state.field(bie,!1);if(!o||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=o.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==o.active||(t.dispatch({selection:yie(o.ranges,r.field),effects:mie.of(o.ranges.some((e=>e.field>r.field))?new gie(o.ranges,r.field):null),scrollIntoView:!0}),0))}}),Pie={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Tie=t3.define({map(e,t){let n=t.mapPos(e,-1,p2.TrackAfter);return null==n?void 0:n}}),Mie=new class extends g3{};Mie.startSide=1,Mie.endSide=-1;const Iie=A2.define({create:()=>y3.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Tie)&&(e=e.update({add:[Mie.range(n.value,n.value+1)]}));return e}}),Eie="()[]{}<>";function Aie(e){for(let t=0;t<8;t+=2)if(Eie.charCodeAt(t)==e)return Eie.charAt(t+1);return c2(e<128?e:e+1)}function Die(e,t){return e.languageDataAt("closeBrackets",t)[0]||Pie}const Rie="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),zie=P6.inputHandler.of(((e,t,n,o)=>{if((Rie?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(o.length>2||2==o.length&&1==u2(s2(o,0))||t!=r.from||n!=r.to)return!1;let i=function(e,t){let n=Die(e,e.selection.main.head),o=n.brackets||Pie.brackets;for(let r of o){let i=Aie(s2(r,0));if(t==r)return i==r?Lie(e,r,o.indexOf(r+r+r)>-1,n):_ie(e,r,i,n.before||Pie.before);if(t==i&&jie(e,e.selection.main.from))return Qie(e,0,i)}return null}(e.state,o);return!!i&&(e.dispatch(i),!0)})),Bie=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Die(e,e.selection.main.head).brackets||Pie.brackets,o=null,r=e.changeByRange((t=>{if(t.empty){let o=function(e,t){let n=e.sliceString(t-2,t);return u2(s2(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let r of n)if(r==o&&Nie(e.doc,t.head)==Aie(s2(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:S2.cursor(t.head-r.length)}}return{range:o=t}}));return o||t(e.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function jie(e,t){let n=!1;return e.field(Iie).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Nie(e,t){let n=e.sliceString(t,t+2);return n.slice(0,u2(s2(n,0)))}function _ie(e,t,n,o){let r=null,i=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:Tie.of(i.to+t.length),range:S2.range(i.anchor+t.length,i.head+t.length)};let l=Nie(e.doc,i.head);return!l||/\s/.test(l)||o.indexOf(l)>-1?{changes:{insert:t+n,from:i.head},effects:Tie.of(i.head+t.length),range:S2.cursor(i.head+t.length)}:{range:r=i}}));return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Qie(e,t,n){let o=null,r=e.changeByRange((t=>t.empty&&Nie(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:S2.cursor(t.head+n.length)}:o={range:t}));return o?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Lie(e,t,n,o){let r=o.stringPrefixes||Pie.stringPrefixes,i=null,l=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Tie.of(o.to+t.length),range:S2.range(o.anchor+t.length,o.head+t.length)};let l,a=o.head,s=Nie(e.doc,a);if(s==t){if(Hie(e,a))return{changes:{insert:t+t,from:a},effects:Tie.of(a+t.length),range:S2.cursor(a+t.length)};if(jie(e,a)){let o=n&&e.sliceDoc(a,a+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+o.length,insert:o},range:S2.cursor(a+o.length)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(l=Fie(e,a-2*t.length,r))>-1&&Hie(e,l))return{changes:{insert:t+t+t+t,from:a},effects:Tie.of(a+t.length),range:S2.cursor(a+t.length)};if(e.charCategorizer(a)(s)!=c3.Word&&Fie(e,a,r)>-1&&!function(e,t,n,o){let r=Tee(e).resolveInner(t,-1),i=o.reduce(((e,t)=>Math.max(e,t.length)),0);for(let l=0;l<5;l++){let l=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+i)),a=l.indexOf(n);if(!a||a>-1&&o.indexOf(l.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let s=r.to==t&&r.parent;if(!s)break;r=s}return!1}(e,a,t,r))return{changes:{insert:t+t,from:a},effects:Tie.of(a+t.length),range:S2.cursor(a+t.length)}}return{range:i=o}}));return i?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Hie(e,t){let n=Tee(e).resolveInner(t+1);return n.parent&&n.from==t}function Fie(e,t,n){let o=e.charCategorizer(t);if(o(e.sliceDoc(t-1,t))!=c3.Word)return t;for(let r of n){let n=t-r.length;if(e.sliceDoc(n,t)==r&&o(e.sliceDoc(n-1,n))!=c3.Word)return n}return-1}function Wie(e={}){return[oie,Qre.of(e),sie,Yie,cie]}const Xie=[{key:"Ctrl-Space",run:e=>!!e.state.field(oie,!1)&&(e.dispatch({effects:jre.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(oie,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:Nre.of(null)}),0))}},{key:"ArrowDown",run:lie(!0)},{key:"ArrowUp",run:lie(!1)},{key:"PageDown",run:lie(!0,"page")},{key:"PageUp",run:lie(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(oie,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(Qre).defaultKeymap?[Xie]:[])));class Zie{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Vie{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let o=e,r=n.facet(sle).markerFilter;r&&(o=r(o));let i=X4.set(o.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?X4.widget({widget:new hle(e),diagnostic:e}).range(e.from):X4.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new Vie(i,t,Uie(i))}}function Uie(e,t=null,n=0){let o=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return o=new Zie(e,n,r.diagnostic),!1})),o}function Kie(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(qie)))&&!e.changes.touchesRange(n.from,n.to))}function Gie(e,t){return e.field(tle,!1)?t:t.concat(t3.appendConfig.of(Ple))}const qie=t3.define(),Jie=t3.define(),ele=t3.define(),tle=A2.define({create:()=>new Vie(X4.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),o=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);o=Uie(n,e.selected.diagnostic,r)||Uie(n,null,r)}e=new Vie(n,e.panel,o)}for(let n of t.effects)n.is(qie)?e=Vie.init(n.value,e.panel,t.state):n.is(Jie)?e=new Vie(e.diagnostics,n.value?gle.open:null,e.selected):n.is(ele)&&(e=new Vie(e.diagnostics,e.panel,n.value));return e},provide:e=>[Y7.from(e,(e=>e.panel)),P6.decorations.from(e,(e=>e.diagnostics))]}),nle=X4.mark({class:"cm-lintRange cm-lintRange-active"});function ole(e,t,n){let{diagnostics:o}=e.state.field(tle),r=[],i=2e8,l=0;o.between(t-(n<0?1:0),t+(n>0?1:0),((e,o,{spec:a})=>{t>=e&&t<=o&&(e==o||(t>e||n>0)&&(t({dom:rle(e,r)})}:null}function rle(e,t){return xoe("ul",{class:"cm-tooltip-lint"},t.map((t=>ple(e,t,!1))))}const ile=e=>{let t=e.state.field(tle,!1);return!(!t||!t.panel||(e.dispatch({effects:Jie.of(!1)}),0))},lle=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(tle,!1);t&&t.panel||e.dispatch({effects:Gie(e.state,[Jie.of(!0)])});let n=H7(e,gle.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(tle,!1);if(!t)return!1;let n=e.state.selection.main,o=t.diagnostics.iter(n.to+1);return!(!o.value&&(o=t.diagnostics.iter(0),!o.value||o.from==n.from&&o.to==n.to)||(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),0))}}],ale=g5.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(sle);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(ePromise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:Gie(e,[qie.of(t)])}}(this.view.state,n))}),(e=>{d5(this.view.state,e)}))}}update(e){let t=e.state.facet(sle);(e.docChanged||t!=e.startState.facet(sle)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),sle=C2.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},f3(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function cle(e,t={}){return[sle.of({source:e,config:t}),ale,Ple]}function ule(e){let t=e.plugin(ale);t&&t.force()}function dle(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==o.toLowerCase()))){t.push(o);continue e}}t.push("")}return t}function ple(e,t,n){var o;let r=n?dle(t.actions):[];return xoe("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},xoe("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(o=t.actions)||void 0===o?void 0:o.map(((n,o)=>{let i=!1,l=o=>{if(o.preventDefault(),i)return;i=!0;let r=Uie(e.state.field(tle).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:a}=n,s=r[o]?a.indexOf(r[o]):-1,c=s<0?a:[a.slice(0,s),xoe("u",a.slice(s,s+1)),a.slice(s+1)];return xoe("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${a}${s<0?"":` (access key "${r[o]})"`}.`},c)})),t.source&&xoe("div",{class:"cm-diagnosticSource"},t.source))}class hle extends F4{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return xoe("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class fle{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=ple(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class gle{constructor(e){this.view=e,this.items=[],this.list=xoe("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)ile(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],o=dle(n.actions);for(let r=0;r{for(let t=0;tile(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(tle).selected;if(!e)return-1;for(let t=0;t{let a,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),o=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Uie(this.view.state.field(tle).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:ele.of(t)})}static open(e){return new gle(e)}}function mle(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function vle(e){return mle(``,'width="6" height="3"')}const ble=P6.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:vle("#d11")},".cm-lintRange-warning":{backgroundImage:vle("orange")},".cm-lintRange-info":{backgroundImage:vle("#999")},".cm-lintRange-hint":{backgroundImage:vle("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function yle(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}class Ole extends Z7{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>yle(e)function(e,t,n){function o(){let o=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(o.from)&&e.dispatch({effects:xle.of({pos:o.from,above:!1,create:()=>({dom:rle(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=o=>{let r=t.getBoundingClientRect();if(!(o.clientX>r.left-10&&o.clientXr.top-10&&o.clientY{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(o,r)}}(e,t,n)),t}}function wle(e,t){let n=Object.create(null);for(let r of t){let t=e.lineAt(r.from);(n[t.from]||(n[t.from]=[])).push(r)}let o=[];for(let r in n)o.push(new Ole(n[r]).range(+r));return y3.of(o,!0)}const Sle=G7({class:"cm-gutter-lint",markers:e=>e.state.field($le)}),$le=A2.define({create:()=>y3.empty,update(e,t){e=e.map(t.changes);let n=t.state.facet(Tle).markerFilter;for(let o of t.effects)if(o.is(qie)){let r=o.value;n&&(r=n(r||[])),e=wle(t.state.doc,r.slice(0))}return e}}),xle=t3.define(),Cle=A2.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=Kie(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(((e,t)=>t.is(xle)?t.value:e),e)),provide:e=>D7.from(e)}),kle=P6.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:mle('')},".cm-lint-marker-warning":{content:mle('')},".cm-lint-marker-error":{content:mle('')}}),Ple=[tle,P6.decorations.compute([tle],(e=>{let{selected:t,panel:n}=e.field(tle);return t&&n&&t.from!=t.to?X4.set([nle.range(t.from,t.to)]):X4.none})),N7(ole,{hideOn:Kie}),ble],Tle=C2.define({combine:e=>f3(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function Mle(e={}){return[Tle.of(e),$le,Sle,kle,Cle]}const Ile=(()=>[d9(),f9,d7(),une(),Ste(),V6(),[n7,o7],h3.allowMultipleSelections.of(!0),h3.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:o}=e.newSelection.main,r=n.lineAt(o);if(o>r.from+200)return e;let i=n.sliceString(r.from,o);if(!t.some((e=>e.test(i))))return e;let{state:l}=e,a=-1,s=[];for(let{head:c}of l.selection.ranges){let e=l.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=Fee(l,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],o=Hee(l,t);n!=o&&s.push({from:e.from,to:e.from+n.length,insert:o})}return s.length?[e,{changes:s,sequential:!0}]:e})),Tte(Ete,{fallback:!0}),_te(),[zie,Iie],Wie(),w7(),x7(),m7,Loe(),z6.of([...Bie,...Soe,...wre,...kne,...hte,...Xie,...lle])])(),Ele=(()=>[d7(),une(),V6(),Tte(Ete,{fallback:!0}),z6.of([...Soe,...kne])])();function Ale(e,t={},n){const{props:o,domProps:r,on:i,...l}=t;return Hr(e,{...l,...o,...r,...i?(e=>e?Object.entries(e).reduce(((e,[t,n])=>({...e,[t=`on${t=t.charAt(0).toUpperCase()+t.slice(1)}`]:n})),{}):{})(i):{}},n)}var Dle=jn({name:"CodeMirror",model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,default:""},theme:{type:Object,default:()=>{}},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:()=>{}},lang:{type:Object,default:()=>{}},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,defalt:!1},gutterConfig:{type:Object,default:()=>{}},tag:{type:String,default:"div"}},emits:{"update:modelValue":e=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,t){const n=bt(),o=bt(e.modelValue),r=yt(new P6),i=Lr({get:()=>r.value.hasFocus,set:e=>{e&&r.value.focus()}}),l=Lr({get:()=>r.value.state.selection,set:e=>r.value.dispatch({selection:e})}),a=Lr({get:()=>r.value.state.selection.main.head,set:e=>r.value.dispatch({selection:{anchor:e}})}),s=Lr({get:()=>r.value.state.toJSON(),set:e=>r.value.setState(h3.fromJSON(e))}),c=bt(0),u=bt(0),d=Lr((()=>{const n=new Q2,o=new Q2;return[e.basic?Ile:void 0,e.minimal&&!e.basic?Ele:void 0,P6.updateListener.of((n=>{t.emit("focus",r.value.hasFocus),c.value=r.value.state.doc.length,!n.changes.empty&&n.docChanged&&(e.linter&&(e.forceLinting&&ule(r.value),u.value=e.linter(r.value).length),t.emit("update",n))})),P6.theme(e.theme,{dark:e.dark}),e.wrap?P6.lineWrapping:void 0,e.tab?z6.of([$oe]):void 0,h3.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?o.of(h3.tabSize.of(e.tabSize)):void 0,e.phrases?h3.phrases.of(e.phrases):void 0,h3.readOnly.of(e.readonly),P6.editable.of(!e.disabled),e.lineSeparator?h3.lineSeparator.of(e.lineSeparator):void 0,e.lang?n.of(e.lang):void 0,e.linter?cle(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?Mle(e.gutterConfig):void 0,e.placeholder?(i=e.placeholder,g5.fromClass(class{constructor(e){this.view=e,this.placeholder=i?X4.set([X4.widget({widget:new v7(i),side:1}).range(0)]):X4.none}get decorations(){return this.view.state.doc.length?X4.none:this.placeholder}},{decorations:e=>e.decorations})):void 0,...e.extensions].filter((e=>!!e));var i}));bn(d,(e=>{var t;null==(t=r.value)||t.dispatch({effects:t3.reconfigure.of(e)})}),{immediate:!0}),bn((()=>e.modelValue),(async t=>{r.value.composing||r.value.state.doc.toJSON().join(e.lineSeparator??"\n")===t||r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:t},selection:r.value.state.selection,scrollIntoView:!0})}),{immediate:!0}),Zn((async()=>{let e=o.value;n.value&&(n.value.childNodes[0]&&(o.value,e=n.value.childNodes[0].innerText.trim()),r.value=new P6({parent:n.value,state:h3.create({doc:e,extensions:d.value}),dispatch:e=>{r.value.update([e]),!e.changes.empty&&e.docChanged&&(t.emit("update:modelValue",e.state.doc.toString()),t.emit("change",e.state))}}),await Ft(),t.emit("ready",{view:r.value,state:r.value.state,container:n.value}))})),Gn((()=>{r.value.destroy(),t.emit("destroy")}));const p={editor:n,view:r,cursor:a,selection:l,focus:i,length:c,json:s,diagnosticCount:u,dom:r.value.contentDOM,lint:()=>{e.linter&&r.value&&(e.forceLinting&&ule(r.value),u.value=function(e){let t=e.field(tle,!1);return t?t.diagnostics.size:0}(r.value.state))},forceReconfigure:()=>{var e,t;null==(e=r.value)||e.dispatch({effects:t3.reconfigure.of([])}),null==(t=r.value)||t.dispatch({effects:t3.appendConfig.of(d.value)})},getRange:(e,t)=>r.value.state.sliceDoc(e,t),getLine:e=>r.value.state.doc.line(e+1).text,lineCount:()=>r.value.state.doc.lines,getCursor:()=>r.value.state.selection.main.head,listSelections:()=>{let e;return null!==(e=r.value.state.selection.ranges)&&void 0!==e?e:[]},getSelection:()=>{let e;return null!==(e=r.value.state.sliceDoc(r.value.state.selection.main.from,r.value.state.selection.main.to))&&void 0!==e?e:""},getSelections:()=>{const e=r.value.state;return e?e.selection.ranges.map((t=>e.sliceDoc(t.from,t.to))):[]},somethingSelected:()=>r.value.state.selection.ranges.some((e=>!e.empty)),replaceRange:(e,t,n)=>r.value.dispatch({changes:{from:t,to:n,insert:e}}),replaceSelection:e=>r.value.dispatch(r.value.state.replaceSelection(e)),setCursor:e=>r.value.dispatch({selection:{anchor:e}}),setSelection:(e,t)=>r.value.dispatch({selection:{anchor:e,head:t}}),setSelections:(e,t)=>r.value.dispatch({selection:S2.create(e,t)}),extendSelectionsBy:e=>r.value.dispatch({selection:S2.create(l.value.ranges.map((t=>t.extend(e(t)))))})};return t.expose(p),p},render(){return Ale(this.$props.tag,{ref:"editor",class:"vue-codemirror"},this.$slots.default?Ale("aside",{style:"display: none;","aria-hidden":"true"},"function"==typeof(e=this.$slots.default)?e():e):void 0);var e}});const Rle="#e06c75",zle="#abb2bf",Ble="#7d8799",jle="#d19a66",Nle="#2c313a",_le="#282c34",Qle="#353a42",Lle="#528bff",Hle=[P6.theme({"&":{color:zle,backgroundColor:_le},".cm-content":{caretColor:Lle},".cm-cursor, .cm-dropCursor":{borderLeftColor:Lle},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:zle},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:_le,color:Ble,border:"none"},".cm-activeLineGutter":{backgroundColor:Nle},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Qle},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Qle,borderBottomColor:Qle},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Nle,color:zle}}},{dark:!0}),Tte(xte.define([{tag:Oee.keyword,color:"#c678dd"},{tag:[Oee.name,Oee.deleted,Oee.character,Oee.propertyName,Oee.macroName],color:Rle},{tag:[Oee.function(Oee.variableName),Oee.labelName],color:"#61afef"},{tag:[Oee.color,Oee.constant(Oee.name),Oee.standard(Oee.name)],color:jle},{tag:[Oee.definition(Oee.name),Oee.separator],color:zle},{tag:[Oee.typeName,Oee.className,Oee.number,Oee.changed,Oee.annotation,Oee.modifier,Oee.self,Oee.namespace],color:"#e5c07b"},{tag:[Oee.operator,Oee.operatorKeyword,Oee.url,Oee.escape,Oee.regexp,Oee.link,Oee.special(Oee.string)],color:"#56b6c2"},{tag:[Oee.meta,Oee.comment],color:Ble},{tag:Oee.strong,fontWeight:"bold"},{tag:Oee.emphasis,fontStyle:"italic"},{tag:Oee.strikethrough,textDecoration:"line-through"},{tag:Oee.link,color:Ble,textDecoration:"underline"},{tag:Oee.heading,fontWeight:"bold",color:Rle},{tag:[Oee.atom,Oee.bool,Oee.special(Oee.variableName)],color:jle},{tag:[Oee.processingInstruction,Oee.string,Oee.inserted],color:"#98c379"},{tag:Oee.invalid,color:"#ffffff"}]))];var Fle={};class Wle{constructor(e,t,n,o,r,i,l,a,s,c=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=o,this.pos=r,this.score=i,this.buffer=l,this.bufferBase=a,this.curContext=s,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let o=e.parser.context;return new Wle(e,[],t,n,n,0,[],0,o?new Xle(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,o=65535&e,{parser:r}=this.p,i=r.dynamicPrecedence(o);if(i&&(this.score+=i),0==n)return this.pushState(r.getGoto(this.state,o,!0),this.reducePos),o=2e3&&!(null===(t=this.p.parser.nodeSet.types[o])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=s):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(o,a)}storeNode(e,t,n,o=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[o-4]&&e.buffer[o-1]>-1){if(t==n)return;if(e.buffer[o-2]>=t)return void(e.buffer[o-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,o>4&&(o-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=o}else this.buffer.push(e,t,n,o)}shift(e,t,n,o){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:i}=this.p;(o>this.pos||t<=i.maxNode)&&(this.pos=o,i.stateFlag(r,1)||(this.reducePos=o)),this.pushState(r,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,o,4)}else this.pos=o,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,o,4)}apply(e,t,n,o){65536&e?this.reduce(e):this.shift(e,t,n,o)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(t,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),o=e.bufferBase+t;for(;e&&o==e.bufferBase;)e=e.parent;return new Wle(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Yle(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let o,r=0;r1&t&&e==o))||n.push(t[e],o)}t=n}let n=[];for(let o=0;o>19,o=65535&t,r=this.stack.length-3*n;if(r<0||e.getGoto(this.stack[r],o,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(o,r)=>{if(!t.includes(o))return t.push(o),e.allActions(o,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-r;if(n>1){let o=65535&t,r=this.stack.length-3*n;if(r>=0&&e.getGoto(this.stack[r],o,!1)>=0)return n<<19|65536|o}}else{let e=n(t,r+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Xle{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class Yle{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let o=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=o}}class Zle{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Zle(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new Zle(this.stack,this.pos,this.index)}}function Vle(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let o=0,r=0;o=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),i+=r,n)break;i*=46}n?n[r++]=i:n=new t(i)}return n}class Ule{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Kle=new Ule;class Gle{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Kle,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,o=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(o==this.ranges.length-1)return null;let e=this.ranges[++o];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,o=this.chunkOff+e;if(o>=0&&o=this.chunk2Pos&&to.to&&(this.chunk2=this.chunk2.slice(0,o.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Kle,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let o of this.ranges){if(o.from>=t)break;o.to>e&&(n+=this.input.read(Math.max(o.from,e),Math.min(o.to,t)))}return n}}class qle{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;tae(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}qle.prototype.contextual=qle.prototype.fallback=qle.prototype.extend=!1;class Jle{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?Vle(e):e}token(e,t){let n=e.pos,o=0;for(;;){let n=e.next<0,r=e.resolveOffset(1,1);if(tae(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||o++,null==r)break;e.reset(r,e.token)}o&&(e.reset(n,e.token),e.acceptToken(this.elseToken,o))}}Jle.prototype.contextual=qle.prototype.fallback=qle.prototype.extend=!1;class eae{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function tae(e,t,n,o,r,i){let l=0,a=1<0){let n=e[d];if(s.allows(n)&&(-1==t.token.value||t.token.value==n||oae(n,t.token.value,r,i))){t.acceptToken(n);break}}let o=t.next,c=0,u=e[l+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c>1,i=n+r+(r<<1),a=e[i],s=e[i+1]||65536;if(o=s)){l=e[i+2],t.advance();continue e}c=r+1}}break}l=e[n+3*u-1]}}function nae(e,t,n){for(let o,r=t;65535!=(o=e[r]);r++)if(o==n)return r-t;return-1}function oae(e,t,n,o){let r=nae(n,o,t);return r<0||nae(n,o,e)t)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:e.length}}class aae{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?lae(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?lae(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=i,null;if(r instanceof P9){if(i==e){if(i=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+r.length}}}class sae{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new Ule))}getActions(e){let t=0,n=null,{parser:o}=e.p,{tokenizers:r}=o,i=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let s=0;sc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!o.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new Ule,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Ule,{pos:n,p:o}=e;return t.start=n,t.end=Math.min(n+1,o.stream.end),t.value=n==o.stream.end?o.parser.eofTerm:0,t}updateCachedToken(e,t,n){let o=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(o,e),n),e.value>-1){let{parser:t}=n.p;for(let o=0;o=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,t,n,o){for(let r=0;r4*e.bufferLength?new aae(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,o=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;io)r.push(l);else{if(this.advanceStack(l,r,n))continue;{e||(e=[],t=[]),e.push(l);let n=this.tokens.getMainToken(l);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>o))&&this.recovering--}else if(r.length>1){e:for(let e=0;e500&&o.buffer.length>500){if(!((t.score-o.score||t.buffer.length-o.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(n--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let i=1;ithis.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let i=this.fragments.nodeAt(o);i;){let o=this.parser.nodeSet.types[i.type.id]==i.type?r.getGoto(e.state,i.type.id):-1;if(o>-1&&i.length&&(!t||(i.prop(b9.contextHash)||0)==n))return e.useNode(i,o),!0;if(!(i instanceof P9)||0==i.children.length||i.positions[0]>0)break;let l=i.children[0];if(!(l instanceof P9&&0==i.positions[0]))break;i=l}}let i=r.stateSlot(e.state,4);if(i>0)return e.reduce(i),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let a=0;ao?t.push(u):n.push(u)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return uae(e,t),!0}}runRecovery(e,t,n){let o=null,r=!1;for(let i=0;i ":"";if(l.deadEnd){if(r)continue;if(r=!0,l.restart(),this.advanceFully(l,n))continue}let u=l.split(),d=c;for(let e=0;u.forceReduce()&&e<10&&!this.advanceFully(u,n);e++)rae&&(d=this.stackID(u)+" -> ");for(let e of l.recoverByInsert(a))this.advanceFully(e,n);this.stream.end>l.pos?(s==l.pos&&(s++,a=0),l.recoverByDelete(a,s),uae(l,n)):(!o||o.scoree;class hae extends Z9{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[t][1])),o=[];for(let l=0;l=0)r(n,e,l[t++]);else{let o=l[t+-n];for(let i=-n;i>0;i--)r(l[t++],e,o);t++}}}this.nodeSet=new S9(t.map(((t,r)=>w9.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:o[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=g9;let i=Vle(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l"number"==typeof e?new qle(i,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let o=new cae(this,e,t,n);for(let r of this.wrappers)o=r(o,e,t,n);return o}getGoto(e,t,n=!1){let o=this.goto;if(t>=o[0])return-1;for(let r=o[t+1];;){let t=o[r++],i=1&t,l=o[r++];if(i&&n)return l;for(let n=r+(t>>1);r0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),o=n?t(n):void 0;for(let r=this.stateSlot(e,1);null==o;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=fae(this.data,r+2)}o=t(fae(this.data,r+1))}return o}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=fae(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(hae.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,o)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let i=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[o]=gae(i),i}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let o=null;for(let r=0;re.external(n,o)<<1|t}return e.get}const mae=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vae=new class{constructor(e){this.start=e.start,this.shift=e.shift||pae,this.reduce=e.reduce||pae,this.reuse=e.reuse||pae,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}({start:!1,shift:(e,t)=>3==t||4==t||311==t?e:312==t,strict:!1}),bae=new eae(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(309)}),{contextual:!0,fallback:!0}),yae=new eae(((e,t)=>{let n,{next:o}=e;mae.indexOf(o)>-1||(47!=o||47!=(n=e.peek(1))&&42!=n)&&(125==o||59==o||-1==o||t.context||e.acceptToken(308))}),{contextual:!0}),Oae=new eae(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0}),wae=J9({"get set async static":Oee.modifier,"for while do if else switch try catch finally return throw break continue default case":Oee.controlKeyword,"in of await yield void typeof delete instanceof":Oee.operatorKeyword,"let var const using function class extends":Oee.definitionKeyword,"import export from":Oee.moduleKeyword,"with debugger as new":Oee.keyword,TemplateString:Oee.special(Oee.string),super:Oee.atom,BooleanLiteral:Oee.bool,this:Oee.self,null:Oee.null,Star:Oee.modifier,VariableName:Oee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Oee.function(Oee.variableName),VariableDefinition:Oee.definition(Oee.variableName),Label:Oee.labelName,PropertyName:Oee.propertyName,PrivatePropertyName:Oee.special(Oee.propertyName),"CallExpression/MemberExpression/PropertyName":Oee.function(Oee.propertyName),"FunctionDeclaration/VariableDefinition":Oee.function(Oee.definition(Oee.variableName)),"ClassDeclaration/VariableDefinition":Oee.definition(Oee.className),PropertyDefinition:Oee.definition(Oee.propertyName),PrivatePropertyDefinition:Oee.definition(Oee.special(Oee.propertyName)),UpdateOp:Oee.updateOperator,"LineComment Hashbang":Oee.lineComment,BlockComment:Oee.blockComment,Number:Oee.number,String:Oee.string,Escape:Oee.escape,ArithOp:Oee.arithmeticOperator,LogicOp:Oee.logicOperator,BitOp:Oee.bitwiseOperator,CompareOp:Oee.compareOperator,RegExp:Oee.regexp,Equals:Oee.definitionOperator,Arrow:Oee.function(Oee.punctuation),": Spread":Oee.punctuation,"( )":Oee.paren,"[ ]":Oee.squareBracket,"{ }":Oee.brace,"InterpolationStart InterpolationEnd":Oee.special(Oee.brace),".":Oee.derefOperator,", ;":Oee.separator,"@":Oee.meta,TypeName:Oee.typeName,TypeDefinition:Oee.definition(Oee.typeName),"type enum interface implements namespace module declare":Oee.definitionKeyword,"abstract global Privacy readonly override":Oee.modifier,"is keyof unique infer":Oee.operatorKeyword,JSXAttributeValue:Oee.attributeValue,JSXText:Oee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Oee.angleBracket,"JSXIdentifier JSXNameSpacedName":Oee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Oee.attributeName,"JSXBuiltin/JSXIdentifier":Oee.standard(Oee.tagName)}),Sae={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},$ae={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},xae={__proto__:null,"<":139},Cae=hae.deserialize({version:14,states:"$RQSO'#CcO>cQSO'#HZO>kQSO'#HaO>kQSO'#HcO`QUO'#HeO>kQSO'#HgO>kQSO'#HjO>pQSO'#HpO>uQ(C]O'#HvO%[QUO'#HxO?QQ(C]O'#HzO?]Q(C]O'#H|O9kQ(C[O'#IOO?hQ(CjO'#CgO@jQWO'#DgQOQSOOO%[QUO'#D}OAQQSO'#EQO:RQ,UO'#EhOA]QSO'#EhOAhQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Jm'#JmO%[QUO'#JmOOQO'#Jq'#JqOOQO'#Ia'#IaOBhQWO'#EaOOQ(CW'#E`'#E`OCdQ(C`O'#EaOCnQWO'#ETOOQO'#Jp'#JpODSQWO'#JqOEaQWO'#ETOCnQWO'#EaPEnO?MpO'#C`POOO)CDt)CDtOOOO'#IW'#IWOEyOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFXO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFgO07`O,59vOOQ(CY,59v,59vOFuQUO'#I[OGYQSO'#JkOI[QbO'#JkO+}QUO'#JkOIcQSO,59|OIyQSO'#EjOJWQSO'#JyOJcQSO'#JxOJcQSO'#JxOJkQSO,5;WOJpQSO'#JwOOQ(CY,5:X,5:XOJwQUO,5:XOLxQ(CjO,5:cOMiQSO,5:kONSQ(C[O'#JvONZQSO'#JuO9ZQSO'#JuONoQSO'#JuONwQSO,5;VON|QSO'#JuO!#UQbO'#JjOOQ(CY'#Cg'#CgO%[QUO'#EPO!#tQ`O,5:pOOQO'#Jr'#JrOOQO-ElOOQQ'#J_'#J_OOQQ,5>m,5>mOOQQ-EpQSO'#HPO9aQSO'#HRO!CgQSO'#HRO:RQ,UO'#HTO!ClQSO'#HTOOQQ,5=i,5=iO!CqQSO'#HUO!DSQSO'#CmO!DXQSO,58}O!DcQSO,58}O!FhQUO,58}OOQQ,58},58}O!FxQ(C[O,58}O%[QUO,58}O!ITQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IkQSO,5=uO`QUO,5={O`QUO,5=}O!IpQSO,5>PO`QUO,5>RO!IuQSO,5>UO!IzQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9kQ(C[O,5>dOOQQ,5>f,5>fO!NUQSO,5>fOOQQ,5>h,5>hO!NUQSO,5>hOOQQ,5>j,5>jO!NZQWO'#DYO%[QUO'#JmO!NxQWO'#JmO# gQWO'#DhO# xQWO'#DhO#$ZQUO'#DhO#$bQSO'#JlO#$jQSO,5:RO#$oQSO'#EnO#$}QSO'#JzO#%VQSO,5;XO#%[QWO'#DhO#%iQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%pQSO,5:lO>pQSO,5;SO!@}QWO,5;SO!AVQ,UO,5;SO:RQ,UO,5;SO#%xQSO,5@XO#%}Q!LQO,5:pOOQO-E<_-E<_O#'TQ(C`O,5:{OCnQWO,5:oO#'_QWO,5:oOCnQWO,5:{O!@rQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'lQ(C[O,5:{O#'wQ(C[O,5:{O!@}QWO,5:oOOQO,5;R,5;RO#(VQ(C[O,5:{POOO'#IU'#IUP#(kO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#)VQUO'#I[OOQO-EpQ(CjO1G0yO#>wQ(CjO1G0yO#@oQ(CjO1G0yO#CoQ$IUO'#CgO#EmQ$IUO1G1[O#EtQ$IUO'#JjO!,lQSO1G1bO#FUQ(CjO,5?SOOQ(CW-EkQSO1G3kO$1UQUO1G3mO$5YQUO'#HlOOQQ1G3p1G3pO$5gQSO'#HrO>pQSO'#HtOOQQ1G3v1G3vO$5oQUO1G3vO9kQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9kQ(C[O1G4QO9kQ(C[O1G4SO$9vQSO,5@XO!*fQUO,5;YO9ZQSO,5;YO>pQSO,5:SO!*fQUO,5:SO!@}QWO,5:SO$9{Q$IUO,5:SOOQO,5;Y,5;YO$:VQWO'#I]O$:mQSO,5@WOOQ(CY1G/m1G/mO$:uQWO'#IcO$;PQSO,5@fOOQ(CW1G0s1G0sO# xQWO,5:SOOQO'#I`'#I`O$;XQWO,5:nOOQ(CY,5:n,5:nO#%sQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>pQSO1G0nO!@}QWO1G0nO!AVQ,UO1G0nOOQ(CW1G5s1G5sO!@rQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$;`Q(C[O1G0gO$;kQ(C[O1G0gO!@}QWO1G0ZOCnQWO1G0ZO$;yQ(C[O1G0gOOQO1G0Z1G0ZO$<_Q(CjO1G0gPOOO-EvO$<{QSO1G5qO$=TQSO1G6OO$=]QbO1G6PO9ZQSO,5>|O$=gQ(CjO1G5|O%[QUO1G5|O$=wQ(C[O1G5|O$>YQSO1G5{O$>YQSO1G5{O9ZQSO1G5{O$>bQSO,5?PO9ZQSO,5?POOQO,5?P,5?PO$>vQSO,5?PO$'TQSO,5?POOQO-EWOOQQ,5>W,5>WO%[QUO'#HmO%6UQSO'#HoOOQQ,5>^,5>^O9ZQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%6ZQWO1G5sO%6oQ$IUO1G0tO%6yQSO1G0tOOQO1G/n1G/nO%7UQ$IUO1G/nO>pQSO1G/nO!*fQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EpQSO7+&YO!@}QWO7+&YOOQO7+%u7+%uO$<_Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%7`Q(C[O7+&RO!@rQ(C[O7+%uO!@}QWO7+%uO%7kQ(C[O7+&RO%7yQ(CjO7++hO%[QUO7++hO%8ZQSO7++gO%8ZQSO7++gOOQO1G4k1G4kO9ZQSO1G4kO%8cQSO1G4kOOQO7+%z7+%zO#%sQSO<xOOQO-E<[-E<[O%DoQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%DyQSO1G5uOOQ(CY<XOOQQ,5>Z,5>ZO&4ZQSO1G3xO9ZQSO7+&`O!*fQUO7+&`OOQO7+%Y7+%YO&4`Q$IUO1G6PO>pQSO7+%YOOQ(CY<pQSO<qQbO1G4eO&>{Q$IUO7+&ZO&APQ$IUO,5=QO&CWQ$IUO,5=SO&ChQ$IUO,5=QO&CxQ$IUO,5=SO&DYQ$IUO,59oO&F]Q$IUO,5pQSO7+)dO'%_QSO<{AN>{O%[QUOAN?XOOQO<a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#IpP#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:vae,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[wae],skippedNodes:[0,3,4,270],repeatNodeCount:37,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'}pOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'}pOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'}p(Q!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'}p(Q!b's(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(O#S$e&j't(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'}p(Q!b't(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'|$(n$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ(Q!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'}p(Q!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS(Q!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'}pOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'}pOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'}p(Q!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j(Q!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(Q!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(Q!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(Q!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j(Q!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'}p(Q!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#Sae[e]||-1},{term:334,get:e=>$ae[e]||-1},{term:68,get:e=>xae[e]||-1}],tokenPrec:14574}),kae=[Cie("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Cie("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Cie("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Cie("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Cie("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Cie("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Cie("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Cie("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Cie("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Cie('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Cie('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Pae=kae.concat([Cie("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Cie("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Cie("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Tae=new X9,Mae=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Iae(e){return(t,n)=>{let o=t.node.getChild("VariableDefinition");return o&&n(o,e),!0}}const Eae=["FunctionDeclaration"],Aae={FunctionDeclaration:Iae("function"),ClassDeclaration:Iae("class"),ClassExpression:()=>!0,EnumDeclaration:Iae("constant"),TypeAliasDeclaration:Iae("type"),NamespaceDeclaration:Iae("namespace"),VariableDefinition(e,t){e.matchContext(Eae)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Dae(e,t){let n=Tae.get(t);if(n)return n;let o=[],r=!0;function i(t,n){let r=e.sliceString(t.from,t.to);o.push({label:r,type:n})}return t.cursor(C9.IncludeAnonymous).iterate((t=>{if(r)r=!1;else if(t.name){let e=Aae[t.name];if(e&&e(t,i)||Mae.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Dae(e,t.node))o.push(n);return!1}})),Tae.set(t,o),o}const Rae=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,zae=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Bae(e){let t=Tee(e.state).resolveInner(e.pos,-1);if(zae.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Rae.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let o=[];for(let r=t;r;r=r.parent)Mae.has(r.name)&&(o=o.concat(Dae(e.state.doc,r)));return{options:o,from:n?t.from:e.pos,validFor:Rae}}const jae=Pee.define({name:"javascript",parser:Cae.configure({props:[Xee.add({IfStatement:Jee({except:/^\s*({|else\b)/}),TryStatement:Jee({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),o=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:o?1:2)*e.unit},Block:Gee({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Jee({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),tte.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":function(e){let t=e.firstChild,n=e.lastChild;return t&&t.to({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Nae={test:e=>/^JSX/.test(e.name),facet:$ee({commentTokens:{block:{open:"{/*",close:"*/}"}}})},_ae=jae.configure({dialect:"ts"},"typescript"),Qae=jae.configure({dialect:"jsx",props:[xee.add((e=>e.isTop?[Nae]:void 0))]}),Lae=jae.configure({dialect:"jsx ts",props:[xee.add((e=>e.isTop?[Nae]:void 0))]},"typescript");let Hae=e=>({label:e,type:"keyword"});const Fae="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Hae),Wae=Fae.concat(["declare","implements","private","protected","public"].map(Hae));function Xae(e={}){let t=e.jsx?e.typescript?Lae:Qae:e.typescript?_ae:jae,n=e.typescript?Pae.concat(Wae):kae.concat(Fae);return new Nee(t,[jae.data.of({autocomplete:(o=zae,r=Ire(n),e=>{for(let t=Tee(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(o.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return r(e)})}),jae.data.of({autocomplete:Bae}),e.jsx?Vae:[]]);var o,r}function Yae(e,t,n=e.length){for(let o=null==t?void 0:t.firstChild;o;o=o.nextSibling)if("JSXIdentifier"==o.name||"JSXBuiltin"==o.name||"JSXNamespacedName"==o.name||"JSXMemberExpression"==o.name)return e.sliceString(o.from,Math.min(o.to,n));return""}const Zae="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Vae=P6.inputHandler.of(((e,t,n,o,r)=>{if((Zae?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=o&&"/"!=o||!jae.isActiveAt(e.state,t,-1))return!1;let i=r(),{state:l}=i,a=l.changeByRange((e=>{var t;let n,{head:r}=e,i=Tee(l).resolveInner(r-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),l.doc.sliceString(r-1,r)!=o||"JSXAttributeValue"==i.name&&i.to>r);else{if(">"==o&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:r,insert:""}};if("/"==o&&"JSXStartCloseTag"==i.name){let e=i.parent,o=e.parent;if(o&&e.from==r-2&&((n=Yae(l.doc,o.firstChild,r))||"JSXFragmentTag"==(null===(t=o.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:S2.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==o){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&!/^\/?>|^<\//.test(l.doc.sliceString(r,r+2))&&(n=Yae(l.doc,t,r)))return{range:e,changes:{from:r,insert:``}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([i,l.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),Uae=m1(jn({__name:"BranchDrawer",props:{open:q0().def(!1),modelValue:J0().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=bt(!1),i=bt({}),l=bt({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"520px",overflowY:"auto",overflowX:"hidden"}});bn((()=>o.open),(e=>{r.value=e}),{immediate:!0}),bn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const a=()=>{n("update:modelValue",i.value)},s=()=>{c(),n("save",i.value)},c=()=>{n("update:open",!1),r.value=!1};return(e,t)=>{const n=pn("a-typography-paragraph"),o=pn("a-radio"),u=pn("a-radio-group"),d=pn("a-form-item"),p=pn("a-form"),h=pn("a-button"),f=pn("a-drawer");return lr(),dr(f,{open:r.value,"onUpdate:open":t[3]||(t[3]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:c},{title:ln((()=>[br(n,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:a},{editableEnterIcon:ln((()=>[Or(Z(null))])),_:1},8,["content"])])),footer:ln((()=>[br(h,{type:"primary",onClick:s},{default:ln((()=>[Or("保存")])),_:1}),br(h,{style:{"margin-left":"12px"},onClick:c},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(p,{layout:"vertical",model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(d,{name:"expressionType",label:"表达式类型"},{default:ln((()=>[br(u,{value:i.value.expressionType,"onUpdate:value":t[1]||(t[1]=e=>i.value.expressionType=e)},{default:ln((()=>[br(o,{value:1},{default:ln((()=>[Or("SpEl")])),_:1}),br(o,{value:2},{default:ln((()=>[Or("Aviator")])),_:1}),br(o,{value:3},{default:ln((()=>[Or("QL")])),_:1})])),_:1},8,["value"])])),_:1}),br(d,{name:"nodeExpression",label:"条件表达式"},{default:ln((()=>[br(St(Dle),{modelValue:i.value.nodeExpression,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value.nodeExpression=e),theme:l.value,basic:"",lang:St(Xae)(),extensions:[St(Hle)]},null,8,["modelValue","theme","lang","extensions"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),[["__scopeId","data-v-81f091c8"]]),Kae={class:"branch-wrap"},Gae={class:"branch-box-wrap"},qae={class:"branch-box"},Jae={class:"condition-node"},ese={class:"condition-node-box"},tse=["onClick"],nse=["onClick"],ose={class:"title"},rse={class:"node-title"},ise={class:"priority-title"},lse={class:"content"},ase={key:0,style:{"white-space":"pre"}},sse={key:1,class:"placeholder"},cse=["onClick"],use={key:1,class:"top-left-cover-line"},dse={key:2,class:"bottom-left-cover-line"},pse={key:3,class:"top-right-cover-line"},hse={key:4,class:"bottom-right-cover-line"},fse=m1(jn({__name:"BranchNode",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0});const i=()=>{const e=r.value.conditionNodes.length+1;r.value.conditionNodes.push({nodeName:"条件"+e,priorityLevel:e,expressionType:1,nodeExpression:void 0})},l=(e,t)=>{e.childNode?l(e.childNode,t):e.childNode=t},a=(e,t=1)=>{var o;r.value.conditionNodes[e]=r.value.conditionNodes.splice(e+t,1,r.value.conditionNodes[e])[0],null==(o=r.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",r.value)},s=(e,t)=>{const{expressionType:n,nodeExpression:o}=e.conditionNodes[t];return o?`表达式类型: ${y1[n]}\n节点表达式: ${o.length>10?o.substring(0,10)+"...":o}`:t==e.conditionNodes.length-1&&"其他条件进入此流程"},c=bt(0),u=bt(!1),d=bt({}),p=e=>{r.value.conditionNodes[c.value]=e,n("update:modelValue",r.value)};return(t,h)=>{const f=pn("a-button");return lr(),ur("div",Kae,[vr("div",Gae,[vr("div",qae,[br(f,{class:"add-branch",primary:"",onClick:i},{default:ln((()=>[Or("添加条件")])),_:1}),(lr(!0),ur(er,null,no(r.value.conditionNodes,((i,p)=>(lr(),ur("div",{class:"col-box",key:p},[vr("div",Jae,[vr("div",ese,[vr("div",{class:"auto-judge",onClick:e=>{return t=p,void(o.disabled||(c.value=t,d.value=JSON.parse(JSON.stringify(r.value.conditionNodes[t])),u.value=!0));var t}},[0!=p?(lr(),ur("div",{key:0,class:"sort-left",onClick:_i((e=>a(p,-1)),["stop"])},[br(St(LD))],8,nse)):wr("",!0),vr("div",ose,[vr("span",rse,Z(i.nodeName),1),vr("span",ise,"优先级"+Z(i.priorityLevel),1),e.disabled?wr("",!0):(lr(),dr(St(qb),{key:0,class:"close",onClick:_i((e=>{return t=p,null==(o=r.value.conditionNodes)||o.splice(t,1),void(1===r.value.conditionNodes.length&&(r.value.childNode&&(r.value.conditionNodes[0].childNode?l(r.value.conditionNodes[0].childNode,r.value.childNode):r.value.conditionNodes[0].childNode=r.value.childNode),Ft((()=>{n("update:modelValue",r.value.conditionNodes[0].childNode)}))));var t,o}),["stop"])},null,8,["onClick"]))]),vr("div",lse,[s(r.value,p)?(lr(),ur("span",ase,Z(s(r.value,p)),1)):(lr(),ur("span",sse," 请设置条件 "))]),p!=r.value.conditionNodes.length-1?(lr(),ur("div",{key:1,class:"sort-right",onClick:_i((e=>a(p)),["stop"])},[br(St(sk))],8,cse)):wr("",!0)],8,tse),br(v1,{disabled:e.disabled,modelValue:i.childNode,"onUpdate:modelValue":e=>i.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),i.childNode?oo(t.$slots,"default",{key:0,node:i},void 0,!0):wr("",!0),0==p?(lr(),ur("div",use)):wr("",!0),0==p?(lr(),ur("div",dse)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",pse)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",hse)):wr("",!0)])))),128))]),br(v1,{disabled:e.disabled,modelValue:r.value.childNode,"onUpdate:modelValue":h[0]||(h[0]=e=>r.value.childNode=e)},null,8,["disabled","modelValue"])]),br(Uae,{open:u.value,"onUpdate:open":h[1]||(h[1]=e=>u.value=e),modelValue:d.value,"onUpdate:modelValue":h[2]||(h[2]=e=>d.value=e),onSave:p},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-682b7620"]]),gse=jn({__name:"NodeWrap",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});return bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>{const o=pn("node-wrap",!0);return lr(),ur(er,null,[1==r.value.nodeType?(lr(),dr(F1,{key:0,modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},{default:ln((t=>[t.node?(lr(),dr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):wr("",!0)])),_:1},8,["modelValue","disabled"])):wr("",!0),2==r.value.nodeType?(lr(),dr(fse,{key:1,modelValue:r.value,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value=e),disabled:e.disabled},{default:ln((t=>[t.node?(lr(),dr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):wr("",!0)])),_:1},8,["modelValue","disabled"])):wr("",!0),r.value.childNode?(lr(),dr(o,{key:2,modelValue:r.value.childNode,"onUpdate:modelValue":n[2]||(n[2]=e=>r.value.childNode=e),disabled:e.disabled},null,8,["modelValue","disabled"])):wr("",!0)],64)}}}),mse="*",vse="/",bse="-",yse=",",Ose="?",wse="L",Sse="W",$se="#",xse="",Cse="LW",kse=(new Date).getFullYear();function Pse(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)}const{hasOwnProperty:Tse}=Object.prototype;function Mse(e,t){return Object.keys(t).forEach((n=>{!function(e,t,n){const o=t[n];(function(e){return null!=e})(o)&&(Tse.call(e,n)&&function(e){return null!==e&&"object"==typeof e}(o)?e[n]=Mse(Object(e[n]),t[n]):e[n]=o)}(e,t,n)})),e}const Ise={common:{from:"从",fromThe:"从第",start:"开始",every:"每",between:"在",and:"到",end:"之间的",specified:"固定的",symbolTip:"通配符支持",valTip:"值为",nearest:"最近的",current:"本",nth:"第",index:"个",placeholder:"请选择",placeholderMulti:"请选择(支持多选)",help:"帮助",wordNumError:"格式不正确,必须有6或7位",reverse:"反向解析",reset:"重置",tagError:"表达式不正确",numError:"含有非法数字",use:"使用",inputPlaceholder:"Cron表达式"},custom:{unspecified:"不固定",workDay:"工作日",lastTh:"倒数第",lastOne:"最后一个",latestWorkday:"最后一个工作日",empty:"不配置"},second:{title:"秒",val:"0 1 2...59"},minute:{title:"分",val:"0 1 2...59"},hour:{title:"时",val:"0 1 2...23"},dayOfMonth:{timeUnit:"日",title:"日",val:"1 2...31"},month:{title:"月",val:"1 2...12,或12个月的缩写(JAN ... DEC)"},dayOfWeek:{timeUnit:"日",title:"周",val:"1 2...7或星期的缩写(SUN ... SAT)",SUN:"星期天",MON:"星期一",TUE:"星期二",WED:"星期三",THU:"星期四",FRI:"星期五",SAT:"星期六"},year:{title:"年",val:kse+" ... 2099"},period:{startError:"开始格式不符",cycleError:"循环格式不符"},range:{lowerError:"下限格式不符",upperError:"上限格式不符",lowerBiggerThanUpperError:"下限不能比上限大"},weekDay:{weekDayNumError:"周数格式不符",nthError:"天数格式不符"},app:{title:"基于Vue&Element-ui实现的Cron表达式生成器",next10FireTimes:"最近10次执行时刻"},daysOfWeekOptions:[{label:"星期天",value:1},{label:"星期一",value:2},{label:"星期二",value:3},{label:"星期三",value:4},{label:"星期四",value:5},{label:"星期五",value:6},{label:"星期六",value:7}]},Ese=bt("zh-CN"),Ase=rt({"zh-CN":Ise}),Dse={messages:()=>Ase[Ese.value],use(e,t){Ese.value=e,this.add({[e]:t})},add(e={}){Mse(Ase,e)}},Rse=Dse.messages(),zse={class:"cron-body-row"},Bse={class:"symbol"},jse=m1(jn({components:{Radio:BM},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:mse},tag:{type:String,default:mse},onChange:{type:Function}},setup:e=>({Message:Rse,change:function(){e.onChange&&e.onChange({tag:mse,type:mse})},EVERY:mse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",zse,[br(l,{checked:e.type===e.EVERY,onClick:e.change},{default:ln((()=>[vr("span",Bse,Z(e.EVERY),1),Or(Z(e.Message.common.every)+Z(e.timeUnit),1)])),_:1},8,["checked","onClick"])])}]]),Nse=Dse.messages(),_se={class:"cron-body-row"},Qse={class:"symbol"},Lse=m1(jn({components:{Radio:BM,InputNumber:yL},props:{startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:vse},tag:{type:String,default:vse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(0);n.value`${n.value}${vse}${o.value}`));function i(t){if(e.type!==vse)return;const r=t.split(vse);2===r.length?(r[0]===mse&&(r[0]=0),!Pse(r[0])||parseInt(r[0])e.startConfig.max?PB.error(`${Nse.period.startError}:${r[0]}`):!Pse(r[1])||parseInt(r[1])e.cycleConfig.max?PB.error(`${Nse.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1]))):PB.error(`${Nse.common.tagError}:${t}`)}return Zn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Nse,type_:t,start:n,cycle:o,tag_:r,PERIOD:vse,change:function(){e.onChange&&e.onChange({type:vse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",_se,[br(a,{checked:e.type===e.PERIOD,onChange:e.change},{default:ln((()=>[vr("span",Qse,Z(e.tag_),1),Or(" "+Z(e.Message.common.fromThe)+" ",1),br(l,{size:"small",value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),min:e.startConfig.min,step:e.startConfig.step,max:e.startConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit)+Z(e.Message.common.start)+Z(e.Message.common.every)+" ",1),br(l,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Hse=Dse.messages(),Fse={class:"cron-body-row"},Wse={class:"symbol"},Xse=m1(jn({components:{Radio:BM,InputNumber:yL},props:{upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:bse},tag:{type:String,default:bse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(0);o.value`${o.value}${bse}${n.value}`));function l(t){if(e.type!==bse)return;const r=t.split(bse);2===r.length&&(r[0]===bse&&(r[0]=0),!Pse(r[0])||parseInt(r[0])e.lowerConfig.max||!Pse(r[1])||parseInt(r[1])e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Zn((()=>{l(e.tag)})),bn((()=>e.tag),(e=>{l(e)}),{deep:!0}),bn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:Hse,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:bse,change:function(){e.onChange&&e.onChange({type:bse,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",Fse,[br(a,{checked:e.type===e.RANGE,onChange:e.change},{default:ln((()=>[vr("span",Wse,Z(e.tag_),1),Or(" "+Z(e.Message.common.between)+" ",1),br(l,{size:"small",value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),min:e.lowerConfig.min,step:e.lowerConfig.step,max:e.upper_,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit)+Z(e.Message.common.and)+" ",1),br(l,{size:"small",value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),min:e.lower,step:e.upperConfig.step,max:e.upperConfig.max,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.Message.common.end)+Z(e.Message.common.every)+Z(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Yse=Dse.messages(),Zse=jn({components:{Radio:BM,ASelect:qS,Tooltip:Tx},props:{nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:yse},tag:{type:String,default:yse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=Lr((()=>{let e="";if(o.value&&o.value.length){o.value.sort();for(let t=0;t{Pse(t)&&parseInt(t)>=parseInt(e.nums[0].value)&&parseInt(t)<=parseInt(e.nums[e.nums.length-1].value)&&o.value.push(parseInt(t))}))}}return Zn((()=>{i()})),bn((()=>e.tag),(()=>i()),{deep:!0}),bn((()=>e.type),(()=>i()),{deep:!0}),{Message:Yse,type_:t,tag_:n,open:r,FIXED:yse,change:function(){e.onChange&&e.onChange({type:yse,tag:n.value||yse})},numArray:o,changeTag:i}}}),Vse={class:"cron-body-row"},Use=vr("span",{class:"symbol"},",",-1),Kse=m1(Zse,[["render",function(e,t,n,o,r,i){const l=pn("Tooltip"),a=pn("Radio"),s=pn("ASelect");return lr(),ur("div",Vse,[br(a,{checked:e.type===e.FIXED,onChange:e.change},{default:ln((()=>[br(l,{title:e.tag_},{default:ln((()=>[Use])),_:1},8,["title"]),Or(" "+Z(e.Message.common.specified),1)])),_:1},8,["checked","onChange"]),br(s,{size:"small",mode:"tags",placeholder:e.Message.common.placeholder,style:{width:"300px"},options:e.nums,disabled:e.type!==e.FIXED,value:e.numArray,"onUpdate:value":t[0]||(t[0]=t=>e.numArray=t),onChange:e.change},null,8,["placeholder","options","disabled","value","onChange"])])}]]),Gse={watch:{tag(e){this.resolveTag(e)}},mounted(){this.resolveTag(this.tag)},methods:{resolveTag(e){null==e&&(e=xse);let t=null;(e=this.resolveCustom(e))===xse?t=xse:e===Ose?t=Ose:e===mse?t=mse:e===Cse&&(t=Cse),null==t&&(t=e.startsWith("L-")||e.endsWith(wse)?wse:e.endsWith(Sse)&&e.length>1?Sse:e.indexOf($se)>0?$se:e.indexOf(vse)>0?vse:e.indexOf(bse)>0?bse:yse),this.type_=t,this.tag_=e},resolveCustom:e=>e}},qse=Dse.messages(),Jse=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse},mixins:[Gse],props:{tag:{type:String,default:mse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(mse),a=bt(e.tag);return{Message:qse,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.second.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),ece=Dse.messages(),tce=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse},mixins:[Gse],props:{tag:{type:String,default:mse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(mse),a=bt(e.tag);return{Message:ece,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.minute.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),nce=Dse.messages(),oce=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse},mixins:[Gse],props:{tag:{type:String,default:mse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:23},n={min:1,step:1,max:23},o={min:0,step:1,max:23},r={min:0,step:1,max:23},i=[];for(let s=0;s<24;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(mse),a=bt(e.tag);return{Message:nce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.hour.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),rce=Dse.messages(),ice={class:"cron-body-row"},lce={class:"symbol"},ace=m1(jn({components:{Radio:BM},props:{type:{type:String,default:Ose},tag:{type:String,default:Ose},onChange:{type:Function}},setup:e=>({Message:rce,change:function(){e.onChange&&e.onChange({tag:Ose,type:Ose})},UNFIXED:Ose})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",ice,[br(l,{checked:e.type===e.UNFIXED,onClick:e.change},{default:ln((()=>[vr("span",lce,Z(e.UNFIXED),1),Or(Z(e.Message.custom.unspecified),1)])),_:1},8,["checked","onClick"])])}]]),sce=Dse.messages(),cce={class:"cron-body-row"},uce={class:"symbol"},dce=m1(jn({components:{Radio:BM,InputNumber:yL},props:{lastConfig:{type:Object,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:wse},tag:{type:String,default:wse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=Lr((()=>1===n.value?wse:"L-"+(n.value-1)));function r(t){if(e.type!==wse)return;if(t===wse)return void(n.value=1);const o=t.substring(2);Pse(o)&&parseInt(o)>=e.lastConfig.min&&parseInt(o)<=e.lastConfig.max?n.value=parseInt(o)+1:PB.error(sce.common.numError+":"+o)}return Zn((()=>{r(e.tag)})),bn((()=>e.tag),(e=>{r(e)}),{deep:!0}),bn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:sce,type_:t,tag_:o,LAST:wse,lastNum:n,change:function(){e.onChange&&e.onChange({type:wse,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",cce,[br(a,{checked:e.type===e.LAST,onChange:e.change},{default:ln((()=>[vr("span",uce,Z(e.tag_),1),Or(" "+Z(e.Message.common.current)+Z(e.targetTimeUnit)+Z(e.Message.custom.lastTh)+" ",1),br(l,{size:"small",value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),min:e.lastConfig.min,step:e.lastConfig.step,max:e.lastConfig.max,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),pce=Dse.messages(),hce={class:"cron-body-row"},fce={class:"symbol"},gce=m1(jn({components:{Radio:BM,InputNumber:yL},props:{targetTimeUnit:{type:String,default:null},startDateConfig:{type:Object,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Sse},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${Sse}`));function i(t){if(e.type!==Sse)return;const o=t.substring(0,t.length-1);!Pse(o)||parseInt(o)e.startDateConfig.max?PB.error(`${pce.common.numError}:${o}`):n.value=parseInt(o)}return Zn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:pce,type_:t,startDate:n,weekDayNum:o,tag_:r,WORK_DAY:Sse,change:function(){e.onChange&&e.onChange({type:Sse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("InputNumber");return lr(),ur("div",hce,[br(l,{checked:e.type===e.WORK_DAY,onChange:e.change},{default:ln((()=>[vr("span",fce,Z(e.tag_),1),Or(" "+Z(e.Message.common.every)+Z(e.targetTimeUnit),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",value:e.startDate,"onUpdate:value":t[0]||(t[0]=t=>e.startDate=t),min:e.startDateConfig.min,step:e.startDateConfig.step,max:e.startDateConfig.max,disabled:e.type!==e.WORK_DAY,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit)+Z(e.Message.common.nearest)+Z(e.Message.custom.workDay),1)])}]]),mce=Dse.messages(),vce={class:"cron-body-row"},bce={class:"symbol"},yce=m1(jn({components:{Radio:BM},props:{targetTimeUnit:{type:String,default:null},type:{type:String,default:Cse},tag:{type:String,default:Cse},onChange:{type:Function}},setup:e=>({Message:mce,change:function(){e.onChange&&e.onChange({tag:Cse,type:Cse})},LAST_WORK_DAY:Cse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",vce,[br(l,{checked:e.type===e.LAST_WORK_DAY,onClick:e.change},{default:ln((()=>[vr("span",bce,Z(e.LAST_WORK_DAY),1),Or(" "+Z(e.Message.common.current)+Z(e.targetTimeUnit)+Z(e.Message.custom.latestWorkday),1)])),_:1},8,["checked","onClick"])])}]]),Oce=Dse.messages(),wce=31,Sce=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse,UnFixed:ace,Last:dce,WorkDay:gce,LastWorkDay:yce},mixins:[Gse],props:{tag:{type:String,default:mse},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:wce},n={min:1,step:1,max:wce},o={min:1,step:1,max:wce},r={min:1,step:1,max:wce},i={min:1,step:1,max:wce},l=[];for(let c=1;c<32;c++){const e={label:c.toString(),value:c};l.push(e)}const a=bt(mse),s=bt(e.tag);return{Message:Oce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,lastConfig:i,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("UnFixed"),d=pn("Last"),p=pn("WorkDay"),h=pn("LastWorkDay");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),br(d,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"last-config":e.lastConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","last-config","onChange"]),br(p,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","start-date-config","onChange"]),br(h,{type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["type","tag","target-time-unit","start-date-config","onChange"])],64)}]]),$ce=Dse.messages(),xce=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse},mixins:[Gse],props:{tag:{type:String,default:mse},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:12},n={min:1,step:1,max:12},o={min:1,step:1,max:12},r={min:1,step:1,max:12},i=[];for(let s=1;s<13;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(mse),a=bt(e.tag);return{Message:$ce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.month.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Cce=Dse.messages(),kce={class:"cron-body-row"},Pce={class:"symbol"},Tce=m1(jn({components:{Radio:BM},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:xse},tag:{type:String,default:xse},onChange:{type:Function}},setup:e=>({Message:Cce,change:function(){e.onChange&&e.onChange({tag:xse,type:xse})},EMPTY:xse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",kce,[br(l,{checked:e.type===e.EMPTY,onClick:e.change},{default:ln((()=>[vr("span",Pce,Z(e.Message.custom.empty),1)])),_:1},8,["checked","onClick"])])}]]),Mce=Dse.messages(),Ice=kse,Ece=2099,Ace=m1(jn({components:{Every:jse,Period:Lse,Range:Xse,Fixed:Kse,Empty:Tce},mixins:[Gse],props:{tag:{type:String,default:xse},onChange:{type:Function}},setup(e){const t={min:Ice,step:1,max:Ece},n={min:1,step:1,max:Ece},o={min:Ice,step:1,max:Ece},r={min:Ice,step:1,max:Ece},i=[];for(let s=Ice;s<2100;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(xse),a=bt(e.tag);return{Message:Mce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("Empty");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.year.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,tag:e.tag_,onChange:e.change},null,8,["type","tag","onChange"])],64)}]]),Dce=Dse.messages(),Rce={class:"cron-body-row"},zce={class:"symbol"},Bce=m1(jn({components:{Radio:BM,InputNumber:yL,ASelect:qS},props:{nums:{type:Array,default:null},startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:vse},tag:{type:String,default:vse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${vse}${o.value}`));function i(t){if(e.type!==vse)return;const r=t.split(vse);2===r.length?!Pse(r[0])||parseInt(r[0])e.startConfig.max?PB.error(`${Dce.period.startError}:${r[0]}`):!Pse(r[1])||parseInt(r[1])e.cycleConfig.max?PB.error(`${Dce.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):PB.error(`${Dce.common.tagError}:${t}`)}return Zn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Dce,type_:t,start:n,cycle:o,tag_:r,PERIOD:vse,change:function(){e.onChange&&e.onChange({type:vse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("ASelect"),s=pn("InputNumber");return lr(),ur("div",Rce,[br(l,{checked:e.type===e.PERIOD,onChange:e.change},{default:ln((()=>[vr("span",zce,Z(e.tag_),1),Or(" "+Z(e.Message.common.from),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",style:{width:"100px"},value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),Or(" "+Z(e.Message.common.start)+Z(e.Message.common.every)+" ",1),br(s,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+Z(e.timeUnit),1)])}]]),jce=Dse.messages(),Nce=qS.Option,_ce={class:"cron-body-row"},Qce={class:"symbol"},Lce=m1(jn({components:{Radio:BM,ASelect:qS,AOption:Nce},props:{nums:{type:Array,default:null},upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:bse},tag:{type:String,default:bse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(0);o.value`${o.value}${bse}${n.value}`));function l(t){if(e.type!==bse)return;const r=t.split(bse);2===r.length&&(r[0]===bse&&(r[0]=0),!Pse(r[0])||parseInt(r[0])e.lowerConfig.max||!Pse(r[1])||parseInt(r[1])e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Zn((()=>{l(e.tag)})),bn((()=>e.tag),(e=>{l(e)}),{deep:!0}),bn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:jce,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:bse,change:function(){e.onChange&&e.onChange({type:bse,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("AOption"),s=pn("ASelect");return lr(),ur("div",_ce,[br(l,{checked:e.type===e.RANGE,onChange:e.change},{default:ln((()=>[vr("span",Qce,Z(e.tag_),1),Or(" "+Z(e.Message.common.between),1)])),_:1},8,["checked","onChange"]),br(s,{size:"small",style:{width:"100px"},value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},{default:ln((()=>[(lr(!0),ur(er,null,no(e.nums,(t=>(lr(),dr(a,{key:t.value,value:t.value,disabled:Number(t.value)>e.upper_},{default:ln((()=>[Or(Z(t.label),1)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value","placeholder","disabled","onChange"]),Or(" "+Z(e.timeUnit)+Z(e.Message.common.and)+" ",1),br(s,{size:"small",style:{width:"100px"},value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),Or(" "+Z(e.Message.common.end)+Z(e.Message.common.every)+Z(e.timeUnit),1)])}]]),Hce=Dse.messages(),Fce={class:"cron-body-row"},Wce={class:"symbol"},Xce=m1(jn({components:{Radio:BM,ASelect:qS},props:{nums:{type:Array,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:wse},tag:{type:String,default:wse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=Lr((()=>(n.value>=1&&n.value<7?n.value:"")+wse));function r(t){if(e.type!==wse)return;if(t===wse)return void(n.value=7);const o=t.substring(0,t.length-1);Pse(o)&&parseInt(o)>=parseInt(e.nums[0].value)&&parseInt(o)<=parseInt(e.nums[e.nums.length-1].value)?n.value=parseInt(o):PB.error(Hce.common.numError+":"+o)}return Zn((()=>{r(e.tag)})),bn((()=>e.tag),(e=>{r(e)}),{deep:!0}),bn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:Hce,type_:t,tag_:o,LAST:wse,lastNum:n,change:function(){e.onChange&&e.onChange({type:wse,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("ASelect");return lr(),ur("div",Fce,[br(l,{checked:e.type===e.LAST,onChange:e.change},{default:ln((()=>[vr("span",Wce,Z(e.tag_),1),Or(" "+Z(e.Message.common.current)+Z(e.targetTimeUnit)+Z(e.Message.custom.lastTh),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",style:{width:"100px"},value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),Yce=Dse.messages(),Zce={class:"cron-body-row"},Vce={class:"symbol"},Uce=m1(jn({components:{Radio:BM,InputNumber:yL,ASelect:qS},props:{targetTimeUnit:{type:String,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:$se},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${$se}${o.value}`));function i(t){if(e.type!==$se)return;const r=t.split($se);2===r.length?!Pse(r[0])||parseInt(r[0])parseInt(e.nums[e.nums.length-1].value)?PB.error(`${Yce.period.startError}:${r[0]}`):!Pse(r[1])||parseInt(r[1])<1||parseInt(r[1])>5?PB.error(`${Yce.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):PB.error(`${Yce.common.tagError}:${t}`)}return Zn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Yce,type_:t,nth:n,weekDayNum:o,tag_:r,WEEK_DAY:$se,change:function(){e.onChange&&e.onChange({type:$se,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("InputNumber"),s=pn("ASelect");return lr(),ur("div",Zce,[br(l,{checked:e.type===e.WEEK_DAY,onChange:e.change},{default:ln((()=>[vr("span",Vce,Z(e.tag_),1),Or(" "+Z(e.Message.common.current)+Z(e.targetTimeUnit)+Z(e.Message.common.nth),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",value:e.nth,"onUpdate:value":t[0]||(t[0]=t=>e.nth=t),min:1,step:1,max:5,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","disabled","onChange"]),Or(" "+Z(e.Message.common.index)+" ",1),br(s,{size:"small",style:{width:"100px"},value:e.weekDayNum,"onUpdate:value":t[1]||(t[1]=t=>e.weekDayNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),Kce=Dse.messages(),Gce=m1(jn({components:{Every:jse,Period:Bce,Range:Lce,Fixed:Kse,UnFixed:ace,Last:Xce,WeekDay:Uce},mixins:[Gse],props:{tag:{type:String,default:Ose},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:7},n={min:1,step:1,max:7},o={min:1,step:1,max:7},r={min:1,step:1,max:7},i={min:1,step:1,max:7},l=Kce.daysOfWeekOptions,a=bt(mse),s=bt(e.tag);return{Message:Kce,startConfig:t,cycleConfig:o,lowerConfig:r,upperConfig:i,startDateConfig:n,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("UnFixed"),d=pn("Last"),p=pn("WeekDay");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.dayOfWeek.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),br(d,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,"last-config":e.startDateConfig,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","last-config","onChange"]),br(p,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","onChange"])],64)}]]),qce=Dse.messages(),Jce=jn({name:"VueCron",components:{AInput:r_,Popover:Dx,Card:IE,Seconds:Jse,Minutes:tce,Hours:oce,Days:Sce,Months:xce,Years:Ace,WeekDays:Gce,CalendarOutlined:Oj},props:{value:{type:String,default:"* * * * * ? *"}},setup(e,{emit:t}){const n=bt(""),o=bt([]),r=[{key:"seconds",tab:qce.second.title},{key:"minutes",tab:qce.minute.title},{key:"hours",tab:qce.hour.title},{key:"days",tab:qce.dayOfMonth.title},{key:"months",tab:qce.month.title},{key:"weekdays",tab:qce.dayOfWeek.title},{key:"years",tab:qce.year.title}],i=rt({second:mse,minute:mse,hour:mse,dayOfMonth:mse,month:mse,dayOfWeek:Ose,year:xse}),l=bt("seconds");function a(e){const o=e.trim().split(" ");if(!e||e.trim().length<11||6!==o.length&&7!==o.length){const e="* * * * * ?";return n.value=e,s(e),PB.error(qce.common.tagError),t("update:value",e),void t("change",e)}s(e),i.second=o[0],i.minute=o[1],i.hour=o[2],i.dayOfMonth=o[3],i.month=o[4],i.dayOfWeek=o[5],i.year=7===o.length?o[6]:""}function s(e){P0(`/job/cron?cron=${e}`).then((e=>{if(o.value=e,0===o.value.length){const e="* * * * * ?";n.value=e,s(e),t("update:value",e),t("change",e)}}))}return bn((()=>e.value),(e=>{a(e),n.value=e}),{immediate:!0}),{cronStr:n,list:o,tabList:r,activeTabKey:l,tag:i,changeTime:a,timeChange:function(e,n){const o={...i};o[e]=n,"dayOfWeek"===e&&"*"!==n&&"?"!==n?o.dayOfMonth="?":"dayOfMonth"===e&&"*"!==n&&"?"!==n&&(o.dayOfWeek="?");let r=[];r.push(o.second),r.push(o.minute),r.push(o.hour),r.push(o.dayOfMonth),r.push(o.month),r.push(o.dayOfWeek),r.push(o.year),s(r.join(" ").trim()),t("update:value",r.join(" ").trim()),t("change",r.join(" ").trim())}}}}),eue={key:0},tue={key:1},nue={key:2},oue={key:3},rue={key:4},iue={key:5},lue={key:6},aue={style:{display:"flex","align-items":"center","justify-content":"space-between"}},sue=vr("span",{style:{width:"150px","font-weight":"600"}},"CRON 表达式: ",-1),cue=vr("div",{style:{margin:"20px 0","border-left":"#1677ff 5px solid","font-size":"medium","font-weight":"bold"}},"    近5次的运行时间: ",-1),uue=m1(Jce,[["render",function(e,t,n,o,r,i){const l=pn("AInput"),a=pn("CalendarOutlined"),s=pn("Seconds"),c=pn("Minutes"),u=pn("Hours"),d=pn("Days"),p=pn("Months"),h=pn("WeekDays"),f=pn("Years"),g=pn("a-tab-pane"),m=pn("a-tabs"),v=pn("a-divider"),b=pn("a-input"),y=pn("a-button"),O=pn("Card"),w=pn("Popover");return lr(),dr(w,{placement:"bottom",trigger:"click"},{content:ln((()=>[br(O,{size:"small"},{default:ln((()=>[br(m,{activeKey:e.activeTabKey,"onUpdate:activeKey":t[7]||(t[7]=t=>e.activeTabKey=t),type:"card"},{default:ln((()=>[(lr(!0),ur(er,null,no(e.tabList,(n=>(lr(),dr(g,{key:n.key},{tab:ln((()=>[vr("span",null,[br(a),Or(" "+Z(n.tab),1)])])),default:ln((()=>["seconds"===e.activeTabKey?(lr(),ur("div",eue,[br(s,{tag:e.tag.second,onChange:t[0]||(t[0]=t=>e.timeChange("second",t.tag))},null,8,["tag"])])):"minutes"===e.activeTabKey?(lr(),ur("div",tue,[br(c,{tag:e.tag.minute,onChange:t[1]||(t[1]=t=>e.timeChange("minute",t.tag))},null,8,["tag"])])):"hours"===e.activeTabKey?(lr(),ur("div",nue,[br(u,{tag:e.tag.hour,onChange:t[2]||(t[2]=t=>e.timeChange("hour",t.tag))},null,8,["tag"])])):"days"===e.activeTabKey?(lr(),ur("div",oue,[br(d,{tag:e.tag.dayOfMonth,onChange:t[3]||(t[3]=t=>e.timeChange("dayOfMonth",t.tag))},null,8,["tag"])])):"months"===e.activeTabKey?(lr(),ur("div",rue,[br(p,{tag:e.tag.month,onChange:t[4]||(t[4]=t=>e.timeChange("month",t.tag))},null,8,["tag"])])):"weekdays"===e.activeTabKey?(lr(),ur("div",iue,[br(h,{tag:e.tag.dayOfWeek,onChange:t[5]||(t[5]=t=>e.timeChange("dayOfWeek",t.tag))},null,8,["tag"])])):"years"===e.activeTabKey?(lr(),ur("div",lue,[br(f,{tag:e.tag.year,onChange:t[6]||(t[6]=t=>e.timeChange("year",t.tag))},null,8,["tag"])])):wr("",!0)])),_:2},1024)))),128))])),_:1},8,["activeKey"]),br(v),vr("div",aue,[sue,br(b,{value:e.cronStr,"onUpdate:value":t[8]||(t[8]=t=>e.cronStr=t)},null,8,["value"]),br(y,{type:"primary",style:{"margin-left":"16px"},onClick:t[9]||(t[9]=t=>e.changeTime(e.cronStr))},{default:ln((()=>[Or("保存")])),_:1})]),br(v),cue,(lr(!0),ur(er,null,no(e.list,((e,t)=>(lr(),ur("div",{key:e,style:{"margin-top":"10px"}},"第"+Z(t+1)+"次: "+Z(e),1)))),128))])),_:1})])),default:ln((()=>[br(l,{readonly:"",value:e.value},null,8,["value"])])),_:1})}]]),due=jn({__name:"StartDrawer",props:{open:q0().def(!1),modelValue:J0().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e;let r="";const i=bt(!1),l=bt({}),a=bt([]);bn((()=>o.open),(e=>{i.value=e}),{immediate:!0}),bn((()=>o.modelValue),(e=>{l.value=e,r=e.workflowName}),{immediate:!0,deep:!0});const s=k0();bn((()=>l.value.groupName),(e=>{s.setGroupName(e)}));const c=()=>{u(),n("save",l.value)},u=()=>{n("update:open",!1),i.value=!1};Zn((()=>{Ft((()=>{d()}))}));const d=()=>{P0("/group/all/group-name/list").then((e=>{a.value=e}))},p=e=>{1===e?l.value.triggerInterval="* * * * * ?":2===e&&(l.value.triggerInterval=void 0)};return(e,t)=>{const n=pn("a-input"),o=pn("a-form-item"),s=pn("a-select-option"),d=pn("a-select"),h=pn("a-col"),f=pn("a-input-number"),g=pn("a-form-item-rest"),m=pn("a-row"),v=pn("a-radio"),b=pn("a-radio-group"),y=pn("a-textarea"),O=pn("a-form"),w=pn("a-button"),S=pn("a-drawer");return lr(),dr(S,{open:i.value,"onUpdate:open":t[8]||(t[8]=e=>i.value=e),title:St(r),"destroy-on-close":"",width:500,onClose:u},{footer:ln((()=>[br(w,{type:"primary",onClick:c},{default:ln((()=>[Or("保存")])),_:1}),br(w,{style:{"margin-left":"12px"},onClick:u},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(O,{layout:"vertical",model:l.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(o,{name:"groupName",label:"工作流名称"},{default:ln((()=>[br(n,{value:l.value.workflowName,"onUpdate:value":t[0]||(t[0]=e=>l.value.workflowName=e),placeholder:"请输入工作流名称"},null,8,["value"])])),_:1}),br(o,{name:"groupName",label:"组名称"},{default:ln((()=>[br(d,{ref:"select",value:l.value.groupName,"onUpdate:value":t[1]||(t[1]=e=>l.value.groupName=e),placeholder:"请选择组"},{default:ln((()=>[(lr(!0),ur(er,null,no(a.value,(e=>(lr(),dr(s,{key:e,value:e},{default:ln((()=>[Or(Z(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),br(m,{gutter:24},{default:ln((()=>[br(h,{span:1===l.value.triggerType?8:12},{default:ln((()=>[br(o,{name:"triggerType",label:"触发类型"},{default:ln((()=>[br(d,{ref:"select",value:l.value.triggerType,"onUpdate:value":t[2]||(t[2]=e=>l.value.triggerType=e),placeholder:"请选择触发类型",onChange:p},{default:ln((()=>[br(s,{value:1},{default:ln((()=>[Or("CRON表达式")])),_:1}),br(s,{value:2},{default:ln((()=>[Or("固定时间")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1},8,["span"]),br(h,{span:1===l.value.triggerType?16:12},{default:ln((()=>[br(o,{name:"triggerInterval",label:"触发间隔"},{default:ln((()=>[br(g,null,{default:ln((()=>[1===l.value.triggerType?(lr(),dr(St(uue),{key:0,value:l.value.triggerInterval,"onUpdate:value":t[3]||(t[3]=e=>l.value.triggerInterval=e)},null,8,["value"])):(lr(),dr(f,{key:1,addonAfter:"秒",value:l.value.triggerInterval,"onUpdate:value":t[4]||(t[4]=e=>l.value.triggerInterval=e),placeholder:"请输入触发间隔"},null,8,["value"]))])),_:1})])),_:1})])),_:1},8,["span"])])),_:1}),br(m,{gutter:24},{default:ln((()=>[br(h,{span:12},{default:ln((()=>[br(o,{name:"executorTimeout",label:"执行超时时间"},{default:ln((()=>[br(f,{addonAfter:"秒",value:l.value.executorTimeout,"onUpdate:value":t[5]||(t[5]=e=>l.value.executorTimeout=e),placeholder:"请输入超时时间"},null,8,["value"])])),_:1})])),_:1}),br(h,{span:12},{default:ln((()=>[br(o,{name:"workflowStatus",label:"工作流状态"},{default:ln((()=>[br(b,{value:l.value.workflowStatus,"onUpdate:value":t[6]||(t[6]=e=>l.value.workflowStatus=e)},{default:ln((()=>[br(v,{value:1},{default:ln((()=>[Or("开启")])),_:1}),br(v,{value:0},{default:ln((()=>[Or("关闭")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1})])),_:1}),br(o,{name:"description",label:"描述"},{default:ln((()=>[br(y,{value:l.value.description,"onUpdate:value":t[7]||(t[7]=e=>l.value.description=e),"auto-size":{minRows:5},placeholder:"请输入描述"},null,8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open","title"])}}}),pue={class:"node-wrap"},hue={class:"title",style:{background:"#ff943e"}},fue={class:"text"},gue={key:0,class:"content"},mue={key:1,class:"content"},vue=[(e=>(on("data-v-d0c5f2ff"),e=e(),rn(),e))((()=>vr("span",{class:"placeholder"}," 请配置工作流 ",-1)))],bue=m1(jn({__name:"StartNode",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)}));const i=bt(!1),l=bt({}),a=e=>{r.value=e},s=()=>{o.disabled||(l.value=JSON.parse(JSON.stringify(r.value)),i.value=!0)};return(t,n)=>(lr(),ur("div",pue,[vr("div",{class:"node-wrap-box start-node",onClick:s},[vr("div",hue,[vr("span",fue,Z(r.value.groupName?r.value.groupName:"请选择组"),1)]),r.value.groupName?(lr(),ur("div",gue,[vr("div",null,"组名称: "+Z(r.value.groupName),1),vr("div",null,"触发类型: "+Z(r.value.triggerType),1),vr("div",null,"触发间隔: "+Z(r.value.triggerInterval)+"s",1),vr("div",null,"执行超时时间: "+Z(r.value.executorTimeout)+"s",1)])):(lr(),ur("div",mue,vue))]),br(v1,{disabled:e.disabled,modelValue:r.value.nodeConfig,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value.nodeConfig=e)},null,8,["disabled","modelValue"]),br(due,{open:i.value,"onUpdate:open":n[1]||(n[1]=e=>i.value=e),modelValue:l.value,"onUpdate:modelValue":n[2]||(n[2]=e=>l.value=e),onSave:a},null,8,["open","modelValue"])]))}}),[["__scopeId","data-v-d0c5f2ff"]]),yue={class:"workflow-design"},Oue={class:"box-scale"},wue=vr("div",{class:"end-node"},[vr("div",{class:"end-node-circle"}),vr("div",{class:"end-node-text"},"流程结束")],-1),Sue=jn({__name:"WorkFlow",props:{modelValue:J0().def({}),disabled:q0().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});return bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>(lr(),ur("div",yue,[vr("div",Oue,[br(bue,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},null,8,["modelValue","disabled"]),r.value.nodeConfig?(lr(),dr(gse,{key:0,modelValue:r.value.nodeConfig,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value.nodeConfig=e),disabled:e.disabled},null,8,["modelValue","disabled"])):wr("",!0),wue])]))}}),$ue={class:"buttons"},xue=m1(jn({__name:"App",setup(e){const t=e=>{const t={},n=window.location.href.split("?")[1];return n&&n.split("&").forEach((e=>{const n=e.split("=")[1],o=e.split("=")[0];t[o]=n})),t[e]},n=k0(),o=t("id"),r=t("token"),i=t("namespaceId"),l="kaxC8Iml"===t("x1c2Hdd6");Zn((()=>{if("D7Rzd7Oe"!==t("x1c2Hdd6")&&"kaxC8Iml"!==t("x1c2Hdd6"))return a.value=!0,void PB.error({content:"未知错误,请联系管理员",duration:0});n.setId(o),n.setToken(r),n.setNameSpaceId(i),s.value=l,"undefined"!=o&&p()}));const a=bt(!1),s=bt(!1),c=bt({workflowStatus:1,description:void 0,nodeConfig:{}}),u=()=>{"undefined"===o?P0("/workflow","post",c.value).then((()=>{window.parent.postMessage({code:"SV5ucvLBhvFkOftb",data:JSON.stringify(c.value)})})):P0("/workflow","put",c.value).then((()=>{window.parent.postMessage({code:"8Rr3XPtVVAHfduQg",data:JSON.stringify(c.value)})}))},d=()=>{window.parent.postMessage({code:"kb4DO9h6WIiqFhbp"})},p=()=>{a.value=!0,P0(`/workflow/${o}`).then((e=>{c.value=e,n.setGroupName(e.groupName)})).finally((()=>{a.value=!1}))};return(e,t)=>{const n=pn("a-button"),o=pn("a-affix"),r=pn("a-spin");return lr(),ur(er,null,[br(o,{"offset-top":0},{default:ln((()=>[vr("div",$ue,[br(n,{type:"primary",siz:"large",onClick:u},{default:ln((()=>[Or("保存")])),_:1}),br(n,{siz:"large",style:{"margin-left":"16px"},onClick:d},{default:ln((()=>[Or("取消")])),_:1})])])),_:1}),br(r,{spinning:a.value},{default:ln((()=>[br(St(Sue),{class:"work-flow",modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=e=>c.value=e),disabled:s.value},null,8,["modelValue","disabled"])])),_:1},8,["spinning"])],64)}}}),[["__scopeId","data-v-58938cc0"]]);function Cue(e,t){var n;return e="object"==typeof(n=e)&&null!==n?e:Object.create(null),new Proxy(e,{get:(e,n,o)=>"key"===n?Reflect.get(e,n,o):Reflect.get(e,n,o)||Reflect.get(t,n,o)})}function kue(e,{storage:t,serializer:n,key:o,debug:r}){try{const r=null==t?void 0:t.getItem(o);r&&e.$patch(null==n?void 0:n.deserialize(r))}catch(i){}}function Pue(e,{storage:t,serializer:n,key:o,paths:r,debug:i}){try{const i=Array.isArray(r)?function(e,t){return t.reduce(((t,n)=>{const o=n.split(".");return function(e,t,n){return t.slice(0,-1).reduce(((e,t)=>/^(__proto__)$/.test(t)?{}:e[t]=e[t]||{}),e)[t[t.length-1]]=n,e}(t,o,function(e,t){return t.reduce(((e,t)=>null==e?void 0:e[t]),e)}(e,o))}),{})}(e,r):e;t.setItem(o,n.serialize(i))}catch(l){}}var Tue=function(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:o=n},store:r,pinia:i}=t;if(!o)return;if(!(r.$id in i.state.value)){const e=i._s.get(r.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const l=(Array.isArray(o)?o.map((t=>Cue(t,e))):[Cue(o,e)]).map((({storage:t=localStorage,beforeRestore:n=null,afterRestore:o=null,serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},key:l=r.$id,paths:a=null,debug:s=!1})=>{var c;return{storage:t,beforeRestore:n,afterRestore:o,serializer:i,key:(null!=(c=e.key)?c:e=>e)("string"==typeof l?l:l(r.$id)),paths:a,debug:s}}));r.$persist=()=>{l.forEach((e=>{Pue(r.$state,e)}))},r.$hydrate=({runHooks:e=!0}={})=>{l.forEach((n=>{const{beforeRestore:o,afterRestore:i}=n;e&&(null==o||o(t)),kue(r,n),e&&(null==i||i(t))}))},l.forEach((e=>{const{beforeRestore:n,afterRestore:o}=e;null==n||n(t),kue(r,e),null==o||o(t),r.$subscribe(((t,n)=>{Pue(n,e)}),{detached:!0})}))}}();const Mue=function(){const e=q(!0),t=e.run((()=>bt({})));let n=[],o=[];const r=pt({install(e){Yi(r),r._a=e,e.provide(Zi,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();Mue.use(Tue);const Iue=Wi(xue);Iue.use(C0),Iue.use(Mue),Iue.mount("#app")}},function(){return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports});export default o(); +function F0(e){return"[object Object]"===Object.prototype.toString.call(e)}function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(r[n]=e[n]);return r}const Y0={silent:!1,logLevel:"warn"},V0=["validator"],Z0=Object.prototype,U0=Z0.toString,K0=Z0.hasOwnProperty,G0=/^\s*function (\w+)/;function q0(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(G0);return e?e[1]:""}return""}const J0=function(e){var t,n;return!1!==F0(e)&&(void 0===(t=e.constructor)||!1!==F0(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};let e1=e=>e;const t1=(e,t)=>K0.call(e,t),n1=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o1=Array.isArray||function(e){return"[object Array]"===U0.call(e)},r1=e=>"[object Function]"===U0.call(e),i1=(e,t)=>J0(e)&&t1(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),l1=e=>J0(e)&&(t1(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>t1(e,t))));function a1(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function s1(e,t,n=!1){let o,r=!0,i="";o=J0(e)?e:{type:e};const l=i1(o)?o._vueTypes_name+" - ":"";if(l1(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==t)return r;o1(o.type)?(r=o.type.some((e=>!0===s1(e,t,!0))),i=o.type.map((e=>q0(e))).join(" or ")):(i=q0(o),r="Array"===i?o1(t):"Object"===i?J0(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(G0);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof o.type)}if(!r){const e=`${l}value "${t}" should be of type "${i}"`;return!1===n?(e1(e),!1):e}if(t1(o,"validator")&&r1(o.validator)){const e=e1,i=[];if(e1=e=>{i.push(e)},r=o.validator(t),e1=e,!r){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(e1(e),r):e}}return r}function c1(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(t1(this,"default")&&delete this.default,this):r1(e)||!0===s1(this,e,!0)?(this.default=o1(e)?()=>[...e]:J0(e)?()=>Object.assign({},e):e,this):(e1(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:o}=n;return r1(o)&&(n.validator=a1(o,n)),n}function u1(e,t){const n=c1(e,t);return Object.defineProperty(n,"validate",{value(e){return r1(this.validator)&&e1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=a1(e,this),this}})}function d1(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!J0(n))return o;const{validator:r}=n,i=X0(n,V0);if(r1(r)){let{validator:e}=o;e&&(e=null!==(a=(l=e).__original)&&void 0!==a?a:l),o.validator=a1(e?function(t){return e.call(this,t)&&r.call(this,t)}:r,o)}var l,a;return Object.assign(o,i)}function p1(e){return e.replace(/^(?!\s*$)/gm," ")}const h1=()=>u1("any",{}),f1=()=>u1("boolean",{type:Boolean}),g1=()=>u1("string",{type:String}),m1=()=>u1("object",{type:Object});function v1(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return c1(e.name||"<>",{type:null,validator(n){const o=e(n);return o||e1(`${this._vueTypes_name} - ${t}`),o}})}function b1(e){if(!o1(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,n={validator(n){const o=-1!==e.indexOf(n);return o||e1(t),o}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);t.length>0&&(n.type=t)}return c1("oneOf",n)}function y1(e){if(!o1(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,o=[];for(let i=0;io.indexOf(e)===t));const r=!1===n&&o.length>0?o:null;return c1("oneOfType",t?{type:r,validator(t){const n=[],o=e.some((e=>{const o=s1(e,t,!0);return"string"==typeof o&&n.push(o),!0===o}));return o||e1(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${p1(n.join("\n"))}`),o}}:{type:r})}function O1(e){return c1("arrayOf",{type:Array,validator(t){let n="";const o=t.every((t=>(n=s1(e,t,!0),!0===n)));return o||e1(`arrayOf - value validation error:\n${p1(n)}`),o}})}function w1(e){return c1("instanceOf",{type:e})}function S1(e){return c1("objectOf",{type:Object,validator(t){let n="";const o=Object.keys(t).every((o=>(n=s1(e,t[o],!0),!0===n)));return o||e1(`objectOf - value validation error:\n${p1(n)}`),o}})}function $1(e){const t=Object.keys(e),n=t.filter((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.required)})),o=c1("shape",{type:Object,validator(o){if(!J0(o))return!1;const r=Object.keys(o);if(n.length>0&&n.some((e=>-1===r.indexOf(e)))){const e=n.filter((e=>-1===r.indexOf(e)));return e1(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return r.every((n=>{if(-1===t.indexOf(n))return!0===this._vueTypes_isLoose||(e1(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const r=s1(e[n],o[n],!0);return"string"==typeof r&&e1(`shape - "${n}" property validation error:\n ${p1(r)}`),!0===r}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const x1=["name","validate","getter"],C1=(()=>{var e;return(e=class{static get any(){return h1()}static get func(){return u1("function",{type:Function}).def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?f1():f1().def(this.defaults.bool)}static get string(){return g1().def(this.defaults.string)}static get number(){return u1("number",{type:Number}).def(this.defaults.number)}static get array(){return u1("array",{type:Array}).def(this.defaults.array)}static get object(){return m1().def(this.defaults.object)}static get integer(){return c1("integer",{type:Number,validator(e){const t=n1(e);return!1===t&&e1(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return c1("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&e1(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&e1("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(e1("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),o1(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:n=!1,getter:o=!1}=e,r=X0(e,x1);if(t1(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:i}=r;if(i1(i))return delete r.type,Object.defineProperty(this,t,o?{get:()=>d1(t,i,r)}:{value(...e){const n=d1(t,i,r);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let l;return l=o?{get(){const e=Object.assign({},r);return n?u1(t,e):c1(t,e)},enumerable:!0}:{value(...e){const o=Object.assign({},r);let i;return i=n?u1(t,o):c1(t,o),o.validator&&(i.validator=o.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=Y0,e.custom=v1,e.oneOf=b1,e.instanceOf=w1,e.oneOfType=y1,e.arrayOf=O1,e.objectOf=S1,e.shape=$1,e.utils={validate:(e,t)=>!0===s1(t,e,!0),toType:(e,t,n=!1)=>n?u1(e,t):c1(e,t)},e})();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){(class extends C1{static get sensibleDefaults(){return W0({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?W0({},!0!==t?t:e):{}}}).defaults=W0({},e)}();const k1=jn({__name:"AntdIcon",props:{modelValue:h1(),size:g1(),color:g1()},setup(e){const t=jn({props:{value:h1(),size:g1(),color:g1()},setup:e=>()=>{const{value:t}=e;return t?Hr(t,{style:{fontSize:e.size,color:e.color}},{}):null}});return(n,o)=>(lr(),dr(St(t),{value:e.modelValue,size:e.size,color:e.color},null,8,["value","size","color"]))}}),P1=e=>(on("data-v-0b5d97d7"),e=e(),rn(),e),T1={class:"add-node-btn-box"},M1={class:"add-node-btn"},I1={class:"add-node-popover-body"},E1={class:"icon"},A1=P1((()=>vr("p",null,"任务节点",-1))),D1=P1((()=>vr("p",null,"条件分支",-1))),R1=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},z1=R1(jn({__name:"AddNode",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=e=>{let t={};0===e?t={nodeName:"审核人",nodeType:1,conditionNodes:[{jobId:void 0,nodeName:"任务1",failStrategy:1,priorityLevel:1,workflowNodeStatus:0}],childNode:o.modelValue}:2===e&&(t={nodeName:"条件路由",nodeType:2,conditionNodes:[{nodeName:"条件1",priorityLevel:1,expressionType:1,nodeExpression:void 0},{nodeName:"条件2",priorityLevel:2,expressionType:1,nodeExpression:void 0}],childNode:o.modelValue}),n("update:modelValue",t)};return(t,n)=>{const o=pn("a-button"),i=pn("a-popover");return lr(),ur("div",T1,[vr("div",M1,[e.disabled?wr("",!0):(lr(),dr(i,{key:0,placement:"rightTop",trigger:"click","overlay-style":{width:"216px"}},{content:ln((()=>[vr("div",I1,[vr("ul",E1,[vr("li",null,[br(o,{shape:"circle",size:"large",onClick:n[0]||(n[0]=e=>r(0))},{default:ln((()=>[br(St(HJ),{style:{color:"#3296fa"}})])),_:1}),A1]),vr("li",null,[br(o,{shape:"circle",size:"large",onClick:n[1]||(n[1]=e=>r(2))},{default:ln((()=>[br(St(AJ),{style:{color:"#15bc83"}})])),_:1}),D1])])])])),default:ln((()=>[br(o,{type:"primary",icon:Hr(St(DI)),shape:"circle"},null,8,["icon"])])),_:1}))])])}}}),[["__scopeId","data-v-0b5d97d7"]]),B1=jn({__name:"TaskDrawer",props:{open:f1().def(!1),modelValue:m1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=bt(!1),i=bt({}),l=bt([]);bn((()=>o.open),(e=>{r.value=e,e&&d()}),{immediate:!0}),bn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0}),Vn((()=>{Ft((()=>{d()}))}));const a=()=>{n("update:modelValue",i.value)},s=()=>{c(),n("save",i.value)},c=()=>{n("update:open",!1),r.value=!1},u=L0(),d=()=>{H0(`/job/list?groupName=${u.GROUP_NAME}`).then((e=>{l.value=e}))};return(e,t)=>{const n=pn("a-typography-paragraph"),o=pn("a-select-option"),u=pn("a-select"),d=pn("a-form-item"),p=pn("a-radio"),h=pn("a-radio-group"),f=pn("a-form"),g=pn("a-button"),m=pn("a-drawer");return lr(),dr(m,{open:r.value,"onUpdate:open":t[4]||(t[4]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:c},{title:ln((()=>[br(n,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:a},null,8,["content"])])),footer:ln((()=>[br(g,{type:"primary",onClick:s},{default:ln((()=>[Or("保存")])),_:1}),br(g,{style:{"margin-left":"12px"},onClick:c},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(f,{layout:"vertical",model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(d,{name:"jobId",label:"所属任务"},{default:ln((()=>[br(u,{value:i.value.jobId,"onUpdate:value":t[1]||(t[1]=e=>i.value.jobId=e)},{default:ln((()=>[(lr(!0),ur(er,null,no(l.value,(e=>(lr(),dr(o,{key:e.id,value:1},{default:ln((()=>[Or(V(e.jobName),1)])),_:2},1024)))),128))])),_:1},8,["value"])])),_:1}),br(d,{name:"failStrategy",label:"失败策略"},{default:ln((()=>[br(h,{value:i.value.failStrategy,"onUpdate:value":t[2]||(t[2]=e=>i.value.failStrategy=e)},{default:ln((()=>[br(p,{value:1},{default:ln((()=>[Or("跳过")])),_:1}),br(p,{value:2},{default:ln((()=>[Or("阻塞")])),_:1})])),_:1},8,["value"])])),_:1}),br(d,{name:"workFlowNodeStatus",label:"工作流状态"},{default:ln((()=>[br(h,{value:i.value.workflowNodeStatus,"onUpdate:value":t[3]||(t[3]=e=>i.value.workflowNodeStatus=e)},{default:ln((()=>[br(p,{value:0},{default:ln((()=>[Or("关闭")])),_:1}),br(p,{value:1},{default:ln((()=>[Or("开启")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}});var j1=(e=>(e[e.SpEl=1]="SpEl",e[e.Aviator=2]="Aviator",e[e.QL=3]="QL",e))(j1||{}),N1=(e=>(e[e["跳过"]=1]="跳过",e[e["阻塞"]=2]="阻塞",e))(N1||{}),_1=(e=>(e[e["关闭"]=0]="关闭",e[e["开启"]=1]="开启",e))(_1||{});const Q1={1:{title:"待处理",name:"waiting",color:"#64a6ea",icon:VJ},2:{title:"运行中",name:"running",color:"#1b7ee5",icon:Cj},3:{title:"成功",name:"success",color:"#087da1",icon:d$},4:{title:"失败",name:"fail",color:"#f52d80",icon:k$},5:{title:"停止",name:"stop",color:"#ac2df5",icon:jJ},6:{title:"取消",name:"cancel",color:"#f5732d",icon:vJ}},L1=e=>(on("data-v-bcac1bce"),e=e(),rn(),e),H1={class:"node-wrap"},F1={class:"branch-box"},W1={class:"condition-node"},X1={class:"condition-node-box"},Y1={class:"popover"},V1=L1((()=>vr("span",null,"修改",-1))),Z1=L1((()=>vr("span",null,"重试",-1))),U1=L1((()=>vr("span",null,"忽略",-1))),K1=["onClick"],G1={class:"title"},q1={class:"text",style:{color:"#3296fa"}},J1={class:"priority-title"},e2={class:"content",style:{"min-height":"81px"}},t2={key:0,class:"placeholder"},n2=["onClick"],o2={key:1,class:"top-left-cover-line"},r2={key:2,class:"bottom-left-cover-line"},i2={key:3,class:"top-right-cover-line"},l2={key:4,class:"bottom-right-cover-line"},a2=R1(jn({__name:"TaskNode",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({}),i=bt({});bn((()=>o.modelValue),(()=>{r.value=o.modelValue}),{immediate:!0,deep:!0});const l=()=>{var e;const t=r.value.conditionNodes.length+1;null==(e=r.value.conditionNodes)||e.push({jobId:void 0,nodeName:"任务"+t,priorityLevel:t,failStrategy:1,workflowNodeStatus:0}),n("update:modelValue",r.value)},a=(e,t)=>{e.childNode?a(e.childNode,t):e.childNode=t},s=(e,t=1)=>{var o;r.value.conditionNodes[e]=r.value.conditionNodes.splice(e+t,1,r.value.conditionNodes[e])[0],null==(o=r.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",r.value)},c=bt(0),u=bt(!1),d=bt({}),p=e=>{r.value.conditionNodes[c.value]=e,n("update:modelValue",r.value)};return(t,h)=>{const f=pn("a-button"),g=pn("a-divider"),m=pn("a-popover");return lr(),ur("div",H1,[vr("div",F1,[e.disabled?wr("",!0):(lr(),dr(f,{key:0,class:"add-branch",primary:"",onClick:l},{default:ln((()=>[Or("添加任务")])),_:1})),(lr(!0),ur(er,null,no(r.value.conditionNodes,((l,p)=>(lr(),ur("div",{class:"col-box",key:p},[vr("div",W1,[vr("div",X1,[br(m,{open:i.value[p]&&!e.disabled,onOpenChange:e=>i.value[p]=e},{content:ln((()=>[vr("div",Y1,[br(f,{type:"text",class:"popover-item",onClick:e=>{return t=p,void(o.disabled||(c.value=t,d.value=JSON.parse(JSON.stringify(r.value.conditionNodes[t])),u.value=!0));var t}},{default:ln((()=>[br(St(MG)),V1])),_:2},1032,["onClick"]),br(g,{type:"vertical"}),br(f,{type:"text",class:"popover-item"},{default:ln((()=>[br(St(SJ)),Z1])),_:1}),br(g,{type:"vertical"}),br(f,{type:"text",class:"popover-item"},{default:ln((()=>[br(St(pJ)),U1])),_:1})])])),default:ln((()=>[vr("div",{class:W(["auto-judge",e.disabled?`node-error node-error-${St(Q1)[l.taskBatchStatus].name}`:"auto-judge-def auto-judge-hover"])},[0!=p?(lr(),ur("div",{key:0,class:"sort-left",onClick:_i((e=>s(p,-1)),["stop"])},[br(St(LD))],8,K1)):wr("",!0),vr("div",G1,[vr("span",q1,V(l.nodeName),1),vr("span",J1,"优先级"+V(l.priorityLevel),1),e.disabled?wr("",!0):(lr(),dr(St(qb),{key:0,class:"close",onClick:_i((e=>{return t=p,void(1===r.value.conditionNodes.length?(r.value.childNode&&(r.value.conditionNodes[0].childNode?a(r.value.conditionNodes[0].childNode,r.value.childNode):r.value.conditionNodes[0].childNode=r.value.childNode),Ft((()=>{n("update:modelValue",r.value.conditionNodes[0].childNode)}))):null==(o=r.value.conditionNodes)||o.splice(t,1));var t,o}),["stop"])},null,8,["onClick"]))]),vr("div",e2,[l.jobId?wr("",!0):(lr(),ur("div",t2,"请选择任务")),l.jobId?(lr(),ur(er,{key:1},[vr("div",null,"任务ID: "+V(l.jobId),1),vr("div",null,"失败策略: "+V(St(N1)[l.failStrategy]),1),vr("div",null,"工作流状态: "+V(St(_1)[l.workflowNodeStatus]),1)],64)):wr("",!0)]),p!=r.value.conditionNodes.length-1?(lr(),ur("div",{key:1,class:"sort-right",onClick:_i((e=>s(p)),["stop"])},[br(St(sk))],8,n2)):wr("",!0),e.disabled?(lr(),dr(St(k1),{key:2,class:"error-tip",color:St(Q1)[l.taskBatchStatus].color,size:"24px",onClick:_i((()=>{}),["stop"]),modelValue:St(Q1)[l.taskBatchStatus].icon,"onUpdate:modelValue":e=>St(Q1)[l.taskBatchStatus].icon=e},null,8,["color","modelValue","onUpdate:modelValue"])):wr("",!0)],2)])),_:2},1032,["open","onOpenChange"]),br(z1,{disabled:e.disabled,modelValue:l.childNode,"onUpdate:modelValue":e=>l.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),l.childNode?oo(t.$slots,"default",{key:0,node:l},void 0,!0):wr("",!0),0==p?(lr(),ur("div",o2)):wr("",!0),0==p?(lr(),ur("div",r2)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",i2)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",l2)):wr("",!0)])))),128))]),r.value.conditionNodes.length>1?(lr(),dr(z1,{key:0,disabled:e.disabled,modelValue:r.value.childNode,"onUpdate:modelValue":h[0]||(h[0]=e=>r.value.childNode=e)},null,8,["disabled","modelValue"])):wr("",!0),br(B1,{open:u.value,"onUpdate:open":h[1]||(h[1]=e=>u.value=e),modelValue:d.value,"onUpdate:modelValue":h[2]||(h[2]=e=>d.value=e),onSave:p},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-bcac1bce"]]);class s2{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=v2(this,e,t);let o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),u2.from(o,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=v2(this,e,t);let n=[];return this.decompose(e,t,n,0),u2.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),o=new h2(this),r=new h2(e);for(let i=t,l=t;;){if(o.next(i),r.next(i),i=0,o.lineBreak!=r.lineBreak||o.done!=r.done||o.value!=r.value)return!1;if(l+=o.value.length,o.done||l>=n)return!0}}iter(e=1){return new h2(this,e)}iterRange(e,t=this.length){return new f2(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let o=this.line(e).from;n=this.iterRange(o,Math.max(o,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new g2(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new c2(e):u2.from(c2.split(e,[])):s2.empty}}class c2 extends s2{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.text[r],l=o+i.length;if((t?n:l)>=e)return new m2(o,l,n,i);o=l+1,n++}}decompose(e,t,n,o){let r=e<=0&&t>=this.length?this:new c2(p2(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&o){let e=n.pop(),t=d2(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new c2(t,e.length+r.length));else{let e=t.length>>1;n.push(new c2(t.slice(0,e)),new c2(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof c2))return super.replace(e,t,n);[e,t]=v2(this,e,t);let o=d2(this.text,d2(n.text,p2(this.text,0,e)),t),r=this.length+n.length-(t-e);return o.length<=32?new c2(o,r):u2.from(c2.split(o,[]),r)}sliceString(e,t=this.length,n="\n"){[e,t]=v2(this,e,t);let o="";for(let r=0,i=0;r<=t&&ie&&i&&(o+=n),er&&(o+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return o}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],o=-1;for(let r of e)n.push(r),o+=r.length+1,32==n.length&&(t.push(new c2(n,o)),n=[],o=-1);return o>-1&&t.push(new c2(n,o)),t}}class u2 extends s2{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.children[r],l=o+i.length,a=n+i.lines-1;if((t?a:l)>=e)return i.lineInner(e,t,n,o);o=l+1,n=a+1}}decompose(e,t,n,o){for(let r=0,i=0;i<=t&&r=i){let r=o&((i<=e?1:0)|(a>=t?2:0));i>=e&&a<=t&&!r?n.push(l):l.decompose(e-i,t-i,n,r)}i=a+1}}replace(e,t,n){if([e,t]=v2(this,e,t),n.lines=r&&t<=l){let a=i.replace(e-r,t-r,n),s=this.lines-i.lines+a.lines;if(a.lines>4&&a.lines>s>>6){let r=this.children.slice();return r[o]=a,new u2(r,this.length-(t-e)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=v2(this,e,t);let o="";for(let r=0,i=0;re&&r&&(o+=n),ei&&(o+=l.sliceString(e-i,t-i,n)),i=a+1}return o}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof u2))return 0;let n=0,[o,r,i,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;o+=t,r+=t){if(o==i||r==l)return n;let a=this.children[o],s=e.children[r];if(a!=s)return n+a.scanIdentical(s,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new c2(n,t)}let o=Math.max(32,n>>5),r=o<<1,i=o>>1,l=[],a=0,s=-1,c=[];function u(e){let t;if(e.lines>r&&e instanceof u2)for(let n of e.children)u(n);else e.lines>i&&(a>i||!a)?(d(),l.push(e)):e instanceof c2&&a&&(t=c[c.length-1])instanceof c2&&e.lines+t.lines<=32?(a+=e.lines,s+=e.length+1,c[c.length-1]=new c2(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>o&&d(),a+=e.lines,s+=e.length+1,c.push(e))}function d(){0!=a&&(l.push(1==c.length?c[0]:u2.from(c,s)),s=-1,a=c.length=0)}for(let p of e)u(p);return d(),1==l.length?l[0]:new u2(l,t)}}function d2(e,t,n=0,o=1e9){for(let r=0,i=0,l=!0;i=n&&(s>o&&(a=a.slice(0,o-r)),r0?1:(e instanceof c2?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],r=this.offsets[n],i=r>>1,l=o instanceof c2?o.text.length:o.children.length;if(i==(t>0?l:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(o instanceof c2){let r=o.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=o.children[i+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof c2?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class f2{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new h2(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:o}=this.cursor.next(e);return this.pos+=(o.length+e)*t,this.value=o.length<=n?o:t<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class g2{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:o}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(s2.prototype[Symbol.iterator]=function(){return this.iter()},h2.prototype[Symbol.iterator]=f2.prototype[Symbol.iterator]=g2.prototype[Symbol.iterator]=function(){return this});class m2{constructor(e,t,n,o){this.from=e,this.to=t,this.number=n,this.text=o}get length(){return this.to-this.from}}function v2(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}let b2="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Gue=1;Guee)return b2[t-1]<=e;return!1}function O2(e){return e>=127462&&e<=127487}function w2(e,t,n=!0,o=!0){return(n?S2:$2)(e,t,o)}function S2(e,t,n){if(t==e.length)return t;t&&x2(e.charCodeAt(t))&&C2(e.charCodeAt(t-1))&&t--;let o=k2(e,t);for(t+=T2(o);t=0&&O2(k2(e,o));)n++,o-=2;if(n%2==0)break;t+=2}}}return t}function $2(e,t,n){for(;t>0;){let o=S2(e,t-2,n);if(o=56320&&e<57344}function C2(e){return e>=55296&&e<56320}function k2(e,t){let n=e.charCodeAt(t);if(!C2(n)||t+1==e.length)return n;let o=e.charCodeAt(t+1);return x2(o)?o-56320+(n-55296<<10)+65536:n}function P2(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function T2(e){return e<65536?1:2}const M2=/\r\n?|\n/;var I2=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(I2||(I2={}));class E2{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-o);r+=l}else{if(n!=I2.Simple&&s>=e&&(n==I2.TrackDel&&oe||n==I2.TrackBefore&&oe))return null;if(s>e||s==e&&t<0&&!l)return e==o||t<0?r:r+a;r+=a}o=s}if(e>o)throw new RangeError(`Position ${e} is out of range for changeset of length ${o}`);return r}touchesRange(e,t=e){for(let n=0,o=0;n=0&&o<=t&&r>=e)return!(ot)||"cover";o=r}return!1}toString(){let e="";for(let t=0;t=0?":"+o:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new E2(e)}static create(e){return new E2(e)}}class A2 extends E2{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return z2(this,((t,n,o,r,i)=>e=e.replace(o,o+(n-t),i)),!1),e}mapDesc(e,t=!1){return B2(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let o=0,r=0;o=0){t[o]=l,t[o+1]=i;let a=o>>1;for(;n.length0&&R2(n,t,r.text),r.forward(e),l+=e}let s=e[i++];for(;l>1].toJSON()))}return e}static of(e,t,n){let o=[],r=[],i=0,l=null;function a(e=!1){if(!e&&!o.length)return;il||e<0||l>t)throw new RangeError(`Invalid change range ${e} to ${l} (in doc of length ${t})`);let u=c?"string"==typeof c?s2.of(c.split(n||M2)):c:s2.empty,d=u.length;if(e==l&&0==d)return;ei&&D2(o,e-i,-1),D2(o,l-e,d),R2(r,o,u),i=l}}(e),a(!l),l}static empty(e){return new A2(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let o=0;ot&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:o?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function R2(e,t,n){if(0==n.length)return;let o=t.length-2>>1;if(o>1])),!(n||l==e.sections.length||e.sections[l+1]<0);)a=e.sections[l++],s=e.sections[l++];t(r,c,i,u,d),r=c,i=u}}}function B2(e,t,n,o=!1){let r=[],i=o?[]:null,l=new N2(e),a=new N2(t);for(let s=-1;;)if(-1==l.ins&&-1==a.ins){let e=Math.min(l.len,a.len);D2(r,e,-1),l.forward(e),a.forward(e)}else if(a.ins>=0&&(l.ins<0||s==l.i||0==l.off&&(a.len=0&&s=0)){if(l.done&&a.done)return i?A2.createSet(r,i):E2.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=l.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.lene||l.ins>=0&&l.len>e)&&(a||o.length>t),i.forward2(e),l.forward(e)}}else D2(o,0,l.ins,a),r&&R2(r,o,l.text),l.next()}}class N2{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?s2.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?s2.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class _2{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,o;return this.empty?n=o=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),o=e.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new _2(n,o,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Q2.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Q2.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Q2.range(e.anchor,e.head)}static create(e,t,n){return new _2(e,t,n)}}class Q2{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Q2.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Q2(e.ranges.map((e=>_2.fromJSON(e))),e.main)}static single(e,t=e){return new Q2([Q2.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;oe?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let o=1;on.head?Q2.range(l,i):Q2.range(i,l))}}return new Q2(e,t)}}function L2(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let H2=0;class F2{constructor(e,t,n,o,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=o,this.id=H2++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new F2(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:W2),!!e.static,e.enables)}of(e){return new X2([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X2(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X2(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function W2(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class X2{constructor(e,t,n,o){this.dependencies=e,this.facet=t,this.type=n,this.value=o,this.id=H2++}dynamicSlot(e){var t;let n=this.value,o=this.facet.compareInput,r=this.id,i=e[r]>>1,l=2==this.type,a=!1,s=!1,c=[];for(let u of this.dependencies)"doc"==u?a=!0:"selection"==u?s=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[i]=n(e),1),update(e,t){if(a&&t.docChanged||s&&(t.docChanged||t.selection)||V2(e,c)){let t=n(e);if(l?!Y2(t,e.values[i],o):!o(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let a,s=t.config.address[r];if(null!=s){let r=s3(t,s);if(this.dependencies.every((n=>n instanceof F2?t.facet(n)===e.facet(n):!(n instanceof K2)||t.field(n,!1)==e.field(n,!1)))||(l?Y2(a=n(e),r,o):o(a=n(e),r)))return e.values[i]=r,0}else a=n(e);return e.values[i]=a,1}}}}function Y2(e,t,n){if(e.length!=t.length)return!1;for(let o=0;oe[t.id])),r=n.map((e=>e.type)),i=o.filter((e=>!(1&e))),l=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(U2).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let o=e.values[t],r=this.updateF(o,n);return this.compareF(o,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,U2.of({field:this,create:e})]}get extension(){return this}}const G2=4,q2=3,J2=2,e3=1;function t3(e){return t=>new o3(t,e)}const n3={highest:t3(0),high:t3(e3),default:t3(J2),low:t3(q2),lowest:t3(G2)};class o3{constructor(e,t){this.inner=e,this.prec=t}}class r3{of(e){return new i3(this,e)}reconfigure(e){return r3.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class i3{constructor(e,t){this.compartment=e,this.inner=t}}class l3{constructor(e,t,n,o,r,i){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=o,this.staticValues=r,this.facets=i,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let o=[],r=Object.create(null),i=new Map;for(let d of function(e,t,n){let o=[[],[],[],[],[]],r=new Map;function i(e,l){let a=r.get(e);if(null!=a){if(a<=l)return;let t=o[a].indexOf(e);t>-1&&o[a].splice(t,1),e instanceof i3&&n.delete(e.compartment)}if(r.set(e,l),Array.isArray(e))for(let t of e)i(t,l);else if(e instanceof i3){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let o=t.get(e.compartment)||e.inner;n.set(e.compartment,o),i(o,l)}else if(e instanceof o3)i(e.inner,e.prec);else if(e instanceof K2)o[l].push(e),e.provides&&i(e.provides,l);else if(e instanceof X2)o[l].push(e),e.facet.extensions&&i(e.facet.extensions,J2);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(t,l)}}return i(e,J2),o.reduce(((e,t)=>e.concat(t)))}(e,t,i))d instanceof K2?o.push(d):(r[d.facet.id]||(r[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],s=[];for(let d of o)l[d.id]=s.length<<1,s.push((e=>d.slot(e)));let c=null==n?void 0:n.config.facets;for(let d in r){let e=r[d],t=e[0].facet,o=c&&c[d]||[];if(e.every((e=>0==e.type)))if(l[t.id]=a.length<<1|1,W2(o,e))a.push(n.facet(t));else{let o=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(o,n.facet(t))?n.facet(t):o)}else{for(let t of e)0==t.type?(l[t.id]=a.length<<1|1,a.push(t.value)):(l[t.id]=s.length<<1,s.push((e=>t.dynamicSlot(e))));l[t.id]=s.length<<1,s.push((n=>Z2(n,t,e)))}}let u=s.map((e=>e(l)));return new l3(e,i,u,l,a,r)}}function a3(e,t){if(1&t)return 2;let n=t>>1,o=e.status[n];if(4==o)throw new Error("Cyclic dependency between fields and/or facets");if(2&o)return o;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function s3(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const c3=F2.define(),u3=F2.define({combine:e=>e.some((e=>e)),static:!0}),d3=F2.define({combine:e=>e.length?e[0]:void 0,static:!0}),p3=F2.define(),h3=F2.define(),f3=F2.define(),g3=F2.define({combine:e=>!!e.length&&e[0]});class m3{constructor(e,t){this.type=e,this.value=t}static define(){return new v3}}class v3{of(e){return new m3(this,e)}}class b3{constructor(e){this.map=e}of(e){return new y3(this,e)}}class y3{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new y3(this.type,t)}is(e){return this.type==e}static define(e={}){return new b3(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let o of e){let e=o.map(t);e&&n.push(e)}return n}}y3.reconfigure=y3.define(),y3.appendConfig=y3.define();class O3{constructor(e,t,n,o,r,i){this.startState=e,this.changes=t,this.selection=n,this.effects=o,this.annotations=r,this.scrollIntoView=i,this._doc=null,this._state=null,n&&L2(n,t.newLength),r.some((e=>e.type==O3.time))||(this.annotations=r.concat(O3.time.of(Date.now())))}static create(e,t,n,o,r,i){return new O3(e,t,n,o,r,i)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(O3.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function w3(e,t){let n=[];for(let o=0,r=0;;){let i,l;if(o=e[o]))i=e[o++],l=e[o++];else{if(!(r=0;r--){let i=n[r](e);i&&Object.keys(i).length&&(o=S3(o,$3(t,i,e.changes.newLength),!0))}return o==e?e:O3.create(t,e.changes,e.selection,o.effects,o.annotations,o.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(p3)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:w3(n,t))}if(!0!==n){let o,r;if(!1===n)r=e.changes.invertedDesc,o=A2.empty(t.doc.length);else{let t=e.changes.filter(n);o=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=O3.create(t,o,e.selection&&e.selection.map(r),y3.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let o=t.facet(h3);for(let r=o.length-1;r>=0;r--){let n=o[r](e);e=n instanceof O3?n:Array.isArray(n)&&1==n.length&&n[0]instanceof O3?n[0]:x3(t,k3(n),!1)}return e}(r):r)}O3.time=m3.define(),O3.userEvent=m3.define(),O3.addToHistory=m3.define(),O3.remote=m3.define();const C3=[];function k3(e){return null==e?C3:Array.isArray(e)?e:[e]}var P3=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(P3||(P3={}));const T3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let M3;try{M3=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Kue){}function I3(e){return t=>{if(!/\S/.test(t))return P3.Space;if(function(e){if(M3)return M3.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||T3.test(n)))return!0}return!1}(t))return P3.Word;for(let n=0;n-1)return P3.Word;return P3.Other}}class E3{constructor(e,t,n,o,r,i){this.config=e,this.doc=t,this.selection=n,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=r,i&&(i._state=this);for(let l=0;lr.set(t,e))),n=null),r.set(l.value.compartment,l.value.extension)):l.is(y3.reconfigure)?(n=null,o=l.value):l.is(y3.appendConfig)&&(n=null,o=k3(o).concat(l.value));n?t=e.startState.values.slice():(n=l3.resolve(o,r,this),t=new E3(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let i=e.startState.facet(u3)?e.newSelection:e.newSelection.asSingle();new E3(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:Q2.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),o=this.changes(n.changes),r=[n.range],i=k3(n.effects);for(let l=1;lt.spec.fromJSON(i,e))))}return E3.create({doc:e.doc,selection:Q2.fromJSON(e.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(e={}){let t=l3.resolve(e.extensions||[],new Map),n=e.doc instanceof s2?e.doc:s2.of((e.doc||"").split(t.staticFacet(E3.lineSeparator)||M2)),o=e.selection?e.selection instanceof Q2?e.selection:Q2.single(e.selection.anchor,e.selection.head):Q2.single(0);return L2(o,n.length),t.staticFacet(u3)||(o=o.asSingle()),new E3(t,n,o,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(E3.tabSize)}get lineBreak(){return this.facet(E3.lineSeparator)||"\n"}get readOnly(){return this.facet(g3)}phrase(e,...t){for(let n of this.facet(E3.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let o=+(n||1);return!o||o>t.length?e:t[o-1]}))),e}languageDataAt(e,t,n=-1){let o=[];for(let r of this.facet(c3))for(let i of r(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&o.push(i[e]);return o}charCategorizer(e){return I3(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:o}=this.doc.lineAt(e),r=this.charCategorizer(e),i=e-n,l=e-n;for(;i>0;){let e=w2(t,i,!1);if(r(t.slice(e,i))!=P3.Word)break;i=e}for(;le.length?e[0]:4}),E3.lineSeparator=d3,E3.readOnly=g3,E3.phrases=F2.define({compare(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length==o.length&&n.every((n=>e[n]==t[n]))}}),E3.languageData=c3,E3.changeFilter=p3,E3.transactionFilter=h3,E3.transactionExtender=f3,r3.reconfigure=y3.define();class D3{eq(e){return this==e}range(e,t=e){return R3.create(e,t,this)}}D3.prototype.startSide=D3.prototype.endSide=0,D3.prototype.point=!1,D3.prototype.mapMode=I2.TrackDel;let R3=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,o){return new e(t,n,o)}};function z3(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class B3{constructor(e,t,n,o){this.from=e,this.to=t,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,o=0){let r=n?this.to:this.from;for(let i=o,l=r.length;;){if(i==l)return i;let o=i+l>>1,a=r[o]-e||(n?this.value[o].endSide:this.value[o].startSide)-t;if(o==i)return a>=0?i:l;a>=0?l=o:i=o+1}}between(e,t,n,o){for(let r=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,r);rc||s==c&&u.startSide>0&&u.endSide<=0)continue;(c-s||u.endSide-u.startSide)<0||(i<0&&(i=s),u.point&&(l=Math.max(l,c-s)),n.push(u),o.push(s-i),r.push(c-i))}return{mapped:n.length?new B3(o,r,n,l):null,pos:i}}}class j3{constructor(e,t,n,o){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=o}static create(e,t,n,o){return new j3(e,t,n,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:o=0,filterTo:r=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(n&&(t=t.slice().sort(z3)),this.isEmpty)return t.length?j3.of(t):this;let l=new Q3(this,null,-1).goto(0),a=0,s=[],c=new N3;for(;l.value||a=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||s.push(e)}else 1==l.rangeIndex&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&e<=r+i.length&&!1===i.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return L3.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return L3.from(e).goto(t)}static compare(e,t,n,o,r=-1){let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),l=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=_3(i,l,n),s=new F3(i,a,r),c=new F3(l,a,r);n.iterGaps(((e,t,n)=>W3(s,e,c,t,n,o))),n.empty&&0==n.length&&W3(s,0,c,0,0,o)}static eq(e,t,n=0,o){null==o&&(o=999999999);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=i.length)return!1;if(!r.length)return!0;let l=_3(r,i),a=new F3(r,l,0).goto(n),s=new F3(i,l,0).goto(n);for(;;){if(a.to!=s.to||!X3(a.active,s.active)||a.point&&(!s.point||!a.point.eq(s.point)))return!1;if(a.to>o)return!0;a.next(),s.next()}}static spans(e,t,n,o,r=-1){let i=new F3(e,null,r).goto(t),l=t,a=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),r=i.pointFroml&&(o.span(l,e,i.active,a),a=i.openEnd(e));if(i.to>n)return a+(i.point&&i.to>n?1:0);l=i.to,i.next()}}static of(e,t=!1){let n=new N3;for(let o of e instanceof R3?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(z3);t=o}return e}(e):e)n.add(o.from,o.to,o.value);return n.finish()}}j3.empty=new j3([],[],null,-1),j3.empty.nextLayer=j3.empty;class N3{finishChunk(e){this.chunks.push(new B3(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new N3)).add(e,t,n)}addInner(e,t,n){let o=e-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(j3.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=j3.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function _3(e,t,n){let o=new Map;for(let i of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&o.push(new Q3(i,t,n,r));return 1==o.length?o[0]:new L3(o)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)H3(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)H3(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),H3(this.heap,0)}}}function H3(e,t){for(let n=e[t];;){let o=1+(t<<1);if(o>=e.length)break;let r=e[o];if(o+1=0&&(r=e[o+1],o++),n.compare(r)<0)break;e[o]=n,e[t]=r,t=o}}class F3{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=L3.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Y3(this.active,e),Y3(this.activeTo,e),Y3(this.activeRank,e),this.minActive=Z3(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:o,rank:r}=this.cursor;for(;t-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>e){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&Y3(n,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function W3(e,t,n,o,r,i){e.goto(t),n.goto(o);let l=o+r,a=o,s=o-t;for(;;){let t=e.to+s-n.to||e.endSide-n.endSide,o=t<0?e.to+s:n.to,r=Math.min(o,l);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&X3(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(a,r,e.point,n.point):r>a&&!X3(e.active,n.active)&&i.compareRange(a,r,e.active,n.active),o>l)break;a=o,t<=0&&e.next(),t>=0&&n.next()}}function X3(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;o--)e[o+1]=e[o];e[t]=n}function Z3(e,t){let n=-1,o=1e9;for(let r=0;r=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=w2(e,r)}return!0===o?-1:e.length}const G3="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),q3="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),J3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class e4{constructor(e,t){this.rules=[];let{finish:n}=t||{};function o(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,i,l){let a=[],s=/^@(\w+)\b/.exec(e[0]),c=s&&"keyframes"==s[1];if(s&&null==t)return i.push(e[0]+";");for(let n in t){let l=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),l,i);else if(l&&"object"==typeof l){if(!s)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(o(n),l,a,c)}else null!=l&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+l+";")}(a.length||c)&&i.push((!n||s||l?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let i in e)r(o(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=J3[G3]||1;return J3[G3]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let o=e[q3],r=n&&n.nonce;o?r&&o.setNonce(r):o=new n4(e,r),o.mount(Array.isArray(t)?t:[t])}}let t4=new Map;class n4{constructor(e,t){let n=e.ownerDocument||e,o=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&o.CSSStyleSheet){let t=t4.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[q3]=t;this.sheet=new o.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],t4.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let o=e.head||e;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],e[q3]=this}mount(e){let t=this.sheet,n=0,o=0;for(let r=0;r-1&&(this.modules.splice(l,1),o--,l=-1),-1==l){if(this.modules.splice(o++,0,i),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i4="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l4="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a4=0;a4<10;a4++)o4[48+a4]=o4[96+a4]=String(a4);for(a4=1;a4<=24;a4++)o4[a4+111]="F"+a4;for(a4=65;a4<=90;a4++)o4[a4]=String.fromCharCode(a4+32),r4[a4]=String.fromCharCode(a4);for(var s4 in o4)r4.hasOwnProperty(s4)||(r4[s4]=o4[s4]);function c4(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function u4(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function d4(e,t){if(!t.anchorNode)return!1;try{return u4(e,t.anchorNode)}catch(Kue){return!1}}function p4(e){return 3==e.nodeType?x4(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function h4(e,t,n,o){return!!n&&(g4(e,t,n,o,-1)||g4(e,t,n,o,1))}function f4(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function g4(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:m4(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=f4(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?m4(e):0}}}function m4(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function v4(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function b4(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function y4(e,t){let n=t.width/e.offsetWidth,o=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(t.height-e.offsetHeight)<1)&&(o=1),{scaleX:n,scaleY:o}}class O4{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?m4(t):0),n,Math.min(e.focusOffset,n?m4(n):0))}set(e,t,n,o){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=o}}let w4,S4=null;function $4(e){if(e.setActive)return e.setActive();if(S4)return e.focus(S4);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==S4?{get preventScroll(){return S4={preventScroll:!0},!0}}:void 0),!S4){S4=!1;for(let e=0;eMath.max(1,e.scrollHeight-e.clientHeight-4)}class T4{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new T4(e.parentNode,f4(e),t)}static after(e,t){return new T4(e.parentNode,f4(e)+1,t)}}const M4=[];class I4{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,o=this.dom,r=null;for(let i of this.children){if(7&i.flags){if(!i.dom&&(n=r?r.nextSibling:o.firstChild)){let e=I4.get(n);(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(n)}i.sync(e,t),i.flags&=-8}if(n=r?r.nextSibling:o.firstChild,t&&!t.written&&t.node==o&&n!=i.dom&&(t.written=!0),i.dom.parentNode==o)for(;n&&n!=i.dom;)n=E4(n);else o.insertBefore(i.dom,n);r=i.dom}for(n=r?r.nextSibling:o.firstChild,n&&t&&t.node==o&&(t.written=!0);n;)n=E4(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let o=0==m4(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==o&&t.firstChild!=t.lastChild&&(o=e==t.firstChild?-1:1),e=t}n=o<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!I4.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,r=0;;o++){let e=this.children[o];if(e.dom==n)return r;r+=e.length+e.breakAfter}}domBoundsAround(e,t,n=0){let o=-1,r=-1,i=-1,l=-1;for(let a=0,s=n,c=n;at)return n.domBoundsAround(e,t,s);if(u>=e&&-1==o&&(o=a,r=s),s>t&&n.dom.parentNode==this.dom){i=a,l=c;break}c=u,s=u+n.breakAfter}return{from:r,to:l<0?n+this.length:l,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=M4){this.markDirty();for(let o=e;othis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function D4(e,t,n,o,r,i,l,a,s){let{children:c}=e,u=c.length?c[t]:null,d=i.length?i[i.length-1]:null,p=d?d.breakAfter:l;if(!(t==o&&u&&!l&&!p&&i.length<2&&u.merge(n,r,i.length?d:null,0==n,a,s))){if(o0&&(!l&&i.length&&u.merge(n,u.length,i[0],!1,a,0)?u.breakAfter=i.shift().breakAfter:(n2);var Y4={mac:X4||/Mac/.test(z4.platform),windows:/Win/.test(z4.platform),linux:/Linux|X11/.test(z4.platform),ie:Q4,ie_version:N4?B4.documentMode||6:_4?+_4[1]:j4?+j4[1]:0,gecko:L4,gecko_version:L4?+(/Firefox\/(\d+)/.exec(z4.userAgent)||[0,0])[1]:0,chrome:!!H4,chrome_version:H4?+H4[1]:0,ios:X4,android:/Android\b/.test(z4.userAgent),webkit:F4,safari:W4,webkit_version:F4?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=B4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class V4 extends I4{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof V4)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new V4(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new T4(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let o=e.nodeValue.length;t>o&&(t=o);let r=t,i=t,l=0;0==t&&n<0||t==o&&n>=0?Y4.chrome||Y4.gecko||(t?(r--,l=1):i=0)?0:a.length-1];return Y4.safari&&!l&&0==s.width&&(s=Array.prototype.find.call(a,(e=>e.width))||s),l?v4(s,l<0):s||null}(this.dom,e,t)}}class Z4 extends I4{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let o of t)o.setParent(this)}setAttrs(e){if(k4(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof Z4&&n.mark.eq(this.mark))||e&&r<=0||te&&t.push(n=e&&(o=r),n=i,r++}let i=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new Z4(this.mark,t,i)}domAtPos(e){return G4(this,e)}coordsAt(e,t){return J4(this,e,t)}}class U4 extends I4{static create(e,t,n){return new U4(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=U4.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof U4&&this.widget.compare(n.widget))||e>0&&r<=0||t0)?T4.before(this.dom):T4.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let o=this.dom.getClientRects(),r=null;if(!o.length)return null;let i=this.side?this.side<0:e>0;for(let l=i?o.length-1:0;r=o[l],!(e>0?0==l:l==o.length-1||r.top0?T4.before(this.dom):T4.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return s2.empty}get isHidden(){return!0}}function G4(e,t){let n=e.dom,{children:o}=e,r=0;for(let i=0;ri&&t0;i--){let e=o[i-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let i=r;i0&&t instanceof Z4&&r.length&&(o=r[r.length-1])instanceof Z4&&o.mark.eq(t.mark)?q4(o,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function J4(e,t,n){let o=null,r=-1,i=null,l=-1;!function e(t,a){for(let s=0,c=0;s=a&&(u.children.length?e(u,a-c):(!i||i.isHidden&&n>0)&&(d>a||c==d&&u.getSide()>0)?(i=u,l=a-c):(c-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let i of o)if(i!=n&&(-1==r.indexOf(i)||e[i]!==t[i]))return!1;return!0}function o5(e,t,n){let o=!1;if(t)for(let r in t)n&&r in n||(o=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(n)for(let r in n)t&&t[r]==n[r]||(o=!0,"style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return o}function r5(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){n5(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){q4(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=e5(t,this.attrs||{})),n&&(this.attrs=e5({class:n},this.attrs||{}))}domAtPos(e){return G4(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(k4(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(o5(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let o=this.dom.lastChild;for(;o&&I4.get(o)instanceof Z4;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(n=I4.get(o))||void 0===n?void 0:n.isEditable)||Y4.ios&&this.children.some((e=>e instanceof V4))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof V4)||/[^ -~]/.test(n.text))return null;let o=p4(n.dom);if(1!=o.length)return null;t+=o[0].width,e=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=J4(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(r instanceof i5)return r;if(i>t)break}o=i+r.breakAfter}return null}}class l5 extends I4{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof l5&&this.widget.compare(n.widget))||e>0&&r<=0||t0)}}class a5{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var s5=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(s5||(s5={}));class c5 extends D3{constructor(e,t,n,o){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(e){return new u5(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new p5(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,o=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:i}=h5(e,o);t=(r?o?-3e8:-1:5e8)-1,n=1+(i?o?2e8:1:-6e8)}return new p5(e,t,n,o,e.widget||null,!0)}static line(e){return new d5(e)}static set(e,t=!1){return j3.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}c5.none=j3.empty;class u5 extends c5{constructor(e){let{start:t,end:n}=h5(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof u5&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&n5(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}u5.prototype.point=!1;class d5 extends c5{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof d5&&this.spec.class==e.spec.class&&n5(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}d5.prototype.mapMode=I2.TrackBefore,d5.prototype.point=!0;class p5 extends c5{constructor(e,t,n,o,r,i){super(t,n,r,e),this.block=o,this.isReplace=i,this.mapMode=o?t<=0?I2.TrackBefore:I2.TrackAfter:I2.TrackDel}get type(){return this.startSide!=this.endSide?s5.WidgetRange:this.startSide<=0?s5.WidgetBefore:s5.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof p5&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function h5(e,t=!1){let{inclusiveStart:n,inclusiveEnd:o}=e;return null==n&&(n=e.inclusive),null==o&&(o=e.inclusive),{start:null!=n?n:t,end:null!=o?o:t}}function f5(e,t,n,o=0){let r=n.length-1;r>=0&&n[r]+o>=e?n[r]=Math.max(n[r],t):n.push(e,t)}p5.prototype.point=!0;class g5{constructor(e,t,n,o){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof l5&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new i5),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(m5(new K4(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof l5||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let o=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(m5(new V4(this.text.slice(this.textOff,this.textOff+o)),t),n),this.atCursorPos=!0,this.textOff+=o,e-=o,n=0}}span(e,t,n,o){this.buildText(t-e,n,o),this.pos=t,this.openStart<0&&(this.openStart=o)}point(e,t,n,o,r,i){if(this.disallowBlockEffectsFor[i]&&n instanceof p5){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof p5)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new l5(n.widget||new v5("div"),l,n));else{let i=U4.create(n.widget||new v5("span"),l,l?0:n.startSide),a=this.atCursorPos&&!i.isEditable&&r<=o.length&&(e0),s=!i.isEditable&&(eo.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||i.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),a&&(c.append(m5(new K4(1),o),r),r=o.length+Math.max(0,r-o.length)),c.append(m5(i,o),r),this.atCursorPos=s,this.pendingBuffer=s?eo.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,o,r){let i=new g5(e,t,n,r);return i.openEnd=j3.spans(o,t,n,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function m5(e,t){for(let n of t)e=new Z4(n,[e],e.length);return e}class v5 extends a5{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const b5=F2.define(),y5=F2.define(),O5=F2.define(),w5=F2.define(),S5=F2.define(),$5=F2.define(),x5=F2.define(),C5=F2.define({combine:e=>e.some((e=>e))}),k5=F2.define({combine:e=>e.some((e=>e))});class P5{constructor(e,t="nearest",n="nearest",o=5,r=5,i=!1){this.range=e,this.y=t,this.x=n,this.yMargin=o,this.xMargin=r,this.isSnapshot=i}map(e){return e.empty?this:new P5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new P5(Q2.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const T5=y3.define({map:(e,t)=>e.map(t)});function M5(e,t,n){let o=e.facet(w5);o.length?o[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)}const I5=F2.define({combine:e=>!e.length||e[0]});let E5=0;const A5=F2.define();class D5{constructor(e,t,n,o,r){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=o,this.extension=r(this)}static define(e,t){const{eventHandlers:n,eventObservers:o,provide:r,decorations:i}=t||{};return new D5(E5++,e,n,o,(e=>{let t=[A5.of(e)];return i&&t.push(j5.of((t=>{let n=t.plugin(e);return n?i(n):c5.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return D5.define((t=>new e(t)),t)}}class R5{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(Uue){if(M5(e.state,Uue,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(Kue){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(Uue){M5(e.state,Uue,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(Uue){M5(e.state,Uue,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const z5=F2.define(),B5=F2.define(),j5=F2.define(),N5=F2.define(),_5=F2.define();function Q5(e,t,n){let o=e.state.facet(_5);if(!o.length)return o;let r=o.map((t=>t instanceof Function?t(e):t)),i=[];return j3.spans(r,t,n,{point(){},span(e,t,n,o){let r=i;for(let i=n.length-1;i>=0;i--,o--){let l,a=n[i].spec.bidiIsolate;if(null!=a)if(o>0&&r.length&&(l=r[r.length-1]).to==e&&l.direction==a)l.to=t,r=l.inner;else{let n={from:e,to:t,direction:a,inner:[]};r.push(n),r=n.inner}}}}),i}const L5=F2.define();function H5(e){let t=0,n=0,o=0,r=0;for(let i of e.state.facet(L5)){let l=i(e);l&&(null!=l.left&&(t=Math.max(t,l.left)),null!=l.right&&(n=Math.max(n,l.right)),null!=l.top&&(o=Math.max(o,l.top)),null!=l.bottom&&(r=Math.max(r,l.bottom)))}return{left:t,right:n,top:o,bottom:r}}const F5=F2.define();class W5{constructor(e,t,n,o){this.fromA=e,this.toA=t,this.fromB=n,this.toB=o}join(e){return new W5(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let o=e[t-1];if(!(o.fromA>n.toA)){if(o.toAc)break;r+=2}if(!a)return n;new W5(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),i=a.toA,l=a.toB}}}class X5{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=A2.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let o=[];this.changes.iterChangedRanges(((e,t,n,r)=>o.push(new W5(e,t,n,r)))),this.changedRanges=o}static create(e,t,n){return new X5(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Y5=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Y5||(Y5={}));const V5=Y5.LTR,Z5=Y5.RTL;function U5(e){let t=[];for(let n=0;n=t){if(l.level==n)return i;(r<0||(0!=o?o<0?l.fromt:e[r].level>l.level))&&(r=i)}}if(r<0)throw new RangeError("Index out of range");return r}}function n8(e,t){if(e.length!=t.length)return!1;for(let n=0;ns&&l.push(new t8(s,f.from,p)),i8(e,f.direction==V5!=!(p%2)?o+1:o,r,f.inner,f.from,f.to,l),s=f.to),h=f.to}else{if(h==n||(t?o8[h]!=a:o8[h]==a))break;h++}d?r8(e,s,h,o+1,r,d,l):st;){let n=!0,u=!1;if(!c||s>i[c-1].to){let e=o8[s-1];e!=a&&(n=!1,u=16==e)}let d=n||1!=a?null:[],p=n?o:o+1,h=s;e:for(;;)if(c&&h==i[c-1].to){if(u)break e;let f=i[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||i[n-1].to!=e){if(o8[e-1]==a)break e;break}e=i[--n].from}d?d.push(f):(f.to=0;e-=3)if(J5[e+1]==-n){let t=J5[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(o8[l]=o8[J5[e]]=n),a=e;break}}else{if(189==J5.length)break;J5[a++]=l,J5[a++]=t,J5[a++]=s}else if(2==(o=o8[l])||1==o){let e=o==r;s=e?0:1;for(let t=a-3;t>=0;t-=3){let n=J5[t+2];if(2&n)break;if(e)J5[t+2]|=2;else{if(4&n)break;J5[t+2]|=4}}}}}(e,r,i,o,a),function(e,t,n,o){for(let r=0,i=o;r<=n.length;r++){let l=r?n[r-1].to:e,a=rs;)t==i&&(t=n[--o].from,i=o?n[o-1].to:e),o8[--t]=u;s=l}else i=l,s++}}}(r,i,o,a),r8(e,r,i,t,n,o,l)}function l8(e){return[new t8(0,e,0)]}let a8="";function s8(e,t,n,o,r){var i;let l=o.head-e.from,a=-1;if(0==l){if(!r||!e.length)return null;t[0].level!=n&&(l=t[0].side(!1,n),a=0)}else if(l==e.length){if(r)return null;let e=t[t.length-1];e.level!=n&&(l=e.side(!0,n),a=t.length-1)}a<0&&(a=t8.find(t,l,null!==(i=o.bidiLevel)&&void 0!==i?i:-1,o.assoc));let s=t[a];l==s.side(r,n)&&(s=t[a+=r?1:-1],l=s.side(!r,n));let c=r==(s.dir==n),u=w2(e.text,l,c);if(a8=e.text.slice(Math.min(l,u),Math.max(l,u)),u>s.from&&u0&&n.length&&(n.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?o=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,o)=>{et.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(o=e.state.selection.main.head));let r=o>-1?function(e,t,n){let o=d8(e,n);if(!o)return null;let{node:r,from:i,to:l}=o,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(o.from,o.to)!=a)return null;let s=t.invertedDesc,c=new W5(s.mapPos(i),s.mapPos(l),i,l),u=[];for(let d=r.parentNode;;d=d.parentNode){let t=I4.get(d);if(t instanceof Z4)u.push({node:d,deco:t.mark});else{if(t instanceof i5||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{range:c,text:r,marks:u,line:d};if(d==e.contentDOM)return null;u.push({node:d,deco:new u5({inclusive:!0,attributes:r5(d),tagName:d.tagName.toLowerCase()})})}}}(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:o}=this.hasComposition;n=new W5(t,o,e.changes.mapPos(t,-1),e.changes.mapPos(o,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Y4.ie||Y4.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,n){let o=new h8;return j3.compare(e,t,n,o),o.changes}(this.decorations,this.updateDeco(),e.changes);return n=W5.extendWithRanges(n,i),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:o}=this.view;o.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Y4.chrome||Y4.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||o.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let r=[];if(this.view.viewport.from||this.view.viewport.to=0?o[i]:null;if(!e)break;let t,l,a,s,{fromA:c,toA:u,fromB:d,toB:p}=e;if(n&&n.range.fromBd){let e=g5.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),o=g5.build(this.view.state.doc,n.range.toB,p,this.decorations,this.dynamicDecorationMap);l=e.breakAtStart,a=e.openStart,s=o.openEnd;let r=this.compositionView(n);o.breakAtStart?r.breakAfter=1:o.content.length&&r.merge(r.length,r.length,o.content[0],!1,o.openStart,0)&&(r.breakAfter=o.content[0].breakAfter,o.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(r).concat(o.content)}else({content:t,breakAtStart:l,openStart:a,openEnd:s}=g5.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:h,off:f}=r.findPos(u,1),{i:g,off:m}=r.findPos(c,-1);D4(this,g,m,h,f,t,l,a,s)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new V4(e.text.nodeValue);t.flags|=8;for(let{deco:o}of e.marks)t=new Z4(o,[t],t.length);let n=new i5;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=I4.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),o=this.children[n.i];t(e.line,o);for(let r=e.marks.length-1;r>=-1;r--)n=o.childPos(n.off,1),o=o.children[n.i],t(r>=0?e.marks[r].node:e.text,o)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,r=!o&&d4(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||t||r))return;let i=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),s=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(Y4.gecko&&l.empty&&!this.hasComposition&&1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null))),a=s=new T4(e,0),i=!0}var c;let u=this.view.observer.selectionRange;!i&&u.focusNode&&h4(a.node,a.offset,u.anchorNode,u.anchorOffset)&&h4(s.node,s.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{Y4.android&&Y4.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=c4(this.view.root);if(e)if(l.empty){if(Y4.gecko){let e=(t=a.node,o=a.offset,1!=t.nodeType?0:(o&&"false"==t.childNodes[o-1].contentEditable?1:0)|(ol.head&&([a,s]=[s,a]),t.setEnd(s.node,s.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,o;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,s)),this.impreciseAnchor=a.precise?null:new T4(u.anchorNode,u.anchorOffset),this.impreciseHead=s.precise?null:new T4(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=c4(e.root),{anchorNode:o,anchorOffset:r}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let i=i5.find(this,t.head);if(!i)return;let l=i.posAtStart;if(t.head==l||t.head==l+i.length)return;let a=this.coordsAt(t.head,-1),s=this.coordsAt(t.head,1);if(!a||!s||a.bottom>s.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(o,r)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let o=e.offset;!t&&o=0;o--){let e=I4.get(n.childNodes[o]);e instanceof i5&&(t=e.domAtPos(e.length))}return t?new T4(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=I4.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;i--){let l=this.children[i],a=r-l.breakAfter,s=a-l.length;if(ae||l.covers(1))&&(!n||l instanceof i5&&!(n instanceof i5&&t>=0))&&(n=l,o=s),r=s}return n?n.coordsAt(e-o,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),o=this.children[t];if(!(o instanceof i5))return null;for(;o.children.length;){let{i:e,off:t}=o.childPos(n,1);for(;;e++){if(e==o.children.length)return null;if((o=o.children[e]).length)break}n=t}if(!(o instanceof V4))return null;let r=w2(o.text,n);if(r==n)return null;let i=x4(o.dom,n,r).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==Y5.LTR;for(let s=0,c=0;co)break;if(s>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),i){let t=e.dom.lastChild,o=t?p4(t):[];if(o.length){let e=o[o.length-1],t=a?e.right-n.left:n.right-e.left;t>l&&(l=t,this.minWidth=r,this.minWidthFrom=s,this.minWidthTo=u)}}}s=u+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Y5.RTL:Y5.LTR}measureTextSize(){for(let r of this.children)if(r instanceof i5){let e=r.measureTextSize();if(e)return e}let e,t,n,o=document.createElement("div");return o.className="cm-line",o.style.width="99999px",o.style.position="absolute",o.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(o);let r=p4(o.firstChild)[0];e=o.getBoundingClientRect().height,t=r?r.width/27:7,n=r?r.height:e,o.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new A4(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,o=0;;o++){let r=o==t.viewports.length?null:t.viewports[o],i=r?r.from-1:this.length;if(i>n){let o=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(c5.replace({widget:new u8(o),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!r)break;n=r.to+1}return c5.set(e)}updateDeco(){let e=this.view.state.facet(j5).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!o)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(o={left:Math.min(o.left,t.left),top:Math.min(o.top,t.top),right:Math.max(o.right,t.right),bottom:Math.max(o.bottom,t.bottom)});let r=H5(this.view),i={left:o.left-r.left,top:o.top-r.top,right:o.right+r.right,bottom:o.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,o,r,i,l,a){let s=e.ownerDocument,c=s.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==s.body,h=1,f=1;if(p)e=b4(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:h,scaleY:f}=y4(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,top:t.top,bottom:t.top+u.clientHeight*f}}let g=0,m=0;if("nearest"==r)t.top0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+m+l)):t.bottom>e.bottom&&(m=t.bottom-e.bottom+l,n<0&&t.top-m0&&t.right>e.right+g&&(g=t.right-e.right+g+i)):t.right>e.right&&(g=t.right-e.right+i,n<0&&t.left0))break;o=o.childNodes[r-1],r=m4(o)}if(n>=0)for(let o=e,r=t;;){if(3==o.nodeType)return{node:o,offset:r};if(!(1==o.nodeType&&r=0))break;o=o.childNodes[r],r=0}return null}let h8=class{constructor(){this.changes=[]}compareRange(e,t){f5(e,t,this.changes)}comparePoint(e,t){f5(e,t,this.changes)}};function f8(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function g8(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function m8(e,t){return e.topt.top+1}function v8(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function y8(e,t,n){let o,r,i,l,a,s,c,u,d=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=p4(h);for(let p=0;pm||l==m&&i>g){o=h,r=f,i=g,l=m;let a=m?n0?p0)}0==g?n>f.bottom&&(!c||c.bottomf.top)&&(s=h,u=f):c&&m8(c,f)?c=b8(c,f.bottom):u&&m8(u,f)&&(u=v8(u,f.top))}}if(c&&c.bottom>=n?(o=a,r=c):u&&u.top<=n&&(o=s,r=u),!o)return{node:e,offset:0};let p=Math.max(r.left,Math.min(r.right,t));return 3==o.nodeType?O8(o,p,n):d&&"false"!=o.contentEditable?y8(o,p,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,o)+(t>=(r.left+r.right)/2?1:0)}}function O8(e,t,n){let o=e.nodeValue.length,r=-1,i=1e9,l=0;for(let a=0;an?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u=(c.left+c.right)/2,o=n;if((Y4.chrome||Y4.gecko)&&x4(e,a).getBoundingClientRect().left==c.right&&(o=!n),u<=0)return{node:e,offset:a+(o?1:0)};r=a+(o?1:0),i=u}}}return{node:e,offset:r>-1?r:l>0?e.nodeValue.length:0}}function w8(e,t,n,o=-1){var r,i;let l,a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,p=d-s;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let O=e.viewState.heightOracle.textHeight/2,w=!1;l=e.elementAtHeight(p),l.type!=s5.Text;)for(;p=o>0?l.bottom+O:l.top-O,!(p>=0&&p<=c);){if(w)return n?null:0;w=!0,o=-o}d=s+p;let h=l.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:S8(e,a,l,u,d);let f=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:f,m=g.elementFromPoint(u,d);m&&!e.contentDOM.contains(m)&&(m=null),m||(u=Math.max(a.left+1,Math.min(a.right-1,u)),m=g.elementFromPoint(u,d),m&&!e.contentDOM.contains(m)&&(m=null));let v,b=-1;if(m&&0!=(null===(r=e.docView.nearest(m))||void 0===r?void 0:r.isEditable))if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:b}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,d);t&&(({startContainer:v,startOffset:b}=t),(!e.contentDOM.contains(v)||Y4.safari&&function(e,t,n){let o;if(3!=e.nodeType||t!=(o=e.nodeValue.length))return!1;for(let r=e.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return x4(e,o-1,o).getBoundingClientRect().left>n}(v,b,u)||Y4.chrome&&function(e,t,n){if(0!=t)return!1;for(let r=e;;){let e=r.parentNode;if(!e||1!=e.nodeType||e.firstChild!=r)return!1;if(e.classList.contains("cm-line"))break;r=e}let o=1==e.nodeType?e.getBoundingClientRect():x4(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-o.left>5}(v,b,u))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=i5.find(e.docView,h);if(!t)return p>l.top+l.height/2?l.to:l.from;({node:v,offset:b}=y8(t.dom,u,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(i=y.dom)||void 0===i?void 0:i.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;i+=Math.floor((r-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let l=e.state.sliceDoc(n.from,n.to);return n.from+K3(l,i,e.state.tabSize)}function $8(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let o of n.type)if(o.to>t||o.to==t&&(o.to==n.to||o.type==s5.Text))return o;return n}function x8(e,t,n,o){let r=e.state.doc.lineAt(t.head),i=e.bidiSpans(r),l=e.textDirectionAt(r.from);for(let a=t,s=null;;){let t=s8(r,i,l,a,n),c=a8;if(!t){if(r.number==(n?e.state.doc.lines:1))return a;c="\n",r=e.state.doc.line(r.number+(n?1:-1)),i=e.bidiSpans(r),t=Q2.cursor(n?r.from:r.to)}if(s){if(!s(c))return a}else{if(!o)return t;s=o(c)}a=t}}function C8(e,t,n){for(;;){let o=0;for(let r of e)r.between(t-1,t+1,((e,r,i)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return o==n.from?n:Q2.cursor(o,onull)),Y4.gecko&&(t=e.contentDOM.ownerDocument,J8.has(t)||(J8.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,o=t.target;o!=e.contentDOM;o=o.parentNode)if(!o||11==o.nodeType||(n=I4.get(o))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let o of e){let e=o.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let r=e.domEventHandlers[t];r&&n(t).handlers.push(T8(o.value,r))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let r=e.domEventObservers[t];r&&n(t).observers.push(T8(o.value,r))}}for(let o in R8)n(o).handlers.push(R8[o]);for(let o in z8)n(o).observers.push(z8[o]);return t}(e),n=this.handlers,o=this.view.contentDOM;for(let r in t)if("scroll"!=r){let e=!t[r].handlers.length,i=n[r];i&&e!=!i.handlers.length&&(o.removeEventListener(r,this.handleEvent),i=null),i||o.addEventListener(r,this.handleEvent,{passive:e})}for(let r in n)"scroll"==r||t[r]||o.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||I8.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,C4(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Y4.safari&&!Y4.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function T8(e,t){return(n,o)=>{try{return t.call(e,o,n)}catch(Uue){M5(n.state,Uue)}}}const M8=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],I8="dthko",E8=[16,17,18,20,91,92,224,225];function A8(e){return.7*Math.max(0,e)+8}class D8{constructor(e,t,n,o){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(N5).map((t=>t(e)));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(E3.allowMultipleSelections)&&function(e,t){let n=e.state.facet(b5);return n.length?n[0](t):Y4.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let o=c4(e.root);if(!o||0==o.rangeCount)return!0;let r=o.getRangeAt(0).getClientRects();for(let i=0;i=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=V8(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,o;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,o=e,Math.max(Math.abs(n.clientX-o.clientX),Math.abs(n.clientY-o.clientY))<10))return;this.select(this.lastEvent=e);let r=0,i=0,l=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=H5(this.view);e.clientX-a.left<=l.left+6?r=-A8(l.left-e.clientX):e.clientX+a.right>=l.right-6&&(r=A8(e.clientX-l.right)),e.clientY-a.top<=l.top+6?i=-A8(l.top-e.clientY):e.clientY+a.bottom>=l.bottom-6&&(i=A8(e.clientY-l.bottom)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const R8=Object.create(null),z8=Object.create(null),B8=Y4.ie&&Y4.ie_version<15||Y4.ios&&Y4.webkit_version<604;function j8(e,t){let n,{state:o}=e,r=1,i=o.toText(t),l=i.lines==o.selection.ranges.length;if(null!=U8&&o.selection.ranges.every((e=>e.empty))&&U8==i.toString()){let e=-1;n=o.changeByRange((n=>{let a=o.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let s=o.toText((l?i.line(r++).text:t)+o.lineBreak);return{changes:{from:a.from,insert:s},range:Q2.cursor(n.from+s.length)}}))}else n=l?o.changeByRange((e=>{let t=i.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Q2.cursor(e.from+t.length)}})):o.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function N8(e,t,n,o){if(1==o)return Q2.cursor(t,n);if(2==o)return function(e,t,n=1){let o=e.charCategorizer(t),r=e.doc.lineAt(t),i=t-r.from;if(0==r.length)return Q2.cursor(t);0==i?n=1:i==r.length&&(n=-1);let l=i,a=i;n<0?l=w2(r.text,i,!1):a=w2(r.text,i);let s=o(r.text.slice(l,a));for(;l>0;){let e=w2(r.text,l,!1);if(o(r.text.slice(e,l))!=s)break;l=e}for(;a{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},R8.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),z8.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},z8.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},R8.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let o of e.state.facet(O5))if(n=o(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=H8(e,t),o=V8(t),r=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),r=r.map(e.changes))},get(t,i,l){let a,s=H8(e,t),c=N8(e,s.pos,s.bias,o);if(n.pos!=s.pos&&!i){let t=N8(e,n.pos,n.bias,o),r=Math.min(t.from,c.from),i=Math.max(t.to,c.to);c=r1&&(a=function(e,t){for(let n=0;n=t)return Q2.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(r,s.pos))?a:l?r.addRange(c):Q2.create([c])}}}(e,t)),n){let o=!e.hasFocus;e.inputState.startMouseSelection(new D8(e,t,n,o)),o&&e.observer.ignore((()=>$4(e.contentDOM)));let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let _8=(e,t)=>e>=t.top&&e<=t.bottom,Q8=(e,t,n)=>_8(t,n)&&e>=n.left&&e<=n.right;function L8(e,t,n,o){let r=i5.find(e.docView,t);if(!r)return 1;let i=t-r.posAtStart;if(0==i)return 1;if(i==r.length)return-1;let l=r.coordsAt(i,-1);if(l&&Q8(n,o,l))return-1;let a=r.coordsAt(i,1);return a&&Q8(n,o,a)?1:l&&_8(o,l)?-1:1}function H8(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:L8(e,n,t.clientX,t.clientY)}}const F8=Y4.ie&&Y4.ie_version<=11;let W8=null,X8=0,Y8=0;function V8(e){if(!F8)return e.detail;let t=W8,n=Y8;return W8=e,Y8=Date.now(),X8=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(X8+1)%3:1}function Z8(e,t,n,o){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,l=o&&i&&function(e,t){let n=e.state.facet(y5);return n.length?n[0](t):Y4.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:i.from,to:i.to}:null,a={from:r,insert:n},s=e.state.changes(l?[l,a]:a);e.focus(),e.dispatch({changes:s,selection:{anchor:s.mapPos(r,-1),head:s.mapPos(r,1)},userEvent:l?"move.drop":"input.drop"}),e.inputState.draggedContent=null}R8.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let o=e.docView.nearest(t.target);if(o&&o.isWidget){let e=o.posAtStart,t=e+o.length;(e>=n.to||t<=n.from)&&(n=Q2.range(e,t))}}let{inputState:o}=e;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},R8.dragend=e=>(e.inputState.draggedContent=null,!1),R8.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let o=Array(n.length),r=0,i=()=>{++r==n.length&&Z8(e,t,o.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(o[e]=t.result),i()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Z8(e,t,n,!0),!0}return!1},R8.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=B8?null:t.clipboardData;return n?(j8(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),j8(e,n.value)}),50)}(e),!1)};let U8=null;R8.copy=R8.cut=(e,t)=>{let{text:n,ranges:o,linewise:r}=function(e){let t=[],n=[],o=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let r=-1;for(let{from:o}of e.selection.ranges){let i=e.doc.lineAt(o);i.number>r&&(t.push(i.text),n.push({from:i.from,to:Math.min(e.doc.length,i.to+1)})),r=i.number}o=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:o}}(e.state);if(!n&&!r)return!1;U8=r?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let i=B8?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let o=n.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=t,o.focus(),o.selectionEnd=t.length,o.selectionStart=0,setTimeout((()=>{o.remove(),e.focus()}),50)}(e,n),!1)};const K8=m3.define();function G8(e,t){let n=[];for(let o of e.facet(x5)){let r=o(e,t);r&&n.push(r)}return n?e.update({effects:n,annotations:K8.of(!0)}):null}function q8(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=G8(e.state,t);n?e.dispatch(n):e.update([])}}),10)}z8.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),q8(e)},z8.blur=e=>{e.observer.clearSelectionRange(),q8(e)},z8.compositionstart=z8.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},z8.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Y4.chrome&&Y4.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},z8.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},R8.beforeinput=(e,t)=>{var n;let o;if(Y4.chrome&&Y4.android&&(o=M8.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const J8=new Set,e6=["pre-wrap","normal","pre-line","break-spaces"];class t6{constructor(e){this.lineWrapping=e,this.doc=s2.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return e6.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=o,this.lineLength=r,a){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>i6&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return l6.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,o){let r=this,i=n.doc;for(let l=o.length-1;l>=0;l--){let{fromA:a,toA:s,fromB:c,toB:u}=o[l],d=r.lineAt(a,r6.ByPosNoHeight,n.setDoc(t),0,0),p=d.to>=s?d:r.lineAt(s,r6.ByPosNoHeight,n,0,0);for(u+=p.to-s,s=p.to;l>0&&d.from<=o[l-1].toA;)a=o[l-1].fromA,c=o[l-1].fromB,l--,a2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,o-=r.size}else{if(!(r>2*o))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(o=r&&i(this.blockAt(0,n,o,r))}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more&&this.setHeight(e,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class s6 extends a6{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,o){return new o6(o,this.length,n,this.height,this.breaks)}replace(e,t,n){let o=n[0];return 1==n.length&&(o instanceof s6||o instanceof c6&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof c6?o=new s6(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):l6.of(n)}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more?this.setHeight(e,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class c6 extends l6{constructor(e){super(e,0)}heightMetrics(e,t){let n,o=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-o+1,l=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);n=t/i,this.length>i+1&&(l=(this.height-t)/(this.length-i-1))}else n=this.height/i;return{firstLine:o,lastLine:r,perLine:n,perChar:l}}blockAt(e,t,n,o){let{firstLine:r,lastLine:i,perLine:l,perChar:a}=this.heightMetrics(t,o);if(t.lineWrapping){let r=o+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),i=t.doc.lineAt(r),s=l+i.length*a,c=Math.max(n,e-s/2);return new o6(i.from,i.length,c,s,0)}{let o=Math.max(0,Math.min(i-r,Math.floor((e-n)/l))),{from:a,length:s}=t.doc.line(r+o);return new o6(a,s,n+l*o,l,0)}}lineAt(e,t,n,o,r){if(t==r6.ByHeight)return this.blockAt(e,n,o,r);if(t==r6.ByPosNoHeight){let{from:t,to:o}=n.doc.lineAt(e);return new o6(t,o-t,0,0,0)}let{firstLine:i,perLine:l,perChar:a}=this.heightMetrics(n,r),s=n.doc.lineAt(e),c=l+s.length*a,u=s.number-i,d=o+l*u+a*(s.from-r-u);return new o6(s.from,s.length,Math.max(o,Math.min(d,o+this.height-c)),c,0)}forEachLine(e,t,n,o,r,i){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:l,perLine:a,perChar:s}=this.heightMetrics(n,r);for(let c=e,u=o;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-l;u+=a*n+s*(e-r-n)}let o=a+s*t.length;i(new o6(t.from,t.length,u,o,0)),u+=o,c=t.to+1}}replace(e,t,n){let o=this.length-t;if(o>0){let e=n[n.length-1];e instanceof c6?n[n.length-1]=new c6(e.length+o):n.push(null,new c6(o-1))}if(e>0){let t=n[0];t instanceof c6?n[0]=new c6(e+t.length):n.unshift(new c6(e-1),null)}return l6.of(n)}decomposeLeft(e,t){t.push(new c6(e-1),null)}decomposeRight(e,t){t.push(null,new c6(this.length-e-1))}updateHeight(e,t=0,n=!1,o){let r=t+this.length;if(o&&o.from<=t+this.length&&o.more){let n=[],i=Math.max(t,o.from),l=-1;for(o.from>t&&n.push(new c6(o.from-t-1).updateHeight(e,t));i<=r&&o.more;){let t=e.doc.lineAt(i).length;n.length&&n.push(null);let r=o.heights[o.index++];-1==l?l=r:Math.abs(r-l)>=i6&&(l=-2);let a=new s6(t,r);a.outdated=!1,n.push(a),i+=t+1}i<=r&&n.push(null,new c6(r-i).updateHeight(e,i));let a=l6.of(n);return(l<0||Math.abs(a.height-this.height)>=i6||Math.abs(l-this.heightMetrics(e,t).perLine)>=i6)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class u6 extends l6{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,o){let r=n+this.left.height;return el))return s;let c=t==r6.ByPosNoHeight?r6.ByPosNoHeight:r6.ByPos;return a?s.join(this.right.lineAt(l,c,n,i,l)):this.left.lineAt(l,c,n,o,r).join(s)}forEachLine(e,t,n,o,r,i){let l=o+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,l,a,i);else{let s=this.lineAt(a,r6.ByPos,n,o,r);e=e&&s.from<=t&&i(s),t>s.to&&this.right.forEachLine(s.to+1,t,n,l,a,i)}}replace(e,t,n){let o=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-o,t-o,n));let r=[];e>0&&this.decomposeLeft(e,r);let i=r.length;for(let l of n)r.push(l);if(e>0&&d6(r,i-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,o=n+this.break;if(e>=o)return this.right.decomposeRight(e-o,t);e2*t.size||t.size>2*e.size?l6.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,o){let{left:r,right:i}=this,l=t+r.length+this.break,a=null;return o&&o.from<=t+r.length&&o.more?a=r=r.updateHeight(e,t,n,o):r.updateHeight(e,t,n),o&&o.from<=l+i.length&&o.more?a=i=i.updateHeight(e,l,n,o):i.updateHeight(e,l,n),a?this.balanced(r,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function d6(e,t){let n,o;null==e[t]&&(n=e[t-1])instanceof c6&&(o=e[t+1])instanceof c6&&e.splice(t-1,3,new c6(n.length+1+o.length))}class p6{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof s6?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new s6(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(o,r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new s6(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new c6(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof s6)return e;let t=new s6(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,e),o.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof s6||this.isCovered?(this.writtenTot.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();i=Math.max(i,n.left),l=Math.min(l,n.right),a=Math.max(a,n.top),s=c==e.parentNode?n.bottom:Math.min(s,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:i-n.left,right:Math.max(i,l)-n.left,top:a-(n.top+t),bottom:Math.max(a,s)-(n.top+t)}}function g6(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class m6{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new t6(t),this.stateDeco=e.facet(j5).filter((e=>"function"!=typeof e)),this.heightMap=l6.empty().applyChanges(this.stateDeco,s2.empty,this.heightOracle.setDoc(e.doc),[new W5(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=c5.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let o=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>o>=e&&o<=t))){let{from:t,to:n}=this.lineBlockAt(o);e.push(new y6(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?$6:new x6(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:C6(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(j5).filter((e=>"function"!=typeof e));let o=e.changedRanges,r=W5.extendWithRanges(o,function(e,t,n){let o=new h6;return j3.compare(e,t,n,o,0),o.changes}(n,this.stateDeco,e?e.changes:A2.empty(this.state.doc.length))),i=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=i&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let s=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),s&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(k5)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),o=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Y5.RTL:Y5.LTR;let i=this.heightOracle.mustRefreshForWrapping(r),l=t.getBoundingClientRect(),a=i||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let s=0,c=0;if(l.width&&l.height){let{scaleX:e,scaleY:n}=y4(t,l);this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,s|=8,i=a=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(o.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=P4(e.scrollDOM);let h=(this.printing?g6:f6)(t,this.paddingTop),f=h.top-this.pixelViewport.top,g=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let v=l.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,s|=8),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(t)&&(i=!0),i||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:n,charWidth:l,textHeight:a}=e.docView.measureTextSize();i=n>0&&o.refresh(r,n,l,a,v/l,t),i&&(e.docView.minWidth=0,s|=8)}f>0&&g>0?c=Math.max(f,g):f<0&&g<0&&(c=Math.min(f,g)),o.heightChanged=!1;for(let n of this.viewports){let r=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(i?l6.empty().applyChanges(this.stateDeco,s2.empty,this.heightOracle,[new W5(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,i,new n6(n.from,r))}o.heightChanged&&(s|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&s||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),o=this.heightMap,r=this.heightOracle,{visibleTop:i,visibleBottom:l}=this,a=new y6(o.lineAt(i-1e3*n,r6.ByHeight,r,0,0).from,o.lineAt(l+1e3*(1-n),r6.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(ea.to){let n,i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),l=o.lineAt(e,r6.ByPos,r,0,0);n="center"==t.y?(l.top+l.bottom)/2-i/2:"start"==t.y||"nearest"==t.y&&e=l+Math.max(10,Math.min(n,250)))&&o>i-2e3&&r>1,i=o<<1;if(this.defaultTextDirection!=Y5.LTR&&!n)return[];let l=[],a=(o,i,s,c)=>{if(i-oo&&ee.from>=s.from&&e.to<=s.to&&Math.abs(e.from-o)e.fromt))));if(!p){if(ie.from<=i&&e.to>=i))){let e=t.moveToLineBoundary(Q2.cursor(i),!1,!0).head;e>o&&(i=e)}p=new m6(o,i,this.gapSize(s,o,i,c))}l.push(p)};for(let s of this.viewportLines){if(s.lengths.from&&a(s.from,t,s,e),re.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];j3.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||C6(this.heightMap.lineAt(e,r6.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return C6(this.heightMap.lineAt(this.scaler.fromDOM(e),r6.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return C6(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class y6{constructor(e,t){this.from=e,this.to=t}}function O6(e,t,n){let o=[],r=e,i=0;return j3.spans(n,e,t,{span(){},point(e,t){e>r&&(o.push({from:r,to:e}),i+=e-r),r=t}},20),r=1)return t[t.length-1].to;let o=Math.floor(e*n);for(let r=0;;r++){let{from:e,to:n}=t[r],i=n-e;if(o<=i)return e+o;o-=i}}function S6(e,t){let n=0;for(let{from:o,to:r}of e.ranges){if(t<=r){n+=t-o;break}n+=r-o}return n/e.total}const $6={toDOM:e=>e,fromDOM:e=>e,scale:1};class x6{constructor(e,t,n){let o=0,r=0,i=0;this.viewports=n.map((({from:n,to:r})=>{let i=t.lineAt(n,r6.ByPos,e,0,0).top,l=t.lineAt(r,r6.ByPos,e,0,0).bottom;return o+=l-i,{from:n,to:r,top:i,bottom:l,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(t.height-o);for(let l of this.viewports)l.domTop=i+(l.top-r)*this.scale,i=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(e){for(let t=0,n=0,o=0;;t++){let r=tC6(e,t))):e._content)}const k6=F2.define({combine:e=>e.join(" ")}),P6=F2.define({combine:e=>e.indexOf(!0)>-1}),T6=e4.newName(),M6=e4.newName(),I6=e4.newName(),E6={"&light":"."+M6,"&dark":"."+I6};function A6(e,t,n){return new e4(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const D6=A6("."+T6,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},E6),R6="￿";class z6{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(E3.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=R6}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let o=e;;){this.findPointBefore(n,o);let e=this.text.length;this.readNode(o);let r=o.nextSibling;if(r==t)break;let i=I4.get(o),l=I4.get(r);(i&&l?i.breakAfter:(i?i.breakAfter:j6(o))||j6(r)&&("BR"!=o.nodeName||o.cmIgnore)&&this.text.length>e)&&this.lineBreak(),o=r}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let r,i=-1,l=1;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),l=this.lineSeparator.length):(r=o.exec(t))&&(i=r.index,l=r[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),l>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=l-1);n=i+l}}readNode(e){if(e.cmIgnore)return;let t=I4.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(B6(e,n.node,n.offset)?t:0))}}function B6(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=r||i?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new N6(n,o)),r==n&&i==o||t.push(new N6(r,i))),t}(e),n=new z6(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,o=2==e.length?e[1].pos:n;return n>-1&&o>-1?Q2.single(n+t,o+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!u4(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),o=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!u4(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=Q2.single(o,n)}}}function Q6(e,t){let n,{newSel:o}=t,r=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,a=r.from,s=null;(8===i||Y4.android&&t.text.length0&&a>0&&e.charCodeAt(l-1)==t.charCodeAt(a-1);)l--,a--;return"end"==o&&(n-=l+Math.max(0,i-Math.min(l,a))-i),l=l?i-n:0,a=i+(a-l),l=i):a=a?i-n:0,l=i+(l-a),a=i),{from:i,toA:l,toB:a}}(e.state.doc.sliceString(o,l,R6),t.text,a-o,s);c&&(Y4.chrome&&13==i&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==R6+R6&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:s2.of(t.text.slice(c.from,c.toB).split(R6))})}else o&&(!e.hasFocus&&e.state.facet(I5)||o.main.eq(r))&&(o=null);if(!n&&!o)return!1;if(!n&&t.typeOver&&!r.empty&&o&&o.main.empty?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,r.to))}:(Y4.mac||Y4.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(o&&2==n.insert.length&&(o=Q2.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:s2.of([" "])}):Y4.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(o&&(o=Q2.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:s2.of([" "])}),n){if(Y4.ios&&e.inputState.flushIOSKey())return!0;if(Y4.android&&(n.from==r.from&&n.to==r.to&&1==n.insert.length&&2==n.insert.lines&&C4(e.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&0==n.insert.length||8==i&&n.insert.lengthr.head)&&C4(e.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&C4(e.contentDOM,"Delete",46)))return!0;let t,l=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>t||(t=function(e,t,n){let o,r=e.state,i=r.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=i.fromt.to?r.sliceDoc(t.to,i.to):"";o=r.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let l=r.changes(t),a=n&&n.main.to<=l.newLength?n.main:void 0;if(r.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let s,c=e.state.sliceDoc(t.from,t.to),u=n&&d8(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);s={from:u.from,to:u.to-e}}else s=e.state.doc.lineAt(i.head);let d=i.to-t.to,p=i.to-i.from;o=r.changeByRange((n=>{if(n.from==i.from&&n.to==i.to)return{changes:l,range:a||n.map(l)};let o=n.to-d,u=o-c.length;if(n.to-n.from!=p||e.state.sliceDoc(u,o)!=c||n.to>=s.from&&n.from<=s.to)return{range:n};let h=r.changes({from:u,to:o,insert:t.insert}),f=n.to-i.to;return{changes:h,range:a?Q2.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):n.map(h)}}))}else o={changes:l,selection:a&&r.selection.replaceRange(a)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),r.update(o,{userEvent:l,scrollIntoView:!0})}(e,n,o));return e.state.facet($5).some((t=>t(e,n.from,n.to,l,a)))||e.dispatch(a()),!0}if(o&&!o.main.eq(r)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n}),!0}return!1}const L6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},H6=Y4.ie&&Y4.ie_version<=11;class F6{constructor(e){this.view=e,this.active=!1,this.selectionRange=new O4,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(Y4.ie&&Y4.ie_version<=11||Y4.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),H6&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(I5)?n.root.activeElement!=this.dom:!d4(n.dom,o))return;let r=o.anchorNode&&n.docView.nearest(o.anchorNode);r&&r.ignoreEvent(e)?t||(this.selectionChanged=!1):(Y4.ie&&Y4.ie_version<=11||Y4.android&&Y4.chrome)&&!n.state.selection.main.empty&&o.focusNode&&h4(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Y4.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let o=t.startContainer,r=t.startOffset,i=t.endContainer,l=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return h4(a.node,a.offset,i,l)&&([o,r,i,l]=[i,l,o,r]),{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:l}}(this.view)||c4(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=d4(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&C4(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,o=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(o=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:o}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),o=this.selectionChanged&&d4(this.dom,this.selectionRange);if(e<0&&!o)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new _6(this.view,e,t,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,o=Q6(this.view,t);return this.view.state==n&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=W6(t,e.previousSibling||e.target.previousSibling,-1),o=W6(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:o?t.posBefore(o):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function W6(e,t,n){for(;t;){let o=I4.get(t);if(o&&o.parent==e)return o;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}class X6{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new b6(e.state||E3.create(e)),e.scrollTo&&e.scrollTo.is(T5)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(A5).map((e=>new R5(e)));for(let n of this.plugins)n.update(this);this.observer=new F6(this),this.inputState=new P8(this),this.inputState.ensureHandlers(this.plugins),this.docView=new c8(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof O3?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,o=!1,r=this.state;for(let d of e){if(d.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=d.state}if(this.destroyed)return void(this.viewState.state=r);let i=this.hasFocus,l=0,a=null;e.some((e=>e.annotation(K8)))?(this.inputState.notifiedFocused=i,l=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,a=G8(r,i),a||(l=1));let s=this.observer.delayedAndroidKey,c=null;if(s?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(E3.phrases)!=this.state.facet(E3.phrases))return this.setState(r);t=X5.create(this,r,e),t.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new P5(e.empty?e:Q2.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(T5)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=Z6.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(F5)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(k6)!=t.state.facet(k6)&&(this.viewState.mustMeasureContent=!0),(n||o||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let d of this.state.facet(S5))try{d(t)}catch(Uue){M5(this.state,Uue,"update listener")}(a||c)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!Q6(this,c)&&s.force&&C4(this.contentDOM,s.key,s.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new b6(e),this.plugins=e.facet(A5).map((e=>new R5(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new c8(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(A5),n=e.state.facet(A5);if(t!=n){let o=[];for(let r of n){let n=t.indexOf(r);if(n<0)o.push(new R5(r));else{let t=this.plugins[n];t.mustUpdate=e,o.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:i}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(i<0)if(P4(n))r=-1,i=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(o);r=e.from,i=e.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5)break;let a=[];4&l||([this.measureRequests,a]=[a,this.measureRequests]);let s=a.map((e=>{try{return e.read(this)}catch(Uue){return M5(this.state,Uue),V6}})),c=X5.create(this,this.state,[]),u=!1;c.flags|=l,t?t.flags|=l:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c));for(let e=0;e1||e<-1){o+=e,n.scrollTop=o/this.scaleY,i=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(S5))l(t)}get themeClasses(){return T6+" "+(this.state.facet(P6)?I6:M6)+" "+this.state.facet(k6)}updateAttrs(){let e=U6(this,z5,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(I5)?"true":"false",class:"cm-content",style:`${Y4.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),U6(this,B5,t);let n=this.observer.ignore((()=>{let n=o5(this.contentDOM,this.contentAttrs,t),o=o5(this.dom,this.editorAttrs,e);return n||o}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(X6.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(F5);let e=this.state.facet(X6.cspNonce);e4.mount(this.root,this.styleModules.concat(D6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return k8(this,e,x8(this,e,t,n))}moveByGroup(e,t){return k8(this,e,x8(this,e,t,(t=>function(e,t,n){let o=e.state.charCategorizer(t),r=o(n);return e=>{let t=o(e);return r==P3.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,o){let r=$8(e,t.head),i=o&&r.type==s5.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(i){let t=e.dom.getBoundingClientRect(),o=e.textDirectionAt(r.from),l=e.posAtCoords({x:n==(o==Y5.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2});if(null!=l)return Q2.cursor(l,n?-1:1)}return Q2.cursor(n?r.to:r.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return k8(this,e,function(e,t,n,o){let r=t.head,i=n?1:-1;if(r==(n?e.state.doc.length:0))return Q2.cursor(r,t.assoc);let l,a=t.goalColumn,s=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r,t.assoc||-1),u=e.documentTop;if(c)null==a&&(a=c.left-s.left),l=i<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(s.right-s.left,e.defaultCharacterWidth*(r-t.from))),l=(i<0?t.top:t.bottom)+u}let d=s.left+a,p=null!=o?o:e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let t=l+(p+h)*i,n=w8(e,{x:d,y:t},!1,i);if(ts.bottom||(i<0?nr)){let o=e.docView.coordsForChar(n),r=!o||t0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(C5)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Y6)return l8(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||n8(r.isolates,t=Q5(this,e.from,e.to))))return r.order;t||(t=Q5(this,e.from,e.to));let o=function(e,t,n){if(!e)return[new t8(0,0,t==Z5?1:0)];if(t==V5&&!n.length&&!e8.test(e))return l8(e.length);if(n.length)for(;e.length>o8.length;)o8[o8.length]=256;let o=[],r=t==V5?0:1;return i8(e,r,r,n,0,e.length,o),o}(e.text,n,t);return this.bidiCache.push(new Z6(e.from,e.to,n,t,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Y4.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{$4(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return T5.of(new P5("number"==typeof e?Q2.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return T5.of(new P5(Q2.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return D5.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return D5.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=e4.newName(),o=[k6.of(n),F5.of(A6(`.${n}`,e))];return t&&t.dark&&o.push(P6.of(!0)),o}static baseTheme(e){return n3.lowest(F5.of(A6("."+T6,e,E6)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),o=n&&I4.get(n)||I4.get(e);return(null===(t=null==o?void 0:o.rootView)||void 0===t?void 0:t.view)||null}}X6.styleModule=F5,X6.inputHandler=$5,X6.focusChangeEffect=x5,X6.perLineTextDirection=C5,X6.exceptionSink=w5,X6.updateListener=S5,X6.editable=I5,X6.mouseSelectionStyle=O5,X6.dragMovesSelection=y5,X6.clickAddsSelectionRange=b5,X6.decorations=j5,X6.atomicRanges=N5,X6.bidiIsolatedRanges=_5,X6.scrollMargins=L5,X6.darkTheme=P6,X6.cspNonce=F2.define({combine:e=>e.length?e[0]:""}),X6.contentAttributes=B5,X6.editorAttributes=z5,X6.lineWrapping=X6.contentAttributes.of({class:"cm-lineWrapping"}),X6.announce=y3.define();const Y6=4096,V6={};class Z6{constructor(e,t,n,o,r,i){this.from=e,this.to=t,this.dir=n,this.isolates=o,this.fresh=r,this.order=i}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],o=e.length?e[e.length-1].dir:Y5.LTR;for(let r=Math.max(0,e.length-10);r=0;r--){let t=o[r],i="function"==typeof t?t(e):t;i&&e5(i,n)}return n}const K6=Y4.mac?"mac":Y4.windows?"win":Y4.linux?"linux":"key";function G6(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const q6=n3.default(X6.domEventHandlers({keydown:(e,t)=>o7(t7(t.state),e,t,"editor")})),J6=F2.define({enables:q6}),e7=new WeakMap;function t7(e){let t=e.facet(J6),n=e7.get(t);return n||e7.set(t,n=function(e,t=K6){let n=Object.create(null),o=Object.create(null),r=(e,t)=>{let n=o[e];if(null==n)o[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},i=(e,o,i,l,a)=>{var s,c;let u=n[e]||(n[e]=Object.create(null)),d=o.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let o,r,i,l,a=n[n.length-1];"Space"==a&&(a=" ");for(let s=0;s{let o=n7={view:t,prefix:n,scope:e};return setTimeout((()=>{n7==o&&(n7=null)}),4e3),!0}]})}let p=d.join(" ");r(p,!1);let h=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(s=u._any)||void 0===s?void 0:s.run)||void 0===c?void 0:c.slice())||[]});i&&h.run.push(i),l&&(h.preventDefault=!0),a&&(h.stopPropagation=!0)};for(let l of e){let e=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(l.any)}let o=l[t]||l.key;if(o)for(let t of e)i(t,o,l.run,l.preventDefault,l.stopPropagation),l.shift&&i(t,"Shift-"+o,l.shift,l.preventDefault,l.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let n7=null;function o7(e,t,n,o){let r=function(e){var t=!(i4&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l4&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?r4:o4)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),i=T2(k2(r,0))==r.length&&" "!=r,l="",a=!1,s=!1,c=!1;n7&&n7.view==n&&n7.scope==o&&(l=n7.prefix+" ",E8.indexOf(t.keyCode)<0&&(s=!0,n7=null));let u,d,p=new Set,h=e=>{if(e){for(let o of e.run)if(!p.has(o)&&(p.add(o),o(n,t)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),s=!0)}return!1},f=e[o];return f&&(h(f[l+G6(r,t,!i)])?a=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Y4.windows&&t.ctrlKey&&t.altKey)&&(u=o4[t.keyCode])&&u!=r?(h(f[l+G6(u,t,!0)])||t.shiftKey&&(d=r4[t.keyCode])!=r&&d!=u&&h(f[l+G6(d,t,!1)]))&&(a=!0):i&&t.shiftKey&&h(f[l+G6(r,t,!0)])&&(a=!0),!a&&h(f._any)&&(a=!0)),s&&(a=!0),a&&c&&t.stopPropagation(),a}class r7{constructor(e,t,n,o,r){this.className=e,this.left=t,this.top=n,this.width=o,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let o=e.coordsAtPos(n.head,n.assoc||1);if(!o)return[];let r=i7(e);return[new r7(t,o.left-r.left,o.top-r.top,null,o.bottom-o.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let o=Math.max(n.from,e.viewport.from),r=Math.min(n.to,e.viewport.to),i=e.textDirection==Y5.LTR,l=e.contentDOM,a=l.getBoundingClientRect(),s=i7(e),c=l.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=a.right-(u?parseInt(u.paddingRight):0),h=$8(e,o),f=$8(e,r),g=h.type==s5.Text?h:null,m=f.type==s5.Text?f:null;if(g&&(e.lineWrapping||h.widgetLineBreaks)&&(g=l7(e,o,g)),m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=l7(e,r,m)),g&&m&&g.from==m.from)return b(y(n.from,n.to,g));{let t=g?y(n.from,null,g):O(h,!1),o=m?y(null,n.to,m):O(f,!0),r=[];return(g||h).to<(m||f).from-(g&&m?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2c&&i.from=r)break;a>o&&s(Math.max(e,o),null==t&&e<=c,Math.min(a,r),null==n&&a>=u,l.dir)}if(o=i.to+1,o>=r)break}return 0==a.length&&s(c,null==t,u,null==n,e.textDirection),{top:r,bottom:l,horizontal:a}}function O(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function i7(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Y5.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function l7(e,t,n){let o=Q2.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(o,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(o,!0,!0).from),type:s5.Text}}class a7{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(s7)!=e.state.facet(s7)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(s7);for(;t{return n=e,o=this.drawn[t],!(n.constructor==o.constructor&&n.eq(o));var n,o}))){let t=this.dom.firstChild,n=0;for(let o of e)o.update&&t&&o.constructor&&this.drawn[n].constructor&&o.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(o.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const s7=F2.define();function c7(e){return[D5.define((t=>new a7(t,e))),s7.of(e)]}const u7=!Y4.ios,d7=F2.define({combine:e=>A3(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function p7(e={}){return[d7.of(e),f7,m7,b7,k5.of(!0)]}function h7(e){return e.startState.facet(d7)!=e.state.facet(d7)}const f7=c7({above:!0,markers(e){let{state:t}=e,n=t.facet(d7),o=[];for(let r of t.selection.ranges){let i=r==t.selection.main;if(r.empty?!i||u7:n.drawRangeCursor){let t=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=r.empty?r:Q2.cursor(r.head,r.head>r.anchor?-1:1);for(let r of r7.forRange(e,t,n))o.push(r)}}return o},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=h7(e);return n&&g7(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){g7(t.state,e)},class:"cm-cursorLayer"});function g7(e,t){t.style.animationDuration=e.facet(d7).cursorBlinkRate+"ms"}const m7=c7({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:r7.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||h7(e),class:"cm-selectionLayer"}),v7={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};u7&&(v7[".cm-line"].caretColor="transparent !important",v7[".cm-content"]={caretColor:"transparent !important"});const b7=n3.highest(X6.theme(v7)),y7=y3.define({map:(e,t)=>null==e?null:t.mapPos(e)}),O7=K2.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(y7)?t.value:e),e))}),w7=D5.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(O7);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(O7)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(O7),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let o=e.scrollDOM.getBoundingClientRect();return{left:n.left-o.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-o.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(O7)!=e&&this.view.dispatch({effects:y7.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function S7(e,t,n,o,r){t.lastIndex=0;for(let i,l=e.iterRange(n,o),a=n;!l.next().done;a+=l.value.length)if(!l.lineBreak)for(;i=t.exec(l.value);)r(a+i.index,i)}class $7{constructor(e){const{regexp:t,decoration:n,decorate:o,boundary:r,maxLength:i=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,o)this.addMatch=(e,t,n,r)=>o(r,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,o,r)=>{let i=n(e,t,o);i&&r(o,o+e[0].length,i)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,o,r)=>r(o,o+e[0].length,n)}this.boundary=r,this.maxLength=i}createDeco(e){let t=new N3,n=t.add.bind(t);for(let{from:o,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let o=[];for(let{from:r,to:i}of n)r=Math.max(e.state.doc.lineAt(r).from,r-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),o.length&&o[o.length-1].to>=r?o[o.length-1].to=i:o.push({from:r,to:i});return o}(e,this.maxLength))S7(e.state.doc,this.regexp,o,r,((t,o)=>this.addMatch(o,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,o=-1;return e.docChanged&&e.changes.iterChanges(((t,r,i,l)=>{l>e.view.viewport.from&&i1e3?this.createDeco(e.view):o>-1?this.updateRange(e.view,t.map(e.changes),n,o):t}updateRange(e,t,n,o){for(let r of e.visibleRanges){let i=Math.max(r.from,n),l=Math.min(r.to,o);if(l>i){let n=e.state.doc.lineAt(i),o=n.ton.from;i--)if(this.boundary.test(n.text[i-1-n.from])){a=i;break}for(;lu.push(n.range(e,t));if(n==o)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,e,t,d)));t=t.update({filterFrom:a,filterTo:s,filter:(e,t)=>es,add:u})}}return t}}const x7=null!=/x/.unicode?"gu":"g",C7=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",x7),k7={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let P7=null;const T7=F2.define({combine(e){let t=A3(e,{render:null,specialChars:C7,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==P7&&"undefined"!=typeof document&&document.body){let t=document.body.style;P7=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return P7||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,x7)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,x7)),t}});function M7(e={}){return[T7.of(e),I7||(I7=D5.fromClass(class{constructor(e){this.view=e,this.decorations=c5.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(T7)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new $7({regexp:e.specialChars,decoration:(t,n,o)=>{let{doc:r}=n.state,i=k2(t[0],0);if(9==i){let e=r.lineAt(o),t=n.state.tabSize,i=U3(e.text,t,o-e.from);return c5.replace({widget:new A7((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=c5.replace({widget:new E7(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(T7);e.startState.facet(T7)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let I7=null;class E7 extends a5{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"•":10==n?"␤":String.fromCharCode(9216+n);var n;let o=e.state.phrase("Control character")+" "+(k7[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,o,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=o,i.setAttribute("aria-label",o),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class A7 extends a5{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const D7=c5.line({class:"cm-activeLine"}),R7=D5.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let o of e.state.selection.ranges){let r=e.lineBlockAt(o.head);r.from>t&&(n.push(D7.range(r.from)),t=r.from)}return c5.set(n)}},{decorations:e=>e.decorations});class z7 extends a5{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?p4(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),o=v4(t[0],"rtl"!=n.direction),r=parseInt(n.lineHeight);return o.bottom-o.top>1.5*r?{left:o.left,right:o.right,top:o.top,bottom:o.top+r}:o}ignoreEvent(){return!1}}const B7=2e3;function j7(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),o=e.state.doc.lineAt(n),r=n-o.from,i=r>B7?-1:r==o.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):U3(o.text,e.state.tabSize,n-o.from);return{line:o.number,col:i,off:r}}function N7(e,t){let n=j7(e,t),o=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},o=o.map(e.changes)}},get(t,r,i){let l=j7(e,t);if(!l)return o;let a=function(e,t,n){let o=Math.min(t.line,n.line),r=Math.max(t.line,n.line),i=[];if(t.off>B7||n.off>B7||t.col<0||n.col<0){let l=Math.min(t.off,n.off),a=Math.max(t.off,n.off);for(let t=o;t<=r;t++){let n=e.doc.line(t);n.length<=a&&i.push(Q2.range(n.from+l,n.to+a))}}else{let l=Math.min(t.col,n.col),a=Math.max(t.col,n.col);for(let t=o;t<=r;t++){let n=e.doc.line(t),o=K3(n.text,l,e.tabSize,!0);if(o<0)i.push(Q2.cursor(n.to));else{let t=K3(n.text,a,e.tabSize);i.push(Q2.range(n.from+o,n.from+t))}}}return i}(e.state,n,l);return a.length?i?Q2.create(a.concat(o.ranges)):Q2.create(a):o}}:null}function _7(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return X6.mouseSelectionStyle.of(((e,n)=>t(n)?N7(e,n):null))}const Q7={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},L7={style:"cursor: crosshair"};function H7(e={}){let[t,n]=Q7[e.key||"Alt"],o=D5.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[o,X6.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.isDown)?L7:null}))]}const F7="-10000px";class W7{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e,t){var n;let o=e.state.facet(this.facet),r=o.filter((e=>e));if(o===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[],l=t?[]:null;for(let a=0;at[n]=e)),t.length=l.length),this.input=o,this.tooltips=r,this.tooltipViews=i,!0}}function X7(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Y7=F2.define({combine:e=>{var t,n,o;return{position:Y4.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(o=e.find((e=>e.tooltipSpace)))||void 0===o?void 0:o.tooltipSpace)||X7}}}),V7=new WeakMap,Z7=D5.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Y7);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new W7(e,G7,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,o=e.state.facet(Y7);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=F7,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(e=n.destroy)||void 0===e||e.call(n);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Y4.gecko)o=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==F7&&"0px"==e.style.left){let t=e.getBoundingClientRect();o=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(o||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Y7).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:o}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:o,scaleX:r,scaleY:i}=e,l=[];for(let a=0;a=Math.min(n.bottom,o.bottom)||d.rightMath.min(n.right,o.right)+.1){u.style.top=F7;continue}let h=s.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,g=p.right-p.left,m=null!==(t=V7.get(c))&&void 0!==t?t:p.bottom-p.top,v=c.offset||K7,b=this.view.textDirection==Y5.LTR,y=p.width>o.right-o.left?b?o.left:o.right-p.width:b?Math.min(d.left-(h?14:0)+v.x,o.right-g):Math.max(o.left,d.left-g+(h?14:0)-v.x),O=this.above[a];!s.strictSide&&(O?d.top-(p.bottom-p.top)-v.yo.bottom)&&O==o.bottom-d.bottom>d.top-o.top&&(O=this.above[a]=!O);let w=(O?d.top-o.top:o.bottom-d.bottom)-f;if(wy&&e.topS&&(S=O?e.top-m-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(S-e.parent.top)/i+"px",u.style.left=(y-e.parent.left)/r+"px"):(u.style.top=S/i+"px",u.style.left=y/r+"px"),h){let e=d.left+(b?v.x:-v.x)-(y+14-7);h.style.left=e/r+"px"}!0!==c.overlap&&l.push({left:y,top:S,right:$,bottom:S+m}),u.classList.toggle("cm-tooltip-above",O),u.classList.toggle("cm-tooltip-below",!O),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=F7}},{eventObservers:{scroll(){this.maybeMeasure()}}}),U7=X6.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),K7={x:0,y:0},G7=F2.define({enables:[Z7,U7]}),q7=F2.define();class J7{static create(e){return new J7(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new W7(e,q7,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let o=n[e];if(void 0!==o)if(void 0===t)t=o;else if(t!==o)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const e9=G7.compute([q7],(e=>{let t=e.facet(q7).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:J7.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class t9{constructor(e,t,n,o,r){this.view=e,this.source=t,this.field=n,this.setHover=o,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let i=e.bidiSpans(e.state.doc.lineAt(o)).find((e=>e.from<=o&&e.to>=o)),l=i&&i.dir==Y5.RTL?-1:1;r=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>M5(e.state,t,"hover tooltip")))}else i&&e.dispatch({effects:this.setHover.of(i)})}get tooltip(){let e=this.view.plugin(Z7),t=e?e.manager.tooltips.findIndex((e=>e.create==J7.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n&&o&&!function(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-4&&t.clientX<=n.right+4&&t.clientY>=n.top-4&&t.clientY<=n.bottom+4}(o.dom,e)||this.pending){let{pos:o}=n||this.pending,r=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:o;(o==r?this.view.posAtCoords(this.lastMove)==o:function(e,t,n,o,r,i){let l=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(l.left>o||l.rightr||Math.min(l.bottom,a)=t&&s<=n}(this.view,o,r,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function n9(e,t={}){let n=y3.define(),o=K2.define({create:()=>null,update(e,o){if(e&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,e)))return null;if(e&&o.docChanged){let t=o.changes.mapPos(e.pos,-1,I2.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=o.changes.mapPos(e.end)),e=n}for(let t of o.effects)t.is(n)&&(e=t.value),t.is(r9)&&(e=null);return e},provide:e=>q7.from(e)});return[o,D5.define((r=>new t9(r,e,o,n,t.hoverTime||300))),e9]}function o9(e,t){let n=e.plugin(Z7);if(!n)return null;let o=n.manager.tooltips.indexOf(t);return o<0?null:n.manager.tooltipViews[o]}const r9=y3.define(),i9=F2.define({combine(e){let t,n;for(let o of e)t=t||o.topContainer,n=n||o.bottomContainer;return{topContainer:t,bottomContainer:n}}});function l9(e,t){let n=e.plugin(a9),o=n?n.specs.indexOf(t):-1;return o>-1?n.panels[o]:null}const a9=D5.fromClass(class{constructor(e){this.input=e.state.facet(u9),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(i9);this.top=new s9(e,!0,t.topContainer),this.bottom=new s9(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(i9);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new s9(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new s9(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(u9);if(n!=this.input){let t=n.filter((e=>e)),o=[],r=[],i=[],l=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),l.push(t)):(t=this.panels[a],t.update&&t.update(e)),o.push(t),(t.top?r:i).push(t)}this.specs=t,this.panels=o,this.top.sync(r),this.bottom.sync(i);for(let e of l)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let o of this.panels)o.update&&o.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>X6.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class s9{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=c9(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=c9(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function c9(e){let t=e.nextSibling;return e.remove(),t}const u9=F2.define({enables:a9});class d9 extends D3{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}d9.prototype.elementClass="",d9.prototype.toDOM=void 0,d9.prototype.mapMode=I2.TrackBefore,d9.prototype.startSide=d9.prototype.endSide=-1,d9.prototype.point=!0;const p9=F2.define(),h9={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>j3.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},f9=F2.define();function g9(e){return[v9(),f9.of(Object.assign(Object.assign({},h9),e))]}const m9=F2.define({combine:e=>e.some((e=>e))});function v9(e){let t=[b9];return e&&!1===e.fixed&&t.push(m9.of(!0)),t}const b9=D5.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(f9).map((t=>new S9(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(m9),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,o=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(o<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(m9)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=j3.iter(this.view.state.facet(p9),this.view.viewport.from),o=[],r=this.gutters.map((e=>new w9(e,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(i.type)){let e=!0;for(let t of i.type)if(t.type==s5.Text&&e){O9(n,o,t.from);for(let e of r)e.line(this.view,t,o);e=!1}else if(t.widget)for(let e of r)e.widget(this.view,t)}else if(i.type==s5.Text){O9(n,o,i.from);for(let e of r)e.line(this.view,i,o)}else if(i.widget)for(let e of r)e.widget(this.view,i);for(let i of r)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(f9),n=e.state.facet(f9),o=e.docChanged||e.heightChanged||e.viewportChanged||!j3.eq(e.startState.facet(p9),e.state.facet(p9),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(o=!0);else{o=!0;let r=[];for(let o of n){let n=t.indexOf(o);n<0?r.push(new S9(this.view,o)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return o}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>X6.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Y5.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function y9(e){return Array.isArray(e)?e:[e]}function O9(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class w9{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=j3.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:o}=this,r=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==o.elements.length){let t=new $9(e,i,r,n);o.elements.push(t),o.dom.appendChild(t.dom)}else o.elements[this.i].update(e,i,r,n);this.height=t.bottom,this.i++}line(e,t,n){let o=[];O9(this.cursor,o,t.from),n.length&&(o=o.concat(n));let r=this.gutter.config.lineMarker(e,t,o);r&&o.unshift(r);let i=this.gutter;(0!=o.length||i.config.renderEmptyElements)&&this.addElement(e,t,o)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class S9{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(o=>{let r,i=o.target;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=o.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[n](e,l,o)&&o.preventDefault()}));this.markers=y9(t.markers(e)),t.initialSpacer&&(this.spacer=new $9(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=y9(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!j3.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class $9{constructor(e,t,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,o)}update(e,t,n,o){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nA3(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let o in t){let e=n[o],r=t[o];n[o]=e?(t,n,o)=>e(t,n,o)||r(t,n,o):r}return n}})});class k9 extends d9{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function P9(e,t){return e.state.facet(C9).formatNumber(t,e.state)}const T9=f9.compute([C9],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(x9),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new k9(P9(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(C9)!=e.state.facet(C9),initialSpacer:e=>new k9(P9(e,I9(e.state.doc.lines))),updateSpacer(e,t){let n=P9(t.view,I9(t.view.state.doc.lines));return n==e.number?e:new k9(n)},domEventHandlers:e.facet(C9).domEventHandlers})));function M9(e={}){return[C9.of(e),v9(),T9]}function I9(e){let t=9;for(;t{let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.head).from;r>n&&(n=r,t.push(E9.range(r)))}return j3.of(t)})),D9=1024;let R9=0,z9=class{constructor(e,t){this.from=e,this.to=t}};class B9{constructor(e={}){this.id=R9++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=_9.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}B9.closedBy=new B9({deserialize:e=>e.split(" ")}),B9.openedBy=new B9({deserialize:e=>e.split(" ")}),B9.group=new B9({deserialize:e=>e.split(" ")}),B9.contextHash=new B9({perNode:!0}),B9.lookAhead=new B9({perNode:!0}),B9.mounted=new B9({perNode:!0});class j9{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[B9.mounted.id]}}const N9=Object.create(null);class _9{constructor(e,t,n,o=0){this.name=e,this.props=t,this.id=n,this.flags=o}static define(e){let t=e.props&&e.props.length?Object.create(null):N9,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),o=new _9(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(o)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return o}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(B9.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let o of n.split(" "))t[o]=e[n];return e=>{for(let n=e.prop(B9.group),o=-1;o<(n?n.length:0);o++){let r=t[o<0?e.name:n[o]];if(r)return r}}}}_9.none=new _9("",Object.create(null),0,8);class Q9{constructor(e){this.types=e;for(let t=0;t=t){let l=new G9(e.tree,e.overlay[0].from+i.from,-1,i);(r||(r=[o])).push(U9(l,t,n,!1))}}return r?nee(r):o}(this,e,t)}iterate(e){let{enter:t,leave:n,from:o=0,to:r=this.length}=e,i=e.mode||0,l=(i&F9.IncludeAnonymous)>0;for(let a=this.cursor(i|F9.IncludeAnonymous);;){let e=!1;if(a.from<=r&&a.to>=o&&(!l&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(l||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:see(_9.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new X9(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new X9(_9.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:o,maxBufferLength:r=D9,reused:i=[],minRepeatType:l=o.types.length}=e,a=Array.isArray(n)?new Y9(n,n.length):n,s=o.types,c=0,u=0;function d(e,t,n,b,y,O){let{id:w,start:S,end:$,size:x}=a,C=u;for(;x<0;){if(a.next(),-1==x){let t=i[w];return n.push(t),void b.push(S-e)}if(-3==x)return void(c=w);if(-4==x)return void(u=w);throw new RangeError(`Unrecognized record size: ${x}`)}let k,P,T=s[w],M=S-e;if($-S<=r&&(P=m(a.pos-t,y))){let t=new Uint16Array(P.size-P.skip),n=a.pos-P.size,r=t.length;for(;a.pos>n;)r=v(P.start,t,r);k=new V9(t,$-P.start,o),M=P.start-e}else{let e=a.pos-x;a.next();let t=[],n=[],o=w>=l?w:-1,i=0,s=$;for(;a.pos>e;)o>=0&&a.id==o&&a.size>=0?(a.end<=s-r&&(f(t,n,S,i,a.end,s,o,C),i=t.length,s=a.end),a.next()):O>2500?p(S,e,t,n):d(S,e,t,n,o,O+1);if(o>=0&&i>0&&i-1&&i>0){let e=h(T);k=see(T,t,n,0,t.length,0,$-S,e,e)}else k=g(T,t,n,$-S,C-$)}n.push(k),b.push(M)}function p(e,t,n,i){let l=[],s=0,c=-1;for(;a.pos>t;){let{id:e,start:t,end:n,size:o}=a;if(o>4)a.next();else{if(c>-1&&t=0;e-=3)t[n++]=l[e],t[n++]=l[e+1]-r,t[n++]=l[e+2]-r,t[n++]=n;n.push(new V9(t,l[2]-r,o)),i.push(r-e)}}function h(e){return(t,n,o)=>{let r,i,l=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof X9){if(!a&&r.type==e&&r.length==o)return r;(i=r.prop(B9.lookAhead))&&(l=n[a]+r.length+i)}return g(e,t,n,o,l)}}function f(e,t,n,r,i,l,a,s){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-i);e.push(g(o.types[a],c,u,l-i,s-l)),t.push(i-n)}function g(e,t,n,o,r=0,i){if(c){let e=[B9.contextHash,c];i=i?[e].concat(i):[e]}if(r>25){let e=[B9.lookAhead,r];i=i?[e].concat(i):[e]}return new X9(e,t,n,o,i)}function m(e,t){let n=a.fork(),o=0,i=0,s=0,c=n.end-r,u={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=o,u.start=i,u.skip=s,s+=4,o+=4,n.next();continue}let a=n.pos-e;if(e<0||a=l?4:0,p=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=l&&(d+=4);n.next()}i=p,o+=e,s+=d}return(t<0||o==e)&&(u.size=o,u.start=i,u.skip=s),u.size>4?u:void 0}function v(e,t,n){let{id:o,start:r,end:i,size:s}=a;if(a.next(),s>=0&&o4){let o=a.pos-(s-4);for(;a.pos>o;)n=v(e,t,n)}t[--n]=l,t[--n]=i-e,t[--n]=r-e,t[--n]=o}else-3==s?c=o:-4==s&&(u=o);return n}let b=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,b,y,-1,0);let O=null!==(t=e.length)&&void 0!==t?t:b.length?y[0]+b[0].length:0;return new X9(s[e.topID],b.reverse(),y.reverse(),O)}(e)}}X9.empty=new X9(_9.none,[],[],0);class Y9{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Y9(this.buffer,this.index)}}class V9{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return _9.none}toString(){let e=[];for(let t=0;t0));a=i[a+3]);return l}slice(e,t,n){let o=this.buffer,r=new Uint16Array(t-e),i=0;for(let l=e,a=0;l=t&&nt;case 1:return n<=t&&o>t;case 2:return o>t;case 4:return!0}}function U9(e,t,n,o){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?l.length:-1;e!=s;e+=t){let s=l[e],c=a[e]+i.from;if(Z9(o,n,c,c+s.length))if(s instanceof V9){if(r&F9.ExcludeBuffers)continue;let l=s.findChild(0,s.buffer.length,t,n-c,o);if(l>-1)return new tee(new eee(i,s,e,c),null,l)}else if(r&F9.IncludeAnonymous||!s.type.isAnonymous||iee(s)){let l;if(!(r&F9.IgnoreMounts)&&(l=j9.get(s))&&!l.overlay)return new G9(l.tree,c,e,i);let a=new G9(s,c,e,i);return r&F9.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?s.children.length-1:0,t,n,o)}}if(r&F9.IncludeAnonymous||!i.type.isAnonymous)return null;if(e=i.index>=0?i.index+t:t<0?-1:i._parent._tree.children.length,i=i._parent,!i)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let o;if(!(n&F9.IgnoreOverlays)&&(o=j9.get(this._tree))&&o.overlay){let n=e-this.from;for(let{from:e,to:r}of o.overlay)if((t>0?e<=n:e=n:r>n))return new G9(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function q9(e,t,n,o){let r=e.cursor(),i=[];if(!r.firstChild())return i;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return i;for(;;){if(null!=o&&r.type.is(o))return i;if(r.type.is(t)&&i.push(r.node),!r.nextSibling())return null==o?i:[]}}function J9(e,t,n=t.length-1){for(let o=e.parent;n>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(t[n]&&t[n]!=o.name)return!1;n--}}return!0}class eee{constructor(e,t,n,o){this.parent=e,this.buffer=t,this.index=n,this.start=o}}class tee extends K9{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new tee(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&F9.ExcludeBuffers)return null;let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new tee(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new tee(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new tee(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,o=this.index+4,r=n.buffer[this.index+3];if(r>o){let i=n.buffer[this.index+1];e.push(n.slice(o,r,i)),t.push(0)}return new X9(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function nee(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;in.from||o.to0){if(this.index-1)for(let o=t+e,r=e<0?-1:n._tree.children.length;o!=r;o+=e){let e=n._tree.children[o];if(this.mode&F9.IncludeAnonymous||e instanceof V9||!e.type.isAnonymous||iee(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let i=e;i;i=i._parent)if(i.index==o){if(o==this.index)return i;t=i,n=r+1;break e}o=this.stack[--r]}for(let o=n;o=0;r--){if(r<0)return J9(this.node,e,o);let i=n[t.buffer[this.stack[r]]];if(!i.isAnonymous){if(e[o]&&e[o]!=i.name)return!1;o--}}return!0}}function iee(e){return e.children.some((e=>e instanceof V9||!e.type.isAnonymous||iee(e)))}const lee=new WeakMap;function aee(e,t){if(!e.isAnonymous||t instanceof V9||t.type!=e)return 1;let n=lee.get(t);if(null==n){n=1;for(let o of t.children){if(o.type!=e||!(o instanceof X9)){n=1;break}n+=aee(e,o)}lee.set(t,n)}return n}function see(e,t,n,o,r,i,l,a,s){let c=0;for(let h=o;h=u)break;f+=t}if(c==r+1){if(f>u){let e=n[r];t(e.children,e.positions,0,e.children.length,o[r]+a);continue}d.push(n[r])}else{let t=o[c-1]+n[c-1].length-h;d.push(see(e,n,o,r,c,h,t,null,s))}p.push(h+a-i)}}(t,n,o,r,0),(a||s)(d,p,l)}class cee{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let o=this.map.get(e);o||this.map.set(e,o=new Map),o.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof tee?this.setBuffer(e.context.buffer,e.index,t):e instanceof G9&&this.map.set(e.tree,t)}get(e){return e instanceof tee?this.getBuffer(e.context.buffer,e.index):e instanceof G9?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class uee{constructor(e,t,n,o,r=!1,i=!1){this.from=e,this.to=t,this.tree=n,this.offset=o,this.open=(r?1:0)|(i?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let o=[new uee(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&o.push(r);return o}static applyChanges(e,t,n=128){if(!t.length)return e;let o=[],r=1,i=e.length?e[0]:null;for(let l=0,a=0,s=0;;l++){let c=l=n)for(;i&&i.from=t.from||u<=t.to||s){let e=Math.max(t.from,a)-s,n=Math.min(t.to,u)-s;t=e>=n?null:new uee(e,n,t.tree,t.offset+s,l>0,!!c)}if(t&&o.push(t),i.to>u)break;i=rnew z9(e.from,e.to))):[new z9(0,0)]:[new z9(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let o=this.startParse(e,t,n);for(;;){let e=o.advance();if(e)return e}}}class pee{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new B9({perNode:!0});let hee=0;class fee{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=hee++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new fee([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new mee;return t=>t.modified.indexOf(e)>-1?t:mee.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let gee=0;class mee{constructor(){this.instances=[],this.id=gee++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(o=t,r=n.modified,o.length==r.length&&o.every(((e,t)=>e==r[t])));var o,r}));if(n)return n;let o=[],r=new fee(o,e,t);for(let l of t)l.instances.push(r);let i=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let l of e.set)if(!l.modified.length)for(let e of i)o.push(mee.get(l,e));return r}}function vee(e){let t=Object.create(null);for(let n in e){let o=e[n];Array.isArray(o)||(o=[o]);for(let e of n.split(" "))if(e){let n=[],r=2,i=e;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){r=1;break}let o=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i);if(!o)throw new RangeError("Invalid path: "+e);if(n.push("*"==o[0]?"":'"'==o[0][0]?JSON.parse(o[0]):o[0]),t+=o[0].length,t==e.length)break;let l=e[t++];if(t==e.length&&"!"==l){r=0;break}if("/"!=l)throw new RangeError("Invalid path: "+e);i=e.slice(t)}let l=n.length-1,a=n[l];if(!a)throw new RangeError("Invalid path: "+e);let s=new yee(o,r,l>0?n.slice(0,l):null);t[a]=s.sort(t[a])}}return bee.add(t)}const bee=new B9;class yee{constructor(e,t,n,o){this.tags=e,this.mode=t,this.context=n,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=r;for(let o of e)for(let e of o.set){let o=n[e.id];if(o){t=t?t+" "+o:o;break}}return t},scope:o}}function wee(e,t,n,o=0,r=e.length){let i=new See(o,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),o,r,"",i.highlighters),i.flush(r)}yee.empty=new yee([],2,null);class See{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,r){let{type:i,from:l,to:a}=e;if(l>=n||a<=t)return;i.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(i))));let s=o,c=function(e){let t=e.type.prop(bee);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||yee.empty,u=function(e,t){let n=null;for(let o of e){let e=o.style(t);e&&(n=n?n+" "+e:e)}return n}(r,c.tags);if(u&&(s&&(s+=" "),s+=u,1==c.mode&&(o+=(o?" ":"")+u)),this.startSpan(Math.max(t,l),s),c.opaque)return;let d=e.tree&&e.tree.prop(B9.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+l,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let p=0,h=l;;p++){let f=p=g)&&e.nextSibling()););if(!f||g>n)break;h=f.to+l,h>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+l),Math.min(n,h),"",c),this.startSpan(Math.min(n,h),s))}u&&e.parent()}else if(e.firstChild()){d&&(o="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,r),this.startSpan(Math.min(n,e.to),s)}}while(e.nextSibling());e.parent()}}}const $ee=fee.define,xee=$ee(),Cee=$ee(),kee=$ee(Cee),Pee=$ee(Cee),Tee=$ee(),Mee=$ee(Tee),Iee=$ee(Tee),Eee=$ee(),Aee=$ee(Eee),Dee=$ee(),Ree=$ee(),zee=$ee(),Bee=$ee(zee),jee=$ee(),Nee={comment:xee,lineComment:$ee(xee),blockComment:$ee(xee),docComment:$ee(xee),name:Cee,variableName:$ee(Cee),typeName:kee,tagName:$ee(kee),propertyName:Pee,attributeName:$ee(Pee),className:$ee(Cee),labelName:$ee(Cee),namespace:$ee(Cee),macroName:$ee(Cee),literal:Tee,string:Mee,docString:$ee(Mee),character:$ee(Mee),attributeValue:$ee(Mee),number:Iee,integer:$ee(Iee),float:$ee(Iee),bool:$ee(Tee),regexp:$ee(Tee),escape:$ee(Tee),color:$ee(Tee),url:$ee(Tee),keyword:Dee,self:$ee(Dee),null:$ee(Dee),atom:$ee(Dee),unit:$ee(Dee),modifier:$ee(Dee),operatorKeyword:$ee(Dee),controlKeyword:$ee(Dee),definitionKeyword:$ee(Dee),moduleKeyword:$ee(Dee),operator:Ree,derefOperator:$ee(Ree),arithmeticOperator:$ee(Ree),logicOperator:$ee(Ree),bitwiseOperator:$ee(Ree),compareOperator:$ee(Ree),updateOperator:$ee(Ree),definitionOperator:$ee(Ree),typeOperator:$ee(Ree),controlOperator:$ee(Ree),punctuation:zee,separator:$ee(zee),bracket:Bee,angleBracket:$ee(Bee),squareBracket:$ee(Bee),paren:$ee(Bee),brace:$ee(Bee),content:Eee,heading:Aee,heading1:$ee(Aee),heading2:$ee(Aee),heading3:$ee(Aee),heading4:$ee(Aee),heading5:$ee(Aee),heading6:$ee(Aee),contentSeparator:$ee(Eee),list:$ee(Eee),quote:$ee(Eee),emphasis:$ee(Eee),strong:$ee(Eee),link:$ee(Eee),monospace:$ee(Eee),strikethrough:$ee(Eee),inserted:$ee(),deleted:$ee(),changed:$ee(),invalid:$ee(),meta:jee,documentMeta:$ee(jee),annotation:$ee(jee),processingInstruction:$ee(jee),definition:fee.defineModifier(),constant:fee.defineModifier(),function:fee.defineModifier(),standard:fee.defineModifier(),local:fee.defineModifier(),special:fee.defineModifier()};var _ee;Oee([{tag:Nee.link,class:"tok-link"},{tag:Nee.heading,class:"tok-heading"},{tag:Nee.emphasis,class:"tok-emphasis"},{tag:Nee.strong,class:"tok-strong"},{tag:Nee.keyword,class:"tok-keyword"},{tag:Nee.atom,class:"tok-atom"},{tag:Nee.bool,class:"tok-bool"},{tag:Nee.url,class:"tok-url"},{tag:Nee.labelName,class:"tok-labelName"},{tag:Nee.inserted,class:"tok-inserted"},{tag:Nee.deleted,class:"tok-deleted"},{tag:Nee.literal,class:"tok-literal"},{tag:Nee.string,class:"tok-string"},{tag:Nee.number,class:"tok-number"},{tag:[Nee.regexp,Nee.escape,Nee.special(Nee.string)],class:"tok-string2"},{tag:Nee.variableName,class:"tok-variableName"},{tag:Nee.local(Nee.variableName),class:"tok-variableName tok-local"},{tag:Nee.definition(Nee.variableName),class:"tok-variableName tok-definition"},{tag:Nee.special(Nee.variableName),class:"tok-variableName2"},{tag:Nee.definition(Nee.propertyName),class:"tok-propertyName tok-definition"},{tag:Nee.typeName,class:"tok-typeName"},{tag:Nee.namespace,class:"tok-namespace"},{tag:Nee.className,class:"tok-className"},{tag:Nee.macroName,class:"tok-macroName"},{tag:Nee.propertyName,class:"tok-propertyName"},{tag:Nee.operator,class:"tok-operator"},{tag:Nee.comment,class:"tok-comment"},{tag:Nee.meta,class:"tok-meta"},{tag:Nee.invalid,class:"tok-invalid"},{tag:Nee.punctuation,class:"tok-punctuation"}]);const Qee=new B9;function Lee(e){return F2.define({combine:e?t=>t.concat(e):void 0})}const Hee=new B9;class Fee{constructor(e,t,n=[],o=""){this.data=e,this.name=o,E3.prototype.hasOwnProperty("tree")||Object.defineProperty(E3.prototype,"tree",{get(){return Yee(this)}}),this.parser=t,this.extension=[tte.of(this),E3.languageData.of(((e,t,n)=>{let o=Wee(e,t,n),r=o.type.prop(Qee);if(!r)return[];let i=e.facet(r),l=o.type.prop(Hee);if(l){let r=o.resolve(t-o.from,n);for(let t of l)if(t.test(r,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(e,t,n=-1){return Wee(e,t,n).type.prop(Qee)==this.data}findRegions(e){let t=e.facet(tte);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],o=(e,t)=>{if(e.prop(Qee)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(B9.mounted);if(r){if(r.tree.prop(Qee)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(o(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new Xee(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Yee(e){let t=e.field(Fee.state,!1);return t?t.tree:X9.empty}class Vee{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Zee=null;class Uee{constructor(e,t,n=[],o,r,i,l,a){this.parser=e,this.state=t,this.fragments=n,this.tree=o,this.treeLen=r,this.viewport=i,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Uee(e,t,[],X9.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Vee(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=X9.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(uee.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Zee;Zee=this;try{return e()}finally{Zee=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Kee(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:o,treeLen:r,viewport:i,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,o,r)=>t.push({fromA:e,toA:n,fromB:o,toB:r}))),n=uee.applyChanges(n,t),o=X9.empty,r=0,i={from:e.mapPos(i.from,-1),to:e.mapPos(i.to,1)},this.skipped.length){l=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),o=e.mapPos(t.to,-1);ne.from&&(this.fragments=Kee(this.fragments,t,o),this.skipped.splice(n--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends dee{createParse(t,n,o){let r=o[0].from,i=o[o.length-1].to;return{parsedPos:r,advance(){let t=Zee;if(t){for(let e of o)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=i,new X9(_9.none,[],[],i-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Zee}}function Kee(e,t,n){return uee.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Gee{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Gee(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Uee.create(e.facet(tte).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Gee(n)}}Fee.state=K2.define({create:Gee.init,update(e,t){for(let n of t.effects)if(n.is(Fee.setState))return n.value;return t.startState.facet(tte)!=t.state.facet(tte)?Gee.init(t.state):e.apply(t)}});let qee=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(qee=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Jee="undefined"!=typeof navigator&&(null===(_ee=navigator.scheduling)||void 0===_ee?void 0:_ee.isInputPending)?()=>navigator.scheduling.isInputPending():null,ete=D5.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Fee.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Fee.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=qee(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndo+1e3,a=r.context.work((()=>Jee&&Jee()||Date.now()>i),o+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Fee.setState.of(new Gee(r.context))})),this.chunkBudget>0&&(!a||l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>M5(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),tte=F2.define({combine:e=>e.length?e[0]:null,enables:e=>[Fee.state,ete,X6.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class nte{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const ote=F2.define(),rte=F2.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function ite(e){let t=e.facet(rte);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function lte(e,t){let n="",o=e.tabSize,r=e.facet(rte)[0];if("\t"==r){for(;t>=o;)n+="\t",t-=o;r=" "}for(let i=0;i=t?function(e,t,n){let o=t.resolveStack(n),r=o.node.enterUnfinishedNodesBefore(n);if(r!=o.node){let e=[];for(let t=r;t!=o.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)o={node:e[t],next:o}}return ute(o,e,n)}(e,n,t):null}class ste{constructor(e,t={}){this.state=e,this.options=t,this.unit=ite(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:o,simulateDoubleBreak:r}=this.options;return null!=o&&o>=n.from&&o<=n.to?r&&o==e?{text:"",from:e}:(t<0?o-1&&(r+=i-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return U3(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:o}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(o);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const cte=new B9;function ute(e,t,n){for(let o=e;o;o=o.next){let e=dte(o.node);if(e)return e(hte.create(t,n,o))}return 0}function dte(e){let t=e.type.prop(cte);if(t)return t;let n,o=e.firstChild;if(o&&(n=o.type.prop(B9.closedBy))){let t=e.lastChild,o=t&&n.indexOf(t.name)>-1;return e=>mte(e,!0,1,void 0,o&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?pte:null}function pte(){return 0}class hte extends ste{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new hte(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(fte(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return ute(this.context.next,this.base,this.pos)}}function fte(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function gte({closing:e,align:t=!0,units:n=1}){return o=>mte(o,t,n,e)}function mte(e,t,n,o,r){let i=e.textAfter,l=i.match(/^\s*/)[0].length,a=o&&i.slice(l,l+o.length)==o||r==e.pos+l,s=t?function(e){let t=e.node,n=t.childAfter(t.from),o=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),l=null==r||r<=i.from?i.to:Math.min(i.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==o)return null;if(!e.type.isSkipped)return e.from{let o=e&&e.test(n.textAfter);return n.baseIndent+(o?0:t*n.unit)}}const bte=F2.define(),yte=new B9;function Ote(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function wte(e,t,n){for(let o of e.facet(bte)){let r=o(e,t,n);if(r)return r}return function(e,t,n){let o=Yee(e);if(o.lengthn)continue;if(r&&l.from=t&&o.to>n&&(r=o)}}return r}(e,t,n)}function Ste(e,t){let n=t.mapPos(e.from,1),o=t.mapPos(e.to,-1);return n>=o?void 0:{from:n,to:o}}const $te=y3.define({map:Ste}),xte=y3.define({map:Ste});function Cte(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const kte=K2.define({create:()=>c5.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is($te)&&!Tte(e,n.value.from,n.value.to)){let{preparePlaceholder:o}=t.state.facet(Dte),r=o?c5.replace({widget:new jte(o(t.state,n.value))}):Bte;e=e.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(xte)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:o}=t.selection.main;e.between(o,o,((e,t)=>{eo&&(n=!0)})),n&&(e=e.update({filterFrom:o,filterTo:o,filter:(e,t)=>t<=o||e>=o}))}return e},provide:e=>X6.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!r||r.from>e)&&(r={from:e,to:t})})),r}function Tte(e,t,n){let o=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(o=!0)})),o}function Mte(e,t){return e.field(kte,!1)?t:t.concat(y3.appendConfig.of(Rte()))}function Ite(e,t,n=!0){let o=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return X6.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${o} ${e.state.phrase("to")} ${r}.`)}const Ete=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of Cte(e)){let n=wte(e.state,t.from,t.to);if(n)return e.dispatch({effects:Mte(e.state,[$te.of(n),Ite(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(kte,!1))return!1;let t=[];for(let n of Cte(e)){let o=Pte(e.state,n.from,n.to);o&&t.push(xte.of(o),Ite(e,o,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let o=0;o{let t=e.state.field(kte,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(xte.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],Ate={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Dte=F2.define({combine:e=>A3(e,Ate)});function Rte(e){let t=[kte,Lte];return e&&t.push(Dte.of(e)),t}function zte(e,t){let{state:n}=e,o=n.facet(Dte),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),o=Pte(e.state,n.from,n.to);o&&e.dispatch({effects:xte.of(o)}),t.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(e,r,t);let i=document.createElement("span");return i.textContent=o.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}const Bte=c5.replace({widget:new class extends a5{toDOM(e){return zte(e,null)}}});class jte extends a5{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return zte(e,this.value)}}const Nte={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class _te extends d9{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Qte(e={}){let t=Object.assign(Object.assign({},Nte),e),n=new _te(t,!0),o=new _te(t,!1),r=D5.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(tte)!=e.state.facet(tte)||e.startState.field(kte,!1)!=e.state.field(kte,!1)||Yee(e.startState)!=Yee(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new N3;for(let r of e.viewportLineBlocks){let i=Pte(e.state,r.from,r.to)?o:wte(e.state,r.from,r.to)?n:null;i&&t.add(r.from,r.from,i)}return t.finish()}}),{domEventHandlers:i}=t;return[r,g9({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||j3.empty},initialSpacer:()=>new _te(t,!1),domEventHandlers:Object.assign(Object.assign({},i),{click:(e,t,n)=>{if(i.click&&i.click(e,t,n))return!0;let o=Pte(e.state,t.from,t.to);if(o)return e.dispatch({effects:xte.of(o)}),!0;let r=wte(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:$te.of(r)}),!0)}})}),Rte()]}const Lte=X6.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Hte{constructor(e,t){let n;function o(e){let t=e4.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?o(t.all):void 0,i=t.scope;this.scope=i instanceof Fee?e=>e.prop(Qee)==i.data:i?e=>e==i:void 0,this.style=Oee(e.map((e=>({tag:e.tag,class:e.class||o(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new e4(n):null,this.themeType=t.themeType}static define(e,t){return new Hte(e,t||{})}}const Fte=F2.define(),Wte=F2.define({combine:e=>e.length?[e[0]]:null});function Xte(e){let t=e.facet(Fte);return t.length?t:e.facet(Wte)}function Yte(e,t){let n,o=[Zte];return e instanceof Hte&&(e.module&&o.push(X6.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?o.push(Wte.of(e)):n?o.push(Fte.computeN([X6.darkTheme],(t=>t.facet(X6.darkTheme)==("dark"==n)?[e]:[]))):o.push(Fte.of(e)),o}class Vte{constructor(e){this.markCache=Object.create(null),this.tree=Yee(e.state),this.decorations=this.buildDeco(e,Xte(e.state))}update(e){let t=Yee(e.state),n=Xte(e.state),o=n!=Xte(e.startState);t.length{n.add(e,t,this.markCache[o]||(this.markCache[o]=c5.mark({class:o})))}),o,r);return n.finish()}}const Zte=n3.high(D5.fromClass(Vte,{decorations:e=>e.decorations})),Ute=Hte.define([{tag:Nee.meta,color:"#404740"},{tag:Nee.link,textDecoration:"underline"},{tag:Nee.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Nee.emphasis,fontStyle:"italic"},{tag:Nee.strong,fontWeight:"bold"},{tag:Nee.strikethrough,textDecoration:"line-through"},{tag:Nee.keyword,color:"#708"},{tag:[Nee.atom,Nee.bool,Nee.url,Nee.contentSeparator,Nee.labelName],color:"#219"},{tag:[Nee.literal,Nee.inserted],color:"#164"},{tag:[Nee.string,Nee.deleted],color:"#a11"},{tag:[Nee.regexp,Nee.escape,Nee.special(Nee.string)],color:"#e40"},{tag:Nee.definition(Nee.variableName),color:"#00f"},{tag:Nee.local(Nee.variableName),color:"#30a"},{tag:[Nee.typeName,Nee.namespace],color:"#085"},{tag:Nee.className,color:"#167"},{tag:[Nee.special(Nee.variableName),Nee.macroName],color:"#256"},{tag:Nee.definition(Nee.propertyName),color:"#00c"},{tag:Nee.comment,color:"#940"},{tag:Nee.invalid,color:"#f00"}]),Kte=X6.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Gte="()[]{}",qte=F2.define({combine:e=>A3(e,{afterCursor:!0,brackets:Gte,maxScanDistance:1e4,renderMatch:tne})}),Jte=c5.mark({class:"cm-matchingBracket"}),ene=c5.mark({class:"cm-nonmatchingBracket"});function tne(e){let t=[],n=e.matched?Jte:ene;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const nne=[K2.define({create:()=>c5.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],o=t.state.facet(qte);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=ane(t.state,r.head,-1,o)||r.head>0&&ane(t.state,r.head-1,1,o)||o.afterCursor&&(ane(t.state,r.head,1,o)||r.headX6.decorations.from(e)}),Kte];function one(e={}){return[qte.of(e),nne]}const rne=new B9;function ine(e,t,n){let o=e.prop(t<0?B9.openedBy:B9.closedBy);if(o)return o;if(1==e.name.length){let o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function lne(e){let t=e.type.prop(rne);return t?t(e.node):e}function ane(e,t,n,o={}){let r=o.maxScanDistance||1e4,i=o.brackets||Gte,l=Yee(e),a=l.resolveInner(t,n);for(let s=a;s;s=s.parent){let e=ine(s.type,n,i);if(e&&s.from0?t>=o.from&&to.from&&t<=o.to))return sne(0,0,n,s,o,e,i)}}return function(e,t,n,o,r,i,l){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),s=l.indexOf(a);if(s<0||s%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!u.next().done&&p<=i;){let e=u.value;n<0&&(p+=e.length);let i=t+p*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=l.indexOf(e[t]);if(!(a<0||o.resolveInner(i+t,1).type!=r))if(a%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:i+t,to:i+t+1},matched:a>>1==s>>1};d--}}n>0&&(p+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,l,a.type,r,i)}function sne(e,t,n,o,r,i,l){let a=o.parent,s={from:r.from,to:r.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(o.from):u.childAfter(o.to)))do{if(n<0?u.to<=o.from:u.from>=o.to){if(0==c&&i.indexOf(u.type.name)>-1&&u.from-1||dne.push(e)}function gne(e,t){let n=[];for(let a of t.split(" ")){let t=[];for(let n of a.split(".")){let o=e[n]||Nee[n];o?"function"==typeof o?t.length?t=t.map(o):fne(n):t.length?fne(n):t=Array.isArray(o)?o:[o]:fne(n)}for(let e of t)n.push(e)}if(!n.length)return 0;let o=t.replace(/ /g,"_"),r=o+" "+n.map((e=>e.id)),i=pne[r];if(i)return i.id;let l=pne[r]=_9.define({id:une.length,name:o,props:[vee({[o]:n})]});return une.push(l),l.id}function mne(e,t){return({state:n,dispatch:o})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(o(n.update(r)),!0)}}const vne=mne(Sne,0),bne=mne(wne,0),yne=mne(((e,t)=>wne(e,t,function(e){let t=[];for(let n of e.selection.ranges){let o=e.doc.lineAt(n.from),r=n.to<=o.to?o:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>o.from?t[i].to=r.to:t.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:r.to})}return t}(t))),0);function One(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function wne(e,t,n=t.selection.ranges){let o=n.map((e=>One(t,e.from).block));if(!o.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},o,r){let i,l,a=e.sliceDoc(o-50,o),s=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(s)[0].length,d=a.length-c;if(a.slice(d-t.length,d)==t&&s.slice(u,u+n.length)==n)return{open:{pos:o-c,margin:c&&1},close:{pos:r+u,margin:u&&1}};r-o<=100?i=l=e.sliceDoc(o,r):(i=e.sliceDoc(o,o+50),l=e.sliceDoc(r-50,r));let p=/^\s*/.exec(i)[0].length,h=/\s*$/.exec(l)[0].length,f=l.length-h-n.length;return i.slice(p,p+t.length)==t&&l.slice(f,f+n.length)==n?{open:{pos:o+p+t.length,margin:/\s/.test(i.charAt(p+t.length))?1:0},close:{pos:r-h-n.length,margin:/\s/.test(l.charAt(f-1))?1:0}}:null}(t,o[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:o[t].open+" "},{from:e.to,insert:" "+o[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;nr&&(i==l||l>s.from)){r=s.from;let e=/^\s*/.exec(s.text)[0].length,t=e==s.length,i=s.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:i,empty:l,single:a}of o)!a&&l||e.push({from:t.from+i,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&o.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of o)if(n>=0){let o=t.from+n,i=o+r.length;" "==t.text[i-t.from]&&i++,e.push({from:o,to:i})}return{changes:e}}return null}const $ne=m3.define(),xne=m3.define(),Cne=F2.define(),kne=F2.define({combine:e=>A3(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,o)=>e(n,o)||t(n,o)})}),Pne=K2.define({create:()=>Fne.empty,update(e,t){let n=t.state.facet(kne),o=t.annotation($ne);if(o){let r=Rne.fromTransaction(t,o.selection),i=o.side,l=0==i?e.undone:e.done;return l=r?zne(l,l.length,n.minDepth,r):Nne(l,t.startState.selection),new Fne(0==i?o.rest:l,0==i?l:o.rest)}let r=t.annotation(xne);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(O3.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let i=Rne.fromTransaction(t),l=t.annotation(O3.time),a=t.annotation(O3.userEvent);return i?e=e.addChanges(i,l,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,a,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Fne(e.done.map(Rne.fromJSON),e.undone.map(Rne.fromJSON))});function Tne(e={}){return[Pne,kne.of(e),X6.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Ine:"historyRedo"==e.inputType?Ene:null;return!!n&&(e.preventDefault(),n(t))}})]}function Mne(e,t){return function({state:n,dispatch:o}){if(!t&&n.readOnly)return!1;let r=n.field(Pne,!1);if(!r)return!1;let i=r.pop(e,n,t);return!!i&&(o(i),!0)}}const Ine=Mne(0,!1),Ene=Mne(1,!1),Ane=Mne(0,!0),Dne=Mne(1,!0);class Rne{constructor(e,t,n,o,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=o,this.selectionsAfter=r}setSelAfter(e){return new Rne(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Rne(e.changes&&A2.fromJSON(e.changes),[],e.mapped&&E2.fromJSON(e.mapped),e.startSelection&&Q2.fromJSON(e.startSelection),e.selectionsAfter.map(Q2.fromJSON))}static fromTransaction(e,t){let n=jne;for(let o of e.startState.facet(Cne)){let t=o(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new Rne(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,jne)}static selection(e){return new Rne(void 0,jne,void 0,void 0,e)}}function zne(e,t,n,o){let r=t+1>n+20?t-n-1:0,i=e.slice(r,t);return i.push(o),i}function Bne(e,t){return e.length?t.length?e.concat(t):e:t}const jne=[];function Nne(e,t){if(e.length){let n=e[e.length-1],o=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return o.length&&o[o.length-1].eq(t)?e:(o.push(t),zne(e,e.length-1,1e9,n.setSelAfter(o)))}return[Rne.selection([t])]}function _ne(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Qne(e,t){if(!e.length)return e;let n=e.length,o=jne;for(;n;){let r=Lne(e[n-1],t,o);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,o=r.selectionsAfter}return o.length?[Rne.selection(o)]:jne}function Lne(e,t,n){let o=Bne(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):jne,n);if(!e.changes)return Rne.selection(o);let r=e.changes.map(t),i=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(i):i;return new Rne(r,y3.mapEffects(e.effects,t),l,e.startSelection.map(i),o)}const Hne=/^(input\.type|delete)($|\.)/;class Fne{constructor(e,t,n=0,o=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new Fne(this.done,this.undone):this}addChanges(e,t,n,o,r){let i=this.done,l=i[i.length-1];return i=l&&l.changes&&!l.changes.empty&&e.changes&&(!n||Hne.test(n))&&(!l.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,r,i)=>{for(let l=0;l=e&&r<=t&&(o=!0)}})),o}(l.changes,e.changes))||"input.type.compose"==n)?zne(i,i.length-1,o.minDepth,new Rne(e.changes.compose(l.changes),Bne(e.effects,l.effects),l.mapped,l.startSelection,jne)):zne(i,i.length,o.minDepth,e),new Fne(i,jne,t,n)}addSelection(e,t,n,o){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:jne;return r.length>0&&t-this.prevTimee.empty!=l.ranges[t].empty)).length)?this:new Fne(Nne(this.done,e),this.undone,t,n);var i,l}addMapping(e){return new Fne(Qne(this.done,e),Qne(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let o=0==e?this.done:this.undone;if(0==o.length)return null;let r=o[o.length-1],i=r.selectionsAfter[0]||t.selection;if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:$ne.of({side:e,rest:_ne(o),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==o.length?jne:o.slice(0,o.length-1);return r.mapped&&(n=Qne(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:$ne.of({side:e,rest:n,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Fne.empty=new Fne(jne,jne);const Wne=[{key:"Mod-z",run:Ine,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Ene,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Ene,preventDefault:!0},{key:"Mod-u",run:Ane,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Dne,preventDefault:!0}];function Xne(e,t){return Q2.create(e.ranges.map(t),e.mainIndex)}function Yne(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Vne({state:e,dispatch:t},n){let o=Xne(e.selection,n);return!o.eq(e.selection)&&(t(Yne(e,o)),!0)}function Zne(e,t){return Q2.cursor(t?e.to:e.from)}function Une(e,t){return Vne(e,(n=>n.empty?e.moveByChar(n,t):Zne(n,t)))}function Kne(e){return e.textDirectionAt(e.state.selection.main.head)==Y5.LTR}const Gne=e=>Une(e,!Kne(e)),qne=e=>Une(e,Kne(e));function Jne(e,t){return Vne(e,(n=>n.empty?e.moveByGroup(n,t):Zne(n,t)))}function eoe(e,t,n){if(t.type.prop(n))return!0;let o=t.to-t.from;return o&&(o>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function toe(e,t,n){let o,r,i=Yee(e).resolveInner(t.head),l=n?B9.closedBy:B9.openedBy;for(let a=t.head;;){let t=n?i.childAfter(a):i.childBefore(a);if(!t)break;eoe(e,t,l)?i=t:a=n?t.to:t.from}return r=i.type.prop(l)&&(o=n?ane(e,i.from,1):ane(e,i.to,-1))&&o.matched?n?o.end.to:o.end.from:n?i.to:i.from,Q2.cursor(r,n?-1:1)}function noe(e,t){return Vne(e,(n=>{if(!n.empty)return Zne(n,t);let o=e.moveVertically(n,t);return o.head!=n.head?o:e.moveToLineBoundary(n,t)}))}const ooe=e=>noe(e,!1),roe=e=>noe(e,!0);function ioe(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,o.height):Zne(n,t)));if(i.eq(r.selection))return!1;if(o.selfScroll){let t=e.coordsAtPos(r.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),a=l.top+o.marginTop,s=l.bottom-o.marginBottom;t&&t.top>a&&t.bottomloe(e,!1),soe=e=>loe(e,!0);function coe(e,t,n){let o=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?o.to:o.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&t.head!=o.from+n&&(r=Q2.cursor(o.from+n))}return r}function uoe(e,t){let n=Xne(e.state.selection,(e=>{let n=t(e);return Q2.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(Yne(e.state,n)),!0)}function doe(e,t){return uoe(e,(n=>e.moveByChar(n,t)))}const poe=e=>doe(e,!Kne(e)),hoe=e=>doe(e,Kne(e));function foe(e,t){return uoe(e,(n=>e.moveByGroup(n,t)))}function goe(e,t){return uoe(e,(n=>e.moveVertically(n,t)))}const moe=e=>goe(e,!1),voe=e=>goe(e,!0);function boe(e,t){return uoe(e,(n=>e.moveVertically(n,t,ioe(e).height)))}const yoe=e=>boe(e,!1),Ooe=e=>boe(e,!0),woe=({state:e,dispatch:t})=>(t(Yne(e,{anchor:0})),!0),Soe=({state:e,dispatch:t})=>(t(Yne(e,{anchor:e.doc.length})),!0),$oe=({state:e,dispatch:t})=>(t(Yne(e,{anchor:e.selection.main.anchor,head:0})),!0),xoe=({state:e,dispatch:t})=>(t(Yne(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Coe(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:o}=e,r=o.changeByRange((o=>{let{from:r,to:i}=o;if(r==i){let l=t(o);lr&&(n="delete.forward",l=koe(e,l,!0)),r=Math.min(r,l),i=Math.max(i,l)}else r=koe(e,r,!1),i=koe(e,i,!0);return r==i?{range:o}:{changes:{from:r,to:i},range:Q2.cursor(r,rt(e))))o.between(t,t,((e,o)=>{et&&(t=n?o:e)}));return t}const Poe=(e,t)=>Coe(e,(n=>{let o,r,i=n.from,{state:l}=e,a=l.doc.lineAt(i);if(!t&&i>a.from&&iPoe(e,!1),Moe=e=>Poe(e,!0),Ioe=(e,t)=>Coe(e,(n=>{let o=n.head,{state:r}=e,i=r.doc.lineAt(o),l=r.charCategorizer(o);for(let e=null;;){if(o==(t?i.to:i.from)){o==n.head&&i.number!=(t?r.doc.lines:1)&&(o+=t?1:-1);break}let a=w2(i.text,o-i.from,t)+i.from,s=i.text.slice(Math.min(o,a)-i.from,Math.max(o,a)-i.from),c=l(s);if(null!=e&&c!=e)break;" "==s&&o==n.head||(e=c),o=a}return o})),Eoe=e=>Ioe(e,!1);function Aoe(e){let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.from),i=e.doc.lineAt(o.to);if(o.empty||o.to!=i.from||(i=e.doc.lineAt(o.to-1)),n>=r.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(o)}else t.push({from:r.from,to:i.to,ranges:[o]});n=i.number+1}return t}function Doe(e,t,n){if(e.readOnly)return!1;let o=[],r=[];for(let i of Aoe(e)){if(n?i.to==e.doc.length:0==i.from)continue;let t=e.doc.lineAt(n?i.to+1:i.from-1),l=t.length+1;if(n){o.push({from:i.to,to:t.to},{from:i.from,insert:t.text+e.lineBreak});for(let t of i.ranges)r.push(Q2.range(Math.min(e.doc.length,t.anchor+l),Math.min(e.doc.length,t.head+l)))}else{o.push({from:t.from,to:i.from},{from:i.to,insert:e.lineBreak+t.text});for(let e of i.ranges)r.push(Q2.range(e.anchor-l,e.head-l))}}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:Q2.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Roe(e,t,n){if(e.readOnly)return!1;let o=[];for(let r of Aoe(e))n?o.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):o.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const zoe=Boe(!1);function Boe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let o=t.changeByRange((n=>{let{from:o,to:r}=n,i=t.doc.lineAt(o),l=!e&&o==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,o=Yee(e).resolveInner(t),r=o.childBefore(t),i=o.childAfter(t);return r&&i&&r.to<=t&&i.from>=t&&(n=r.type.prop(B9.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,o);e&&(o=r=(r<=i.to?i:t.doc.lineAt(r)).to);let a=new ste(t,{simulateBreak:o,simulateDoubleBreak:!!l}),s=ate(a,o);for(null==s&&(s=U3(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));ri.from&&o{let r=[];for(let l=o.from;l<=o.to;){let i=e.doc.lineAt(l);i.number>n&&(o.empty||o.to>i.from)&&(t(i,r,o),n=i.number),l=i.to+1}let i=e.changes(r);return{changes:r,range:Q2.range(i.mapPos(o.anchor,1),i.mapPos(o.head,1))}}))}const Noe=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(joe(e,((t,n)=>{n.push({from:t.from,insert:e.facet(rte)})})),{userEvent:"input.indent"})),!0),_oe=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(joe(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let r=U3(o,e.tabSize),i=0,l=lte(e,Math.max(0,r-ite(e)));for(;iVne(e,(t=>toe(e.state,t,!Kne(e)))),shift:e=>uoe(e,(t=>toe(e.state,t,!Kne(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Vne(e,(t=>toe(e.state,t,Kne(e)))),shift:e=>uoe(e,(t=>toe(e.state,t,Kne(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Doe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Roe(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Doe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Roe(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,o=null;return n.ranges.length>1?o=Q2.create([n.main]):n.main.empty||(o=Q2.create([Q2.cursor(n.main.head)])),!!o&&(t(Yne(e,o)),!0)}},{key:"Mod-Enter",run:Boe(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Aoe(e).map((({from:t,to:n})=>Q2.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:Q2.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=Xne(e.selection,(t=>{var n;for(let o=Yee(e).resolveStack(t.from,1);o;o=o.next){let{node:e}=o;if((e.from=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return Q2.range(e.to,e.from)}return t}));return t(Yne(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:_oe},{key:"Mod-]",run:Noe},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),o=new ste(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=joe(e,((t,r,i)=>{let l=ate(o,t.from);if(null==l)return;/\S/.test(t.text)||(l=0);let a=/^\s*/.exec(t.text)[0],s=lte(e,l);(a!=s||i.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Aoe(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let o=!1,r=Xne(e.selection,(t=>{let r=ane(e,t.head,-1)||ane(e,t.head,1)||t.head>0&&ane(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),o=One(e.state,n.from);return o.line?vne(e):!!o.block&&yne(e)}},{key:"Alt-A",run:bne}].concat([{key:"ArrowLeft",run:Gne,shift:poe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Jne(e,!Kne(e)),shift:e=>foe(e,!Kne(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Vne(e,(t=>coe(e,t,!Kne(e)))),shift:e=>uoe(e,(t=>coe(e,t,!Kne(e)))),preventDefault:!0},{key:"ArrowRight",run:qne,shift:hoe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Jne(e,Kne(e)),shift:e=>foe(e,Kne(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Vne(e,(t=>coe(e,t,Kne(e)))),shift:e=>uoe(e,(t=>coe(e,t,Kne(e)))),preventDefault:!0},{key:"ArrowUp",run:ooe,shift:moe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:woe,shift:$oe},{mac:"Ctrl-ArrowUp",run:aoe,shift:yoe},{key:"ArrowDown",run:roe,shift:voe,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Soe,shift:xoe},{mac:"Ctrl-ArrowDown",run:soe,shift:Ooe},{key:"PageUp",run:aoe,shift:yoe},{key:"PageDown",run:soe,shift:Ooe},{key:"Home",run:e=>Vne(e,(t=>coe(e,t,!1))),shift:e=>uoe(e,(t=>coe(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:woe,shift:$oe},{key:"End",run:e=>Vne(e,(t=>coe(e,t,!0))),shift:e=>uoe(e,(t=>coe(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Soe,shift:xoe},{key:"Enter",run:zoe},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Toe,shift:Toe},{key:"Delete",run:Moe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Eoe},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Ioe(e,!0)},{mac:"Mod-Backspace",run:e=>Coe(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>Coe(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.headVne(e,(t=>Q2.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>uoe(e,(t=>Q2.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Vne(e,(t=>Q2.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>uoe(e,(t=>Q2.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Moe},{key:"Ctrl-h",run:Toe},{key:"Ctrl-k",run:e=>Coe(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:s2.of(["",""])},range:Q2.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n),r=n==o.from?n-1:w2(o.text,n-o.from,!1)+o.from,i=n==o.to?n+1:w2(o.text,n-o.from,!0)+o.from;return{changes:{from:r,to:i,insert:e.doc.slice(n,i).append(e.doc.slice(r,n))},range:Q2.cursor(i)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:soe}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),Loe={key:"Tab",run:Noe,shift:_oe};function Hoe(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o];"string"==typeof r?e.setAttribute(o,r):null!=r&&(e[o]=r)}t++}for(;te.normalize("NFKD"):e=>e;class Xoe{constructor(e,t,n=0,o=e.length,r,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,o),this.bufferStart=n,this.normalize=r?e=>r(Woe(e)):Woe,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return k2(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=P2(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=T2(e);let o=this.normalize(t);for(let r=0,i=n;;r++){let e=o.charCodeAt(r),l=this.match(e,i);if(r==o.length-1){if(l)return this.value=l,this;break}i==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,o=n+t[0].length;if(this.matchPos=qoe(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,o,t)))return this.value={from:n,to:o,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||o.to<=t){let o=new Koe(t,e.sliceString(t,n));return Uoe.set(e,o),o}if(o.from==t&&o.to==n)return o;let{text:r,from:i}=o;return i>t&&(r=e.sliceString(t,i)+r,i=t),o.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=qoe(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Koe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function qoe(e,t){if(t>=e.length)return t;let n,o=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Joe(e){let t=Hoe("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:o}=e,r=o.doc.lineAt(o.selection.main.head),[,i,l,a,s]=n,c=a?+a.slice(1):0,u=l?+l:r.number;if(l&&s){let e=u/100;i&&(e=e*("-"==i?-1:1)+r.number/o.doc.lines),u=Math.round(o.doc.lines*e)}else l&&i&&(u=u*("-"==i?-1:1)+r.number);let d=o.doc.line(Math.max(1,Math.min(o.doc.lines,u))),p=Q2.cursor(d.from+Math.max(0,Math.min(c,d.length)));e.dispatch({effects:[ere.of(!1),X6.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:Hoe("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:ere.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},Hoe("label",e.state.phrase("Go to line"),": ",t)," ",Hoe("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Zoe.prototype[Symbol.iterator]=Goe.prototype[Symbol.iterator]=function(){return this});const ere=y3.define(),tre=K2.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(ere)&&(e=n.value);return e},provide:e=>u9.from(e,(e=>e?Joe:null))}),nre=X6.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),ore={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},rre=F2.define({combine:e=>A3(e,ore,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function ire(e){let t=[ure,cre];return e&&t.push(rre.of(e)),t}const lre=c5.mark({class:"cm-selectionMatch"}),are=c5.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function sre(e,t,n,o){return!(0!=n&&e(t.sliceDoc(n-1,n))==P3.Word||o!=t.doc.length&&e(t.sliceDoc(o,o+1))==P3.Word)}const cre=D5.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(rre),{state:n}=e,o=n.selection;if(o.ranges.length>1)return c5.none;let r,i=o.main,l=null;if(i.empty){if(!t.highlightWordAroundCursor)return c5.none;let e=n.wordAt(i.head);if(!e)return c5.none;l=n.charCategorizer(i.head),r=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e200)return c5.none;if(t.wholeWords){if(r=n.sliceDoc(i.from,i.to),l=n.charCategorizer(i.head),!sre(l,n,i.from,i.to)||!function(e,t,n,o){return e(t.sliceDoc(n,n+1))==P3.Word&&e(t.sliceDoc(o-1,o))==P3.Word}(l,n,i.from,i.to))return c5.none}else if(r=n.sliceDoc(i.from,i.to).trim(),!r)return c5.none}let a=[];for(let s of e.visibleRanges){let e=new Xoe(n.doc,r,s.from,s.to);for(;!e.next().done;){let{from:o,to:r}=e.value;if((!l||sre(l,n,o,r))&&(i.empty&&o<=i.from&&r>=i.to?a.push(are.range(o,r)):(o>=i.to||r<=i.from)&&a.push(lre.range(o,r)),a.length>t.maxMatches))return c5.none}}return c5.set(a)}},{decorations:e=>e.decorations}),ure=X6.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),dre=F2.define({combine:e=>A3(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Qre(e),scrollToMatch:e=>X6.scrollIntoView(e)})});class pre{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Voe),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new yre(this):new gre(this)}getCursor(e,t=0,n){let o=e.doc?e:E3.create({doc:e});return null==n&&(n=o.doc.length),this.regexp?mre(this,o,t,n):fre(this,o,t,n)}}class hre{constructor(e){this.spec=e}}function fre(e,t,n,o){return new Xoe(t.doc,e.unquoted,n,o,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(r=t.doc,i=t.charCategorizer(t.selection.main.head),(e,t,n,o)=>((o>e||o+n.length=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=fre(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}function mre(e,t,n,o){return new Zoe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(r(vre(n.input,n.index))!=P3.Word||r(bre(n.input,n.index))!=P3.Word)&&(r(bre(n.input,n.index+n[0].length))!=P3.Word||r(vre(n.input,n.index+n[0].length))!=P3.Word)):void 0},n,o);var r}function vre(e,t){return e.slice(w2(e,t,!1),t)}function bre(e,t){return e.slice(t,w2(e,t))}class yre extends hre{nextMatch(e,t,n){let o=mre(this.spec,e,n,e.doc.length).next();return o.done&&(o=mre(this.spec,e,0,t).next()),o.done?null:o.value}prevMatchInRange(e,t,n){for(let o=1;;o++){let r=Math.max(t,n-1e4*o),i=mre(this.spec,e,r,n),l=null;for(;!i.next().done;)l=i.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=mre(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}const Ore=y3.define(),wre=y3.define(),Sre=K2.define({create:e=>new $re(Rre(e).create(),null),update(e,t){for(let n of t.effects)n.is(Ore)?e=new $re(n.value.create(),e.panel):n.is(wre)&&(e=new $re(e.query,n.value?Dre:null));return e},provide:e=>u9.from(e,(e=>e.panel))});class $re{constructor(e,t){this.query=e,this.panel=t}}const xre=c5.mark({class:"cm-searchMatch"}),Cre=c5.mark({class:"cm-searchMatch cm-searchMatch-selected"}),kre=D5.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Sre))}update(e){let t=e.state.field(Sre);(t!=e.startState.field(Sre)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return c5.none;let{view:n}=this,o=new N3;for(let r=0,i=n.visibleRanges,l=i.length;ri[r+1].from-500;)a=i[++r].to;e.highlight(n.state,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));o.add(e,t,r?Cre:xre)}))}return o.finish()}},{decorations:e=>e.decorations});function Pre(e){return t=>{let n=t.state.field(Sre,!1);return n&&n.query.spec.valid?e(t,n):jre(t)}}const Tre=Pre(((e,{query:t})=>{let{to:n}=e.state.selection.main,o=t.nextMatch(e.state,n,n);if(!o)return!1;let r=Q2.single(o.from,o.to),i=e.state.facet(dre);return e.dispatch({selection:r,effects:[Fre(e,o),i.scrollToMatch(r.main,e)],userEvent:"select.search"}),Bre(e),!0})),Mre=Pre(((e,{query:t})=>{let{state:n}=e,{from:o}=n.selection.main,r=t.prevMatch(n,o,o);if(!r)return!1;let i=Q2.single(r.from,r.to),l=e.state.facet(dre);return e.dispatch({selection:i,effects:[Fre(e,r),l.scrollToMatch(i.main,e)],userEvent:"select.search"}),Bre(e),!0})),Ire=Pre(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:Q2.create(n.map((e=>Q2.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),Ere=Pre(((e,{query:t})=>{let{state:n}=e,{from:o,to:r}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,o,o);if(!i)return!1;let l,a,s=[],c=[];if(i.from==o&&i.to==r&&(a=n.toText(t.getReplacement(i)),s.push({from:i.from,to:i.to,insert:a}),i=t.nextMatch(n,i.from,i.to),c.push(X6.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(o).number)+"."))),i){let t=0==s.length||s[0].from>=i.to?0:i.to-i.from-a.length;l=Q2.single(i.from-t,i.to-t),c.push(Fre(e,i)),c.push(n.facet(dre).scrollToMatch(l.main,e))}return e.dispatch({changes:s,selection:l,effects:c,userEvent:"input.replace"}),!0})),Are=Pre(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:o}=e;return{from:n,to:o,insert:t.getReplacement(e)}}));if(!n.length)return!1;let o=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:X6.announce.of(o),userEvent:"input.replace.all"}),!0}));function Dre(e){return e.state.facet(dre).createPanel(e)}function Rre(e,t){var n,o,r,i,l;let a=e.selection.main,s=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!s)return t;let c=e.facet(dre);return new pre({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==t?void 0:t.caseSensitive)&&void 0!==o?o:c.caseSensitive,literal:null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:c.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:c.regexp,wholeWord:null!==(l=null==t?void 0:t.wholeWord)&&void 0!==l?l:c.wholeWord})}function zre(e){let t=l9(e,Dre);return t&&t.dom.querySelector("[main-field]")}function Bre(e){let t=zre(e);t&&t==e.root.activeElement&&t.select()}const jre=e=>{let t=e.state.field(Sre,!1);if(t&&t.panel){let n=zre(e);if(n&&n!=e.root.activeElement){let o=Rre(e.state,t.query.spec);o.valid&&e.dispatch({effects:Ore.of(o)}),n.focus(),n.select()}}else e.dispatch({effects:[wre.of(!0),t?Ore.of(Rre(e.state,t.query.spec)):y3.appendConfig.of(Xre)]});return!0},Nre=e=>{let t=e.state.field(Sre,!1);if(!t||!t.panel)return!1;let n=l9(e,Dre);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:wre.of(!1)}),!0},_re=[{key:"Mod-f",run:jre,scope:"editor search-panel"},{key:"F3",run:Tre,shift:Mre,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Tre,shift:Mre,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Nre,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:o,to:r}=n.main,i=[],l=0;for(let a=new Xoe(e.doc,e.sliceDoc(o,r));!a.next().done;){if(i.length>1e3)return!1;a.value.from==o&&(l=i.length),i.push(Q2.range(a.value.from,a.value.to))}return t(e.update({selection:Q2.create(i,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=l9(e,Joe);if(!t){let n=[ere.of(!0)];null==e.state.field(tre,!1)&&n.push(y3.appendConfig.of([tre,nre])),e.dispatch({effects:n}),t=l9(e,Joe)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,o=Q2.create(n.ranges.map((t=>e.wordAt(t.head)||Q2.cursor(t.head))),n.mainIndex);return!o.eq(n)&&(t(e.update({selection:o})),!0)})({state:e,dispatch:t});let o=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=o)))return!1;let r=function(e,t){let{main:n,ranges:o}=e.selection,r=e.wordAt(n.head),i=r&&r.from==n.from&&r.to==n.to;for(let l=!1,a=new Xoe(e.doc,t,o[o.length-1].to);;){if(a.next(),!a.done){if(l&&o.some((e=>e.from==a.value.from)))continue;if(i){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(l)return null;a=new Xoe(e.doc,t,0,Math.max(0,o[o.length-1].from-1)),l=!0}}(e,o);return!!r&&(t(e.update({selection:e.selection.addRange(Q2.range(r.from,r.to),!1),effects:X6.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Qre{constructor(e){this.view=e;let t=this.query=e.state.field(Sre).query.spec;function n(e,t,n){return Hoe("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Hoe("input",{value:t.search,placeholder:Lre(e,"Find"),"aria-label":Lre(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Hoe("input",{value:t.replace,placeholder:Lre(e,"Replace"),"aria-label":Lre(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Hoe("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Hoe("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Hoe("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Hoe("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Tre(e)),[Lre(e,"next")]),n("prev",(()=>Mre(e)),[Lre(e,"previous")]),n("select",(()=>Ire(e)),[Lre(e,"all")]),Hoe("label",null,[this.caseField,Lre(e,"match case")]),Hoe("label",null,[this.reField,Lre(e,"regexp")]),Hoe("label",null,[this.wordField,Lre(e,"by word")]),...e.state.readOnly?[]:[Hoe("br"),this.replaceField,n("replace",(()=>Ere(e)),[Lre(e,"replace")]),n("replaceAll",(()=>Are(e)),[Lre(e,"replace all")])],Hoe("button",{name:"close",onclick:()=>Nre(e),"aria-label":Lre(e,"close"),type:"button"},["×"])])}commit(){let e=new pre({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Ore.of(e)}))}keydown(e){var t,n,o;t=this.view,n=e,o="search-panel",o7(t7(t.state),n,t,o)?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Mre:Tre)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Ere(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Ore)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(dre).top}}function Lre(e,t){return e.state.phrase(t)}const Hre=/[\s\.,:;?!]/;function Fre(e,{from:t,to:n}){let o=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,i=Math.max(o.from,t-30),l=Math.min(r,n+30),a=e.state.sliceDoc(i,l);if(i!=o.from)for(let s=0;s<30;s++)if(!Hre.test(a[s+1])&&Hre.test(a[s])){a=a.slice(s);break}if(l!=r)for(let s=a.length-1;s>a.length-30;s--)if(!Hre.test(a[s-1])&&Hre.test(a[s])){a=a.slice(0,s);break}return X6.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${o.number}.`)}const Wre=X6.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Xre=[Sre,n3.low(kre),Wre];class Yre{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=Yee(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),r=o.search(Gre(e,!1));return r<0?null:{from:n+r,to:this.pos,text:o.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Vre(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Zre(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,o]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let r=e.matchBefore(o);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}class Ure{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function Kre(e){return e.selection.main.from}function Gre(e,t){var n;let{source:o}=e,r=t&&"^"!=o[0],i="$"!=o[o.length-1];return r||i?new RegExp(`${r?"^":""}(?:${o})${i?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const qre=m3.define(),Jre=new WeakMap;function eie(e){if(!Array.isArray(e))return e;let t=Jre.get(e);return t||Jre.set(e,t=Zre(e)),t}const tie=y3.define(),nie=y3.define();class oie{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&o<=57||o>=97&&o<=122?2:o>=65&&o<=90?1:0:(s=P2(o))!=s.toLowerCase()?1:s!=s.toUpperCase()?2:0;(!v||1==b&&g||0==y&&0!=b)&&(t[u]==o||n[u]==o&&(d=!0)?i[u++]=v:i.length&&(m=!1)),y=b,v+=T2(o)}return u==a&&0==i[0]&&m?this.result((d?-200:0)-100,i,e):p==a&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[h,f]):u==a?this.result((d?-200:0)-100-700+(m?0:-1100),i,e):2!=t.length&&this.result((o[0]?-700:0)-200-1100,o,e)}result(e,t,n){let o=[],r=0;for(let i of t){let e=i+(this.astral?T2(k2(n,i)):1);r&&o[r-1]==i?o[r-1]=e:(o[r++]=i,o[r++]=e)}return this.ret(e-n.length,o)}}const rie=F2.define({combine:e=>A3(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:lie,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>iie(e(n),t(n)),optionClass:(e,t)=>n=>iie(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function iie(e,t){return e?t?e+" "+t:e:t}function lie(e,t,n,o,r,i){let l,a,s=e.textDirection==Y5.RTL,c=s,u=!1,d="top",p=t.left-r.left,h=r.right-t.right,f=o.right-o.left,g=o.bottom-o.top;if(c&&p=g||e>t.top?l=n.bottom-t.top:(d="bottom",l=t.bottom-n.top)}return{style:`${d}: ${l/((t.bottom-t.top)/i.offsetHeight)}px; max-width: ${a/((t.right-t.left)/i.offsetWidth)}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":c?"left":"right")}}function aie(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}class sie{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let o=e.state.field(t),{options:r,selected:i}=o.open,l=e.state.facet(rie);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,o){let r=document.createElement("span");r.className="cm-completionLabel";let i=e.displayLabel||e.label,l=0;for(let a=0;al&&r.appendChild(document.createTextNode(i.slice(l,e)));let n=r.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(i.slice(e,t))),n.className="cm-completionMatchedText",l=t}return le.position-t.position)).map((e=>e.render))}(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=aie(r.length,i,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:o}=e.state.field(t).open;for(let t,r=n.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(t=/-(\d+)$/.exec(r.id))&&+t[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(rie).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:nie.of(null)})})),this.showOptions(r,o.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),o=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=o){let{options:r,selected:i,disabled:l}=n.open;o.open&&o.open.options==r||(this.range=aie(r.length,i,e.state.facet(rie).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),l!=(null===(t=o.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=aie(t.options.length,t.selected,this.view.state.facet(rie).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let r="string"==typeof o?document.createTextNode(o):o(n);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>M5(this.view.state,e,"completion info"))):this.addInfoPane(r,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:o}=e;n.appendChild(t),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)"LI"==n.nodeName&&n.id?o==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):o--;return t&&function(e,t){let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.height/e.offsetHeight;o.topn.bottom&&(e.scrollTop+=(o.bottom-n.bottom)/r)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return o.top>Math.min(r.bottom,t.bottom)-10||o.bottomn.from||0==n.from)&&(r=e,"string"!=typeof s&&s.header?o.appendChild(s.header(s)):o.appendChild(document.createElement("completion-section")).textContent=e)}const c=o.appendChild(document.createElement("li"));c.id=t+"-"+i,c.setAttribute("role","option");let u=this.optionClass(l);u&&(c.className=u);for(let e of this.optionContent){let t=e(l,this.view.state,this.view,a);t&&c.appendChild(t)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.tonew sie(n,e,t)}function uie(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class die{constructor(e,t,n,o,r,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=r,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new die(this.options,fie(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,r){let i=function(e,t){let n=[],o=null,r=e=>{n.push(e);let{section:t}=e.completion;if(t){o||(o=[]);let e="string"==typeof t?t:t.name;o.some((t=>t.name==e))||o.push("string"==typeof t?{name:e}:t)}};for(let s of e)if(s.hasResult()){let e=s.result.getMatch;if(!1===s.result.filter)for(let t of s.result.options)r(new Ure(t,s.source,e?e(t):[],1e9-n.length));else{let n=new oie(t.sliceDoc(s.from,s.to));for(let t of s.result.options)if(n.match(t.label)){let o=t.displayLabel?e?e(t,n.matched):[]:n.matched;r(new Ure(t,s.source,o,n.score+(t.boost||0)))}}}if(o){let e=Object.create(null),t=0,r=(e,t)=>{var n,o;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(o=t.rank)&&void 0!==o?o:1e9)||(e.namet.score-e.score||a(e.completion,t.completion)))){let e=s.completion;!l||l.label!=e.label||l.detail!=e.detail||null!=l.type&&null!=e.type&&l.type!=e.type||l.apply!=e.apply||l.boost!=e.boost?i.push(s):uie(s.completion)>uie(l)&&(i[i.length-1]=s),l=s.completion}return i}(e,t);if(!i.length)return o&&e.some((e=>1==e.state))?new die(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(rie).selectOnOpen?0:-1;if(o&&o.selected!=l&&-1!=o.selected){let e=o.options[o.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:$ie,above:r.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new die(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class pie{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new pie(gie,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(rie),o=(n.override||t.languageDataAt("autocomplete",Kre(t)).map(eie)).map((t=>(this.active.find((e=>e.source==t))||new vie(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));o.length==this.active.length&&o.every(((e,t)=>e==this.active[t]))&&(o=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,o=0;;){for(;n1==e.state))&&(r=null),!r&&o.every((e=>1!=e.state))&&o.some((e=>e.hasResult()))&&(o=o.map((e=>e.hasResult()?new vie(e.source,0):e)));for(let i of e.effects)i.is(Oie)&&(r=r&&r.setSelected(i.value,this.id));return o==this.active&&r==this.open?this:new pie(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:hie}}const hie={"aria-autocomplete":"list"};function fie(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const gie=[];function mie(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class vie{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=mie(e),o=this;n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&0!=o.state&&(o=new vie(o.source,0));for(let r of e.effects)if(r.is(tie))o=new vie(o.source,1,r.value?Kre(e.state):-1);else if(r.is(nie))o=new vie(o.source,0);else if(r.is(yie))for(let e of r.value)e.source==o.source&&(o=e);return o}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new vie(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Kre(e.startState))?new vie(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new vie(this.source,this.state,e.mapPos(this.explicitPos))}}class bie extends vie{constructor(e,t,n,o,r){super(e,2,t),this.result=n,this.from=o,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var o;let r=e.changes.mapPos(this.from),i=e.changes.mapPos(this.to,1),l=Kre(e.state);if((this.explicitPos<0?l<=r:li||"delete"==t&&Kre(e.startState)==this.from)return new vie(this.source,"input"==t&&n.activateOnTyping?1:0);let a,s=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,o){if(!e)return!1;let r=t.sliceDoc(n,o);return"function"==typeof e?e(r,n,o,t):Gre(e,!0).test(r)}(this.result.validFor,e.state,r,i)?new bie(this.source,s,this.result,r,i):this.result.update&&(a=this.result.update(this.result,r,i,new Yre(e.state,l,s>=0)))?new bie(this.source,s,a,a.from,null!==(o=a.to)&&void 0!==o?o:Kre(e.state)):new vie(this.source,1,s)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new vie(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new bie(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const yie=y3.define({map:(e,t)=>e.map((e=>e.map(t)))}),Oie=y3.define(),wie=K2.define({create:()=>pie.start(),update:(e,t)=>e.update(t),provide:e=>[G7.from(e,(e=>e.tooltip)),X6.contentAttributes.from(e,(e=>e.attrs))]});function Sie(e,t){const n=t.completion.apply||t.completion.label;let o=e.state.field(wie).active.find((e=>e.source==t.source));return o instanceof bie&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,o){let{main:r}=e.selection,i=n-r.from,l=o-r.from;return Object.assign(Object.assign({},e.changeByRange((a=>a!=r&&n!=o&&e.sliceDoc(a.from+i,a.from+l)!=e.sliceDoc(n,o)?{range:a}:{changes:{from:a.from+i,to:o==r.from?a.to:a.from+l,insert:t},range:Q2.cursor(a.from+i+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,o.from,o.to)),{annotations:qre.of(t.completion)})):n(e,t.completion,o.from,o.to),!0)}const $ie=cie(wie,Sie);function xie(e,t="option"){return n=>{let o=n.state.field(wie,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp-1?o.open.selected+i*(e?1:-1):e?0:l-1;return a<0?a="page"==t?0:l-1:a>=l&&(a="page"==t?l-1:0),n.dispatch({effects:Oie.of(a)}),!0}}class Cie{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const kie=D5.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(wie).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(wie);if(!e.selectionSet&&!e.docChanged&&e.startState.field(wie)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!mie(e)));for(let o=0;o50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(Uue){M5(this.view.state,Uue)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let o of e.transactions)"input"==mie(o)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(wie);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Kre(t),o=new Yre(t,n,e.explicitPos==n),r=new Cie(e,o);this.running.push(r),Promise.resolve(e.source(o)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:nie.of(null)}),M5(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(rie).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(rie);for(let o=0;oe.source==r.active.source));if(i&&1==i.state)if(null==r.done){let e=new vie(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:yie.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(wie,!1);if(t&&t.tooltip&&this.view.state.facet(rie).closeOnBlur){let n=t.open&&o9(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:nie.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:tie.of(!1)})),20),this.composing=0}}}),Pie=X6.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Tie{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class Mie{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,I2.TrackDel),n=e.mapPos(this.to,1,I2.TrackDel);return null==t||null==n?null:new Mie(this.field,t,n)}}class Iie{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],r=e.doc.lineAt(t),i=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let n=i,r=/^\t*/.exec(l)[0].length;for(let t=0;tnew Mie(e.field,o[e.line]+e.from,o[e.line]+e.to)))}}static parse(e){let t,n=[],o=[],r=[];for(let i of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(i);){let e=t[1]?+t[1]:null,l=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}r.push(new Tie(a,o.length,t.index,t.index+l.length)),i=i.slice(0,t.index)+l+i.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(i);){i=i.slice(0,e.index)+e[1]+i.slice(e.index+e[0].length);for(let t of r)t.line==o.length&&t.from>e.index&&(t.from--,t.to--)}o.push(i)}return new Iie(o,r)}}let Eie=c5.widget({widget:new class extends a5{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Aie=c5.mark({class:"cm-snippetField"});class Die{constructor(e,t){this.ranges=e,this.active=t,this.deco=c5.set(e.map((e=>(e.from==e.to?Eie:Aie).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new Die(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Rie=y3.define({map:(e,t)=>e&&e.map(t)}),zie=y3.define(),Bie=K2.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Rie))return n.value;if(n.is(zie)&&e)return new Die(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>X6.decorations.from(e,(e=>e?e.deco:c5.none))});function jie(e,t){return Q2.create(e.filter((e=>e.field==t)).map((e=>Q2.range(e.from,e.to))))}function Nie(e){let t=Iie.parse(e);return(e,n,o,r)=>{let{text:i,ranges:l}=t.instantiate(e.state,o),a={changes:{from:o,to:r,insert:s2.of(i)},scrollIntoView:!0,annotations:n?qre.of(n):void 0};if(l.length&&(a.selection=jie(l,0)),l.length>1){let t=new Die(l,0),n=a.effects=[Rie.of(t)];void 0===e.state.field(Bie,!1)&&n.push(y3.appendConfig.of([Bie,Hie,Wie,Pie]))}e.dispatch(e.state.update(a))}}function _ie(e){return({state:t,dispatch:n})=>{let o=t.field(Bie,!1);if(!o||e<0&&0==o.active)return!1;let r=o.active+e,i=e>0&&!o.ranges.some((t=>t.field==r+e));return n(t.update({selection:jie(o.ranges,r),effects:Rie.of(i?null:new Die(o.ranges,r)),scrollIntoView:!0})),!0}}const Qie=[{key:"Tab",run:_ie(1),shift:_ie(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Bie,!1)&&(t(e.update({effects:Rie.of(null)})),!0)}],Lie=F2.define({combine:e=>e.length?e[0]:Qie}),Hie=n3.highest(J6.compute([Lie],(e=>e.facet(Lie))));function Fie(e,t){return Object.assign(Object.assign({},t),{apply:Nie(e)})}const Wie=X6.domEventHandlers({mousedown(e,t){let n,o=t.state.field(Bie,!1);if(!o||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=o.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==o.active||(t.dispatch({selection:jie(o.ranges,r.field),effects:Rie.of(o.ranges.some((e=>e.field>r.field))?new Die(o.ranges,r.field):null),scrollIntoView:!0}),0))}}),Xie={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Yie=y3.define({map(e,t){let n=t.mapPos(e,-1,I2.TrackAfter);return null==n?void 0:n}}),Vie=new class extends D3{};Vie.startSide=1,Vie.endSide=-1;const Zie=K2.define({create:()=>j3.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Yie)&&(e=e.update({add:[Vie.range(n.value,n.value+1)]}));return e}}),Uie="()[]{}<>";function Kie(e){for(let t=0;t<8;t+=2)if(Uie.charCodeAt(t)==e)return Uie.charAt(t+1);return P2(e<128?e:e+1)}function Gie(e,t){return e.languageDataAt("closeBrackets",t)[0]||Xie}const qie="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Jie=X6.inputHandler.of(((e,t,n,o)=>{if((qie?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(o.length>2||2==o.length&&1==T2(k2(o,0))||t!=r.from||n!=r.to)return!1;let i=function(e,t){let n=Gie(e,e.selection.main.head),o=n.brackets||Xie.brackets;for(let r of o){let i=Kie(k2(r,0));if(t==r)return i==r?ile(e,r,o.indexOf(r+r+r)>-1,n):ole(e,r,i,n.before||Xie.before);if(t==i&&tle(e,e.selection.main.from))return rle(e,0,i)}return null}(e.state,o);return!!i&&(e.dispatch(i),!0)})),ele=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Gie(e,e.selection.main.head).brackets||Xie.brackets,o=null,r=e.changeByRange((t=>{if(t.empty){let o=function(e,t){let n=e.sliceString(t-2,t);return T2(k2(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let r of n)if(r==o&&nle(e.doc,t.head)==Kie(k2(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:Q2.cursor(t.head-r.length)}}return{range:o=t}}));return o||t(e.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function tle(e,t){let n=!1;return e.field(Zie).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function nle(e,t){let n=e.sliceString(t,t+2);return n.slice(0,T2(k2(n,0)))}function ole(e,t,n,o){let r=null,i=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:Yie.of(i.to+t.length),range:Q2.range(i.anchor+t.length,i.head+t.length)};let l=nle(e.doc,i.head);return!l||/\s/.test(l)||o.indexOf(l)>-1?{changes:{insert:t+n,from:i.head},effects:Yie.of(i.head+t.length),range:Q2.cursor(i.head+t.length)}:{range:r=i}}));return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function rle(e,t,n){let o=null,r=e.changeByRange((t=>t.empty&&nle(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:Q2.cursor(t.head+n.length)}:o={range:t}));return o?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function ile(e,t,n,o){let r=o.stringPrefixes||Xie.stringPrefixes,i=null,l=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Yie.of(o.to+t.length),range:Q2.range(o.anchor+t.length,o.head+t.length)};let l,a=o.head,s=nle(e.doc,a);if(s==t){if(lle(e,a))return{changes:{insert:t+t,from:a},effects:Yie.of(a+t.length),range:Q2.cursor(a+t.length)};if(tle(e,a)){let o=n&&e.sliceDoc(a,a+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+o.length,insert:o},range:Q2.cursor(a+o.length)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(l=ale(e,a-2*t.length,r))>-1&&lle(e,l))return{changes:{insert:t+t+t+t,from:a},effects:Yie.of(a+t.length),range:Q2.cursor(a+t.length)};if(e.charCategorizer(a)(s)!=P3.Word&&ale(e,a,r)>-1&&!function(e,t,n,o){let r=Yee(e).resolveInner(t,-1),i=o.reduce(((e,t)=>Math.max(e,t.length)),0);for(let l=0;l<5;l++){let l=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+i)),a=l.indexOf(n);if(!a||a>-1&&o.indexOf(l.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let s=r.to==t&&r.parent;if(!s)break;r=s}return!1}(e,a,t,r))return{changes:{insert:t+t,from:a},effects:Yie.of(a+t.length),range:Q2.cursor(a+t.length)}}return{range:i=o}}));return i?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function lle(e,t){let n=Yee(e).resolveInner(t+1);return n.parent&&n.from==t}function ale(e,t,n){let o=e.charCategorizer(t);if(o(e.sliceDoc(t-1,t))!=P3.Word)return t;for(let r of n){let n=t-r.length;if(e.sliceDoc(n,t)==r&&o(e.sliceDoc(n-1,n))!=P3.Word)return n}return-1}function sle(e={}){return[wie,rie.of(e),kie,ule,Pie]}const cle=[{key:"Ctrl-Space",run:e=>!!e.state.field(wie,!1)&&(e.dispatch({effects:tie.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(wie,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:nie.of(null)}),0))}},{key:"ArrowDown",run:xie(!0)},{key:"ArrowUp",run:xie(!1)},{key:"PageDown",run:xie(!0,"page")},{key:"PageUp",run:xie(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(wie,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(rie).defaultKeymap?[cle]:[])));class dle{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class ple{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let o=e,r=n.facet(kle).markerFilter;r&&(o=r(o));let i=c5.set(o.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?c5.widget({widget:new Ele(e),diagnostic:e}).range(e.from):c5.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new ple(i,t,hle(i))}}function hle(e,t=null,n=0){let o=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return o=new dle(e,n,r.diagnostic),!1})),o}function fle(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(mle)))&&!e.changes.touchesRange(n.from,n.to))}function gle(e,t){return e.field(yle,!1)?t:t.concat(y3.appendConfig.of(Xle))}const mle=y3.define(),vle=y3.define(),ble=y3.define(),yle=K2.define({create:()=>new ple(c5.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),o=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);o=hle(n,e.selected.diagnostic,r)||hle(n,null,r)}e=new ple(n,e.panel,o)}for(let n of t.effects)n.is(mle)?e=ple.init(n.value,e.panel,t.state):n.is(vle)?e=new ple(e.diagnostics,n.value?Dle.open:null,e.selected):n.is(ble)&&(e=new ple(e.diagnostics,e.panel,n.value));return e},provide:e=>[u9.from(e,(e=>e.panel)),X6.decorations.from(e,(e=>e.diagnostics))]}),Ole=c5.mark({class:"cm-lintRange cm-lintRange-active"});function wle(e,t,n){let{diagnostics:o}=e.state.field(yle),r=[],i=2e8,l=0;o.between(t-(n<0?1:0),t+(n>0?1:0),((e,o,{spec:a})=>{t>=e&&t<=o&&(e==o||(t>e||n>0)&&(t({dom:Sle(e,r)})}:null}function Sle(e,t){return Hoe("ul",{class:"cm-tooltip-lint"},t.map((t=>Ile(e,t,!1))))}const $le=e=>{let t=e.state.field(yle,!1);return!(!t||!t.panel||(e.dispatch({effects:vle.of(!1)}),0))},xle=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(yle,!1);t&&t.panel||e.dispatch({effects:gle(e.state,[vle.of(!0)])});let n=l9(e,Dle.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(yle,!1);if(!t)return!1;let n=e.state.selection.main,o=t.diagnostics.iter(n.to+1);return!(!o.value&&(o=t.diagnostics.iter(0),!o.value||o.from==n.from&&o.to==n.to)||(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),0))}}],Cle=D5.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(kle);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(ePromise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:gle(e,[mle.of(t)])}}(this.view.state,n))}),(e=>{M5(this.view.state,e)}))}}update(e){let t=e.state.facet(kle);(e.docChanged||t!=e.startState.facet(kle)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),kle=F2.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},A3(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function Ple(e,t={}){return[kle.of({source:e,config:t}),Cle,Xle]}function Tle(e){let t=e.plugin(Cle);t&&t.force()}function Mle(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==o.toLowerCase()))){t.push(o);continue e}}t.push("")}return t}function Ile(e,t,n){var o;let r=n?Mle(t.actions):[];return Hoe("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Hoe("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(o=t.actions)||void 0===o?void 0:o.map(((n,o)=>{let i=!1,l=o=>{if(o.preventDefault(),i)return;i=!0;let r=hle(e.state.field(yle).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:a}=n,s=r[o]?a.indexOf(r[o]):-1,c=s<0?a:[a.slice(0,s),Hoe("u",a.slice(s,s+1)),a.slice(s+1)];return Hoe("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${a}${s<0?"":` (access key "${r[o]})"`}.`},c)})),t.source&&Hoe("div",{class:"cm-diagnosticSource"},t.source))}class Ele extends a5{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Hoe("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Ale{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Ile(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Dle{constructor(e){this.view=e,this.items=[],this.list=Hoe("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)$le(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],o=Mle(n.actions);for(let r=0;r{for(let t=0;t$le(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(yle).selected;if(!e)return-1;for(let t=0;t{let a,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),o=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=hle(this.view.state.field(yle).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:ble.of(t)})}static open(e){return new Dle(e)}}function Rle(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function zle(e){return Rle(``,'width="6" height="3"')}const Ble=X6.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:zle("#d11")},".cm-lintRange-warning":{backgroundImage:zle("orange")},".cm-lintRange-info":{backgroundImage:zle("#999")},".cm-lintRange-hint":{backgroundImage:zle("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function jle(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}class Nle extends d9{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>jle(e)function(e,t,n){function o(){let o=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(o.from)&&e.dispatch({effects:Hle.of({pos:o.from,above:!1,create:()=>({dom:Sle(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=o=>{let r=t.getBoundingClientRect();if(!(o.clientX>r.left-10&&o.clientXr.top-10&&o.clientY{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(o,r)}}(e,t,n)),t}}function _le(e,t){let n=Object.create(null);for(let r of t){let t=e.lineAt(r.from);(n[t.from]||(n[t.from]=[])).push(r)}let o=[];for(let r in n)o.push(new Nle(n[r]).range(+r));return j3.of(o,!0)}const Qle=g9({class:"cm-gutter-lint",markers:e=>e.state.field(Lle)}),Lle=K2.define({create:()=>j3.empty,update(e,t){e=e.map(t.changes);let n=t.state.facet(Yle).markerFilter;for(let o of t.effects)if(o.is(mle)){let r=o.value;n&&(r=n(r||[])),e=_le(t.state.doc,r.slice(0))}return e}}),Hle=y3.define(),Fle=K2.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=fle(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(((e,t)=>t.is(Hle)?t.value:e),e)),provide:e=>G7.from(e)}),Wle=X6.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Rle('')},".cm-lint-marker-warning":{content:Rle('')},".cm-lint-marker-error":{content:Rle('')}}),Xle=[yle,X6.decorations.compute([yle],(e=>{let{selected:t,panel:n}=e.field(yle);return t&&n&&t.from!=t.to?c5.set([Ole.range(t.from,t.to)]):c5.none})),n9(wle,{hideOn:fle}),Ble],Yle=F2.define({combine:e=>A3(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function Vle(e={}){return[Yle.of(e),Lle,Qle,Wle,Fle]}const Zle=(()=>[M9(),A9,M7(),Tne(),Qte(),p7(),[O7,w7],E3.allowMultipleSelections.of(!0),E3.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:o}=e.newSelection.main,r=n.lineAt(o);if(o>r.from+200)return e;let i=n.sliceString(r.from,o);if(!t.some((e=>e.test(i))))return e;let{state:l}=e,a=-1,s=[];for(let{head:c}of l.selection.ranges){let e=l.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=ate(l,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],o=lte(l,t);n!=o&&s.push({from:e.from,to:e.from+n.length,insert:o})}return s.length?[e,{changes:s,sequential:!0}]:e})),Yte(Ute,{fallback:!0}),one(),[Jie,Zie],sle(),_7(),H7(),R7,ire(),J6.of([...ele,...Qoe,..._re,...Wne,...Ete,...cle,...xle])])(),Ule=(()=>[M7(),Tne(),p7(),Yte(Ute,{fallback:!0}),J6.of([...Qoe,...Wne])])();function Kle(e,t={},n){const{props:o,domProps:r,on:i,...l}=t;return Hr(e,{...l,...o,...r,...i?(e=>e?Object.entries(e).reduce(((e,[t,n])=>({...e,[t=`on${t=t.charAt(0).toUpperCase()+t.slice(1)}`]:n})),{}):{})(i):{}},n)}var Gle=jn({name:"CodeMirror",model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,default:""},theme:{type:Object,default:()=>{}},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:()=>{}},lang:{type:Object,default:()=>{}},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,defalt:!1},gutterConfig:{type:Object,default:()=>{}},tag:{type:String,default:"div"}},emits:{"update:modelValue":e=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,t){const n=bt(),o=bt(e.modelValue),r=yt(new X6),i=Lr({get:()=>r.value.hasFocus,set:e=>{e&&r.value.focus()}}),l=Lr({get:()=>r.value.state.selection,set:e=>r.value.dispatch({selection:e})}),a=Lr({get:()=>r.value.state.selection.main.head,set:e=>r.value.dispatch({selection:{anchor:e}})}),s=Lr({get:()=>r.value.state.toJSON(),set:e=>r.value.setState(E3.fromJSON(e))}),c=bt(0),u=bt(0),d=Lr((()=>{const n=new r3,o=new r3;return[e.basic?Zle:void 0,e.minimal&&!e.basic?Ule:void 0,X6.updateListener.of((n=>{t.emit("focus",r.value.hasFocus),c.value=r.value.state.doc.length,!n.changes.empty&&n.docChanged&&(e.linter&&(e.forceLinting&&Tle(r.value),u.value=e.linter(r.value).length),t.emit("update",n))})),X6.theme(e.theme,{dark:e.dark}),e.wrap?X6.lineWrapping:void 0,e.tab?J6.of([Loe]):void 0,E3.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?o.of(E3.tabSize.of(e.tabSize)):void 0,e.phrases?E3.phrases.of(e.phrases):void 0,E3.readOnly.of(e.readonly),X6.editable.of(!e.disabled),e.lineSeparator?E3.lineSeparator.of(e.lineSeparator):void 0,e.lang?n.of(e.lang):void 0,e.linter?Ple(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?Vle(e.gutterConfig):void 0,e.placeholder?(i=e.placeholder,D5.fromClass(class{constructor(e){this.view=e,this.placeholder=i?c5.set([c5.widget({widget:new z7(i),side:1}).range(0)]):c5.none}get decorations(){return this.view.state.doc.length?c5.none:this.placeholder}},{decorations:e=>e.decorations})):void 0,...e.extensions].filter((e=>!!e));var i}));bn(d,(e=>{var t;null==(t=r.value)||t.dispatch({effects:y3.reconfigure.of(e)})}),{immediate:!0}),bn((()=>e.modelValue),(async t=>{r.value.composing||r.value.state.doc.toJSON().join(e.lineSeparator??"\n")===t||r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:t},selection:r.value.state.selection,scrollIntoView:!0})}),{immediate:!0}),Vn((async()=>{let e=o.value;n.value&&(n.value.childNodes[0]&&(o.value,e=n.value.childNodes[0].innerText.trim()),r.value=new X6({parent:n.value,state:E3.create({doc:e,extensions:d.value}),dispatch:e=>{r.value.update([e]),!e.changes.empty&&e.docChanged&&(t.emit("update:modelValue",e.state.doc.toString()),t.emit("change",e.state))}}),await Ft(),t.emit("ready",{view:r.value,state:r.value.state,container:n.value}))})),Gn((()=>{r.value.destroy(),t.emit("destroy")}));const p={editor:n,view:r,cursor:a,selection:l,focus:i,length:c,json:s,diagnosticCount:u,dom:r.value.contentDOM,lint:()=>{e.linter&&r.value&&(e.forceLinting&&Tle(r.value),u.value=function(e){let t=e.field(yle,!1);return t?t.diagnostics.size:0}(r.value.state))},forceReconfigure:()=>{var e,t;null==(e=r.value)||e.dispatch({effects:y3.reconfigure.of([])}),null==(t=r.value)||t.dispatch({effects:y3.appendConfig.of(d.value)})},getRange:(e,t)=>r.value.state.sliceDoc(e,t),getLine:e=>r.value.state.doc.line(e+1).text,lineCount:()=>r.value.state.doc.lines,getCursor:()=>r.value.state.selection.main.head,listSelections:()=>{let e;return null!==(e=r.value.state.selection.ranges)&&void 0!==e?e:[]},getSelection:()=>{let e;return null!==(e=r.value.state.sliceDoc(r.value.state.selection.main.from,r.value.state.selection.main.to))&&void 0!==e?e:""},getSelections:()=>{const e=r.value.state;return e?e.selection.ranges.map((t=>e.sliceDoc(t.from,t.to))):[]},somethingSelected:()=>r.value.state.selection.ranges.some((e=>!e.empty)),replaceRange:(e,t,n)=>r.value.dispatch({changes:{from:t,to:n,insert:e}}),replaceSelection:e=>r.value.dispatch(r.value.state.replaceSelection(e)),setCursor:e=>r.value.dispatch({selection:{anchor:e}}),setSelection:(e,t)=>r.value.dispatch({selection:{anchor:e,head:t}}),setSelections:(e,t)=>r.value.dispatch({selection:Q2.create(e,t)}),extendSelectionsBy:e=>r.value.dispatch({selection:Q2.create(l.value.ranges.map((t=>t.extend(e(t)))))})};return t.expose(p),p},render(){return Kle(this.$props.tag,{ref:"editor",class:"vue-codemirror"},this.$slots.default?Kle("aside",{style:"display: none;","aria-hidden":"true"},"function"==typeof(e=this.$slots.default)?e():e):void 0);var e}});const qle="#e06c75",Jle="#abb2bf",eae="#7d8799",tae="#d19a66",nae="#2c313a",oae="#282c34",rae="#353a42",iae="#528bff",lae=[X6.theme({"&":{color:Jle,backgroundColor:oae},".cm-content":{caretColor:iae},".cm-cursor, .cm-dropCursor":{borderLeftColor:iae},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Jle},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:oae,color:eae,border:"none"},".cm-activeLineGutter":{backgroundColor:nae},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:rae},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:rae,borderBottomColor:rae},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:nae,color:Jle}}},{dark:!0}),Yte(Hte.define([{tag:Nee.keyword,color:"#c678dd"},{tag:[Nee.name,Nee.deleted,Nee.character,Nee.propertyName,Nee.macroName],color:qle},{tag:[Nee.function(Nee.variableName),Nee.labelName],color:"#61afef"},{tag:[Nee.color,Nee.constant(Nee.name),Nee.standard(Nee.name)],color:tae},{tag:[Nee.definition(Nee.name),Nee.separator],color:Jle},{tag:[Nee.typeName,Nee.className,Nee.number,Nee.changed,Nee.annotation,Nee.modifier,Nee.self,Nee.namespace],color:"#e5c07b"},{tag:[Nee.operator,Nee.operatorKeyword,Nee.url,Nee.escape,Nee.regexp,Nee.link,Nee.special(Nee.string)],color:"#56b6c2"},{tag:[Nee.meta,Nee.comment],color:eae},{tag:Nee.strong,fontWeight:"bold"},{tag:Nee.emphasis,fontStyle:"italic"},{tag:Nee.strikethrough,textDecoration:"line-through"},{tag:Nee.link,color:eae,textDecoration:"underline"},{tag:Nee.heading,fontWeight:"bold",color:qle},{tag:[Nee.atom,Nee.bool,Nee.special(Nee.variableName)],color:tae},{tag:[Nee.processingInstruction,Nee.string,Nee.inserted],color:"#98c379"},{tag:Nee.invalid,color:"#ffffff"}]))];var aae={};class sae{constructor(e,t,n,o,r,i,l,a,s,c=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=o,this.pos=r,this.score=i,this.buffer=l,this.bufferBase=a,this.curContext=s,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let o=e.parser.context;return new sae(e,[],t,n,n,0,[],0,o?new cae(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,o=65535&e,{parser:r}=this.p,i=r.dynamicPrecedence(o);if(i&&(this.score+=i),0==n)return this.pushState(r.getGoto(this.state,o,!0),this.reducePos),o=2e3&&!(null===(t=this.p.parser.nodeSet.types[o])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=s):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(o,a)}storeNode(e,t,n,o=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[o-4]&&e.buffer[o-1]>-1){if(t==n)return;if(e.buffer[o-2]>=t)return void(e.buffer[o-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,o>4&&(o-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=o}else this.buffer.push(e,t,n,o)}shift(e,t,n,o){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:i}=this.p;(o>this.pos||t<=i.maxNode)&&(this.pos=o,i.stateFlag(r,1)||(this.reducePos=o)),this.pushState(r,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,o,4)}else this.pos=o,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,o,4)}apply(e,t,n,o){65536&e?this.reduce(e):this.shift(e,t,n,o)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(t,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),o=e.bufferBase+t;for(;e&&o==e.bufferBase;)e=e.parent;return new sae(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new uae(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let o,r=0;r1&t&&e==o))||n.push(t[e],o)}t=n}let n=[];for(let o=0;o>19,o=65535&t,r=this.stack.length-3*n;if(r<0||e.getGoto(this.stack[r],o,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(o,r)=>{if(!t.includes(o))return t.push(o),e.allActions(o,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-r;if(n>1){let o=65535&t,r=this.stack.length-3*n;if(r>=0&&e.getGoto(this.stack[r],o,!1)>=0)return n<<19|65536|o}}else{let e=n(t,r+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class cae{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class uae{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let o=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=o}}class dae{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new dae(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new dae(this.stack,this.pos,this.index)}}function pae(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let o=0,r=0;o=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),i+=r,n)break;i*=46}n?n[r++]=i:n=new t(i)}return n}class hae{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const fae=new hae;class gae{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=fae,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,o=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(o==this.ranges.length-1)return null;let e=this.ranges[++o];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,o=this.chunkOff+e;if(o>=0&&o=this.chunk2Pos&&to.to&&(this.chunk2=this.chunk2.slice(0,o.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=fae,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let o of this.ranges){if(o.from>=t)break;o.to>e&&(n+=this.input.read(Math.max(o.from,e),Math.min(o.to,t)))}return n}}class mae{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;yae(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}mae.prototype.contextual=mae.prototype.fallback=mae.prototype.extend=!1;class vae{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?pae(e):e}token(e,t){let n=e.pos,o=0;for(;;){let n=e.next<0,r=e.resolveOffset(1,1);if(yae(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||o++,null==r)break;e.reset(r,e.token)}o&&(e.reset(n,e.token),e.acceptToken(this.elseToken,o))}}vae.prototype.contextual=mae.prototype.fallback=mae.prototype.extend=!1;class bae{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function yae(e,t,n,o,r,i){let l=0,a=1<0){let n=e[d];if(s.allows(n)&&(-1==t.token.value||t.token.value==n||wae(n,t.token.value,r,i))){t.acceptToken(n);break}}let o=t.next,c=0,u=e[l+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c>1,i=n+r+(r<<1),a=e[i],s=e[i+1]||65536;if(o=s)){l=e[i+2],t.advance();continue e}c=r+1}}break}l=e[n+3*u-1]}}function Oae(e,t,n){for(let o,r=t;65535!=(o=e[r]);r++)if(o==n)return r-t;return-1}function wae(e,t,n,o){let r=Oae(n,o,t);return r<0||Oae(n,o,e)t)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:e.length}}class Cae{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?xae(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?xae(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=i,null;if(r instanceof X9){if(i==e){if(i=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+r.length}}}class kae{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new hae))}getActions(e){let t=0,n=null,{parser:o}=e.p,{tokenizers:r}=o,i=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let s=0;sc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!o.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new hae,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new hae,{pos:n,p:o}=e;return t.start=n,t.end=Math.min(n+1,o.stream.end),t.value=n==o.stream.end?o.parser.eofTerm:0,t}updateCachedToken(e,t,n){let o=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(o,e),n),e.value>-1){let{parser:t}=n.p;for(let o=0;o=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,t,n,o){for(let r=0;r4*e.bufferLength?new Cae(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,o=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;io)r.push(l);else{if(this.advanceStack(l,r,n))continue;{e||(e=[],t=[]),e.push(l);let n=this.tokens.getMainToken(l);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>o))&&this.recovering--}else if(r.length>1){e:for(let e=0;e500&&o.buffer.length>500){if(!((t.score-o.score||t.buffer.length-o.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(n--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let i=1;ithis.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let i=this.fragments.nodeAt(o);i;){let o=this.parser.nodeSet.types[i.type.id]==i.type?r.getGoto(e.state,i.type.id):-1;if(o>-1&&i.length&&(!t||(i.prop(B9.contextHash)||0)==n))return e.useNode(i,o),!0;if(!(i instanceof X9)||0==i.children.length||i.positions[0]>0)break;let l=i.children[0];if(!(l instanceof X9&&0==i.positions[0]))break;i=l}}let i=r.stateSlot(e.state,4);if(i>0)return e.reduce(i),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let a=0;ao?t.push(u):n.push(u)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Tae(e,t),!0}}runRecovery(e,t,n){let o=null,r=!1;for(let i=0;i ":"";if(l.deadEnd){if(r)continue;if(r=!0,l.restart(),this.advanceFully(l,n))continue}let u=l.split(),d=c;for(let e=0;u.forceReduce()&&e<10&&!this.advanceFully(u,n);e++)Sae&&(d=this.stackID(u)+" -> ");for(let e of l.recoverByInsert(a))this.advanceFully(e,n);this.stream.end>l.pos?(s==l.pos&&(s++,a=0),l.recoverByDelete(a,s),Tae(l,n)):(!o||o.scoree;class Eae extends dee{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[t][1])),o=[];for(let l=0;l=0)r(n,e,l[t++]);else{let o=l[t+-n];for(let i=-n;i>0;i--)r(l[t++],e,o);t++}}}this.nodeSet=new Q9(t.map(((t,r)=>_9.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:o[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=D9;let i=pae(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l"number"==typeof e?new mae(i,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let o=new Pae(this,e,t,n);for(let r of this.wrappers)o=r(o,e,t,n);return o}getGoto(e,t,n=!1){let o=this.goto;if(t>=o[0])return-1;for(let r=o[t+1];;){let t=o[r++],i=1&t,l=o[r++];if(i&&n)return l;for(let n=r+(t>>1);r0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),o=n?t(n):void 0;for(let r=this.stateSlot(e,1);null==o;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=Aae(this.data,r+2)}o=t(Aae(this.data,r+1))}return o}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Aae(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(Eae.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,o)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let i=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[o]=Dae(i),i}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let o=null;for(let r=0;re.external(n,o)<<1|t}return e.get}const Rae=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],zae=new class{constructor(e){this.start=e.start,this.shift=e.shift||Iae,this.reduce=e.reduce||Iae,this.reuse=e.reuse||Iae,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}({start:!1,shift:(e,t)=>3==t||4==t||311==t?e:312==t,strict:!1}),Bae=new bae(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(309)}),{contextual:!0,fallback:!0}),jae=new bae(((e,t)=>{let n,{next:o}=e;Rae.indexOf(o)>-1||(47!=o||47!=(n=e.peek(1))&&42!=n)&&(125==o||59==o||-1==o||t.context||e.acceptToken(308))}),{contextual:!0}),Nae=new bae(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0}),_ae=vee({"get set async static":Nee.modifier,"for while do if else switch try catch finally return throw break continue default case":Nee.controlKeyword,"in of await yield void typeof delete instanceof":Nee.operatorKeyword,"let var const using function class extends":Nee.definitionKeyword,"import export from":Nee.moduleKeyword,"with debugger as new":Nee.keyword,TemplateString:Nee.special(Nee.string),super:Nee.atom,BooleanLiteral:Nee.bool,this:Nee.self,null:Nee.null,Star:Nee.modifier,VariableName:Nee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Nee.function(Nee.variableName),VariableDefinition:Nee.definition(Nee.variableName),Label:Nee.labelName,PropertyName:Nee.propertyName,PrivatePropertyName:Nee.special(Nee.propertyName),"CallExpression/MemberExpression/PropertyName":Nee.function(Nee.propertyName),"FunctionDeclaration/VariableDefinition":Nee.function(Nee.definition(Nee.variableName)),"ClassDeclaration/VariableDefinition":Nee.definition(Nee.className),PropertyDefinition:Nee.definition(Nee.propertyName),PrivatePropertyDefinition:Nee.definition(Nee.special(Nee.propertyName)),UpdateOp:Nee.updateOperator,"LineComment Hashbang":Nee.lineComment,BlockComment:Nee.blockComment,Number:Nee.number,String:Nee.string,Escape:Nee.escape,ArithOp:Nee.arithmeticOperator,LogicOp:Nee.logicOperator,BitOp:Nee.bitwiseOperator,CompareOp:Nee.compareOperator,RegExp:Nee.regexp,Equals:Nee.definitionOperator,Arrow:Nee.function(Nee.punctuation),": Spread":Nee.punctuation,"( )":Nee.paren,"[ ]":Nee.squareBracket,"{ }":Nee.brace,"InterpolationStart InterpolationEnd":Nee.special(Nee.brace),".":Nee.derefOperator,", ;":Nee.separator,"@":Nee.meta,TypeName:Nee.typeName,TypeDefinition:Nee.definition(Nee.typeName),"type enum interface implements namespace module declare":Nee.definitionKeyword,"abstract global Privacy readonly override":Nee.modifier,"is keyof unique infer":Nee.operatorKeyword,JSXAttributeValue:Nee.attributeValue,JSXText:Nee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Nee.angleBracket,"JSXIdentifier JSXNameSpacedName":Nee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Nee.attributeName,"JSXBuiltin/JSXIdentifier":Nee.standard(Nee.tagName)}),Qae={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},Lae={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},Hae={__proto__:null,"<":139},Fae=Eae.deserialize({version:14,states:"$RQSO'#CcO>cQSO'#HZO>kQSO'#HaO>kQSO'#HcO`QUO'#HeO>kQSO'#HgO>kQSO'#HjO>pQSO'#HpO>uQ(C]O'#HvO%[QUO'#HxO?QQ(C]O'#HzO?]Q(C]O'#H|O9kQ(C[O'#IOO?hQ(CjO'#CgO@jQWO'#DgQOQSOOO%[QUO'#D}OAQQSO'#EQO:RQ,UO'#EhOA]QSO'#EhOAhQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Jm'#JmO%[QUO'#JmOOQO'#Jq'#JqOOQO'#Ia'#IaOBhQWO'#EaOOQ(CW'#E`'#E`OCdQ(C`O'#EaOCnQWO'#ETOOQO'#Jp'#JpODSQWO'#JqOEaQWO'#ETOCnQWO'#EaPEnO?MpO'#C`POOO)CDt)CDtOOOO'#IW'#IWOEyOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFXO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFgO07`O,59vOOQ(CY,59v,59vOFuQUO'#I[OGYQSO'#JkOI[QbO'#JkO+}QUO'#JkOIcQSO,59|OIyQSO'#EjOJWQSO'#JyOJcQSO'#JxOJcQSO'#JxOJkQSO,5;WOJpQSO'#JwOOQ(CY,5:X,5:XOJwQUO,5:XOLxQ(CjO,5:cOMiQSO,5:kONSQ(C[O'#JvONZQSO'#JuO9ZQSO'#JuONoQSO'#JuONwQSO,5;VON|QSO'#JuO!#UQbO'#JjOOQ(CY'#Cg'#CgO%[QUO'#EPO!#tQ`O,5:pOOQO'#Jr'#JrOOQO-ElOOQQ'#J_'#J_OOQQ,5>m,5>mOOQQ-EpQSO'#HPO9aQSO'#HRO!CgQSO'#HRO:RQ,UO'#HTO!ClQSO'#HTOOQQ,5=i,5=iO!CqQSO'#HUO!DSQSO'#CmO!DXQSO,58}O!DcQSO,58}O!FhQUO,58}OOQQ,58},58}O!FxQ(C[O,58}O%[QUO,58}O!ITQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IkQSO,5=uO`QUO,5={O`QUO,5=}O!IpQSO,5>PO`QUO,5>RO!IuQSO,5>UO!IzQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9kQ(C[O,5>dOOQQ,5>f,5>fO!NUQSO,5>fOOQQ,5>h,5>hO!NUQSO,5>hOOQQ,5>j,5>jO!NZQWO'#DYO%[QUO'#JmO!NxQWO'#JmO# gQWO'#DhO# xQWO'#DhO#$ZQUO'#DhO#$bQSO'#JlO#$jQSO,5:RO#$oQSO'#EnO#$}QSO'#JzO#%VQSO,5;XO#%[QWO'#DhO#%iQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%pQSO,5:lO>pQSO,5;SO!@}QWO,5;SO!AVQ,UO,5;SO:RQ,UO,5;SO#%xQSO,5@XO#%}Q!LQO,5:pOOQO-E<_-E<_O#'TQ(C`O,5:{OCnQWO,5:oO#'_QWO,5:oOCnQWO,5:{O!@rQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'lQ(C[O,5:{O#'wQ(C[O,5:{O!@}QWO,5:oOOQO,5;R,5;RO#(VQ(C[O,5:{POOO'#IU'#IUP#(kO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#)VQUO'#I[OOQO-EpQ(CjO1G0yO#>wQ(CjO1G0yO#@oQ(CjO1G0yO#CoQ$IUO'#CgO#EmQ$IUO1G1[O#EtQ$IUO'#JjO!,lQSO1G1bO#FUQ(CjO,5?SOOQ(CW-EkQSO1G3kO$1UQUO1G3mO$5YQUO'#HlOOQQ1G3p1G3pO$5gQSO'#HrO>pQSO'#HtOOQQ1G3v1G3vO$5oQUO1G3vO9kQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9kQ(C[O1G4QO9kQ(C[O1G4SO$9vQSO,5@XO!*fQUO,5;YO9ZQSO,5;YO>pQSO,5:SO!*fQUO,5:SO!@}QWO,5:SO$9{Q$IUO,5:SOOQO,5;Y,5;YO$:VQWO'#I]O$:mQSO,5@WOOQ(CY1G/m1G/mO$:uQWO'#IcO$;PQSO,5@fOOQ(CW1G0s1G0sO# xQWO,5:SOOQO'#I`'#I`O$;XQWO,5:nOOQ(CY,5:n,5:nO#%sQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>pQSO1G0nO!@}QWO1G0nO!AVQ,UO1G0nOOQ(CW1G5s1G5sO!@rQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$;`Q(C[O1G0gO$;kQ(C[O1G0gO!@}QWO1G0ZOCnQWO1G0ZO$;yQ(C[O1G0gOOQO1G0Z1G0ZO$<_Q(CjO1G0gPOOO-EvO$<{QSO1G5qO$=TQSO1G6OO$=]QbO1G6PO9ZQSO,5>|O$=gQ(CjO1G5|O%[QUO1G5|O$=wQ(C[O1G5|O$>YQSO1G5{O$>YQSO1G5{O9ZQSO1G5{O$>bQSO,5?PO9ZQSO,5?POOQO,5?P,5?PO$>vQSO,5?PO$'TQSO,5?POOQO-EWOOQQ,5>W,5>WO%[QUO'#HmO%6UQSO'#HoOOQQ,5>^,5>^O9ZQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%6ZQWO1G5sO%6oQ$IUO1G0tO%6yQSO1G0tOOQO1G/n1G/nO%7UQ$IUO1G/nO>pQSO1G/nO!*fQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EpQSO7+&YO!@}QWO7+&YOOQO7+%u7+%uO$<_Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%7`Q(C[O7+&RO!@rQ(C[O7+%uO!@}QWO7+%uO%7kQ(C[O7+&RO%7yQ(CjO7++hO%[QUO7++hO%8ZQSO7++gO%8ZQSO7++gOOQO1G4k1G4kO9ZQSO1G4kO%8cQSO1G4kOOQO7+%z7+%zO#%sQSO<xOOQO-E<[-E<[O%DoQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%DyQSO1G5uOOQ(CY<XOOQQ,5>Z,5>ZO&4ZQSO1G3xO9ZQSO7+&`O!*fQUO7+&`OOQO7+%Y7+%YO&4`Q$IUO1G6PO>pQSO7+%YOOQ(CY<pQSO<qQbO1G4eO&>{Q$IUO7+&ZO&APQ$IUO,5=QO&CWQ$IUO,5=SO&ChQ$IUO,5=QO&CxQ$IUO,5=SO&DYQ$IUO,59oO&F]Q$IUO,5pQSO7+)dO'%_QSO<{AN>{O%[QUOAN?XOOQO<a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#IpP#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:zae,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[_ae],skippedNodes:[0,3,4,270],repeatNodeCount:37,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'}pOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'}pOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'}p(Q!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'}p(Q!b's(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(O#S$e&j't(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'}p(Q!b't(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'|$(n$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ(Q!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'}p(Q!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS(Q!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'}pOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'}pOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'}p(Q!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j(Q!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(Q!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(Q!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(Q!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j(Q!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'}p(Q!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#Qae[e]||-1},{term:334,get:e=>Lae[e]||-1},{term:68,get:e=>Hae[e]||-1}],tokenPrec:14574}),Wae=[Fie("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Fie("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Fie("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Fie("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Fie("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Fie("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Fie("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Fie("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Fie("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Fie('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Fie('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Xae=Wae.concat([Fie("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Fie("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Fie("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Yae=new cee,Vae=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Zae(e){return(t,n)=>{let o=t.node.getChild("VariableDefinition");return o&&n(o,e),!0}}const Uae=["FunctionDeclaration"],Kae={FunctionDeclaration:Zae("function"),ClassDeclaration:Zae("class"),ClassExpression:()=>!0,EnumDeclaration:Zae("constant"),TypeAliasDeclaration:Zae("type"),NamespaceDeclaration:Zae("namespace"),VariableDefinition(e,t){e.matchContext(Uae)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Gae(e,t){let n=Yae.get(t);if(n)return n;let o=[],r=!0;function i(t,n){let r=e.sliceString(t.from,t.to);o.push({label:r,type:n})}return t.cursor(F9.IncludeAnonymous).iterate((t=>{if(r)r=!1;else if(t.name){let e=Kae[t.name];if(e&&e(t,i)||Vae.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Gae(e,t.node))o.push(n);return!1}})),Yae.set(t,o),o}const qae=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Jae=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function ese(e){let t=Yee(e.state).resolveInner(e.pos,-1);if(Jae.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&qae.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let o=[];for(let r=t;r;r=r.parent)Vae.has(r.name)&&(o=o.concat(Gae(e.state.doc,r)));return{options:o,from:n?t.from:e.pos,validFor:qae}}const tse=Xee.define({name:"javascript",parser:Fae.configure({props:[cte.add({IfStatement:vte({except:/^\s*({|else\b)/}),TryStatement:vte({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),o=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:o?1:2)*e.unit},Block:gte({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":vte({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),yte.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":function(e){let t=e.firstChild,n=e.lastChild;return t&&t.to({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),nse={test:e=>/^JSX/.test(e.name),facet:Lee({commentTokens:{block:{open:"{/*",close:"*/}"}}})},ose=tse.configure({dialect:"ts"},"typescript"),rse=tse.configure({dialect:"jsx",props:[Hee.add((e=>e.isTop?[nse]:void 0))]}),ise=tse.configure({dialect:"jsx ts",props:[Hee.add((e=>e.isTop?[nse]:void 0))]},"typescript");let lse=e=>({label:e,type:"keyword"});const ase="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(lse),sse=ase.concat(["declare","implements","private","protected","public"].map(lse));function cse(e={}){let t=e.jsx?e.typescript?ise:rse:e.typescript?ose:tse,n=e.typescript?Xae.concat(sse):Wae.concat(ase);return new nte(t,[tse.data.of({autocomplete:(o=Jae,r=Zre(n),e=>{for(let t=Yee(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(o.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return r(e)})}),tse.data.of({autocomplete:ese}),e.jsx?pse:[]]);var o,r}function use(e,t,n=e.length){for(let o=null==t?void 0:t.firstChild;o;o=o.nextSibling)if("JSXIdentifier"==o.name||"JSXBuiltin"==o.name||"JSXNamespacedName"==o.name||"JSXMemberExpression"==o.name)return e.sliceString(o.from,Math.min(o.to,n));return""}const dse="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),pse=X6.inputHandler.of(((e,t,n,o,r)=>{if((dse?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=o&&"/"!=o||!tse.isActiveAt(e.state,t,-1))return!1;let i=r(),{state:l}=i,a=l.changeByRange((e=>{var t;let n,{head:r}=e,i=Yee(l).resolveInner(r-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),l.doc.sliceString(r-1,r)!=o||"JSXAttributeValue"==i.name&&i.to>r);else{if(">"==o&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:r,insert:""}};if("/"==o&&"JSXStartCloseTag"==i.name){let e=i.parent,o=e.parent;if(o&&e.from==r-2&&((n=use(l.doc,o.firstChild,r))||"JSXFragmentTag"==(null===(t=o.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:Q2.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==o){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&!/^\/?>|^<\//.test(l.doc.sliceString(r,r+2))&&(n=use(l.doc,t,r)))return{range:e,changes:{from:r,insert:``}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([i,l.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),hse=R1(jn({__name:"BranchDrawer",props:{open:f1().def(!1),modelValue:m1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=bt(!1),i=bt({}),l=bt({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"520px",overflowY:"auto",overflowX:"hidden"}});bn((()=>o.open),(e=>{r.value=e}),{immediate:!0}),bn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const a=()=>{n("update:modelValue",i.value)},s=()=>{c(),n("save",i.value)},c=()=>{n("update:open",!1),r.value=!1};return(e,t)=>{const n=pn("a-typography-paragraph"),o=pn("a-radio"),u=pn("a-radio-group"),d=pn("a-form-item"),p=pn("a-form"),h=pn("a-button"),f=pn("a-drawer");return lr(),dr(f,{open:r.value,"onUpdate:open":t[3]||(t[3]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:c},{title:ln((()=>[br(n,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:a},{editableEnterIcon:ln((()=>[Or(V(null))])),_:1},8,["content"])])),footer:ln((()=>[br(h,{type:"primary",onClick:s},{default:ln((()=>[Or("保存")])),_:1}),br(h,{style:{"margin-left":"12px"},onClick:c},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(p,{layout:"vertical",model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(d,{name:"expressionType",label:"表达式类型"},{default:ln((()=>[br(u,{value:i.value.expressionType,"onUpdate:value":t[1]||(t[1]=e=>i.value.expressionType=e)},{default:ln((()=>[br(o,{value:1},{default:ln((()=>[Or("SpEl")])),_:1}),br(o,{value:2},{default:ln((()=>[Or("Aviator")])),_:1}),br(o,{value:3},{default:ln((()=>[Or("QL")])),_:1})])),_:1},8,["value"])])),_:1}),br(d,{name:"nodeExpression",label:"条件表达式"},{default:ln((()=>[br(St(Gle),{modelValue:i.value.nodeExpression,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value.nodeExpression=e),theme:l.value,basic:"",lang:St(cse)(),extensions:[St(lae)]},null,8,["modelValue","theme","lang","extensions"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),[["__scopeId","data-v-81f091c8"]]),fse={class:"branch-wrap"},gse={class:"branch-box-wrap"},mse={class:"branch-box"},vse={class:"condition-node"},bse={class:"condition-node-box"},yse=["onClick"],Ose=["onClick"],wse={class:"title"},Sse={class:"node-title"},$se={class:"priority-title"},xse={class:"content"},Cse={key:0,style:{"white-space":"pre"}},kse={key:1,class:"placeholder"},Pse=["onClick"],Tse={key:1,class:"top-left-cover-line"},Mse={key:2,class:"bottom-left-cover-line"},Ise={key:3,class:"top-right-cover-line"},Ese={key:4,class:"bottom-right-cover-line"},Ase=R1(jn({__name:"BranchNode",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0});const i=()=>{const e=r.value.conditionNodes.length+1;r.value.conditionNodes.push({nodeName:"条件"+e,priorityLevel:e,expressionType:1,nodeExpression:void 0})},l=(e,t)=>{e.childNode?l(e.childNode,t):e.childNode=t},a=(e,t=1)=>{var o;r.value.conditionNodes[e]=r.value.conditionNodes.splice(e+t,1,r.value.conditionNodes[e])[0],null==(o=r.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",r.value)},s=(e,t)=>{const{expressionType:n,nodeExpression:o}=e.conditionNodes[t];return o?`表达式类型: ${j1[n]}\n节点表达式: ${o.length>10?o.substring(0,10)+"...":o}`:t==e.conditionNodes.length-1&&"其他条件进入此流程"},c=bt(0),u=bt(!1),d=bt({}),p=e=>{r.value.conditionNodes[c.value]=e,n("update:modelValue",r.value)};return(t,h)=>{const f=pn("a-button");return lr(),ur("div",fse,[vr("div",gse,[vr("div",mse,[br(f,{class:"add-branch",primary:"",onClick:i},{default:ln((()=>[Or("添加条件")])),_:1}),(lr(!0),ur(er,null,no(r.value.conditionNodes,((i,p)=>(lr(),ur("div",{class:"col-box",key:p},[vr("div",vse,[vr("div",bse,[vr("div",{class:W(["auto-judge",e.disabled?`node-error node-error-${St(Q1)[i.taskBatchStatus].name}`:"auto-judge-def auto-judge-hover"]),onClick:e=>{return t=p,void(o.disabled||(c.value=t,d.value=JSON.parse(JSON.stringify(r.value.conditionNodes[t])),u.value=!0));var t}},[0!=p?(lr(),ur("div",{key:0,class:"sort-left",onClick:_i((e=>a(p,-1)),["stop"])},[br(St(LD))],8,Ose)):wr("",!0),vr("div",wse,[vr("span",Sse,V(i.nodeName),1),vr("span",$se,"优先级"+V(i.priorityLevel),1),e.disabled?wr("",!0):(lr(),dr(St(qb),{key:0,class:"close",onClick:_i((e=>{return t=p,null==(o=r.value.conditionNodes)||o.splice(t,1),void(1===r.value.conditionNodes.length&&(r.value.childNode&&(r.value.conditionNodes[0].childNode?l(r.value.conditionNodes[0].childNode,r.value.childNode):r.value.conditionNodes[0].childNode=r.value.childNode),Ft((()=>{n("update:modelValue",r.value.conditionNodes[0].childNode)}))));var t,o}),["stop"])},null,8,["onClick"]))]),vr("div",xse,[s(r.value,p)?(lr(),ur("span",Cse,V(s(r.value,p)),1)):(lr(),ur("span",kse," 请设置条件 "))]),p!=r.value.conditionNodes.length-1?(lr(),ur("div",{key:1,class:"sort-right",onClick:_i((e=>a(p)),["stop"])},[br(St(sk))],8,Pse)):wr("",!0),e.disabled?(lr(),dr(St(k1),{key:2,class:"error-tip",color:St(Q1)[i.taskBatchStatus].color,size:"24px",onClick:_i((()=>{}),["stop"]),modelValue:St(Q1)[i.taskBatchStatus].icon,"onUpdate:modelValue":e=>St(Q1)[i.taskBatchStatus].icon=e},null,8,["color","modelValue","onUpdate:modelValue"])):wr("",!0)],10,yse),br(z1,{disabled:e.disabled,modelValue:i.childNode,"onUpdate:modelValue":e=>i.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),i.childNode?oo(t.$slots,"default",{key:0,node:i},void 0,!0):wr("",!0),0==p?(lr(),ur("div",Tse)):wr("",!0),0==p?(lr(),ur("div",Mse)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",Ise)):wr("",!0),p==r.value.conditionNodes.length-1?(lr(),ur("div",Ese)):wr("",!0)])))),128))]),br(z1,{disabled:e.disabled,modelValue:r.value.childNode,"onUpdate:modelValue":h[0]||(h[0]=e=>r.value.childNode=e)},null,8,["disabled","modelValue"])]),br(hse,{open:u.value,"onUpdate:open":h[1]||(h[1]=e=>u.value=e),modelValue:d.value,"onUpdate:modelValue":h[2]||(h[2]=e=>d.value=e),onSave:p},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-d5c01266"]]),Dse=jn({__name:"NodeWrap",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});return bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>{const o=pn("node-wrap",!0);return lr(),ur(er,null,[1==r.value.nodeType?(lr(),dr(a2,{key:0,modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},{default:ln((t=>[t.node?(lr(),dr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):wr("",!0)])),_:1},8,["modelValue","disabled"])):wr("",!0),2==r.value.nodeType?(lr(),dr(Ase,{key:1,modelValue:r.value,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value=e),disabled:e.disabled},{default:ln((t=>[t.node?(lr(),dr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):wr("",!0)])),_:1},8,["modelValue","disabled"])):wr("",!0),r.value.childNode?(lr(),dr(o,{key:2,modelValue:r.value.childNode,"onUpdate:modelValue":n[2]||(n[2]=e=>r.value.childNode=e),disabled:e.disabled},null,8,["modelValue","disabled"])):wr("",!0)],64)}}}),Rse="*",zse="/",Bse="-",jse=",",Nse="?",_se="L",Qse="W",Lse="#",Hse="",Fse="LW",Wse=(new Date).getFullYear();function Xse(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)}const{hasOwnProperty:Yse}=Object.prototype;function Vse(e,t){return Object.keys(t).forEach((n=>{!function(e,t,n){const o=t[n];(function(e){return null!=e})(o)&&(Yse.call(e,n)&&function(e){return null!==e&&"object"==typeof e}(o)?e[n]=Vse(Object(e[n]),t[n]):e[n]=o)}(e,t,n)})),e}const Zse={common:{from:"从",fromThe:"从第",start:"开始",every:"每",between:"在",and:"到",end:"之间的",specified:"固定的",symbolTip:"通配符支持",valTip:"值为",nearest:"最近的",current:"本",nth:"第",index:"个",placeholder:"请选择",placeholderMulti:"请选择(支持多选)",help:"帮助",wordNumError:"格式不正确,必须有6或7位",reverse:"反向解析",reset:"重置",tagError:"表达式不正确",numError:"含有非法数字",use:"使用",inputPlaceholder:"Cron表达式"},custom:{unspecified:"不固定",workDay:"工作日",lastTh:"倒数第",lastOne:"最后一个",latestWorkday:"最后一个工作日",empty:"不配置"},second:{title:"秒",val:"0 1 2...59"},minute:{title:"分",val:"0 1 2...59"},hour:{title:"时",val:"0 1 2...23"},dayOfMonth:{timeUnit:"日",title:"日",val:"1 2...31"},month:{title:"月",val:"1 2...12,或12个月的缩写(JAN ... DEC)"},dayOfWeek:{timeUnit:"日",title:"周",val:"1 2...7或星期的缩写(SUN ... SAT)",SUN:"星期天",MON:"星期一",TUE:"星期二",WED:"星期三",THU:"星期四",FRI:"星期五",SAT:"星期六"},year:{title:"年",val:Wse+" ... 2099"},period:{startError:"开始格式不符",cycleError:"循环格式不符"},range:{lowerError:"下限格式不符",upperError:"上限格式不符",lowerBiggerThanUpperError:"下限不能比上限大"},weekDay:{weekDayNumError:"周数格式不符",nthError:"天数格式不符"},app:{title:"基于Vue&Element-ui实现的Cron表达式生成器",next10FireTimes:"最近10次执行时刻"},daysOfWeekOptions:[{label:"星期天",value:1},{label:"星期一",value:2},{label:"星期二",value:3},{label:"星期三",value:4},{label:"星期四",value:5},{label:"星期五",value:6},{label:"星期六",value:7}]},Use=bt("zh-CN"),Kse=rt({"zh-CN":Zse}),Gse={messages:()=>Kse[Use.value],use(e,t){Use.value=e,this.add({[e]:t})},add(e={}){Vse(Kse,e)}},qse=Gse.messages(),Jse={class:"cron-body-row"},ece={class:"symbol"},tce=R1(jn({components:{Radio:BM},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Rse},tag:{type:String,default:Rse},onChange:{type:Function}},setup:e=>({Message:qse,change:function(){e.onChange&&e.onChange({tag:Rse,type:Rse})},EVERY:Rse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",Jse,[br(l,{checked:e.type===e.EVERY,onClick:e.change},{default:ln((()=>[vr("span",ece,V(e.EVERY),1),Or(V(e.Message.common.every)+V(e.timeUnit),1)])),_:1},8,["checked","onClick"])])}]]),nce=Gse.messages(),oce={class:"cron-body-row"},rce={class:"symbol"},ice=R1(jn({components:{Radio:BM,InputNumber:yL},props:{startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:zse},tag:{type:String,default:zse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(0);n.value`${n.value}${zse}${o.value}`));function i(t){if(e.type!==zse)return;const r=t.split(zse);2===r.length?(r[0]===Rse&&(r[0]=0),!Xse(r[0])||parseInt(r[0])e.startConfig.max?PB.error(`${nce.period.startError}:${r[0]}`):!Xse(r[1])||parseInt(r[1])e.cycleConfig.max?PB.error(`${nce.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1]))):PB.error(`${nce.common.tagError}:${t}`)}return Vn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:nce,type_:t,start:n,cycle:o,tag_:r,PERIOD:zse,change:function(){e.onChange&&e.onChange({type:zse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",oce,[br(a,{checked:e.type===e.PERIOD,onChange:e.change},{default:ln((()=>[vr("span",rce,V(e.tag_),1),Or(" "+V(e.Message.common.fromThe)+" ",1),br(l,{size:"small",value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),min:e.startConfig.min,step:e.startConfig.step,max:e.startConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit)+V(e.Message.common.start)+V(e.Message.common.every)+" ",1),br(l,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),lce=Gse.messages(),ace={class:"cron-body-row"},sce={class:"symbol"},cce=R1(jn({components:{Radio:BM,InputNumber:yL},props:{upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Bse},tag:{type:String,default:Bse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(0);o.value`${o.value}${Bse}${n.value}`));function l(t){if(e.type!==Bse)return;const r=t.split(Bse);2===r.length&&(r[0]===Bse&&(r[0]=0),!Xse(r[0])||parseInt(r[0])e.lowerConfig.max||!Xse(r[1])||parseInt(r[1])e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Vn((()=>{l(e.tag)})),bn((()=>e.tag),(e=>{l(e)}),{deep:!0}),bn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:lce,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:Bse,change:function(){e.onChange&&e.onChange({type:Bse,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",ace,[br(a,{checked:e.type===e.RANGE,onChange:e.change},{default:ln((()=>[vr("span",sce,V(e.tag_),1),Or(" "+V(e.Message.common.between)+" ",1),br(l,{size:"small",value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),min:e.lowerConfig.min,step:e.lowerConfig.step,max:e.upper_,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit)+V(e.Message.common.and)+" ",1),br(l,{size:"small",value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),min:e.lower,step:e.upperConfig.step,max:e.upperConfig.max,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.Message.common.end)+V(e.Message.common.every)+V(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),uce=Gse.messages(),dce=jn({components:{Radio:BM,ASelect:qS,Tooltip:Tx},props:{nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:jse},tag:{type:String,default:jse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=Lr((()=>{let e="";if(o.value&&o.value.length){o.value.sort();for(let t=0;t{Xse(t)&&parseInt(t)>=parseInt(e.nums[0].value)&&parseInt(t)<=parseInt(e.nums[e.nums.length-1].value)&&o.value.push(parseInt(t))}))}}return Vn((()=>{i()})),bn((()=>e.tag),(()=>i()),{deep:!0}),bn((()=>e.type),(()=>i()),{deep:!0}),{Message:uce,type_:t,tag_:n,open:r,FIXED:jse,change:function(){e.onChange&&e.onChange({type:jse,tag:n.value||jse})},numArray:o,changeTag:i}}}),pce={class:"cron-body-row"},hce=vr("span",{class:"symbol"},",",-1),fce=R1(dce,[["render",function(e,t,n,o,r,i){const l=pn("Tooltip"),a=pn("Radio"),s=pn("ASelect");return lr(),ur("div",pce,[br(a,{checked:e.type===e.FIXED,onChange:e.change},{default:ln((()=>[br(l,{title:e.tag_},{default:ln((()=>[hce])),_:1},8,["title"]),Or(" "+V(e.Message.common.specified),1)])),_:1},8,["checked","onChange"]),br(s,{size:"small",mode:"tags",placeholder:e.Message.common.placeholder,style:{width:"300px"},options:e.nums,disabled:e.type!==e.FIXED,value:e.numArray,"onUpdate:value":t[0]||(t[0]=t=>e.numArray=t),onChange:e.change},null,8,["placeholder","options","disabled","value","onChange"])])}]]),gce={watch:{tag(e){this.resolveTag(e)}},mounted(){this.resolveTag(this.tag)},methods:{resolveTag(e){null==e&&(e=Hse);let t=null;(e=this.resolveCustom(e))===Hse?t=Hse:e===Nse?t=Nse:e===Rse?t=Rse:e===Fse&&(t=Fse),null==t&&(t=e.startsWith("L-")||e.endsWith(_se)?_se:e.endsWith(Qse)&&e.length>1?Qse:e.indexOf(Lse)>0?Lse:e.indexOf(zse)>0?zse:e.indexOf(Bse)>0?Bse:jse),this.type_=t,this.tag_=e},resolveCustom:e=>e}},mce=Gse.messages(),vce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce},mixins:[gce],props:{tag:{type:String,default:Rse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(Rse),a=bt(e.tag);return{Message:mce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.second.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),bce=Gse.messages(),yce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce},mixins:[gce],props:{tag:{type:String,default:Rse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(Rse),a=bt(e.tag);return{Message:bce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.minute.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Oce=Gse.messages(),wce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce},mixins:[gce],props:{tag:{type:String,default:Rse},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:23},n={min:1,step:1,max:23},o={min:0,step:1,max:23},r={min:0,step:1,max:23},i=[];for(let s=0;s<24;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(Rse),a=bt(e.tag);return{Message:Oce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.hour.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Sce=Gse.messages(),$ce={class:"cron-body-row"},xce={class:"symbol"},Cce=R1(jn({components:{Radio:BM},props:{type:{type:String,default:Nse},tag:{type:String,default:Nse},onChange:{type:Function}},setup:e=>({Message:Sce,change:function(){e.onChange&&e.onChange({tag:Nse,type:Nse})},UNFIXED:Nse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",$ce,[br(l,{checked:e.type===e.UNFIXED,onClick:e.change},{default:ln((()=>[vr("span",xce,V(e.UNFIXED),1),Or(V(e.Message.custom.unspecified),1)])),_:1},8,["checked","onClick"])])}]]),kce=Gse.messages(),Pce={class:"cron-body-row"},Tce={class:"symbol"},Mce=R1(jn({components:{Radio:BM,InputNumber:yL},props:{lastConfig:{type:Object,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:_se},tag:{type:String,default:_se},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=Lr((()=>1===n.value?_se:"L-"+(n.value-1)));function r(t){if(e.type!==_se)return;if(t===_se)return void(n.value=1);const o=t.substring(2);Xse(o)&&parseInt(o)>=e.lastConfig.min&&parseInt(o)<=e.lastConfig.max?n.value=parseInt(o)+1:PB.error(kce.common.numError+":"+o)}return Vn((()=>{r(e.tag)})),bn((()=>e.tag),(e=>{r(e)}),{deep:!0}),bn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:kce,type_:t,tag_:o,LAST:_se,lastNum:n,change:function(){e.onChange&&e.onChange({type:_se,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=pn("InputNumber"),a=pn("Radio");return lr(),ur("div",Pce,[br(a,{checked:e.type===e.LAST,onChange:e.change},{default:ln((()=>[vr("span",Tce,V(e.tag_),1),Or(" "+V(e.Message.common.current)+V(e.targetTimeUnit)+V(e.Message.custom.lastTh)+" ",1),br(l,{size:"small",value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),min:e.lastConfig.min,step:e.lastConfig.step,max:e.lastConfig.max,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Ice=Gse.messages(),Ece={class:"cron-body-row"},Ace={class:"symbol"},Dce=R1(jn({components:{Radio:BM,InputNumber:yL},props:{targetTimeUnit:{type:String,default:null},startDateConfig:{type:Object,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Qse},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${Qse}`));function i(t){if(e.type!==Qse)return;const o=t.substring(0,t.length-1);!Xse(o)||parseInt(o)e.startDateConfig.max?PB.error(`${Ice.common.numError}:${o}`):n.value=parseInt(o)}return Vn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Ice,type_:t,startDate:n,weekDayNum:o,tag_:r,WORK_DAY:Qse,change:function(){e.onChange&&e.onChange({type:Qse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("InputNumber");return lr(),ur("div",Ece,[br(l,{checked:e.type===e.WORK_DAY,onChange:e.change},{default:ln((()=>[vr("span",Ace,V(e.tag_),1),Or(" "+V(e.Message.common.every)+V(e.targetTimeUnit),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",value:e.startDate,"onUpdate:value":t[0]||(t[0]=t=>e.startDate=t),min:e.startDateConfig.min,step:e.startDateConfig.step,max:e.startDateConfig.max,disabled:e.type!==e.WORK_DAY,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit)+V(e.Message.common.nearest)+V(e.Message.custom.workDay),1)])}]]),Rce=Gse.messages(),zce={class:"cron-body-row"},Bce={class:"symbol"},jce=R1(jn({components:{Radio:BM},props:{targetTimeUnit:{type:String,default:null},type:{type:String,default:Fse},tag:{type:String,default:Fse},onChange:{type:Function}},setup:e=>({Message:Rce,change:function(){e.onChange&&e.onChange({tag:Fse,type:Fse})},LAST_WORK_DAY:Fse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",zce,[br(l,{checked:e.type===e.LAST_WORK_DAY,onClick:e.change},{default:ln((()=>[vr("span",Bce,V(e.LAST_WORK_DAY),1),Or(" "+V(e.Message.common.current)+V(e.targetTimeUnit)+V(e.Message.custom.latestWorkday),1)])),_:1},8,["checked","onClick"])])}]]),Nce=Gse.messages(),_ce=31,Qce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce,UnFixed:Cce,Last:Mce,WorkDay:Dce,LastWorkDay:jce},mixins:[gce],props:{tag:{type:String,default:Rse},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:_ce},n={min:1,step:1,max:_ce},o={min:1,step:1,max:_ce},r={min:1,step:1,max:_ce},i={min:1,step:1,max:_ce},l=[];for(let c=1;c<32;c++){const e={label:c.toString(),value:c};l.push(e)}const a=bt(Rse),s=bt(e.tag);return{Message:Nce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,lastConfig:i,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("UnFixed"),d=pn("Last"),p=pn("WorkDay"),h=pn("LastWorkDay");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),br(d,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"last-config":e.lastConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","last-config","onChange"]),br(p,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","start-date-config","onChange"]),br(h,{type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["type","tag","target-time-unit","start-date-config","onChange"])],64)}]]),Lce=Gse.messages(),Hce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce},mixins:[gce],props:{tag:{type:String,default:Rse},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:12},n={min:1,step:1,max:12},o={min:1,step:1,max:12},r={min:1,step:1,max:12},i=[];for(let s=1;s<13;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(Rse),a=bt(e.tag);return{Message:Lce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.month.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Fce=Gse.messages(),Wce={class:"cron-body-row"},Xce={class:"symbol"},Yce=R1(jn({components:{Radio:BM},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Hse},tag:{type:String,default:Hse},onChange:{type:Function}},setup:e=>({Message:Fce,change:function(){e.onChange&&e.onChange({tag:Hse,type:Hse})},EMPTY:Hse})}),[["render",function(e,t,n,o,r,i){const l=pn("Radio");return lr(),ur("div",Wce,[br(l,{checked:e.type===e.EMPTY,onClick:e.change},{default:ln((()=>[vr("span",Xce,V(e.Message.custom.empty),1)])),_:1},8,["checked","onClick"])])}]]),Vce=Gse.messages(),Zce=Wse,Uce=2099,Kce=R1(jn({components:{Every:tce,Period:ice,Range:cce,Fixed:fce,Empty:Yce},mixins:[gce],props:{tag:{type:String,default:Hse},onChange:{type:Function}},setup(e){const t={min:Zce,step:1,max:Uce},n={min:1,step:1,max:Uce},o={min:Zce,step:1,max:Uce},r={min:Zce,step:1,max:Uce},i=[];for(let s=Zce;s<2100;s++){const e={label:s.toString(),value:s};i.push(e)}const l=bt(Hse),a=bt(e.tag);return{Message:Vce,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("Empty");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.year.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,tag:e.tag_,onChange:e.change},null,8,["type","tag","onChange"])],64)}]]),Gce=Gse.messages(),qce={class:"cron-body-row"},Jce={class:"symbol"},eue=R1(jn({components:{Radio:BM,InputNumber:yL,ASelect:qS},props:{nums:{type:Array,default:null},startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:zse},tag:{type:String,default:zse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${zse}${o.value}`));function i(t){if(e.type!==zse)return;const r=t.split(zse);2===r.length?!Xse(r[0])||parseInt(r[0])e.startConfig.max?PB.error(`${Gce.period.startError}:${r[0]}`):!Xse(r[1])||parseInt(r[1])e.cycleConfig.max?PB.error(`${Gce.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):PB.error(`${Gce.common.tagError}:${t}`)}return Vn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Gce,type_:t,start:n,cycle:o,tag_:r,PERIOD:zse,change:function(){e.onChange&&e.onChange({type:zse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("ASelect"),s=pn("InputNumber");return lr(),ur("div",qce,[br(l,{checked:e.type===e.PERIOD,onChange:e.change},{default:ln((()=>[vr("span",Jce,V(e.tag_),1),Or(" "+V(e.Message.common.from),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",style:{width:"100px"},value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),Or(" "+V(e.Message.common.start)+V(e.Message.common.every)+" ",1),br(s,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),Or(" "+V(e.timeUnit),1)])}]]),tue=Gse.messages(),nue=qS.Option,oue={class:"cron-body-row"},rue={class:"symbol"},iue=R1(jn({components:{Radio:BM,ASelect:qS,AOption:nue},props:{nums:{type:Array,default:null},upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Bse},tag:{type:String,default:Bse},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(0);o.value`${o.value}${Bse}${n.value}`));function l(t){if(e.type!==Bse)return;const r=t.split(Bse);2===r.length&&(r[0]===Bse&&(r[0]=0),!Xse(r[0])||parseInt(r[0])e.lowerConfig.max||!Xse(r[1])||parseInt(r[1])e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Vn((()=>{l(e.tag)})),bn((()=>e.tag),(e=>{l(e)}),{deep:!0}),bn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:tue,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:Bse,change:function(){e.onChange&&e.onChange({type:Bse,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("AOption"),s=pn("ASelect");return lr(),ur("div",oue,[br(l,{checked:e.type===e.RANGE,onChange:e.change},{default:ln((()=>[vr("span",rue,V(e.tag_),1),Or(" "+V(e.Message.common.between),1)])),_:1},8,["checked","onChange"]),br(s,{size:"small",style:{width:"100px"},value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},{default:ln((()=>[(lr(!0),ur(er,null,no(e.nums,(t=>(lr(),dr(a,{key:t.value,value:t.value,disabled:Number(t.value)>e.upper_},{default:ln((()=>[Or(V(t.label),1)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value","placeholder","disabled","onChange"]),Or(" "+V(e.timeUnit)+V(e.Message.common.and)+" ",1),br(s,{size:"small",style:{width:"100px"},value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),Or(" "+V(e.Message.common.end)+V(e.Message.common.every)+V(e.timeUnit),1)])}]]),lue=Gse.messages(),aue={class:"cron-body-row"},sue={class:"symbol"},cue=R1(jn({components:{Radio:BM,ASelect:qS},props:{nums:{type:Array,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:_se},tag:{type:String,default:_se},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=Lr((()=>(n.value>=1&&n.value<7?n.value:"")+_se));function r(t){if(e.type!==_se)return;if(t===_se)return void(n.value=7);const o=t.substring(0,t.length-1);Xse(o)&&parseInt(o)>=parseInt(e.nums[0].value)&&parseInt(o)<=parseInt(e.nums[e.nums.length-1].value)?n.value=parseInt(o):PB.error(lue.common.numError+":"+o)}return Vn((()=>{r(e.tag)})),bn((()=>e.tag),(e=>{r(e)}),{deep:!0}),bn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:lue,type_:t,tag_:o,LAST:_se,lastNum:n,change:function(){e.onChange&&e.onChange({type:_se,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("ASelect");return lr(),ur("div",aue,[br(l,{checked:e.type===e.LAST,onChange:e.change},{default:ln((()=>[vr("span",sue,V(e.tag_),1),Or(" "+V(e.Message.common.current)+V(e.targetTimeUnit)+V(e.Message.custom.lastTh),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",style:{width:"100px"},value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),uue=Gse.messages(),due={class:"cron-body-row"},pue={class:"symbol"},hue=R1(jn({components:{Radio:BM,InputNumber:yL,ASelect:qS},props:{targetTimeUnit:{type:String,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Lse},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=bt(e.type),n=bt(1),o=bt(1),r=Lr((()=>`${n.value}${Lse}${o.value}`));function i(t){if(e.type!==Lse)return;const r=t.split(Lse);2===r.length?!Xse(r[0])||parseInt(r[0])parseInt(e.nums[e.nums.length-1].value)?PB.error(`${uue.period.startError}:${r[0]}`):!Xse(r[1])||parseInt(r[1])<1||parseInt(r[1])>5?PB.error(`${uue.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):PB.error(`${uue.common.tagError}:${t}`)}return Vn((()=>{i(e.tag)})),bn((()=>e.tag),(e=>{i(e)}),{deep:!0}),bn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:uue,type_:t,nth:n,weekDayNum:o,tag_:r,WEEK_DAY:Lse,change:function(){e.onChange&&e.onChange({type:Lse,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=pn("Radio"),a=pn("InputNumber"),s=pn("ASelect");return lr(),ur("div",due,[br(l,{checked:e.type===e.WEEK_DAY,onChange:e.change},{default:ln((()=>[vr("span",pue,V(e.tag_),1),Or(" "+V(e.Message.common.current)+V(e.targetTimeUnit)+V(e.Message.common.nth),1)])),_:1},8,["checked","onChange"]),br(a,{size:"small",value:e.nth,"onUpdate:value":t[0]||(t[0]=t=>e.nth=t),min:1,step:1,max:5,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","disabled","onChange"]),Or(" "+V(e.Message.common.index)+" ",1),br(s,{size:"small",style:{width:"100px"},value:e.weekDayNum,"onUpdate:value":t[1]||(t[1]=t=>e.weekDayNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),fue=Gse.messages(),gue=R1(jn({components:{Every:tce,Period:eue,Range:iue,Fixed:fce,UnFixed:Cce,Last:cue,WeekDay:hue},mixins:[gce],props:{tag:{type:String,default:Nse},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:7},n={min:1,step:1,max:7},o={min:1,step:1,max:7},r={min:1,step:1,max:7},i={min:1,step:1,max:7},l=fue.daysOfWeekOptions,a=bt(Rse),s=bt(e.tag);return{Message:fue,startConfig:t,cycleConfig:o,lowerConfig:r,upperConfig:i,startDateConfig:n,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=pn("Every"),a=pn("Period"),s=pn("Range"),c=pn("Fixed"),u=pn("UnFixed"),d=pn("Last"),p=pn("WeekDay");return lr(),ur(er,null,[br(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),br(a,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","start-config","cycle-config","onChange"]),br(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","lower-config","upper-config","onChange"]),br(c,{"time-unit":e.Message.dayOfWeek.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),br(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),br(d,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,"last-config":e.startDateConfig,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","last-config","onChange"]),br(p,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","onChange"])],64)}]]),mue=Gse.messages(),vue=jn({name:"VueCron",components:{AInput:r_,Popover:Dx,Card:IE,Seconds:vce,Minutes:yce,Hours:wce,Days:Qce,Months:Hce,Years:Kce,WeekDays:gue,CalendarOutlined:Oj},props:{value:{type:String,default:"* * * * * ? *"}},setup(e,{emit:t}){const n=bt(""),o=bt([]),r=[{key:"seconds",tab:mue.second.title},{key:"minutes",tab:mue.minute.title},{key:"hours",tab:mue.hour.title},{key:"days",tab:mue.dayOfMonth.title},{key:"months",tab:mue.month.title},{key:"weekdays",tab:mue.dayOfWeek.title},{key:"years",tab:mue.year.title}],i=rt({second:Rse,minute:Rse,hour:Rse,dayOfMonth:Rse,month:Rse,dayOfWeek:Nse,year:Hse}),l=bt("seconds");function a(e){const o=e.trim().split(" ");if(!e||e.trim().length<11||6!==o.length&&7!==o.length){const e="* * * * * ?";return n.value=e,s(e),PB.error(mue.common.tagError),t("update:value",e),void t("change",e)}s(e),i.second=o[0],i.minute=o[1],i.hour=o[2],i.dayOfMonth=o[3],i.month=o[4],i.dayOfWeek=o[5],i.year=7===o.length?o[6]:""}function s(e){H0(`/job/cron?cron=${e}`).then((e=>{if(o.value=e,0===o.value.length){const e="* * * * * ?";n.value=e,s(e),t("update:value",e),t("change",e)}}))}return bn((()=>e.value),(e=>{a(e),n.value=e}),{immediate:!0}),{cronStr:n,list:o,tabList:r,activeTabKey:l,tag:i,changeTime:a,timeChange:function(e,n){const o={...i};o[e]=n,"dayOfWeek"===e&&"*"!==n&&"?"!==n?o.dayOfMonth="?":"dayOfMonth"===e&&"*"!==n&&"?"!==n&&(o.dayOfWeek="?");let r=[];r.push(o.second),r.push(o.minute),r.push(o.hour),r.push(o.dayOfMonth),r.push(o.month),r.push(o.dayOfWeek),r.push(o.year),s(r.join(" ").trim()),t("update:value",r.join(" ").trim()),t("change",r.join(" ").trim())}}}}),bue={key:0},yue={key:1},Oue={key:2},wue={key:3},Sue={key:4},$ue={key:5},xue={key:6},Cue={style:{display:"flex","align-items":"center","justify-content":"space-between"}},kue=vr("span",{style:{width:"150px","font-weight":"600"}},"CRON 表达式: ",-1),Pue=vr("div",{style:{margin:"20px 0","border-left":"#1677ff 5px solid","font-size":"medium","font-weight":"bold"}},"    近5次的运行时间: ",-1),Tue=R1(vue,[["render",function(e,t,n,o,r,i){const l=pn("AInput"),a=pn("CalendarOutlined"),s=pn("Seconds"),c=pn("Minutes"),u=pn("Hours"),d=pn("Days"),p=pn("Months"),h=pn("WeekDays"),f=pn("Years"),g=pn("a-tab-pane"),m=pn("a-tabs"),v=pn("a-divider"),b=pn("a-input"),y=pn("a-button"),O=pn("Card"),w=pn("Popover");return lr(),dr(w,{placement:"bottom",trigger:"click"},{content:ln((()=>[br(O,{size:"small"},{default:ln((()=>[br(m,{activeKey:e.activeTabKey,"onUpdate:activeKey":t[7]||(t[7]=t=>e.activeTabKey=t),type:"card"},{default:ln((()=>[(lr(!0),ur(er,null,no(e.tabList,(n=>(lr(),dr(g,{key:n.key},{tab:ln((()=>[vr("span",null,[br(a),Or(" "+V(n.tab),1)])])),default:ln((()=>["seconds"===e.activeTabKey?(lr(),ur("div",bue,[br(s,{tag:e.tag.second,onChange:t[0]||(t[0]=t=>e.timeChange("second",t.tag))},null,8,["tag"])])):"minutes"===e.activeTabKey?(lr(),ur("div",yue,[br(c,{tag:e.tag.minute,onChange:t[1]||(t[1]=t=>e.timeChange("minute",t.tag))},null,8,["tag"])])):"hours"===e.activeTabKey?(lr(),ur("div",Oue,[br(u,{tag:e.tag.hour,onChange:t[2]||(t[2]=t=>e.timeChange("hour",t.tag))},null,8,["tag"])])):"days"===e.activeTabKey?(lr(),ur("div",wue,[br(d,{tag:e.tag.dayOfMonth,onChange:t[3]||(t[3]=t=>e.timeChange("dayOfMonth",t.tag))},null,8,["tag"])])):"months"===e.activeTabKey?(lr(),ur("div",Sue,[br(p,{tag:e.tag.month,onChange:t[4]||(t[4]=t=>e.timeChange("month",t.tag))},null,8,["tag"])])):"weekdays"===e.activeTabKey?(lr(),ur("div",$ue,[br(h,{tag:e.tag.dayOfWeek,onChange:t[5]||(t[5]=t=>e.timeChange("dayOfWeek",t.tag))},null,8,["tag"])])):"years"===e.activeTabKey?(lr(),ur("div",xue,[br(f,{tag:e.tag.year,onChange:t[6]||(t[6]=t=>e.timeChange("year",t.tag))},null,8,["tag"])])):wr("",!0)])),_:2},1024)))),128))])),_:1},8,["activeKey"]),br(v),vr("div",Cue,[kue,br(b,{value:e.cronStr,"onUpdate:value":t[8]||(t[8]=t=>e.cronStr=t)},null,8,["value"]),br(y,{type:"primary",style:{"margin-left":"16px"},onClick:t[9]||(t[9]=t=>e.changeTime(e.cronStr))},{default:ln((()=>[Or("保存")])),_:1})]),br(v),Pue,(lr(!0),ur(er,null,no(e.list,((e,t)=>(lr(),ur("div",{key:e,style:{"margin-top":"10px"}},"第"+V(t+1)+"次: "+V(e),1)))),128))])),_:1})])),default:ln((()=>[br(l,{readonly:"",value:e.value},null,8,["value"])])),_:1})}]]),Mue=jn({__name:"StartDrawer",props:{open:f1().def(!1),modelValue:m1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e;let r="";const i=bt(!1),l=bt({}),a=bt([]);bn((()=>o.open),(e=>{i.value=e}),{immediate:!0}),bn((()=>o.modelValue),(e=>{l.value=e,r=e.workflowName}),{immediate:!0,deep:!0});const s=L0();bn((()=>l.value.groupName),(e=>{s.setGroupName(e)}));const c=()=>{u(),n("save",l.value)},u=()=>{n("update:open",!1),i.value=!1};Vn((()=>{Ft((()=>{d()}))}));const d=()=>{H0("/group/all/group-name/list").then((e=>{a.value=e}))},p=e=>{1===e?l.value.triggerInterval="* * * * * ?":2===e&&(l.value.triggerInterval=void 0)};return(e,t)=>{const n=pn("a-input"),o=pn("a-form-item"),s=pn("a-select-option"),d=pn("a-select"),h=pn("a-col"),f=pn("a-input-number"),g=pn("a-form-item-rest"),m=pn("a-row"),v=pn("a-radio"),b=pn("a-radio-group"),y=pn("a-textarea"),O=pn("a-form"),w=pn("a-button"),S=pn("a-drawer");return lr(),dr(S,{open:i.value,"onUpdate:open":t[8]||(t[8]=e=>i.value=e),title:St(r),"destroy-on-close":"",width:500,onClose:u},{footer:ln((()=>[br(w,{type:"primary",onClick:c},{default:ln((()=>[Or("保存")])),_:1}),br(w,{style:{"margin-left":"12px"},onClick:u},{default:ln((()=>[Or("取消")])),_:1})])),default:ln((()=>[br(O,{layout:"vertical",model:l.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:ln((()=>[br(o,{name:"groupName",label:"工作流名称"},{default:ln((()=>[br(n,{value:l.value.workflowName,"onUpdate:value":t[0]||(t[0]=e=>l.value.workflowName=e),placeholder:"请输入工作流名称"},null,8,["value"])])),_:1}),br(o,{name:"groupName",label:"组名称"},{default:ln((()=>[br(d,{ref:"select",value:l.value.groupName,"onUpdate:value":t[1]||(t[1]=e=>l.value.groupName=e),placeholder:"请选择组"},{default:ln((()=>[(lr(!0),ur(er,null,no(a.value,(e=>(lr(),dr(s,{key:e,value:e},{default:ln((()=>[Or(V(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),br(m,{gutter:24},{default:ln((()=>[br(h,{span:1===l.value.triggerType?8:12},{default:ln((()=>[br(o,{name:"triggerType",label:"触发类型"},{default:ln((()=>[br(d,{ref:"select",value:l.value.triggerType,"onUpdate:value":t[2]||(t[2]=e=>l.value.triggerType=e),placeholder:"请选择触发类型",onChange:p},{default:ln((()=>[br(s,{value:1},{default:ln((()=>[Or("CRON表达式")])),_:1}),br(s,{value:2},{default:ln((()=>[Or("固定时间")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1},8,["span"]),br(h,{span:1===l.value.triggerType?16:12},{default:ln((()=>[br(o,{name:"triggerInterval",label:"触发间隔"},{default:ln((()=>[br(g,null,{default:ln((()=>[1===l.value.triggerType?(lr(),dr(St(Tue),{key:0,value:l.value.triggerInterval,"onUpdate:value":t[3]||(t[3]=e=>l.value.triggerInterval=e)},null,8,["value"])):(lr(),dr(f,{key:1,addonAfter:"秒",value:l.value.triggerInterval,"onUpdate:value":t[4]||(t[4]=e=>l.value.triggerInterval=e),placeholder:"请输入触发间隔"},null,8,["value"]))])),_:1})])),_:1})])),_:1},8,["span"])])),_:1}),br(m,{gutter:24},{default:ln((()=>[br(h,{span:12},{default:ln((()=>[br(o,{name:"executorTimeout",label:"执行超时时间"},{default:ln((()=>[br(f,{addonAfter:"秒",value:l.value.executorTimeout,"onUpdate:value":t[5]||(t[5]=e=>l.value.executorTimeout=e),placeholder:"请输入超时时间"},null,8,["value"])])),_:1})])),_:1}),br(h,{span:12},{default:ln((()=>[br(o,{name:"workflowStatus",label:"工作流状态"},{default:ln((()=>[br(b,{value:l.value.workflowStatus,"onUpdate:value":t[6]||(t[6]=e=>l.value.workflowStatus=e)},{default:ln((()=>[br(v,{value:1},{default:ln((()=>[Or("开启")])),_:1}),br(v,{value:0},{default:ln((()=>[Or("关闭")])),_:1})])),_:1},8,["value"])])),_:1})])),_:1})])),_:1}),br(o,{name:"description",label:"描述"},{default:ln((()=>[br(y,{value:l.value.description,"onUpdate:value":t[7]||(t[7]=e=>l.value.description=e),"auto-size":{minRows:5},placeholder:"请输入描述"},null,8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open","title"])}}}),Iue={class:"node-wrap"},Eue={class:"title",style:{background:"#ff943e"}},Aue={class:"text"},Due={key:0,class:"content"},Rue={key:1,class:"content"},zue=[(e=>(on("data-v-f5d6a5c7"),e=e(),rn(),e))((()=>vr("span",{class:"placeholder"}," 请配置工作流 ",-1)))],Bue=R1(jn({__name:"StartNode",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)}));const i=bt(!1),l=bt({}),a=e=>{r.value=e},s=()=>{o.disabled||(l.value=r.value,i.value=!0)};return(t,n)=>(lr(),ur("div",Iue,[vr("div",{class:W([e.disabled?"start-node-disabled":"node-wrap-box-hover","node-wrap-box start-node"]),onClick:s},[vr("div",Eue,[vr("span",Aue,V(r.value.workflowName?r.value.workflowName:"请选择组"),1)]),r.value.groupName?(lr(),ur("div",Due,[vr("div",null,"组名称: "+V(r.value.groupName),1),vr("div",null,"触发类型: "+V(r.value.triggerType),1),vr("div",null,"触发间隔: "+V(r.value.triggerInterval)+"s",1),vr("div",null,"执行超时时间: "+V(r.value.executorTimeout)+"s",1)])):(lr(),ur("div",Rue,zue))],2),br(z1,{disabled:e.disabled,modelValue:r.value.nodeConfig,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value.nodeConfig=e)},null,8,["disabled","modelValue"]),br(Mue,{open:i.value,"onUpdate:open":n[1]||(n[1]=e=>i.value=e),modelValue:l.value,"onUpdate:modelValue":n[2]||(n[2]=e=>l.value=e),onSave:a},null,8,["open","modelValue"])]))}}),[["__scopeId","data-v-f5d6a5c7"]]),jue={class:"workflow-design"},Nue={class:"box-scale"},_ue=vr("div",{class:"end-node"},[vr("div",{class:"end-node-circle"}),vr("div",{class:"end-node-text"},"流程结束")],-1),Que=jn({__name:"WorkFlow",props:{modelValue:m1().def({}),disabled:f1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=bt({});return bn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),bn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>(lr(),ur("div",jue,[vr("div",Nue,[br(Bue,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},null,8,["modelValue","disabled"]),r.value.nodeConfig?(lr(),dr(Dse,{key:0,modelValue:r.value.nodeConfig,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value.nodeConfig=e),disabled:e.disabled},null,8,["modelValue","disabled"])):wr("",!0),_ue])]))}}),Lue={class:"buttons"},Hue=R1(jn({__name:"App",setup(e){const t=e=>{const t={},n=window.location.href.split("?")[1];return n&&n.split("&").forEach((e=>{const n=e.split("=")[1],o=e.split("=")[0];t[o]=n})),t[e]},n=L0(),o=t("id"),r=t("token"),i=t("namespaceId"),l="kaxC8Iml"===t("x1c2Hdd6");Vn((()=>{if("D7Rzd7Oe"!==t("x1c2Hdd6")&&"kaxC8Iml"!==t("x1c2Hdd6"))return a.value=!0,void PB.error({content:"未知错误,请联系管理员",duration:0});n.setId(o),n.setToken(r),n.setNameSpaceId(i),s.value=l,"undefined"!=o&&(l?h():p())}));const a=bt(!1),s=bt(!1),c=bt({workflowStatus:1,description:void 0,nodeConfig:{}}),u=()=>{"undefined"===o?H0("/workflow","post",c.value).then((()=>{window.parent.postMessage({code:"SV5ucvLBhvFkOftb",data:JSON.stringify(c.value)})})):H0("/workflow","put",c.value).then((()=>{window.parent.postMessage({code:"8Rr3XPtVVAHfduQg",data:JSON.stringify(c.value)})}))},d=()=>{window.parent.postMessage({code:"kb4DO9h6WIiqFhbp"})},p=()=>{a.value=!0,H0(`/workflow/${o}`).then((e=>{c.value=e,n.setGroupName(e.groupName)})).finally((()=>{a.value=!1}))},h=()=>{a.value=!0,H0(`/workflow/batch/${o}`).then((e=>{c.value=e,n.setGroupName(e.groupName)})).finally((()=>{a.value=!1}))};return(e,t)=>{const n=pn("a-button"),o=pn("a-affix"),r=pn("a-spin");return lr(),ur(er,null,[s.value?wr("",!0):(lr(),dr(o,{key:0,"offset-top":0},{default:ln((()=>[vr("div",Lue,[br(n,{type:"primary",siz:"large",onClick:u},{default:ln((()=>[Or("保存")])),_:1}),br(n,{siz:"large",style:{"margin-left":"16px"},onClick:d},{default:ln((()=>[Or("取消")])),_:1})])])),_:1})),br(r,{spinning:a.value},{default:ln((()=>[br(St(Que),{class:"work-flow",modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=e=>c.value=e),disabled:s.value},null,8,["modelValue","disabled"])])),_:1},8,["spinning"])],64)}}}),[["__scopeId","data-v-9401efd8"]]);function Fue(e,t){var n;return e="object"==typeof(n=e)&&null!==n?e:Object.create(null),new Proxy(e,{get:(e,n,o)=>"key"===n?Reflect.get(e,n,o):Reflect.get(e,n,o)||Reflect.get(t,n,o)})}function Wue(e,{storage:t,serializer:n,key:o,debug:r}){try{const r=null==t?void 0:t.getItem(o);r&&e.$patch(null==n?void 0:n.deserialize(r))}catch(i){}}function Xue(e,{storage:t,serializer:n,key:o,paths:r,debug:i}){try{const i=Array.isArray(r)?function(e,t){return t.reduce(((t,n)=>{const o=n.split(".");return function(e,t,n){return t.slice(0,-1).reduce(((e,t)=>/^(__proto__)$/.test(t)?{}:e[t]=e[t]||{}),e)[t[t.length-1]]=n,e}(t,o,function(e,t){return t.reduce(((e,t)=>null==e?void 0:e[t]),e)}(e,o))}),{})}(e,r):e;t.setItem(o,n.serialize(i))}catch(l){}}var Yue=function(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:o=n},store:r,pinia:i}=t;if(!o)return;if(!(r.$id in i.state.value)){const e=i._s.get(r.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const l=(Array.isArray(o)?o.map((t=>Fue(t,e))):[Fue(o,e)]).map((({storage:t=localStorage,beforeRestore:n=null,afterRestore:o=null,serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},key:l=r.$id,paths:a=null,debug:s=!1})=>{var c;return{storage:t,beforeRestore:n,afterRestore:o,serializer:i,key:(null!=(c=e.key)?c:e=>e)("string"==typeof l?l:l(r.$id)),paths:a,debug:s}}));r.$persist=()=>{l.forEach((e=>{Xue(r.$state,e)}))},r.$hydrate=({runHooks:e=!0}={})=>{l.forEach((n=>{const{beforeRestore:o,afterRestore:i}=n;e&&(null==o||o(t)),Wue(r,n),e&&(null==i||i(t))}))},l.forEach((e=>{const{beforeRestore:n,afterRestore:o}=e;null==n||n(t),Wue(r,e),null==o||o(t),r.$subscribe(((t,n)=>{Xue(n,e)}),{detached:!0})}))}}();const Vue=function(){const e=q(!0),t=e.run((()=>bt({})));let n=[],o=[];const r=pt({install(e){Yi(r),r._a=e,e.provide(Vi,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();Vue.use(Yue);const Zue=Wi(Hue);Zue.use(Q0),Zue.use(Vue),Zue.mount("#app")}},function(){return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports});export default o(); diff --git a/frontend/public/lib/assets/index-yucufyR8.css b/frontend/public/lib/assets/index-yucufyR8.css deleted file mode 100644 index 06a0f9982..000000000 --- a/frontend/public/lib/assets/index-yucufyR8.css +++ /dev/null @@ -1 +0,0 @@ -.icon[data-v-a7b59fd3]{margin:0;padding:8px;display:flex;flex-wrap:wrap}.icon .anticon[data-v-a7b59fd3]{font-size:20px}.icon p[data-v-a7b59fd3]{margin-bottom:0}.popover[data-v-d12e3db2]{display:flex;align-items:center;justify-content:space-around}.popover .popover-item[data-v-d12e3db2]{height:42px;display:flex;font-size:13px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.popover .popover-item span[data-v-d12e3db2]{margin-inline-start:0}.popover .popover-item .anticon[data-v-d12e3db2]{font-size:16px}.drawer-title[data-v-81f091c8]{display:flex;align-items:center;justify-content:space-between}.cm-scroller::-webkit-scrollbar{width:8px;height:8px}.cm-scroller::-webkit-scrollbar-thumb{background:#9c9c9c9c;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.3)}.cm-scroller::-webkit-scrollbar-track{background:#282c34}.top-tips[data-v-682b7620]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#646a73}.or-branch-link-tip[data-v-682b7620]{margin:10px 0;color:#646a73}.condition-group-editor[data-v-682b7620]{-webkit-user-select:none;user-select:none;border-radius:4px;border:1px solid #e4e5e7;position:relative;margin-bottom:16px}.condition-group-editor .branch-delete-icon[data-v-682b7620]{font-size:18px}.condition-group-editor .header[data-v-682b7620]{background-color:#f4f6f8;padding:0 12px;font-size:14px;color:#171e31;height:36px;display:flex;align-items:center}.condition-group-editor .header span[data-v-682b7620]{flex:1}.condition-group-editor .main-content[data-v-682b7620]{padding:0 12px}.condition-group-editor .main-content .condition-relation[data-v-682b7620]{color:#9ca2a9;align-items:center;height:36px;display:flex;justify-content:space-between;padding:0 2px}.condition-group-editor .main-content .condition-content-box[data-v-682b7620]{display:flex;justify-content:space-between;align-items:center}.condition-group-editor .main-content .condition-content-box div[data-v-682b7620]{width:100%;min-width:120px}.condition-group-editor .main-content .condition-content-box div[data-v-682b7620]:not(:first-child){margin-left:16px}.condition-group-editor .main-content .cell-box div[data-v-682b7620]{padding:16px 0;width:100%;min-width:120px;color:#909399;font-size:14px;font-weight:600;text-align:center}.condition-group-editor .main-content .condition-content[data-v-682b7620]{display:flex;flex-direction:column}.condition-group-editor .main-content .condition-content[data-v-682b7620] .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.condition-group-editor .main-content .condition-content .content[data-v-682b7620]{flex:1;padding:0 0 4px;display:flex;align-items:center;min-height:31.6px;flex-wrap:wrap}.condition-group-editor .sub-content[data-v-682b7620]{padding:12px}.cron-body-row{margin-bottom:8px}.cron-body-row .symbol{color:#1677ff;margin-right:6px}.content[data-v-d0c5f2ff]{line-height:136%}.workflow-design{width:100%}.workflow-design .box-scale{display:inline-block;position:relative;width:100%;align-items:flex-start;justify-content:center;flex-wrap:wrap;min-width:min-content}.workflow-design .node-wrap{display:inline-flex;width:100%;flex-flow:column wrap;justify-content:flex-start;align-items:center;padding:0;position:relative;z-index:1}.workflow-design .node-wrap-box{display:inline-flex;flex-direction:column;position:relative;width:220px;min-height:72px;flex-shrink:0;background:#fff;border-radius:4px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .node-wrap-box:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent}.workflow-design .node-wrap-box.start-node:before{content:none}.workflow-design .node-wrap-box .title{height:24px;line-height:24px;color:#fff;padding-left:16px;padding-right:30px;border-radius:4px 4px 0 0;position:relative;display:flex;align-items:center}.workflow-design .node-wrap-box .title .text{text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .node-wrap-box .title .icon{margin-right:5px}.workflow-design .node-wrap-box .title .close{font-size:15px;position:absolute;top:50%;transform:translateY(-50%);right:10px;display:none}.workflow-design .node-wrap-box .content{position:relative;padding:15px}.workflow-design .node-wrap-box .content .placeholder{color:#999}.workflow-design .node-wrap-box:hover .close{display:block}.workflow-design .add-node-btn-box{width:240px;display:inline-flex;flex-shrink:0;position:relative;z-index:1}.workflow-design .add-node-btn-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .add-node-btn{-webkit-user-select:none;user-select:none;width:240px;padding:32px 0;display:flex;justify-content:center;flex-shrink:0;flex-grow:1}.workflow-design .add-branch{justify-content:center;padding:0 10px;position:absolute;top:-16px;left:50%;transform:translate(-50%);transform-origin:center center;z-index:1;display:inline-flex;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:500;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;border-radius:20px;padding:8px 15px!important;color:#67c23a;background-color:#f0f9eb;border:1px solid #dcdfe6;border-color:#b3e19d}.workflow-design .add-branch:hover{color:#fff;border-color:#b3e19d;background-color:#67c23a}.workflow-design .branch-wrap{display:inline-flex;width:100%}.workflow-design .branch-box-wrap{display:flex;flex-flow:column wrap;align-items:center;min-height:270px;width:100%;flex-shrink:0}.workflow-design .col-box{display:inline-flex;flex-direction:column;align-items:center;position:relative}.workflow-design .branch-box{display:flex;overflow:visible;min-height:180px;height:auto;border-bottom:2px solid #ccc;border-top:2px solid #ccc;position:relative}.workflow-design .branch-box .col-box{background-color:#f0f2f5}.workflow-design .branch-box .col-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .condition-node{display:inline-flex;flex-direction:column;min-height:270px}.workflow-design .condition-node-box{padding-top:30px;padding-right:50px;padding-left:50px;justify-content:center;align-items:center;flex-grow:1;position:relative;display:inline-flex;flex-direction:column}.workflow-design .condition-node-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .auto-judge{position:relative;width:220px;min-height:72px;background:#fff;border-radius:4px;padding:15px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .auto-judge:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent;background:#efefef}.workflow-design .auto-judge .title{line-height:16px}.workflow-design .auto-judge .title .text{width:139px;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .node-title{width:130px;color:#15bc83;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .close{font-size:15px;position:absolute;top:15px;right:15px;color:#999;display:none}.workflow-design .auto-judge .title .priority-title{position:absolute;top:15px;right:15px;color:#999}.workflow-design .auto-judge .content{line-height:136%;position:relative;padding-top:15px;min-height:59px}.workflow-design .auto-judge .content .placeholder{color:#999}.workflow-design .auto-judge:hover .close{display:block}.workflow-design .auto-judge:hover .priority-title{display:none}.workflow-design .top-left-cover-line,.workflow-design .top-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;top:-2px}.workflow-design .bottom-left-cover-line,.workflow-design .bottom-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;bottom:-2px}.workflow-design .top-left-cover-line{left:-1px}.workflow-design .top-right-cover-line{right:-1px}.workflow-design .bottom-left-cover-line{left:-1px}.workflow-design .bottom-right-cover-line{right:-1px}.workflow-design .end-node{border-radius:50%;font-size:14px;color:#191f2566;text-align:left}.workflow-design .end-node-circle{width:10px;height:10px;margin:auto;border-radius:50%;background:#ccc}.workflow-design .end-node-text{margin-top:5px;text-align:center}.workflow-design .auto-judge:hover .sort-left,.workflow-design .auto-judge:hover .sort-right{display:flex}.workflow-design .auto-judge .sort-left{position:absolute;top:0;bottom:0;z-index:1;left:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-right{position:absolute;top:0;bottom:0;z-index:1;right:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-left:hover,.workflow-design .auto-judge .sort-right:hover{background:#eee}.workflow-design .auto-judge:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .auto-judge:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.workflow-design .node-wrap-box:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .node-wrap-box:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.tags-list{margin-top:15px;width:100%}.add-node-popover-body li{display:inline-block;width:80px;text-align:center;padding:10px 0}.add-node-popover-body li i{border:1px solid var(--el-border-color-light);width:40px;height:40px;border-radius:50%;text-align:center;line-height:38px;font-size:18px;cursor:pointer}.add-node-popover-body li i:hover{border:1px solid #3296fa;background:#3296fa;color:#fff!important}.add-node-popover-body li p{font-size:12px;margin-top:5px}.node-wrap-drawer__title{padding-right:40px}.node-wrap-drawer__title label{cursor:pointer}.node-wrap-drawer__title label:hover{border-bottom:1px dashed #409eff}.node-wrap-drawer__title .node-wrap-drawer__title-edit{color:#409eff;margin-left:10px;vertical-align:middle}.dark .workflow-design .node-wrap-box,.dark .workflow-design .auto-judge{background:#2b2b2b}.dark .workflow-design .col-box{background:var(--el-bg-color)}.dark .workflow-design .top-left-cover-line,.dark .workflow-design .top-right-cover-line,.dark .workflow-design .bottom-left-cover-line,.dark .workflow-design .bottom-right-cover-line{background-color:var(--el-bg-color)}.dark .workflow-design .node-wrap-box:before,.dark .workflow-design .auto-judge:before{background-color:var(--el-bg-color)}.dark .workflow-design .branch-box .add-branch{background:var(--el-bg-color)}.dark .workflow-design .end-node .end-node-text{color:#ccc}.dark .workflow-design .auto-judge .sort-left:hover,.dark .workflow-design .auto-judge .sort-right:hover{background:var(--el-bg-color)}.buttons[data-v-58938cc0]{width:calc(100vw - 16px);box-shadow:0 1px 4px #00152914;background-color:#fff;box-sizing:border-box;text-align:right;padding:8px}body{background-color:#f0f2f5}body .work-flow{margin-top:16px}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/frontend/public/lib/index.html b/frontend/public/lib/index.html index 5bbb29e01..637442125 100644 --- a/frontend/public/lib/index.html +++ b/frontend/public/lib/index.html @@ -5,12 +5,12 @@ Easy Retry - - + +
- + \ No newline at end of file