UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 25.7 kB
/*! * shu-c-view v1.2.53 * (c) 2023-01-13 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/assign"),e=require("lodash/isNil"),r=require("lodash/omit"),n=require("lodash/get"),o=require("lodash/has"),i=require("lodash/isArray"),c=require("lodash/isEmpty");function u(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var a=u(t),s=u(e),l=u(r),f=u(n),p=u(o),d=u(i),h=u(c);function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(t){return t&&t.Math==Math&&t},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof v&&v)||function(){return this}()||Function("return this")(),m={},w=function(t){try{return!!t()}catch(t){return!0}},x=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=!w((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),E=S,O=Function.prototype.call,j=E?O.bind(O):function(){return O.apply(O,arguments)},I={},C={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,R=_&&!C.call({1:2},1);I.f=R?function(t){var e=_(this,t);return!!e&&e.enumerable}:C;var A,P,$=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T=S,D=Function.prototype,M=D.call,k=T&&D.bind.bind(M,M),F=T?k:function(t){return function(){return M.apply(t,arguments)}},N=F,L=N({}.toString),q=N("".slice),z=function(t){return q(L(t),8,-1)},U=w,B=z,K=Object,Y=F("".split),G=U((function(){return!K("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?Y(t,""):K(t)}:K,W=function(t){return null==t},H=W,V=TypeError,X=function(t){if(H(t))throw V("Can't call method on "+t);return t},J=G,Q=X,Z=function(t){return J(Q(t))},tt="object"==typeof document&&document.all,et={all:tt,IS_HTMLDDA:void 0===tt&&void 0!==tt},rt=et.all,nt=et.IS_HTMLDDA?function(t){return"function"==typeof t||t===rt}:function(t){return"function"==typeof t},ot=nt,it=et.all,ct=et.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ot(t)||t===it}:function(t){return"object"==typeof t?null!==t:ot(t)},ut=b,at=nt,st=function(t){return at(t)?t:void 0},lt=function(t,e){return arguments.length<2?st(ut[t]):ut[t]&&ut[t][e]},ft=F({}.isPrototypeOf),pt=b,dt=lt("navigator","userAgent")||"",ht=pt.process,gt=pt.Deno,vt=ht&&ht.versions||gt&&gt.version,yt=vt&&vt.v8;yt&&(P=(A=yt.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!P&&dt&&(!(A=dt.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=dt.match(/Chrome\/(\d+)/))&&(P=+A[1]);var bt=P,mt=bt,wt=w,xt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),St=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=lt,Ot=nt,jt=ft,It=Object,Ct=St?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return Ot(e)&&jt(e.prototype,It(t))},_t=String,Rt=nt,At=function(t){try{return _t(t)}catch(t){return"Object"}},Pt=TypeError,$t=function(t){if(Rt(t))return t;throw Pt(At(t)+" is not a function")},Tt=$t,Dt=W,Mt=function(t,e){var r=t[e];return Dt(r)?void 0:Tt(r)},kt=j,Ft=nt,Nt=ct,Lt=TypeError,qt={exports:{}},zt=b,Ut=Object.defineProperty,Bt=function(t,e){try{Ut(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Kt=Bt,Yt=b["__core-js_shared__"]||Kt("__core-js_shared__",{}),Gt=Yt;(qt.exports=function(t,e){return Gt[t]||(Gt[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 Wt=X,Ht=Object,Vt=function(t){return Ht(Wt(t))},Xt=Vt,Jt=F({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Jt(Xt(t),e)},Zt=F,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=b,ie=qt.exports,ce=Qt,ue=ne,ae=xt,se=St,le=ie("wks"),fe=oe.Symbol,pe=fe&&fe.for,de=se?fe:fe&&fe.withoutSetter||ue,he=function(t){if(!ce(le,t)||!ae&&"string"!=typeof le[t]){var e="Symbol."+t;ae&&ce(fe,t)?le[t]=fe[t]:le[t]=se&&pe?pe(e):de(e)}return le[t]},ge=j,ve=ct,ye=Ct,be=Mt,me=function(t,e){var r,n;if("string"===e&&Ft(r=t.toString)&&!Nt(n=kt(r,t)))return n;if(Ft(r=t.valueOf)&&!Nt(n=kt(r,t)))return n;if("string"!==e&&Ft(r=t.toString)&&!Nt(n=kt(r,t)))return n;throw Lt("Can't convert object to primitive value")},we=TypeError,xe=he("toPrimitive"),Se=function(t,e){if(!ve(t)||ye(t))return t;var r,n=be(t,xe);if(n){if(void 0===e&&(e="default"),r=ge(n,t,e),!ve(r)||ye(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),me(t,e)},Ee=Ct,Oe=function(t){var e=Se(t,"string");return Ee(e)?e:e+""},je=ct,Ie=b.document,Ce=je(Ie)&&je(Ie.createElement),_e=function(t){return Ce?Ie.createElement(t):{}},Re=_e,Ae=!x&&!w((function(){return 7!=Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),Pe=x,$e=j,Te=I,De=$,Me=Z,ke=Oe,Fe=Qt,Ne=Ae,Le=Object.getOwnPropertyDescriptor;m.f=Pe?Le:function(t,e){if(t=Me(t),e=ke(e),Ne)try{return Le(t,e)}catch(t){}if(Fe(t,e))return De(!$e(Te.f,t,e),t[e])};var qe={},ze=x&&w((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=ct,Be=String,Ke=TypeError,Ye=function(t){if(Ue(t))return t;throw Ke(Be(t)+" is not an object")},Ge=x,We=Ae,He=ze,Ve=Ye,Xe=Oe,Je=TypeError,Qe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor;qe.f=Ge?He?function(t,e,r){if(Ve(t),e=Xe(e),Ve(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Ze(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ve(t),e=Xe(e),Ve(r),We)try{return Qe(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Je("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var tr=qe,er=$,rr=x?function(t,e,r){return tr.f(t,e,er(1,r))}:function(t,e,r){return t[e]=r,t},nr={exports:{}},or=x,ir=Qt,cr=Function.prototype,ur=or&&Object.getOwnPropertyDescriptor,ar=ir(cr,"name"),sr={EXISTS:ar,PROPER:ar&&"something"===function(){}.name,CONFIGURABLE:ar&&(!or||or&&ur(cr,"name").configurable)},lr=nt,fr=Yt,pr=F(Function.toString);lr(fr.inspectSource)||(fr.inspectSource=function(t){return pr(t)});var dr,hr,gr,vr=fr.inspectSource,yr=nt,br=b.WeakMap,mr=yr(br)&&/native code/.test(String(br)),wr=qt.exports,xr=ne,Sr=wr("keys"),Er=function(t){return Sr[t]||(Sr[t]=xr(t))},Or={},jr=mr,Ir=b,Cr=ct,_r=rr,Rr=Qt,Ar=Yt,Pr=Er,$r=Or,Tr=Ir.TypeError,Dr=Ir.WeakMap;if(jr||Ar.state){var Mr=Ar.state||(Ar.state=new Dr);Mr.get=Mr.get,Mr.has=Mr.has,Mr.set=Mr.set,dr=function(t,e){if(Mr.has(t))throw Tr("Object already initialized");return e.facade=t,Mr.set(t,e),e},hr=function(t){return Mr.get(t)||{}},gr=function(t){return Mr.has(t)}}else{var kr=Pr("state");$r[kr]=!0,dr=function(t,e){if(Rr(t,kr))throw Tr("Object already initialized");return e.facade=t,_r(t,kr,e),e},hr=function(t){return Rr(t,kr)?t[kr]:{}},gr=function(t){return Rr(t,kr)}}var Fr={set:dr,get:hr,has:gr,enforce:function(t){return gr(t)?hr(t):dr(t,{})},getterFor:function(t){return function(e){var r;if(!Cr(e)||(r=hr(e)).type!==t)throw Tr("Incompatible receiver, "+t+" required");return r}}},Nr=w,Lr=nt,qr=Qt,zr=x,Ur=sr.CONFIGURABLE,Br=vr,Kr=Fr.enforce,Yr=Fr.get,Gr=Object.defineProperty,Wr=zr&&!Nr((function(){return 8!==Gr((function(){}),"length",{value:8}).length})),Hr=String(String).split("String"),Vr=nr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!qr(t,"name")||Ur&&t.name!==e)&&(zr?Gr(t,"name",{value:e,configurable:!0}):t.name=e),Wr&&r&&qr(r,"arity")&&t.length!==r.arity&&Gr(t,"length",{value:r.arity});try{r&&qr(r,"constructor")&&r.constructor?zr&&Gr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Kr(t);return qr(n,"source")||(n.source=Hr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Vr((function(){return Lr(this)&&Yr(this).source||Br(this)}),"toString");var Xr=nt,Jr=qe,Qr=nr.exports,Zr=Bt,tn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Xr(r)&&Qr(r,i,n),n.global)o?t[e]=r:Zr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Jr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},en={},rn=Math.ceil,nn=Math.floor,on=Math.trunc||function(t){var e=+t;return(e>0?nn:rn)(e)},cn=function(t){var e=+t;return e!=e||0===e?0:on(e)},un=cn,an=Math.max,sn=Math.min,ln=cn,fn=Math.min,pn=function(t){return t>0?fn(ln(t),9007199254740991):0},dn=pn,hn=function(t){return dn(t.length)},gn=Z,vn=function(t,e){var r=un(t);return r<0?an(r+e,0):sn(r,e)},yn=hn,bn=function(t){return function(e,r,n){var o,i=gn(e),c=yn(i),u=vn(n,c);if(t&&r!=r){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},mn={includes:bn(!0),indexOf:bn(!1)},wn=Qt,xn=Z,Sn=mn.indexOf,En=Or,On=F([].push),jn=function(t,e){var r,n=xn(t),o=0,i=[];for(r in n)!wn(En,r)&&wn(n,r)&&On(i,r);for(;e.length>o;)wn(n,r=e[o++])&&(~Sn(i,r)||On(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cn=jn,_n=In.concat("length","prototype");en.f=Object.getOwnPropertyNames||function(t){return Cn(t,_n)};var Rn={};Rn.f=Object.getOwnPropertySymbols;var An=lt,Pn=en,$n=Rn,Tn=Ye,Dn=F([].concat),Mn=An("Reflect","ownKeys")||function(t){var e=Pn.f(Tn(t)),r=$n.f;return r?Dn(e,r(t)):e},kn=Qt,Fn=Mn,Nn=m,Ln=qe,qn=w,zn=nt,Un=/#|\.prototype\./,Bn=function(t,e){var r=Yn[Kn(t)];return r==Wn||r!=Gn&&(zn(e)?qn(e):!!e)},Kn=Bn.normalize=function(t){return String(t).replace(Un,".").toLowerCase()},Yn=Bn.data={},Gn=Bn.NATIVE="N",Wn=Bn.POLYFILL="P",Hn=Bn,Vn=b,Xn=m.f,Jn=rr,Qn=tn,Zn=Bt,to=function(t,e,r){for(var n=Fn(e),o=Ln.f,i=Nn.f,c=0;c<n.length;c++){var u=n[c];kn(t,u)||r&&kn(r,u)||o(t,u,i(e,u))}},eo=Hn,ro=function(t,e){var r,n,o,i,c,u=t.target,a=t.global,s=t.stat;if(r=a?Vn:s?Vn[u]||Zn(u,{}):(Vn[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(c=Xn(r,n))&&c.value:r[n],!eo(a?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;to(i,o)}(t.sham||o&&o.sham)&&Jn(i,"sham",!0),Qn(r,n,i,t)}},no=z,oo=F,io=function(t){if("Function"===no(t))return oo(t)},co=$t,uo=S,ao=io(io.bind),so=z,lo=Array.isArray||function(t){return"Array"==so(t)},fo={};fo[he("toStringTag")]="z";var po="[object z]"===String(fo),ho=nt,go=z,vo=he("toStringTag"),yo=Object,bo="Arguments"==go(function(){return arguments}()),mo=po?go:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=yo(t),vo))?r:bo?go(e):"Object"==(n=go(e))&&ho(e.callee)?"Arguments":n},wo=F,xo=w,So=nt,Eo=mo,Oo=vr,jo=function(){},Io=[],Co=lt("Reflect","construct"),_o=/^\s*(?:class|function)\b/,Ro=wo(_o.exec),Ao=!_o.exec(jo),Po=function(t){if(!So(t))return!1;try{return Co(jo,Io,t),!0}catch(t){return!1}},$o=function(t){if(!So(t))return!1;switch(Eo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ao||!!Ro(_o,Oo(t))}catch(t){return!0}};$o.sham=!0;var To=!Co||xo((function(){var t;return Po(Po.call)||!Po(Object)||!Po((function(){t=!0}))||t}))?$o:Po,Do=lo,Mo=To,ko=ct,Fo=he("species"),No=Array,Lo=function(t){var e;return Do(t)&&(e=t.constructor,(Mo(e)&&(e===No||Do(e.prototype))||ko(e)&&null===(e=e[Fo]))&&(e=void 0)),void 0===e?No:e},qo=function(t,e){return co(t),void 0===e?t:uo?ao(t,e):function(){return t.apply(e,arguments)}},zo=G,Uo=Vt,Bo=hn,Ko=function(t,e){return new(Lo(t))(0===e?0:e)},Yo=F([].push),Go=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,s,l,f){for(var p,d,h=Uo(a),g=zo(h),v=qo(s,l),y=Bo(g),b=0,m=f||Ko,w=e?m(a,y):r||c?m(a,0):void 0;y>b;b++)if((u||b in g)&&(d=v(p=g[b],b,h),t))if(e)w[b]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:Yo(w,p)}else switch(t){case 4:return!1;case 7:Yo(w,p)}return i?-1:n||o?o:w}},Wo={forEach:Go(0),map:Go(1),filter:Go(2),some:Go(3),every:Go(4),find:Go(5),findIndex:Go(6),filterReject:Go(7)},Ho=w,Vo=bt,Xo=he("species"),Jo=Wo.map;ro({target:"Array",proto:!0,forced:!function(t){return Vo>=51||!Ho((function(){var e=[];return(e.constructor={})[Xo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("map")},{map:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}});var Qo=x,Zo=sr.EXISTS,ti=F,ei=qe.f,ri=Function.prototype,ni=ti(ri.toString),oi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ii=ti(oi.exec);Qo&&!Zo&&ei(ri,"name",{configurable:!0,get:function(){try{return ii(oi,ni(this))[1]}catch(t){return""}}});var ci=mo,ui=String,ai=function(t){if("Symbol"===ci(t))throw TypeError("Cannot convert a Symbol value to a string");return ui(t)},si=Ye,li=function(){var t=si(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=w,pi=b.RegExp,di=fi((function(){var t=pi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hi=di||fi((function(){return!pi("a","y").sticky})),gi=di||fi((function(){var t=pi("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),vi={BROKEN_CARET:gi,MISSED_STICKY:hi,UNSUPPORTED_Y:di},yi={},bi=jn,mi=In,wi=Object.keys||function(t){return bi(t,mi)},xi=x,Si=ze,Ei=qe,Oi=Ye,ji=Z,Ii=wi;yi.f=xi&&!Si?Object.defineProperties:function(t,e){Oi(t);for(var r,n=ji(e),o=Ii(e),i=o.length,c=0;i>c;)Ei.f(t,r=o[c++],n[r]);return t};var Ci,_i=lt("document","documentElement"),Ri=Ye,Ai=yi,Pi=In,$i=Or,Ti=_i,Di=_e,Mi=Er("IE_PROTO"),ki=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{Ci=new ActiveXObject("htmlfile")}catch(t){}var t,e;Li="undefined"!=typeof document?document.domain&&Ci?Ni(Ci):((e=Di("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(Ci);for(var r=Pi.length;r--;)delete Li.prototype[Pi[r]];return Li()};$i[Mi]=!0;var qi=Object.create||function(t,e){var r;return null!==t?(ki.prototype=Ri(t),r=new ki,ki.prototype=null,r[Mi]=t):r=Li(),void 0===e?r:Ai.f(r,e)},zi=w,Ui=b.RegExp,Bi=zi((function(){var t=Ui(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ki=w,Yi=b.RegExp,Gi=Ki((function(){var t=Yi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Wi=j,Hi=F,Vi=ai,Xi=li,Ji=vi,Qi=qt.exports,Zi=qi,tc=Fr.get,ec=Bi,rc=Gi,nc=Qi("native-string-replace",String.prototype.replace),oc=RegExp.prototype.exec,ic=oc,cc=Hi("".charAt),uc=Hi("".indexOf),ac=Hi("".replace),sc=Hi("".slice),lc=function(){var t=/a/,e=/b*/g;return Wi(oc,t,"a"),Wi(oc,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),fc=Ji.BROKEN_CARET,pc=void 0!==/()??/.exec("")[1];(lc||pc||fc||ec||rc)&&(ic=function(t){var e,r,n,o,i,c,u,a=this,s=tc(a),l=Vi(t),f=s.raw;if(f)return f.lastIndex=a.lastIndex,e=Wi(ic,f,l),a.lastIndex=f.lastIndex,e;var p=s.groups,d=fc&&a.sticky,h=Wi(Xi,a),g=a.source,v=0,y=l;if(d&&(h=ac(h,"y",""),-1===uc(h,"g")&&(h+="g"),y=sc(l,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==cc(l,a.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),r=new RegExp("^(?:"+g+")",h)),pc&&(r=new RegExp("^"+g+"$(?!\\s)",h)),lc&&(n=a.lastIndex),o=Wi(oc,d?r:a,y),d?o?(o.input=sc(o.input,v),o[0]=sc(o[0],v),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:lc&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),pc&&o&&o.length>1&&Wi(nc,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=Zi(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var dc=ic;ro({target:"RegExp",proto:!0,forced:/./.exec!==dc},{exec:dc});var hc,gc,vc=ro,yc=j,bc=nt,mc=Ye,wc=ai,xc=(hc=!1,(gc=/[ac]/).exec=function(){return hc=!0,/./.exec.apply(this,arguments)},!0===gc.test("abc")&&hc),Sc=/./.test;vc({target:"RegExp",proto:!0,forced:!xc},{test:function(t){var e=mc(this),r=wc(t),n=e.exec;if(!bc(n))return yc(Sc,e,r);var o=yc(n,e,r);return null!==o&&(mc(o),!0)}});var Ec=S,Oc=Function.prototype,jc=Oc.apply,Ic=Oc.call,Cc="object"==typeof Reflect&&Reflect.apply||(Ec?Ic.bind(jc):function(){return Ic.apply(jc,arguments)}),_c=io,Rc=tn,Ac=dc,Pc=w,$c=he,Tc=rr,Dc=$c("species"),Mc=RegExp.prototype,kc=F,Fc=cn,Nc=ai,Lc=X,qc=kc("".charAt),zc=kc("".charCodeAt),Uc=kc("".slice),Bc=function(t){return function(e,r){var n,o,i=Nc(Lc(e)),c=Fc(r),u=i.length;return c<0||c>=u?t?"":void 0:(n=zc(i,c))<55296||n>56319||c+1===u||(o=zc(i,c+1))<56320||o>57343?t?qc(i,c):n:t?Uc(i,c,c+2):o-56320+(n-55296<<10)+65536}},Kc={codeAt:Bc(!1),charAt:Bc(!0)}.charAt,Yc=F,Gc=Vt,Wc=Math.floor,Hc=Yc("".charAt),Vc=Yc("".replace),Xc=Yc("".slice),Jc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qc=/\$([$&'`]|\d{1,2})/g,Zc=j,tu=Ye,eu=nt,ru=z,nu=dc,ou=TypeError,iu=Cc,cu=j,uu=F,au=function(t,e,r,n){var o=$c(t),i=!Pc((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!Pc((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Dc]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!c||r){var u=_c(/./[o]),a=e(o,""[t],(function(t,e,r,n,o){var c=_c(t),a=e.exec;return a===Ac||a===Mc.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:c(r,e,n)}:{done:!1}}));Rc(String.prototype,t,a[0]),Rc(Mc,o,a[1])}n&&Tc(Mc[o],"sham",!0)},su=w,lu=Ye,fu=nt,pu=W,du=cn,hu=pn,gu=ai,vu=X,yu=function(t,e,r){return e+(r?Kc(t,e).length:1)},bu=Mt,mu=function(t,e,r,n,o,i){var c=r+t.length,u=n.length,a=Qc;return void 0!==o&&(o=Gc(o),a=Jc),Vc(i,a,(function(i,a){var s;switch(Hc(a,0)){case"$":return"$";case"&":return t;case"`":return Xc(e,0,r);case"'":return Xc(e,c);case"<":s=o[Xc(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>u){var f=Wc(l/10);return 0===f?i:f<=u?void 0===n[f-1]?Hc(a,1):n[f-1]+Hc(a,1):i}s=n[l-1]}return void 0===s?"":s}))},wu=function(t,e){var r=t.exec;if(eu(r)){var n=Zc(r,t,e);return null!==n&&tu(n),n}if("RegExp"===ru(t))return Zc(nu,t,e);throw ou("RegExp#exec called on incompatible receiver")},xu=he("replace"),Su=Math.max,Eu=Math.min,Ou=uu([].concat),ju=uu([].push),Iu=uu("".indexOf),Cu=uu("".slice),_u="$0"==="a".replace(/./,"$0"),Ru=!!/./[xu]&&""===/./[xu]("a","$0"),Au=!su((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));au("replace",(function(t,e,r){var n=Ru?"$":"$0";return[function(t,r){var n=vu(this),o=pu(t)?void 0:bu(t,xu);return o?cu(o,t,n,r):cu(e,gu(n),t,r)},function(t,o){var i=lu(this),c=gu(t);if("string"==typeof o&&-1===Iu(o,n)&&-1===Iu(o,"$<")){var u=r(e,i,c,o);if(u.done)return u.value}var a=fu(o);a||(o=gu(o));var s=i.global;if(s){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=wu(i,c);if(null===p)break;if(ju(f,p),!s)break;""===gu(p[0])&&(i.lastIndex=yu(c,hu(i.lastIndex),l))}for(var d,h="",g=0,v=0;v<f.length;v++){for(var y=gu((p=f[v])[0]),b=Su(Eu(du(p.index),c.length),0),m=[],w=1;w<p.length;w++)ju(m,void 0===(d=p[w])?d:String(d));var x=p.groups;if(a){var S=Ou([y],m,b,c);void 0!==x&&ju(S,x);var E=gu(iu(o,void 0,S))}else E=mu(y,c,b,m,x,o);b>=g&&(h+=Cu(c,g,b)+E,g=b+y.length)}return h+Cu(c,g)}]}),!Au||!_u||Ru);var Pu=nt,$u=String,Tu=TypeError,Du=F,Mu=Ye,ku=function(t){if("object"==typeof t||Pu(t))return t;throw Tu("Can't set "+$u(t)+" as a prototype")},Fu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Du(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Mu(r),ku(n),e?t(r,n):r.__proto__=n,r}}():void 0),Nu=nt,Lu=ct,qu=Fu,zu=ct,Uu=z,Bu=he("match"),Ku=j,Yu=Qt,Gu=ft,Wu=li,Hu=RegExp.prototype,Vu=function(t){var e=t.flags;return void 0!==e||"flags"in Hu||Yu(t,"flags")||!Gu(Hu,t)?e:Ku(Wu,t)},Xu=qe.f,Ju=lt,Qu=qe,Zu=x,ta=he("species"),ea=x,ra=b,na=F,oa=Hn,ia=function(t,e,r){var n,o;return qu&&Nu(n=e.constructor)&&n!==r&&Lu(o=n.prototype)&&o!==r.prototype&&qu(t,o),t},ca=rr,ua=en.f,aa=ft,sa=function(t){var e;return zu(t)&&(void 0!==(e=t[Bu])?!!e:"RegExp"==Uu(t))},la=ai,fa=Vu,pa=vi,da=function(t,e,r){r in t||Xu(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},ha=tn,ga=w,va=Qt,ya=Fr.enforce,ba=function(t){var e=Ju(t),r=Qu.f;Zu&&e&&!e[ta]&&r(e,ta,{configurable:!0,get:function(){return this}})},ma=Bi,wa=Gi,xa=he("match"),Sa=ra.RegExp,Ea=Sa.prototype,Oa=ra.SyntaxError,ja=na(Ea.exec),Ia=na("".charAt),Ca=na("".replace),_a=na("".indexOf),Ra=na("".slice),Aa=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Pa=/a/g,$a=/a/g,Ta=new Sa(Pa)!==Pa,Da=pa.MISSED_STICKY,Ma=pa.UNSUPPORTED_Y,ka=ea&&(!Ta||Da||ma||wa||ga((function(){return $a[xa]=!1,Sa(Pa)!=Pa||Sa($a)==$a||"/a/i"!=Sa(Pa,"i")})));if(oa("RegExp",ka)){for(var Fa=function(t,e){var r,n,o,i,c,u,a=aa(Ea,this),s=sa(t),l=void 0===e,f=[],p=t;if(!a&&s&&l&&t.constructor===Fa)return t;if((s||aa(Ea,t))&&(t=t.source,l&&(e=fa(p))),t=void 0===t?"":la(t),e=void 0===e?"":la(e),p=t,ma&&"dotAll"in Pa&&(n=!!e&&_a(e,"s")>-1)&&(e=Ca(e,/s/g,"")),r=e,Da&&"sticky"in Pa&&(o=!!e&&_a(e,"y")>-1)&&Ma&&(e=Ca(e,/y/g,"")),wa&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],c={},u=!1,a=!1,s=0,l="";n<=r;n++){if("\\"===(e=Ia(t,n)))e+=Ia(t,++n);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:ja(Aa,Ra(t,n+1))&&(n+=2,a=!0),o+=e,s++;continue;case">"===e&&a:if(""===l||va(c,l))throw new Oa("Invalid capture group name");c[l]=!0,i[i.length]=[l,s],a=!1,l="";continue}a?l+=e:o+=e}return[o,i]}(t),t=i[0],f=i[1]),c=ia(Sa(t,e),a?this:Ea,Fa),(n||o||f.length)&&(u=ya(c),n&&(u.dotAll=!0,u.raw=Fa(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Ia(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Ia(t,++n);return o}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{ca(c,"source",""===p?"(?:)":p)}catch(t){}return c},Na=ua(Sa),La=0;Na.length>La;)da(Fa,Sa,Na[La++]);Ea.constructor=Fa,Fa.prototype=Ea,ha(ra,"RegExp",Fa,{constructor:!0})}ba("RegExp");var qa=nr.exports,za=qe,Ua=x,Ba=vi.MISSED_STICKY,Ka=z,Ya=function(t,e,r){return r.get&&qa(r.get,e,{getter:!0}),r.set&&qa(r.set,e,{setter:!0}),za.f(t,e,r)},Ga=Fr.get,Wa=RegExp.prototype,Ha=TypeError;Ua&&Ba&&Ya(Wa,"sticky",{configurable:!0,get:function(){if(this!==Wa){if("RegExp"===Ka(this))return!!Ga(this).sticky;throw Ha("Incompatible receiver, RegExp required")}}});var Va=sr.PROPER,Xa=tn,Ja=Ye,Qa=ai,Za=w,ts=Vu,es=RegExp.prototype.toString,rs=Za((function(){return"/a/b"!=es.call({source:"a",flags:"b"})})),ns=Va&&"toString"!=es.name;(rs||ns)&&Xa(RegExp.prototype,"toString",(function(){var t=Ja(this);return"/"+Qa(t.source)+"/"+Qa(ts(t))}),{unsafe:!0});var os={name:"BaseDropDown",inheritAttrs:!1,props:{title:{type:String,default:""},icon:{type:String},options:{type:Array},cls:{type:String},ctCls:{type:String},itemCtCls:{type:String},dropdownMenuCls:{type:String}},methods:{getEl:function(){return this.$refs["".concat(this._uid,"-base-drop-down")]},hide:function(){this.$refs["".concat(this._uid,"-base-drop-down")].hide()},createChildrenDropdown:function(t){var e=this,r=t.children,n=this.$createElement;return n("el-dropdown",{props:{placement:"right-start"},class:{"subset-dropdown":!0}},[n("div",{class:{"el-dropdown-link":!0,"link-content":!0}},[n("span",{class:{"link-text":!0}},[t.text]),n("i",{class:{"el-icon-arrow-right":!0,"link-icon":!0}},[])]),n("el-dropdown-menu",{slot:"dropdown",class:g({},this.dropdownMenuCls,this.dropdownMenuCls)},[r.map((function(t){return n("el-dropdown-item",{class:g({},e.itemCtCls,e.itemCtCls),props:l(t,["text","listeners"]),nativeOn:f(t,"listeners",{})},[t.children&&t.children.length?e.createChildrenDropdown(t):t.text])}))])])},updateDropdown:function(){this.$forceUpdate()},createElDropdownItem:function(t){var e=[];if(!s(this.options)){for(var r=0,n=this.options.length;r<n;r++){var o=this.options[r],i={};p(this.$scopedSlots,"default")?(i=this.$scopedSlots.default(o),e.push(i)):o.children&&o.children.length>0?(i=this.$createElement("el-dropdown-item",{},[this.createChildrenDropdown(o)]),e.push(i)):(i=this.$createElement("el-dropdown-item",{class:g({},this.itemCtCls,this.itemCtCls),props:l(o,["text","listeners"]),nativeOn:f(o,"listeners",{})},[p(o,"render")?o.render.call(this.$parent,this.$createElement):o.text]),e.push(i))}p(this.$slots,"footer")&&e.push(this.$slots.footer)}return e}},render:function(t){return 0===this.options.length?p(this.$slots,"title")?this.$slots.title:t("span",{class:g({},this.cls,this.cls)},[this.title]):t("el-dropdown",{ref:"".concat(this._uid,"-base-drop-down"),attrs:{id:this.$attrs.id},class:g({"base-drop-down":!0},this.cls,this.cls),props:a({},this.$attrs),on:this.$listeners},[t("span",{class:g({"el-dropdown-link":!0},this.ctCls,this.ctCls)},[p(this.$slots,"title")?this.$slots.title:this.title,t("i",{class:s(this.icon)?"el-icon-caret-bottom":this.icon})]),t("el-dropdown-menu",{slot:"dropdown",class:g({"base-dropdown-menu":!0},this.dropdownMenuCls,this.dropdownMenuCls)},this.createElDropdownItem())])}};os.install=function(t,e){var r;if(r="按需加载独立组件:"+os.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),d(e)&&!h(e))for(var n=0;n<e.length;n++)e[n].name!==os.name&&t.use(e[n]);t.component(os.name,os)},exports.BaseDropDown=os;