shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 20.4 kB
JavaScript
/*!
* shu-c-view v1.2.37
* (c) 2022-09-22
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),e=require("lodash/isEmpty"),r=require("lodash/has"),n=require("lodash/get");function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=o(t),a=o(e),c=o(r),u=o(n),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=function(t){try{return!!t()}catch(t){return!0}},f=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(t){return t&&t.Math==Math&&t},g=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h=l,d=/#|\.prototype\./,v=function(t,e){var r=b[y(t)];return r==E||r!=m&&("function"==typeof e?h(e):!!e)},y=v.normalize=function(t){return String(t).replace(d,".").toLowerCase()},b=v.data={},m=v.NATIVE="N",E=v.POLYFILL="P",x=v,S={exports:{}},O={},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=_,N=g.document,I=w(N)&&w(N.createElement),P=function(t){return I?N.createElement(t):{}},R=P,A=!f&&!l((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),j=_,T=function(t){if(!j(t))throw TypeError(String(t)+" is not an object");return t},F=_,k=function(t,e){if(!F(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!F(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!F(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!F(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},C=f,V=A,$=T,M=k,U=Object.defineProperty;O.f=C?U:function(t,e,r){if($(t),e=M(e,!0),$(r),V)try{return U(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B=O,L=D,G=f?function(t,e,r){return B.f(t,e,L(1,r))}:function(t,e,r){return t[e]=r,t},Y={}.hasOwnProperty,q=function(t,e){return Y.call(t,e)},K=g,W=G,X=function(t,e){try{W(K,t,e)}catch(r){K[t]=e}return e},z=X,H=g["__core-js_shared__"]||z("__core-js_shared__",{}),J=H,Q=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(t){return Q.call(t)});var Z=J.inspectSource,tt=Z,et=g.WeakMap,rt="function"==typeof et&&/native code/.test(tt(et)),nt={exports:{}},ot=H;(nt.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var it,at,ct,ut=0,st=Math.random(),lt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ut+st).toString(36)},ft=nt.exports,pt=lt,gt=ft("keys"),ht=function(t){return gt[t]||(gt[t]=pt(t))},dt={},vt=rt,yt=_,bt=G,mt=q,Et=H,xt=ht,St=dt,Ot=g.WeakMap;if(vt){var _t=Et.state||(Et.state=new Ot),wt=_t.get,Nt=_t.has,It=_t.set;it=function(t,e){return e.facade=t,It.call(_t,t,e),e},at=function(t){return wt.call(_t,t)||{}},ct=function(t){return Nt.call(_t,t)}}else{var Pt=xt("state");St[Pt]=!0,it=function(t,e){return e.facade=t,bt(t,Pt,e),e},at=function(t){return mt(t,Pt)?t[Pt]:{}},ct=function(t){return mt(t,Pt)}}var Rt={set:it,get:at,has:ct,enforce:function(t){return ct(t)?at(t):it(t,{})},getterFor:function(t){return function(e){var r;if(!yt(e)||(r=at(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},At=g,jt=G,Tt=q,Ft=X,kt=Z,Ct=Rt.get,Vt=Rt.enforce,$t=String(String).split("String");(S.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,c=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Tt(r,"name")||jt(r,"name",e),(o=Vt(r)).source||(o.source=$t.join("string"==typeof e?e:""))),t!==At?(i?!c&&t[e]&&(a=!0):delete t[e],a?t[e]=r:jt(t,e,r)):a?t[e]=r:Ft(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Ct(this).source||kt(this)}));var Mt,Ut={}.toString,Dt=function(t){return Ut.call(t).slice(8,-1)},Bt=_,Lt=T,Gt=function(t){if(!Bt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Yt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Lt(r),Gt(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),qt=_,Kt=Yt,Wt=function(t,e,r){var n,o;return Kt&&"function"==typeof(n=e.constructor)&&n!==r&&qt(o=n.prototype)&&o!==r.prototype&&Kt(t,o),t},Xt=Dt,zt="".split,Ht=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Jt=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Xt(t)?zt.call(t,""):Object(t)}:Object,Qt=Ht,Zt=function(t){return Jt(Qt(t))},te=Math.ceil,ee=Math.floor,re=function(t){return isNaN(t=+t)?0:(t>0?ee:te)(t)},ne=re,oe=Math.min,ie=function(t){return t>0?oe(ne(t),9007199254740991):0},ae=re,ce=Math.max,ue=Math.min,se=Zt,le=ie,fe=function(t,e){var r=ae(t);return r<0?ce(r+e,0):ue(r,e)},pe=function(t){return function(e,r,n){var o,i=se(e),a=le(i.length),c=fe(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},ge={includes:pe(!0),indexOf:pe(!1)},he=q,de=Zt,ve=ge.indexOf,ye=dt,be=function(t,e){var r,n=de(t),o=0,i=[];for(r in n)!he(ye,r)&&he(n,r)&&i.push(r);for(;e.length>o;)he(n,r=e[o++])&&(~ve(i,r)||i.push(r));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=be,xe=me,Se=Object.keys||function(t){return Ee(t,xe)},Oe=O,_e=T,we=Se,Ne=f?Object.defineProperties:function(t,e){_e(t);for(var r,n=we(e),o=n.length,i=0;o>i;)Oe.f(t,r=n[i++],e[r]);return t},Ie=g,Pe=g,Re=function(t){return"function"==typeof t?t:void 0},Ae=function(t,e){return arguments.length<2?Re(Ie[t])||Re(Pe[t]):Ie[t]&&Ie[t][e]||Pe[t]&&Pe[t][e]},je=Ae("document","documentElement"),Te=T,Fe=Ne,ke=me,Ce=dt,Ve=je,$e=P,Me=ht("IE_PROTO"),Ue=function(){},De=function(t){return"<script>"+t+"<\/script>"},Be=function(){try{Mt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Be=Mt?function(t){t.write(De("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Mt):((e=$e("iframe")).style.display="none",Ve.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(De("document.F=Object")),t.close(),t.F);for(var r=ke.length;r--;)delete Be.prototype[ke[r]];return Be()};Ce[Me]=!0;var Le=Object.create||function(t,e){var r;return null!==t?(Ue.prototype=Te(t),r=new Ue,Ue.prototype=null,r[Me]=t):r=Be(),void 0===e?r:Fe(r,e)},Ge={},Ye=be,qe=me.concat("length","prototype");Ge.f=Object.getOwnPropertyNames||function(t){return Ye(t,qe)};var Ke={},We={},Xe={}.propertyIsEnumerable,ze=Object.getOwnPropertyDescriptor,He=ze&&!Xe.call({1:2},1);We.f=He?function(t){var e=ze(this,t);return!!e&&e.enumerable}:Xe;var Je=f,Qe=We,Ze=D,tr=Zt,er=k,rr=q,nr=A,or=Object.getOwnPropertyDescriptor;Ke.f=Je?or:function(t,e){if(t=tr(t),e=er(e,!0),nr)try{return or(t,e)}catch(t){}if(rr(t,e))return Ze(!Qe.f.call(t,e),t[e])};var ir=Ht,ar="[\t\n\v\f\r \u2028\u2029\ufeff]",cr=RegExp("^"+ar+ar+"*"),ur=RegExp(ar+ar+"*$"),sr=function(t){return function(e){var r=String(ir(e));return 1&t&&(r=r.replace(cr,"")),2&t&&(r=r.replace(ur,"")),r}},lr={start:sr(1),end:sr(2),trim:sr(3)},fr=f,pr=g,gr=x,hr=S.exports,dr=q,vr=Dt,yr=Wt,br=k,mr=l,Er=Le,xr=Ge.f,Sr=Ke.f,Or=O.f,_r=lr.trim,wr=pr.Number,Nr=wr.prototype,Ir="Number"==vr(Er(Nr)),Pr=function(t){var e,r,n,o,i,a,c,u,s=br(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=_r(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,n)}return+s};if(gr("Number",!wr(" 0o1")||!wr("0b1")||wr("+0x1"))){for(var Rr,Ar=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Ar&&(Ir?mr((function(){Nr.valueOf.call(r)})):"Number"!=vr(r))?yr(new wr(Pr(e)),r,Ar):Pr(e)},jr=fr?xr(wr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Tr=0;jr.length>Tr;Tr++)dr(wr,Rr=jr[Tr])&&!dr(Ar,Rr)&&Or(Ar,Rr,Sr(wr,Rr));Ar.prototype=Nr,Nr.constructor=Ar,hr(pr,"Number",Ar)}var Fr={};Fr.f=Object.getOwnPropertySymbols;var kr=Ge,Cr=Fr,Vr=T,$r=Ae("Reflect","ownKeys")||function(t){var e=kr.f(Vr(t)),r=Cr.f;return r?e.concat(r(t)):e},Mr=q,Ur=$r,Dr=Ke,Br=O,Lr=g,Gr=Ke.f,Yr=G,qr=S.exports,Kr=X,Wr=function(t,e){for(var r=Ur(e),n=Br.f,o=Dr.f,i=0;i<r.length;i++){var a=r[i];Mr(t,a)||n(t,a,o(e,a))}},Xr=x,zr=function(t,e){var r,n,o,i,a,c=t.target,u=t.global,s=t.stat;if(r=u?Lr:s?Lr[c]||Kr(c,{}):(Lr[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Gr(r,n))&&a.value:r[n],!Xr(u?n:c+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wr(i,o)}(t.sham||o&&o.sham)&&Yr(i,"sham",!0),qr(r,n,i,t)}},Hr=Dt,Jr=re,Qr=Ht,Zr=zr,tn=re,en=function(t){if("number"!=typeof t&&"Number"!=Hr(t))throw TypeError("Incorrect invocation");return+t},rn="".repeat||function(t){var e=String(Qr(this)),r="",n=Jr(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},nn=l,on=1..toFixed,an=Math.floor,cn=function(t,e,r){return 0===e?r:e%2==1?cn(t,e-1,r*t):cn(t*t,e/2,r)},un=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=an(o/1e7)},sn=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=an(n/e),n=n%e*1e7},ln=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=String(t[e]);r=""===r?n:r+rn.call("0",7-n.length)+n}return r};Zr({target:"Number",proto:!0,forced:on&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!nn((function(){on.call({})}))},{toFixed:function(t){var e,r,n,o,i=en(this),a=tn(t),c=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(i*cn(2,69,1))-69)<0?i*cn(2,-e,1):i/cn(2,e,1),r*=4503599627370496,(e=52-e)>0){for(un(c,0,r),n=a;n>=7;)un(c,1e7,0),n-=7;for(un(c,cn(10,n,1),0),n=e-1;n>=23;)sn(c,1<<23),n-=23;sn(c,1<<n),un(c,1,1),sn(c,2),s=ln(c)}else un(c,0,r),un(c,1<<-e,0),s=ln(c)+rn.call("0",a);return s=a>0?u+((o=s.length)<=a?"0."+rn.call("0",a-o)+s:s.slice(0,o-a)+"."+s.slice(o-a)):u+s}});var fn=f,pn=O.f,gn=Function.prototype,hn=gn.toString,dn=/^\s*function ([^ (]*)/;fn&&!("name"in gn)&&pn(gn,"name",{configurable:!0,get:function(){try{return hn.call(this).match(dn)[1]}catch(t){return""}}});var vn=T,yn=function(){var t=vn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},bn={},mn=l;function En(t,e){return RegExp(t,e)}bn.UNSUPPORTED_Y=mn((function(){var t=En("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),bn.BROKEN_CARET=mn((function(){var t=En("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var xn=yn,Sn=bn,On=RegExp.prototype.exec,_n=String.prototype.replace,wn=On,Nn=function(){var t=/a/,e=/b*/g;return On.call(t,"a"),On.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),In=Sn.UNSUPPORTED_Y||Sn.BROKEN_CARET,Pn=void 0!==/()??/.exec("")[1];(Nn||Pn||In)&&(wn=function(t){var e,r,n,o,i=this,a=In&&i.sticky,c=xn.call(i),u=i.source,s=0,l=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,s++),r=new RegExp("^(?:"+u+")",c)),Pn&&(r=new RegExp("^"+u+"$(?!\\s)",c)),Nn&&(e=i.lastIndex),n=On.call(a?r:i,l),a?n?(n.input=n.input.slice(s),n[0]=n[0].slice(s),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Nn&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Pn&&n&&n.length>1&&_n.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Rn=wn;zr({target:"RegExp",proto:!0,forced:/./.exec!==Rn},{exec:Rn});var An,jn,Tn="process"==Dt(g.process),Fn=Ae("navigator","userAgent")||"",kn=g.process,Cn=kn&&kn.versions,Vn=Cn&&Cn.v8;Vn?jn=(An=Vn.split("."))[0]+An[1]:Fn&&(!(An=Fn.match(/Edge\/(\d+)/))||An[1]>=74)&&(An=Fn.match(/Chrome\/(\d+)/))&&(jn=An[1]);var $n=Tn,Mn=jn&&+jn,Un=l,Dn=!!Object.getOwnPropertySymbols&&!Un((function(){return!Symbol.sham&&($n?38===Mn:Mn>37&&Mn<41)})),Bn=Dn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ln=g,Gn=nt.exports,Yn=q,qn=lt,Kn=Dn,Wn=Bn,Xn=Gn("wks"),zn=Ln.Symbol,Hn=Wn?zn:zn&&zn.withoutSetter||qn,Jn=function(t){return Yn(Xn,t)&&(Kn||"string"==typeof Xn[t])||(Kn&&Yn(zn,t)?Xn[t]=zn[t]:Xn[t]=Hn("Symbol."+t)),Xn[t]},Qn=S.exports,Zn=l,to=Jn,eo=Rn,ro=G,no=to("species"),oo=!Zn((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),io="$0"==="a".replace(/./,"$0"),ao=to("replace"),co=!!/./[ao]&&""===/./[ao]("a","$0"),uo=!Zn((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),so=re,lo=Ht,fo=function(t){return function(e,r){var n,o,i=String(lo(e)),a=so(r),c=i.length;return a<0||a>=c?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},po={codeAt:fo(!1),charAt:fo(!0)}.charAt,go=Ht,ho=function(t){return Object(go(t))},vo=Math.floor,yo="".replace,bo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mo=/\$([$&'`]|\d{1,2})/g,Eo=Dt,xo=Rn,So=function(t,e,r,n){var o=to(t),i=!Zn((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!Zn((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[no]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||"replace"===t&&(!oo||!io||co)||"split"===t&&!uo){var c=/./[o],u=r(o,""[t],(function(t,e,r,n,o){return e.exec===eo?i&&!o?{done:!0,value:c.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:io,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:co}),s=u[0],l=u[1];Qn(String.prototype,t,s),Qn(RegExp.prototype,o,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&ro(RegExp.prototype[o],"sham",!0)},Oo=T,_o=ie,wo=re,No=Ht,Io=function(t,e,r){return e+(r?po(t,e).length:1)},Po=function(t,e,r,n,o,i){var a=r+t.length,c=n.length,u=mo;return void 0!==o&&(o=ho(o),u=bo),yo.call(i,u,(function(i,u){var s;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":s=o[u.slice(1,-1)];break;default:var l=+u;if(0===l)return i;if(l>c){var f=vo(l/10);return 0===f?i:f<=c?void 0===n[f-1]?u.charAt(1):n[f-1]+u.charAt(1):i}s=n[l-1]}return void 0===s?"":s}))},Ro=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Eo(t))throw TypeError("RegExp#exec called on incompatible receiver");return xo.call(t,e)},Ao=Math.max,jo=Math.min;So("replace",2,(function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(r,n){var o=No(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var c=r(e,t,this,n);if(c.done)return c.value}var u=Oo(t),s=String(this),l="function"==typeof n;l||(n=String(n));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var g=[];;){var h=Ro(u,s);if(null===h)break;if(g.push(h),!f)break;""===String(h[0])&&(u.lastIndex=Io(s,_o(u.lastIndex),p))}for(var d,v="",y=0,b=0;b<g.length;b++){h=g[b];for(var m=String(h[0]),E=Ao(jo(wo(h.index),s.length),0),x=[],S=1;S<h.length;S++)x.push(void 0===(d=h[S])?d:String(d));var O=h.groups;if(l){var _=[m].concat(x,E,s);void 0!==O&&_.push(O);var w=String(n.apply(void 0,_))}else w=Po(m,s,E,x,O,n);E>=y&&(v+=s.slice(y,E)+w,y=E+m.length)}return v+s.slice(y)}]}));var To=_,Fo=Dt,ko=Jn("match"),Co=Ae,Vo=O,$o=f,Mo=Jn("species"),Uo=f,Do=g,Bo=x,Lo=Wt,Go=O.f,Yo=Ge.f,qo=function(t){var e;return To(t)&&(void 0!==(e=t[ko])?!!e:"RegExp"==Fo(t))},Ko=yn,Wo=bn,Xo=S.exports,zo=l,Ho=Rt.set,Jo=function(t){var e=Co(t),r=Vo.f;$o&&e&&!e[Mo]&&r(e,Mo,{configurable:!0,get:function(){return this}})},Qo=Jn("match"),Zo=Do.RegExp,ti=Zo.prototype,ei=/a/g,ri=/a/g,ni=new Zo(ei)!==ei,oi=Wo.UNSUPPORTED_Y;if(Uo&&Bo("RegExp",!ni||oi||zo((function(){return ri[Qo]=!1,Zo(ei)!=ei||Zo(ri)==ri||"/a/i"!=Zo(ei,"i")})))){for(var ii=function(t,e){var r,n=this instanceof ii,o=qo(t),i=void 0===e;if(!n&&o&&t.constructor===ii&&i)return t;ni?o&&!i&&(t=t.source):t instanceof ii&&(i&&(e=Ko.call(t)),t=t.source),oi&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=Lo(ni?new Zo(t,e):Zo(t,e),n?this:ti,ii);return oi&&r&&Ho(a,{sticky:r}),a},ai=function(t){t in ii||Go(ii,t,{configurable:!0,get:function(){return Zo[t]},set:function(e){Zo[t]=e}})},ci=Yo(Zo),ui=0;ci.length>ui;)ai(ci[ui++]);ti.constructor=ii,ii.prototype=ti,Xo(Do,"RegExp",ii)}Jo("RegExp");var si=S.exports,li=T,fi=l,pi=yn,gi=RegExp.prototype,hi=gi.toString,di=fi((function(){return"/a/b"!=hi.call({source:"a",flags:"b"})})),vi="toString"!=hi.name;(di||vi)&&si(RegExp.prototype,"toString",(function(){var t=li(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in gi)?pi.call(t):r)}),{unsafe:!0});var yi={props:{options:{type:Array,default:function(){return[]}},outerBackgroundColor:{type:String,default:"rgba(247, 248, 250, 100)"},isShowOuterBackground:{type:Boolean,default:!0},displayName:{type:String,default:"name"},percentValue:{type:String,default:"percent"},colors:{type:Array,default:function(){return["green","pink","red","yellow"]}},toFixed:{type:Number},outerHeight:{type:String,default:"20px"},isPercent:{type:Boolean,default:!0},currentValue:{type:[String]},totalValue:{type:[String]},dealPercentValue:{type:Function}},data:function(){return{toFixedNumber:null}},methods:{createProgress:function(){for(var t=[],e=this.$createElement,r=0;r<this.options.length;r++){var n=this.options[r][this.percentValue],o=this.options[r][this.currentValue]/this.options[r][this.totalValue]*100,i=this.isPercent?n:o,a=e("div",{class:{"base-progress-item":!0},style:{display:"flex",height:"100%","background-color":this.colors[r%this.colors.length],width:i+"%"}});t.push(a)}return t},createDesc:function(){for(var t=[],e=this.$createElement,r=0;r<this.options.length;r++){var n=this.options[r][this.percentValue],o=this.options[r][this.currentValue]/this.options[r][this.totalValue]*100,i=this.isPercent?n:o,a=e("div",{class:"base-progress-desc-item"},[e("div",{class:"base-progress-desc-item-dot",style:{"background-color":this.colors[r%this.colors.length]}},[]),e("div",{class:"base-progress-desc-item-name"},[this.options[r][this.displayName]]),u(this,"dealPercentValue")?this.dealPercentValue(i)+"%":this.dealValue(i)+"%"]);t.push(a)}return t},dealValue:function(t){return t||0===t?t.toFixed(this.toFixedNumber):"-"},createInnerProgress:function(){var t=this.$createElement;return[t("div",{ref:"".concat(this.uid,"-base-progress-outer"),class:"base-progress-outer",style:{width:"100%",height:this.outerHeight,"background-color":this.isShowOuterBackground&&c(this.$props,"outerBackgroundColor")?this.outerBackgroundColor:""}},[t("div",{style:{display:"flex",height:"100%"}},this.createProgress())]),t("div",{class:"base-progress-desc"},this.createDesc())]}},render:function(t){return this.toFixedNumber=u(this,"toFixed",2),t("div",{},this.createInnerProgress())}};yi.install=function(t,e){var r;if(r="按需加载独立组件:"+yi.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),i(e)&&!a(e))for(var n=0;n<e.length;n++)e[n].name!==yi.name&&t.use(e[n]);t.component(yi.name,yi)},exports.BaseInnerProgress=yi;