paas-component-library 1.0.56 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/paas-ui.js
CHANGED
|
@@ -483,7 +483,7 @@ const k9e = {
|
|
|
483
483
|
},
|
|
484
484
|
options: {
|
|
485
485
|
handler(r) {
|
|
486
|
-
this.optionMap = this.buildOptionMap(r), this.pathToNameMap = this.buildPathToNameMap(r), this.modelValue && this.setValue(this.modelValue);
|
|
486
|
+
r && (this.optionMap = this.buildOptionMap(r), this.pathToNameMap = this.buildPathToNameMap(r), this.modelValue && this.setValue(this.modelValue));
|
|
487
487
|
},
|
|
488
488
|
deep: !0
|
|
489
489
|
}
|
|
@@ -491,14 +491,17 @@ const k9e = {
|
|
|
491
491
|
methods: {
|
|
492
492
|
// 构建选项映射关系
|
|
493
493
|
buildOptionMap(r, e = /* @__PURE__ */ new Map()) {
|
|
494
|
-
|
|
495
|
-
const
|
|
496
|
-
|
|
494
|
+
if (r) {
|
|
495
|
+
for (const t of r) {
|
|
496
|
+
const n = t.id || t.value || "", i = t.name || t.label || "";
|
|
497
|
+
n && i && e.set(n, i), t.children && this.buildOptionMap(t.children, e);
|
|
498
|
+
}
|
|
499
|
+
return e;
|
|
497
500
|
}
|
|
498
|
-
return e;
|
|
499
501
|
},
|
|
500
502
|
// 构建路径到名称的映射
|
|
501
503
|
buildPathToNameMap(r, e = [], t = []) {
|
|
504
|
+
if (!r) return;
|
|
502
505
|
const n = /* @__PURE__ */ new Map();
|
|
503
506
|
for (const i of r) {
|
|
504
507
|
const o = i.id || i.value || "", s = i.name || i.label || "";
|
|
@@ -887,7 +890,7 @@ function R9e(r, e, t, n, i, o) {
|
|
|
887
890
|
])
|
|
888
891
|
], 512);
|
|
889
892
|
}
|
|
890
|
-
const $9e = /* @__PURE__ */ Er(k9e, [["render", R9e], ["__scopeId", "data-v-
|
|
893
|
+
const $9e = /* @__PURE__ */ Er(k9e, [["render", R9e], ["__scopeId", "data-v-d34a148b"]]);
|
|
891
894
|
var D9e = { 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-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z" } }] }, name: "account-book", theme: "filled" };
|
|
892
895
|
function Fa(r, e) {
|
|
893
896
|
L9e(r) && (r = "100%");
|
package/dist/paas-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(er,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],A):(er=typeof globalThis<"u"?globalThis:er||self,A(er["pass-ui"]={},er.Vue,er.AntDesignVue))})(this,(function(er,A,Er){"use strict";const Pr=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},$ce={name:"PaasDate",inheritAttrs:!1,props:{placeholder:{type:String,default:""},type:{type:String,default:"date"},icon:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:[String,Array,Date]},showTime:{type:Boolean,default:!1},format:{type:String,default:null}},data(){return{}},methods:{handleChange(r){this.$emit("update:modelValue",r)}}};function Dce(r,e,t,n,i,o){const s=A.resolveComponent("a-date-picker");return A.openBlock(),A.createBlock(s,A.mergeProps(r.$attrs,{"show-time":t.showTime,readonly:t.readonly,disabled:t.disabled,value:t.modelValue,format:t.format,picker:t.type,onChange:o.handleChange,placeholder:t.placeholder,style:{width:"100%"}}),null,16,["show-time","readonly","disabled","value","format","picker","onChange","placeholder"])}const Ck=Pr($ce,[["render",Dce]]),Lce={name:"PaasMenu",components:{AMenu:Er.Menu,ASubMenu:Er.Menu.SubMenu,AMenuItem:Er.Menu.Item},props:{url:String,logoSrc:String,logoAlt:{type:String,default:"System Logo"},disabled:{type:Boolean,default:!1},theme:{type:String,default:"light"},selected:{type:String,default:""},mode:{type:String,default:"inline"},inlineCollapsed:{type:Boolean,default:!1}},data(){return{selectedKeys:this.selected?[this.selected]:[],selectValue:"",selectMenuOpend:!1,hostname:window.location.protocol+"//"+window.location.host}},computed:{current(){return this.$store.menus.current},menuOptions(){return this.$store.menus.menuOptions||[]},openKeys(){return this.$store.menus.openKeys},data(){return this.$store.menus.data}},watch:{selected(r){this.selectedKeys=r?[r]:[]},url(r){r?this.$post(r).then(e=>{this.$store.setMenuData(e.data.data),this.autoSelectMenu()}):this.data.length>0&&this.autoSelectMenu()},data(r){r.length>0&&!this.selectedKeys.length&&this.autoSelectMenu()}},beforeUnmount(){this.$bus.off("selectAndOpenMenu")},mounted(){this.$store.loginFlag&&this.data.length===0?this.$post(this.url).then(r=>{this.$store.setMenuData(r.data.data),this.autoSelectMenu()}):this.data.length>0&&this.autoSelectMenu(),this.$bus.on("selectAndOpenMenu",r=>{this.selectAndOpenMenu(r)})},methods:{renderIcon(r){let e="";r.icon?e=r.icon:e=this.selectedKeys.includes(r.key)?"FolderOpenOutlined":"FolderOutlined";try{const t=A.resolveComponent(e);return()=>A.h(t)}catch{return null}},autoSelectMenu(){let r=this.current;if(!this.data||this.data.length===0)return;r||(r=this.data[0]?.url||"");const e=this.findItemByKey(this.data,r);if(e)this.selectAndOpenMenu(e),this.$router.replace(e.key);else{const t=this.findFirstLeaf(this.data);t&&(this.selectAndOpenMenu(t),this.$router.replace(t.key))}},selectAndOpenMenu(r){this.selectedKeys=[r.key];const e=this.getParentKeys(this.data,r.key);this.$store.setOpenKeys(e),this.$store.setCurrent(r.key),this.$store.setTitle(r.title),this.$store.setMenuId(r.id),this.$store.setButtons(r.buttons||[]),this.$store.setMenuCache({key:r.key,title:r.title,id:r.id,buttons:r.buttons||[]})},findItemByKey(r,e){if(!r||e===null)return null;for(const t of r){if(t.key===e)return t;if(t.children){const n=this.findItemByKey(t.children,e);if(n)return n}}return null},findFirstLeaf(r){for(const e of r)if(e.children&&e.children.length>0){const t=this.findFirstLeaf(e.children);if(t)return t}else return e;return null},getParentKeys(r,e,t=[]){for(const n of r){if(n.key===e)return t;if(n.children){const i=this.getParentKeys(n.children,e,[...t,n.key]);if(i.length)return i}}return[]},menuSelect(r){this.selectAndOpenMenu(r),this.$router.push(r.key)},onOpenChange(r){this.$store.setOpenKeys(r)},selectMenuClick(){if(!this.selectValue){this.selectMenuOpend=!1;return}this.selectMenuOpend=!0}}},Nce={class:"paas-menu-container"},Vce={class:"paas-menu-header"},Bce={key:0,class:"paas-menu-logo"},Ice=["src","alt"],Hce={class:"paas-menu-system-name"};function Fce(r,e,t,n,i,o){const s=A.resolveComponent("a-menu-item"),d=A.resolveComponent("a-sub-menu"),f=A.resolveComponent("a-menu");return A.openBlock(),A.createElementBlock("div",Nce,[A.createElementVNode("div",Vce,[t.logoSrc?(A.openBlock(),A.createElementBlock("div",Bce,[A.createElementVNode("img",{src:t.logoSrc,alt:t.logoAlt},null,8,Ice)])):A.createCommentVNode("",!0),A.createElementVNode("div",Hce,[A.createElementVNode("label",null,A.toDisplayString(r.$store.header.system.deviceName),1)])]),A.createVNode(f,A.mergeProps({ref:"menus",theme:t.theme,selectedKeys:i.selectedKeys,"open-keys":o.openKeys,onOpenChange:o.onOpenChange},r.$attrs,{"inline-collapsed":t.inlineCollapsed,mode:t.mode}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.data,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.id},[p.children&&p.children.length?(A.openBlock(),A.createBlock(d,{key:p.key,title:p.title,icon:o.renderIcon(p)},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(p.children,v=>(A.openBlock(),A.createBlock(s,{key:v.key,onClick:m=>o.menuSelect(v),icon:o.renderIcon(v)},{default:A.withCtx(()=>[A.createElementVNode("span",null,A.toDisplayString(v.title),1)]),_:2},1032,["onClick","icon"]))),128))]),_:2},1032,["title","icon"])):(A.openBlock(),A.createBlock(s,{key:p.key||"",onClick:v=>o.menuSelect(p),icon:o.renderIcon(p)},{default:A.withCtx(()=>[A.createElementVNode("span",null,A.toDisplayString(p.title),1)]),_:2},1032,["onClick","icon"]))],64))),128))]),_:1},16,["theme","selectedKeys","open-keys","onOpenChange","inline-collapsed","mode"])])}const Ak=Pr(Lce,[["render",Fce],["__scopeId","data-v-cc49162e"]]);var Qce=typeof global=="object"&&global&&global.Object===Object&&global,Wce=typeof self=="object"&&self&&self.Object===Object&&self,Mk=Qce||Wce||Function("return this")(),$d=Mk.Symbol,_k=Object.prototype,Uce=_k.hasOwnProperty,Xce=_k.toString,zf=$d?$d.toStringTag:void 0;function Zce(r){var e=Uce.call(r,zf),t=r[zf];try{r[zf]=void 0;var n=!0}catch{}var i=Xce.call(r);return n&&(e?r[zf]=t:delete r[zf]),i}var qce=Object.prototype,Yce=qce.toString;function Gce(r){return Yce.call(r)}var Jce="[object Null]",Kce="[object Undefined]",Ek=$d?$d.toStringTag:void 0;function eue(r){return r==null?r===void 0?Kce:Jce:Ek&&Ek in Object(r)?Zce(r):Gce(r)}function tue(r){return r!=null&&typeof r=="object"}var rue="[object Symbol]";function nue(r){return typeof r=="symbol"||tue(r)&&eue(r)==rue}var iue=/\s/;function aue(r){for(var e=r.length;e--&&iue.test(r.charAt(e)););return e}var oue=/^\s+/;function lue(r){return r&&r.slice(0,aue(r)+1).replace(oue,"")}function v3(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var kk=NaN,sue=/^[-+]0x[0-9a-f]+$/i,cue=/^0b[01]+$/i,uue=/^0o[0-7]+$/i,fue=parseInt;function zk(r){if(typeof r=="number")return r;if(nue(r))return kk;if(v3(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=v3(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=lue(r);var t=cue.test(r);return t||uue.test(r)?fue(r.slice(2),t?2:8):sue.test(r)?kk:+r}var m3=function(){return Mk.Date.now()},due="Expected a function",hue=Math.max,pue=Math.min;function vue(r,e,t){var n,i,o,s,d,f,p=0,v=!1,m=!1,O=!0;if(typeof r!="function")throw new TypeError(due);e=zk(e)||0,v3(t)&&(v=!!t.leading,m="maxWait"in t,o=m?hue(zk(t.maxWait)||0,e):o,O="trailing"in t?!!t.trailing:O);function b(L){var $=n,D=i;return n=i=void 0,p=L,s=r.apply(D,$),s}function S(L){return p=L,d=setTimeout(C,e),v?b(L):s}function w(L){var $=L-f,D=L-p,F=e-$;return m?pue(F,o-D):F}function x(L){var $=L-f,D=L-p;return f===void 0||$>=e||$<0||m&&D>=o}function C(){var L=m3();if(x(L))return _(L);d=setTimeout(C,w(L))}function _(L){return d=void 0,O&&n?b(L):(n=i=void 0,s)}function M(){d!==void 0&&clearTimeout(d),p=0,n=f=i=d=void 0}function k(){return d===void 0?s:_(m3())}function z(){var L=m3(),$=x(L);if(n=arguments,i=this,f=L,$){if(d===void 0)return S(f);if(m)return clearTimeout(d),d=setTimeout(C,e),b(f)}return d===void 0&&(d=setTimeout(C,e)),s}return z.cancel=M,z.flush=k,z}const mue={name:"MentionInput",props:{modelValue:{type:String,default:""},options:{type:Array,required:!0},saveSymbol:{type:String,default:"$"},height:{type:[String,Number],default:void 0},width:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},mode:{type:String,default:"input"},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],data(){return{PREFIX:"/",SAVE_SYMBOL:this.saveSymbol||"$",showDropdown:!1,dropdownPos:null,triggerText:"",selectionRange:null,cascaderOptions:[],selectedValue:[],currentPathValues:[],currentPathLabels:[],optionMap:new Map,pathToNameMap:new Map,wrapperRef:null,inputRef:null,cascaderRef:null}},computed:{overlayStyle(){if(!this.dropdownPos)return{};let r=this.dropdownPos.top,e=this.dropdownPos.left;return{position:"fixed",top:r+"px",left:e+"px",zIndex:1050}}},mounted(){this.wrapperRef=this.$refs.wrapperRef,this.inputRef=this.$refs.inputRef,this.cascaderRef=this.$refs.cascaderRef,this.optionMap=this.buildOptionMap(this.options),this.pathToNameMap=this.buildPathToNameMap(this.options),this.inputRef&&this.inputRef.addEventListener("click",this.handleInputClick),document.addEventListener("click",this.handleClickOutside),this.initializeValue(),this.debouncedOnInput=vue(this._onInput,100)},beforeDestroy(){this.debouncedOnInput&&this.debouncedOnInput.cancel(),this.inputRef&&this.inputRef.removeEventListener("click",this.handleInputClick),document.removeEventListener("click",this.handleClickOutside)},watch:{modelValue:{handler(r){document.activeElement!==this.inputRef&&this.setValue(r||"")},immediate:!0},options:{handler(r){this.optionMap=this.buildOptionMap(r),this.pathToNameMap=this.buildPathToNameMap(r),this.modelValue&&this.setValue(this.modelValue)},deep:!0}},methods:{buildOptionMap(r,e=new Map){for(const t of r){const n=t.id||t.value||"",i=t.name||t.label||"";n&&i&&e.set(n,i),t.children&&this.buildOptionMap(t.children,e)}return e},buildPathToNameMap(r,e=[],t=[]){const n=new Map;for(const i of r){const o=i.id||i.value||"",s=i.name||i.label||"";if(!o)continue;const d=[...e,o],f=[...t,s],p=d.join("."),v=f.join("/");if(n.set(p,v),i.children){const m=this.buildPathToNameMap(i.children,d,f);for(const[O,b]of m)n.set(O,b)}}return n},onCascaderChange(r,e){r&&e&&(this.currentPathValues=[...r],this.currentPathLabels=e.map(t=>String(t.label||"")),this.insertMentionTag())},handleCascaderKeydown(r){r.key==="Escape"&&(this.showDropdown=!1)},onDropdownVisibleChange(r){},onInput(r){if(this.mode==="select"){r.preventDefault();return}this.debouncedOnInput(r)},_onInput(r){if(this.mode==="select")return;const e=r.target,t=this.parseContent(e);if(this.$emit("change",t),this.$emit("update:modelValue",this.serialize(t)),(e.textContent||"").lastIndexOf(this.PREFIX)===-1){this.showDropdown=!1;return}const o=this.getCurrentTextBeforeCursor(),s=o.lastIndexOf(this.PREFIX);if(s===-1){this.showDropdown=!1;return}const d=o.slice(s+this.PREFIX.length);if(d.includes(" ")||d.includes(" ")){this.showDropdown=!1;return}this.triggerText=d;const f=document.getSelection()?.getRangeAt(0);if(f&&this.inputRef){const p=f.getBoundingClientRect();this.dropdownPos={top:p.bottom+window.scrollY,left:p.left+window.scrollX},this.selectionRange=f.cloneRange(),this.cascaderOptions=this.options,this.showDropdown=!0}else this.showDropdown=!1},getCurrentTextBeforeCursor(){const r=window.getSelection();if(!r||r.rangeCount===0)return"";const e=r.getRangeAt(0).cloneRange(),t=e.cloneRange();return t.selectNodeContents(this.inputRef),t.setEnd(e.endContainer,e.endOffset),t.toString().replace(/\r\n|\r/g,`
|
|
1
|
+
(function(er,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],A):(er=typeof globalThis<"u"?globalThis:er||self,A(er["pass-ui"]={},er.Vue,er.AntDesignVue))})(this,(function(er,A,Er){"use strict";const Pr=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},$ce={name:"PaasDate",inheritAttrs:!1,props:{placeholder:{type:String,default:""},type:{type:String,default:"date"},icon:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:[String,Array,Date]},showTime:{type:Boolean,default:!1},format:{type:String,default:null}},data(){return{}},methods:{handleChange(r){this.$emit("update:modelValue",r)}}};function Dce(r,e,t,n,i,o){const s=A.resolveComponent("a-date-picker");return A.openBlock(),A.createBlock(s,A.mergeProps(r.$attrs,{"show-time":t.showTime,readonly:t.readonly,disabled:t.disabled,value:t.modelValue,format:t.format,picker:t.type,onChange:o.handleChange,placeholder:t.placeholder,style:{width:"100%"}}),null,16,["show-time","readonly","disabled","value","format","picker","onChange","placeholder"])}const Ck=Pr($ce,[["render",Dce]]),Lce={name:"PaasMenu",components:{AMenu:Er.Menu,ASubMenu:Er.Menu.SubMenu,AMenuItem:Er.Menu.Item},props:{url:String,logoSrc:String,logoAlt:{type:String,default:"System Logo"},disabled:{type:Boolean,default:!1},theme:{type:String,default:"light"},selected:{type:String,default:""},mode:{type:String,default:"inline"},inlineCollapsed:{type:Boolean,default:!1}},data(){return{selectedKeys:this.selected?[this.selected]:[],selectValue:"",selectMenuOpend:!1,hostname:window.location.protocol+"//"+window.location.host}},computed:{current(){return this.$store.menus.current},menuOptions(){return this.$store.menus.menuOptions||[]},openKeys(){return this.$store.menus.openKeys},data(){return this.$store.menus.data}},watch:{selected(r){this.selectedKeys=r?[r]:[]},url(r){r?this.$post(r).then(e=>{this.$store.setMenuData(e.data.data),this.autoSelectMenu()}):this.data.length>0&&this.autoSelectMenu()},data(r){r.length>0&&!this.selectedKeys.length&&this.autoSelectMenu()}},beforeUnmount(){this.$bus.off("selectAndOpenMenu")},mounted(){this.$store.loginFlag&&this.data.length===0?this.$post(this.url).then(r=>{this.$store.setMenuData(r.data.data),this.autoSelectMenu()}):this.data.length>0&&this.autoSelectMenu(),this.$bus.on("selectAndOpenMenu",r=>{this.selectAndOpenMenu(r)})},methods:{renderIcon(r){let e="";r.icon?e=r.icon:e=this.selectedKeys.includes(r.key)?"FolderOpenOutlined":"FolderOutlined";try{const t=A.resolveComponent(e);return()=>A.h(t)}catch{return null}},autoSelectMenu(){let r=this.current;if(!this.data||this.data.length===0)return;r||(r=this.data[0]?.url||"");const e=this.findItemByKey(this.data,r);if(e)this.selectAndOpenMenu(e),this.$router.replace(e.key);else{const t=this.findFirstLeaf(this.data);t&&(this.selectAndOpenMenu(t),this.$router.replace(t.key))}},selectAndOpenMenu(r){this.selectedKeys=[r.key];const e=this.getParentKeys(this.data,r.key);this.$store.setOpenKeys(e),this.$store.setCurrent(r.key),this.$store.setTitle(r.title),this.$store.setMenuId(r.id),this.$store.setButtons(r.buttons||[]),this.$store.setMenuCache({key:r.key,title:r.title,id:r.id,buttons:r.buttons||[]})},findItemByKey(r,e){if(!r||e===null)return null;for(const t of r){if(t.key===e)return t;if(t.children){const n=this.findItemByKey(t.children,e);if(n)return n}}return null},findFirstLeaf(r){for(const e of r)if(e.children&&e.children.length>0){const t=this.findFirstLeaf(e.children);if(t)return t}else return e;return null},getParentKeys(r,e,t=[]){for(const n of r){if(n.key===e)return t;if(n.children){const i=this.getParentKeys(n.children,e,[...t,n.key]);if(i.length)return i}}return[]},menuSelect(r){this.selectAndOpenMenu(r),this.$router.push(r.key)},onOpenChange(r){this.$store.setOpenKeys(r)},selectMenuClick(){if(!this.selectValue){this.selectMenuOpend=!1;return}this.selectMenuOpend=!0}}},Nce={class:"paas-menu-container"},Vce={class:"paas-menu-header"},Bce={key:0,class:"paas-menu-logo"},Ice=["src","alt"],Hce={class:"paas-menu-system-name"};function Fce(r,e,t,n,i,o){const s=A.resolveComponent("a-menu-item"),d=A.resolveComponent("a-sub-menu"),f=A.resolveComponent("a-menu");return A.openBlock(),A.createElementBlock("div",Nce,[A.createElementVNode("div",Vce,[t.logoSrc?(A.openBlock(),A.createElementBlock("div",Bce,[A.createElementVNode("img",{src:t.logoSrc,alt:t.logoAlt},null,8,Ice)])):A.createCommentVNode("",!0),A.createElementVNode("div",Hce,[A.createElementVNode("label",null,A.toDisplayString(r.$store.header.system.deviceName),1)])]),A.createVNode(f,A.mergeProps({ref:"menus",theme:t.theme,selectedKeys:i.selectedKeys,"open-keys":o.openKeys,onOpenChange:o.onOpenChange},r.$attrs,{"inline-collapsed":t.inlineCollapsed,mode:t.mode}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.data,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.id},[p.children&&p.children.length?(A.openBlock(),A.createBlock(d,{key:p.key,title:p.title,icon:o.renderIcon(p)},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(p.children,v=>(A.openBlock(),A.createBlock(s,{key:v.key,onClick:m=>o.menuSelect(v),icon:o.renderIcon(v)},{default:A.withCtx(()=>[A.createElementVNode("span",null,A.toDisplayString(v.title),1)]),_:2},1032,["onClick","icon"]))),128))]),_:2},1032,["title","icon"])):(A.openBlock(),A.createBlock(s,{key:p.key||"",onClick:v=>o.menuSelect(p),icon:o.renderIcon(p)},{default:A.withCtx(()=>[A.createElementVNode("span",null,A.toDisplayString(p.title),1)]),_:2},1032,["onClick","icon"]))],64))),128))]),_:1},16,["theme","selectedKeys","open-keys","onOpenChange","inline-collapsed","mode"])])}const Ak=Pr(Lce,[["render",Fce],["__scopeId","data-v-cc49162e"]]);var Qce=typeof global=="object"&&global&&global.Object===Object&&global,Wce=typeof self=="object"&&self&&self.Object===Object&&self,Mk=Qce||Wce||Function("return this")(),$d=Mk.Symbol,_k=Object.prototype,Uce=_k.hasOwnProperty,Xce=_k.toString,zf=$d?$d.toStringTag:void 0;function Zce(r){var e=Uce.call(r,zf),t=r[zf];try{r[zf]=void 0;var n=!0}catch{}var i=Xce.call(r);return n&&(e?r[zf]=t:delete r[zf]),i}var qce=Object.prototype,Yce=qce.toString;function Gce(r){return Yce.call(r)}var Jce="[object Null]",Kce="[object Undefined]",Ek=$d?$d.toStringTag:void 0;function eue(r){return r==null?r===void 0?Kce:Jce:Ek&&Ek in Object(r)?Zce(r):Gce(r)}function tue(r){return r!=null&&typeof r=="object"}var rue="[object Symbol]";function nue(r){return typeof r=="symbol"||tue(r)&&eue(r)==rue}var iue=/\s/;function aue(r){for(var e=r.length;e--&&iue.test(r.charAt(e)););return e}var oue=/^\s+/;function lue(r){return r&&r.slice(0,aue(r)+1).replace(oue,"")}function v3(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var kk=NaN,sue=/^[-+]0x[0-9a-f]+$/i,cue=/^0b[01]+$/i,uue=/^0o[0-7]+$/i,fue=parseInt;function zk(r){if(typeof r=="number")return r;if(nue(r))return kk;if(v3(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=v3(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=lue(r);var t=cue.test(r);return t||uue.test(r)?fue(r.slice(2),t?2:8):sue.test(r)?kk:+r}var m3=function(){return Mk.Date.now()},due="Expected a function",hue=Math.max,pue=Math.min;function vue(r,e,t){var n,i,o,s,d,f,p=0,v=!1,m=!1,O=!0;if(typeof r!="function")throw new TypeError(due);e=zk(e)||0,v3(t)&&(v=!!t.leading,m="maxWait"in t,o=m?hue(zk(t.maxWait)||0,e):o,O="trailing"in t?!!t.trailing:O);function b(L){var $=n,D=i;return n=i=void 0,p=L,s=r.apply(D,$),s}function S(L){return p=L,d=setTimeout(C,e),v?b(L):s}function w(L){var $=L-f,D=L-p,F=e-$;return m?pue(F,o-D):F}function x(L){var $=L-f,D=L-p;return f===void 0||$>=e||$<0||m&&D>=o}function C(){var L=m3();if(x(L))return _(L);d=setTimeout(C,w(L))}function _(L){return d=void 0,O&&n?b(L):(n=i=void 0,s)}function M(){d!==void 0&&clearTimeout(d),p=0,n=f=i=d=void 0}function k(){return d===void 0?s:_(m3())}function z(){var L=m3(),$=x(L);if(n=arguments,i=this,f=L,$){if(d===void 0)return S(f);if(m)return clearTimeout(d),d=setTimeout(C,e),b(f)}return d===void 0&&(d=setTimeout(C,e)),s}return z.cancel=M,z.flush=k,z}const mue={name:"MentionInput",props:{modelValue:{type:String,default:""},options:{type:Array,required:!0},saveSymbol:{type:String,default:"$"},height:{type:[String,Number],default:void 0},width:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},mode:{type:String,default:"input"},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],data(){return{PREFIX:"/",SAVE_SYMBOL:this.saveSymbol||"$",showDropdown:!1,dropdownPos:null,triggerText:"",selectionRange:null,cascaderOptions:[],selectedValue:[],currentPathValues:[],currentPathLabels:[],optionMap:new Map,pathToNameMap:new Map,wrapperRef:null,inputRef:null,cascaderRef:null}},computed:{overlayStyle(){if(!this.dropdownPos)return{};let r=this.dropdownPos.top,e=this.dropdownPos.left;return{position:"fixed",top:r+"px",left:e+"px",zIndex:1050}}},mounted(){this.wrapperRef=this.$refs.wrapperRef,this.inputRef=this.$refs.inputRef,this.cascaderRef=this.$refs.cascaderRef,this.optionMap=this.buildOptionMap(this.options),this.pathToNameMap=this.buildPathToNameMap(this.options),this.inputRef&&this.inputRef.addEventListener("click",this.handleInputClick),document.addEventListener("click",this.handleClickOutside),this.initializeValue(),this.debouncedOnInput=vue(this._onInput,100)},beforeDestroy(){this.debouncedOnInput&&this.debouncedOnInput.cancel(),this.inputRef&&this.inputRef.removeEventListener("click",this.handleInputClick),document.removeEventListener("click",this.handleClickOutside)},watch:{modelValue:{handler(r){document.activeElement!==this.inputRef&&this.setValue(r||"")},immediate:!0},options:{handler(r){r&&(this.optionMap=this.buildOptionMap(r),this.pathToNameMap=this.buildPathToNameMap(r),this.modelValue&&this.setValue(this.modelValue))},deep:!0}},methods:{buildOptionMap(r,e=new Map){if(r){for(const t of r){const n=t.id||t.value||"",i=t.name||t.label||"";n&&i&&e.set(n,i),t.children&&this.buildOptionMap(t.children,e)}return e}},buildPathToNameMap(r,e=[],t=[]){if(!r)return;const n=new Map;for(const i of r){const o=i.id||i.value||"",s=i.name||i.label||"";if(!o)continue;const d=[...e,o],f=[...t,s],p=d.join("."),v=f.join("/");if(n.set(p,v),i.children){const m=this.buildPathToNameMap(i.children,d,f);for(const[O,b]of m)n.set(O,b)}}return n},onCascaderChange(r,e){r&&e&&(this.currentPathValues=[...r],this.currentPathLabels=e.map(t=>String(t.label||"")),this.insertMentionTag())},handleCascaderKeydown(r){r.key==="Escape"&&(this.showDropdown=!1)},onDropdownVisibleChange(r){},onInput(r){if(this.mode==="select"){r.preventDefault();return}this.debouncedOnInput(r)},_onInput(r){if(this.mode==="select")return;const e=r.target,t=this.parseContent(e);if(this.$emit("change",t),this.$emit("update:modelValue",this.serialize(t)),(e.textContent||"").lastIndexOf(this.PREFIX)===-1){this.showDropdown=!1;return}const o=this.getCurrentTextBeforeCursor(),s=o.lastIndexOf(this.PREFIX);if(s===-1){this.showDropdown=!1;return}const d=o.slice(s+this.PREFIX.length);if(d.includes(" ")||d.includes(" ")){this.showDropdown=!1;return}this.triggerText=d;const f=document.getSelection()?.getRangeAt(0);if(f&&this.inputRef){const p=f.getBoundingClientRect();this.dropdownPos={top:p.bottom+window.scrollY,left:p.left+window.scrollX},this.selectionRange=f.cloneRange(),this.cascaderOptions=this.options,this.showDropdown=!0}else this.showDropdown=!1},getCurrentTextBeforeCursor(){const r=window.getSelection();if(!r||r.rangeCount===0)return"";const e=r.getRangeAt(0).cloneRange(),t=e.cloneRange();return t.selectNodeContents(this.inputRef),t.setEnd(e.endContainer,e.endOffset),t.toString().replace(/\r\n|\r/g,`
|
|
2
2
|
`)},onKeydown(r){if(this.mode==="select"&&r.key!=="Tab"&&r.key!=="ArrowUp"&&r.key!=="ArrowDown"&&r.key!=="Enter"&&r.key!=="Escape"){r.preventDefault(),/[a-zA-Z0-9]/.test(r.key)&&!r.ctrlKey&&!r.metaKey&&!r.altKey&&this.showSelectDropdown();return}if(!this.showDropdown){if(r.key==="Backspace")this.handleBackspace(r);else if(r.key==="Enter"){r.preventDefault();const e=window.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0);t.deleteContents();const n=document.createElement("br");t.insertNode(n);const i=document.createRange();i.setStartAfter(n),i.collapse(!0),e.removeAllRanges(),e.addRange(i)}this.$nextTick(()=>{const t=this.parseContent(this.inputRef);this.$emit("change",t),this.$emit("update:modelValue",this.serialize(t))})}return}r.key==="Escape"&&(this.showDropdown=!1)},insertMentionTag(){if(!this.inputRef)return;this.multiple||(this.inputRef.innerHTML="");let r;this.selectionRange?r=this.selectionRange.cloneRange():(r=document.createRange(),r.selectNodeContents(this.inputRef),r.collapse(!1));let e=null,t=0;if(r.startContainer.nodeType===Node.TEXT_NODE)e=r.startContainer,t=r.startOffset;else{const f=document.createTreeWalker(this.inputRef,NodeFilter.SHOW_TEXT,null);let p=null;for(;f.nextNode();)(f.currentNode===r.startContainer||f.currentNode.contains(r.startContainer))&&(p=f.currentNode);p&&(e=p,t=p.textContent?.length||0)}const n=this.SAVE_SYMBOL+this.currentPathValues.join("."),i=this.currentPathLabels.join("/"),o=document.createElement("span");o.className="mention-tag",o.contentEditable="false",o.dataset.value=n,o.innerHTML=`
|
|
3
3
|
<span class="tag-content">${i}</span>
|
|
4
4
|
<span class="tag-close">×</span>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
`});else{const o=this.parseContent(i);e.push(...o)}}const t=[];for(const n of e)n.type==="text"&&t.length>0&&t[t.length-1].type==="text"?t[t.length-1].value+=n.value:t.push(n);return t},serialize(r){let e="";for(let t=0;t<r.length;t++){const n=r[t];n.type,e+=n.value}return e},handleClickOutside(r){this.inputRef?.contains(r.target)||r.target.closest(".ant-cascader-menus")||(this.showDropdown=!1)},handleInputClick(r){const e=r.target;if(e.classList.contains("tag-close")){const t=e.parentElement;if(t&&t.classList.contains("mention-tag")){if(!this.multiple)this.inputRef.innerHTML="";else{const n=t.previousSibling,i=t.nextSibling;n&&n.nodeType===Node.TEXT_NODE&&(n.textContent||"").trim()===""&&n.remove(),t.remove(),i&&i.nodeType===Node.TEXT_NODE&&(i.textContent||"").trim()===""&&i.remove()}this.$nextTick(()=>{const n=this.parseContent(this.inputRef);this.$emit("change",n),this.$emit("update:modelValue",this.serialize(n))})}}else if(e.classList.contains("mention-tag")){const t=document.createTextNode("");e.parentNode?.insertBefore(t,e.nextSibling);const n=document.createRange();n.setStart(t,0),n.setEnd(t,0);const i=window.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}},setValue(r){if(this.inputRef){if(this.inputRef.innerHTML="",!r)return;let e="",t=r,n=0;const i=new RegExp(`\\${this.SAVE_SYMBOL}[^\\s]+(?=\\s|$)`,"g");let o;for(;(o=i.exec(t))!==null;){if(o.index>n){const p=t.substring(n,o.index);e+=this.convertTextToHtml(p)}const s=o[0],d=s.substring(this.SAVE_SYMBOL.length);let f=this.pathToNameMap.get(d)||d;e+=`<span class="mention-tag" contenteditable="false" data-value="${s}">
|
|
7
7
|
<span class="tag-content">${this.escapeHtml(f)}</span>
|
|
8
8
|
<span class="tag-close">×</span>
|
|
9
|
-
</span>`,n=o.index+o[0].length}if(n<t.length){const s=t.substring(n);e+=this.convertTextToHtml(s)}e+="",this.inputRef.innerHTML=e.replace(/\n/g,"<br>")}},escapeHtml(r){const e=document.createElement("div");return e.textContent=r,e.innerHTML},convertTextToHtml(r){return this.escapeHtml(r).replace(/\n/g,"<br>")},initializeValue(){this.modelValue&&this.setValue(this.modelValue)}}},gue={class:"mention-wrapper",ref:"wrapperRef"},Oue=["contenteditable","placeholder"];function bue(r,e,t,n,i,o){const s=A.resolveComponent("a-cascader");return A.openBlock(),A.createElementBlock("div",gue,[A.createElementVNode("div",{ref:"inputRef",class:"mention-input",style:A.normalizeStyle({height:typeof t.height=="number"?t.height+"px":t.height||"120px",width:typeof t.width=="number"?t.width+"px":t.width}),contenteditable:t.mode!=="select",onInput:e[0]||(e[0]=(...d)=>o.onInput&&o.onInput(...d)),onKeydown:e[1]||(e[1]=(...d)=>o.onKeydown&&o.onKeydown(...d)),onClick:e[2]||(e[2]=(...d)=>o.onInputClick&&o.onInputClick(...d)),tabindex:"0",placeholder:t.placeholder||"请输入内容..."},null,44,Oue),A.withDirectives(A.createElementVNode("div",{class:"mention-cascader-overlay",style:A.normalizeStyle(o.overlayStyle)},[A.createVNode(s,{ref:"cascaderRef",value:i.selectedValue,"onUpdate:value":e[3]||(e[3]=d=>i.selectedValue=d),options:i.cascaderOptions,fieldNames:{label:"label",value:"value",children:"children"},onChange:o.onCascaderChange,onKeydown:o.handleCascaderKeydown,onDropdownVisibleChange:o.onDropdownVisibleChange,size:"small",open:i.showDropdown},{default:A.withCtx(()=>[...e[4]||(e[4]=[A.createElementVNode("span",null,null,-1)])]),_:1},8,["value","options","onChange","onKeydown","onDropdownVisibleChange","open"])],4),[[A.vShow,i.showDropdown&&i.dropdownPos]])],512)}const jk=Pr(mue,[["render",bue],["__scopeId","data-v-8ac0a9d4"]]);var yue={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-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"account-book",theme:"filled"};function oa(r,e){Sue(r)&&(r="100%");var t=wue(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Sue(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function wue(r){return typeof r=="string"&&r.indexOf("%")!==-1}function xue(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Dd(r){return r<=1?"".concat(Number(r)*100,"%"):r}function g3(r){return r.length===1?"0"+r:String(r)}function Pue(r,e,t){return{r:oa(r,255)*255,g:oa(e,255)*255,b:oa(t,255)*255}}function O3(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function Tue(r,e,t){var n,i,o;if(r=oa(r,360),e=oa(e,100),t=oa(t,100),e===0)i=t,o=t,n=t;else{var s=t<.5?t*(1+e):t+e-t*e,d=2*t-s;n=O3(d,s,r+1/3),i=O3(d,s,r),o=O3(d,s,r-1/3)}return{r:n*255,g:i*255,b:o*255}}function Cue(r,e,t){r=oa(r,255),e=oa(e,255),t=oa(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),o=0,s=n,d=n-i,f=n===0?0:d/n;if(n===i)o=0;else{switch(n){case r:o=(e-t)/d+(e<t?6:0);break;case e:o=(t-r)/d+2;break;case t:o=(r-e)/d+4;break}o/=6}return{h:o,s:f,v:s}}function Aue(r,e,t){r=oa(r,360)*6,e=oa(e,100),t=oa(t,100);var n=Math.floor(r),i=r-n,o=t*(1-e),s=t*(1-i*e),d=t*(1-(1-i)*e),f=n%6,p=[t,s,o,o,d,t][f],v=[d,t,t,s,o,o][f],m=[o,o,d,t,t,s][f];return{r:p*255,g:v*255,b:m*255}}function Mue(r,e,t,n){var i=[g3(Math.round(r).toString(16)),g3(Math.round(e).toString(16)),g3(Math.round(t).toString(16))];return i.join("")}function Rk(r){return Bi(r)/255}function Bi(r){return parseInt(r,16)}var $k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function jf(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,o=null,s=!1,d=!1;return typeof r=="string"&&(r=kue(r)),typeof r=="object"&&(tl(r.r)&&tl(r.g)&&tl(r.b)?(e=Pue(r.r,r.g,r.b),s=!0,d=String(r.r).substr(-1)==="%"?"prgb":"rgb"):tl(r.h)&&tl(r.s)&&tl(r.v)?(n=Dd(r.s),i=Dd(r.v),e=Aue(r.h,n,i),s=!0,d="hsv"):tl(r.h)&&tl(r.s)&&tl(r.l)&&(n=Dd(r.s),o=Dd(r.l),e=Tue(r.h,n,o),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=xue(t),{ok:s,format:r.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var _ue="[-\\+]?\\d+%?",Eue="[-\\+]?\\d*\\.\\d+%?",Fl="(?:".concat(Eue,")|(?:").concat(_ue,")"),b3="[\\s|\\(]+(".concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")\\s*\\)?"),y3="[\\s|\\(]+(".concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")\\s*\\)?"),Ia={CSS_UNIT:new RegExp(Fl),rgb:new RegExp("rgb"+b3),rgba:new RegExp("rgba"+y3),hsl:new RegExp("hsl"+b3),hsla:new RegExp("hsla"+y3),hsv:new RegExp("hsv"+b3),hsva:new RegExp("hsva"+y3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function kue(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if($k[r])r=$k[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ia.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ia.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ia.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=Ia.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ia.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=Ia.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ia.hex8.exec(r),t?{r:Bi(t[1]),g:Bi(t[2]),b:Bi(t[3]),a:Rk(t[4]),format:e?"name":"hex8"}:(t=Ia.hex6.exec(r),t?{r:Bi(t[1]),g:Bi(t[2]),b:Bi(t[3]),format:e?"name":"hex"}:(t=Ia.hex4.exec(r),t?{r:Bi(t[1]+t[1]),g:Bi(t[2]+t[2]),b:Bi(t[3]+t[3]),a:Rk(t[4]+t[4]),format:e?"name":"hex8"}:(t=Ia.hex3.exec(r),t?{r:Bi(t[1]+t[1]),g:Bi(t[2]+t[2]),b:Bi(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function tl(r){return!!Ia.CSS_UNIT.exec(String(r))}var Ld=2,Dk=.16,zue=.05,jue=.05,Rue=.15,Lk=5,Nk=4,$ue=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Vk(r){var e=r.r,t=r.g,n=r.b,i=Cue(e,t,n);return{h:i.h*360,s:i.s,v:i.v}}function Nd(r){var e=r.r,t=r.g,n=r.b;return"#".concat(Mue(e,t,n))}function Due(r,e,t){var n=t/100,i={r:(e.r-r.r)*n+r.r,g:(e.g-r.g)*n+r.g,b:(e.b-r.b)*n+r.b};return i}function Bk(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-Ld*e:Math.round(r.h)+Ld*e:n=t?Math.round(r.h)+Ld*e:Math.round(r.h)-Ld*e,n<0?n+=360:n>=360&&(n-=360),n}function Ik(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-Dk*e:e===Nk?n=r.s+Dk:n=r.s+zue*e,n>1&&(n=1),t&&e===Lk&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Hk(r,e,t){var n;return t?n=r.v+jue*e:n=r.v-Rue*e,n>1&&(n=1),Number(n.toFixed(2))}function S3(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=jf(r),i=Lk;i>0;i-=1){var o=Vk(n),s=Nd(jf({h:Bk(o,i,!0),s:Ik(o,i,!0),v:Hk(o,i,!0)}));t.push(s)}t.push(Nd(n));for(var d=1;d<=Nk;d+=1){var f=Vk(n),p=Nd(jf({h:Bk(f,d),s:Ik(f,d),v:Hk(f,d)}));t.push(p)}return e.theme==="dark"?$ue.map(function(v){var m=v.index,O=v.opacity,b=Nd(Due(jf(e.backgroundColor||"#141414"),jf(t[m]),O*100));return b}):t}var w3={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"},Vd={},x3={};Object.keys(w3).forEach(function(r){Vd[r]=S3(w3[r]),Vd[r].primary=Vd[r][5],x3[r]=S3(w3[r],{theme:"dark",backgroundColor:"#141414"}),x3[r].primary=x3[r][5]});var Lue=Vd.blue,Nue=Symbol("iconContext"),P3=function(){return A.inject(Nue,{prefixCls:A.ref("anticon"),rootClassName:A.ref(""),csp:A.ref()})};function T3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vue(r,e){return r&&r.contains?r.contains(e):!1}var Fk="data-vc-order",Bue="vc-icon-key",C3=new Map;function Qk(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Bue}function A3(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function Iue(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function Wk(r){return Array.from((C3.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function Uk(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!T3())return null;var t=e.csp,n=e.prepend,i=document.createElement("style");i.setAttribute(Fk,Iue(n)),t&&t.nonce&&(i.nonce=t.nonce),i.innerHTML=r;var o=A3(e),s=o.firstChild;if(n){if(n==="queue"){var d=Wk(o).filter(function(f){return["prepend","prependQueue"].includes(f.getAttribute(Fk))});if(d.length)return o.insertBefore(i,d[d.length-1].nextSibling),i}o.insertBefore(i,s)}else o.appendChild(i);return i}function Hue(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=A3(e);return Wk(t).find(function(n){return n.getAttribute(Qk(e))===r})}function Fue(r,e){var t=C3.get(r);if(!t||!Vue(document,t)){var n=Uk("",e),i=n.parentNode;C3.set(r,i),r.removeChild(n)}}function Que(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=A3(t);Fue(n,t);var i=Hue(e,t);if(i)return t.csp&&t.csp.nonce&&i.nonce!==t.csp.nonce&&(i.nonce=t.csp.nonce),i.innerHTML!==r&&(i.innerHTML=r),i;var o=Uk(r,t);return o.setAttribute(Qk(t),e),o}function Xk(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.forEach(function(i){Wue(r,i,t[i])})}return r}function Wue(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Uue(r,e){process.env.NODE_ENV!=="production"&&!r&&console!==void 0&&console.error("Warning: ".concat(e))}function M3(r,e){Uue(r,"[@ant-design/icons-vue] ".concat(e))}function Zk(r){return typeof r=="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(typeof r.icon=="object"||typeof r.icon=="function")}function _3(r,e,t){return t?A.h(r.tag,Xk({key:e},t,r.attrs),(r.children||[]).map(function(n,i){return _3(n,"".concat(e,"-").concat(r.tag,"-").concat(i))})):A.h(r.tag,Xk({key:e},r.attrs),(r.children||[]).map(function(n,i){return _3(n,"".concat(e,"-").concat(r.tag,"-").concat(i))}))}function qk(r){return S3(r)[0]}function Yk(r){return r?Array.isArray(r)?r:[r]:[]}var Xue={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Zue=`
|
|
9
|
+
</span>`,n=o.index+o[0].length}if(n<t.length){const s=t.substring(n);e+=this.convertTextToHtml(s)}e+="",this.inputRef.innerHTML=e.replace(/\n/g,"<br>")}},escapeHtml(r){const e=document.createElement("div");return e.textContent=r,e.innerHTML},convertTextToHtml(r){return this.escapeHtml(r).replace(/\n/g,"<br>")},initializeValue(){this.modelValue&&this.setValue(this.modelValue)}}},gue={class:"mention-wrapper",ref:"wrapperRef"},Oue=["contenteditable","placeholder"];function bue(r,e,t,n,i,o){const s=A.resolveComponent("a-cascader");return A.openBlock(),A.createElementBlock("div",gue,[A.createElementVNode("div",{ref:"inputRef",class:"mention-input",style:A.normalizeStyle({height:typeof t.height=="number"?t.height+"px":t.height||"120px",width:typeof t.width=="number"?t.width+"px":t.width}),contenteditable:t.mode!=="select",onInput:e[0]||(e[0]=(...d)=>o.onInput&&o.onInput(...d)),onKeydown:e[1]||(e[1]=(...d)=>o.onKeydown&&o.onKeydown(...d)),onClick:e[2]||(e[2]=(...d)=>o.onInputClick&&o.onInputClick(...d)),tabindex:"0",placeholder:t.placeholder||"请输入内容..."},null,44,Oue),A.withDirectives(A.createElementVNode("div",{class:"mention-cascader-overlay",style:A.normalizeStyle(o.overlayStyle)},[A.createVNode(s,{ref:"cascaderRef",value:i.selectedValue,"onUpdate:value":e[3]||(e[3]=d=>i.selectedValue=d),options:i.cascaderOptions,fieldNames:{label:"label",value:"value",children:"children"},onChange:o.onCascaderChange,onKeydown:o.handleCascaderKeydown,onDropdownVisibleChange:o.onDropdownVisibleChange,size:"small",open:i.showDropdown},{default:A.withCtx(()=>[...e[4]||(e[4]=[A.createElementVNode("span",null,null,-1)])]),_:1},8,["value","options","onChange","onKeydown","onDropdownVisibleChange","open"])],4),[[A.vShow,i.showDropdown&&i.dropdownPos]])],512)}const jk=Pr(mue,[["render",bue],["__scopeId","data-v-d34a148b"]]);var yue={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-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"account-book",theme:"filled"};function oa(r,e){Sue(r)&&(r="100%");var t=wue(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Sue(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function wue(r){return typeof r=="string"&&r.indexOf("%")!==-1}function xue(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Dd(r){return r<=1?"".concat(Number(r)*100,"%"):r}function g3(r){return r.length===1?"0"+r:String(r)}function Pue(r,e,t){return{r:oa(r,255)*255,g:oa(e,255)*255,b:oa(t,255)*255}}function O3(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function Tue(r,e,t){var n,i,o;if(r=oa(r,360),e=oa(e,100),t=oa(t,100),e===0)i=t,o=t,n=t;else{var s=t<.5?t*(1+e):t+e-t*e,d=2*t-s;n=O3(d,s,r+1/3),i=O3(d,s,r),o=O3(d,s,r-1/3)}return{r:n*255,g:i*255,b:o*255}}function Cue(r,e,t){r=oa(r,255),e=oa(e,255),t=oa(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),o=0,s=n,d=n-i,f=n===0?0:d/n;if(n===i)o=0;else{switch(n){case r:o=(e-t)/d+(e<t?6:0);break;case e:o=(t-r)/d+2;break;case t:o=(r-e)/d+4;break}o/=6}return{h:o,s:f,v:s}}function Aue(r,e,t){r=oa(r,360)*6,e=oa(e,100),t=oa(t,100);var n=Math.floor(r),i=r-n,o=t*(1-e),s=t*(1-i*e),d=t*(1-(1-i)*e),f=n%6,p=[t,s,o,o,d,t][f],v=[d,t,t,s,o,o][f],m=[o,o,d,t,t,s][f];return{r:p*255,g:v*255,b:m*255}}function Mue(r,e,t,n){var i=[g3(Math.round(r).toString(16)),g3(Math.round(e).toString(16)),g3(Math.round(t).toString(16))];return i.join("")}function Rk(r){return Bi(r)/255}function Bi(r){return parseInt(r,16)}var $k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function jf(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,o=null,s=!1,d=!1;return typeof r=="string"&&(r=kue(r)),typeof r=="object"&&(tl(r.r)&&tl(r.g)&&tl(r.b)?(e=Pue(r.r,r.g,r.b),s=!0,d=String(r.r).substr(-1)==="%"?"prgb":"rgb"):tl(r.h)&&tl(r.s)&&tl(r.v)?(n=Dd(r.s),i=Dd(r.v),e=Aue(r.h,n,i),s=!0,d="hsv"):tl(r.h)&&tl(r.s)&&tl(r.l)&&(n=Dd(r.s),o=Dd(r.l),e=Tue(r.h,n,o),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=xue(t),{ok:s,format:r.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var _ue="[-\\+]?\\d+%?",Eue="[-\\+]?\\d*\\.\\d+%?",Fl="(?:".concat(Eue,")|(?:").concat(_ue,")"),b3="[\\s|\\(]+(".concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")\\s*\\)?"),y3="[\\s|\\(]+(".concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")[,|\\s]+(").concat(Fl,")\\s*\\)?"),Ia={CSS_UNIT:new RegExp(Fl),rgb:new RegExp("rgb"+b3),rgba:new RegExp("rgba"+y3),hsl:new RegExp("hsl"+b3),hsla:new RegExp("hsla"+y3),hsv:new RegExp("hsv"+b3),hsva:new RegExp("hsva"+y3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function kue(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if($k[r])r=$k[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ia.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ia.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ia.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=Ia.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ia.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=Ia.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ia.hex8.exec(r),t?{r:Bi(t[1]),g:Bi(t[2]),b:Bi(t[3]),a:Rk(t[4]),format:e?"name":"hex8"}:(t=Ia.hex6.exec(r),t?{r:Bi(t[1]),g:Bi(t[2]),b:Bi(t[3]),format:e?"name":"hex"}:(t=Ia.hex4.exec(r),t?{r:Bi(t[1]+t[1]),g:Bi(t[2]+t[2]),b:Bi(t[3]+t[3]),a:Rk(t[4]+t[4]),format:e?"name":"hex8"}:(t=Ia.hex3.exec(r),t?{r:Bi(t[1]+t[1]),g:Bi(t[2]+t[2]),b:Bi(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function tl(r){return!!Ia.CSS_UNIT.exec(String(r))}var Ld=2,Dk=.16,zue=.05,jue=.05,Rue=.15,Lk=5,Nk=4,$ue=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Vk(r){var e=r.r,t=r.g,n=r.b,i=Cue(e,t,n);return{h:i.h*360,s:i.s,v:i.v}}function Nd(r){var e=r.r,t=r.g,n=r.b;return"#".concat(Mue(e,t,n))}function Due(r,e,t){var n=t/100,i={r:(e.r-r.r)*n+r.r,g:(e.g-r.g)*n+r.g,b:(e.b-r.b)*n+r.b};return i}function Bk(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-Ld*e:Math.round(r.h)+Ld*e:n=t?Math.round(r.h)+Ld*e:Math.round(r.h)-Ld*e,n<0?n+=360:n>=360&&(n-=360),n}function Ik(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-Dk*e:e===Nk?n=r.s+Dk:n=r.s+zue*e,n>1&&(n=1),t&&e===Lk&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Hk(r,e,t){var n;return t?n=r.v+jue*e:n=r.v-Rue*e,n>1&&(n=1),Number(n.toFixed(2))}function S3(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=jf(r),i=Lk;i>0;i-=1){var o=Vk(n),s=Nd(jf({h:Bk(o,i,!0),s:Ik(o,i,!0),v:Hk(o,i,!0)}));t.push(s)}t.push(Nd(n));for(var d=1;d<=Nk;d+=1){var f=Vk(n),p=Nd(jf({h:Bk(f,d),s:Ik(f,d),v:Hk(f,d)}));t.push(p)}return e.theme==="dark"?$ue.map(function(v){var m=v.index,O=v.opacity,b=Nd(Due(jf(e.backgroundColor||"#141414"),jf(t[m]),O*100));return b}):t}var w3={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"},Vd={},x3={};Object.keys(w3).forEach(function(r){Vd[r]=S3(w3[r]),Vd[r].primary=Vd[r][5],x3[r]=S3(w3[r],{theme:"dark",backgroundColor:"#141414"}),x3[r].primary=x3[r][5]});var Lue=Vd.blue,Nue=Symbol("iconContext"),P3=function(){return A.inject(Nue,{prefixCls:A.ref("anticon"),rootClassName:A.ref(""),csp:A.ref()})};function T3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vue(r,e){return r&&r.contains?r.contains(e):!1}var Fk="data-vc-order",Bue="vc-icon-key",C3=new Map;function Qk(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Bue}function A3(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function Iue(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function Wk(r){return Array.from((C3.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function Uk(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!T3())return null;var t=e.csp,n=e.prepend,i=document.createElement("style");i.setAttribute(Fk,Iue(n)),t&&t.nonce&&(i.nonce=t.nonce),i.innerHTML=r;var o=A3(e),s=o.firstChild;if(n){if(n==="queue"){var d=Wk(o).filter(function(f){return["prepend","prependQueue"].includes(f.getAttribute(Fk))});if(d.length)return o.insertBefore(i,d[d.length-1].nextSibling),i}o.insertBefore(i,s)}else o.appendChild(i);return i}function Hue(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=A3(e);return Wk(t).find(function(n){return n.getAttribute(Qk(e))===r})}function Fue(r,e){var t=C3.get(r);if(!t||!Vue(document,t)){var n=Uk("",e),i=n.parentNode;C3.set(r,i),r.removeChild(n)}}function Que(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=A3(t);Fue(n,t);var i=Hue(e,t);if(i)return t.csp&&t.csp.nonce&&i.nonce!==t.csp.nonce&&(i.nonce=t.csp.nonce),i.innerHTML!==r&&(i.innerHTML=r),i;var o=Uk(r,t);return o.setAttribute(Qk(t),e),o}function Xk(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.forEach(function(i){Wue(r,i,t[i])})}return r}function Wue(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Uue(r,e){process.env.NODE_ENV!=="production"&&!r&&console!==void 0&&console.error("Warning: ".concat(e))}function M3(r,e){Uue(r,"[@ant-design/icons-vue] ".concat(e))}function Zk(r){return typeof r=="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(typeof r.icon=="object"||typeof r.icon=="function")}function _3(r,e,t){return t?A.h(r.tag,Xk({key:e},t,r.attrs),(r.children||[]).map(function(n,i){return _3(n,"".concat(e,"-").concat(r.tag,"-").concat(i))})):A.h(r.tag,Xk({key:e},r.attrs),(r.children||[]).map(function(n,i){return _3(n,"".concat(e,"-").concat(r.tag,"-").concat(i))}))}function qk(r){return S3(r)[0]}function Yk(r){return r?Array.isArray(r)?r:[r]:[]}var Xue={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Zue=`
|
|
10
10
|
.anticon {
|
|
11
11
|
display: inline-block;
|
|
12
12
|
color: inherit;
|