shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 32.7 kB
JavaScript
/*!
* shu-c-view v1.2.86
* (c) 2024-08-02
* @license MIT
*/
;Object.defineProperty(exports,"__esModule",{value:!0});var t=require("vue"),e=require("lodash/set"),n=require("lodash/isArray"),r=require("lodash/isEmpty");function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i,a,u=o(t),c=o(e),s=o(n),f=o(r),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=function(t){return t&&t.Math==Math&&t},h=v("object"==typeof globalThis&&globalThis)||v("object"==typeof window&&window)||v("object"==typeof self&&self)||v("object"==typeof l&&l)||function(){return this}()||Function("return this")(),g=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),m=g,y=Function.prototype,b=y.call,S=m&&y.bind.bind(b,b),x=m?S:function(t){return function(){return b.apply(t,arguments)}},w="object"==typeof document&&document.all,E={all:w,IS_HTMLDDA:void 0===w&&void 0!==w},O=E.all,_=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===O}:function(t){return"function"==typeof t},j=p,I=_,M=/#|\.prototype\./,N=function(t,e){var n=T[R(t)];return n==P||n!=A&&(I(e)?j(e):!!e)},R=N.normalize=function(t){return String(t).replace(M,".").toLowerCase()},T=N.data={},A=N.NATIVE="N",P=N.POLYFILL="P",D=N,C={},k=_,$=E.all,F=E.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:k(t)||t===$}:function(t){return"object"==typeof t?null!==t:k(t)},L=F,B=h.document,z=L(B)&&L(B.createElement),U=function(t){return z?B.createElement(t):{}},H=U,K=!d&&!p((function(){return 7!=Object.defineProperty(H("div"),"a",{get:function(){return 7}}).a})),Y=d&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),q=F,V=String,G=TypeError,W=function(t){if(q(t))return t;throw G(V(t)+" is not an object")},Z=g,X=Function.prototype.call,J=Z?X.bind(X):function(){return X.apply(X,arguments)},Q=h,tt=_,et=function(t){return tt(t)?t:void 0},nt=function(t,e){return arguments.length<2?et(Q[t]):Q[t]&&Q[t][e]},rt=x({}.isPrototypeOf),ot=h,it=nt("navigator","userAgent")||"",at=ot.process,ut=ot.Deno,ct=at&&at.versions||ut&&ut.version,st=ct&&ct.v8;st&&(a=(i=st.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&it&&(!(i=it.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=it.match(/Chrome\/(\d+)/))&&(a=+i[1]);var ft=a,lt=p,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),dt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=nt,ht=_,gt=rt,mt=Object,yt=dt?function(t){return"symbol"==typeof t}:function(t){var e=vt("Symbol");return ht(e)&>(e.prototype,mt(t))},bt=String,St=_,xt=function(t){try{return bt(t)}catch(t){return"Object"}},wt=TypeError,Et=function(t){return null==t},Ot=function(t){if(St(t))return t;throw wt(xt(t)+" is not a function")},_t=Et,jt=function(t,e){var n=t[e];return _t(n)?void 0:Ot(n)},It=J,Mt=_,Nt=F,Rt=TypeError,Tt={exports:{}},At=h,Pt=Object.defineProperty,Dt=function(t,e){try{Pt(At,t,{value:e,configurable:!0,writable:!0})}catch(n){At[t]=e}return e},Ct=Dt,kt=h["__core-js_shared__"]||Ct("__core-js_shared__",{}),$t=kt;(Tt.exports=function(t,e){return $t[t]||($t[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 Ft=Et,Lt=TypeError,Bt=function(t){if(Ft(t))throw Lt("Can't call method on "+t);return t},zt=Bt,Ut=Object,Ht=function(t){return Ut(zt(t))},Kt=Ht,Yt=x({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Yt(Kt(t),e)},Vt=x,Gt=0,Wt=Math.random(),Zt=Vt(1..toString),Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++Gt+Wt,36)},Jt=h,Qt=Tt.exports,te=qt,ee=Xt,ne=pt,re=dt,oe=Qt("wks"),ie=Jt.Symbol,ae=ie&&ie.for,ue=re?ie:ie&&ie.withoutSetter||ee,ce=function(t){if(!te(oe,t)||!ne&&"string"!=typeof oe[t]){var e="Symbol."+t;ne&&te(ie,t)?oe[t]=ie[t]:oe[t]=re&&ae?ae(e):ue(e)}return oe[t]},se=J,fe=F,le=yt,pe=jt,de=function(t,e){var n,r;if("string"===e&&Mt(n=t.toString)&&!Nt(r=It(n,t)))return r;if(Mt(n=t.valueOf)&&!Nt(r=It(n,t)))return r;if("string"!==e&&Mt(n=t.toString)&&!Nt(r=It(n,t)))return r;throw Rt("Can't convert object to primitive value")},ve=TypeError,he=ce("toPrimitive"),ge=function(t,e){if(!fe(t)||le(t))return t;var n,r=pe(t,he);if(r){if(void 0===e&&(e="default"),n=se(r,t,e),!fe(n)||le(n))return n;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),de(t,e)},me=ge,ye=yt,be=function(t){var e=me(t,"string");return ye(e)?e:e+""},Se=d,xe=K,we=Y,Ee=W,Oe=be,_e=TypeError,je=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor;C.f=Se?we?function(t,e,n){if(Ee(t),e=Oe(e),Ee(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Ie(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 je(t,e,n)}:je:function(t,e,n){if(Ee(t),e=Oe(e),Ee(n),xe)try{return je(t,e,n)}catch(t){}if("get"in n||"set"in n)throw _e("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Me={exports:{}},Ne=d,Re=qt,Te=Function.prototype,Ae=Ne&&Object.getOwnPropertyDescriptor,Pe=Re(Te,"name"),De={EXISTS:Pe,PROPER:Pe&&"something"===function(){}.name,CONFIGURABLE:Pe&&(!Ne||Ne&&Ae(Te,"name").configurable)},Ce=_,ke=kt,$e=x(Function.toString);Ce(ke.inspectSource)||(ke.inspectSource=function(t){return $e(t)});var Fe,Le,Be,ze=ke.inspectSource,Ue=_,He=h.WeakMap,Ke=Ue(He)&&/native code/.test(String(He)),Ye=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},qe=C,Ve=Ye,Ge=d?function(t,e,n){return qe.f(t,e,Ve(1,n))}:function(t,e,n){return t[e]=n,t},We=Tt.exports,Ze=Xt,Xe=We("keys"),Je=function(t){return Xe[t]||(Xe[t]=Ze(t))},Qe={},tn=Ke,en=h,nn=F,rn=Ge,on=qt,an=kt,un=Je,cn=Qe,sn=en.TypeError,fn=en.WeakMap;if(tn||an.state){var ln=an.state||(an.state=new fn);ln.get=ln.get,ln.has=ln.has,ln.set=ln.set,Fe=function(t,e){if(ln.has(t))throw sn("Object already initialized");return e.facade=t,ln.set(t,e),e},Le=function(t){return ln.get(t)||{}},Be=function(t){return ln.has(t)}}else{var pn=un("state");cn[pn]=!0,Fe=function(t,e){if(on(t,pn))throw sn("Object already initialized");return e.facade=t,rn(t,pn,e),e},Le=function(t){return on(t,pn)?t[pn]:{}},Be=function(t){return on(t,pn)}}var dn={set:Fe,get:Le,has:Be,enforce:function(t){return Be(t)?Le(t):Fe(t,{})},getterFor:function(t){return function(e){var n;if(!nn(e)||(n=Le(e)).type!==t)throw sn("Incompatible receiver, "+t+" required");return n}}},vn=p,hn=_,gn=qt,mn=d,yn=De.CONFIGURABLE,bn=ze,Sn=dn.enforce,xn=dn.get,wn=Object.defineProperty,En=mn&&!vn((function(){return 8!==wn((function(){}),"length",{value:8}).length})),On=String(String).split("String"),_n=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),(!gn(t,"name")||yn&&t.name!==e)&&(mn?wn(t,"name",{value:e,configurable:!0}):t.name=e),En&&n&&gn(n,"arity")&&t.length!==n.arity&&wn(t,"length",{value:n.arity});try{n&&gn(n,"constructor")&&n.constructor?mn&&wn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Sn(t);return gn(r,"source")||(r.source=On.join("string"==typeof e?e:"")),t};Function.prototype.toString=_n((function(){return hn(this)&&xn(this).source||bn(this)}),"toString");var jn=_,In=C,Mn=Me.exports,Nn=Dt,Rn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(jn(n)&&Mn(n,i,r),r.global)o?t[e]=n:Nn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:In.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Tn=_,An=String,Pn=TypeError,Dn=x,Cn=W,kn=function(t){if("object"==typeof t||Tn(t))return t;throw Pn("Can't set "+An(t)+" as a prototype")},$n=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Dn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Cn(n),kn(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fn=_,Ln=F,Bn=$n,zn=function(t,e,n){var r,o;return Bn&&Fn(r=e.constructor)&&r!==n&&Ln(o=r.prototype)&&o!==n.prototype&&Bn(t,o),t},Un={},Hn=x,Kn=Hn({}.toString),Yn=Hn("".slice),qn=function(t){return Yn(Kn(t),8,-1)},Vn=p,Gn=qn,Wn=Object,Zn=x("".split),Xn=Vn((function(){return!Wn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Gn(t)?Zn(t,""):Wn(t)}:Wn,Jn=Bt,Qn=function(t){return Xn(Jn(t))},tr=Math.ceil,er=Math.floor,nr=Math.trunc||function(t){var e=+t;return(e>0?er:tr)(e)},rr=function(t){var e=+t;return e!=e||0===e?0:nr(e)},or=rr,ir=Math.max,ar=Math.min,ur=rr,cr=Math.min,sr=function(t){return t>0?cr(ur(t),9007199254740991):0},fr=sr,lr=Qn,pr=function(t,e){var n=or(t);return n<0?ir(n+e,0):ar(n,e)},dr=function(t){return fr(t.length)},vr=function(t){return function(e,n,r){var o,i=lr(e),a=dr(i),u=pr(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},hr={includes:vr(!0),indexOf:vr(!1)},gr=qt,mr=Qn,yr=hr.indexOf,br=Qe,Sr=x([].push),xr=function(t,e){var n,r=mr(t),o=0,i=[];for(n in r)!gr(br,n)&&gr(r,n)&&Sr(i,n);for(;e.length>o;)gr(r,n=e[o++])&&(~yr(i,n)||Sr(i,n));return i},wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Er=xr,Or=wr.concat("length","prototype");Un.f=Object.getOwnPropertyNames||function(t){return Er(t,Or)};var _r={},jr={},Ir={}.propertyIsEnumerable,Mr=Object.getOwnPropertyDescriptor,Nr=Mr&&!Ir.call({1:2},1);jr.f=Nr?function(t){var e=Mr(this,t);return!!e&&e.enumerable}:Ir;var Rr=d,Tr=J,Ar=jr,Pr=Ye,Dr=Qn,Cr=be,kr=qt,$r=K,Fr=Object.getOwnPropertyDescriptor;_r.f=Rr?Fr:function(t,e){if(t=Dr(t),e=Cr(e),$r)try{return Fr(t,e)}catch(t){}if(kr(t,e))return Pr(!Tr(Ar.f,t,e),t[e])};var Lr=x(1..valueOf),Br={};Br[ce("toStringTag")]="z";var zr="[object z]"===String(Br),Ur=_,Hr=qn,Kr=ce("toStringTag"),Yr=Object,qr="Arguments"==Hr(function(){return arguments}()),Vr=zr?Hr: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=Yr(t),Kr))?n:qr?Hr(e):"Object"==(r=Hr(e))&&Ur(e.callee)?"Arguments":r},Gr=Vr,Wr=String,Zr=function(t){if("Symbol"===Gr(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Xr=Bt,Jr=Zr,Qr=x("".replace),to="[\t\n\v\f\r \u2028\u2029\ufeff]",eo=RegExp("^"+to+to+"*"),no=RegExp(to+to+"*$"),ro=function(t){return function(e){var n=Jr(Xr(e));return 1&t&&(n=Qr(n,eo,"")),2&t&&(n=Qr(n,no,"")),n}},oo={start:ro(1),end:ro(2),trim:ro(3)},io=d,ao=h,uo=x,co=D,so=Rn,fo=qt,lo=zn,po=rt,vo=yt,ho=ge,go=p,mo=Un.f,yo=_r.f,bo=C.f,So=Lr,xo=oo.trim,wo=ao.Number,Eo=wo.prototype,Oo=ao.TypeError,_o=uo("".slice),jo=uo("".charCodeAt),Io=function(t){var e=ho(t,"number");return"bigint"==typeof e?e:Mo(e)},Mo=function(t){var e,n,r,o,i,a,u,c,s=ho(t,"number");if(vo(s))throw Oo("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=xo(s),43===(e=jo(s,0))||45===e){if(88===(n=jo(s,2))||120===n)return NaN}else if(48===e){switch(jo(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=_o(s,2)).length,u=0;u<a;u++)if((c=jo(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+s};if(co("Number",!wo(" 0o1")||!wo("0b1")||wo("+0x1"))){for(var No,Ro=function(t){var e=arguments.length<1?0:wo(Io(t)),n=this;return po(Eo,n)&&go((function(){So(n)}))?lo(Object(e),n,Ro):e},To=io?mo(wo):"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(","),Ao=0;To.length>Ao;Ao++)fo(wo,No=To[Ao])&&!fo(Ro,No)&&bo(Ro,No,yo(wo,No));Ro.prototype=Eo,Eo.constructor=Ro,so(ao,"Number",Ro,{constructor:!0})}var Po=d,Do=De.EXISTS,Co=x,ko=C.f,$o=Function.prototype,Fo=Co($o.toString),Lo=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bo=Co(Lo.exec);Po&&!Do&&ko($o,"name",{configurable:!0,get:function(){try{return Bo(Lo,Fo(this))[1]}catch(t){return""}}});var zo,Uo={},Ho={exports:{}};(zo=Ho).exports=function(t){return t&&t.__esModule?t:{default:t}},zo.exports.__esModule=!0,zo.exports.default=zo.exports;var Ko={},Yo={};function qo(t,e){return e?"string"==typeof e?" "+t+"--"+e:Array.isArray(e)?e.reduce((function(e,n){return e+qo(t,n)}),""):Object.keys(e).reduce((function(n,r){return n+(e[r]?qo(t,r):"")}),""):""}Yo.__esModule=!0,Yo.createBEM=function(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+qo(e,n)}};var Vo={},Go={},Wo={__esModule:!0};Wo.deepAssign=Jo;var Zo=Uo,Xo=Object.prototype.hasOwnProperty;function Jo(t,e){return Object.keys(e).forEach((function(n){!function(t,e,n){var r=e[n];(0,Zo.isDef)(r)&&(Xo.call(t,n)&&(0,Zo.isObject)(r)?t[n]=Jo(Object(t[n]),e[n]):t[n]=r)}(t,e,n)})),t}var Qo={__esModule:!0,default:void 0};Qo.default={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}};var ti=Ho.exports;Go.__esModule=!0,Go.default=void 0;var ei=ti(u),ni=Wo,ri=ti(Qo),oi=ei.default.prototype,ii=ei.default.util.defineReactive;ii(oi,"$vantLang","zh-CN"),ii(oi,"$vantMessages",{"zh-CN":ri.default});var ai={messages:function(){return oi.$vantMessages[oi.$vantLang]},use:function(t,e){var n;oi.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),(0,ni.deepAssign)(oi.$vantMessages,t)}};Go.default=ai;var ui={__esModule:!0,camelize:function(t){return t.replace(ci,(function(t,e){return e.toUpperCase()}))},padZero:function(t,e){void 0===e&&(e=2);var n=t+"";for(;n.length<e;)n="0"+n;return n}},ci=/-(\w)/g;var si={__esModule:!0,SlotsMixin:void 0};si.SlotsMixin={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,r=this.$scopedSlots[t];return r?r(e):n[t]}}};var fi=Ho.exports;Vo.__esModule=!0,Vo.unifySlots=hi,Vo.createComponent=function(t){return function(e){var n;return(0,li.isFunction)(e)&&(e={functional:!0,props:(n=e).props,model:n.model,render:function(t,e){return n(t,e.props,hi(e),e)}}),e.functional||(e.mixins=e.mixins||[],e.mixins.push(di.SlotsMixin)),e.name=t,e.install=vi,e}};var li=Uo,pi=ui,di=si;function vi(t){var e=this.name;t.component(e,this),t.component((0,pi.camelize)("-"+e),this)}function hi(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach((function(t){e[t]||(e[t]=function(){return n[t]})})),e}fi(u);var gi={},mi=Ho.exports;gi.__esModule=!0,gi.createI18N=function(t){var e=(0,bi.camelize)(t)+".";return function(t){for(var n=Si.default.messages(),r=(0,yi.get)(n,e+t)||(0,yi.get)(n,t),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(0,yi.isFunction)(r)?r.apply(void 0,i):r}};var yi=Uo,bi=ui,Si=mi(Go);Ko.__esModule=!0,Ko.createNamespace=function(t){return t="van-"+t,[(0,wi.createComponent)(t),(0,xi.createBEM)(t),(0,Ei.createI18N)(t)]};var xi=Yo,wi=Vo,Ei=gi;var Oi={},_i={};_i.__esModule=!0,_i.isNumeric=function(t){return/^\d+(\.\d+)?$/.test(t)},_i.isNaN=function(t){if(Number.isNaN)return Number.isNaN(t);return t!=t},Oi.__esModule=!0,Oi.addUnit=function(t){if(!(0,Ii.isDef)(t))return;return t=String(t),(0,Mi.isNumeric)(t)?t+"px":t},Oi.unitToPx=function(t){if("number"==typeof t)return t;if(Ii.inBrowser){if(-1!==t.indexOf("rem"))return function(t){return+(t=t.replace(/rem/g,""))*function(){if(!ji){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;ji=parseFloat(e)}return ji}()}(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)};var ji,Ii=Uo,Mi=_i;var Ni=Ho.exports;Uo.__esModule=!0,Uo.noop=function(){},Uo.isDef=function(t){return null!=t},Uo.isFunction=Ci,Uo.isObject=ki,Uo.isPromise=function(t){return ki(t)&&Ci(t.then)&&Ci(t.catch)},Uo.get=function(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=null!=(e=r[t])?e:""})),r},Uo.isEmpty=function(t){if(null==t)return!0;if("object"!=typeof t)return!0;return 0===Object.keys(t).length},Uo.isServer=Uo.inBrowser=Uo.addUnit=Uo.createNamespace=void 0;var Ri=Ni(u),Ti=Ko;Uo.createNamespace=Ti.createNamespace;var Ai=Oi;Uo.addUnit=Ai.addUnit;var Pi="undefined"!=typeof window;Uo.inBrowser=Pi;var Di=Ri.default.prototype.$isServer;function Ci(t){return"function"==typeof t}function ki(t){return null!==t&&"object"==typeof t}Uo.isServer=Di;var $i={__esModule:!0};$i.raf=Hi,$i.doubleRaf=function(t){Hi((function(){Hi(t)}))},$i.cancelRaf=function(t){Ui.call(Bi,t)};var Fi=Uo,Li=Date.now();var Bi=Fi.isServer?l:window,zi=Bi.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-Li)),r=setTimeout(t,n);return Li=e+n,r},Ui=Bi.cancelAnimationFrame||Bi.clearTimeout;function Hi(t){return zi.call(Bi,t)}var Ki={__esModule:!0,parseTimeData:function(t){var e=Math.floor(t/864e5),n=Math.floor(t%864e5/36e5),r=Math.floor(t%36e5/6e4),o=Math.floor(t%6e4/1e3),i=Math.floor(t%1e3);return{days:e,hours:n,minutes:r,seconds:o,milliseconds:i}},parseFormat:function(t,e){var n=e.days,r=e.hours,o=e.minutes,i=e.seconds,a=e.milliseconds;-1===t.indexOf("DD")?r+=24*n:t=t.replace("DD",(0,Yi.padZero)(n));-1===t.indexOf("HH")?o+=60*r:t=t.replace("HH",(0,Yi.padZero)(r));-1===t.indexOf("mm")?i+=60*o:t=t.replace("mm",(0,Yi.padZero)(o));-1===t.indexOf("ss")?a+=1e3*i:t=t.replace("ss",(0,Yi.padZero)(i));if(-1!==t.indexOf("S")){var u=(0,Yi.padZero)(a,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",u):-1!==t.indexOf("SS")?t.replace("SS",u.slice(0,2)):t.replace("S",u.charAt(0))}return t},isSameSecond:function(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)}},Yi=ui;var qi,Vi=Uo,Gi=$i,Wi=Ki,Zi=(0,Vi.createNamespace)("count-down"),Xi=Zi[0],Ji=Zi[1],Qi=Xi({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return(0,Wi.parseTimeData)(this.remain)},formattedTime:function(){return(0,Wi.parseFormat)(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,(0,Gi.cancelRaf)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){Vi.inBrowser&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=(0,Gi.raf)((function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())}))},macroTick:function(){var t=this;this.rafId=(0,Gi.raf)((function(){if(t.counting){var e=t.getRemain();(0,Wi.isSameSecond)(e,t.remain)&&0!==e||t.setRemain(e),t.remain>0&&t.macroTick()}}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){var t=arguments[0];return t("div",{class:Ji()},[this.slots("default",this.timeData)||this.formattedTime])}});qi=Qi;var ta="object"==typeof l&&l&&l.Object===Object&&l,ea="object"==typeof self&&self&&self.Object===Object&&self,na=ta||ea||Function("return this")(),ra=function(){return na.Date.now()},oa={};oa.f=Object.getOwnPropertySymbols;var ia=nt,aa=Un,ua=oa,ca=W,sa=x([].concat),fa=ia("Reflect","ownKeys")||function(t){var e=aa.f(ca(t)),n=ua.f;return n?sa(e,n(t)):e},la=qt,pa=fa,da=_r,va=C,ha=h,ga=_r.f,ma=Ge,ya=Rn,ba=Dt,Sa=function(t,e,n){for(var r=pa(e),o=va.f,i=da.f,a=0;a<r.length;a++){var u=r[a];la(t,u)||n&&la(n,u)||o(t,u,i(e,u))}},xa=D,wa=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?ha:s?ha[u]||ba(u,{}):(ha[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=ga(n,r))&&a.value:n[r],!xa(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Sa(i,o)}(t.sham||o&&o.sham)&&ma(i,"sham",!0),ya(n,r,i,t)}},Ea=W,Oa=function(){var t=Ea(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},_a=p,ja=h.RegExp,Ia=_a((function(){var t=ja("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ma=Ia||_a((function(){return!ja("a","y").sticky})),Na=Ia||_a((function(){var t=ja("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Ra={BROKEN_CARET:Na,MISSED_STICKY:Ma,UNSUPPORTED_Y:Ia},Ta={},Aa=xr,Pa=wr,Da=Object.keys||function(t){return Aa(t,Pa)},Ca=d,ka=Y,$a=C,Fa=W,La=Qn,Ba=Da;Ta.f=Ca&&!ka?Object.defineProperties:function(t,e){Fa(t);for(var n,r=La(e),o=Ba(e),i=o.length,a=0;i>a;)$a.f(t,n=o[a++],r[n]);return t};var za,Ua=nt("document","documentElement"),Ha=W,Ka=Ta,Ya=wr,qa=Qe,Va=Ua,Ga=U,Wa=Je("IE_PROTO"),Za=function(){},Xa=function(t){return"<script>"+t+"<\/script>"},Ja=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qa=function(){try{za=new ActiveXObject("htmlfile")}catch(t){}var t,e;Qa="undefined"!=typeof document?document.domain&&za?Ja(za):((e=Ga("iframe")).style.display="none",Va.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Ja(za);for(var n=Ya.length;n--;)delete Qa.prototype[Ya[n]];return Qa()};qa[Wa]=!0;var tu=Object.create||function(t,e){var n;return null!==t?(Za.prototype=Ha(t),n=new Za,Za.prototype=null,n[Wa]=t):n=Qa(),void 0===e?n:Ka.f(n,e)},eu=p,nu=h.RegExp,ru=eu((function(){var t=nu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ou=p,iu=h.RegExp,au=ou((function(){var t=iu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),uu=J,cu=x,su=Zr,fu=Oa,lu=Ra,pu=Tt.exports,du=tu,vu=dn.get,hu=ru,gu=au,mu=pu("native-string-replace",String.prototype.replace),yu=RegExp.prototype.exec,bu=yu,Su=cu("".charAt),xu=cu("".indexOf),wu=cu("".replace),Eu=cu("".slice),Ou=function(){var t=/a/,e=/b*/g;return uu(yu,t,"a"),uu(yu,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_u=lu.BROKEN_CARET,ju=void 0!==/()??/.exec("")[1];(Ou||ju||_u||hu||gu)&&(bu=function(t){var e,n,r,o,i,a,u,c=this,s=vu(c),f=su(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=uu(bu,l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,d=_u&&c.sticky,v=uu(fu,c),h=c.source,g=0,m=f;if(d&&(v=wu(v,"y",""),-1===xu(v,"g")&&(v+="g"),m=Eu(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Su(f,c.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",v)),ju&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Ou&&(r=c.lastIndex),o=uu(yu,d?n:c,m),d?o?(o.input=Eu(o.input,g),o[0]=Eu(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ou&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),ju&&o&&o.length>1&&uu(mu,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=a=du(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Iu=bu;wa({target:"RegExp",proto:!0,forced:/./.exec!==Iu},{exec:Iu});var Mu,Nu,Ru=wa,Tu=J,Au=_,Pu=W,Du=Zr,Cu=(Mu=!1,(Nu=/[ac]/).exec=function(){return Mu=!0,/./.exec.apply(this,arguments)},!0===Nu.test("abc")&&Mu),ku=/./.test;Ru({target:"RegExp",proto:!0,forced:!Cu},{test:function(t){var e=Pu(this),n=Du(t),r=e.exec;if(!Au(r))return Tu(ku,e,n);var o=Tu(r,e,n);return null!==o&&(Pu(o),!0)}});var $u=g,Fu=Function.prototype,Lu=Fu.apply,Bu=Fu.call,zu="object"==typeof Reflect&&Reflect.apply||($u?Bu.bind(Lu):function(){return Bu.apply(Lu,arguments)}),Uu=qn,Hu=x,Ku=function(t){if("Function"===Uu(t))return Hu(t)},Yu=Rn,qu=Iu,Vu=p,Gu=ce,Wu=Ge,Zu=Gu("species"),Xu=RegExp.prototype,Ju=x,Qu=rr,tc=Zr,ec=Bt,nc=Ju("".charAt),rc=Ju("".charCodeAt),oc=Ju("".slice),ic=function(t){return function(e,n){var r,o,i=tc(ec(e)),a=Qu(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=rc(i,a))<55296||r>56319||a+1===u||(o=rc(i,a+1))<56320||o>57343?t?nc(i,a):r:t?oc(i,a,a+2):o-56320+(r-55296<<10)+65536}},ac={codeAt:ic(!1),charAt:ic(!0)}.charAt,uc=x,cc=Ht,sc=Math.floor,fc=uc("".charAt),lc=uc("".replace),pc=uc("".slice),dc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vc=/\$([$&'`]|\d{1,2})/g,hc=J,gc=W,mc=_,yc=qn,bc=Iu,Sc=TypeError,xc=zu,wc=J,Ec=x,Oc=function(t,e,n,r){var o=Gu(t),i=!Vu((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!Vu((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||!a||n){var u=Ku(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=Ku(t),c=e.exec;return c===qu||c===Xu.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));Yu(String.prototype,t,c[0]),Yu(Xu,o,c[1])}r&&Wu(Xu[o],"sham",!0)},_c=p,jc=W,Ic=_,Mc=Et,Nc=rr,Rc=sr,Tc=Zr,Ac=Bt,Pc=function(t,e,n){return e+(n?ac(t,e).length:1)},Dc=jt,Cc=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=vc;return void 0!==o&&(o=cc(o),c=dc),lc(i,c,(function(i,c){var s;switch(fc(c,0)){case"$":return"$";case"&":return t;case"`":return pc(e,0,n);case"'":return pc(e,a);case"<":s=o[pc(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var l=sc(f/10);return 0===l?i:l<=u?void 0===r[l-1]?fc(c,1):r[l-1]+fc(c,1):i}s=r[f-1]}return void 0===s?"":s}))},kc=function(t,e){var n=t.exec;if(mc(n)){var r=hc(n,t,e);return null!==r&&gc(r),r}if("RegExp"===yc(t))return hc(bc,t,e);throw Sc("RegExp#exec called on incompatible receiver")},$c=ce("replace"),Fc=Math.max,Lc=Math.min,Bc=Ec([].concat),zc=Ec([].push),Uc=Ec("".indexOf),Hc=Ec("".slice),Kc="$0"==="a".replace(/./,"$0"),Yc=!!/./[$c]&&""===/./[$c]("a","$0"),qc=!_c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Oc("replace",(function(t,e,n){var r=Yc?"$":"$0";return[function(t,n){var r=Ac(this),o=Mc(t)?void 0:Dc(t,$c);return o?wc(o,t,r,n):wc(e,Tc(r),t,n)},function(t,o){var i=jc(this),a=Tc(t);if("string"==typeof o&&-1===Uc(o,r)&&-1===Uc(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=Ic(o);c||(o=Tc(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var p=kc(i,a);if(null===p)break;if(zc(l,p),!s)break;""===Tc(p[0])&&(i.lastIndex=Pc(a,Rc(i.lastIndex),f))}for(var d,v="",h=0,g=0;g<l.length;g++){for(var m=Tc((p=l[g])[0]),y=Fc(Lc(Nc(p.index),a.length),0),b=[],S=1;S<p.length;S++)zc(b,void 0===(d=p[S])?d:String(d));var x=p.groups;if(c){var w=Bc([m],b,y,a);void 0!==x&&zc(w,x);var E=Tc(xc(o,void 0,w))}else E=Cc(m,a,y,b,x,o);y>=h&&(v+=Hc(a,h,y)+E,h=y+m.length)}return v+Hc(a,h)}]}),!qc||!Kc||Yc);var Vc=F,Gc=qn,Wc=ce("match"),Zc=J,Xc=qt,Jc=rt,Qc=Oa,ts=RegExp.prototype,es=function(t){var e=t.flags;return void 0!==e||"flags"in ts||Xc(t,"flags")||!Jc(ts,t)?e:Zc(Qc,t)},ns=C.f,rs=nt,os=C,is=d,as=ce("species"),us=d,cs=h,ss=x,fs=D,ls=zn,ps=Ge,ds=Un.f,vs=rt,hs=function(t){var e;return Vc(t)&&(void 0!==(e=t[Wc])?!!e:"RegExp"==Gc(t))},gs=Zr,ms=es,ys=Ra,bs=function(t,e,n){n in t||ns(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Ss=Rn,xs=p,ws=qt,Es=dn.enforce,Os=function(t){var e=rs(t),n=os.f;is&&e&&!e[as]&&n(e,as,{configurable:!0,get:function(){return this}})},_s=ru,js=au,Is=ce("match"),Ms=cs.RegExp,Ns=Ms.prototype,Rs=cs.SyntaxError,Ts=ss(Ns.exec),As=ss("".charAt),Ps=ss("".replace),Ds=ss("".indexOf),Cs=ss("".slice),ks=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$s=/a/g,Fs=/a/g,Ls=new Ms($s)!==$s,Bs=ys.MISSED_STICKY,zs=ys.UNSUPPORTED_Y,Us=us&&(!Ls||Bs||_s||js||xs((function(){return Fs[Is]=!1,Ms($s)!=$s||Ms(Fs)==Fs||"/a/i"!=Ms($s,"i")})));if(fs("RegExp",Us)){for(var Hs=function(t,e){var n,r,o,i,a,u,c=vs(Ns,this),s=hs(t),f=void 0===e,l=[],p=t;if(!c&&s&&f&&t.constructor===Hs)return t;if((s||vs(Ns,t))&&(t=t.source,f&&(e=ms(p))),t=void 0===t?"":gs(t),e=void 0===e?"":gs(e),p=t,_s&&"dotAll"in $s&&(r=!!e&&Ds(e,"s")>-1)&&(e=Ps(e,/s/g,"")),n=e,Bs&&"sticky"in $s&&(o=!!e&&Ds(e,"y")>-1)&&zs&&(e=Ps(e,/y/g,"")),js&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,c=!1,s=0,f="";r<=n;r++){if("\\"===(e=As(t,r)))e+=As(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:Ts(ks,Cs(t,r+1))&&(r+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===f||ws(a,f))throw new Rs("Invalid capture group name");a[f]=!0,i[i.length]=[f,s],c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=ls(Ms(t,e),c?this:Ns,Hs),(r||o||l.length)&&(u=Es(a),r&&(u.dotAll=!0,u.raw=Hs(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=As(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+As(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==p)try{ps(a,"source",""===p?"(?:)":p)}catch(t){}return a},Ks=ds(Ms),Ys=0;Ks.length>Ys;)bs(Hs,Ms,Ks[Ys++]);Ns.constructor=Hs,Hs.prototype=Ns,Ss(cs,"RegExp",Hs,{constructor:!0})}Os("RegExp");var qs=Me.exports,Vs=C,Gs=d,Ws=Ra.MISSED_STICKY,Zs=qn,Xs=function(t,e,n){return n.get&&qs(n.get,e,{getter:!0}),n.set&&qs(n.set,e,{setter:!0}),Vs.f(t,e,n)},Js=dn.get,Qs=RegExp.prototype,tf=TypeError;Gs&&Ws&&Xs(Qs,"sticky",{configurable:!0,get:function(){if(this!==Qs){if("RegExp"===Zs(this))return!!Js(this).sticky;throw tf("Incompatible receiver, RegExp required")}}});var ef=De.PROPER,nf=Rn,rf=W,of=Zr,af=p,uf=es,cf=RegExp.prototype.toString,sf=af((function(){return"/a/b"!=cf.call({source:"a",flags:"b"})})),ff=ef&&"toString"!=cf.name;(sf||ff)&&nf(RegExp.prototype,"toString",(function(){var t=rf(this);return"/"+of(t.source)+"/"+of(uf(t))}),{unsafe:!0});var lf={name:"BaseCountDown",props:{time:{type:Number,default:60},extraCls:{type:String},isAlways:{type:Boolean,default:!1},autoStart:{type:Boolean,default:!0}},data:function(){return{timeKey:"count-down-".concat(ra())}},watch:{autoStart:function(t){t&&this.start()}},methods:{start:function(){this.$refs.countDownRef.start()},pause:function(){this.$refs.countDownRef.pause()},reset:function(){this.$refs.countDownRef.reset()}},render:function(t){var e=this,n={"base-count-down":!0};return this.extraCls&&c(n,this.extraCls,!0),t(qi,{class:n,props:{format:"ss",time:1e3*this.time,autoStart:!0},ref:"countDownRef",on:{finish:function(){e.isAlways&&(e.timeKey="count-down-".concat(ra())),e.$emit("finish")},change:function(t){var n=t.seconds,r=t.milliseconds;0===n&&0!==r||e.$emit("change",t.seconds)}},key:this.timeKey},[])}};lf.install=function(t,e){var n;if(n="按需加载独立组件:".concat(lf.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),s(e)&&!f(e))for(var r=0;r<e.length;r+=1)e[r].name!==lf.name&&t.use(e[r]);t.component(lf.name,lf)},exports.BaseCountDown=lf;