UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

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