shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 33.4 kB
JavaScript
/*!
* shu-c-view v1.2.37
* (c) 2022-09-22
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),r=require("lodash/isEmpty"),e=require("lodash/cloneDeep");function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=n(t),i=n(r),c=n(e),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(t){return t&&t.Math==Math&&t},l=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof a&&a)||function(){return this}()||Function("return this")(),f={},s=function(t){try{return!!t()}catch(t){return!0}},p=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h={},v={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,d=y&&!v.call({1:2},1);h.f=d?function(t){var r=y(this,t);return!!r&&r.enumerable}:v;var g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m={}.toString,b=function(t){return m.call(t).slice(8,-1)},S=b,x="".split,E=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?x.call(t,""):Object(t)}:Object,O=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},w=E,A=O,j=function(t){return w(A(t))},T=function(t){return"object"==typeof t?null!==t:"function"==typeof t},I=T,P=function(t,r){if(!I(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!I(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!I(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!I(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,R=function(t,r){return _.call(t,r)},C=T,L=l.document,k=C(L)&&C(L.createElement),M=function(t){return k?L.createElement(t):{}},N=M,D=!p&&!s((function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a})),$=p,U=h,F=g,G=j,B=P,V=R,q=D,H=Object.getOwnPropertyDescriptor;f.f=$?H:function(t,r){if(t=G(t),r=B(r,!0),q)try{return H(t,r)}catch(t){}if(V(t,r))return F(!U.f.call(t,r),t[r])};var Y={},z=T,K=function(t){if(!z(t))throw TypeError(String(t)+" is not an object");return t},W=p,X=D,J=K,Q=P,Z=Object.defineProperty;Y.f=W?Z:function(t,r,e){if(J(t),r=Q(r,!0),J(e),X)try{return Z(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var tt=Y,rt=g,et=p?function(t,r,e){return tt.f(t,r,rt(1,e))}:function(t,r,e){return t[r]=e,t},nt={exports:{}},ot=l,it=et,ct=function(t,r){try{it(ot,t,r)}catch(e){ot[t]=r}return r},at=ct,ut=l["__core-js_shared__"]||at("__core-js_shared__",{}),lt=ut,ft=Function.toString;"function"!=typeof lt.inspectSource&&(lt.inspectSource=function(t){return ft.call(t)});var st=lt.inspectSource,pt=st,ht=l.WeakMap,vt="function"==typeof ht&&/native code/.test(pt(ht)),yt={exports:{}},dt=ut;(yt.exports=function(t,r){return dt[t]||(dt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var gt,mt,bt,St=0,xt=Math.random(),Et=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++St+xt).toString(36)},Ot=yt.exports,wt=Et,At=Ot("keys"),jt=function(t){return At[t]||(At[t]=wt(t))},Tt={},It=vt,Pt=T,_t=et,Rt=R,Ct=ut,Lt=jt,kt=Tt,Mt=l.WeakMap;if(It){var Nt=Ct.state||(Ct.state=new Mt),Dt=Nt.get,$t=Nt.has,Ut=Nt.set;gt=function(t,r){return r.facade=t,Ut.call(Nt,t,r),r},mt=function(t){return Dt.call(Nt,t)||{}},bt=function(t){return $t.call(Nt,t)}}else{var Ft=Lt("state");kt[Ft]=!0,gt=function(t,r){return r.facade=t,_t(t,Ft,r),r},mt=function(t){return Rt(t,Ft)?t[Ft]:{}},bt=function(t){return Rt(t,Ft)}}var Gt={set:gt,get:mt,has:bt,enforce:function(t){return bt(t)?mt(t):gt(t,{})},getterFor:function(t){return function(r){var e;if(!Pt(r)||(e=mt(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Bt=l,Vt=et,qt=R,Ht=ct,Yt=st,zt=Gt.get,Kt=Gt.enforce,Wt=String(String).split("String");(nt.exports=function(t,r,e,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof e&&("string"!=typeof r||qt(e,"name")||Vt(e,"name",r),(o=Kt(e)).source||(o.source=Wt.join("string"==typeof r?r:""))),t!==Bt?(i?!a&&t[r]&&(c=!0):delete t[r],c?t[r]=e:Vt(t,r,e)):c?t[r]=e:Ht(r,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&zt(this).source||Yt(this)}));var Xt=l,Jt=Xt,Qt=l,Zt=function(t){return"function"==typeof t?t:void 0},tr=function(t,r){return arguments.length<2?Zt(Jt[t])||Zt(Qt[t]):Jt[t]&&Jt[t][r]||Qt[t]&&Qt[t][r]},rr={},er=Math.ceil,nr=Math.floor,or=function(t){return isNaN(t=+t)?0:(t>0?nr:er)(t)},ir=or,cr=Math.min,ar=function(t){return t>0?cr(ir(t),9007199254740991):0},ur=or,lr=Math.max,fr=Math.min,sr=function(t,r){var e=ur(t);return e<0?lr(e+r,0):fr(e,r)},pr=j,hr=ar,vr=sr,yr=function(t){return function(r,e,n){var o,i=pr(r),c=hr(i.length),a=vr(n,c);if(t&&e!=e){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},dr={includes:yr(!0),indexOf:yr(!1)},gr=R,mr=j,br=dr.indexOf,Sr=Tt,xr=function(t,r){var e,n=mr(t),o=0,i=[];for(e in n)!gr(Sr,e)&&gr(n,e)&&i.push(e);for(;r.length>o;)gr(n,e=r[o++])&&(~br(i,e)||i.push(e));return i},Er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Or=xr,wr=Er.concat("length","prototype");rr.f=Object.getOwnPropertyNames||function(t){return Or(t,wr)};var Ar={};Ar.f=Object.getOwnPropertySymbols;var jr,Tr,Ir=rr,Pr=Ar,_r=K,Rr=tr("Reflect","ownKeys")||function(t){var r=Ir.f(_r(t)),e=Pr.f;return e?r.concat(e(t)):r},Cr=R,Lr=Rr,kr=f,Mr=Y,Nr=function(t,r){for(var e=Lr(r),n=Mr.f,o=kr.f,i=0;i<e.length;i++){var c=e[i];Cr(t,c)||n(t,c,o(r,c))}},Dr=s,$r=/#|\.prototype\./,Ur=function(t,r){var e=Gr[Fr(t)];return e==Vr||e!=Br&&("function"==typeof r?Dr(r):!!r)},Fr=Ur.normalize=function(t){return String(t).replace($r,".").toLowerCase()},Gr=Ur.data={},Br=Ur.NATIVE="N",Vr=Ur.POLYFILL="P",qr=Ur,Hr=l,Yr=f.f,zr=et,Kr=nt.exports,Wr=ct,Xr=Nr,Jr=qr,Qr=function(t,r){var e,n,o,i,c,a=t.target,u=t.global,l=t.stat;if(e=u?Hr:l?Hr[a]||Wr(a,{}):(Hr[a]||{}).prototype)for(n in r){if(i=r[n],o=t.noTargetGet?(c=Yr(e,n))&&c.value:e[n],!Jr(u?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Xr(i,o)}(t.sham||o&&o.sham)&&zr(i,"sham",!0),Kr(e,n,i,t)}},Zr=b,te=Array.isArray||function(t){return"Array"==Zr(t)},re=P,ee=Y,ne=g,oe=function(t,r,e){var n=re(r);n in t?ee.f(t,n,ne(0,e)):t[n]=e},ie="process"==b(l.process),ce=tr("navigator","userAgent")||"",ae=l.process,ue=ae&&ae.versions,le=ue&&ue.v8;le?Tr=(jr=le.split("."))[0]+jr[1]:ce&&(!(jr=ce.match(/Edge\/(\d+)/))||jr[1]>=74)&&(jr=ce.match(/Chrome\/(\d+)/))&&(Tr=jr[1]);var fe=Tr&&+Tr,se=ie,pe=fe,he=s,ve=!!Object.getOwnPropertySymbols&&!he((function(){return!Symbol.sham&&(se?38===pe:pe>37&&pe<41)})),ye=ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,de=l,ge=yt.exports,me=R,be=Et,Se=ve,xe=ye,Ee=ge("wks"),Oe=de.Symbol,we=xe?Oe:Oe&&Oe.withoutSetter||be,Ae=function(t){return me(Ee,t)&&(Se||"string"==typeof Ee[t])||(Se&&me(Oe,t)?Ee[t]=Oe[t]:Ee[t]=we("Symbol."+t)),Ee[t]},je=s,Te=fe,Ie=Ae("species"),Pe=function(t){return Te>=51||!je((function(){var r=[];return(r.constructor={})[Ie]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},_e=Qr,Re=T,Ce=te,Le=sr,ke=ar,Me=j,Ne=oe,De=Ae,$e=Pe("slice"),Ue=De("species"),Fe=[].slice,Ge=Math.max;_e({target:"Array",proto:!0,forced:!$e},{slice:function(t,r){var e,n,o,i=Me(this),c=ke(i.length),a=Le(t,c),u=Le(void 0===r?c:r,c);if(Ce(i)&&("function"!=typeof(e=i.constructor)||e!==Array&&!Ce(e.prototype)?Re(e)&&null===(e=e[Ue])&&(e=void 0):e=void 0,e===Array||void 0===e))return Fe.call(i,a,u);for(n=new(void 0===e?Array:e)(Ge(u-a,0)),o=0;a<u;a++,o++)a in i&&Ne(n,o,i[a]);return n.length=o,n}});var Be={};Be[Ae("toStringTag")]="z";var Ve="[object z]"===String(Be),qe=Ve,He=b,Ye=Ae("toStringTag"),ze="Arguments"==He(function(){return arguments}()),Ke=qe?He:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),Ye))?e:ze?He(r):"Object"==(n=He(r))&&"function"==typeof r.callee?"Arguments":n},We=Ke,Xe=Ve?{}.toString:function(){return"[object "+We(this)+"]"},Je=Ve,Qe=nt.exports,Ze=Xe;Je||Qe(Object.prototype,"toString",Ze,{unsafe:!0});var tn=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},rn=function(t,r,e){if(tn(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}},en=O,nn=function(t){return Object(en(t))},on=K,cn=K,an=function(t){var r=t.return;if(void 0!==r)return on(r.call(t)).value},un={},ln=un,fn=Ae("iterator"),sn=Array.prototype,pn=Ke,hn=un,vn=Ae("iterator"),yn=rn,dn=nn,gn=function(t,r,e,n){try{return n?r(cn(e)[0],e[1]):r(e)}catch(r){throw an(t),r}},mn=function(t){return void 0!==t&&(ln.Array===t||sn[fn]===t)},bn=ar,Sn=oe,xn=function(t){if(null!=t)return t[vn]||t["@@iterator"]||hn[pn(t)]},En=Ae("iterator"),On=!1;try{var wn=0,An={next:function(){return{done:!!wn++}},return:function(){On=!0}};An[En]=function(){return this},Array.from(An,(function(){throw 2}))}catch(t){}var jn=function(t){var r,e,n,o,i,c,a=dn(t),u="function"==typeof this?this:Array,l=arguments.length,f=l>1?arguments[1]:void 0,s=void 0!==f,p=xn(a),h=0;if(s&&(f=yn(f,l>2?arguments[2]:void 0,2)),null==p||u==Array&&mn(p))for(e=new u(r=bn(a.length));r>h;h++)c=s?f(a[h],h):a[h],Sn(e,h,c);else for(i=(o=p.call(a)).next,e=new u;!(n=i.call(o)).done;h++)c=s?gn(o,f,[n.value,h],!0):n.value,Sn(e,h,c);return e.length=h,e};Qr({target:"Array",stat:!0,forced:!function(t,r){if(!r&&!On)return!1;var e=!1;try{var n={};n[En]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}((function(t){Array.from(t)}))},{from:jn});var Tn,In,Pn,_n=or,Rn=O,Cn=function(t){return function(r,e){var n,o,i=String(Rn(r)),c=_n(e),a=i.length;return c<0||c>=a?t?"":void 0:(n=i.charCodeAt(c))<55296||n>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):n:t?i.slice(c,c+2):o-56320+(n-55296<<10)+65536}},Ln={codeAt:Cn(!1),charAt:Cn(!0)},kn=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mn=R,Nn=nn,Dn=kn,$n=jt("IE_PROTO"),Un=Object.prototype,Fn=Dn?Object.getPrototypeOf:function(t){return t=Nn(t),Mn(t,$n)?t[$n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Un:null},Gn=s,Bn=Fn,Vn=et,qn=R,Hn=Ae("iterator"),Yn=!1;[].keys&&("next"in(Pn=[].keys())?(In=Bn(Bn(Pn)))!==Object.prototype&&(Tn=In):Yn=!0),(null==Tn||Gn((function(){var t={};return Tn[Hn].call(t)!==t})))&&(Tn={}),qn(Tn,Hn)||Vn(Tn,Hn,(function(){return this}));var zn,Kn={IteratorPrototype:Tn,BUGGY_SAFARI_ITERATORS:Yn},Wn=xr,Xn=Er,Jn=Object.keys||function(t){return Wn(t,Xn)},Qn=Y,Zn=K,to=Jn,ro=p?Object.defineProperties:function(t,r){Zn(t);for(var e,n=to(r),o=n.length,i=0;o>i;)Qn.f(t,e=n[i++],r[e]);return t},eo=tr("document","documentElement"),no=K,oo=ro,io=Er,co=Tt,ao=eo,uo=M,lo=jt("IE_PROTO"),fo=function(){},so=function(t){return"<script>"+t+"<\/script>"},po=function(){try{zn=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,r;po=zn?function(t){t.write(so("")),t.close();var r=t.parentWindow.Object;return t=null,r}(zn):((r=uo("iframe")).style.display="none",ao.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(so("document.F=Object")),t.close(),t.F);for(var e=io.length;e--;)delete po.prototype[io[e]];return po()};co[lo]=!0;var ho=Object.create||function(t,r){var e;return null!==t?(fo.prototype=no(t),e=new fo,fo.prototype=null,e[lo]=t):e=po(),void 0===r?e:oo(e,r)},vo=Y.f,yo=R,go=Ae("toStringTag"),mo=function(t,r,e){t&&!yo(t=e?t:t.prototype,go)&&vo(t,go,{configurable:!0,value:r})},bo=Kn.IteratorPrototype,So=ho,xo=g,Eo=mo,Oo=un,wo=function(){return this},Ao=T,jo=K,To=function(t){if(!Ao(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Io=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return jo(e),To(n),r?t.call(e,n):e.__proto__=n,e}}():void 0),Po=Qr,_o=function(t,r,e){var n=r+" Iterator";return t.prototype=So(bo,{next:xo(1,e)}),Eo(t,n,!1),Oo[n]=wo,t},Ro=Fn,Co=Io,Lo=mo,ko=et,Mo=nt.exports,No=un,Do=Kn.IteratorPrototype,$o=Kn.BUGGY_SAFARI_ITERATORS,Uo=Ae("iterator"),Fo=function(){return this},Go=function(t,r,e,n,o,i,c){_o(e,r,n);var a,u,l,f=function(t){if(t===o&&y)return y;if(!$o&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},s=r+" Iterator",p=!1,h=t.prototype,v=h[Uo]||h["@@iterator"]||o&&h[o],y=!$o&&v||f(o),d="Array"==r&&h.entries||v;if(d&&(a=Ro(d.call(new t)),Do!==Object.prototype&&a.next&&(Ro(a)!==Do&&(Co?Co(a,Do):"function"!=typeof a[Uo]&&ko(a,Uo,Fo)),Lo(a,s,!0))),"values"==o&&v&&"values"!==v.name&&(p=!0,y=function(){return v.call(this)}),h[Uo]!==y&&ko(h,Uo,y),No[r]=y,o)if(u={values:f("values"),keys:i?y:f("keys"),entries:f("entries")},c)for(l in u)($o||p||!(l in h))&&Mo(h,l,u[l]);else Po({target:r,proto:!0,forced:$o||p},u);return u},Bo=Ln.charAt,Vo=Gt,qo=Go,Ho=Vo.set,Yo=Vo.getterFor("String Iterator");qo(String,"String",(function(t){Ho(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=Yo(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=Bo(e,n),r.index+=t.length,{value:t,done:!1})}));var zo={},Ko=j,Wo=rr.f,Xo={}.toString,Jo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zo.f=function(t){return Jo&&"[object Window]"==Xo.call(t)?function(t){try{return Wo(t)}catch(t){return Jo.slice()}}(t):Wo(Ko(t))};var Qo={},Zo=Ae;Qo.f=Zo;var ti=Xt,ri=R,ei=Qo,ni=Y.f,oi=function(t){var r=ti.Symbol||(ti.Symbol={});ri(r,t)||ni(r,t,{value:ei.f(t)})},ii=T,ci=te,ai=Ae("species"),ui=rn,li=E,fi=nn,si=ar,pi=function(t,r){var e;return ci(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!ci(e.prototype)?ii(e)&&null===(e=e[ai])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)},hi=[].push,vi=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,l,f,s){for(var p,h,v=fi(u),y=li(v),d=ui(l,f,3),g=si(y.length),m=0,b=s||pi,S=r?b(u,g):e||c?b(u,0):void 0;g>m;m++)if((a||m in y)&&(h=d(p=y[m],m,v),t))if(r)S[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:hi.call(S,p)}else switch(t){case 4:return!1;case 7:hi.call(S,p)}return i?-1:n||o?o:S}},yi={forEach:vi(0),map:vi(1),filter:vi(2),some:vi(3),every:vi(4),find:vi(5),findIndex:vi(6),filterOut:vi(7)},di=Qr,gi=l,mi=tr,bi=p,Si=ve,xi=ye,Ei=s,Oi=R,wi=te,Ai=T,ji=K,Ti=nn,Ii=j,Pi=P,_i=g,Ri=ho,Ci=Jn,Li=rr,ki=zo,Mi=Ar,Ni=f,Di=Y,$i=h,Ui=et,Fi=nt.exports,Gi=yt.exports,Bi=Tt,Vi=Et,qi=Ae,Hi=Qo,Yi=oi,zi=mo,Ki=Gt,Wi=yi.forEach,Xi=jt("hidden"),Ji=qi("toPrimitive"),Qi=Ki.set,Zi=Ki.getterFor("Symbol"),tc=Object.prototype,rc=gi.Symbol,ec=mi("JSON","stringify"),nc=Ni.f,oc=Di.f,ic=ki.f,cc=$i.f,ac=Gi("symbols"),uc=Gi("op-symbols"),lc=Gi("string-to-symbol-registry"),fc=Gi("symbol-to-string-registry"),sc=Gi("wks"),pc=gi.QObject,hc=!pc||!pc.prototype||!pc.prototype.findChild,vc=bi&&Ei((function(){return 7!=Ri(oc({},"a",{get:function(){return oc(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=nc(tc,r);n&&delete tc[r],oc(t,r,e),n&&t!==tc&&oc(tc,r,n)}:oc,yc=function(t,r){var e=ac[t]=Ri(rc.prototype);return Qi(e,{type:"Symbol",tag:t,description:r}),bi||(e.description=r),e},dc=xi?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof rc},gc=function(t,r,e){t===tc&&gc(uc,r,e),ji(t);var n=Pi(r,!0);return ji(e),Oi(ac,n)?(e.enumerable?(Oi(t,Xi)&&t[Xi][n]&&(t[Xi][n]=!1),e=Ri(e,{enumerable:_i(0,!1)})):(Oi(t,Xi)||oc(t,Xi,_i(1,{})),t[Xi][n]=!0),vc(t,n,e)):oc(t,n,e)},mc=function(t,r){ji(t);var e=Ii(r),n=Ci(e).concat(Ec(e));return Wi(n,(function(r){bi&&!bc.call(e,r)||gc(t,r,e[r])})),t},bc=function(t){var r=Pi(t,!0),e=cc.call(this,r);return!(this===tc&&Oi(ac,r)&&!Oi(uc,r))&&(!(e||!Oi(this,r)||!Oi(ac,r)||Oi(this,Xi)&&this[Xi][r])||e)},Sc=function(t,r){var e=Ii(t),n=Pi(r,!0);if(e!==tc||!Oi(ac,n)||Oi(uc,n)){var o=nc(e,n);return!o||!Oi(ac,n)||Oi(e,Xi)&&e[Xi][n]||(o.enumerable=!0),o}},xc=function(t){var r=ic(Ii(t)),e=[];return Wi(r,(function(t){Oi(ac,t)||Oi(Bi,t)||e.push(t)})),e},Ec=function(t){var r=t===tc,e=ic(r?uc:Ii(t)),n=[];return Wi(e,(function(t){!Oi(ac,t)||r&&!Oi(tc,t)||n.push(ac[t])})),n};(Si||(Fi((rc=function(){if(this instanceof rc)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=Vi(t),e=function(t){this===tc&&e.call(uc,t),Oi(this,Xi)&&Oi(this[Xi],r)&&(this[Xi][r]=!1),vc(this,r,_i(1,t))};return bi&&hc&&vc(tc,r,{configurable:!0,set:e}),yc(r,t)}).prototype,"toString",(function(){return Zi(this).tag})),Fi(rc,"withoutSetter",(function(t){return yc(Vi(t),t)})),$i.f=bc,Di.f=gc,Ni.f=Sc,Li.f=ki.f=xc,Mi.f=Ec,Hi.f=function(t){return yc(qi(t),t)},bi&&(oc(rc.prototype,"description",{configurable:!0,get:function(){return Zi(this).description}}),Fi(tc,"propertyIsEnumerable",bc,{unsafe:!0}))),di({global:!0,wrap:!0,forced:!Si,sham:!Si},{Symbol:rc}),Wi(Ci(sc),(function(t){Yi(t)})),di({target:"Symbol",stat:!0,forced:!Si},{for:function(t){var r=String(t);if(Oi(lc,r))return lc[r];var e=rc(r);return lc[r]=e,fc[e]=r,e},keyFor:function(t){if(!dc(t))throw TypeError(t+" is not a symbol");if(Oi(fc,t))return fc[t]},useSetter:function(){hc=!0},useSimple:function(){hc=!1}}),di({target:"Object",stat:!0,forced:!Si,sham:!bi},{create:function(t,r){return void 0===r?Ri(t):mc(Ri(t),r)},defineProperty:gc,defineProperties:mc,getOwnPropertyDescriptor:Sc}),di({target:"Object",stat:!0,forced:!Si},{getOwnPropertyNames:xc,getOwnPropertySymbols:Ec}),di({target:"Object",stat:!0,forced:Ei((function(){Mi.f(1)}))},{getOwnPropertySymbols:function(t){return Mi.f(Ti(t))}}),ec)&&di({target:"JSON",stat:!0,forced:!Si||Ei((function(){var t=rc();return"[null]"!=ec([t])||"{}"!=ec({a:t})||"{}"!=ec(Object(t))}))},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(Ai(r)||void 0!==t)&&!dc(t))return wi(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!dc(r))return r}),o[1]=r,ec.apply(null,o)}});rc.prototype[Ji]||Ui(rc.prototype,Ji,rc.prototype.valueOf),zi(rc,"Symbol"),Bi[Xi]=!0;var Oc=Qr,wc=p,Ac=l,jc=R,Tc=T,Ic=Y.f,Pc=Nr,_c=Ac.Symbol;if(wc&&"function"==typeof _c&&(!("description"in _c.prototype)||void 0!==_c().description)){var Rc={},Cc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),r=this instanceof Cc?new _c(t):void 0===t?_c():_c(t);return""===t&&(Rc[r]=!0),r};Pc(Cc,_c);var Lc=Cc.prototype=_c.prototype;Lc.constructor=Cc;var kc=Lc.toString,Mc="Symbol(test)"==String(_c("test")),Nc=/^Symbol\((.*)\)[^)]+$/;Ic(Lc,"description",{configurable:!0,get:function(){var t=Tc(this)?this.valueOf():this,r=kc.call(t);if(jc(Rc,t))return"";var e=Mc?r.slice(7,-1):r.replace(Nc,"$1");return""===e?void 0:e}}),Oc({global:!0,forced:!0},{Symbol:Cc})}oi("iterator");var Dc=ho,$c=Y,Uc=Ae("unscopables"),Fc=Array.prototype;null==Fc[Uc]&&$c.f(Fc,Uc,{configurable:!0,value:Dc(null)});var Gc=j,Bc=function(t){Fc[Uc][t]=!0},Vc=un,qc=Gt,Hc=Go,Yc=qc.set,zc=qc.getterFor("Array Iterator"),Kc=Hc(Array,"Array",(function(t,r){Yc(this,{type:"Array Iterator",target:Gc(t),index:0,kind:r})}),(function(){var t=zc(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values");Vc.Arguments=Vc.Array,Bc("keys"),Bc("values"),Bc("entries");var Wc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xc=l,Jc=Wc,Qc=Kc,Zc=et,ta=Ae,ra=ta("iterator"),ea=ta("toStringTag"),na=Qc.values;for(var oa in Jc){var ia=Xc[oa],ca=ia&&ia.prototype;if(ca){if(ca[ra]!==na)try{Zc(ca,ra,na)}catch(t){ca[ra]=na}if(ca[ea]||Zc(ca,ea,oa),Jc[oa])for(var aa in Qc)if(ca[aa]!==Qc[aa])try{Zc(ca,aa,Qc[aa])}catch(t){ca[aa]=Qc[aa]}}}function ua(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var la=yi.map;Qr({target:"Array",proto:!0,forced:!Pe("map")},{map:function(t){return la(this,t,arguments.length>1?arguments[1]:void 0)}});var fa=p,sa=Y.f,pa=Function.prototype,ha=pa.toString,va=/^\s*function ([^ (]*)/;function ya(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function da(t){return function(t){if(Array.isArray(t))return ya(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return ya(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ya(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}fa&&!("name"in pa)&&sa(pa,"name",{configurable:!0,get:function(){try{return ha.call(this).match(va)[1]}catch(t){return""}}});var ga=s,ma=yi.forEach,ba=l,Sa=Wc,xa=function(t,r){var e=[][t];return!!e&&ga((function(){e.call(null,r||function(){throw 1},1)}))}("forEach")?[].forEach:function(t){return ma(this,t,arguments.length>1?arguments[1]:void 0)},Ea=et;for(var Oa in Sa){var wa=ba[Oa],Aa=wa&&wa.prototype;if(Aa&&Aa.forEach!==xa)try{Ea(Aa,"forEach",xa)}catch(t){Aa.forEach=xa}}var ja=function t(r,e,n){var o=[r];return r[n]&&r[n].length&&r[n].forEach((function(e){return o.push.apply(o,da(t(e,r,n)))})),o},Ta=K,Ia=function(){var t=Ta(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},Pa={},_a=s;function Ra(t,r){return RegExp(t,r)}Pa.UNSUPPORTED_Y=_a((function(){var t=Ra("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Pa.BROKEN_CARET=_a((function(){var t=Ra("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var Ca=Ia,La=Pa,ka=RegExp.prototype.exec,Ma=String.prototype.replace,Na=ka,Da=function(){var t=/a/,r=/b*/g;return ka.call(t,"a"),ka.call(r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),$a=La.UNSUPPORTED_Y||La.BROKEN_CARET,Ua=void 0!==/()??/.exec("")[1];(Da||Ua||$a)&&(Na=function(t){var r,e,n,o,i=this,c=$a&&i.sticky,a=Ca.call(i),u=i.source,l=0,f=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",f=" "+f,l++),e=new RegExp("^(?:"+u+")",a)),Ua&&(e=new RegExp("^"+u+"$(?!\\s)",a)),Da&&(r=i.lastIndex),n=ka.call(c?e:i,f),c?n?(n.input=n.input.slice(l),n[0]=n[0].slice(l),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Da&&n&&(i.lastIndex=i.global?n.index+n[0].length:r),Ua&&n&&n.length>1&&Ma.call(n[0],e,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Fa=Na;Qr({target:"RegExp",proto:!0,forced:/./.exec!==Fa},{exec:Fa});var Ga=nt.exports,Ba=s,Va=Ae,qa=Fa,Ha=et,Ya=Va("species"),za=!Ba((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ka="$0"==="a".replace(/./,"$0"),Wa=Va("replace"),Xa=!!/./[Wa]&&""===/./[Wa]("a","$0"),Ja=!Ba((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),Qa=Ln.charAt,Za=nn,tu=Math.floor,ru="".replace,eu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nu=/\$([$&'`]|\d{1,2})/g,ou=b,iu=Fa,cu=function(t,r,e,n){var o=Va(t),i=!Ba((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!Ba((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Ya]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||"replace"===t&&(!za||!Ka||Xa)||"split"===t&&!Ja){var a=/./[o],u=e(o,""[t],(function(t,r,e,n,o){return r.exec===qa?i&&!o?{done:!0,value:a.call(r,e,n)}:{done:!0,value:t.call(e,r,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Ka,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xa}),l=u[0],f=u[1];Ga(String.prototype,t,l),Ga(RegExp.prototype,o,2==r?function(t,r){return f.call(t,this,r)}:function(t){return f.call(t,this)})}n&&Ha(RegExp.prototype[o],"sham",!0)},au=K,uu=ar,lu=or,fu=O,su=function(t,r,e){return r+(e?Qa(t,r).length:1)},pu=function(t,r,e,n,o,i){var c=e+t.length,a=n.length,u=nu;return void 0!==o&&(o=Za(o),u=eu),ru.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,e);case"'":return r.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var f=+u;if(0===f)return i;if(f>a){var s=tu(f/10);return 0===s?i:s<=a?void 0===n[s-1]?u.charAt(1):n[s-1]+u.charAt(1):i}l=n[f-1]}return void 0===l?"":l}))},hu=function(t,r){var e=t.exec;if("function"==typeof e){var n=e.call(t,r);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==ou(t))throw TypeError("RegExp#exec called on incompatible receiver");return iu.call(t,r)},vu=Math.max,yu=Math.min;cu("replace",2,(function(t,r,e,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(e,n){var o=fu(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(c)){var a=e(r,t,this,n);if(a.done)return a.value}var u=au(t),l=String(this),f="function"==typeof n;f||(n=String(n));var s=u.global;if(s){var p=u.unicode;u.lastIndex=0}for(var h=[];;){var v=hu(u,l);if(null===v)break;if(h.push(v),!s)break;""===String(v[0])&&(u.lastIndex=su(l,uu(u.lastIndex),p))}for(var y,d="",g=0,m=0;m<h.length;m++){v=h[m];for(var b=String(v[0]),S=vu(yu(lu(v.index),l.length),0),x=[],E=1;E<v.length;E++)x.push(void 0===(y=v[E])?y:String(y));var O=v.groups;if(f){var w=[b].concat(x,S,l);void 0!==O&&w.push(O);var A=String(n.apply(void 0,w))}else A=pu(b,l,S,x,O,n);S>=g&&(d+=l.slice(g,S)+A,g=S+b.length)}return d+l.slice(g)}]}));var du=T,gu=Io,mu=T,bu=b,Su=Ae("match"),xu=tr,Eu=Y,Ou=p,wu=Ae("species"),Au=p,ju=l,Tu=qr,Iu=function(t,r,e){var n,o;return gu&&"function"==typeof(n=r.constructor)&&n!==e&&du(o=n.prototype)&&o!==e.prototype&&gu(t,o),t},Pu=Y.f,_u=rr.f,Ru=function(t){var r;return mu(t)&&(void 0!==(r=t[Su])?!!r:"RegExp"==bu(t))},Cu=Ia,Lu=Pa,ku=nt.exports,Mu=s,Nu=Gt.set,Du=function(t){var r=xu(t),e=Eu.f;Ou&&r&&!r[wu]&&e(r,wu,{configurable:!0,get:function(){return this}})},$u=Ae("match"),Uu=ju.RegExp,Fu=Uu.prototype,Gu=/a/g,Bu=/a/g,Vu=new Uu(Gu)!==Gu,qu=Lu.UNSUPPORTED_Y;if(Au&&Tu("RegExp",!Vu||qu||Mu((function(){return Bu[$u]=!1,Uu(Gu)!=Gu||Uu(Bu)==Bu||"/a/i"!=Uu(Gu,"i")})))){for(var Hu=function(t,r){var e,n=this instanceof Hu,o=Ru(t),i=void 0===r;if(!n&&o&&t.constructor===Hu&&i)return t;Vu?o&&!i&&(t=t.source):t instanceof Hu&&(i&&(r=Cu.call(t)),t=t.source),qu&&(e=!!r&&r.indexOf("y")>-1)&&(r=r.replace(/y/g,""));var c=Iu(Vu?new Uu(t,r):Uu(t,r),n?this:Fu,Hu);return qu&&e&&Nu(c,{sticky:e}),c},Yu=function(t){t in Hu||Pu(Hu,t,{configurable:!0,get:function(){return Uu[t]},set:function(r){Uu[t]=r}})},zu=_u(Uu),Ku=0;zu.length>Ku;)Yu(zu[Ku++]);Fu.constructor=Hu,Hu.prototype=Fu,ku(ju,"RegExp",Hu)}Du("RegExp");var Wu=nt.exports,Xu=K,Ju=s,Qu=Ia,Zu=RegExp.prototype,tl=Zu.toString,rl=Ju((function(){return"/a/b"!=tl.call({source:"a",flags:"b"})})),el="toString"!=tl.name;(rl||el)&&Wu(RegExp.prototype,"toString",(function(){var t=Xu(this),r=String(t.source),e=t.flags;return"/"+r+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in Zu)?Qu.call(t):e)}),{unsafe:!0});function nl(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return ol(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ol(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==e.return||e.return()}finally{if(a)throw i}}}}function ol(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var il={name:"BaseTreeAnchor",props:{list:{type:Array,require:!0,default:function(){return[]}},ctCls:{type:String},title:{type:String,default:""},props:{type:Object,default:function(){return{id:"id",name:"name",children:"children",label:"label"}}},containerId:{type:String,default:""},treeItemClass:{type:String,default:""}},watch:{list:{handler:function(t,r){t&&(this.treeData=c(this.list))},deep:!0,immediate:!0},activeAnchor:{handler:function(t,r){t!==r&&""!==t&&this.$emit("activeAnchor",t)},immediate:!0}},computed:{planHeight:function(){var t=30*this.treeMap.length;return"height:".concat(t,"px")},activeTop:function(){var t=30*this.activeIndex+4;return"".concat(t,"px")},treeMap:function(){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";if(t instanceof Array){var e=[];return t.forEach((function(n){e.push.apply(e,da(ja(n,t,r)))})),e}}(this.list,this.props.children)}},data:function(){return{treeData:[],activeIndex:0,activeAnchor:""}},created:function(){this.treeData[0]&&(this.treeData[0].active=!0,this.activeAnchor=this.treeData[0][this.props.id]),window.addEventListener("scroll",this.onScroll,!0)},destroyed:function(){window.removeEventListener("scroll",this.onScroll,!0)},methods:{onScroll:function(t){for(var r=document.querySelectorAll(".".concat(this.treeItemClass)),e=r.length-1;e>=0;e--){var n=t.target.scrollTop>=r[e].offsetTop-r[0].offsetTop;if(n||0===n){this.activeAnchor=this.judgeScrollBottom()?this.treeMap[this.treeMap.length-1][this.props.id]:this.treeMap[e][this.props.id],this.getCurrentIndex(this.activeAnchor),this.setCurrentNode(this.activeAnchor,this.treeData);break}}},judgeScrollBottom:function(){var t=document.querySelector("#"+this.containerId);if(t){var r=t.scrollTop,e=t.clientHeight,n=t.scrollHeight;return Math.ceil(r)+e>=n}},goAnchor:function(t,r,e){this.getCurrentIndex(t),this.$nextTick((function(){document.querySelector("#".concat(r)).scrollIntoView({behavior:"smooth",block:"start"})})),this.setCurrentNode(t,this.treeData),this.activeAnchor=t},setCurrentNode:function(t,r){var e,n=nl(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;o.active=!1,t===o.id&&(o.active=!0),o.children&&o.children.length&&this.setCurrentNode(t,o.children)}}catch(t){n.e(t)}finally{n.f()}},getCurrentIndex:function(t){var r=this;this.treeMap.map((function(e,n){e.id===t&&(r.activeIndex=n)}))},renderChildrenItem:function(t){var r=this;if(!t||!t.length)return!1;var e=this.$createElement;return e("ul",{class:{"tree-List-sub":!0}},[t.map((function(t){return e("li",{},[e("p",{class:{"section-link":!0,"section-link-active":t.active},on:{click:function(e){r.goAnchor(t[r.props.id],t[r.props.name],t),e.stopPropagation()}}},[t[r.props.label],t[r.props.children]?r.renderChildrenItem(t[r.props.children]):""])])}))])}},render:function(t){var r,e=this;return t("div",{class:(r={},ua(r,this.ctCls,this.ctCls),ua(r,"tree-anchor",!0),r)},[this.title.length>0?t("div",{class:{"tree-anchor-title":!0}},[this.title]):null,t("div",{class:{"tree-anchor-list":!0}},[t("div",{class:{"tree-anchor-list-plan":!0},style:{top:this.planHeight}},[t("div",{class:{"active-content":!0},style:{top:this.activeTop}},[])]),t("ul",{class:{"tree-anchor-list-root":!0}},[this.treeData.map((function(r){return t("li",{},[t("p",{class:{"section-link":!0,"first-selection-link":!0,"section-link-active":r.active},attrs:{href:"#"+r[e.props.name]},on:{click:function(t){e.goAnchor(r[e.props.id],r[e.props.name],r),t.stopPropagation()}}},[r[e.props.label]]),r[e.props.children]?e.renderChildrenItem(r[e.props.children]):""])}))])])])}};il.install=function(t,r){var e;if(e="按需加载独立组件:"+il.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(e),o(r)&&!i(r))for(var n=0;n<r.length;n++)r[n].name!==il.name&&t.use(r[n]);t.component(il.name,il)},exports.BaseTreeAnchor=il;