shu-c-view
Version:
rollup 打包vue@2.7组件库框架
7 lines (6 loc) • 29.5 kB
JavaScript
/*!
* shu-c-view v2.0.0
* (c) 2024-04-23
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isEmpty"),e=require("lodash/isArray");function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var r,i,o=n(t),s=n(e),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=l,p=Function.prototype,d=p.call,v=f&&p.bind.bind(d,d),h=f?v:function(t){return function(){return d.apply(t,arguments)}},g=function(t){return null==t},y=g,b=TypeError,m=function(t){if(y(t))throw b("Can't call method on "+t);return t},S=m,_=Object,x=function(t){return _(S(t))},w=x,E=h({}.hasOwnProperty),O=Object.hasOwn||function(t,e){return E(w(t),e)},C=u,$=O,j=Function.prototype,R=C&&Object.getOwnPropertyDescriptor,I=$(j,"name"),P={EXISTS:I,PROPER:I&&"something"===function(){}.name,CONFIGURABLE:I&&(!C||C&&R(j,"name").configurable)},A={},T=function(t){return t&&t.Math==Math&&t},M=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof a&&a)||function(){return this}()||Function("return this")(),k="object"==typeof document&&document.all,D={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},F=D.all,N=D.IS_HTMLDDA?function(t){return"function"==typeof t||t===F}:function(t){return"function"==typeof t},L=N,z=D.all,B=D.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===z}:function(t){return"object"==typeof t?null!==t:L(t)},U=B,V=M.document,W=U(V)&&U(V.createElement),K=function(t){return W?V.createElement(t):{}},Y=K,G=!u&&!c((function(){return 7!=Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a})),X=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),q=B,H=String,Z=TypeError,J=function(t){if(q(t))return t;throw Z(H(t)+" is not an object")},Q=l,tt=Function.prototype.call,et=Q?tt.bind(tt):function(){return tt.apply(tt,arguments)},nt=M,rt=N,it=function(t){return rt(t)?t:void 0},ot=function(t,e){return arguments.length<2?it(nt[t]):nt[t]&&nt[t][e]},st=h({}.isPrototypeOf),at=M,ct=ot("navigator","userAgent")||"",ut=at.process,lt=at.Deno,ft=ut&&ut.versions||lt&<.version,pt=ft&&ft.v8;pt&&(i=(r=pt.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&ct&&(!(r=ct.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ct.match(/Chrome\/(\d+)/))&&(i=+r[1]);var dt=i,vt=dt,ht=c,gt=!!Object.getOwnPropertySymbols&&!ht((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),yt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,mt=N,St=st,_t=Object,xt=yt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return mt(e)&&St(e.prototype,_t(t))},wt=String,Et=N,Ot=function(t){try{return wt(t)}catch(t){return"Object"}},Ct=TypeError,$t=function(t){if(Et(t))return t;throw Ct(Ot(t)+" is not a function")},jt=g,Rt=function(t,e){var n=t[e];return jt(n)?void 0:$t(n)},It=et,Pt=N,At=B,Tt=TypeError,Mt={exports:{}},kt=M,Dt=Object.defineProperty,Ft=function(t,e){try{Dt(kt,t,{value:e,configurable:!0,writable:!0})}catch(n){kt[t]=e}return e},Nt=Ft,Lt=M["__core-js_shared__"]||Nt("__core-js_shared__",{}),zt=Lt;(Mt.exports=function(t,e){return zt[t]||(zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=h,Ut=0,Vt=Math.random(),Wt=Bt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Ut+Vt,36)},Yt=M,Gt=Mt.exports,Xt=O,qt=Kt,Ht=gt,Zt=yt,Jt=Gt("wks"),Qt=Yt.Symbol,te=Qt&&Qt.for,ee=Zt?Qt:Qt&&Qt.withoutSetter||qt,ne=function(t){if(!Xt(Jt,t)||!Ht&&"string"!=typeof Jt[t]){var e="Symbol."+t;Ht&&Xt(Qt,t)?Jt[t]=Qt[t]:Jt[t]=Zt&&te?te(e):ee(e)}return Jt[t]},re=et,ie=B,oe=xt,se=Rt,ae=function(t,e){var n,r;if("string"===e&&Pt(n=t.toString)&&!At(r=It(n,t)))return r;if(Pt(n=t.valueOf)&&!At(r=It(n,t)))return r;if("string"!==e&&Pt(n=t.toString)&&!At(r=It(n,t)))return r;throw Tt("Can't convert object to primitive value")},ce=TypeError,ue=ne("toPrimitive"),le=function(t,e){if(!ie(t)||oe(t))return t;var n,r=se(t,ue);if(r){if(void 0===e&&(e="default"),n=re(r,t,e),!ie(n)||oe(n))return n;throw ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),ae(t,e)},fe=xt,pe=function(t){var e=le(t,"string");return fe(e)?e:e+""},de=u,ve=G,he=X,ge=J,ye=pe,be=TypeError,me=Object.defineProperty,Se=Object.getOwnPropertyDescriptor;A.f=de?he?function(t,e,n){if(ge(t),e=ye(e),ge(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Se(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return me(t,e,n)}:me:function(t,e,n){if(ge(t),e=ye(e),ge(n),ve)try{return me(t,e,n)}catch(t){}if("get"in n||"set"in n)throw be("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var _e=u,xe=P.EXISTS,we=h,Ee=A.f,Oe=Function.prototype,Ce=we(Oe.toString),$e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,je=we($e.exec);_e&&!xe&&Ee(Oe,"name",{configurable:!0,get:function(){try{return je($e,Ce(this))[1]}catch(t){return""}}});var Re={},Ie={},Pe={}.propertyIsEnumerable,Ae=Object.getOwnPropertyDescriptor,Te=Ae&&!Pe.call({1:2},1);Ie.f=Te?function(t){var e=Ae(this,t);return!!e&&e.enumerable}:Pe;var Me=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ke=h,De=ke({}.toString),Fe=ke("".slice),Ne=function(t){return Fe(De(t),8,-1)},Le=c,ze=Ne,Be=Object,Ue=h("".split),Ve=Le((function(){return!Be("z").propertyIsEnumerable(0)}))?function(t){return"String"==ze(t)?Ue(t,""):Be(t)}:Be,We=m,Ke=function(t){return Ve(We(t))},Ye=u,Ge=et,Xe=Ie,qe=Me,He=Ke,Ze=pe,Je=O,Qe=G,tn=Object.getOwnPropertyDescriptor;Re.f=Ye?tn:function(t,e){if(t=He(t),e=Ze(e),Qe)try{return tn(t,e)}catch(t){}if(Je(t,e))return qe(!Ge(Xe.f,t,e),t[e])};var en=A,nn=Me,rn=u?function(t,e,n){return en.f(t,e,nn(1,n))}:function(t,e,n){return t[e]=n,t},on={exports:{}},sn=N,an=Lt,cn=h(Function.toString);sn(an.inspectSource)||(an.inspectSource=function(t){return cn(t)});var un,ln,fn,pn=an.inspectSource,dn=N,vn=M.WeakMap,hn=dn(vn)&&/native code/.test(String(vn)),gn=Mt.exports,yn=Kt,bn=gn("keys"),mn=function(t){return bn[t]||(bn[t]=yn(t))},Sn={},_n=hn,xn=M,wn=B,En=rn,On=O,Cn=Lt,$n=mn,jn=Sn,Rn=xn.TypeError,In=xn.WeakMap;if(_n||Cn.state){var Pn=Cn.state||(Cn.state=new In);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,un=function(t,e){if(Pn.has(t))throw Rn("Object already initialized");return e.facade=t,Pn.set(t,e),e},ln=function(t){return Pn.get(t)||{}},fn=function(t){return Pn.has(t)}}else{var An=$n("state");jn[An]=!0,un=function(t,e){if(On(t,An))throw Rn("Object already initialized");return e.facade=t,En(t,An,e),e},ln=function(t){return On(t,An)?t[An]:{}},fn=function(t){return On(t,An)}}var Tn={set:un,get:ln,has:fn,enforce:function(t){return fn(t)?ln(t):un(t,{})},getterFor:function(t){return function(e){var n;if(!wn(e)||(n=ln(e)).type!==t)throw Rn("Incompatible receiver, "+t+" required");return n}}},Mn=c,kn=N,Dn=O,Fn=u,Nn=P.CONFIGURABLE,Ln=pn,zn=Tn.enforce,Bn=Tn.get,Un=Object.defineProperty,Vn=Fn&&!Mn((function(){return 8!==Un((function(){}),"length",{value:8}).length})),Wn=String(String).split("String"),Kn=on.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Dn(t,"name")||Nn&&t.name!==e)&&(Fn?Un(t,"name",{value:e,configurable:!0}):t.name=e),Vn&&n&&Dn(n,"arity")&&t.length!==n.arity&&Un(t,"length",{value:n.arity});try{n&&Dn(n,"constructor")&&n.constructor?Fn&&Un(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=zn(t);return Dn(r,"source")||(r.source=Wn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Kn((function(){return kn(this)&&Bn(this).source||Ln(this)}),"toString");var Yn=N,Gn=A,Xn=on.exports,qn=Ft,Hn=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(Yn(n)&&Xn(n,o,r),r.global)i?t[e]=n:qn(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Gn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Zn={},Jn=Math.ceil,Qn=Math.floor,tr=Math.trunc||function(t){var e=+t;return(e>0?Qn:Jn)(e)},er=function(t){var e=+t;return e!=e||0===e?0:tr(e)},nr=er,rr=Math.max,ir=Math.min,or=er,sr=Math.min,ar=function(t){return t>0?sr(or(t),9007199254740991):0},cr=ar,ur=function(t){return cr(t.length)},lr=Ke,fr=function(t,e){var n=nr(t);return n<0?rr(n+e,0):ir(n,e)},pr=ur,dr=function(t){return function(e,n,r){var i,o=lr(e),s=pr(o),a=fr(r,s);if(t&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},vr={includes:dr(!0),indexOf:dr(!1)},hr=O,gr=Ke,yr=vr.indexOf,br=Sn,mr=h([].push),Sr=function(t,e){var n,r=gr(t),i=0,o=[];for(n in r)!hr(br,n)&&hr(r,n)&&mr(o,n);for(;e.length>i;)hr(r,n=e[i++])&&(~yr(o,n)||mr(o,n));return o},_r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xr=Sr,wr=_r.concat("length","prototype");Zn.f=Object.getOwnPropertyNames||function(t){return xr(t,wr)};var Er={};Er.f=Object.getOwnPropertySymbols;var Or=ot,Cr=Zn,$r=Er,jr=J,Rr=h([].concat),Ir=Or("Reflect","ownKeys")||function(t){var e=Cr.f(jr(t)),n=$r.f;return n?Rr(e,n(t)):e},Pr=O,Ar=Ir,Tr=Re,Mr=A,kr=c,Dr=N,Fr=/#|\.prototype\./,Nr=function(t,e){var n=zr[Lr(t)];return n==Ur||n!=Br&&(Dr(e)?kr(e):!!e)},Lr=Nr.normalize=function(t){return String(t).replace(Fr,".").toLowerCase()},zr=Nr.data={},Br=Nr.NATIVE="N",Ur=Nr.POLYFILL="P",Vr=Nr,Wr=M,Kr=Re.f,Yr=rn,Gr=Hn,Xr=Ft,qr=function(t,e,n){for(var r=Ar(e),i=Mr.f,o=Tr.f,s=0;s<r.length;s++){var a=r[s];Pr(t,a)||n&&Pr(n,a)||i(t,a,o(e,a))}},Hr=Vr,Zr=function(t,e){var n,r,i,o,s,a=t.target,c=t.global,u=t.stat;if(n=c?Wr:u?Wr[a]||Xr(a,{}):(Wr[a]||{}).prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(s=Kr(n,r))&&s.value:n[r],!Hr(c?r:a+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;qr(o,i)}(t.sham||i&&i.sham)&&Yr(o,"sham",!0),Gr(n,r,o,t)}},Jr={};Jr[ne("toStringTag")]="z";var Qr="[object z]"===String(Jr),ti=N,ei=Ne,ni=ne("toStringTag"),ri=Object,ii="Arguments"==ei(function(){return arguments}()),oi=Qr?ei:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ri(t),ni))?n:ii?ei(e):"Object"==(r=ei(e))&&ti(e.callee)?"Arguments":r},si=oi,ai=String,ci=function(t){if("Symbol"===si(t))throw TypeError("Cannot convert a Symbol value to a string");return ai(t)},ui=J,li=function(){var t=ui(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},fi=c,pi=M.RegExp,di=fi((function(){var t=pi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),vi=di||fi((function(){return!pi("a","y").sticky})),hi=di||fi((function(){var t=pi("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),gi={BROKEN_CARET:hi,MISSED_STICKY:vi,UNSUPPORTED_Y:di},yi={},bi=Sr,mi=_r,Si=Object.keys||function(t){return bi(t,mi)},_i=u,xi=X,wi=A,Ei=J,Oi=Ke,Ci=Si;yi.f=_i&&!xi?Object.defineProperties:function(t,e){Ei(t);for(var n,r=Oi(e),i=Ci(e),o=i.length,s=0;o>s;)wi.f(t,n=i[s++],r[n]);return t};var $i,ji=ot("document","documentElement"),Ri=J,Ii=yi,Pi=_r,Ai=Sn,Ti=ji,Mi=K,ki=mn("IE_PROTO"),Di=function(){},Fi=function(t){return"<script>"+t+"<\/script>"},Ni=function(t){t.write(Fi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Li=function(){try{$i=new ActiveXObject("htmlfile")}catch(t){}var t,e;Li="undefined"!=typeof document?document.domain&&$i?Ni($i):((e=Mi("iframe")).style.display="none",Ti.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Fi("document.F=Object")),t.close(),t.F):Ni($i);for(var n=Pi.length;n--;)delete Li.prototype[Pi[n]];return Li()};Ai[ki]=!0;var zi=Object.create||function(t,e){var n;return null!==t?(Di.prototype=Ri(t),n=new Di,Di.prototype=null,n[ki]=t):n=Li(),void 0===e?n:Ii.f(n,e)},Bi=c,Ui=M.RegExp,Vi=Bi((function(){var t=Ui(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Wi=c,Ki=M.RegExp,Yi=Wi((function(){var t=Ki("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gi=et,Xi=h,qi=ci,Hi=li,Zi=gi,Ji=Mt.exports,Qi=zi,to=Tn.get,eo=Vi,no=Yi,ro=Ji("native-string-replace",String.prototype.replace),io=RegExp.prototype.exec,oo=io,so=Xi("".charAt),ao=Xi("".indexOf),co=Xi("".replace),uo=Xi("".slice),lo=function(){var t=/a/,e=/b*/g;return Gi(io,t,"a"),Gi(io,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),fo=Zi.BROKEN_CARET,po=void 0!==/()??/.exec("")[1];(lo||po||fo||eo||no)&&(oo=function(t){var e,n,r,i,o,s,a,c=this,u=to(c),l=qi(t),f=u.raw;if(f)return f.lastIndex=c.lastIndex,e=Gi(oo,f,l),c.lastIndex=f.lastIndex,e;var p=u.groups,d=fo&&c.sticky,v=Gi(Hi,c),h=c.source,g=0,y=l;if(d&&(v=co(v,"y",""),-1===ao(v,"g")&&(v+="g"),y=uo(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==so(l,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),po&&(n=new RegExp("^"+h+"$(?!\\s)",v)),lo&&(r=c.lastIndex),i=Gi(io,d?n:c,y),d?i?(i.input=uo(i.input,g),i[0]=uo(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:lo&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),po&&i&&i.length>1&&Gi(ro,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Qi(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var vo=oo;Zr({target:"RegExp",proto:!0,forced:/./.exec!==vo},{exec:vo});var ho,go,yo=Zr,bo=et,mo=N,So=J,_o=ci,xo=(ho=!1,(go=/[ac]/).exec=function(){return ho=!0,/./.exec.apply(this,arguments)},!0===go.test("abc")&&ho),wo=/./.test;yo({target:"RegExp",proto:!0,forced:!xo},{test:function(t){var e=So(this),n=_o(t),r=e.exec;if(!mo(r))return bo(wo,e,n);var i=bo(r,e,n);return null!==i&&(So(i),!0)}});var Eo=l,Oo=Function.prototype,Co=Oo.apply,$o=Oo.call,jo="object"==typeof Reflect&&Reflect.apply||(Eo?$o.bind(Co):function(){return $o.apply(Co,arguments)}),Ro=Ne,Io=h,Po=function(t){if("Function"===Ro(t))return Io(t)},Ao=Hn,To=vo,Mo=c,ko=ne,Do=rn,Fo=ko("species"),No=RegExp.prototype,Lo=h,zo=er,Bo=ci,Uo=m,Vo=Lo("".charAt),Wo=Lo("".charCodeAt),Ko=Lo("".slice),Yo=function(t){return function(e,n){var r,i,o=Bo(Uo(e)),s=zo(n),a=o.length;return s<0||s>=a?t?"":void 0:(r=Wo(o,s))<55296||r>56319||s+1===a||(i=Wo(o,s+1))<56320||i>57343?t?Vo(o,s):r:t?Ko(o,s,s+2):i-56320+(r-55296<<10)+65536}},Go={codeAt:Yo(!1),charAt:Yo(!0)}.charAt,Xo=h,qo=x,Ho=Math.floor,Zo=Xo("".charAt),Jo=Xo("".replace),Qo=Xo("".slice),ts=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,es=/\$([$&'`]|\d{1,2})/g,ns=et,rs=J,is=N,os=Ne,ss=vo,as=TypeError,cs=jo,us=et,ls=h,fs=function(t,e,n,r){var i=ko(t),o=!Mo((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),s=o&&!Mo((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Fo]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!s||n){var a=Po(/./[i]),c=e(i,""[t],(function(t,e,n,r,i){var s=Po(t),c=e.exec;return c===To||c===No.exec?o&&!i?{done:!0,value:a(e,n,r)}:{done:!0,value:s(n,e,r)}:{done:!1}}));Ao(String.prototype,t,c[0]),Ao(No,i,c[1])}r&&Do(No[i],"sham",!0)},ps=c,ds=J,vs=N,hs=g,gs=er,ys=ar,bs=ci,ms=m,Ss=function(t,e,n){return e+(n?Go(t,e).length:1)},_s=Rt,xs=function(t,e,n,r,i,o){var s=n+t.length,a=r.length,c=es;return void 0!==i&&(i=qo(i),c=ts),Jo(o,c,(function(o,c){var u;switch(Zo(c,0)){case"$":return"$";case"&":return t;case"`":return Qo(e,0,n);case"'":return Qo(e,s);case"<":u=i[Qo(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var f=Ho(l/10);return 0===f?o:f<=a?void 0===r[f-1]?Zo(c,1):r[f-1]+Zo(c,1):o}u=r[l-1]}return void 0===u?"":u}))},ws=function(t,e){var n=t.exec;if(is(n)){var r=ns(n,t,e);return null!==r&&rs(r),r}if("RegExp"===os(t))return ns(ss,t,e);throw as("RegExp#exec called on incompatible receiver")},Es=ne("replace"),Os=Math.max,Cs=Math.min,$s=ls([].concat),js=ls([].push),Rs=ls("".indexOf),Is=ls("".slice),Ps="$0"==="a".replace(/./,"$0"),As=!!/./[Es]&&""===/./[Es]("a","$0"),Ts=!ps((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));fs("replace",(function(t,e,n){var r=As?"$":"$0";return[function(t,n){var r=ms(this),i=hs(t)?void 0:_s(t,Es);return i?us(i,t,r,n):us(e,bs(r),t,n)},function(t,i){var o=ds(this),s=bs(t);if("string"==typeof i&&-1===Rs(i,r)&&-1===Rs(i,"$<")){var a=n(e,o,s,i);if(a.done)return a.value}var c=vs(i);c||(i=bs(i));var u=o.global;if(u){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var p=ws(o,s);if(null===p)break;if(js(f,p),!u)break;""===bs(p[0])&&(o.lastIndex=Ss(s,ys(o.lastIndex),l))}for(var d,v="",h=0,g=0;g<f.length;g++){for(var y=bs((p=f[g])[0]),b=Os(Cs(gs(p.index),s.length),0),m=[],S=1;S<p.length;S++)js(m,void 0===(d=p[S])?d:String(d));var _=p.groups;if(c){var x=$s([y],m,b,s);void 0!==_&&js(x,_);var w=bs(cs(i,void 0,x))}else w=xs(y,s,b,m,_,i);b>=h&&(v+=Is(s,h,b)+w,h=b+y.length)}return v+Is(s,h)}]}),!Ts||!Ps||As);var Ms=N,ks=String,Ds=TypeError,Fs=h,Ns=J,Ls=function(t){if("object"==typeof t||Ms(t))return t;throw Ds("Can't set "+ks(t)+" as a prototype")},zs=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Fs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ns(n),Ls(r),e?t(n,r):n.__proto__=r,n}}():void 0),Bs=N,Us=B,Vs=zs,Ws=B,Ks=Ne,Ys=ne("match"),Gs=et,Xs=O,qs=st,Hs=li,Zs=RegExp.prototype,Js=function(t){var e=t.flags;return void 0!==e||"flags"in Zs||Xs(t,"flags")||!qs(Zs,t)?e:Gs(Hs,t)},Qs=A.f,ta=ot,ea=A,na=u,ra=ne("species"),ia=u,oa=M,sa=h,aa=Vr,ca=function(t,e,n){var r,i;return Vs&&Bs(r=e.constructor)&&r!==n&&Us(i=r.prototype)&&i!==n.prototype&&Vs(t,i),t},ua=rn,la=Zn.f,fa=st,pa=function(t){var e;return Ws(t)&&(void 0!==(e=t[Ys])?!!e:"RegExp"==Ks(t))},da=ci,va=Js,ha=gi,ga=function(t,e,n){n in t||Qs(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},ya=Hn,ba=c,ma=O,Sa=Tn.enforce,_a=function(t){var e=ta(t),n=ea.f;na&&e&&!e[ra]&&n(e,ra,{configurable:!0,get:function(){return this}})},xa=Vi,wa=Yi,Ea=ne("match"),Oa=oa.RegExp,Ca=Oa.prototype,$a=oa.SyntaxError,ja=sa(Ca.exec),Ra=sa("".charAt),Ia=sa("".replace),Pa=sa("".indexOf),Aa=sa("".slice),Ta=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ma=/a/g,ka=/a/g,Da=new Oa(Ma)!==Ma,Fa=ha.MISSED_STICKY,Na=ha.UNSUPPORTED_Y,La=ia&&(!Da||Fa||xa||wa||ba((function(){return ka[Ea]=!1,Oa(Ma)!=Ma||Oa(ka)==ka||"/a/i"!=Oa(Ma,"i")})));if(aa("RegExp",La)){for(var za=function(t,e){var n,r,i,o,s,a,c=fa(Ca,this),u=pa(t),l=void 0===e,f=[],p=t;if(!c&&u&&l&&t.constructor===za)return t;if((u||fa(Ca,t))&&(t=t.source,l&&(e=va(p))),t=void 0===t?"":da(t),e=void 0===e?"":da(e),p=t,xa&&"dotAll"in Ma&&(r=!!e&&Pa(e,"s")>-1)&&(e=Ia(e,/s/g,"")),n=e,Fa&&"sticky"in Ma&&(i=!!e&&Pa(e,"y")>-1)&&Na&&(e=Ia(e,/y/g,"")),wa&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],s={},a=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(e=Ra(t,r)))e+=Ra(t,++r);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:ja(Ta,Aa(t,r+1))&&(r+=2,c=!0),i+=e,u++;continue;case">"===e&&c:if(""===l||ma(s,l))throw new $a("Invalid capture group name");s[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=e:i+=e}return[i,o]}(t),t=o[0],f=o[1]),s=ca(Oa(t,e),c?this:Ca,za),(r||i||f.length)&&(a=Sa(s),r&&(a.dotAll=!0,a.raw=za(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=Ra(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+Ra(t,++r);return i}(t),n)),i&&(a.sticky=!0),f.length&&(a.groups=f)),t!==p)try{ua(s,"source",""===p?"(?:)":p)}catch(t){}return s},Ba=la(Oa),Ua=0;Ba.length>Ua;)ga(za,Oa,Ba[Ua++]);Ca.constructor=za,za.prototype=Ca,ya(oa,"RegExp",za,{constructor:!0})}_a("RegExp");var Va=on.exports,Wa=A,Ka=u,Ya=gi.MISSED_STICKY,Ga=Ne,Xa=function(t,e,n){return n.get&&Va(n.get,e,{getter:!0}),n.set&&Va(n.set,e,{setter:!0}),Wa.f(t,e,n)},qa=Tn.get,Ha=RegExp.prototype,Za=TypeError;Ka&&Ya&&Xa(Ha,"sticky",{configurable:!0,get:function(){if(this!==Ha){if("RegExp"===Ga(this))return!!qa(this).sticky;throw Za("Incompatible receiver, RegExp required")}}});var Ja=P.PROPER,Qa=Hn,tc=J,ec=ci,nc=c,rc=Js,ic=RegExp.prototype.toString,oc=nc((function(){return"/a/b"!=ic.call({source:"a",flags:"b"})})),sc=Ja&&"toString"!=ic.name;(oc||sc)&&Qa(RegExp.prototype,"toString",(function(){var t=tc(this);return"/"+ec(t.source)+"/"+ec(rc(t))}),{unsafe:!0});var ac=function(t){"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(t)},cc={name:"BaseStep",inject:["getPanel"],props:{title:String,icon:String,description:String,status:String},data:()=>({index:-1,lineStyle:{},internalStatus:"",position:"down"}),computed:{currentStatus(){return this.status||this.internalStatus},prevStatus(){const t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter(){return this.$parent.alignCenter},isVertical(){return"vertical"===this.$parent.direction},isSimple(){return this.$parent.simple},isLast(){const t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount(){return this.$parent.steps.length},space(){const{isSimple:t,$parent:{space:e}}=this;return t?"":e},style(){const t={},e=this.$parent.steps.length,n="number"==typeof this.space?`${this.space}px`:this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=n,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},beforeCreate(){this.$parent.steps.push(this)},created(){"down"!==this.getPanel().position&&(this.position=this.getPanel().position)},beforeDestroy(){const t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},mounted(){const t=this.$watch("index",(()=>{this.$watch("$parent.active",this.updateStatus,{immediate:!0}),this.$watch("$parent.processStatus",(()=>{const t=this.$parent.active;this.updateStatus(t)}),{immediate:!0}),t()}))},methods:{updateStatus(t){const e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress(t){let e=100;const n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=`${e}%`:n.width=`${e}%`,this.lineStyle=n}}};function uc(t,e,n,r,i,o,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof n?n.options:n;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),r&&(l._scopeId=r),o?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=f):e&&(f=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),f)if(l.functional){const t=l.render;l.render=function(e,n){return f.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return n}const lc=cc;var fc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},["up"===t.position?n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t._v(" "),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)]):t._e(),t._v(" "),n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),t._v(" "),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",(function(){return[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t._v(" "),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v("\n "+t._s(t.index+1)+"\n ")])]})):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),t._v(" "),"down"===t.position?n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t._v(" "),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)]):t._e()])};fc._withStripped=!0;const pc=uc({render:fc,staticRenderFns:[]},undefined,lc,undefined,false,undefined,!1,void 0,void 0,void 0);var dc=Ne,vc=Array.isArray||function(t){return"Array"==dc(t)},hc=TypeError,gc=pe,yc=A,bc=Me,mc=h,Sc=c,_c=N,xc=oi,wc=pn,Ec=function(){},Oc=[],Cc=ot("Reflect","construct"),$c=/^\s*(?:class|function)\b/,jc=mc($c.exec),Rc=!$c.exec(Ec),Ic=function(t){if(!_c(t))return!1;try{return Cc(Ec,Oc,t),!0}catch(t){return!1}},Pc=function(t){if(!_c(t))return!1;switch(xc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Rc||!!jc($c,wc(t))}catch(t){return!0}};Pc.sham=!0;var Ac=!Cc||Sc((function(){var t;return Ic(Ic.call)||!Ic(Object)||!Ic((function(){t=!0}))||t}))?Pc:Ic,Tc=vc,Mc=Ac,kc=B,Dc=ne("species"),Fc=Array,Nc=function(t){var e;return Tc(t)&&(e=t.constructor,(Mc(e)&&(e===Fc||Tc(e.prototype))||kc(e)&&null===(e=e[Dc]))&&(e=void 0)),void 0===e?Fc:e},Lc=c,zc=dt,Bc=ne("species"),Uc=Zr,Vc=c,Wc=vc,Kc=B,Yc=x,Gc=ur,Xc=function(t){if(t>9007199254740991)throw hc("Maximum allowed index exceeded");return t},qc=function(t,e,n){var r=gc(e);r in t?yc.f(t,r,bc(0,n)):t[r]=n},Hc=function(t,e){return new(Nc(t))(0===e?0:e)},Zc=function(t){return zc>=51||!Lc((function(){var e=[];return(e.constructor={})[Bc]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Jc=dt,Qc=ne("isConcatSpreadable"),tu=Jc>=51||!Vc((function(){var t=[];return t[Qc]=!1,t.concat()[0]!==t})),eu=Zc("concat"),nu=function(t){if(!Kc(t))return!1;var e=t[Qc];return void 0!==e?!!e:Wc(t)};Uc({target:"Array",proto:!0,arity:1,forced:!tu||!eu},{concat:function(t){var e,n,r,i,o,s=Yc(this),a=Hc(s,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(nu(o=-1===e?s:arguments[e]))for(i=Gc(o),Xc(c+i),n=0;n<i;n++,c++)n in o&&qc(a,c,o[n]);else Xc(c+1),qc(a,c++,o);return a.length=c,a}});var ru={mounted:function(){if("production"!==process.env.NODE_ENV&&this.$vnode){var t=this.getMigratingConfig(),e=t.props,n=void 0===e?{}:e,r=t.events,i=void 0===r?{}:r,o=this.$vnode,s=o.data,a=o.componentOptions,c=s.attrs||{},u=a.listeners||{};for(var l in c)n[l=this.kebabCase(l)]&&console.warn("[Element Migrating][".concat(this.$options.name,"][Attribute]: ").concat(n[l]));for(var f in u)i[f=this.kebabCase(f)]&&console.warn("[Element Migrating][".concat(this.$options.name,"][Event]: ").concat(i[f]))}},methods:{getMigratingConfig:function(){return{props:{},events:{}}},kebabCase:function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()}}},iu={name:"BaseSteps",mixins:[ru],provide(){return{getPanel:()=>this}},props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"},position:{type:String,default:"down",validator:t=>-1!==["up","down"].indexOf(t)}},data:()=>({steps:[],stepOffset:0}),watch:{active(t,e){this.$emit("change",t,e)},steps(t){t.forEach(((t,e)=>{t.index=e}))}},methods:{getMigratingConfig:()=>({props:{center:"center is removed."}})}};const ou=iu;var su=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-steps",class:[!t.simple&&"el-steps--"+t.direction,t.simple&&"el-steps--simple"]},[t._t("default")],2)};su._withStripped=!0;const au=uc({render:su,staticRenderFns:[]},undefined,ou,undefined,false,undefined,!1,void 0,void 0,void 0);pc.install=function(t,e){if(ac("按需加载独立组件:".concat(pc.name)),s(e)&&!o(e))for(var n=0;n<e.length;n++)e[n].name!==pc.name&&t.use(e[n]);t.component(pc.name,pc)},au.install=function(t,e){if(ac("按需加载独立组件:".concat(au.name)),s(e)&&!o(e))for(var n=0;n<e.length;n++)e[n].name!==au.name&&t.use(e[n]);t.component(au.name,au)},exports.Step=pc,exports.Steps=au;