@szjy/workflow 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @szjy/workflow
2
+
3
+ 基于 vite + vue3 + typescript 的组件
@@ -0,0 +1,6 @@
1
+ import { App } from "vue";
2
+ declare const _default: {
3
+ SHello: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ install(app: App): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,156 @@
1
+ (function(l,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ce):(l=typeof globalThis<"u"?globalThis:l||self,l["szjy-workflow"]=ce(l.Vue))})(this,function(l){"use strict";const ce={name:"sz-hello"},lo=(e,r)=>{const o=e.__vccOpts||e;for(const[t,n]of r)o[t]=n;return o};function co(e,r,o,t,n,a){const s=l.resolveComponent("n-button");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createTextVNode(" This is Demo Hello "),l.createVNode(s,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode("Btn Naive UI")]),_:1})],64)}const Ie={SHello:lo(ce,[["render",co]])},sr={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},te="^\\s*",ne="\\s*$",Q="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Y="([0-9A-Fa-f])",X="([0-9A-Fa-f]{2})",uo=new RegExp(`${te}rgb\\s*\\(${Q},${Q},${Q}\\)${ne}`),fo=new RegExp(`${te}rgba\\s*\\(${Q},${Q},${Q},${Q}\\)${ne}`),po=new RegExp(`${te}#${Y}${Y}${Y}${ne}`),ho=new RegExp(`${te}#${X}${X}${X}${ne}`),bo=new RegExp(`${te}#${Y}${Y}${Y}${Y}${ne}`),go=new RegExp(`${te}#${X}${X}${X}${X}${ne}`);function N(e){return parseInt(e,16)}function J(e){try{let r;if(r=ho.exec(e))return[N(r[1]),N(r[2]),N(r[3]),1];if(r=uo.exec(e))return[F(r[1]),F(r[5]),F(r[9]),1];if(r=fo.exec(e))return[F(r[1]),F(r[5]),F(r[9]),de(r[13])];if(r=po.exec(e))return[N(r[1]+r[1]),N(r[2]+r[2]),N(r[3]+r[3]),1];if(r=go.exec(e))return[N(r[1]),N(r[2]),N(r[3]),de(N(r[4])/255)];if(r=bo.exec(e))return[N(r[1]+r[1]),N(r[2]+r[2]),N(r[3]+r[3]),de(N(r[4]+r[4])/255)];if(e in sr)return J(sr[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(r){throw r}}function mo(e){return e>1?1:e<0?0:e}function De(e,r,o,t){return`rgba(${F(e)}, ${F(r)}, ${F(o)}, ${mo(t)})`}function Me(e,r,o,t,n){return F((e*r*(1-t)+o*t)/n)}function Ne(e,r){Array.isArray(e)||(e=J(e)),Array.isArray(r)||(r=J(r));const o=e[3],t=r[3],n=de(o+t-o*t);return De(Me(e[0],o,r[0],t,n),Me(e[1],o,r[1],t,n),Me(e[2],o,r[2],t,n),n)}function me(e,r){const[o,t,n,a=1]=Array.isArray(e)?e:J(e);return r.alpha?De(o,t,n,r.alpha):De(o,t,n,a)}function xe(e,r){const[o,t,n,a=1]=Array.isArray(e)?e:J(e),{lightness:s=1,alpha:i=1}=r;return xo([o*s,t*s,n*s,a*i])}function de(e){const r=Math.round(Number(e)*100)/100;return r>1?1:r<0?0:r}function F(e){const r=Math.round(Number(e));return r>255?255:r<0?0:r}function xo(e){const[r,o,t]=e;return 3 in e?`rgba(${F(r)}, ${F(o)}, ${F(t)}, ${de(e[3])})`:`rgba(${F(r)}, ${F(o)}, ${F(t)}, 1)`}function lr(e,...r){if(Array.isArray(e))e.forEach(o=>lr(o,...r));else return e(...r)}const cr=new Set;function vo(e,r){const o=`[naive/${e}]: ${r}`;cr.has(o)||(cr.add(o),console.error(o))}function dr(e,r){throw new Error(`[naive/${e}]: ${r}`)}function fa(e){return e}function We(e){return e.some(r=>l.isVNode(r)?!(r.type===l.Comment||r.type===l.Fragment&&!We(r.children)):!0)?e:null}function ur(e,r){const o=e&&We(e());return r(o||null)}function yo(e){return!(e&&We(e()))}function fr(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Co(e){let r=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++r;return r}const pr=/\s*,(?![^(]*\))\s*/g,$o=/\s+/g;function wo(e,r){const o=[];return r.split(pr).forEach(t=>{let n=Co(t);if(n){if(n===1){e.forEach(s=>{o.push(t.replace("&",s))});return}}else{e.forEach(s=>{o.push((s&&s+" ")+t)});return}let a=[t];for(;n--;){const s=[];a.forEach(i=>{e.forEach(c=>{s.push(i.replace("&",c))})}),a=s}a.forEach(s=>o.push(s))}),o}function So(e,r){const o=[];return r.split(pr).forEach(t=>{e.forEach(n=>{o.push((n&&n+" ")+t)})}),o}function Po(e){let r=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?r=wo(r,o):r=So(r,o))}),r.join(", ").replace($o," ")}function hr(e){if(!e)return;const r=e.parentElement;r&&r.removeChild(e)}function ve(e){return document.querySelector(`style[cssr-id="${e}"]`)}function _o(e){const r=document.createElement("style");return r.setAttribute("cssr-id",e),r}function ye(e){return e?/^\s*@(s|m)/.test(e):!1}const To=/[A-Z]/g;function br(e){return e.replace(To,r=>"-"+r.toLowerCase())}function Eo(e,r=" "){return typeof e=="object"&&e!==null?` {
2
+ `+Object.entries(e).map(o=>r+` ${br(o[0])}: ${o[1]};`).join(`
3
+ `)+`
4
+ `+r+"}":`: ${e};`}function Ho(e,r,o){return typeof e=="function"?e({context:r.context,props:o}):e}function gr(e,r,o,t){if(!r)return"";const n=Ho(r,o,t);if(!n)return"";if(typeof n=="string")return`${e} {
5
+ ${n}
6
+ }`;const a=Object.keys(n);if(a.length===0)return o.config.keepEmptyBlock?e+` {
7
+ }`:"";const s=e?[e+" {"]:[];return a.forEach(i=>{const c=n[i];if(i==="raw"){s.push(`
8
+ `+c+`
9
+ `);return}i=br(i),c!=null&&s.push(` ${i}${Eo(c)}`)}),e&&s.push("}"),s.join(`
10
+ `)}function Ge(e,r,o){e&&e.forEach(t=>{if(Array.isArray(t))Ge(t,r,o);else if(typeof t=="function"){const n=t(r);Array.isArray(n)?Ge(n,r,o):n&&o(n)}else t&&o(t)})}function mr(e,r,o,t,n,a){const s=e.$;let i="";if(!s||typeof s=="string")ye(s)?i=s:r.push(s);else if(typeof s=="function"){const b=s({context:t.context,props:n});ye(b)?i=b:r.push(b)}else if(s.before&&s.before(t.context),!s.$||typeof s.$=="string")ye(s.$)?i=s.$:r.push(s.$);else if(s.$){const b=s.$({context:t.context,props:n});ye(b)?i=b:r.push(b)}const c=Po(r),h=gr(c,e.props,t,n);i?(o.push(`${i} {`),a&&h&&a.insertRule(`${i} {
11
+ ${h}
12
+ }
13
+ `)):(a&&h&&a.insertRule(h),!a&&h.length&&o.push(h)),e.children&&Ge(e.children,{context:t.context,props:n},b=>{if(typeof b=="string"){const m=gr(c,{raw:b},t,n);a?a.insertRule(m):o.push(m)}else mr(b,r,o,t,n,a)}),r.pop(),i&&o.push("}"),s&&s.after&&s.after(t.context)}function xr(e,r,o,t=!1){const n=[];return mr(e,[],n,r,o,t?e.instance.__styleSheet:void 0),t?"":n.join(`
14
+
15
+ `)}function Le(e){for(var r=0,o,t=0,n=e.length;n>=4;++t,n-=4)o=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,r=(o&65535)*1540483477+((o>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(t+2)&255)<<16;case 2:r^=(e.charCodeAt(t+1)&255)<<8;case 1:r^=e.charCodeAt(t)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Oo(e,r,o){const{els:t}=r;if(o===void 0)t.forEach(hr),r.els=[];else{const n=ve(o);n&&t.includes(n)&&(hr(n),r.els=t.filter(a=>a!==n))}}function vr(e,r){e.push(r)}function Ro(e,r,o,t,n,a,s,i,c){if(a&&!c){if(o===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const O=window.__cssrContext;O[o]||(O[o]=!0,xr(r,e,t,a));return}let h;if(o===void 0&&(h=r.render(t),o=Le(h)),c){c.adapter(o,h??r.render(t));return}const b=ve(o);if(b!==null&&!s)return b;const m=b??_o(o);if(h===void 0&&(h=r.render(t)),m.textContent=h,b!==null)return b;if(i){const O=document.head.querySelector(`meta[name="${i}"]`);if(O)return document.head.insertBefore(m,O),vr(r.els,m),m}return n?document.head.insertBefore(m,document.head.querySelector("style, link")):document.head.appendChild(m),vr(r.els,m),m}function Ao(e){return xr(this,this.instance,e)}function zo(e={}){const{id:r,ssr:o,props:t,head:n=!1,silent:a=!1,force:s=!1,anchorMetaName:i}=e;return Ro(this.instance,this,r,t,n,a,s,i,o)}function Bo(e={}){const{id:r}=e;Oo(this.instance,this,r)}const Ce=function(e,r,o,t){return{instance:e,$:r,props:o,children:t,els:[],render:Ao,mount:zo,unmount:Bo}},jo=function(e,r,o,t){return Array.isArray(r)?Ce(e,{$:null},null,r):Array.isArray(o)?Ce(e,r,null,o):Array.isArray(t)?Ce(e,r,o,t):Ce(e,r,o,null)};function Fo(e={}){let r=null;const o={c:(...t)=>jo(o,...t),use:(t,...n)=>t.install(o,...n),find:ve,context:{},config:e,get __styleSheet(){if(!r){const t=document.createElement("style");return document.head.appendChild(t),r=document.styleSheets[document.styleSheets.length-1],r}return r}};return o}function Io(e,r){if(e===void 0)return!1;if(r){const{context:{ids:o}}=r;return o.has(e)}return ve(e)!==null}function Do(e){let r=".",o="__",t="--",n;if(e){let d=e.blockPrefix;d&&(r=d),d=e.elementPrefix,d&&(o=d),d=e.modifierPrefix,d&&(t=d)}const a={install(d){n=d.c;const S=d.context;S.bem={},S.bem.b=null,S.bem.els=null}};function s(d){let S,x;return{before(f){S=f.bem.b,x=f.bem.els,f.bem.els=null},after(f){f.bem.b=S,f.bem.els=x},$({context:f,props:w}){return d=typeof d=="string"?d:d({context:f,props:w}),f.bem.b=d,`${(w==null?void 0:w.bPrefix)||r}${f.bem.b}`}}}function i(d){let S;return{before(x){S=x.bem.els},after(x){x.bem.els=S},$({context:x,props:f}){return d=typeof d=="string"?d:d({context:x,props:f}),x.bem.els=d.split(",").map(w=>w.trim()),x.bem.els.map(w=>`${(f==null?void 0:f.bPrefix)||r}${x.bem.b}${o}${w}`).join(", ")}}}function c(d){return{$({context:S,props:x}){d=typeof d=="string"?d:d({context:S,props:x});const f=d.split(",").map(g=>g.trim());function w(g){return f.map(y=>`&${(x==null?void 0:x.bPrefix)||r}${S.bem.b}${g!==void 0?`${o}${g}`:""}${t}${y}`).join(", ")}const R=S.bem.els;if(R!==null){if(process.env.NODE_ENV!=="production"&&R.length>=2)throw Error(`[css-render/plugin-bem]: m(${d}) is invalid, using modifier inside multiple elements is not allowed`);return w(R[0])}else return w()}}}function h(d){return{$({context:S,props:x}){d=typeof d=="string"?d:d({context:S,props:x});const f=S.bem.els;if(process.env.NODE_ENV!=="production"&&f!==null&&f.length>=2)throw Error(`[css-render/plugin-bem]: notM(${d}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(x==null?void 0:x.bPrefix)||r}${S.bem.b}${f!==null&&f.length>0?`${o}${f[0]}`:""}${t}${d})`}}}return Object.assign(a,{cB:(...d)=>n(s(d[0]),d[1],d[2]),cE:(...d)=>n(i(d[0]),d[1],d[2]),cM:(...d)=>n(c(d[0]),d[1],d[2]),cNotM:(...d)=>n(h(d[0]),d[1],d[2])}),a}const Mo=".n-",No="__",Wo="--",yr=Fo(),Cr=Do({blockPrefix:Mo,elementPrefix:No,modifierPrefix:Wo});yr.use(Cr);const{c:T,find:ha}=yr,{cB:ue,cE:H,cM:L,cNotM:$r}=Cr;function v(e,r){return e+(r==="default"?"":r.replace(/^[a-z]/,o=>o.toUpperCase()))}const $e=typeof document<"u"&&typeof window<"u";function Go(e){const r=l.computed(e),o=l.ref(r.value);return l.watch(r,t=>{o.value=t}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(t){e.set(t)}}}function Lo(){const e=l.ref(!1);return l.onMounted(()=>{e.value=!0}),l.readonly(e)}const wr=Symbol("@css-render/vue3-ssr");function ko(e,r){return`<style cssr-id="${e}">
16
+ ${r}
17
+ </style>`}function Vo(e,r){const o=l.inject(wr,null);if(o===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:t,ids:n}=o;n.has(e)||t!==null&&(n.add(e),t.push(ko(e,r)))}const Uo=typeof document<"u";function we(){if(Uo)return;const e=l.inject(wr,null);if(e!==null)return{adapter:Vo,context:e}}const Sr="n-form-item";function qo(e,{defaultSize:r="medium",mergedSize:o,mergedDisabled:t}={}){const n=l.inject(Sr,null);l.provide(Sr,null);const a=l.computed(o?()=>o(n):()=>{const{size:c}=e;if(c)return c;if(n){const{mergedSize:h}=n;if(h.value!==void 0)return h.value}return r}),s=l.computed(t?()=>t(n):()=>{const{disabled:c}=e;return c!==void 0?c:n?n.disabled.value:!1}),i=l.computed(()=>{const{status:c}=e;return c||(n==null?void 0:n.mergedValidationStatus.value)});return l.onBeforeUnmount(()=>{n&&n.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:i,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var Pr=typeof global=="object"&&global&&global.Object===Object&&global,Ko=typeof self=="object"&&self&&self.Object===Object&&self,ie=Pr||Ko||Function("return this")(),Se=ie.Symbol,_r=Object.prototype,Qo=_r.hasOwnProperty,Yo=_r.toString,fe=Se?Se.toStringTag:void 0;function Xo(e){var r=Qo.call(e,fe),o=e[fe];try{e[fe]=void 0;var t=!0}catch{}var n=Yo.call(e);return t&&(r?e[fe]=o:delete e[fe]),n}var Jo=Object.prototype,Zo=Jo.toString;function et(e){return Zo.call(e)}var rt="[object Null]",ot="[object Undefined]",Tr=Se?Se.toStringTag:void 0;function Pe(e){return e==null?e===void 0?ot:rt:Tr&&Tr in Object(e)?Xo(e):et(e)}function pe(e){return e!=null&&typeof e=="object"}var ke=Array.isArray;function Z(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function Er(e){return e}var tt="[object AsyncFunction]",nt="[object Function]",it="[object GeneratorFunction]",at="[object Proxy]";function Ve(e){if(!Z(e))return!1;var r=Pe(e);return r==nt||r==it||r==tt||r==at}var Ue=ie["__core-js_shared__"],Hr=function(){var e=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function st(e){return!!Hr&&Hr in e}var lt=Function.prototype,ct=lt.toString;function dt(e){if(e!=null){try{return ct.call(e)}catch{}try{return e+""}catch{}}return""}var ut=/[\\^$.*+?()[\]{}|]/g,ft=/^\[object .+?Constructor\]$/,pt=Function.prototype,ht=Object.prototype,bt=pt.toString,gt=ht.hasOwnProperty,mt=RegExp("^"+bt.call(gt).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xt(e){if(!Z(e)||st(e))return!1;var r=Ve(e)?mt:ft;return r.test(dt(e))}function vt(e,r){return e==null?void 0:e[r]}function qe(e,r){var o=vt(e,r);return xt(o)?o:void 0}var Or=Object.create,yt=function(){function e(){}return function(r){if(!Z(r))return{};if(Or)return Or(r);e.prototype=r;var o=new e;return e.prototype=void 0,o}}();function Ct(e,r,o){switch(o.length){case 0:return e.call(r);case 1:return e.call(r,o[0]);case 2:return e.call(r,o[0],o[1]);case 3:return e.call(r,o[0],o[1],o[2])}return e.apply(r,o)}function $t(e,r){var o=-1,t=e.length;for(r||(r=Array(t));++o<t;)r[o]=e[o];return r}var wt=800,St=16,Pt=Date.now;function _t(e){var r=0,o=0;return function(){var t=Pt(),n=St-(t-o);if(o=t,n>0){if(++r>=wt)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}function Tt(e){return function(){return e}}var _e=function(){try{var e=qe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Et=_e?function(e,r){return _e(e,"toString",{configurable:!0,enumerable:!1,value:Tt(r),writable:!0})}:Er,Ht=_t(Et),Ot=9007199254740991,Rt=/^(?:0|[1-9]\d*)$/;function Rr(e,r){var o=typeof e;return r=r??Ot,!!r&&(o=="number"||o!="symbol"&&Rt.test(e))&&e>-1&&e%1==0&&e<r}function Ke(e,r,o){r=="__proto__"&&_e?_e(e,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[r]=o}function Te(e,r){return e===r||e!==e&&r!==r}var At=Object.prototype,zt=At.hasOwnProperty;function Bt(e,r,o){var t=e[r];(!(zt.call(e,r)&&Te(t,o))||o===void 0&&!(r in e))&&Ke(e,r,o)}function jt(e,r,o,t){var n=!o;o||(o={});for(var a=-1,s=r.length;++a<s;){var i=r[a],c=t?t(o[i],e[i],i,o,e):void 0;c===void 0&&(c=e[i]),n?Ke(o,i,c):Bt(o,i,c)}return o}var Ar=Math.max;function Ft(e,r,o){return r=Ar(r===void 0?e.length-1:r,0),function(){for(var t=arguments,n=-1,a=Ar(t.length-r,0),s=Array(a);++n<a;)s[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=o(s),Ct(e,this,i)}}function It(e,r){return Ht(Ft(e,r,Er),e+"")}var Dt=9007199254740991;function zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dt}function Qe(e){return e!=null&&zr(e.length)&&!Ve(e)}function Mt(e,r,o){if(!Z(o))return!1;var t=typeof r;return(t=="number"?Qe(o)&&Rr(r,o.length):t=="string"&&r in o)?Te(o[r],e):!1}function Nt(e){return It(function(r,o){var t=-1,n=o.length,a=n>1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,s&&Mt(o[0],o[1],s)&&(a=n<3?void 0:a,n=1),r=Object(r);++t<n;){var i=o[t];i&&e(r,i,t,a)}return r})}var Wt=Object.prototype;function Br(e){var r=e&&e.constructor,o=typeof r=="function"&&r.prototype||Wt;return e===o}function Gt(e,r){for(var o=-1,t=Array(e);++o<e;)t[o]=r(o);return t}var Lt="[object Arguments]";function jr(e){return pe(e)&&Pe(e)==Lt}var Fr=Object.prototype,kt=Fr.hasOwnProperty,Vt=Fr.propertyIsEnumerable,Ut=jr(function(){return arguments}())?jr:function(e){return pe(e)&&kt.call(e,"callee")&&!Vt.call(e,"callee")};const Ye=Ut;function qt(){return!1}var Ir=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dr=Ir&&typeof module=="object"&&module&&!module.nodeType&&module,Kt=Dr&&Dr.exports===Ir,Mr=Kt?ie.Buffer:void 0,Qt=Mr?Mr.isBuffer:void 0,Nr=Qt||qt,Yt="[object Arguments]",Xt="[object Array]",Jt="[object Boolean]",Zt="[object Date]",en="[object Error]",rn="[object Function]",on="[object Map]",tn="[object Number]",nn="[object Object]",an="[object RegExp]",sn="[object Set]",ln="[object String]",cn="[object WeakMap]",dn="[object ArrayBuffer]",un="[object DataView]",fn="[object Float32Array]",pn="[object Float64Array]",hn="[object Int8Array]",bn="[object Int16Array]",gn="[object Int32Array]",mn="[object Uint8Array]",xn="[object Uint8ClampedArray]",vn="[object Uint16Array]",yn="[object Uint32Array]",P={};P[fn]=P[pn]=P[hn]=P[bn]=P[gn]=P[mn]=P[xn]=P[vn]=P[yn]=!0,P[Yt]=P[Xt]=P[dn]=P[Jt]=P[un]=P[Zt]=P[en]=P[rn]=P[on]=P[tn]=P[nn]=P[an]=P[sn]=P[ln]=P[cn]=!1;function Cn(e){return pe(e)&&zr(e.length)&&!!P[Pe(e)]}function $n(e){return function(r){return e(r)}}var Wr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,he=Wr&&typeof module=="object"&&module&&!module.nodeType&&module,wn=he&&he.exports===Wr,Xe=wn&&Pr.process,Gr=function(){try{var e=he&&he.require&&he.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Lr=Gr&&Gr.isTypedArray,kr=Lr?$n(Lr):Cn,Sn=Object.prototype,Pn=Sn.hasOwnProperty;function _n(e,r){var o=ke(e),t=!o&&Ye(e),n=!o&&!t&&Nr(e),a=!o&&!t&&!n&&kr(e),s=o||t||n||a,i=s?Gt(e.length,String):[],c=i.length;for(var h in e)(r||Pn.call(e,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Rr(h,c)))&&i.push(h);return i}function Tn(e,r){return function(o){return e(r(o))}}function En(e){var r=[];if(e!=null)for(var o in Object(e))r.push(o);return r}var Hn=Object.prototype,On=Hn.hasOwnProperty;function Rn(e){if(!Z(e))return En(e);var r=Br(e),o=[];for(var t in e)t=="constructor"&&(r||!On.call(e,t))||o.push(t);return o}function Vr(e){return Qe(e)?_n(e,!0):Rn(e)}var be=qe(Object,"create");function An(){this.__data__=be?be(null):{},this.size=0}function zn(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Bn="__lodash_hash_undefined__",jn=Object.prototype,Fn=jn.hasOwnProperty;function In(e){var r=this.__data__;if(be){var o=r[e];return o===Bn?void 0:o}return Fn.call(r,e)?r[e]:void 0}var Dn=Object.prototype,Mn=Dn.hasOwnProperty;function Nn(e){var r=this.__data__;return be?r[e]!==void 0:Mn.call(r,e)}var Wn="__lodash_hash_undefined__";function Gn(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=be&&r===void 0?Wn:r,this}function ee(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}ee.prototype.clear=An,ee.prototype.delete=zn,ee.prototype.get=In,ee.prototype.has=Nn,ee.prototype.set=Gn;function Ln(){this.__data__=[],this.size=0}function Ee(e,r){for(var o=e.length;o--;)if(Te(e[o][0],r))return o;return-1}var kn=Array.prototype,Vn=kn.splice;function Un(e){var r=this.__data__,o=Ee(r,e);if(o<0)return!1;var t=r.length-1;return o==t?r.pop():Vn.call(r,o,1),--this.size,!0}function qn(e){var r=this.__data__,o=Ee(r,e);return o<0?void 0:r[o][1]}function Kn(e){return Ee(this.__data__,e)>-1}function Qn(e,r){var o=this.__data__,t=Ee(o,e);return t<0?(++this.size,o.push([e,r])):o[t][1]=r,this}function V(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}V.prototype.clear=Ln,V.prototype.delete=Un,V.prototype.get=qn,V.prototype.has=Kn,V.prototype.set=Qn;var Ur=qe(ie,"Map");function Yn(){this.size=0,this.__data__={hash:new ee,map:new(Ur||V),string:new ee}}function Xn(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function He(e,r){var o=e.__data__;return Xn(r)?o[typeof r=="string"?"string":"hash"]:o.map}function Jn(e){var r=He(this,e).delete(e);return this.size-=r?1:0,r}function Zn(e){return He(this,e).get(e)}function ei(e){return He(this,e).has(e)}function ri(e,r){var o=He(this,e),t=o.size;return o.set(e,r),this.size+=o.size==t?0:1,this}function ae(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}ae.prototype.clear=Yn,ae.prototype.delete=Jn,ae.prototype.get=Zn,ae.prototype.has=ei,ae.prototype.set=ri;var qr=Tn(Object.getPrototypeOf,Object),oi="[object Object]",ti=Function.prototype,ni=Object.prototype,Kr=ti.toString,ii=ni.hasOwnProperty,ai=Kr.call(Object);function si(e){if(!pe(e)||Pe(e)!=oi)return!1;var r=qr(e);if(r===null)return!0;var o=ii.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&Kr.call(o)==ai}function li(){this.__data__=new V,this.size=0}function ci(e){var r=this.__data__,o=r.delete(e);return this.size=r.size,o}function di(e){return this.__data__.get(e)}function ui(e){return this.__data__.has(e)}var fi=200;function pi(e,r){var o=this.__data__;if(o instanceof V){var t=o.__data__;if(!Ur||t.length<fi-1)return t.push([e,r]),this.size=++o.size,this;o=this.__data__=new ae(t)}return o.set(e,r),this.size=o.size,this}function se(e){var r=this.__data__=new V(e);this.size=r.size}se.prototype.clear=li,se.prototype.delete=ci,se.prototype.get=di,se.prototype.has=ui,se.prototype.set=pi;var Qr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yr=Qr&&typeof module=="object"&&module&&!module.nodeType&&module,hi=Yr&&Yr.exports===Qr,Xr=hi?ie.Buffer:void 0,Jr=Xr?Xr.allocUnsafe:void 0;function bi(e,r){if(r)return e.slice();var o=e.length,t=Jr?Jr(o):new e.constructor(o);return e.copy(t),t}var Zr=ie.Uint8Array;function gi(e){var r=new e.constructor(e.byteLength);return new Zr(r).set(new Zr(e)),r}function mi(e,r){var o=r?gi(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function xi(e){return typeof e.constructor=="function"&&!Br(e)?yt(qr(e)):{}}function vi(e){return function(r,o,t){for(var n=-1,a=Object(r),s=t(r),i=s.length;i--;){var c=s[e?i:++n];if(o(a[c],c,a)===!1)break}return r}}var yi=vi();function Je(e,r,o){(o!==void 0&&!Te(e[r],o)||o===void 0&&!(r in e))&&Ke(e,r,o)}function Ci(e){return pe(e)&&Qe(e)}function Ze(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}function $i(e){return jt(e,Vr(e))}function wi(e,r,o,t,n,a,s){var i=Ze(e,o),c=Ze(r,o),h=s.get(c);if(h){Je(e,o,h);return}var b=a?a(i,c,o+"",e,r,s):void 0,m=b===void 0;if(m){var O=ke(c),C=!O&&Nr(c),d=!O&&!C&&kr(c);b=c,O||C||d?ke(i)?b=i:Ci(i)?b=$t(i):C?(m=!1,b=bi(c,!0)):d?(m=!1,b=mi(c,!0)):b=[]:si(c)||Ye(c)?(b=i,Ye(i)?b=$i(i):(!Z(i)||Ve(i))&&(b=xi(c))):m=!1}m&&(s.set(c,b),n(b,c,t,a,s),s.delete(c)),Je(e,o,b)}function eo(e,r,o,t,n){e!==r&&yi(r,function(a,s){if(n||(n=new se),Z(a))wi(e,r,s,o,eo,t,n);else{var i=t?t(Ze(e,s),a,s+"",e,r,n):void 0;i===void 0&&(i=a),Je(e,s,i)}},Vr)}var Oe=Nt(function(e,r,o){eo(e,r,o)});const Re={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Si,fontFamily:Pi,lineHeight:_i}=Re,ro=T("body",`
18
+ margin: 0;
19
+ font-size: ${Si};
20
+ font-family: ${Pi};
21
+ line-height: ${_i};
22
+ -webkit-text-size-adjust: 100%;
23
+ -webkit-tap-highlight-color: transparent;
24
+ `,[T("input",`
25
+ font-family: inherit;
26
+ font-size: inherit;
27
+ `)]),Ae="n-config-provider",ge="naive-ui-style";function er(e,r,o,t,n,a){const s=we(),i=l.inject(Ae,null);if(o){const h=()=>{const b=a==null?void 0:a.value;o.mount({id:b===void 0?r:b+r,head:!0,props:{bPrefix:b?`.${b}-`:void 0},anchorMetaName:ge,ssr:s}),i!=null&&i.preflightStyleDisabled||ro.mount({id:"n-global",head:!0,anchorMetaName:ge,ssr:s})};s?h():l.onBeforeMount(h)}return l.computed(()=>{var h;const{theme:{common:b,self:m,peers:O={}}={},themeOverrides:C={},builtinThemeOverrides:d={}}=n,{common:S,peers:x}=C,{common:f=void 0,[e]:{common:w=void 0,self:R=void 0,peers:g={}}={}}=(i==null?void 0:i.mergedThemeRef.value)||{},{common:y=void 0,[e]:E={}}=(i==null?void 0:i.mergedThemeOverridesRef.value)||{},{common:u,peers:D={}}=E,j=Oe({},b||w||f||t.common,y,u,S),k=Oe((h=m||R||t.self)===null||h===void 0?void 0:h(j),d,E,C);return{common:j,self:k,peers:Oe({},t.peers,g,O),peerOverrides:Oe({},d.peers,D,x)}})}er.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Ti="n";function Ei(e={},r={defaultBordered:!0}){const o=l.inject(Ae,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:l.computed(()=>{var t,n;const{bordered:a}=e;return a!==void 0?a:(n=(t=o==null?void 0:o.mergedBorderedRef.value)!==null&&t!==void 0?t:r.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:l.shallowRef(Ti),namespaceRef:l.computed(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function oo(e,r,o){if(!r){process.env.NODE_ENV!=="production"&&dr("use-style","No style is specified.");return}const t=we(),n=l.inject(Ae,null),a=()=>{const s=o.value;r.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:ge,props:{bPrefix:s?`.${s}-`:void 0},ssr:t}),n!=null&&n.preflightStyleDisabled||ro.mount({id:"n-global",head:!0,anchorMetaName:ge,ssr:t})};t?a():l.onBeforeMount(a)}function Hi(e,r,o,t){var n;o||dr("useThemeClass","cssVarsRef is not passed");const a=(n=l.inject(Ae,null))===null||n===void 0?void 0:n.mergedThemeHashRef,s=l.ref(""),i=we();let c;const h=`__${e}`,b=()=>{let m=h;const O=r?r.value:void 0,C=a==null?void 0:a.value;C&&(m+="-"+C),O&&(m+="-"+O);const{themeOverrides:d,builtinThemeOverrides:S}=t;d&&(m+="-"+Le(JSON.stringify(d))),S&&(m+="-"+Le(JSON.stringify(S))),s.value=m,c=()=>{const x=o.value;let f="";for(const w in x)f+=`${w}: ${x[w]};`;T(`.${m}`,f).mount({id:m,ssr:i}),c=void 0}};return l.watchEffect(()=>{b()}),{themeClass:s,onRender:()=>{c==null||c()}}}function Oi(e,r,o){if(!r)return;const t=we(),n=l.computed(()=>{const{value:s}=r;if(!s)return;const i=s[e];if(i)return i}),a=()=>{l.watchEffect(()=>{const{value:s}=o,i=`${s}${e}Rtl`;if(Io(i,t))return;const{value:c}=n;c&&c.style.mount({id:i,head:!0,anchorMetaName:ge,props:{bPrefix:s?`.${s}-`:void 0},ssr:t})})};return t?a():l.onBeforeMount(a),n}const to=l.defineComponent({name:"BaseIconSwitchTransition",setup(e,{slots:r}){const o=Lo();return()=>l.h(l.Transition,{name:"icon-switch-transition",appear:o.value},r)}}),Ri=l.defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:r}){function o(i){e.width?i.style.maxWidth=`${i.offsetWidth}px`:i.style.maxHeight=`${i.offsetHeight}px`,i.offsetWidth}function t(i){e.width?i.style.maxWidth="0":i.style.maxHeight="0",i.offsetWidth;const{onLeave:c}=e;c&&c()}function n(i){e.width?i.style.maxWidth="":i.style.maxHeight="";const{onAfterLeave:c}=e;c&&c()}function a(i){if(i.style.transition="none",e.width){const c=i.offsetWidth;i.style.maxWidth="0",i.offsetWidth,i.style.transition="",i.style.maxWidth=`${c}px`}else if(e.reverse)i.style.maxHeight=`${i.offsetHeight}px`,i.offsetHeight,i.style.transition="",i.style.maxHeight="0";else{const c=i.offsetHeight;i.style.maxHeight="0",i.offsetWidth,i.style.transition="",i.style.maxHeight=`${c}px`}i.offsetWidth}function s(i){var c;e.width?i.style.maxWidth="":e.reverse||(i.style.maxHeight=""),(c=e.onAfterEnter)===null||c===void 0||c.call(e)}return()=>{const{group:i,width:c,appear:h,mode:b}=e,m=i?l.TransitionGroup:l.Transition,O={name:c?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:h,onEnter:a,onAfterEnter:s,onBeforeLeave:o,onLeave:t,onAfterLeave:n};return i||(O.mode=b),l.h(m,O,r)}}}),{cubicBezierEaseInOut:Ai}=Re;function rr({originalTransform:e="",left:r=0,top:o=0,transition:t=`all .3s ${Ai} !important`}={}){return[T("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:r,top:o,opacity:0}),T("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:r,top:o,opacity:1}),T("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:r,top:o,transition:t})]}const zi=T([T("@keyframes rotator",`
28
+ 0% {
29
+ -webkit-transform: rotate(0deg);
30
+ transform: rotate(0deg);
31
+ }
32
+ 100% {
33
+ -webkit-transform: rotate(360deg);
34
+ transform: rotate(360deg);
35
+ }`),ue("base-loading",`
36
+ position: relative;
37
+ line-height: 0;
38
+ width: 1em;
39
+ height: 1em;
40
+ `,[H("transition-wrapper",`
41
+ position: absolute;
42
+ width: 100%;
43
+ height: 100%;
44
+ `,[rr()]),H("placeholder",`
45
+ position: absolute;
46
+ left: 50%;
47
+ top: 50%;
48
+ transform: translateX(-50%) translateY(-50%);
49
+ `,[rr({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),H("container",`
50
+ animation: rotator 3s linear infinite both;
51
+ `,[H("icon",`
52
+ height: 1em;
53
+ width: 1em;
54
+ `)])])]),or="1.6s",Bi={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ji=l.defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},Bi),setup(e){oo("-base-loading",zi,l.toRef(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:r,strokeWidth:o,stroke:t,scale:n}=this,a=r/n;return l.h("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},l.h(to,null,{default:()=>this.show?l.h("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},l.h("div",{class:`${e}-base-loading__container`},l.h("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:t}},l.h("g",null,l.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};270 ${a} ${a}`,begin:"0s",dur:or,fill:"freeze",repeatCount:"indefinite"}),l.h("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:a,cy:a,r:r-o/2,"stroke-dasharray":5.67*r,"stroke-dashoffset":18.48*r},l.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:"0s",dur:or,fill:"freeze",repeatCount:"indefinite"}),l.h("animate",{attributeName:"stroke-dashoffset",values:`${5.67*r};${1.42*r};${5.67*r}`,begin:"0s",dur:or,fill:"freeze",repeatCount:"indefinite"})))))):l.h("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),p={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Fi=J(p.neutralBase),no=J(p.neutralInvertBase),Ii="rgba("+no.slice(0,3).join(", ")+", ";function io(e){return Ii+String(e)+")"}function I(e){const r=Array.from(no);return r[3]=Number(e),Ne(Fi,r)}const Di=Object.assign(Object.assign({name:"common"},Re),{baseColor:p.neutralBase,primaryColor:p.primaryDefault,primaryColorHover:p.primaryHover,primaryColorPressed:p.primaryActive,primaryColorSuppl:p.primarySuppl,infoColor:p.infoDefault,infoColorHover:p.infoHover,infoColorPressed:p.infoActive,infoColorSuppl:p.infoSuppl,successColor:p.successDefault,successColorHover:p.successHover,successColorPressed:p.successActive,successColorSuppl:p.successSuppl,warningColor:p.warningDefault,warningColorHover:p.warningHover,warningColorPressed:p.warningActive,warningColorSuppl:p.warningSuppl,errorColor:p.errorDefault,errorColorHover:p.errorHover,errorColorPressed:p.errorActive,errorColorSuppl:p.errorSuppl,textColorBase:p.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:I(p.alpha4),placeholderColor:I(p.alpha4),placeholderColorDisabled:I(p.alpha5),iconColor:I(p.alpha4),iconColorHover:xe(I(p.alpha4),{lightness:.75}),iconColorPressed:xe(I(p.alpha4),{lightness:.9}),iconColorDisabled:I(p.alpha5),opacity1:p.alpha1,opacity2:p.alpha2,opacity3:p.alpha3,opacity4:p.alpha4,opacity5:p.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:I(Number(p.alphaClose)),closeIconColorHover:I(Number(p.alphaClose)),closeIconColorPressed:I(Number(p.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:I(p.alpha4),clearColorHover:xe(I(p.alpha4),{lightness:.75}),clearColorPressed:xe(I(p.alpha4),{lightness:.9}),scrollbarColor:io(p.alphaScrollbar),scrollbarColorHover:io(p.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:I(p.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:p.neutralPopover,tableColor:p.neutralCard,cardColor:p.neutralCard,modalColor:p.neutralModal,bodyColor:p.neutralBody,tagColor:"#eee",avatarColor:I(p.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:I(p.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:p.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Mi=ue("base-wave",`
55
+ position: absolute;
56
+ left: 0;
57
+ right: 0;
58
+ top: 0;
59
+ bottom: 0;
60
+ border-radius: inherit;
61
+ `),Ni=l.defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){oo("-base-wave",Mi,l.toRef(e,"clsPrefix"));const r=l.ref(null),o=l.ref(!1);let t=null;return l.onBeforeUnmount(()=>{t!==null&&window.clearTimeout(t)}),{active:o,selfRef:r,play(){t!==null&&(window.clearTimeout(t),o.value=!1,t=null),l.nextTick(()=>{var n;(n=r.value)===null||n===void 0||n.offsetHeight,o.value=!0,t=window.setTimeout(()=>{o.value=!1,t=null},1e3)})}}},render(){const{clsPrefix:e}=this;return l.h("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:q}=Re;function Wi({duration:e=".2s",delay:r=".1s"}={}){return[T("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),T("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
62
+ opacity: 0!important;
63
+ margin-left: 0!important;
64
+ margin-right: 0!important;
65
+ `),T("&.fade-in-width-expand-transition-leave-active",`
66
+ overflow: hidden;
67
+ transition:
68
+ opacity ${e} ${q},
69
+ max-width ${e} ${q} ${r},
70
+ margin-left ${e} ${q} ${r},
71
+ margin-right ${e} ${q} ${r};
72
+ `),T("&.fade-in-width-expand-transition-enter-active",`
73
+ overflow: hidden;
74
+ transition:
75
+ opacity ${e} ${q} ${r},
76
+ max-width ${e} ${q},
77
+ margin-left ${e} ${q},
78
+ margin-right ${e} ${q};
79
+ `)]}const Gi=$e&&"chrome"in window;$e&&navigator.userAgent.includes("Firefox");const Li=$e&&navigator.userAgent.includes("Safari")&&!Gi;function re(e){return Ne(e,[255,255,255,.16])}function ze(e){return Ne(e,[0,0,0,.12])}const ki="n-button-group",Vi={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Ui={name:"Button",common:Di,self:e=>{const{heightTiny:r,heightSmall:o,heightMedium:t,heightLarge:n,borderRadius:a,fontSizeTiny:s,fontSizeSmall:i,fontSizeMedium:c,fontSizeLarge:h,opacityDisabled:b,textColor2:m,textColor3:O,primaryColorHover:C,primaryColorPressed:d,borderColor:S,primaryColor:x,baseColor:f,infoColor:w,infoColorHover:R,infoColorPressed:g,successColor:y,successColorHover:E,successColorPressed:u,warningColor:D,warningColorHover:j,warningColorPressed:k,errorColor:W,errorColorHover:B,errorColorPressed:K,fontWeight:U,buttonColor2:le,buttonColor2Hover:G,buttonColor2Pressed:_,fontWeightStrong:Be}=e;return Object.assign(Object.assign({},Vi),{heightTiny:r,heightSmall:o,heightMedium:t,heightLarge:n,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:s,fontSizeSmall:i,fontSizeMedium:c,fontSizeLarge:h,opacityDisabled:b,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:le,colorSecondaryHover:G,colorSecondaryPressed:_,colorTertiary:le,colorTertiaryHover:G,colorTertiaryPressed:_,colorQuaternary:"#0000",colorQuaternaryHover:G,colorQuaternaryPressed:_,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:m,textColorTertiary:O,textColorHover:C,textColorPressed:d,textColorFocus:C,textColorDisabled:m,textColorText:m,textColorTextHover:C,textColorTextPressed:d,textColorTextFocus:C,textColorTextDisabled:m,textColorGhost:m,textColorGhostHover:C,textColorGhostPressed:d,textColorGhostFocus:C,textColorGhostDisabled:m,border:`1px solid ${S}`,borderHover:`1px solid ${C}`,borderPressed:`1px solid ${d}`,borderFocus:`1px solid ${C}`,borderDisabled:`1px solid ${S}`,rippleColor:x,colorPrimary:x,colorHoverPrimary:C,colorPressedPrimary:d,colorFocusPrimary:C,colorDisabledPrimary:x,textColorPrimary:f,textColorHoverPrimary:f,textColorPressedPrimary:f,textColorFocusPrimary:f,textColorDisabledPrimary:f,textColorTextPrimary:x,textColorTextHoverPrimary:C,textColorTextPressedPrimary:d,textColorTextFocusPrimary:C,textColorTextDisabledPrimary:m,textColorGhostPrimary:x,textColorGhostHoverPrimary:C,textColorGhostPressedPrimary:d,textColorGhostFocusPrimary:C,textColorGhostDisabledPrimary:x,borderPrimary:`1px solid ${x}`,borderHoverPrimary:`1px solid ${C}`,borderPressedPrimary:`1px solid ${d}`,borderFocusPrimary:`1px solid ${C}`,borderDisabledPrimary:`1px solid ${x}`,rippleColorPrimary:x,colorInfo:w,colorHoverInfo:R,colorPressedInfo:g,colorFocusInfo:R,colorDisabledInfo:w,textColorInfo:f,textColorHoverInfo:f,textColorPressedInfo:f,textColorFocusInfo:f,textColorDisabledInfo:f,textColorTextInfo:w,textColorTextHoverInfo:R,textColorTextPressedInfo:g,textColorTextFocusInfo:R,textColorTextDisabledInfo:m,textColorGhostInfo:w,textColorGhostHoverInfo:R,textColorGhostPressedInfo:g,textColorGhostFocusInfo:R,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${R}`,borderPressedInfo:`1px solid ${g}`,borderFocusInfo:`1px solid ${R}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:y,colorHoverSuccess:E,colorPressedSuccess:u,colorFocusSuccess:E,colorDisabledSuccess:y,textColorSuccess:f,textColorHoverSuccess:f,textColorPressedSuccess:f,textColorFocusSuccess:f,textColorDisabledSuccess:f,textColorTextSuccess:y,textColorTextHoverSuccess:E,textColorTextPressedSuccess:u,textColorTextFocusSuccess:E,textColorTextDisabledSuccess:m,textColorGhostSuccess:y,textColorGhostHoverSuccess:E,textColorGhostPressedSuccess:u,textColorGhostFocusSuccess:E,textColorGhostDisabledSuccess:y,borderSuccess:`1px solid ${y}`,borderHoverSuccess:`1px solid ${E}`,borderPressedSuccess:`1px solid ${u}`,borderFocusSuccess:`1px solid ${E}`,borderDisabledSuccess:`1px solid ${y}`,rippleColorSuccess:y,colorWarning:D,colorHoverWarning:j,colorPressedWarning:k,colorFocusWarning:j,colorDisabledWarning:D,textColorWarning:f,textColorHoverWarning:f,textColorPressedWarning:f,textColorFocusWarning:f,textColorDisabledWarning:f,textColorTextWarning:D,textColorTextHoverWarning:j,textColorTextPressedWarning:k,textColorTextFocusWarning:j,textColorTextDisabledWarning:m,textColorGhostWarning:D,textColorGhostHoverWarning:j,textColorGhostPressedWarning:k,textColorGhostFocusWarning:j,textColorGhostDisabledWarning:D,borderWarning:`1px solid ${D}`,borderHoverWarning:`1px solid ${j}`,borderPressedWarning:`1px solid ${k}`,borderFocusWarning:`1px solid ${j}`,borderDisabledWarning:`1px solid ${D}`,rippleColorWarning:D,colorError:W,colorHoverError:B,colorPressedError:K,colorFocusError:B,colorDisabledError:W,textColorError:f,textColorHoverError:f,textColorPressedError:f,textColorFocusError:f,textColorDisabledError:f,textColorTextError:W,textColorTextHoverError:B,textColorTextPressedError:K,textColorTextFocusError:B,textColorTextDisabledError:m,textColorGhostError:W,textColorGhostHoverError:B,textColorGhostPressedError:K,textColorGhostFocusError:B,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${B}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${B}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:U,fontWeightStrong:Be})}},qi=T([ue("button",`
80
+ margin: 0;
81
+ font-weight: var(--n-font-weight);
82
+ line-height: 1;
83
+ font-family: inherit;
84
+ padding: var(--n-padding);
85
+ height: var(--n-height);
86
+ font-size: var(--n-font-size);
87
+ border-radius: var(--n-border-radius);
88
+ color: var(--n-text-color);
89
+ background-color: var(--n-color);
90
+ width: var(--n-width);
91
+ white-space: nowrap;
92
+ outline: none;
93
+ position: relative;
94
+ z-index: auto;
95
+ border: none;
96
+ display: inline-flex;
97
+ flex-wrap: nowrap;
98
+ flex-shrink: 0;
99
+ align-items: center;
100
+ justify-content: center;
101
+ user-select: none;
102
+ -webkit-user-select: none;
103
+ text-align: center;
104
+ cursor: pointer;
105
+ text-decoration: none;
106
+ transition:
107
+ color .3s var(--n-bezier),
108
+ background-color .3s var(--n-bezier),
109
+ opacity .3s var(--n-bezier),
110
+ border-color .3s var(--n-bezier);
111
+ `,[L("color",[H("border",{borderColor:"var(--n-border-color)"}),L("disabled",[H("border",{borderColor:"var(--n-border-color-disabled)"})]),$r("disabled",[T("&:focus",[H("state-border",{borderColor:"var(--n-border-color-focus)"})]),T("&:hover",[H("state-border",{borderColor:"var(--n-border-color-hover)"})]),T("&:active",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})]),L("pressed",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),L("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[H("border",{border:"var(--n-border-disabled)"})]),$r("disabled",[T("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[H("state-border",{border:"var(--n-border-focus)"})]),T("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[H("state-border",{border:"var(--n-border-hover)"})]),T("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})]),L("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})])]),L("loading","cursor: wait;"),ue("base-wave",`
112
+ pointer-events: none;
113
+ top: 0;
114
+ right: 0;
115
+ bottom: 0;
116
+ left: 0;
117
+ animation-iteration-count: 1;
118
+ animation-duration: var(--n-ripple-duration);
119
+ animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
120
+ `,[L("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),$e&&"MozBoxSizing"in document.createElement("div").style?T("&::moz-focus-inner",{border:0}):null,H("border, state-border",`
121
+ position: absolute;
122
+ left: 0;
123
+ top: 0;
124
+ right: 0;
125
+ bottom: 0;
126
+ border-radius: inherit;
127
+ transition: border-color .3s var(--n-bezier);
128
+ pointer-events: none;
129
+ `),H("border",{border:"var(--n-border)"}),H("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),H("icon",`
130
+ margin: var(--n-icon-margin);
131
+ margin-left: 0;
132
+ height: var(--n-icon-size);
133
+ width: var(--n-icon-size);
134
+ max-width: var(--n-icon-size);
135
+ font-size: var(--n-icon-size);
136
+ position: relative;
137
+ flex-shrink: 0;
138
+ `,[ue("icon-slot",`
139
+ height: var(--n-icon-size);
140
+ width: var(--n-icon-size);
141
+ position: absolute;
142
+ left: 0;
143
+ top: 50%;
144
+ transform: translateY(-50%);
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ `,[rr({top:"50%",originalTransform:"translateY(-50%)"})]),Wi()]),H("content",`
149
+ display: flex;
150
+ align-items: center;
151
+ flex-wrap: nowrap;
152
+ min-width: 0;
153
+ `,[T("~",[H("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),L("block",`
154
+ display: flex;
155
+ width: 100%;
156
+ `),L("dashed",[H("border, state-border",{borderStyle:"dashed !important"})]),L("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),T("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),T("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Ki=Object.assign(Object.assign({},er.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Li}}),Qi=l.defineComponent({name:"Button",props:Ki,setup(e){process.env.NODE_ENV!=="production"&&l.watchEffect(()=>{const{dashed:g,ghost:y,text:E,secondary:u,tertiary:D,quaternary:j}=e;(g||y||E)&&(u||D||j)&&vo("button","`dashed`, `ghost` and `text` props can't be used along with `secondary`, `tertiary` and `quaternary` props.")});const r=l.ref(null),o=l.ref(null),t=l.ref(!1),n=Go(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=l.inject(ki,{}),{mergedSizeRef:s}=qo({},{defaultSize:"medium",mergedSize:g=>{const{size:y}=e;if(y)return y;const{size:E}=a;if(E)return E;const{mergedSize:u}=g||{};return u?u.value:"medium"}}),i=l.computed(()=>e.focusable&&!e.disabled),c=g=>{var y;i.value||g.preventDefault(),!e.nativeFocusBehavior&&(g.preventDefault(),!e.disabled&&i.value&&((y=r.value)===null||y===void 0||y.focus({preventScroll:!0})))},h=g=>{var y;if(!e.disabled&&!e.loading){const{onClick:E}=e;E&&lr(E,g),e.text||(y=o.value)===null||y===void 0||y.play()}},b=g=>{switch(g.key){case"Enter":if(!e.keyboard)return;t.value=!1}},m=g=>{switch(g.key){case"Enter":if(!e.keyboard||e.loading){g.preventDefault();return}t.value=!0}},O=()=>{t.value=!1},{inlineThemeDisabled:C,mergedClsPrefixRef:d,mergedRtlRef:S}=Ei(e),x=er("Button","-button",qi,Ui,e,d),f=Oi("Button",S,d),w=l.computed(()=>{const g=x.value,{common:{cubicBezierEaseInOut:y,cubicBezierEaseOut:E},self:u}=g,{rippleDuration:D,opacityDisabled:j,fontWeight:k,fontWeightStrong:W}=u,B=s.value,{dashed:K,type:U,ghost:le,text:G,color:_,round:Be,circle:nr,textColor:oe,secondary:Zi,tertiary:ao,quaternary:ea,strong:ra}=e,oa={"font-weight":ra?W:k};let A={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const je=U==="tertiary",so=U==="default",$=je?"default":U;if(G){const z=oe||_;A={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":z||u[v("textColorText",$)],"--n-text-color-hover":z?re(z):u[v("textColorTextHover",$)],"--n-text-color-pressed":z?ze(z):u[v("textColorTextPressed",$)],"--n-text-color-focus":z?re(z):u[v("textColorTextHover",$)],"--n-text-color-disabled":z||u[v("textColorTextDisabled",$)]}}else if(le||K){const z=oe||_;A={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":_||u[v("rippleColor",$)],"--n-text-color":z||u[v("textColorGhost",$)],"--n-text-color-hover":z?re(z):u[v("textColorGhostHover",$)],"--n-text-color-pressed":z?ze(z):u[v("textColorGhostPressed",$)],"--n-text-color-focus":z?re(z):u[v("textColorGhostHover",$)],"--n-text-color-disabled":z||u[v("textColorGhostDisabled",$)]}}else if(Zi){const z=so?u.textColor:je?u.textColorTertiary:u[v("color",$)],M=_||z,Fe=U!=="default"&&U!=="tertiary";A={"--n-color":Fe?me(M,{alpha:Number(u.colorOpacitySecondary)}):u.colorSecondary,"--n-color-hover":Fe?me(M,{alpha:Number(u.colorOpacitySecondaryHover)}):u.colorSecondaryHover,"--n-color-pressed":Fe?me(M,{alpha:Number(u.colorOpacitySecondaryPressed)}):u.colorSecondaryPressed,"--n-color-focus":Fe?me(M,{alpha:Number(u.colorOpacitySecondaryHover)}):u.colorSecondaryHover,"--n-color-disabled":u.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":M,"--n-text-color-hover":M,"--n-text-color-pressed":M,"--n-text-color-focus":M,"--n-text-color-disabled":M}}else if(ao||ea){const z=so?u.textColor:je?u.textColorTertiary:u[v("color",$)],M=_||z;ao?(A["--n-color"]=u.colorTertiary,A["--n-color-hover"]=u.colorTertiaryHover,A["--n-color-pressed"]=u.colorTertiaryPressed,A["--n-color-focus"]=u.colorSecondaryHover,A["--n-color-disabled"]=u.colorTertiary):(A["--n-color"]=u.colorQuaternary,A["--n-color-hover"]=u.colorQuaternaryHover,A["--n-color-pressed"]=u.colorQuaternaryPressed,A["--n-color-focus"]=u.colorQuaternaryHover,A["--n-color-disabled"]=u.colorQuaternary),A["--n-ripple-color"]="#0000",A["--n-text-color"]=M,A["--n-text-color-hover"]=M,A["--n-text-color-pressed"]=M,A["--n-text-color-focus"]=M,A["--n-text-color-disabled"]=M}else A={"--n-color":_||u[v("color",$)],"--n-color-hover":_?re(_):u[v("colorHover",$)],"--n-color-pressed":_?ze(_):u[v("colorPressed",$)],"--n-color-focus":_?re(_):u[v("colorFocus",$)],"--n-color-disabled":_||u[v("colorDisabled",$)],"--n-ripple-color":_||u[v("rippleColor",$)],"--n-text-color":oe||(_?u.textColorPrimary:je?u.textColorTertiary:u[v("textColor",$)]),"--n-text-color-hover":oe||(_?u.textColorHoverPrimary:u[v("textColorHover",$)]),"--n-text-color-pressed":oe||(_?u.textColorPressedPrimary:u[v("textColorPressed",$)]),"--n-text-color-focus":oe||(_?u.textColorFocusPrimary:u[v("textColorFocus",$)]),"--n-text-color-disabled":oe||(_?u.textColorDisabledPrimary:u[v("textColorDisabled",$)])};let ir={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};G?ir={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ir={"--n-border":u[v("border",$)],"--n-border-hover":u[v("borderHover",$)],"--n-border-pressed":u[v("borderPressed",$)],"--n-border-focus":u[v("borderFocus",$)],"--n-border-disabled":u[v("borderDisabled",$)]};const{[v("height",B)]:ar,[v("fontSize",B)]:ta,[v("padding",B)]:na,[v("paddingRound",B)]:ia,[v("iconSize",B)]:aa,[v("borderRadius",B)]:sa,[v("iconMargin",B)]:la,waveOpacity:ca}=u,da={"--n-width":nr&&!G?ar:"initial","--n-height":G?"initial":ar,"--n-font-size":ta,"--n-padding":nr||G?"initial":Be?ia:na,"--n-icon-size":aa,"--n-icon-margin":la,"--n-border-radius":G?"initial":nr||Be?ar:sa};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":y,"--n-bezier-ease-out":E,"--n-ripple-duration":D,"--n-opacity-disabled":j,"--n-wave-opacity":ca},oa),A),ir),da)}),R=C?Hi("button",l.computed(()=>{let g="";const{dashed:y,type:E,ghost:u,text:D,color:j,round:k,circle:W,textColor:B,secondary:K,tertiary:U,quaternary:le,strong:G}=e;y&&(g+="a"),u&&(g+="b"),D&&(g+="c"),k&&(g+="d"),W&&(g+="e"),K&&(g+="f"),U&&(g+="g"),le&&(g+="h"),G&&(g+="i"),j&&(g+="j"+fr(j)),B&&(g+="k"+fr(B));const{value:_}=s;return g+="l"+_[0],g+="m"+E[0],g}),w,e):void 0;return{selfElRef:r,waveElRef:o,mergedClsPrefix:d,mergedFocusable:i,mergedSize:s,showBorder:n,enterPressed:t,rtlEnabled:f,handleMousedown:c,handleKeydown:m,handleBlur:O,handleKeyup:b,handleClick:h,customColorCssVars:l.computed(()=>{const{color:g}=e;if(!g)return null;const y=re(g);return{"--n-border-color":g,"--n-border-color-hover":y,"--n-border-color-pressed":ze(g),"--n-border-color-focus":y,"--n-border-color-disabled":g}}),cssVars:C?void 0:w,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e,tag:r,onRender:o}=this;o==null||o();const t=ur(this.$slots.default,n=>n&&l.h("span",{class:`${e}-button__content`},n));return l.h(r,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&t,l.h(Ri,{width:!0},{default:()=>ur(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&l.h("span",{class:`${e}-button__icon`,style:{margin:yo(this.$slots.default)?"0":""}},l.h(to,null,{default:()=>this.loading?l.h(ji,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):l.h("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&t,this.text?null:l.h(Ni,{ref:"waveElRef",clsPrefix:e}),this.showBorder?l.h("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?l.h("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Yi="2.38.1";function Xi({componentPrefix:e="N",components:r=[]}={}){const o=[];function t(a,s,i){a.component(e+s)||a.component(e+s,i)}function n(a){o.includes(a)||(o.push(a),r.forEach(s=>{const{name:i,alias:c}=s;t(a,i,s),c&&c.forEach(h=>{t(a,h,s)})}))}return{version:Yi,componentPrefix:e,install:n}}const Ji=Xi({components:[Qi]}),tr=function(e){if(!tr.installed){tr.installed=!0,e.use(Ji);for(let r in Ie){const o=Reflect.get(Ie,r);e.component(o.name,o)}}};return{install(e){tr(e)},...Ie}});
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const components: {
2
+ SHello: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
3
+ };
@@ -0,0 +1,3 @@
1
+ import { App } from "vue";
2
+ declare const installer: (app: App) => void;
3
+ export default installer;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@szjy/workflow",
3
+ "version": "0.1.0",
4
+ "main": "dist/szjy-workflow.umd.js",
5
+ "module": "dist/szjy-workflow.mjs",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist/*"
9
+ ],
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "vue-tsc && vite build",
13
+ "preview": "vite preview"
14
+ },
15
+ "dependencies": {
16
+ "naive-ui": "^2.38.1",
17
+ "vue": "^3.4.21"
18
+ },
19
+ "devDependencies": {
20
+ "@vitejs/plugin-vue": "^5.0.4",
21
+ "@vitejs/plugin-vue-jsx": "^3.1.0",
22
+ "typescript": "^5.2.2",
23
+ "vite": "^5.1.6",
24
+ "vite-plugin-dts": "^3.7.3",
25
+ "vue-tsc": "^1.8.27"
26
+ }
27
+ }