UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 26.7 kB
/*! * shu-c-view v1.2.88 * (c) 2024-12-13 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/get"),e=require("lodash/isNil"),n=require("lodash/set"),r=require("lodash/isEqual"),i=require("lodash/isEmpty"),o=require("lodash/assign"),a=require("lodash/has"),u=require("lodash/isString"),s=require("lodash/isArray"),c=require("lodash/includes"),l=require("lodash/find");function f(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var p=f(t),h=f(e),v=f(n),g=f(r),d=f(i),y=f(o),b=f(a),m=f(u),S=f(s),E=f(c),x=f(l);function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},j=function(t){return t&&t.Math==Math&&t},_=j("object"==typeof globalThis&&globalThis)||j("object"==typeof window&&window)||j("object"==typeof self&&self)||j("object"==typeof w&&w)||function(){return this}()||Function("return this")(),I={},P=function(t){try{return!!t()}catch(t){return!0}},R=!P((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$=!P((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),A=$,T=Function.prototype.call,k=A?T.bind(T):function(){return T.apply(T,arguments)},C={},F={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,D=M&&!F.call({1:2},1);C.f=D?function(t){var e=M(this,t);return!!e&&e.enumerable}:F;var N,z,q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=$,L=Function.prototype,B=L.call,U=V&&L.bind.bind(B,B),K=V?U:function(t){return function(){return B.apply(t,arguments)}},Y=K,W=Y({}.toString),G=Y("".slice),H=function(t){return G(W(t),8,-1)},X=P,Q=H,J=Object,Z=K("".split),tt=X((function(){return!J("z").propertyIsEnumerable(0)}))?function(t){return"String"==Q(t)?Z(t,""):J(t)}:J,et=function(t){return null==t},nt=et,rt=TypeError,it=function(t){if(nt(t))throw rt("Can't call method on "+t);return t},ot=tt,at=it,ut=function(t){return ot(at(t))},st="object"==typeof document&&document.all,ct={all:st,IS_HTMLDDA:void 0===st&&void 0!==st},lt=ct.all,ft=ct.IS_HTMLDDA?function(t){return"function"==typeof t||t===lt}:function(t){return"function"==typeof t},pt=ft,ht=ct.all,vt=ct.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:pt(t)||t===ht}:function(t){return"object"==typeof t?null!==t:pt(t)},gt=_,dt=ft,yt=function(t){return dt(t)?t:void 0},bt=function(t,e){return arguments.length<2?yt(gt[t]):gt[t]&&gt[t][e]},mt=K({}.isPrototypeOf),St=_,Et=bt("navigator","userAgent")||"",xt=St.process,Ot=St.Deno,wt=xt&&xt.versions||Ot&&Ot.version,jt=wt&&wt.v8;jt&&(z=(N=jt.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!z&&Et&&(!(N=Et.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=Et.match(/Chrome\/(\d+)/))&&(z=+N[1]);var _t=z,It=P,Pt=!!Object.getOwnPropertySymbols&&!It((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_t&&_t<41})),Rt=Pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$t=bt,At=ft,Tt=mt,kt=Object,Ct=Rt?function(t){return"symbol"==typeof t}:function(t){var e=$t("Symbol");return At(e)&&Tt(e.prototype,kt(t))},Ft=String,Mt=ft,Dt=function(t){try{return Ft(t)}catch(t){return"Object"}},Nt=TypeError,zt=function(t){if(Mt(t))return t;throw Nt(Dt(t)+" is not a function")},qt=et,Vt=function(t,e){var n=t[e];return qt(n)?void 0:zt(n)},Lt=k,Bt=ft,Ut=vt,Kt=TypeError,Yt={exports:{}},Wt=_,Gt=Object.defineProperty,Ht=function(t,e){try{Gt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(n){Wt[t]=e}return e},Xt=Ht,Qt=_["__core-js_shared__"]||Xt("__core-js_shared__",{}),Jt=Qt;(Yt.exports=function(t,e){return Jt[t]||(Jt[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 Zt=it,te=Object,ee=function(t){return te(Zt(t))},ne=ee,re=K({}.hasOwnProperty),ie=Object.hasOwn||function(t,e){return re(ne(t),e)},oe=K,ae=0,ue=Math.random(),se=oe(1..toString),ce=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++ae+ue,36)},le=_,fe=Yt.exports,pe=ie,he=ce,ve=Pt,ge=Rt,de=fe("wks"),ye=le.Symbol,be=ye&&ye.for,me=ge?ye:ye&&ye.withoutSetter||he,Se=function(t){if(!pe(de,t)||!ve&&"string"!=typeof de[t]){var e="Symbol."+t;ve&&pe(ye,t)?de[t]=ye[t]:de[t]=ge&&be?be(e):me(e)}return de[t]},Ee=k,xe=vt,Oe=Ct,we=Vt,je=function(t,e){var n,r;if("string"===e&&Bt(n=t.toString)&&!Ut(r=Lt(n,t)))return r;if(Bt(n=t.valueOf)&&!Ut(r=Lt(n,t)))return r;if("string"!==e&&Bt(n=t.toString)&&!Ut(r=Lt(n,t)))return r;throw Kt("Can't convert object to primitive value")},_e=TypeError,Ie=Se("toPrimitive"),Pe=function(t,e){if(!xe(t)||Oe(t))return t;var n,r=we(t,Ie);if(r){if(void 0===e&&(e="default"),n=Ee(r,t,e),!xe(n)||Oe(n))return n;throw _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),je(t,e)},Re=Ct,$e=function(t){var e=Pe(t,"string");return Re(e)?e:e+""},Ae=vt,Te=_.document,ke=Ae(Te)&&Ae(Te.createElement),Ce=function(t){return ke?Te.createElement(t):{}},Fe=Ce,Me=!R&&!P((function(){return 7!=Object.defineProperty(Fe("div"),"a",{get:function(){return 7}}).a})),De=R,Ne=k,ze=C,qe=q,Ve=ut,Le=$e,Be=ie,Ue=Me,Ke=Object.getOwnPropertyDescriptor;I.f=De?Ke:function(t,e){if(t=Ve(t),e=Le(e),Ue)try{return Ke(t,e)}catch(t){}if(Be(t,e))return qe(!Ne(ze.f,t,e),t[e])};var Ye={},We=R&&P((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=vt,He=String,Xe=TypeError,Qe=function(t){if(Ge(t))return t;throw Xe(He(t)+" is not an object")},Je=R,Ze=Me,tn=We,en=Qe,nn=$e,rn=TypeError,on=Object.defineProperty,an=Object.getOwnPropertyDescriptor;Ye.f=Je?tn?function(t,e,n){if(en(t),e=nn(e),en(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=an(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 on(t,e,n)}:on:function(t,e,n){if(en(t),e=nn(e),en(n),Ze)try{return on(t,e,n)}catch(t){}if("get"in n||"set"in n)throw rn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var un=Ye,sn=q,cn=R?function(t,e,n){return un.f(t,e,sn(1,n))}:function(t,e,n){return t[e]=n,t},ln={exports:{}},fn=R,pn=ie,hn=Function.prototype,vn=fn&&Object.getOwnPropertyDescriptor,gn=pn(hn,"name"),dn={EXISTS:gn,PROPER:gn&&"something"===function(){}.name,CONFIGURABLE:gn&&(!fn||fn&&vn(hn,"name").configurable)},yn=ft,bn=Qt,mn=K(Function.toString);yn(bn.inspectSource)||(bn.inspectSource=function(t){return mn(t)});var Sn,En,xn,On=bn.inspectSource,wn=ft,jn=_.WeakMap,_n=wn(jn)&&/native code/.test(String(jn)),In=Yt.exports,Pn=ce,Rn=In("keys"),$n=function(t){return Rn[t]||(Rn[t]=Pn(t))},An={},Tn=_n,kn=_,Cn=vt,Fn=cn,Mn=ie,Dn=Qt,Nn=$n,zn=An,qn=kn.TypeError,Vn=kn.WeakMap;if(Tn||Dn.state){var Ln=Dn.state||(Dn.state=new Vn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,Sn=function(t,e){if(Ln.has(t))throw qn("Object already initialized");return e.facade=t,Ln.set(t,e),e},En=function(t){return Ln.get(t)||{}},xn=function(t){return Ln.has(t)}}else{var Bn=Nn("state");zn[Bn]=!0,Sn=function(t,e){if(Mn(t,Bn))throw qn("Object already initialized");return e.facade=t,Fn(t,Bn,e),e},En=function(t){return Mn(t,Bn)?t[Bn]:{}},xn=function(t){return Mn(t,Bn)}}var Un={set:Sn,get:En,has:xn,enforce:function(t){return xn(t)?En(t):Sn(t,{})},getterFor:function(t){return function(e){var n;if(!Cn(e)||(n=En(e)).type!==t)throw qn("Incompatible receiver, "+t+" required");return n}}},Kn=P,Yn=ft,Wn=ie,Gn=R,Hn=dn.CONFIGURABLE,Xn=On,Qn=Un.enforce,Jn=Un.get,Zn=Object.defineProperty,tr=Gn&&!Kn((function(){return 8!==Zn((function(){}),"length",{value:8}).length})),er=String(String).split("String"),nr=ln.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")||Hn&&t.name!==e)&&(Gn?Zn(t,"name",{value:e,configurable:!0}):t.name=e),tr&&n&&Wn(n,"arity")&&t.length!==n.arity&&Zn(t,"length",{value:n.arity});try{n&&Wn(n,"constructor")&&n.constructor?Gn&&Zn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Qn(t);return Wn(r,"source")||(r.source=er.join("string"==typeof e?e:"")),t};Function.prototype.toString=nr((function(){return Yn(this)&&Jn(this).source||Xn(this)}),"toString");var rr=ft,ir=Ye,or=ln.exports,ar=Ht,ur=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(rr(n)&&or(n,o,r),r.global)i?t[e]=n:ar(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:ir.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},sr={},cr=Math.ceil,lr=Math.floor,fr=Math.trunc||function(t){var e=+t;return(e>0?lr:cr)(e)},pr=function(t){var e=+t;return e!=e||0===e?0:fr(e)},hr=pr,vr=Math.max,gr=Math.min,dr=pr,yr=Math.min,br=function(t){return t>0?yr(dr(t),9007199254740991):0},mr=br,Sr=ut,Er=function(t,e){var n=hr(t);return n<0?vr(n+e,0):gr(n,e)},xr=function(t){return mr(t.length)},Or=function(t){return function(e,n,r){var i,o=Sr(e),a=xr(o),u=Er(r,a);if(t&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},wr={includes:Or(!0),indexOf:Or(!1)},jr=ie,_r=ut,Ir=wr.indexOf,Pr=An,Rr=K([].push),$r=function(t,e){var n,r=_r(t),i=0,o=[];for(n in r)!jr(Pr,n)&&jr(r,n)&&Rr(o,n);for(;e.length>i;)jr(r,n=e[i++])&&(~Ir(o,n)||Rr(o,n));return o},Ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tr=$r,kr=Ar.concat("length","prototype");sr.f=Object.getOwnPropertyNames||function(t){return Tr(t,kr)};var Cr={};Cr.f=Object.getOwnPropertySymbols;var Fr=bt,Mr=sr,Dr=Cr,Nr=Qe,zr=K([].concat),qr=Fr("Reflect","ownKeys")||function(t){var e=Mr.f(Nr(t)),n=Dr.f;return n?zr(e,n(t)):e},Vr=ie,Lr=qr,Br=I,Ur=Ye,Kr=P,Yr=ft,Wr=/#|\.prototype\./,Gr=function(t,e){var n=Xr[Hr(t)];return n==Jr||n!=Qr&&(Yr(e)?Kr(e):!!e)},Hr=Gr.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Xr=Gr.data={},Qr=Gr.NATIVE="N",Jr=Gr.POLYFILL="P",Zr=Gr,ti=_,ei=I.f,ni=cn,ri=ur,ii=Ht,oi=function(t,e,n){for(var r=Lr(e),i=Ur.f,o=Br.f,a=0;a<r.length;a++){var u=r[a];Vr(t,u)||n&&Vr(n,u)||i(t,u,o(e,u))}},ai=Zr,ui=function(t,e){var n,r,i,o,a,u=t.target,s=t.global,c=t.stat;if(n=s?ti:c?ti[u]||ii(u,{}):(ti[u]||{}).prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(a=ei(n,r))&&a.value:n[r],!ai(s?r:u+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;oi(o,i)}(t.sham||i&&i.sham)&&ni(o,"sham",!0),ri(n,r,o,t)}},si={},ci=$r,li=Ar,fi=Object.keys||function(t){return ci(t,li)},pi=R,hi=We,vi=Ye,gi=Qe,di=ut,yi=fi;si.f=pi&&!hi?Object.defineProperties:function(t,e){gi(t);for(var n,r=di(e),i=yi(e),o=i.length,a=0;o>a;)vi.f(t,n=i[a++],r[n]);return t};var bi,mi=bt("document","documentElement"),Si=Qe,Ei=si,xi=Ar,Oi=An,wi=mi,ji=Ce,_i=$n("IE_PROTO"),Ii=function(){},Pi=function(t){return"<script>"+t+"<\/script>"},Ri=function(t){t.write(Pi("")),t.close();var e=t.parentWindow.Object;return t=null,e},$i=function(){try{bi=new ActiveXObject("htmlfile")}catch(t){}var t,e;$i="undefined"!=typeof document?document.domain&&bi?Ri(bi):((e=ji("iframe")).style.display="none",wi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pi("document.F=Object")),t.close(),t.F):Ri(bi);for(var n=xi.length;n--;)delete $i.prototype[xi[n]];return $i()};Oi[_i]=!0;var Ai=Object.create||function(t,e){var n;return null!==t?(Ii.prototype=Si(t),n=new Ii,Ii.prototype=null,n[_i]=t):n=$i(),void 0===e?n:Ei.f(n,e)},Ti=Se,ki=Ai,Ci=Ye.f,Fi=Ti("unscopables"),Mi=Array.prototype;null==Mi[Fi]&&Ci(Mi,Fi,{configurable:!0,value:ki(null)});var Di=wr.includes,Ni=function(t){Mi[Fi][t]=!0};ui({target:"Array",proto:!0,forced:P((function(){return!Array(1).includes()}))},{includes:function(t){return Di(this,t,arguments.length>1?arguments[1]:void 0)}}),Ni("includes");var zi=R,qi=dn.EXISTS,Vi=K,Li=Ye.f,Bi=Function.prototype,Ui=Vi(Bi.toString),Ki=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Yi=Vi(Ki.exec);zi&&!qi&&Li(Bi,"name",{configurable:!0,get:function(){try{return Yi(Ki,Ui(this))[1]}catch(t){return""}}});var Wi={};Wi[Se("toStringTag")]="z";var Gi="[object z]"===String(Wi),Hi=ft,Xi=H,Qi=Se("toStringTag"),Ji=Object,Zi="Arguments"==Xi(function(){return arguments}()),to=Gi?Xi: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=Ji(t),Qi))?n:Zi?Xi(e):"Object"==(r=Xi(e))&&Hi(e.callee)?"Arguments":r},eo=String,no=function(t){if("Symbol"===to(t))throw TypeError("Cannot convert a Symbol value to a string");return eo(t)},ro=Qe,io=function(){var t=ro(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},oo=P,ao=_.RegExp,uo=oo((function(){var t=ao("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),so=uo||oo((function(){return!ao("a","y").sticky})),co=uo||oo((function(){var t=ao("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),lo={BROKEN_CARET:co,MISSED_STICKY:so,UNSUPPORTED_Y:uo},fo=P,po=_.RegExp,ho=fo((function(){var t=po(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),vo=P,go=_.RegExp,yo=vo((function(){var t=go("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),bo=k,mo=K,So=no,Eo=io,xo=lo,Oo=Yt.exports,wo=Ai,jo=Un.get,_o=ho,Io=yo,Po=Oo("native-string-replace",String.prototype.replace),Ro=RegExp.prototype.exec,$o=Ro,Ao=mo("".charAt),To=mo("".indexOf),ko=mo("".replace),Co=mo("".slice),Fo=function(){var t=/a/,e=/b*/g;return bo(Ro,t,"a"),bo(Ro,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Mo=xo.BROKEN_CARET,Do=void 0!==/()??/.exec("")[1];(Fo||Do||Mo||_o||Io)&&($o=function(t){var e,n,r,i,o,a,u,s=this,c=jo(s),l=So(t),f=c.raw;if(f)return f.lastIndex=s.lastIndex,e=bo($o,f,l),s.lastIndex=f.lastIndex,e;var p=c.groups,h=Mo&&s.sticky,v=bo(Eo,s),g=s.source,d=0,y=l;if(h&&(v=ko(v,"y",""),-1===To(v,"g")&&(v+="g"),y=Co(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ao(l,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,d++),n=new RegExp("^(?:"+g+")",v)),Do&&(n=new RegExp("^"+g+"$(?!\\s)",v)),Fo&&(r=s.lastIndex),i=bo(Ro,h?n:s,y),h?i?(i.input=Co(i.input,d),i[0]=Co(i[0],d),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Fo&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Do&&i&&i.length>1&&bo(Po,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=a=wo(null),o=0;o<p.length;o++)a[(u=p[o])[0]]=i[u[1]];return i});var No=$o;ui({target:"RegExp",proto:!0,forced:/./.exec!==No},{exec:No});var zo=$,qo=Function.prototype,Vo=qo.apply,Lo=qo.call,Bo="object"==typeof Reflect&&Reflect.apply||(zo?Lo.bind(Vo):function(){return Lo.apply(Vo,arguments)}),Uo=H,Ko=K,Yo=function(t){if("Function"===Uo(t))return Ko(t)},Wo=ur,Go=No,Ho=P,Xo=Se,Qo=cn,Jo=Xo("species"),Zo=RegExp.prototype,ta=K,ea=pr,na=no,ra=it,ia=ta("".charAt),oa=ta("".charCodeAt),aa=ta("".slice),ua=function(t){return function(e,n){var r,i,o=na(ra(e)),a=ea(n),u=o.length;return a<0||a>=u?t?"":void 0:(r=oa(o,a))<55296||r>56319||a+1===u||(i=oa(o,a+1))<56320||i>57343?t?ia(o,a):r:t?aa(o,a,a+2):i-56320+(r-55296<<10)+65536}},sa={codeAt:ua(!1),charAt:ua(!0)}.charAt,ca=K,la=ee,fa=Math.floor,pa=ca("".charAt),ha=ca("".replace),va=ca("".slice),ga=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,da=/\$([$&'`]|\d{1,2})/g,ya=k,ba=Qe,ma=ft,Sa=H,Ea=No,xa=TypeError,Oa=Bo,wa=k,ja=K,_a=function(t,e,n,r){var i=Xo(t),o=!Ho((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!Ho((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Jo]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var u=Yo(/./[i]),s=e(i,""[t],(function(t,e,n,r,i){var a=Yo(t),s=e.exec;return s===Go||s===Zo.exec?o&&!i?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));Wo(String.prototype,t,s[0]),Wo(Zo,i,s[1])}r&&Qo(Zo[i],"sham",!0)},Ia=P,Pa=Qe,Ra=ft,$a=et,Aa=pr,Ta=br,ka=no,Ca=it,Fa=function(t,e,n){return e+(n?sa(t,e).length:1)},Ma=Vt,Da=function(t,e,n,r,i,o){var a=n+t.length,u=r.length,s=da;return void 0!==i&&(i=la(i),s=ga),ha(o,s,(function(o,s){var c;switch(pa(s,0)){case"$":return"$";case"&":return t;case"`":return va(e,0,n);case"'":return va(e,a);case"<":c=i[va(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>u){var f=fa(l/10);return 0===f?o:f<=u?void 0===r[f-1]?pa(s,1):r[f-1]+pa(s,1):o}c=r[l-1]}return void 0===c?"":c}))},Na=function(t,e){var n=t.exec;if(ma(n)){var r=ya(n,t,e);return null!==r&&ba(r),r}if("RegExp"===Sa(t))return ya(Ea,t,e);throw xa("RegExp#exec called on incompatible receiver")},za=Se("replace"),qa=Math.max,Va=Math.min,La=ja([].concat),Ba=ja([].push),Ua=ja("".indexOf),Ka=ja("".slice),Ya="$0"==="a".replace(/./,"$0"),Wa=!!/./[za]&&""===/./[za]("a","$0"),Ga=!Ia((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));_a("replace",(function(t,e,n){var r=Wa?"$":"$0";return[function(t,n){var r=Ca(this),i=$a(t)?void 0:Ma(t,za);return i?wa(i,t,r,n):wa(e,ka(r),t,n)},function(t,i){var o=Pa(this),a=ka(t);if("string"==typeof i&&-1===Ua(i,r)&&-1===Ua(i,"$<")){var u=n(e,o,a,i);if(u.done)return u.value}var s=Ra(i);s||(i=ka(i));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var p=Na(o,a);if(null===p)break;if(Ba(f,p),!c)break;""===ka(p[0])&&(o.lastIndex=Fa(a,Ta(o.lastIndex),l))}for(var h,v="",g=0,d=0;d<f.length;d++){for(var y=ka((p=f[d])[0]),b=qa(Va(Aa(p.index),a.length),0),m=[],S=1;S<p.length;S++)Ba(m,void 0===(h=p[S])?h:String(h));var E=p.groups;if(s){var x=La([y],m,b,a);void 0!==E&&Ba(x,E);var O=ka(Oa(i,void 0,x))}else O=Da(y,a,b,m,E,i);b>=g&&(v+=Ka(a,g,b)+O,g=b+y.length)}return v+Ka(a,g)}]}),!Ga||!Ya||Wa);var Ha,Xa,Qa=ui,Ja=k,Za=ft,tu=Qe,eu=no,nu=(Ha=!1,(Xa=/[ac]/).exec=function(){return Ha=!0,/./.exec.apply(this,arguments)},!0===Xa.test("abc")&&Ha),ru=/./.test;Qa({target:"RegExp",proto:!0,forced:!nu},{test:function(t){var e=tu(this),n=eu(t),r=e.exec;if(!Za(r))return Ja(ru,e,n);var i=Ja(r,e,n);return null!==i&&(tu(i),!0)}});var iu=ft,ou=String,au=TypeError,uu=K,su=Qe,cu=function(t){if("object"==typeof t||iu(t))return t;throw au("Can't set "+ou(t)+" as a prototype")},lu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=uu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return su(n),cu(r),e?t(n,r):n.__proto__=r,n}}():void 0),fu=ft,pu=vt,hu=lu,vu=vt,gu=H,du=Se("match"),yu=k,bu=ie,mu=mt,Su=io,Eu=RegExp.prototype,xu=function(t){var e=t.flags;return void 0!==e||"flags"in Eu||bu(t,"flags")||!mu(Eu,t)?e:yu(Su,t)},Ou=Ye.f,wu=bt,ju=Ye,_u=R,Iu=Se("species"),Pu=R,Ru=_,$u=K,Au=Zr,Tu=function(t,e,n){var r,i;return hu&&fu(r=e.constructor)&&r!==n&&pu(i=r.prototype)&&i!==n.prototype&&hu(t,i),t},ku=cn,Cu=sr.f,Fu=mt,Mu=function(t){var e;return vu(t)&&(void 0!==(e=t[du])?!!e:"RegExp"==gu(t))},Du=no,Nu=xu,zu=lo,qu=function(t,e,n){n in t||Ou(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Vu=ur,Lu=P,Bu=ie,Uu=Un.enforce,Ku=function(t){var e=wu(t),n=ju.f;_u&&e&&!e[Iu]&&n(e,Iu,{configurable:!0,get:function(){return this}})},Yu=ho,Wu=yo,Gu=Se("match"),Hu=Ru.RegExp,Xu=Hu.prototype,Qu=Ru.SyntaxError,Ju=$u(Xu.exec),Zu=$u("".charAt),ts=$u("".replace),es=$u("".indexOf),ns=$u("".slice),rs=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,is=/a/g,os=/a/g,as=new Hu(is)!==is,us=zu.MISSED_STICKY,ss=zu.UNSUPPORTED_Y,cs=Pu&&(!as||us||Yu||Wu||Lu((function(){return os[Gu]=!1,Hu(is)!=is||Hu(os)==os||"/a/i"!=Hu(is,"i")})));if(Au("RegExp",cs)){for(var ls=function(t,e){var n,r,i,o,a,u,s=Fu(Xu,this),c=Mu(t),l=void 0===e,f=[],p=t;if(!s&&c&&l&&t.constructor===ls)return t;if((c||Fu(Xu,t))&&(t=t.source,l&&(e=Nu(p))),t=void 0===t?"":Du(t),e=void 0===e?"":Du(e),p=t,Yu&&"dotAll"in is&&(r=!!e&&es(e,"s")>-1)&&(e=ts(e,/s/g,"")),n=e,us&&"sticky"in is&&(i=!!e&&es(e,"y")>-1)&&ss&&(e=ts(e,/y/g,"")),Wu&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(e=Zu(t,r)))e+=Zu(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:Ju(rs,ns(t,r+1))&&(r+=2,s=!0),i+=e,c++;continue;case">"===e&&s:if(""===l||Bu(a,l))throw new Qu("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],s=!1,l="";continue}s?l+=e:i+=e}return[i,o]}(t),t=o[0],f=o[1]),a=Tu(Hu(t,e),s?this:Xu,ls),(r||i||f.length)&&(u=Uu(a),r&&(u.dotAll=!0,u.raw=ls(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=Zu(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+Zu(t,++r);return i}(t),n)),i&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{ku(a,"source",""===p?"(?:)":p)}catch(t){}return a},fs=Cu(Hu),ps=0;fs.length>ps;)qu(ls,Hu,fs[ps++]);Xu.constructor=ls,ls.prototype=Xu,Vu(Ru,"RegExp",ls,{constructor:!0})}Ku("RegExp");var hs=ln.exports,vs=Ye,gs=R,ds=lo.MISSED_STICKY,ys=H,bs=function(t,e,n){return n.get&&hs(n.get,e,{getter:!0}),n.set&&hs(n.set,e,{setter:!0}),vs.f(t,e,n)},ms=Un.get,Ss=RegExp.prototype,Es=TypeError;gs&&ds&&bs(Ss,"sticky",{configurable:!0,get:function(){if(this!==Ss){if("RegExp"===ys(this))return!!ms(this).sticky;throw Es("Incompatible receiver, RegExp required")}}});var xs=dn.PROPER,Os=ur,ws=Qe,js=no,_s=P,Is=xu,Ps=RegExp.prototype.toString,Rs=_s((function(){return"/a/b"!=Ps.call({source:"a",flags:"b"})})),$s=xs&&"toString"!=Ps.name;(Rs||$s)&&Os(RegExp.prototype,"toString",(function(){var t=ws(this);return"/"+js(t.source)+"/"+js(Is(t))}),{unsafe:!0});var As={name:"BaseSelectIconPicker",inheritAttrs:!1,model:{prop:"value",event:"selectChange"},props:{value:{type:String,required:!0},options:{type:Array,default:function(){return[]}},svgIconsOptions:{type:Array,default:function(){return[]}},width:{type:String,default:"auto"},ctStyle:{type:Object,default:function(){return{}}},ctCls:{type:Object,default:function(){return{}}},displayField:{type:String,default:"name"},valueField:{type:String,default:"id"},isRender:{type:Boolean,default:!0},isDisplay:{type:Boolean,default:!0},listeners:{type:Object,default:function(){}},svgSize:{type:String,default:"16px"},bgModelVal:{type:String,default:"light",validator:function(t){return["dark","light"].includes(t)}}},data:function(){return this.vValue=this.value,{vOptions:this.options,iconPicture:this.value}},computed:{elOptions:function(){var t=[],e=this.$createElement;if(this.options&&(this.vOptions=this.options),!h(this.vOptions)){for(var n=0;n<this.vOptions.length;n++){var r,i=this.vOptions[n];if(m(i))O(r={},this.displayField,i),O(r,this.valueField,"symbol-".concat(i)),i=r;t.push(this.$createElement("el-option",{props:{key:i[this.valueField],label:i[this.displayField],value:i[this.valueField],disabled:i.disabled}},[this.getIconNode(p(i,this.valueField)),e("span",{style:"float: right"},[p(i,this.displayField)])]))}for(var o=0;o<this.svgIconsOptions.length;o++){var a,u=(O(a={},this.displayField,this.svgIconsOptions[o].name),O(a,this.valueField,"svg-".concat(this.svgIconsOptions[o].name)),a);t.push(this.$createElement("el-option",{props:{key:u[this.valueField],label:u[this.displayField],value:u[this.valueField],disabled:u.disabled}},[this.getIconNode(p(u,this.valueField)),e("span",{style:"float: right"},[p(u,this.displayField)])]))}return t}},slotElement:function(){return this.$createElement("template",{slot:"prefix"},[this.getIconNode(this.iconPicture)])},bgModel:function(){return this.bgModelVal}},watch:{value:function(t,e){g(t,e)||g(this.vValue,t)||(this.vValue=t,this.iconPicture=this.vValue,this._changeEvent(this.vValue),this._selectChangeEvent(this.vValue))}},methods:{_changeEvent:function(t){var e=t;this.iconPicture=t,g(h(this.listeners),!1)&&b(this.listeners,"change")?this.listeners.change(e):this.$emit("change",e)},_visibleChangeEvent:function(t){g(h(this.listeners),!1)&&b(this.listeners,"visible-change")?this.listeners["visible-change"](t):this.$emit("visible-change",t)},_removeTag:function(t){g(h(this.listeners),!1)&&b(this.listeners,"remove-tag")?this.listeners["remove-tag"](t):this.$emit("remove-tag",t)},_clearEvent:function(){g(h(this.listeners),!1)&&b(this.listeners,"clear")?this.listeners.clear():this.$emit("clear")},_blurEvent:function(t){g(h(this.listeners),!1)&&b(this.listeners,"blur")?this.listeners.blur(t):this.$emit("blur",t)},_focusEvent:function(t){g(h(this.listeners),!1)&&b(this.listeners,"focus")?this.listeners.focus(t):this.$emit("focus",t)},_selectChangeEvent:function(t){var e=t;g(h(this.listeners),!1)&&b(this.listeners,"selectChange")?this.listeners.selectChange(e):this.$emit("selectChange",e)},reload:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this.api)||(y(this.vQueryParams,t),this._fetchList())},getIconNode:function(t){if(E(t,"svg-")){var e=t.replace("svg-",""),n=x(this.svgIconsOptions,(function(t){return t.name===e}));h(n)||(t=this.$createElement(p(n,"component","span"),{style:{width:this.svgSize,height:this.svgSize,marginRight:"5px",display:"inline"}}))}else t=/\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif)$/.test(t)?this.$createElement("img",{style:{marginRight:"5px",display:"inline"},attrs:{src:t,width:this.svgSize,height:this.svgSize}}):-1!==t.indexOf("symbol-")?this.$createElement("base-svg-icon",{style:{marginRight:"5px",display:"inline"},props:{size:this.svgSize,iconname:t.replace("symbol-","")}},[]):this.$createElement("i",{class:t});return t}},render:function(t){var e=this;if(g(this.isRender,!1))return t();var n=y({},p(this.$props,"ctStyle",{}));return"auto"!==this.width&&(n.width=this.width),g(this.isDisplay,!1)&&v(n,"display","none"),t("el-select",{ref:"el-select-ref",class:y({"base-select-icon-picker":!0,"base-select-icon-picker__dark":"dark"===this.bgModel},p(this.$props,"ctCls",{})),style:n,attrs:{id:this.$attrs.id},props:y({},this.$attrs,{value:this.vValue,multiple:!1,popperClass:"dark"===this.bgModel?"select-icon-picker__popover-dark":""}),on:{change:this._changeEvent,"visible-change":this._visibleChangeEvent,"remove-tag":this._removeTag,clear:this._clearEvent,blur:this._blurEvent,focus:this._focusEvent,input:function(t){e.vValue=t,e._selectChangeEvent(e.vValue)}}},[this.elOptions,this.slotElement])}};As.install=function(t,e){var n;if(n="按需加载独立组件:".concat(As.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),S(e)&&!d(e))for(var r=0;r<e.length;r++)e[r].name!==As.name&&t.use(e[r]);t.component(As.name,As)},exports.BaseSelectIconPicker=As;