UNPKG

vue-devui

Version:

DevUI components based on Vite and Vue3

8 lines 172 kB
(function(ot,l){typeof exports=="object"&&typeof module!="undefined"?l(exports,require("vue"),require("clipboard"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","clipboard","@floating-ui/dom"],l):(ot=typeof globalThis!="undefined"?globalThis:ot||self,l(ot.index={},ot.Vue,null,ot.dom))})(this,function(ot,l,PC,Sn){"use strict";const ci="use-tree-token",pa="tree-instance",va={check:{type:[Boolean,String],default:!1},dragdrop:{type:[Boolean,Object],default:!1},operate:{type:[Boolean,String,Array],default:!1}},ma={data:{type:Object,default:[]},...va,height:{type:[Number,String]}},ya={data:{type:Object,default:{}},...va};function yf(i=l.ref({checkStrategy:"both"})){return function(r,u,s){const{setNodeValue:d,getNode:g,getChildren:p,getParent:m}=u,C=x=>{d(x,"checked",!0),s.emit("check-change",x)},$=(x,S,_)=>{x.disableCheck||d(x,S,_)},w=x=>{d(x,"checked",!1),s.emit("check-change",x)},O=(x,S)=>{if(!x.parentId)return;const _=m(x);if(!_)return;let F=S;S?_.checked||$(_,"checked",!0):p(_).filter(D=>D.checked&&D.id!==x.id).length===0?$(_,"checked",!1):($(_,"checked",!0),F=!0),_.parentId&&O(_,F)};return{checkNode:C,uncheckNode:w,toggleCheckNode:x=>{const S=g(x).checked;S?(d(x,"checked",!1),s.emit("check-change",x),["downward","both"].includes(i.value.checkStrategy)&&p(x).forEach(_=>$(_,"checked",!1))):(d(x,"checked",!0),s.emit("check-change",x),["downward","both"].includes(i.value.checkStrategy)&&p(x).forEach(_=>$(_,"checked",!0))),["upward","both"].includes(i.value.checkStrategy)&&O(x,!S)},getCheckedNodes:()=>r.value.filter(x=>x.checked)}}}function _f(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const i=document.documentElement.scrollTop,o=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${i}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{o?document.documentElement.setAttribute("style",o):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=i}}}function di(i=8){const o="abcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let u=0;u<i;u++)r+=o[parseInt((Math.random()*o.length).toString())];return r}function _a(i,o){const r=Object.assign({},i);for(let u=0;u<o.length;u+=1){const s=o[u];delete r[s]}return r}function or(i,o,r){let u=i;return o&&(u+=`__${o}`),r&&(u+=`--${r}`),u}function mt(i,o=!1){const r=o?`.devui-${i}`:`devui-${i}`;return{b:()=>or(r),e:p=>p?or(r,p):"",m:p=>p?or(r,"",p):"",em:(p,m)=>p&&m?or(r,p,m):""}}let hi=[];function wa(){return{setInitSelectedNode:u=>{hi.push(u)},getInitSelectedNodes:()=>hi,clearInitSelectedNodes:()=>{hi=[]}}}const{setInitSelectedNode:wf}=wa();function ar(i,o="children",r=0,u=[]){return r++,i.reduce((s,d,g)=>{var C,$,w;const p=Object.assign({},d);if(p.id===void 0&&(p.id=di(),p.idType="random"),p.selected&&wf(p),p.level=r,p.parentChildNodeCount=i.length,p.currentIndex=g,p.childNodeCount=((C=p.children)==null?void 0:C.length)||0,u.length>0&&(($=u[u.length-1])==null?void 0:$.level)>=r)for(;((w=u[u.length-1])==null?void 0:w.level)>=r;)u.pop();u.push(p);const m=u[u.length-2];return m&&(p.parentId=m.id),p[o]?s.concat(_a(p,"children"),ar(p[o],o,r,u)):s.concat({...p,isLeaf:p.isLeaf!==!1})},[])}const ba={expanded:!1,recursive:!0};function bf(){const i=new Map;return function(r){const u=E=>{var I;return(I=r.value.find(x=>x.id===E.id))==null?void 0:I.level},s=(E,I=ba)=>{if(E.isLeaf)return[];let x=E.id||"";if(I.expanded&&(x+="_expanded"),I.recursive&&(x+="_recursive"),E.id&&i.has(x)){const D=i.get(E.id);if(D)return D}const S=()=>l.computed(()=>{let D=[];const U=[];for(let W=0,re=r==null?void 0:r.value.length;W<re;W++){const oe=r==null?void 0:r.value[W];D.map(Se=>Se.id).includes(oe.id)||(oe.expanded!==!0&&!oe.isLeaf&&(D=s(oe)),U.push(oe))}return U}),_=[],F={...ba,...I},T=F.expanded?S():r,B=T.value.findIndex(D=>D.id===E.id);for(let D=B+1;D<T.value.length&&u(E)<T.value[D].level;D++)(F.recursive&&!T.value[D].isHide||u(E)===T.value[D].level-1&&!T.value[D].isHide)&&_.push(T.value[D]);return E.id&&i.set(x,_),_},d=()=>{i.clear()},g=E=>r.value.find(I=>I.id===E.parentId),p=()=>l.computed(()=>{let E=[];const I=[];for(let x=0,S=r==null?void 0:r.value.length;x<S;x++){const _=r==null?void 0:r.value[x];E.map(F=>F.id).includes(_.id)||_.isHide||(_.expanded!==!0&&(E=s(_)),I.push(_))}return I}),m=E=>E?r.value.findIndex(I=>I.id===E.id):-1,C=E=>r.value.find(I=>I.id===E.id),$=(E,I,x)=>{d(),m(E)!==-1&&(r.value[m(E)][I]=x)},w=E=>{d(),r.value=ar(E)},O=()=>r.value;return l.onUnmounted(()=>{d()}),{getLevel:u,getChildren:s,clearNodeMap:d,getParent:g,getExpendedTree:p,getIndex:m,getNode:C,setNodeValue:$,setTree:w,getTree:O}}}var yt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xf(){this.__data__=[],this.size=0}var Tf=xf;function Af(i,o){return i===o||i!==i&&o!==o}var xa=Af,Cf=xa;function Sf(i,o){for(var r=i.length;r--;)if(Cf(i[r][0],o))return r;return-1}var ur=Sf,Ef=ur,If=Array.prototype,Of=If.splice;function Nf(i){var o=this.__data__,r=Ef(o,i);if(r<0)return!1;var u=o.length-1;return r==u?o.pop():Of.call(o,r,1),--this.size,!0}var $f=Nf,Ff=ur;function Lf(i){var o=this.__data__,r=Ff(o,i);return r<0?void 0:o[r][1]}var Pf=Lf,Rf=ur;function Mf(i){return Rf(this.__data__,i)>-1}var Df=Mf,Bf=ur;function Vf(i,o){var r=this.__data__,u=Bf(r,i);return u<0?(++this.size,r.push([i,o])):r[u][1]=o,this}var Uf=Vf,qf=Tf,Hf=$f,Wf=Pf,jf=Df,zf=Uf;function on(i){var o=-1,r=i==null?0:i.length;for(this.clear();++o<r;){var u=i[o];this.set(u[0],u[1])}}on.prototype.clear=qf,on.prototype.delete=Hf,on.prototype.get=Wf,on.prototype.has=jf,on.prototype.set=zf;var sr=on,kf=sr;function Gf(){this.__data__=new kf,this.size=0}var Kf=Gf;function Yf(i){var o=this.__data__,r=o.delete(i);return this.size=o.size,r}var Zf=Yf;function Jf(i){return this.__data__.get(i)}var Xf=Jf;function Qf(i){return this.__data__.has(i)}var ec=Qf,tc=typeof yt=="object"&&yt&&yt.Object===Object&&yt,Ta=tc,nc=Ta,rc=typeof self=="object"&&self&&self.Object===Object&&self,ic=nc||rc||Function("return this")(),dt=ic,oc=dt,ac=oc.Symbol,gi=ac,Aa=gi,Ca=Object.prototype,uc=Ca.hasOwnProperty,sc=Ca.toString,En=Aa?Aa.toStringTag:void 0;function lc(i){var o=uc.call(i,En),r=i[En];try{i[En]=void 0;var u=!0}catch{}var s=sc.call(i);return u&&(o?i[En]=r:delete i[En]),s}var fc=lc,cc=Object.prototype,dc=cc.toString;function hc(i){return dc.call(i)}var gc=hc,Sa=gi,pc=fc,vc=gc,mc="[object Null]",yc="[object Undefined]",Ea=Sa?Sa.toStringTag:void 0;function _c(i){return i==null?i===void 0?yc:mc:Ea&&Ea in Object(i)?pc(i):vc(i)}var lr=_c;function wc(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}var In=wc,bc=lr,xc=In,Tc="[object AsyncFunction]",Ac="[object Function]",Cc="[object GeneratorFunction]",Sc="[object Proxy]";function Ec(i){if(!xc(i))return!1;var o=bc(i);return o==Ac||o==Cc||o==Tc||o==Sc}var Ia=Ec,Ic=dt,Oc=Ic["__core-js_shared__"],Nc=Oc,pi=Nc,Oa=function(){var i=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function $c(i){return!!Oa&&Oa in i}var Fc=$c,Lc=Function.prototype,Pc=Lc.toString;function Rc(i){if(i!=null){try{return Pc.call(i)}catch{}try{return i+""}catch{}}return""}var Na=Rc,Mc=Ia,Dc=Fc,Bc=In,Vc=Na,Uc=/[\\^$.*+?()[\]{}|]/g,qc=/^\[object .+?Constructor\]$/,Hc=Function.prototype,Wc=Object.prototype,jc=Hc.toString,zc=Wc.hasOwnProperty,kc=RegExp("^"+jc.call(zc).replace(Uc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gc(i){if(!Bc(i)||Dc(i))return!1;var o=Mc(i)?kc:qc;return o.test(Vc(i))}var Kc=Gc;function Yc(i,o){return i==null?void 0:i[o]}var Zc=Yc,Jc=Kc,Xc=Zc;function Qc(i,o){var r=Xc(i,o);return Jc(r)?r:void 0}var Wt=Qc,ed=Wt,td=dt,nd=ed(td,"Map"),vi=nd,rd=Wt,id=rd(Object,"create"),fr=id,$a=fr;function od(){this.__data__=$a?$a(null):{},this.size=0}var ad=od;function ud(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}var sd=ud,ld=fr,fd="__lodash_hash_undefined__",cd=Object.prototype,dd=cd.hasOwnProperty;function hd(i){var o=this.__data__;if(ld){var r=o[i];return r===fd?void 0:r}return dd.call(o,i)?o[i]:void 0}var gd=hd,pd=fr,vd=Object.prototype,md=vd.hasOwnProperty;function yd(i){var o=this.__data__;return pd?o[i]!==void 0:md.call(o,i)}var _d=yd,wd=fr,bd="__lodash_hash_undefined__";function xd(i,o){var r=this.__data__;return this.size+=this.has(i)?0:1,r[i]=wd&&o===void 0?bd:o,this}var Td=xd,Ad=ad,Cd=sd,Sd=gd,Ed=_d,Id=Td;function an(i){var o=-1,r=i==null?0:i.length;for(this.clear();++o<r;){var u=i[o];this.set(u[0],u[1])}}an.prototype.clear=Ad,an.prototype.delete=Cd,an.prototype.get=Sd,an.prototype.has=Ed,an.prototype.set=Id;var Od=an,Fa=Od,Nd=sr,$d=vi;function Fd(){this.size=0,this.__data__={hash:new Fa,map:new($d||Nd),string:new Fa}}var Ld=Fd;function Pd(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}var Rd=Pd,Md=Rd;function Dd(i,o){var r=i.__data__;return Md(o)?r[typeof o=="string"?"string":"hash"]:r.map}var cr=Dd,Bd=cr;function Vd(i){var o=Bd(this,i).delete(i);return this.size-=o?1:0,o}var Ud=Vd,qd=cr;function Hd(i){return qd(this,i).get(i)}var Wd=Hd,jd=cr;function zd(i){return jd(this,i).has(i)}var kd=zd,Gd=cr;function Kd(i,o){var r=Gd(this,i),u=r.size;return r.set(i,o),this.size+=r.size==u?0:1,this}var Yd=Kd,Zd=Ld,Jd=Ud,Xd=Wd,Qd=kd,eh=Yd;function un(i){var o=-1,r=i==null?0:i.length;for(this.clear();++o<r;){var u=i[o];this.set(u[0],u[1])}}un.prototype.clear=Zd,un.prototype.delete=Jd,un.prototype.get=Xd,un.prototype.has=Qd,un.prototype.set=eh;var th=un,nh=sr,rh=vi,ih=th,oh=200;function ah(i,o){var r=this.__data__;if(r instanceof nh){var u=r.__data__;if(!rh||u.length<oh-1)return u.push([i,o]),this.size=++r.size,this;r=this.__data__=new ih(u)}return r.set(i,o),this.size=r.size,this}var uh=ah,sh=sr,lh=Kf,fh=Zf,ch=Xf,dh=ec,hh=uh;function sn(i){var o=this.__data__=new sh(i);this.size=o.size}sn.prototype.clear=lh,sn.prototype.delete=fh,sn.prototype.get=ch,sn.prototype.has=dh,sn.prototype.set=hh;var gh=sn;function ph(i,o){for(var r=-1,u=i==null?0:i.length;++r<u&&o(i[r],r,i)!==!1;);return i}var vh=ph,mh=Wt,yh=function(){try{var i=mh(Object,"defineProperty");return i({},"",{}),i}catch{}}(),_h=yh,La=_h;function wh(i,o,r){o=="__proto__"&&La?La(i,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):i[o]=r}var Pa=wh,bh=Pa,xh=xa,Th=Object.prototype,Ah=Th.hasOwnProperty;function Ch(i,o,r){var u=i[o];(!(Ah.call(i,o)&&xh(u,r))||r===void 0&&!(o in i))&&bh(i,o,r)}var Ra=Ch,Sh=Ra,Eh=Pa;function Ih(i,o,r,u){var s=!r;r||(r={});for(var d=-1,g=o.length;++d<g;){var p=o[d],m=u?u(r[p],i[p],p,r,i):void 0;m===void 0&&(m=i[p]),s?Eh(r,p,m):Sh(r,p,m)}return r}var dr=Ih;function Oh(i,o){for(var r=-1,u=Array(i);++r<i;)u[r]=o(r);return u}var Nh=Oh;function $h(i){return i!=null&&typeof i=="object"}var On=$h,Fh=lr,Lh=On,Ph="[object Arguments]";function Rh(i){return Lh(i)&&Fh(i)==Ph}var Mh=Rh,Ma=Mh,Dh=On,Da=Object.prototype,Bh=Da.hasOwnProperty,Vh=Da.propertyIsEnumerable,Uh=Ma(function(){return arguments}())?Ma:function(i){return Dh(i)&&Bh.call(i,"callee")&&!Vh.call(i,"callee")},qh=Uh,Hh=Array.isArray,mi=Hh,hr={exports:{}};function Wh(){return!1}var jh=Wh;(function(i,o){var r=dt,u=jh,s=o&&!o.nodeType&&o,d=s&&!0&&i&&!i.nodeType&&i,g=d&&d.exports===s,p=g?r.Buffer:void 0,m=p?p.isBuffer:void 0,C=m||u;i.exports=C})(hr,hr.exports);var zh=9007199254740991,kh=/^(?:0|[1-9]\d*)$/;function Gh(i,o){var r=typeof i;return o=o==null?zh:o,!!o&&(r=="number"||r!="symbol"&&kh.test(i))&&i>-1&&i%1==0&&i<o}var Kh=Gh,Yh=9007199254740991;function Zh(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Yh}var Ba=Zh,Jh=lr,Xh=Ba,Qh=On,eg="[object Arguments]",tg="[object Array]",ng="[object Boolean]",rg="[object Date]",ig="[object Error]",og="[object Function]",ag="[object Map]",ug="[object Number]",sg="[object Object]",lg="[object RegExp]",fg="[object Set]",cg="[object String]",dg="[object WeakMap]",hg="[object ArrayBuffer]",gg="[object DataView]",pg="[object Float32Array]",vg="[object Float64Array]",mg="[object Int8Array]",yg="[object Int16Array]",_g="[object Int32Array]",wg="[object Uint8Array]",bg="[object Uint8ClampedArray]",xg="[object Uint16Array]",Tg="[object Uint32Array]",ge={};ge[pg]=ge[vg]=ge[mg]=ge[yg]=ge[_g]=ge[wg]=ge[bg]=ge[xg]=ge[Tg]=!0,ge[eg]=ge[tg]=ge[hg]=ge[ng]=ge[gg]=ge[rg]=ge[ig]=ge[og]=ge[ag]=ge[ug]=ge[sg]=ge[lg]=ge[fg]=ge[cg]=ge[dg]=!1;function Ag(i){return Qh(i)&&Xh(i.length)&&!!ge[Jh(i)]}var Cg=Ag;function Sg(i){return function(o){return i(o)}}var yi=Sg,Nn={exports:{}};(function(i,o){var r=Ta,u=o&&!o.nodeType&&o,s=u&&!0&&i&&!i.nodeType&&i,d=s&&s.exports===u,g=d&&r.process,p=function(){try{var m=s&&s.require&&s.require("util").types;return m||g&&g.binding&&g.binding("util")}catch{}}();i.exports=p})(Nn,Nn.exports);var Eg=Cg,Ig=yi,Va=Nn.exports,Ua=Va&&Va.isTypedArray,Og=Ua?Ig(Ua):Eg,Ng=Og,$g=Nh,Fg=qh,Lg=mi,Pg=hr.exports,Rg=Kh,Mg=Ng,Dg=Object.prototype,Bg=Dg.hasOwnProperty;function Vg(i,o){var r=Lg(i),u=!r&&Fg(i),s=!r&&!u&&Pg(i),d=!r&&!u&&!s&&Mg(i),g=r||u||s||d,p=g?$g(i.length,String):[],m=p.length;for(var C in i)(o||Bg.call(i,C))&&!(g&&(C=="length"||s&&(C=="offset"||C=="parent")||d&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||Rg(C,m)))&&p.push(C);return p}var qa=Vg,Ug=Object.prototype;function qg(i){var o=i&&i.constructor,r=typeof o=="function"&&o.prototype||Ug;return i===r}var _i=qg;function Hg(i,o){return function(r){return i(o(r))}}var Ha=Hg,Wg=Ha,jg=Wg(Object.keys,Object),zg=jg,kg=_i,Gg=zg,Kg=Object.prototype,Yg=Kg.hasOwnProperty;function Zg(i){if(!kg(i))return Gg(i);var o=[];for(var r in Object(i))Yg.call(i,r)&&r!="constructor"&&o.push(r);return o}var Jg=Zg,Xg=Ia,Qg=Ba;function ep(i){return i!=null&&Qg(i.length)&&!Xg(i)}var Wa=ep,tp=qa,np=Jg,rp=Wa;function ip(i){return rp(i)?tp(i):np(i)}var wi=ip,op=dr,ap=wi;function up(i,o){return i&&op(o,ap(o),i)}var sp=up;function lp(i){var o=[];if(i!=null)for(var r in Object(i))o.push(r);return o}var fp=lp,cp=In,dp=_i,hp=fp,gp=Object.prototype,pp=gp.hasOwnProperty;function vp(i){if(!cp(i))return hp(i);var o=dp(i),r=[];for(var u in i)u=="constructor"&&(o||!pp.call(i,u))||r.push(u);return r}var mp=vp,yp=qa,_p=mp,wp=Wa;function bp(i){return wp(i)?yp(i,!0):_p(i)}var bi=bp,xp=dr,Tp=bi;function Ap(i,o){return i&&xp(o,Tp(o),i)}var Cp=Ap,xi={exports:{}};(function(i,o){var r=dt,u=o&&!o.nodeType&&o,s=u&&!0&&i&&!i.nodeType&&i,d=s&&s.exports===u,g=d?r.Buffer:void 0,p=g?g.allocUnsafe:void 0;function m(C,$){if($)return C.slice();var w=C.length,O=p?p(w):new C.constructor(w);return C.copy(O),O}i.exports=m})(xi,xi.exports);function Sp(i,o){var r=-1,u=i.length;for(o||(o=Array(u));++r<u;)o[r]=i[r];return o}var Ep=Sp;function Ip(i,o){for(var r=-1,u=i==null?0:i.length,s=0,d=[];++r<u;){var g=i[r];o(g,r,i)&&(d[s++]=g)}return d}var Op=Ip;function Np(){return[]}var ja=Np,$p=Op,Fp=ja,Lp=Object.prototype,Pp=Lp.propertyIsEnumerable,za=Object.getOwnPropertySymbols,Rp=za?function(i){return i==null?[]:(i=Object(i),$p(za(i),function(o){return Pp.call(i,o)}))}:Fp,Ti=Rp,Mp=dr,Dp=Ti;function Bp(i,o){return Mp(i,Dp(i),o)}var Vp=Bp;function Up(i,o){for(var r=-1,u=o.length,s=i.length;++r<u;)i[s+r]=o[r];return i}var ka=Up,qp=Ha,Hp=qp(Object.getPrototypeOf,Object),Ga=Hp,Wp=ka,jp=Ga,zp=Ti,kp=ja,Gp=Object.getOwnPropertySymbols,Kp=Gp?function(i){for(var o=[];i;)Wp(o,zp(i)),i=jp(i);return o}:kp,Ka=Kp,Yp=dr,Zp=Ka;function Jp(i,o){return Yp(i,Zp(i),o)}var Xp=Jp,Qp=ka,ev=mi;function tv(i,o,r){var u=o(i);return ev(i)?u:Qp(u,r(i))}var Ya=tv,nv=Ya,rv=Ti,iv=wi;function ov(i){return nv(i,iv,rv)}var av=ov,uv=Ya,sv=Ka,lv=bi;function fv(i){return uv(i,lv,sv)}var cv=fv,dv=Wt,hv=dt,gv=dv(hv,"DataView"),pv=gv,vv=Wt,mv=dt,yv=vv(mv,"Promise"),_v=yv,wv=Wt,bv=dt,xv=wv(bv,"Set"),Tv=xv,Av=Wt,Cv=dt,Sv=Av(Cv,"WeakMap"),Ev=Sv,Ai=pv,Ci=vi,Si=_v,Ei=Tv,Ii=Ev,Za=lr,ln=Na,Ja="[object Map]",Iv="[object Object]",Xa="[object Promise]",Qa="[object Set]",eu="[object WeakMap]",tu="[object DataView]",Ov=ln(Ai),Nv=ln(Ci),$v=ln(Si),Fv=ln(Ei),Lv=ln(Ii),jt=Za;(Ai&&jt(new Ai(new ArrayBuffer(1)))!=tu||Ci&&jt(new Ci)!=Ja||Si&&jt(Si.resolve())!=Xa||Ei&&jt(new Ei)!=Qa||Ii&&jt(new Ii)!=eu)&&(jt=function(i){var o=Za(i),r=o==Iv?i.constructor:void 0,u=r?ln(r):"";if(u)switch(u){case Ov:return tu;case Nv:return Ja;case $v:return Xa;case Fv:return Qa;case Lv:return eu}return o});var Oi=jt,Pv=Object.prototype,Rv=Pv.hasOwnProperty;function Mv(i){var o=i.length,r=new i.constructor(o);return o&&typeof i[0]=="string"&&Rv.call(i,"index")&&(r.index=i.index,r.input=i.input),r}var Dv=Mv,Bv=dt,Vv=Bv.Uint8Array,Uv=Vv,nu=Uv;function qv(i){var o=new i.constructor(i.byteLength);return new nu(o).set(new nu(i)),o}var Ni=qv,Hv=Ni;function Wv(i,o){var r=o?Hv(i.buffer):i.buffer;return new i.constructor(r,i.byteOffset,i.byteLength)}var jv=Wv,zv=/\w*$/;function kv(i){var o=new i.constructor(i.source,zv.exec(i));return o.lastIndex=i.lastIndex,o}var Gv=kv,ru=gi,iu=ru?ru.prototype:void 0,ou=iu?iu.valueOf:void 0;function Kv(i){return ou?Object(ou.call(i)):{}}var Yv=Kv,Zv=Ni;function Jv(i,o){var r=o?Zv(i.buffer):i.buffer;return new i.constructor(r,i.byteOffset,i.length)}var Xv=Jv,Qv=Ni,e1=jv,t1=Gv,n1=Yv,r1=Xv,i1="[object Boolean]",o1="[object Date]",a1="[object Map]",u1="[object Number]",s1="[object RegExp]",l1="[object Set]",f1="[object String]",c1="[object Symbol]",d1="[object ArrayBuffer]",h1="[object DataView]",g1="[object Float32Array]",p1="[object Float64Array]",v1="[object Int8Array]",m1="[object Int16Array]",y1="[object Int32Array]",_1="[object Uint8Array]",w1="[object Uint8ClampedArray]",b1="[object Uint16Array]",x1="[object Uint32Array]";function T1(i,o,r){var u=i.constructor;switch(o){case d1:return Qv(i);case i1:case o1:return new u(+i);case h1:return e1(i,r);case g1:case p1:case v1:case m1:case y1:case _1:case w1:case b1:case x1:return r1(i,r);case a1:return new u;case u1:case f1:return new u(i);case s1:return t1(i);case l1:return new u;case c1:return n1(i)}}var A1=T1,C1=In,au=Object.create,S1=function(){function i(){}return function(o){if(!C1(o))return{};if(au)return au(o);i.prototype=o;var r=new i;return i.prototype=void 0,r}}(),E1=S1,I1=E1,O1=Ga,N1=_i;function $1(i){return typeof i.constructor=="function"&&!N1(i)?I1(O1(i)):{}}var F1=$1,L1=Oi,P1=On,R1="[object Map]";function M1(i){return P1(i)&&L1(i)==R1}var D1=M1,B1=D1,V1=yi,uu=Nn.exports,su=uu&&uu.isMap,U1=su?V1(su):B1,q1=U1,H1=Oi,W1=On,j1="[object Set]";function z1(i){return W1(i)&&H1(i)==j1}var k1=z1,G1=k1,K1=yi,lu=Nn.exports,fu=lu&&lu.isSet,Y1=fu?K1(fu):G1,Z1=Y1,J1=gh,X1=vh,Q1=Ra,e0=sp,t0=Cp,n0=xi.exports,r0=Ep,i0=Vp,o0=Xp,a0=av,u0=cv,s0=Oi,l0=Dv,f0=A1,c0=F1,d0=mi,h0=hr.exports,g0=q1,p0=In,v0=Z1,m0=wi,y0=bi,_0=1,w0=2,b0=4,cu="[object Arguments]",x0="[object Array]",T0="[object Boolean]",A0="[object Date]",C0="[object Error]",du="[object Function]",S0="[object GeneratorFunction]",E0="[object Map]",I0="[object Number]",hu="[object Object]",O0="[object RegExp]",N0="[object Set]",$0="[object String]",F0="[object Symbol]",L0="[object WeakMap]",P0="[object ArrayBuffer]",R0="[object DataView]",M0="[object Float32Array]",D0="[object Float64Array]",B0="[object Int8Array]",V0="[object Int16Array]",U0="[object Int32Array]",q0="[object Uint8Array]",H0="[object Uint8ClampedArray]",W0="[object Uint16Array]",j0="[object Uint32Array]",de={};de[cu]=de[x0]=de[P0]=de[R0]=de[T0]=de[A0]=de[M0]=de[D0]=de[B0]=de[V0]=de[U0]=de[E0]=de[I0]=de[hu]=de[O0]=de[N0]=de[$0]=de[F0]=de[q0]=de[H0]=de[W0]=de[j0]=!0,de[C0]=de[du]=de[L0]=!1;function gr(i,o,r,u,s,d){var g,p=o&_0,m=o&w0,C=o&b0;if(r&&(g=s?r(i,u,s,d):r(i)),g!==void 0)return g;if(!p0(i))return i;var $=d0(i);if($){if(g=l0(i),!p)return r0(i,g)}else{var w=s0(i),O=w==du||w==S0;if(h0(i))return n0(i,p);if(w==hu||w==cu||O&&!s){if(g=m||O?{}:c0(i),!p)return m?o0(i,t0(g,i)):i0(i,e0(g,i))}else{if(!de[w])return s?i:{};g=f0(i,w,p)}}d||(d=new J1);var E=d.get(i);if(E)return E;d.set(i,g),v0(i)?i.forEach(function(S){g.add(gr(S,o,r,S,i,d))}):g0(i)&&i.forEach(function(S,_){g.set(_,gr(S,o,r,_,i,d))});var I=C?m?u0:a0:m?y0:m0,x=$?void 0:I(i);return X1(x||i,function(S,_){x&&(_=S,S=i[_]),Q1(g,_,gr(S,o,r,_,i,d))}),g}var z0=gr,k0=z0,G0=1,K0=4;function Y0(i){return k0(i,G0|K0)}var Z0=Y0;function pr(i,o,r){let u=i;return o&&(u+=`__${o}`),r&&(u+=`--${r}`),u}function Ze(i,o=!1){const r=o?`.devui-${i}`:`devui-${i}`;return{b:()=>pr(r),e:p=>p?pr(r,p):"",m:p=>p?pr(r,"",p):"",em:(p,m)=>p&&m?pr(r,p,m):""}}const $i=i=>typeof i=="boolean"?i?"both":"none":i,vr=(i,o="id",r="children",u)=>i.map(s=>{var g;const d={...s,parentId:u};return(!(o in d)||!d[o])&&(d[o]=di(),d.idType="random"),r in d&&Array.isArray(d[r])&&((g=d[r])==null?void 0:g.length)?(d[r]=vr(d[r],o,r,d[o]),"isLeaf"in d&&delete d.isLeaf):"isLeaf"in d||(d.isLeaf=!0),d.parentId||delete d.parentId,d}),Fi=Ze("tree"),Li={dropPrev:Fi.em("node","drop-prev"),dropNext:Fi.em("node","drop-next"),dropInner:Fi.em("node","drop-inner")};function J0(i,o){return function(){const u=l.reactive({dropType:void 0,draggingNode:null,draggingTreeNode:null}),s=l.computed(()=>o.value.reduce((I,x)=>({...I,[x.id]:x}),{})),d=I=>{I==null||I.classList.remove(...Object.values(Li))},g=(I,x)=>{var _;const S=(_=s.value[I])==null?void 0:_.parentId;return S===x?!0:S!==void 0?g(S,x):!1},p=(I,x,S)=>{const _=Z0(o.value);let F,T;const B=D=>{!Array.isArray(D)||D.every((U,W)=>F&&T?!1:(U.id===I?F={target:D,index:W,item:U}:U.id===x&&(T={target:D,index:W,item:U}),(!F||!T)&&Array.isArray(U.children)&&B(U.children),!0))};if(B(_),F&&T&&S){const D=Object.assign({},F.target[F.index]);if(S==="dropPrev")T.target.splice(T.index,0,D);else if(S==="dropNext")T.target.splice(T.index+1,0,D);else if(S==="dropInner"){const W=T.target[T.index].children;Array.isArray(W)?W.unshift(D):T.target[T.index].children=[D]}const U=F.target.indexOf(F.item);U!==-1&&F.target.splice(U,1)}return _},m=()=>{u.dropType=void 0,u.draggingNode=null,u.draggingTreeNode=null};return{onDragstart:(I,x)=>{var _;I.stopPropagation(),u.draggingNode=I.target,u.draggingTreeNode=x;const S={type:"tree-node",nodeId:x.id};(_=I.dataTransfer)==null||_.setData("Text",JSON.stringify(S))},onDragover:I=>{if(I.preventDefault(),I.stopPropagation(),!!u.draggingNode&&i.dragdrop){if(I.dataTransfer&&(I.dataTransfer.dropEffect="move"),!o)return;let x={};typeof i.dragdrop=="object"?x=i.dragdrop:i.dragdrop===!0&&(x={dropInner:!0});const{dropPrev:S,dropNext:_,dropInner:F}=x;let T;const B=S?F?.25:_?.45:1:-1,D=_?F?.75:S?.55:0:1,U=I.currentTarget,W=U==null?void 0:U.getBoundingClientRect(),re=I.clientY-((W==null?void 0:W.top)||0);if(re<((W==null?void 0:W.height)||0)*B?T="dropPrev":re>((W==null?void 0:W.height)||0)*D?T="dropNext":F?T="dropInner":T=void 0,T){const oe=U==null?void 0:U.classList;oe&&(oe.contains(Li[T])||(d(U),oe.add(Li[T])))}else d(U);u.dropType=T}},onDragleave:I=>{I.stopPropagation(),u.draggingNode&&d(I.currentTarget)},onDrop:(I,x)=>{var _;if(I.preventDefault(),I.stopPropagation(),d(I.currentTarget),!u.draggingNode||!i.dragdrop)return;const S=(_=I.dataTransfer)==null?void 0:_.getData("Text");if(S){try{const F=JSON.parse(S);if(typeof F=="object"&&F.type==="tree-node"){const T=F.nodeId,B=g(x.id,T);if(T===x.id||B)return;if(u.dropType){let D=p(T,x.id,u.dropType);D=vr(D),o.value=D}}}catch(F){console.error(F)}m()}},onDragend:I=>{I.preventDefault(),I.stopPropagation(),m()}}}}function X0(){return function(o,r,u){const{getNode:s,setNodeValue:d,getIndex:g,getChildren:p}=r,m=(O,E)=>{E.value.forEach(I=>{I.level-1===O.level&&!I.parentId&&(I.parentId=O.id)})},C=(O,E)=>{const I=g(O);I!==-1&&o.value.splice(I+1,0,...E.value)},$=O=>{const E=s(O.node);d(E,"loading",!1);const I=l.ref(ar(O.treeItems,"children",E.level));m(E,I),C(E,I);const x=p(E);d(E,"childNodeCount",x.length)};return{lazyLoadNodes:O=>{const E=s(O);!E.isLeaf&&!E.childNodeCount&&(d(O,"loading",!0),u.emit("lazy-load",O,$))}}}}function gu(){return function(o,r){const{setNodeValue:u,getChildren:s,getIndex:d,getLevel:g,getParent:p}=r;return{insertBefore:(w,O,E)=>{const I=s(w,{recursive:!1}),x=I[I.length-1];let S=d(w)+1;E?S=d(E):x&&(S=d(x)+1),u(w,"expanded",!0),u(w,"isLeaf",!1);let _=w.childNodeCount;_||(_=0,u(w,"childNodeCount",_+1)),x&&u(x,"parentChildNodeCount",I.length+1);const F=l.ref({...O,level:g(w)+1,parentId:w.id,isLeaf:!0,parentChildNodeCount:I.length+1,currentIndex:x&&typeof x.currentIndex=="number"?x.currentIndex+1:0});F.value.id===void 0&&(F.value.id=di()),o.value=o.value.slice(0,S).concat(F.value,o.value.slice(S,o.value.length))},removeNode:(w,O={recursive:!0})=>{O.recursive||s(w).forEach(E=>{u(E,"level",g(E)-1)}),o.value=o.value.filter(E=>O.recursive?E.id!==w.id&&!s(w).map(I=>I.id).includes(E.id):E.id!==w.id),p(w)&&s(p(w)).length===0&&u(p(w),"isLeaf",!0)},editNode:(w,O)=>{u(w,"label",O)}}}}function Q0(){return function(o,r){const{setNodeValue:u,getChildren:s}=r,{removeNode:d}=gu()(o,r);return{mergeTreeNodes:()=>{const p=m=>{var $;if(m.isLeaf)return;const C=s(m,{recursive:!1});(C==null?void 0:C.length)===1?s(C[0],{recursive:!1}).length!==0?(u(m,"label",m.label+" / "+(($=C[0])==null?void 0:$.label)),d(C[0],{recursive:!1}),p(m)):u(C[0],"parentId",m.id):C.forEach(w=>{p(w)})};o.value.filter(m=>m.level===1).forEach(m=>{p(m)})}}}}var De={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(i,o){(function(){var r,u="4.17.21",s=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",p="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",C=500,$="__lodash_placeholder__",w=1,O=2,E=4,I=1,x=2,S=1,_=2,F=4,T=8,B=16,D=32,U=64,W=128,re=256,oe=512,Se=30,Be="...",Ee=800,Oe=16,_t=1,kt=2,z=3,Q=1/0,le=9007199254740991,_e=17976931348623157e292,xe=0/0,ue=4294967295,Mn=ue-1,ki=ue>>>1,Gt=[["ary",W],["bind",S],["bindKey",_],["curry",T],["curryRight",B],["flip",oe],["partial",D],["partialRight",U],["rearg",re]],Lt="[object Arguments]",wt="[object Array]",Dn="[object AsyncFunction]",Kt="[object Boolean]",Bn="[object Date]",Zy="[object DOMException]",wr="[object Error]",br="[object Function]",Uu="[object GeneratorFunction]",at="[object Map]",Vn="[object Number]",Jy="[object Null]",bt="[object Object]",qu="[object Promise]",Xy="[object Proxy]",Un="[object RegExp]",ut="[object Set]",qn="[object String]",xr="[object Symbol]",Qy="[object Undefined]",Hn="[object WeakMap]",e_="[object WeakSet]",Wn="[object ArrayBuffer]",cn="[object DataView]",Gi="[object Float32Array]",Ki="[object Float64Array]",Yi="[object Int8Array]",Zi="[object Int16Array]",Ji="[object Int32Array]",Xi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",eo="[object Uint16Array]",to="[object Uint32Array]",t_=/\b__p \+= '';/g,n_=/\b(__p \+=) '' \+/g,r_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hu=/&(?:amp|lt|gt|quot|#39);/g,Wu=/[&<>"']/g,i_=RegExp(Hu.source),o_=RegExp(Wu.source),a_=/<%-([\s\S]+?)%>/g,u_=/<%([\s\S]+?)%>/g,ju=/<%=([\s\S]+?)%>/g,s_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l_=/^\w*$/,f_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,no=/[\\^$.*+?()[\]{}|]/g,c_=RegExp(no.source),ro=/^\s+/,d_=/\s/,h_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,g_=/\{\n\/\* \[wrapped with (.+)\] \*/,p_=/,? & /,v_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,m_=/[()=,{}\[\]\/\s]/,y_=/\\(\\)?/g,__=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zu=/\w*$/,w_=/^[-+]0x[0-9a-f]+$/i,b_=/^0b[01]+$/i,x_=/^\[object .+?Constructor\]$/,T_=/^0o[0-7]+$/i,A_=/^(?:0|[1-9]\d*)$/,C_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tr=/($^)/,S_=/['\n\r\u2028\u2029\\]/g,Ar="\\ud800-\\udfff",E_="\\u0300-\\u036f",I_="\\ufe20-\\ufe2f",O_="\\u20d0-\\u20ff",ku=E_+I_+O_,Gu="\\u2700-\\u27bf",Ku="a-z\\xdf-\\xf6\\xf8-\\xff",N_="\\xac\\xb1\\xd7\\xf7",$_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",F_="\\u2000-\\u206f",L_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yu="A-Z\\xc0-\\xd6\\xd8-\\xde",Zu="\\ufe0e\\ufe0f",Ju=N_+$_+F_+L_,io="['\u2019]",P_="["+Ar+"]",Xu="["+Ju+"]",Cr="["+ku+"]",Qu="\\d+",R_="["+Gu+"]",es="["+Ku+"]",ts="[^"+Ar+Ju+Qu+Gu+Ku+Yu+"]",oo="\\ud83c[\\udffb-\\udfff]",M_="(?:"+Cr+"|"+oo+")",ns="[^"+Ar+"]",ao="(?:\\ud83c[\\udde6-\\uddff]){2}",uo="[\\ud800-\\udbff][\\udc00-\\udfff]",dn="["+Yu+"]",rs="\\u200d",is="(?:"+es+"|"+ts+")",D_="(?:"+dn+"|"+ts+")",os="(?:"+io+"(?:d|ll|m|re|s|t|ve))?",as="(?:"+io+"(?:D|LL|M|RE|S|T|VE))?",us=M_+"?",ss="["+Zu+"]?",B_="(?:"+rs+"(?:"+[ns,ao,uo].join("|")+")"+ss+us+")*",V_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",U_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ls=ss+us+B_,q_="(?:"+[R_,ao,uo].join("|")+")"+ls,H_="(?:"+[ns+Cr+"?",Cr,ao,uo,P_].join("|")+")",W_=RegExp(io,"g"),j_=RegExp(Cr,"g"),so=RegExp(oo+"(?="+oo+")|"+H_+ls,"g"),z_=RegExp([dn+"?"+es+"+"+os+"(?="+[Xu,dn,"$"].join("|")+")",D_+"+"+as+"(?="+[Xu,dn+is,"$"].join("|")+")",dn+"?"+is+"+"+os,dn+"+"+as,U_,V_,Qu,q_].join("|"),"g"),k_=RegExp("["+rs+Ar+ku+Zu+"]"),G_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,K_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Y_=-1,pe={};pe[Gi]=pe[Ki]=pe[Yi]=pe[Zi]=pe[Ji]=pe[Xi]=pe[Qi]=pe[eo]=pe[to]=!0,pe[Lt]=pe[wt]=pe[Wn]=pe[Kt]=pe[cn]=pe[Bn]=pe[wr]=pe[br]=pe[at]=pe[Vn]=pe[bt]=pe[Un]=pe[ut]=pe[qn]=pe[Hn]=!1;var he={};he[Lt]=he[wt]=he[Wn]=he[cn]=he[Kt]=he[Bn]=he[Gi]=he[Ki]=he[Yi]=he[Zi]=he[Ji]=he[at]=he[Vn]=he[bt]=he[Un]=he[ut]=he[qn]=he[xr]=he[Xi]=he[Qi]=he[eo]=he[to]=!0,he[wr]=he[br]=he[Hn]=!1;var Z_={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},J_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},X_={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Q_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ew=parseFloat,tw=parseInt,fs=typeof yt=="object"&&yt&&yt.Object===Object&&yt,nw=typeof self=="object"&&self&&self.Object===Object&&self,Ne=fs||nw||Function("return this")(),lo=o&&!o.nodeType&&o,Yt=lo&&!0&&i&&!i.nodeType&&i,cs=Yt&&Yt.exports===lo,fo=cs&&fs.process,Je=function(){try{var b=Yt&&Yt.require&&Yt.require("util").types;return b||fo&&fo.binding&&fo.binding("util")}catch{}}(),ds=Je&&Je.isArrayBuffer,hs=Je&&Je.isDate,gs=Je&&Je.isMap,ps=Je&&Je.isRegExp,vs=Je&&Je.isSet,ms=Je&&Je.isTypedArray;function je(b,L,N){switch(N.length){case 0:return b.call(L);case 1:return b.call(L,N[0]);case 2:return b.call(L,N[0],N[1]);case 3:return b.call(L,N[0],N[1],N[2])}return b.apply(L,N)}function rw(b,L,N,q){for(var K=-1,ae=b==null?0:b.length;++K<ae;){var Ae=b[K];L(q,Ae,N(Ae),b)}return q}function Xe(b,L){for(var N=-1,q=b==null?0:b.length;++N<q&&L(b[N],N,b)!==!1;);return b}function iw(b,L){for(var N=b==null?0:b.length;N--&&L(b[N],N,b)!==!1;);return b}function ys(b,L){for(var N=-1,q=b==null?0:b.length;++N<q;)if(!L(b[N],N,b))return!1;return!0}function Pt(b,L){for(var N=-1,q=b==null?0:b.length,K=0,ae=[];++N<q;){var Ae=b[N];L(Ae,N,b)&&(ae[K++]=Ae)}return ae}function Sr(b,L){var N=b==null?0:b.length;return!!N&&hn(b,L,0)>-1}function co(b,L,N){for(var q=-1,K=b==null?0:b.length;++q<K;)if(N(L,b[q]))return!0;return!1}function ve(b,L){for(var N=-1,q=b==null?0:b.length,K=Array(q);++N<q;)K[N]=L(b[N],N,b);return K}function Rt(b,L){for(var N=-1,q=L.length,K=b.length;++N<q;)b[K+N]=L[N];return b}function ho(b,L,N,q){var K=-1,ae=b==null?0:b.length;for(q&&ae&&(N=b[++K]);++K<ae;)N=L(N,b[K],K,b);return N}function ow(b,L,N,q){var K=b==null?0:b.length;for(q&&K&&(N=b[--K]);K--;)N=L(N,b[K],K,b);return N}function go(b,L){for(var N=-1,q=b==null?0:b.length;++N<q;)if(L(b[N],N,b))return!0;return!1}var aw=po("length");function uw(b){return b.split("")}function sw(b){return b.match(v_)||[]}function _s(b,L,N){var q;return N(b,function(K,ae,Ae){if(L(K,ae,Ae))return q=ae,!1}),q}function Er(b,L,N,q){for(var K=b.length,ae=N+(q?1:-1);q?ae--:++ae<K;)if(L(b[ae],ae,b))return ae;return-1}function hn(b,L,N){return L===L?ww(b,L,N):Er(b,ws,N)}function lw(b,L,N,q){for(var K=N-1,ae=b.length;++K<ae;)if(q(b[K],L))return K;return-1}function ws(b){return b!==b}function bs(b,L){var N=b==null?0:b.length;return N?mo(b,L)/N:xe}function po(b){return function(L){return L==null?r:L[b]}}function vo(b){return function(L){return b==null?r:b[L]}}function xs(b,L,N,q,K){return K(b,function(ae,Ae,ce){N=q?(q=!1,ae):L(N,ae,Ae,ce)}),N}function fw(b,L){var N=b.length;for(b.sort(L);N--;)b[N]=b[N].value;return b}function mo(b,L){for(var N,q=-1,K=b.length;++q<K;){var ae=L(b[q]);ae!==r&&(N=N===r?ae:N+ae)}return N}function yo(b,L){for(var N=-1,q=Array(b);++N<b;)q[N]=L(N);return q}function cw(b,L){return ve(L,function(N){return[N,b[N]]})}function Ts(b){return b&&b.slice(0,Es(b)+1).replace(ro,"")}function ze(b){return function(L){return b(L)}}function _o(b,L){return ve(L,function(N){return b[N]})}function jn(b,L){return b.has(L)}function As(b,L){for(var N=-1,q=b.length;++N<q&&hn(L,b[N],0)>-1;);return N}function Cs(b,L){for(var N=b.length;N--&&hn(L,b[N],0)>-1;);return N}function dw(b,L){for(var N=b.length,q=0;N--;)b[N]===L&&++q;return q}var hw=vo(Z_),gw=vo(J_);function pw(b){return"\\"+Q_[b]}function vw(b,L){return b==null?r:b[L]}function gn(b){return k_.test(b)}function mw(b){return G_.test(b)}function yw(b){for(var L,N=[];!(L=b.next()).done;)N.push(L.value);return N}function wo(b){var L=-1,N=Array(b.size);return b.forEach(function(q,K){N[++L]=[K,q]}),N}function Ss(b,L){return function(N){return b(L(N))}}function Mt(b,L){for(var N=-1,q=b.length,K=0,ae=[];++N<q;){var Ae=b[N];(Ae===L||Ae===$)&&(b[N]=$,ae[K++]=N)}return ae}function Ir(b){var L=-1,N=Array(b.size);return b.forEach(function(q){N[++L]=q}),N}function _w(b){var L=-1,N=Array(b.size);return b.forEach(function(q){N[++L]=[q,q]}),N}function ww(b,L,N){for(var q=N-1,K=b.length;++q<K;)if(b[q]===L)return q;return-1}function bw(b,L,N){for(var q=N+1;q--;)if(b[q]===L)return q;return q}function pn(b){return gn(b)?Tw(b):aw(b)}function st(b){return gn(b)?Aw(b):uw(b)}function Es(b){for(var L=b.length;L--&&d_.test(b.charAt(L)););return L}var xw=vo(X_);function Tw(b){for(var L=so.lastIndex=0;so.test(b);)++L;return L}function Aw(b){return b.match(so)||[]}function Cw(b){return b.match(z_)||[]}var Sw=function b(L){L=L==null?Ne:vn.defaults(Ne.Object(),L,vn.pick(Ne,K_));var N=L.Array,q=L.Date,K=L.Error,ae=L.Function,Ae=L.Math,ce=L.Object,bo=L.RegExp,Ew=L.String,Qe=L.TypeError,Or=N.prototype,Iw=ae.prototype,mn=ce.prototype,Nr=L["__core-js_shared__"],$r=Iw.toString,fe=mn.hasOwnProperty,Ow=0,Is=function(){var e=/[^.]+$/.exec(Nr&&Nr.keys&&Nr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fr=mn.toString,Nw=$r.call(ce),$w=Ne._,Fw=bo("^"+$r.call(fe).replace(no,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lr=cs?L.Buffer:r,Dt=L.Symbol,Pr=L.Uint8Array,Os=Lr?Lr.allocUnsafe:r,Rr=Ss(ce.getPrototypeOf,ce),Ns=ce.create,$s=mn.propertyIsEnumerable,Mr=Or.splice,Fs=Dt?Dt.isConcatSpreadable:r,zn=Dt?Dt.iterator:r,Zt=Dt?Dt.toStringTag:r,Dr=function(){try{var e=tn(ce,"defineProperty");return e({},"",{}),e}catch{}}(),Lw=L.clearTimeout!==Ne.clearTimeout&&L.clearTimeout,Pw=q&&q.now!==Ne.Date.now&&q.now,Rw=L.setTimeout!==Ne.setTimeout&&L.setTimeout,Br=Ae.ceil,Vr=Ae.floor,xo=ce.getOwnPropertySymbols,Mw=Lr?Lr.isBuffer:r,Ls=L.isFinite,Dw=Or.join,Bw=Ss(ce.keys,ce),Ce=Ae.max,Fe=Ae.min,Vw=q.now,Uw=L.parseInt,Ps=Ae.random,qw=Or.reverse,To=tn(L,"DataView"),kn=tn(L,"Map"),Ao=tn(L,"Promise"),yn=tn(L,"Set"),Gn=tn(L,"WeakMap"),Kn=tn(ce,"create"),Ur=Gn&&new Gn,_n={},Hw=nn(To),Ww=nn(kn),jw=nn(Ao),zw=nn(yn),kw=nn(Gn),qr=Dt?Dt.prototype:r,Yn=qr?qr.valueOf:r,Rs=qr?qr.toString:r;function c(e){if(ye(e)&&!Y(e)&&!(e instanceof ne)){if(e instanceof et)return e;if(fe.call(e,"__wrapped__"))return Ml(e)}return new et(e)}var wn=function(){function e(){}return function(t){if(!me(t))return{};if(Ns)return Ns(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hr(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}c.templateSettings={escape:a_,evaluate:u_,interpolate:ju,variable:"",imports:{_:c}},c.prototype=Hr.prototype,c.prototype.constructor=c,et.prototype=wn(Hr.prototype),et.prototype.constructor=et;function ne(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function Gw(){var e=new ne(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e}function Kw(){if(this.__filtered__){var e=new ne(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yw(){var e=this.__wrapped__.value(),t=this.__dir__,n=Y(e),a=t<0,f=n?e.length:0,h=ux(0,f,this.__views__),v=h.start,y=h.end,A=y-v,P=a?y:v-1,R=this.__iteratees__,M=R.length,V=0,H=Fe(A,this.__takeCount__);if(!n||!a&&f==A&&H==A)return ol(e,this.__actions__);var k=[];e:for(;A--&&V<H;){P+=t;for(var J=-1,G=e[P];++J<M;){var ee=R[J],ie=ee.iteratee,Ke=ee.type,Me=ie(G);if(Ke==kt)G=Me;else if(!Me){if(Ke==_t)continue e;break e}}k[V++]=G}return k}ne.prototype=wn(Hr.prototype),ne.prototype.constructor=ne;function Jt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Zw(){this.__data__=Kn?Kn(null):{},this.size=0}function Jw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Xw(e){var t=this.__data__;if(Kn){var n=t[e];return n===m?r:n}return fe.call(t,e)?t[e]:r}function Qw(e){var t=this.__data__;return Kn?t[e]!==r:fe.call(t,e)}function eb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Kn&&t===r?m:t,this}Jt.prototype.clear=Zw,Jt.prototype.delete=Jw,Jt.prototype.get=Xw,Jt.prototype.has=Qw,Jt.prototype.set=eb;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function tb(){this.__data__=[],this.size=0}function nb(e){var t=this.__data__,n=Wr(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Mr.call(t,n,1),--this.size,!0}function rb(e){var t=this.__data__,n=Wr(t,e);return n<0?r:t[n][1]}function ib(e){return Wr(this.__data__,e)>-1}function ob(e,t){var n=this.__data__,a=Wr(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}xt.prototype.clear=tb,xt.prototype.delete=nb,xt.prototype.get=rb,xt.prototype.has=ib,xt.prototype.set=ob;function Tt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function ab(){this.size=0,this.__data__={hash:new Jt,map:new(kn||xt),string:new Jt}}function ub(e){var t=ti(this,e).delete(e);return this.size-=t?1:0,t}function sb(e){return ti(this,e).get(e)}function lb(e){return ti(this,e).has(e)}function fb(e,t){var n=ti(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}Tt.prototype.clear=ab,Tt.prototype.delete=ub,Tt.prototype.get=sb,Tt.prototype.has=lb,Tt.prototype.set=fb;function Xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Tt;++t<n;)this.add(e[t])}function cb(e){return this.__data__.set(e,m),this}function db(e){return this.__data__.has(e)}Xt.prototype.add=Xt.prototype.push=cb,Xt.prototype.has=db;function lt(e){var t=this.__data__=new xt(e);this.size=t.size}function hb(){this.__data__=new xt,this.size=0}function gb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function pb(e){return this.__data__.get(e)}function vb(e){return this.__data__.has(e)}function mb(e,t){var n=this.__data__;if(n instanceof xt){var a=n.__data__;if(!kn||a.length<s-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tt(a)}return n.set(e,t),this.size=n.size,this}lt.prototype.clear=hb,lt.prototype.delete=gb,lt.prototype.get=pb,lt.prototype.has=vb,lt.prototype.set=mb;function Ms(e,t){var n=Y(e),a=!n&&rn(e),f=!n&&!a&&Ht(e),h=!n&&!a&&!f&&An(e),v=n||a||f||h,y=v?yo(e.length,Ew):[],A=y.length;for(var P in e)(t||fe.call(e,P))&&!(v&&(P=="length"||f&&(P=="offset"||P=="parent")||h&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Et(P,A)))&&y.push(P);return y}function Ds(e){var t=e.length;return t?e[Ro(0,t-1)]:r}function yb(e,t){return ni(Ve(e),Qt(t,0,e.length))}function _b(e){return ni(Ve(e))}function Co(e,t,n){(n!==r&&!ft(e[t],n)||n===r&&!(t in e))&&At(e,t,n)}function Zn(e,t,n){var a=e[t];(!(fe.call(e,t)&&ft(a,n))||n===r&&!(t in e))&&At(e,t,n)}function Wr(e,t){for(var n=e.length;n--;)if(ft(e[n][0],t))return n;return-1}function wb(e,t,n,a){return Bt(e,function(f,h,v){t(a,f,n(f),v)}),a}function Bs(e,t){return e&&pt(t,Ie(t),e)}function bb(e,t){return e&&pt(t,qe(t),e)}function At(e,t,n){t=="__proto__"&&Dr?Dr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function So(e,t){for(var n=-1,a=t.length,f=N(a),h=e==null;++n<a;)f[n]=h?r:aa(e,t[n]);return f}function Qt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function tt(e,t,n,a,f,h){var v,y=t&w,A=t&O,P=t&E;if(n&&(v=f?n(e,a,f,h):n(e)),v!==r)return v;if(!me(e))return e;var R=Y(e);if(R){if(v=lx(e),!y)return Ve(e,v)}else{var M=Le(e),V=M==br||M==Uu;if(Ht(e))return sl(e,y);if(M==bt||M==Lt||V&&!f){if(v=A||V?{}:El(e),!y)return A?Xb(e,bb(v,e)):Jb(e,Bs(v,e))}else{if(!he[M])return f?e:{};v=fx(e,M,y)}}h||(h=new lt);var H=h.get(e);if(H)return H;h.set(e,v),nf(e)?e.forEach(function(G){v.add(tt(G,t,n,G,e,h))}):ef(e)&&e.forEach(function(G,ee){v.set(ee,tt(G,t,n,ee,e,h))});var k=P?A?ko:zo:A?qe:Ie,J=R?r:k(e);return Xe(J||e,function(G,ee){J&&(ee=G,G=e[ee]),Zn(v,ee,tt(G,t,n,ee,e,h))}),v}function xb(e){var t=Ie(e);return function(n){return Vs(n,e,t)}}function Vs(e,t,n){var a=n.length;if(e==null)return!a;for(e=ce(e);a--;){var f=n[a],h=t[f],v=e[f];if(v===r&&!(f in e)||!h(v))return!1}return!0}function Us(e,t,n){if(typeof e!="function")throw new Qe(g);return rr(function(){e.apply(r,n)},t)}function Jn(e,t,n,a){var f=-1,h=Sr,v=!0,y=e.length,A=[],P=t.length;if(!y)return A;n&&(t=ve(t,ze(n))),a?(h=co,v=!1):t.length>=s&&(h=jn,v=!1,t=new Xt(t));e:for(;++f<y;){var R=e[f],M=n==null?R:n(R);if(R=a||R!==0?R:0,v&&M===M){for(var V=P;V--;)if(t[V]===M)continue e;A.push(R)}else h(t,M,a)||A.push(R)}return A}var Bt=hl(gt),qs=hl(Io,!0);function Tb(e,t){var n=!0;return Bt(e,function(a,f,h){return n=!!t(a,f,h),n}),n}function jr(e,t,n){for(var a=-1,f=e.length;++a<f;){var h=e[a],v=t(h);if(v!=null&&(y===r?v===v&&!Ge(v):n(v,y)))var y=v,A=h}return A}function Ab(e,t,n,a){var f=e.length;for(n=Z(n),n<0&&(n=-n>f?0:f+n),a=a===r||a>f?f:Z(a),a<0&&(a+=f),a=n>a?0:of(a);n<a;)e[n++]=t;return e}function Hs(e,t){var n=[];return Bt(e,function(a,f,h){t(a,f,h)&&n.push(a)}),n}function $e(e,t,n,a,f){var h=-1,v=e.length;for(n||(n=dx),f||(f=[]);++h<v;){var y=e[h];t>0&&n(y)?t>1?$e(y,t-1,n,a,f):Rt(f,y):a||(f[f.length]=y)}return f}var Eo=gl(),Ws=gl(!0);function gt(e,t){return e&&Eo(e,t,Ie)}function Io(e,t){return e&&Ws(e,t,Ie)}function zr(e,t){return Pt(t,function(n){return It(e[n])})}function en(e,t){t=Ut(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[vt(t[n++])];return n&&n==a?e:r}function js(e,t,n){var a=t(e);return Y(e)?a:Rt(a,n(e))}function Pe(e){return e==null?e===r?Qy:Jy:Zt&&Zt in ce(e)?ax(e):_x(e)}function Oo(e,t){return e>t}function Cb(e,t){return e!=null&&fe.call(e,t)}function Sb(e,t){return e!=null&&t in ce(e)}function Eb(e,t,n){return e>=Fe(t,n)&&e<Ce(t,n)}function No(e,t,n){for(var a=n?co:Sr,f=e[0].length,h=e.length,v=h,y=N(h),A=1/0,P=[];v--;){var R=e[v];v&&t&&(R=ve(R,ze(t))),A=Fe(R.length,A),y[v]=!n&&(t||f>=120&&R.length>=120)?new Xt(v&&R):r}R=e[0];var M=-1,V=y[0];e:for(;++M<f&&P.length<A;){var H=R[M],k=t?t(H):H;if(H=n||H!==0?H:0,!(V?jn(V,k):a(P,k,n))){for(v=h;--v;){var J=y[v];if(!(J?jn(J,k):a(e[v],k,n)))continue e}V&&V.push(k),P.push(H)}}return P}function Ib(e,t,n,a){return gt(e,function(f,h,v){t(a,n(f),h,v)}),a}function Xn(e,t,n){t=Ut(t,e),e=$l(e,t);var a=e==null?e:e[vt(rt(t))];return a==null?r:je(a,e,n)}function zs(e){return ye(e)&&Pe(e)==Lt}function Ob(e){return ye(e)&&Pe(e)==Wn}function Nb(e){return ye(e)&&Pe(e)==Bn}function Qn(e,t,n,a,f){return e===t?!0:e==null||t==null||!ye(e)&&!ye(t)?e!==e&&t!==t:$b(e,t,n,a,Qn,f)}function $b(e,t,n,a,f,h){var v=Y(e),y=Y(t),A=v?wt:Le(e),P=y?wt:Le(t);A=A==Lt?bt:A,P=P==Lt?bt:P;var R=A==bt,M=P==bt,V=A==P;if(V&&Ht(e)){if(!Ht(t))return!1;v=!0,R=!1}if(V&&!R)return h||(h=new lt),v||An(e)?Al(e,t,n,a,f,h):ix(e,t,A,n,a,f,h);if(!(n&I)){var H=R&&fe.call(e,"__wrapped__"),k=M&&fe.call(t,"__wrapped__");if(H||k){var J=H?e.value():e,G=k?t.value():t;return h||(h=new lt),f(J,G,n,a,h)}}return V?(h||(h=new lt),ox(e,t,n,a,f,h)):!1}function Fb(e){return ye(e)&&Le(e)==at}function $o(e,t,n,a){var f=n.length,h=f,v=!a;if(e==null)return!h;for(e=ce(e);f--;){var y=n[f];if(v&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++f<h;){y=n[f];var A=y[0],P=e[A],R=y[1];if(v&&y[2]){if(P===r&&!(A in e))return!1}else{var M=new lt;if(a)var V=a(P,R,A,e,t,M);if(!(V===r?Qn(R,P,I|x,a,M):V))return!1}}return!0}function ks(e){if(!me(e)||gx(e))return!1;var t=It(e)?Fw:x_;return t.test(nn(e))}function Lb(e){return ye(e)&&Pe(e)==Un}function Pb(e){return ye(e)&&Le(e)==ut}function Rb(e){return ye(e)&&si(e.length)&&!!pe[Pe(e)]}function Gs(e){return typeof e=="function"?e:e==null?He:typeof e=="object"?Y(e)?Zs(e[0],e[1]):Ys(e):vf(e)}function Fo(e){if(!nr(e))return Bw(e);var t=[];for(var n in ce(e))fe.call(e,n)&&n!="constructor"&&t.push(n);return t}function Mb(e){if(!me(e))return yx(e);var t=nr(e),n=[];for(var a in e)a=="constructor"&&(t||!fe.call(e,a))||n.push(a);return n}function Lo(e,t){return e<t}function Ks(e,t){var n=-1,a=Ue(e)?N(e.length):[];return Bt(e,function(f,h,v){a[++n]=t(f,h,v)}),a}function Ys(e){var t=Ko(e);return t.length==1&&t[0][2]?Ol(t[0][0],t[0][1]):function(n){return n===e||$o(n,e,t)}}function Zs(e,t){return Zo(e)&&Il(t)?Ol(vt(e),t):function(n){var a=aa(n,e);return a===r&&a===t?ua(n,e):Qn(t,a,I|x)}}function kr(e,t,n,a,f){e!==t&&Eo(t,function(h,v){if(f||(f=new lt),me(h))Db(e,t,v,n,kr,a,f);else{var y=a?a(Xo(e,v),h,v+"",e,t,f):r;y===r&&(y=h),Co(e,v,y)}},qe)}function Db(e,t,n,a,f,h,v){var y=Xo(e,n),A=Xo(t,n),P=v.get(A);if(P){Co(e,n,P);return}var R=h?h(y,A,n+"",e,t,v):r,M=R===r;if(M){var V=Y(A),H=!V&&Ht(A),k=!V&&!H&&An(A);R=A,V||H||k?Y(y)?R=y:we(y)?R=Ve(y):H?(M=!1,R=sl(A,!0)):k?(M=!1,R=ll(A,!0)):R=[]:ir(A)||rn(A)?(R=y,rn(y)?R=af(y):(!me(y)||It(y))&&(R=El(A))):M=!1}M&&(v.set(A,R),f(R,A,a,h,v),v.delete(A)),Co(e,n,R)}function Js(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Et(t,n)?e[t]:r}function Xs(e,t,n){t.length?t=ve(t,function(h){return Y(h)?function(v){return en(v,h.length===1?h[0]:h)}:h}):t=[He];var a=-1;t=ve(t,ze(j()));var f=Ks(e,function(h,v,y){var A=ve(t,function(P){return P(h)});return{criteria:A,index:++a,value:h}});return fw(f,function(h,v){return Zb(h,v,n)})}function Bb(e,t){return Qs(e,t,function(n,a){return ua(e,a)})}function Qs(e,t,n){for(var a=-1,f=t.length,h={};++a<f;){var v=t[a],y=en(e,v);n(y,v)&&er(h,Ut(v,e),y)}return h}function Vb(e){return function(t){return en(t,e)}}function Po(e,t,n,a){var f=a?lw:hn,h=-1,v=t.length,y=e;for(e===t&&(t=Ve(t)),n&&(y=ve(e,ze(n)));++h<v;)for(var A=0,P=t[h],R=n?n(P):P;(A=f(y,R,A,a))>-1;)y!==e&&Mr.call(y,A,1),Mr.call(e,A,1);return e}function el(e,t){for(var n=e?t.length:0,a=n-1;n--;){var f=t[n];if(n==a||f!==h){var h=f;Et(f)?Mr.call(e,f,1):Bo(e,f)}}return e}function Ro(e,t){return e+Vr(Ps()*(t-e+1))}function Ub(e,t,n,a){for(var f=-1,h=Ce(Br((t-e)/(n||1)),0),v=N(h);h--;)v[a?h:++f]=e,e+=n;return v}function Mo(e,t){var n="";if(!e||t<1||t>le)return n;do t%2&&(n+=e),t=Vr(t/2),t&&(e+=e);while(t);return n}function X(e,t){return Qo(Nl(e,t,He),e+"")}function qb(e){return Ds(Cn(e))}function Hb(e,t){var n=Cn(e);return ni(n,Qt(t,0,n.length))}function er(e,t,n,a){if(!me(e))return e;t=Ut(t,e);fo