UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

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