UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 25.9 kB
/*! * shu-c-view v1.2.96 * (c) 2025-02-18 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/assign"),e=require("lodash/omit"),n=require("lodash/keys"),r=require("lodash/has"),o=require("lodash/get"),i=require("lodash/concat"),c=require("lodash/isFunction");function u(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var a=u(t),s=u(e),f=u(n),l=u(r),p=u(o),d=u(i),h=u(c);function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},b=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof y&&y)||function(){return this}()||Function("return this")(),g={exports:{}},w=b,j=Object.defineProperty,O=function(t,e){try{j(w,t,{value:e,configurable:!0,writable:!0})}catch(n){w[t]=e}return e},S=O,T=b["__core-js_shared__"]||S("__core-js_shared__",{}),C=T;(g.exports=function(t,e){return C[t]||(C[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 E,P,_=function(t){try{return!!t()}catch(t){return!0}},R=!_((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),x=R,N=Function.prototype,F=N.call,D=x&&N.bind.bind(F,F),I=x?D:function(t){return function(){return F.apply(t,arguments)}},A=function(t){return null==t},M=A,$=TypeError,k=function(t){if(M(t))throw $("Can't call method on "+t);return t},L=k,U=Object,B=function(t){return U(L(t))},q=I({}.hasOwnProperty),z=Object.hasOwn||function(t,e){return q(B(t),e)},G=I,V=0,H=Math.random(),W=G(1..toString),X=function(t){return"Symbol("+(void 0===t?"":t)+")_"+W(++V+H,36)},J="object"==typeof document&&document.all,K={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},Y=K.all,Q=K.IS_HTMLDDA?function(t){return"function"==typeof t||t===Y}:function(t){return"function"==typeof t},Z=b,tt=Q,et=function(t){return tt(t)?t:void 0},nt=function(t,e){return arguments.length<2?et(Z[t]):Z[t]&&Z[t][e]},rt=nt("navigator","userAgent")||"",ot=b,it=rt,ct=ot.process,ut=ot.Deno,at=ct&&ct.versions||ut&&ut.version,st=at&&at.v8;st&&(P=(E=st.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!P&&it&&(!(E=it.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=it.match(/Chrome\/(\d+)/))&&(P=+E[1]);var ft=P,lt=ft,pt=_,dt=!!Object.getOwnPropertySymbols&&!pt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&lt&&lt<41})),ht=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=b,yt=g.exports,mt=z,bt=X,gt=dt,wt=ht,jt=yt("wks"),Ot=vt.Symbol,St=Ot&&Ot.for,Tt=wt?Ot:Ot&&Ot.withoutSetter||bt,Ct=function(t){if(!mt(jt,t)||!gt&&"string"!=typeof jt[t]){var e="Symbol."+t;gt&&mt(Ot,t)?jt[t]=Ot[t]:jt[t]=wt&&St?St(e):Tt(e)}return jt[t]},Et={};Et[Ct("toStringTag")]="z";var Pt="[object z]"===String(Et),_t={},Rt=!_((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),xt=Q,Nt=K.all,Ft=K.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:xt(t)||t===Nt}:function(t){return"object"==typeof t?null!==t:xt(t)},Dt=Ft,It=b.document,At=Dt(It)&&Dt(It.createElement),Mt=function(t){return At?It.createElement(t):{}},$t=Mt,kt=!Rt&&!_((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Lt=Rt&&_((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ut=Ft,Bt=String,qt=TypeError,zt=function(t){if(Ut(t))return t;throw qt(Bt(t)+" is not an object")},Gt=R,Vt=Function.prototype.call,Ht=Gt?Vt.bind(Vt):function(){return Vt.apply(Vt,arguments)},Wt=I({}.isPrototypeOf),Xt=nt,Jt=Q,Kt=Wt,Yt=Object,Qt=ht?function(t){return"symbol"==typeof t}:function(t){var e=Xt("Symbol");return Jt(e)&&Kt(e.prototype,Yt(t))},Zt=String,te=function(t){try{return Zt(t)}catch(t){return"Object"}},ee=Q,ne=te,re=TypeError,oe=function(t){if(ee(t))return t;throw re(ne(t)+" is not a function")},ie=oe,ce=A,ue=function(t,e){var n=t[e];return ce(n)?void 0:ie(n)},ae=Ht,se=Q,fe=Ft,le=TypeError,pe=Ht,de=Ft,he=Qt,ve=ue,ye=function(t,e){var n,r;if("string"===e&&se(n=t.toString)&&!fe(r=ae(n,t)))return r;if(se(n=t.valueOf)&&!fe(r=ae(n,t)))return r;if("string"!==e&&se(n=t.toString)&&!fe(r=ae(n,t)))return r;throw le("Can't convert object to primitive value")},me=TypeError,be=Ct("toPrimitive"),ge=function(t,e){if(!de(t)||he(t))return t;var n,r=ve(t,be);if(r){if(void 0===e&&(e="default"),n=pe(r,t,e),!de(n)||he(n))return n;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},we=Qt,je=function(t){var e=ge(t,"string");return we(e)?e:e+""},Oe=Rt,Se=kt,Te=Lt,Ce=zt,Ee=je,Pe=TypeError,_e=Object.defineProperty,Re=Object.getOwnPropertyDescriptor;_t.f=Oe?Te?function(t,e,n){if(Ce(t),e=Ee(e),Ce(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Re(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 _e(t,e,n)}:_e:function(t,e,n){if(Ce(t),e=Ee(e),Ce(n),Se)try{return _e(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 xe={exports:{}},Ne=Rt,Fe=z,De=Function.prototype,Ie=Ne&&Object.getOwnPropertyDescriptor,Ae=Fe(De,"name"),Me={EXISTS:Ae,PROPER:Ae&&"something"===function(){}.name,CONFIGURABLE:Ae&&(!Ne||Ne&&Ie(De,"name").configurable)},$e=Q,ke=T,Le=I(Function.toString);$e(ke.inspectSource)||(ke.inspectSource=function(t){return Le(t)});var Ue,Be,qe,ze=ke.inspectSource,Ge=Q,Ve=b.WeakMap,He=Ge(Ve)&&/native code/.test(String(Ve)),We=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Xe=_t,Je=We,Ke=Rt?function(t,e,n){return Xe.f(t,e,Je(1,n))}:function(t,e,n){return t[e]=n,t},Ye=g.exports,Qe=X,Ze=Ye("keys"),tn={},en=He,nn=b,rn=Ft,on=Ke,cn=z,un=T,an=function(t){return Ze[t]||(Ze[t]=Qe(t))},sn=tn,fn=nn.TypeError,ln=nn.WeakMap;if(en||un.state){var pn=un.state||(un.state=new ln);pn.get=pn.get,pn.has=pn.has,pn.set=pn.set,Ue=function(t,e){if(pn.has(t))throw fn("Object already initialized");return e.facade=t,pn.set(t,e),e},Be=function(t){return pn.get(t)||{}},qe=function(t){return pn.has(t)}}else{var dn=an("state");sn[dn]=!0,Ue=function(t,e){if(cn(t,dn))throw fn("Object already initialized");return e.facade=t,on(t,dn,e),e},Be=function(t){return cn(t,dn)?t[dn]:{}},qe=function(t){return cn(t,dn)}}var hn={set:Ue,get:Be,has:qe,enforce:function(t){return qe(t)?Be(t):Ue(t,{})},getterFor:function(t){return function(e){var n;if(!rn(e)||(n=Be(e)).type!==t)throw fn("Incompatible receiver, "+t+" required");return n}}},vn=_,yn=Q,mn=z,bn=Rt,gn=Me.CONFIGURABLE,wn=ze,jn=hn.enforce,On=hn.get,Sn=Object.defineProperty,Tn=bn&&!vn((function(){return 8!==Sn((function(){}),"length",{value:8}).length})),Cn=String(String).split("String"),En=xe.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),(!mn(t,"name")||gn&&t.name!==e)&&(bn?Sn(t,"name",{value:e,configurable:!0}):t.name=e),Tn&&n&&mn(n,"arity")&&t.length!==n.arity&&Sn(t,"length",{value:n.arity});try{n&&mn(n,"constructor")&&n.constructor?bn&&Sn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=jn(t);return mn(r,"source")||(r.source=Cn.join("string"==typeof e?e:"")),t};Function.prototype.toString=En((function(){return yn(this)&&On(this).source||wn(this)}),"toString");var Pn=Q,_n=_t,Rn=xe.exports,xn=O,Nn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Pn(n)&&Rn(n,i,r),r.global)o?t[e]=n:xn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:_n.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Fn=I,Dn=Fn({}.toString),In=Fn("".slice),An=function(t){return In(Dn(t),8,-1)},Mn=Pt,$n=Q,kn=An,Ln=Ct("toStringTag"),Un=Object,Bn="Arguments"==kn(function(){return arguments}()),qn=Mn?kn: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=Un(t),Ln))?n:Bn?kn(e):"Object"==(r=kn(e))&&$n(e.callee)?"Arguments":r},zn=qn,Gn=Pt?{}.toString:function(){return"[object "+zn(this)+"]"};Pt||Nn(Object.prototype,"toString",Gn,{unsafe:!0});var Vn={},Hn={},Wn={}.propertyIsEnumerable,Xn=Object.getOwnPropertyDescriptor,Jn=Xn&&!Wn.call({1:2},1);Hn.f=Jn?function(t){var e=Xn(this,t);return!!e&&e.enumerable}:Wn;var Kn=_,Yn=An,Qn=Object,Zn=I("".split),tr=Kn((function(){return!Qn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Yn(t)?Zn(t,""):Qn(t)}:Qn,er=k,nr=function(t){return tr(er(t))},rr=Rt,or=Ht,ir=Hn,cr=We,ur=nr,ar=je,sr=z,fr=kt,lr=Object.getOwnPropertyDescriptor;Vn.f=rr?lr:function(t,e){if(t=ur(t),e=ar(e),fr)try{return lr(t,e)}catch(t){}if(sr(t,e))return cr(!or(ir.f,t,e),t[e])};var pr={},dr=Math.ceil,hr=Math.floor,vr=Math.trunc||function(t){var e=+t;return(e>0?hr:dr)(e)},yr=function(t){var e=+t;return e!=e||0===e?0:vr(e)},mr=yr,br=Math.max,gr=Math.min,wr=yr,jr=Math.min,Or=function(t){return t>0?jr(wr(t),9007199254740991):0},Sr=function(t){return Or(t.length)},Tr=nr,Cr=function(t,e){var n=mr(t);return n<0?br(n+e,0):gr(n,e)},Er=Sr,Pr=function(t){return function(e,n,r){var o,i=Tr(e),c=Er(i),u=Cr(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},_r={includes:Pr(!0),indexOf:Pr(!1)},Rr=z,xr=nr,Nr=_r.indexOf,Fr=tn,Dr=I([].push),Ir=function(t,e){var n,r=xr(t),o=0,i=[];for(n in r)!Rr(Fr,n)&&Rr(r,n)&&Dr(i,n);for(;e.length>o;)Rr(r,n=e[o++])&&(~Nr(i,n)||Dr(i,n));return i},Ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");pr.f=Object.getOwnPropertyNames||function(t){return Ir(t,Ar)};var Mr={};Mr.f=Object.getOwnPropertySymbols;var $r=nt,kr=pr,Lr=Mr,Ur=zt,Br=I([].concat),qr=$r("Reflect","ownKeys")||function(t){var e=kr.f(Ur(t)),n=Lr.f;return n?Br(e,n(t)):e},zr=z,Gr=qr,Vr=Vn,Hr=_t,Wr=_,Xr=Q,Jr=/#|\.prototype\./,Kr=function(t,e){var n=Qr[Yr(t)];return n==to||n!=Zr&&(Xr(e)?Wr(e):!!e)},Yr=Kr.normalize=function(t){return String(t).replace(Jr,".").toLowerCase()},Qr=Kr.data={},Zr=Kr.NATIVE="N",to=Kr.POLYFILL="P",eo=Kr,no=b,ro=Vn.f,oo=Ke,io=Nn,co=O,uo=function(t,e,n){for(var r=Gr(e),o=Hr.f,i=Vr.f,c=0;c<r.length;c++){var u=r[c];zr(t,u)||n&&zr(n,u)||o(t,u,i(e,u))}},ao=eo,so=function(t,e){var n,r,o,i,c,u=t.target,a=t.global,s=t.stat;if(n=a?no:s?no[u]||co(u,{}):(no[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=ro(n,r))&&c.value:n[r],!ao(a?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;uo(i,o)}(t.sham||o&&o.sham)&&oo(i,"sham",!0),io(n,r,i,t)}},fo="process"==An(b.process),lo=Q,po=String,ho=TypeError,vo=I,yo=zt,mo=function(t){if("object"==typeof t||lo(t))return t;throw ho("Can't set "+po(t)+" as a prototype")},bo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=vo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return yo(n),mo(r),e?t(n,r):n.__proto__=r,n}}():void 0),go=_t.f,wo=z,jo=Ct("toStringTag"),Oo=nt,So=_t,To=Rt,Co=Ct("species"),Eo=Wt,Po=TypeError,_o=I,Ro=_,xo=Q,No=qn,Fo=ze,Do=function(){},Io=[],Ao=nt("Reflect","construct"),Mo=/^\s*(?:class|function)\b/,$o=_o(Mo.exec),ko=!Mo.exec(Do),Lo=function(t){if(!xo(t))return!1;try{return Ao(Do,Io,t),!0}catch(t){return!1}},Uo=function(t){if(!xo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ko||!!$o(Mo,Fo(t))}catch(t){return!0}};Uo.sham=!0;var Bo,qo,zo,Go,Vo=!Ao||Ro((function(){var t;return Lo(Lo.call)||!Lo(Object)||!Lo((function(){t=!0}))||t}))?Uo:Lo,Ho=Vo,Wo=te,Xo=TypeError,Jo=zt,Ko=function(t){if(Ho(t))return t;throw Xo(Wo(t)+" is not a constructor")},Yo=A,Qo=Ct("species"),Zo=R,ti=Function.prototype,ei=ti.apply,ni=ti.call,ri="object"==typeof Reflect&&Reflect.apply||(Zo?ni.bind(ei):function(){return ni.apply(ei,arguments)}),oi=An,ii=I,ci=function(t){if("Function"===oi(t))return ii(t)},ui=oe,ai=R,si=ci(ci.bind),fi=function(t,e){return ui(t),void 0===e?t:ai?si(t,e):function(){return t.apply(e,arguments)}},li=nt("document","documentElement"),pi=I([].slice),di=TypeError,hi=/(?:ipad|iphone|ipod).*applewebkit/i.test(rt),vi=b,yi=ri,mi=fi,bi=Q,gi=z,wi=_,ji=li,Oi=pi,Si=Mt,Ti=function(t,e){if(t<e)throw di("Not enough arguments");return t},Ci=hi,Ei=fo,Pi=vi.setImmediate,_i=vi.clearImmediate,Ri=vi.process,xi=vi.Dispatch,Ni=vi.Function,Fi=vi.MessageChannel,Di=vi.String,Ii=0,Ai={};try{Bo=vi.location}catch(t){}var Mi=function(t){if(gi(Ai,t)){var e=Ai[t];delete Ai[t],e()}},$i=function(t){return function(){Mi(t)}},ki=function(t){Mi(t.data)},Li=function(t){vi.postMessage(Di(t),Bo.protocol+"//"+Bo.host)};Pi&&_i||(Pi=function(t){Ti(arguments.length,1);var e=bi(t)?t:Ni(t),n=Oi(arguments,1);return Ai[++Ii]=function(){yi(e,void 0,n)},qo(Ii),Ii},_i=function(t){delete Ai[t]},Ei?qo=function(t){Ri.nextTick($i(t))}:xi&&xi.now?qo=function(t){xi.now($i(t))}:Fi&&!Ci?(Go=(zo=new Fi).port2,zo.port1.onmessage=ki,qo=mi(Go.postMessage,Go)):vi.addEventListener&&bi(vi.postMessage)&&!vi.importScripts&&Bo&&"file:"!==Bo.protocol&&!wi(Li)?(qo=Li,vi.addEventListener("message",ki,!1)):qo="onreadystatechange"in Si("script")?function(t){ji.appendChild(Si("script")).onreadystatechange=function(){ji.removeChild(this),Mi(t)}}:function(t){setTimeout($i(t),0)});var Ui,Bi,qi,zi,Gi,Vi,Hi,Wi,Xi={set:Pi,clear:_i},Ji=b,Ki=/ipad|iphone|ipod/i.test(rt)&&void 0!==Ji.Pebble,Yi=/web0s(?!.*chrome)/i.test(rt),Qi=b,Zi=fi,tc=Vn.f,ec=Xi.set,nc=hi,rc=Ki,oc=Yi,ic=fo,cc=Qi.MutationObserver||Qi.WebKitMutationObserver,uc=Qi.document,ac=Qi.process,sc=Qi.Promise,fc=tc(Qi,"queueMicrotask"),lc=fc&&fc.value;lc||(Ui=function(){var t,e;for(ic&&(t=ac.domain)&&t.exit();Bi;){e=Bi.fn,Bi=Bi.next;try{e()}catch(t){throw Bi?zi():qi=void 0,t}}qi=void 0,t&&t.enter()},nc||ic||oc||!cc||!uc?!rc&&sc&&sc.resolve?((Hi=sc.resolve(void 0)).constructor=sc,Wi=Zi(Hi.then,Hi),zi=function(){Wi(Ui)}):ic?zi=function(){ac.nextTick(Ui)}:(ec=Zi(ec,Qi),zi=function(){ec(Ui)}):(Gi=!0,Vi=uc.createTextNode(""),new cc(Ui).observe(Vi,{characterData:!0}),zi=function(){Vi.data=Gi=!Gi}));var pc=lc||function(t){var e={fn:t,next:void 0};qi&&(qi.next=e),Bi||(Bi=e,zi()),qi=e},dc=b,hc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},vc=function(){this.head=null,this.tail=null};vc.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var yc=vc,mc=b.Promise,bc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,gc=!bc&&!fo&&"object"==typeof window&&"object"==typeof document,wc=b,jc=mc,Oc=Q,Sc=eo,Tc=ze,Cc=Ct,Ec=gc,Pc=bc,_c=ft;jc&&jc.prototype;var Rc=Cc("species"),xc=!1,Nc=Oc(wc.PromiseRejectionEvent),Fc=Sc("Promise",(function(){var t=Tc(jc),e=t!==String(jc);if(!e&&66===_c)return!0;if(!_c||_c<51||!/native code/.test(t)){var n=new jc((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Rc]=r,!(xc=n.then((function(){}))instanceof r))return!0}return!e&&(Ec||Pc)&&!Nc})),Dc={CONSTRUCTOR:Fc,REJECTION_EVENT:Nc,SUBCLASSING:xc},Ic={},Ac=oe,Mc=TypeError,$c=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Mc("Bad Promise constructor");e=t,n=r})),this.resolve=Ac(e),this.reject=Ac(n)};Ic.f=function(t){return new $c(t)};var kc,Lc,Uc,Bc=so,qc=fo,zc=b,Gc=Ht,Vc=Nn,Hc=bo,Wc=function(t,e,n){t&&!n&&(t=t.prototype),t&&!wo(t,jo)&&go(t,jo,{configurable:!0,value:e})},Xc=function(t){var e=Oo(t),n=So.f;To&&e&&!e[Co]&&n(e,Co,{configurable:!0,get:function(){return this}})},Jc=oe,Kc=Q,Yc=Ft,Qc=function(t,e){if(Eo(e,t))return t;throw Po("Incorrect invocation")},Zc=function(t,e){var n,r=Jo(t).constructor;return void 0===r||Yo(n=Jo(r)[Qo])?e:Ko(n)},tu=Xi.set,eu=pc,nu=function(t,e){var n=dc.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},ru=hc,ou=yc,iu=hn,cu=mc,uu=Ic,au=Dc.CONSTRUCTOR,su=Dc.REJECTION_EVENT,fu=Dc.SUBCLASSING,lu=iu.getterFor("Promise"),pu=iu.set,du=cu&&cu.prototype,hu=cu,vu=du,yu=zc.TypeError,mu=zc.document,bu=zc.process,gu=uu.f,wu=gu,ju=!!(mu&&mu.createEvent&&zc.dispatchEvent),Ou=function(t){var e;return!(!Yc(t)||!Kc(e=t.then))&&e},Su=function(t,e){var n,r,o,i=e.value,c=1==e.state,u=c?t.ok:t.fail,a=t.resolve,s=t.reject,f=t.domain;try{u?(c||(2===e.rejection&&_u(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(yu("Promise-chain cycle")):(r=Ou(n))?Gc(r,n,a,s):a(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Tu=function(t,e){t.notified||(t.notified=!0,eu((function(){for(var n,r=t.reactions;n=r.get();)Su(n,t);t.notified=!1,e&&!t.rejection&&Eu(t)})))},Cu=function(t,e,n){var r,o;ju?((r=mu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),zc.dispatchEvent(r)):r={promise:e,reason:n},!su&&(o=zc["on"+t])?o(r):"unhandledrejection"===t&&nu("Unhandled promise rejection",n)},Eu=function(t){Gc(tu,zc,(function(){var e,n=t.facade,r=t.value;if(Pu(t)&&(e=ru((function(){qc?bu.emit("unhandledRejection",r,n):Cu("unhandledrejection",n,r)})),t.rejection=qc||Pu(t)?2:1,e.error))throw e.value}))},Pu=function(t){return 1!==t.rejection&&!t.parent},_u=function(t){Gc(tu,zc,(function(){var e=t.facade;qc?bu.emit("rejectionHandled",e):Cu("rejectionhandled",e,t.value)}))},Ru=function(t,e,n){return function(r){t(e,r,n)}},xu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Tu(t,!0))},Nu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw yu("Promise can't be resolved itself");var r=Ou(e);r?eu((function(){var n={done:!1};try{Gc(r,e,Ru(Nu,n,t),Ru(xu,n,t))}catch(e){xu(n,e,t)}})):(t.value=e,t.state=1,Tu(t,!1))}catch(e){xu({done:!1},e,t)}}};if(au&&(vu=(hu=function(t){Qc(this,vu),Jc(t),Gc(kc,this);var e=lu(this);try{t(Ru(Nu,e),Ru(xu,e))}catch(t){xu(e,t)}}).prototype,(kc=function(t){pu(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new ou,rejection:!1,state:0,value:void 0})}).prototype=Vc(vu,"then",(function(t,e){var n=lu(this),r=gu(Zc(this,hu));return n.parent=!0,r.ok=!Kc(t)||t,r.fail=Kc(e)&&e,r.domain=qc?bu.domain:void 0,0==n.state?n.reactions.add(r):eu((function(){Su(r,n)})),r.promise})),Lc=function(){var t=new kc,e=lu(t);this.promise=t,this.resolve=Ru(Nu,e),this.reject=Ru(xu,e)},uu.f=gu=function(t){return t===hu||undefined===t?new Lc(t):wu(t)},Kc(cu)&&du!==Object.prototype)){Uc=du.then,fu||Vc(du,"then",(function(t,e){var n=this;return new hu((function(t,e){Gc(Uc,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete du.constructor}catch(t){}Hc&&Hc(du,vu)}Bc({global:!0,constructor:!0,wrap:!0,forced:au},{Promise:hu}),Wc(hu,"Promise",!1),Xc("Promise");var Fu={},Du=Fu,Iu=Ct("iterator"),Au=Array.prototype,Mu=qn,$u=ue,ku=A,Lu=Fu,Uu=Ct("iterator"),Bu=function(t){if(!ku(t))return $u(t,Uu)||$u(t,"@@iterator")||Lu[Mu(t)]},qu=Ht,zu=oe,Gu=zt,Vu=te,Hu=Bu,Wu=TypeError,Xu=Ht,Ju=zt,Ku=ue,Yu=fi,Qu=Ht,Zu=zt,ta=te,ea=function(t){return void 0!==t&&(Du.Array===t||Au[Iu]===t)},na=Sr,ra=Wt,oa=function(t,e){var n=arguments.length<2?Hu(t):e;if(zu(n))return Gu(qu(n,t));throw Wu(Vu(t)+" is not iterable")},ia=Bu,ca=function(t,e,n){var r,o;Ju(t);try{if(!(r=Ku(t,"return"))){if("throw"===e)throw n;return n}r=Xu(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ju(r),n},ua=TypeError,aa=function(t,e){this.stopped=t,this.result=e},sa=aa.prototype,fa=function(t,e,n){var r,o,i,c,u,a,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Yu(e,f),y=function(t){return r&&ca(r,"normal",t),new aa(!0,t)},m=function(t){return l?(Zu(t),h?v(t[0],t[1],y):v(t[0],t[1])):h?v(t,y):v(t)};if(p)r=t.iterator;else if(d)r=t;else{if(!(o=ia(t)))throw ua(ta(t)+" is not iterable");if(ea(o)){for(i=0,c=na(t);c>i;i++)if((u=m(t[i]))&&ra(sa,u))return u;return new aa(!1)}r=oa(t,o)}for(a=p?t.next:r.next;!(s=Qu(a,r)).done;){try{u=m(s.value)}catch(t){ca(r,"throw",t)}if("object"==typeof u&&u&&ra(sa,u))return u}return new aa(!1)},la=Ct("iterator"),pa=!1;try{var da=0,ha={next:function(){return{done:!!da++}},return:function(){pa=!0}};ha[la]=function(){return this},Array.from(ha,(function(){throw 2}))}catch(t){}var va=mc,ya=function(t,e){if(!e&&!pa)return!1;var n=!1;try{var r={};r[la]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ma=Dc.CONSTRUCTOR||!ya((function(t){va.all(t).then(void 0,(function(){}))})),ba=Ht,ga=oe,wa=Ic,ja=hc,Oa=fa;so({target:"Promise",stat:!0,forced:ma},{all:function(t){var e=this,n=wa.f(e),r=n.resolve,o=n.reject,i=ja((function(){var n=ga(e.resolve),i=[],c=0,u=1;Oa(t,(function(t){var a=c++,s=!1;u++,ba(n,e,t).then((function(t){s||(s=!0,i[a]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Sa=so,Ta=Dc.CONSTRUCTOR,Ca=mc,Ea=nt,Pa=Q,_a=Nn,Ra=Ca&&Ca.prototype;if(Sa({target:"Promise",proto:!0,forced:Ta,real:!0},{catch:function(t){return this.then(void 0,t)}}),Pa(Ca)){var xa=Ea("Promise").prototype.catch;Ra.catch!==xa&&_a(Ra,"catch",xa,{unsafe:!0})}var Na=Ht,Fa=oe,Da=Ic,Ia=hc,Aa=fa;so({target:"Promise",stat:!0,forced:ma},{race:function(t){var e=this,n=Da.f(e),r=n.reject,o=Ia((function(){var o=Fa(e.resolve);Aa(t,(function(t){Na(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ma=Ht,$a=Ic;so({target:"Promise",stat:!0,forced:Dc.CONSTRUCTOR},{reject:function(t){var e=$a.f(this);return Ma(e.reject,void 0,t),e.promise}});var ka=zt,La=Ft,Ua=Ic,Ba=so,qa=Dc.CONSTRUCTOR,za=function(t,e){if(ka(t),La(e)&&e.constructor===t)return e;var n=Ua.f(t);return(0,n.resolve)(e),n.promise};nt("Promise"),Ba({target:"Promise",stat:!0,forced:qa},{resolve:function(t){return za(this,t)}});function Ga(t,e,n,r,o,i,c,u,a,s){"boolean"!=typeof c&&(a=u,u=c,c=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),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)},f._ssrRegister=l):e&&(l=c?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Va={};var Ha=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"base-dialog__render"},[t._t("default")],2)};Ha._withStripped=!0;const Wa=Ga({render:Ha,staticRenderFns:[]},undefined,Va,undefined,false,undefined,!1,void 0,void 0,void 0);exports.BaseDialog=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this,r=f(s(e,["$route","$router","slotNode","buttons","component","listeners","ctCls","isDestroy","title","customClass","visible","appendToBody","modalAppendToBody","destroyOnClose"])),o=this.$createElement,i=t.extend({provide:function(){return{getBaseDialog:this}},router:n.$router,store:n.$store,props:r,data:function(){return{visible:!1,curTitle:e.title||"提示"}},methods:{appendTitle:function(){return l(e,"slotNode.title")?[e.slotNode.title(o)]:[]},appendFooter:function(){for(var t=[],n=0,r=p(e,"buttons",[]).length;n<r;n+=1){var i=e.buttons[n];t.push(o("el-button",{props:p(i,"props",(function(){return{}}))(),on:i.on},[i.text]))}return l(e,"slotNode.footer")?d([e.slotNode.footer(o)],t):d([],t)},setTitle:function(t){this.curTitle=t}},render:function(t){var n=this;return t("el-dialog",{class:v({"base-dialog__wrapper":!0},e.ctCls,e.ctCls),props:a({visible:this.visible,customClass:this.curCustomClass,title:this.curTitle,destroyOnClose:!1,appendToBody:!1,modalAppendToBody:!0},this.$props),on:{"update:visible":function(t){n.visible=t},open:function(){l(e,"listeners.open")&&e.listeners.open()},opened:function(){l(e,"listeners.opened")&&e.listeners.opened()},close:function(){l(e,"listeners.close")&&e.listeners.close()},closed:function(){l(e,"listeners.closed")&&e.listeners.closed(),n.destroyedDialog()}}},[this.comFun,t("template",{slot:"title"},this.appendTitle()),t("template",{slot:"footer"},this.appendFooter())])}}),c=new i({propsData:e,data:function(){return this.readyPromise=null,this.readyPromiseResolve=null,this.curCustomClass="base-el-dialog",this.comFun=null,this.isDestroy=!0,{}},created:function(){var t=this;if(h(e.component)){var n=e.component();l(n,"el")?this.comFun=o(Wa,{},[o(n.el,s(n,["el"]),[p(n,"children")])]):this.comFun=o(Wa,{},[e.component])}l(e.component,"render")&&(this.comFun=o(Wa,{},[o(e.component)])),l(e,"customClass")&&(this.curCustomClass+=" ".concat(p(e,"customClass",""))),this.readyPromise=new Promise((function(e){t.readyPromiseResolve=e})),this.$nextTick((function(){document.body.appendChild(c.$mount().$el),t.readyPromiseResolve()}))},beforeDestroy:function(){this.readyPromise=void 0,this.readyPromiseResolve=void 0,this.comFun=void 0},methods:{ready:function(){return this.readyPromise},getContentNode:function(){return this.comFun.componentInstance.$children[0]},open:function(){var t=this;this.ready().then((function(){return t.visible=!0,!0})).catch((function(){}))},close:function(){this.$children[0].handleClose()},closeDialog:function(){this.close()},destroyedDialog:function(){setTimeout((function(){c.$destroy(),l(c,"$el")&&c.$el.remove()}),0)}}});return c}};