UNPKG

@prefecthq/vue-compositions

Version:

A collection of reusable vue compositions.

8 lines 115 kB
(function(C,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],v):(C=typeof globalThis<"u"?globalThis:C||self,v(C["vue-compositions"]={},C.Vue,C.vueRouter))})(this,(function(C,v,bu){"use strict";function ec(f){const s=v.ref(f??!1);return{value:s,toggle:()=>{s.value=!s.value},setTrue:()=>{s.value=!0},setFalse:()=>{s.value=!1}}}function So(f){let s=null;const i=(T,E)=>{const L=v.ref(T),M=b();L.value&&M.observe(L.value,E)},d=()=>{b().disconnect()},m=(T,E)=>{const L=v.ref(T);if(!L.value)return;const M=new MutationObserver(f);M.observe(L.value,E),setTimeout(()=>M.disconnect(),100)};function b(){return s||S(),s}function S(){s=new MutationObserver(f)}return v.onMounted(()=>{S()}),v.onUnmounted(()=>{d()}),{observe:i,disconnect:d,check:m}}function ni(f){let s=null;const i=E=>{const L=v.ref(E),M=S();L.value&&M.observe(L.value)},d=E=>{const L=v.ref(E),M=S();L.value&&M.unobserve(L.value)},m=()=>{S().disconnect()},b=E=>{const L=v.ref(E);if(!L.value)return;const M=new ResizeObserver(f);M.observe(L.value),setTimeout(()=>M.disconnect(),100)};function S(){return s||T(),s}function T(){s=new ResizeObserver(f)}return v.onMounted(()=>{T()}),v.onUnmounted(()=>{m()}),{observe:i,disconnect:m,unobserve:d,check:b}}function yu(f){const s=eval;try{return s(f),!0}catch{return!1}}function Su(f){if(!(!yu("window")||!f))return window.getComputedStyle(f)}function Ao(f){const s=v.ref(f),i=Su(s.value),d=v.ref(i);function m([E]){tc(E.target)&&b(E.target)}function b(E){const L=Su(E);L&&(d.value=L)}const S=So(m),T=ni(m);return v.watch(s,E=>{E&&(b(E),S.disconnect(),S.observe(s,{attributes:!0,childList:!0}),T.disconnect(),T.observe(s))},{immediate:!0}),d}function tc(f){return!!f.attributes}function Ro(f){const s=v.ref(f),i={height:v.ref(0),width:v.ref(0),x:v.ref(0),y:v.ref(0),left:v.ref(0),top:v.ref(0),right:v.ref(0),bottom:v.ref(0)};function d(b){const S=b.getBoundingClientRect();i.height.value=S.height,i.width.value=S.width,i.x.value=S.x,i.y.value=S.y,i.left.value=S.left,i.top.value=S.top,i.right.value=S.right,i.bottom.value=S.bottom}const m=ni(([b])=>d(b.target));return v.watch(s,b=>{b&&(d(b),m.disconnect(),m.observe(s))},{immediate:!0}),i}function rc(f,s){const i=v.ref(f),d=v.ref(s),{width:m}=Ro(d),b=Ao(d);return v.computed(()=>{const S=Au(b.value?.paddingLeft),T=Au(b.value?.paddingRight),E=Au(b.value?.columnGap),L=m.value-S-T;return ic(i.value,E)>L})}function Au(f){return f?parseInt(f):0}function ic(f,s){return f.map(Su).reduce((i,d)=>(d&&(i+=parseInt(d.width),i+=parseInt(d.marginLeft)+parseInt(d.marginRight),d.boxSizing==="border-box"&&(i+=parseInt(d.borderLeftWidth)+parseInt(d.borderRightWidth))),i+s),0)}function ei(f){return v.getCurrentScope()?(v.onScopeDispose(f),!0):!1}const uc={immediate:!0};function xo(f,s,i,d={}){const{immediate:m,...b}={...uc,...d},S=v.ref(!m);function T(){v.toValue(f)?.addEventListener(s,i,b)}function E(){v.toValue(f)?.removeEventListener(s,i,b)}return ei(E),v.watch(()=>v.toValue(f),()=>{S.value||(E(),T())},{immediate:!0}),{add:()=>{T()},remove:()=>{S.value=!0,E()}}}function _r(f,s,i){return xo(document,f,s,i)}const Ut=new Map;function sc(f){for(const{element:s,callback:i}of Ut.values())v.toValue(s).contains(f.target)||i()}const{add:oc,remove:fc}=_r("click",sc,{capture:!0});function Io(){Ut.size>0||fc()}function To(){Ut.size>0||oc()}function ac(f,s){const i=Symbol("useClickOutside");Ut.set(i,{element:f,callback:s}),To();function d(){Ut.delete(i),Io()}function m(){Ut.set(i,{element:f,callback:s}),To()}return v.onScopeDispose(()=>{d(),Io()}),{off:d,on:m}}var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eo(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ru,Oo;function cc(){if(Oo)return Ru;Oo=1;var f="Expected a function",s=NaN,i="[object Symbol]",d=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,S=/^0o[0-7]+$/i,T=parseInt,E=typeof ae=="object"&&ae&&ae.Object===Object&&ae,L=typeof self=="object"&&self&&self.Object===Object&&self,M=E||L||Function("return this")(),$=Object.prototype,Y=$.toString,F=Math.max,V=Math.min,on=function(){return M.Date.now()};function bn(G,un,hn){var yn,On,Oe,we,Cn,be,Ce=0,Gt=!1,Fe=!1,ee=!0;if(typeof G!="function")throw new TypeError(f);un=Dn(un)||0,Kn(hn)&&(Gt=!!hn.leading,Fe="maxWait"in hn,Oe=Fe?F(Dn(hn.maxWait)||0,un):Oe,ee="trailing"in hn?!!hn.trailing:ee);function zn(vn){var pn=yn,Vn=On;return yn=On=void 0,Ce=vn,we=G.apply(Vn,pn),we}function xr(vn){return Ce=vn,Cn=setTimeout(et,un),Gt?zn(vn):we}function nt(vn){var pn=vn-be,Vn=vn-Ce,_t=un-pn;return Fe?V(_t,Oe-Vn):_t}function Bn(vn){var pn=vn-be,Vn=vn-Ce;return be===void 0||pn>=un||pn<0||Fe&&Vn>=Oe}function et(){var vn=on();if(Bn(vn))return $t(vn);Cn=setTimeout(et,nt(vn))}function $t(vn){return Cn=void 0,ee&&yn?zn(vn):(yn=On=void 0,we)}function Ir(){Cn!==void 0&&clearTimeout(Cn),Ce=0,yn=be=On=Cn=void 0}function nn(){return Cn===void 0?we:$t(on())}function ye(){var vn=on(),pn=Bn(vn);if(yn=arguments,On=this,be=vn,pn){if(Cn===void 0)return xr(be);if(Fe)return Cn=setTimeout(et,un),zn(be)}return Cn===void 0&&(Cn=setTimeout(et,un)),we}return ye.cancel=Ir,ye.flush=nn,ye}function Kn(G){var un=typeof G;return!!G&&(un=="object"||un=="function")}function Hn(G){return!!G&&typeof G=="object"}function Nn(G){return typeof G=="symbol"||Hn(G)&&Y.call(G)==i}function Dn(G){if(typeof G=="number")return G;if(Nn(G))return s;if(Kn(G)){var un=typeof G.valueOf=="function"?G.valueOf():G;G=Kn(un)?un+"":un}if(typeof G!="string")return G===0?G:+G;G=G.replace(d,"");var hn=b.test(G);return hn||S.test(G)?T(G.slice(2),hn?2:8):m.test(G)?s:+G}return Ru=bn,Ru}var lc=cc();const hc=Eo(lc);function dc(f,s){const i=v.ref(s),d=v.ref(f.value),m=hc(b=>{b!==d.value&&(d.value=b)},i.value);return v.watchEffect(()=>m(f.value)),v.isReadonly(f)||v.watch(d,b=>{b!==f.value&&(f.value=b)},{flush:"sync"}),d}function gc(f){const s=v.ref(f),i=v.ref(0),m=ni(function([b]){const{width:S}=b.target.getBoundingClientRect();i.value=S});return v.watchEffect(()=>{if(s.value){const{width:b}=s.value.getBoundingClientRect();i.value=b,m.disconnect(),m.observe(s)}}),i}function xu(f,s={}){const i=v.ref(s),d=new Set;let m=null;function b(Y){const F=v.toValue(Y),V=M();F&&(V.observe(F),d.add(F))}function S(Y){const F=v.toValue(Y),V=M();F&&(V.unobserve(F),d.delete(F))}function T(){M().disconnect(),d.clear()}function E({root:Y,rootMargin:F,threshold:V}){return{root:v.unref(Y),rootMargin:F,threshold:V}}function L(Y){const F=v.toValue(Y);if(!F)return;const V=new IntersectionObserver(f,E(i.value));V.observe(F),setTimeout(()=>V.disconnect(),100)}function M(){return m||$(),m}function $(){m&&m.disconnect(),m=new IntersectionObserver(f,E(i.value)),d.forEach(Y=>m.observe(Y))}return v.onMounted(()=>{$()}),v.onUnmounted(()=>{T()}),v.watch(i,()=>{$()}),{observe:b,disconnect:T,unobserve:S,check:L}}function Co(f,s){return Lo(f)&&Lo(s)?f===s:JSON.stringify(f)===JSON.stringify(s)}function Lo(f){return JSON.stringify(f)==="null"}function pc(f,s){const i=v.ref(f),d=v.ref(s);return v.computed(()=>Co(i.value,d.value))}function je(f){return Array.isArray(f)?f:[f]}function Po(f){return Array.isArray(f)}function _c(){const f=v.reactive(new Set),s=new Set;function i(m){f.add(m.key),s.forEach(b=>b(m))}function d(m){f.delete(m.key)}return document.addEventListener("keydown",i),document.addEventListener("keyup",d),(...[m,b])=>{const S=v.computed(()=>je(v.unref(m))),T=v.computed(()=>S.value.some($=>f.has($))),E=$=>{S.value.includes($.key)&&b?.($)},L=()=>{s.add(E)},M=()=>{s.delete(E)};return L(),ei(M),{down:T,connect:L,disconnect:M}}}const vc=_c(),mc=No;function No(f){let s=window.matchMedia(v.unref(f));const i=v.ref(s.matches);let d;function m(b){i.value=b.matches}return s.addEventListener("change",m),v.isRef(f)&&(d=v.watch(f,()=>{s.removeEventListener("change",m),s=window.matchMedia(v.unref(f)),s.addEventListener("change",m)})),v.getCurrentInstance()&&v.onUnmounted(()=>{s.removeEventListener("change",m),d&&d()}),i}const ti=v.reactive({x:0,y:0}),ri=v.reactive({x:0,y:0}),Iu=()=>{Object.assign(ri,ti)},wc=f=>{ti.x=f.clientX,ti.y=f.clientY,ri.x===0&&ri.y===0&&Iu()},Tu=v.ref(0),{add:bc,remove:yc}=_r("mousemove",wc,{passive:!0}),{add:Sc,remove:Ac}=_r("click",Iu,{capture:!0}),{add:Rc,remove:xc}=_r("contextmenu",Iu,{capture:!0});function Ic(){Tu.value>0||(yc(),Ac(),xc())}function Tc(){bc(),Sc(),Rc()}function Ec(){return Tu.value+=1,Tc(),v.onScopeDispose(()=>{Tu.value-=1,Ic()}),{position:ti,positionAtLastClick:ri}}function Oc({immediate:f=!0,interval:s=0}={}){const i=v.ref(s),d=v.ref(b());let m=null;function b(){if(i.value===0)return new Date;const L=new Date().getTime(),M=Math.round(L/i.value)*i.value;return new Date(M)}function S(){const L=b();d.value.getTime()!==L.getTime()&&(d.value=L),m=window.requestAnimationFrame(S)}function T(){m&&window.cancelAnimationFrame(m),m=null}function E(){m=window.requestAnimationFrame(S)}return f&&E(),ei(T),{now:d,resume:E,pause:T}}function Cc(f,s){return v.computed({get(){return f.value[s]},set(i){f.value={...f.value,[s]:i}}})}const Mo={rootMargin:"-1px 0px 0px 0px",boundingElement:document.body};function Lc(f,s){const i=v.toRef(f),d=v.ref(!1),m=v.computed(()=>{const{rootMargin:E,boundingElement:L}=v.toValue(s??{}),M=E??Mo.rootMargin,$=L??Mo.boundingElement;return{threshold:[1],rootMargin:M,root:$}});function b(E){E.forEach(L=>{d.value=L.intersectionRatio<1})}const{observe:S,unobserve:T}=xu(b,m);return v.watch(i,(E,L)=>{T(L),S(E)},{immediate:!0}),{stuck:d}}function Pc(f,s=!0){const i=bu.useRoute();return v.computed(()=>{let d=i.params[f];return s&&Array.isArray(d)&&d.length&&([d]=d),d})}class Eu extends Error{constructor(){super("Invalid route query property")}}function Nc(){const f=v.reactive([]);let s,i,d;const m=async()=>{const S=ii(s.query,f);await i.push({query:S}),f.splice(0)};return v.watch(f,()=>{f.length&&(clearInterval(d),d=setTimeout(m))}),()=>{i=bu.useRouter(),s=bu.useRoute();const S=()=>{i.push({query:{}})},T=($,Y)=>{M[$]=Y},E=$=>M[$],L=$=>{delete M[$]},M=new Proxy({},{get($,Y){if(typeof Y=="symbol")throw new Eu;return ii(s.query,f)[Y]},set($,Y,F){if(typeof Y=="symbol")throw new Eu;const V=Mc(Y,F);return f.push(V),!0},deleteProperty($,Y){if(typeof Y=="symbol")throw new Eu;const F=Dc(Y);return f.push(F),!0},ownKeys(){const $=ii(s.query,f);return Object.keys($)},has($,Y){const F=ii(s.query,f);return Y in F}});return{clear:S,set:T,get:E,remove:L,query:M}}}function ii(f,s){let i={...f};for(const d of s)i=d(i);return i}function Mc(f,s){return i=>({...i,[f]:s})}function Dc(f){return s=>{const i={...s};return delete i[f],i}}const Do=Nc();class ne extends Error{}function ui(f){return f instanceof ne}function Ou(f){return!ui(f)}const Cu=Symbol();function vr(f){return typeof f=="function"&&Cu in f}function Lu(f){const[s]=je(f);return typeof s=="function"&&Cu in s}class Be{static[Cu]=!0;key;defaultValue;multiple;constructor({key:s,defaultValue:i,multiple:d}){this.key=s,this.defaultValue=i,this.multiple=d||Array.isArray(i)}get(s){if(!(this.key in s))return this.defaultValue;const d=je(s[this.key]).map(b=>this.safeParseValue(b)).filter(Ou);if(this.multiple)return d;const[m]=d;return m}set(s,i){if(i===void 0){delete s[this.key];return}const m=je(i).map(S=>this.safeFormatValue(S)).filter(Ou);if(m.length===0){delete s[this.key];return}if(this.multiple){s[this.key]=m;return}const[b]=m;s[this.key]=b}safeParseValue(s){try{return this.parse(s)}catch(i){return ui(i)||console.error(i),new ne}}safeFormatValue(s){try{return this.format(s)}catch(i){return ui(i)||console.error(i),new ne}}}class Wc extends Be{parse(s){if(s==="true")return!0;if(s==="false")return!1;throw new ne}format(s){return s?"true":"false"}}class Uc extends Be{parse(s){if(s===null)throw new ne;const i=new Date(s);if(isNaN(i.getTime()))throw new ne;return i}format(s){return s.toISOString()}}class Bc extends Be{parse(s){if(s==="true")return!0;if(s==="false")return!1;if(s===null)return s;throw new ne}format(s){return s===null?s:s?"true":"false"}}class Fc extends Be{parse(s){if(s===null)return null;const i=new Date(s);if(isNaN(i.getTime()))throw new ne;return i}format(s){return s===null?null:s.toISOString()}}class Gc extends Be{parse(s){if(s===null)return s;const i=parseInt(s);if(isNaN(i))throw new ne;return i}format(s){return`${s}`}}class $c extends Be{parse(s){return s}format(s){return s}}class qc extends Be{parse(s){if(s===null)throw new ne;const i=parseInt(s);if(isNaN(i))throw new ne;return i}format(s){return`${s}`}}class Wo extends Be{parse(s){if(typeof s!="string")throw new ne;return s}format(s){return s}}var mr={exports:{}};mr.exports;var Uo;function Kc(){return Uo||(Uo=1,(function(f,s){var i=200,d="__lodash_hash_undefined__",m=1,b=2,S=9007199254740991,T="[object Arguments]",E="[object Array]",L="[object AsyncFunction]",M="[object Boolean]",$="[object Date]",Y="[object Error]",F="[object Function]",V="[object GeneratorFunction]",on="[object Map]",bn="[object Number]",Kn="[object Null]",Hn="[object Object]",Nn="[object Promise]",Dn="[object Proxy]",G="[object RegExp]",un="[object Set]",hn="[object String]",yn="[object Symbol]",On="[object Undefined]",Oe="[object WeakMap]",we="[object ArrayBuffer]",Cn="[object DataView]",be="[object Float32Array]",Ce="[object Float64Array]",Gt="[object Int8Array]",Fe="[object Int16Array]",ee="[object Int32Array]",zn="[object Uint8Array]",xr="[object Uint8ClampedArray]",nt="[object Uint16Array]",Bn="[object Uint32Array]",et=/[\\^$.*+?()[\]{}|]/g,$t=/^\[object .+?Constructor\]$/,Ir=/^(?:0|[1-9]\d*)$/,nn={};nn[be]=nn[Ce]=nn[Gt]=nn[Fe]=nn[ee]=nn[zn]=nn[xr]=nn[nt]=nn[Bn]=!0,nn[T]=nn[E]=nn[we]=nn[M]=nn[Cn]=nn[$]=nn[Y]=nn[F]=nn[on]=nn[bn]=nn[Hn]=nn[G]=nn[un]=nn[hn]=nn[Oe]=!1;var ye=typeof ae=="object"&&ae&&ae.Object===Object&&ae,vn=typeof self=="object"&&self&&self.Object===Object&&self,pn=ye||vn||Function("return this")(),Vn=s&&!s.nodeType&&s,_t=Vn&&!0&&f&&!f.nodeType&&f,vt=_t&&_t.exports===Vn,tt=vt&&ye.process,Tr=(function(){try{return tt&&tt.binding&&tt.binding("util")}catch{}})(),Qn=Tr&&Tr.isTypedArray;function mt(c,p){for(var x=-1,P=c==null?0:c.length,an=0,K=[];++x<P;){var dn=c[x];p(dn,x,c)&&(K[an++]=dn)}return K}function $u(c,p){for(var x=-1,P=p.length,an=c.length;++x<P;)c[an+x]=p[x];return c}function Se(c,p){for(var x=-1,P=c==null?0:c.length;++x<P;)if(p(c[x],x,c))return!0;return!1}function li(c,p){for(var x=-1,P=Array(c);++x<c;)P[x]=p(x);return P}function qu(c){return function(p){return c(p)}}function wt(c,p){return c.has(p)}function te(c,p){return c?.[p]}function bt(c){var p=-1,x=Array(c.size);return c.forEach(function(P,an){x[++p]=[an,P]}),x}function qt(c,p){return function(x){return c(p(x))}}function Ku(c){var p=-1,x=Array(c.size);return c.forEach(function(P){x[++p]=P}),x}var yt=Array.prototype,Hu=Function.prototype,Le=Object.prototype,Pe=pn["__core-js_shared__"],Kt=Hu.toString,Yn=Le.hasOwnProperty,Ht=(function(){var c=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),zt=Le.toString,Er=RegExp("^"+Kt.call(Yn).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=vt?pn.Buffer:void 0,rt=pn.Symbol,Qt=pn.Uint8Array,Yt=Le.propertyIsEnumerable,zu=yt.splice,Ge=rt?rt.toStringTag:void 0,hi=Object.getOwnPropertySymbols,di=Vt?Vt.isBuffer:void 0,gi=qt(Object.keys,Object),Or=re(pn,"DataView"),St=re(pn,"Map"),Cr=re(pn,"Promise"),Lr=re(pn,"Set"),Zt=re(pn,"WeakMap"),At=re(Object,"create"),Vu=Ke(Or),Qu=Ke(St),Pr=Ke(Cr),Yu=Ke(Lr),Nr=Ke(Zt),pi=rt?rt.prototype:void 0,Mr=pi?pi.valueOf:void 0;function $e(c){var p=-1,x=c==null?0:c.length;for(this.clear();++p<x;){var P=c[p];this.set(P[0],P[1])}}function Zu(){this.__data__=At?At(null):{},this.size=0}function Ju(c){var p=this.has(c)&&delete this.__data__[c];return this.size-=p?1:0,p}function Xu(c){var p=this.__data__;if(At){var x=p[c];return x===d?void 0:x}return Yn.call(p,c)?p[c]:void 0}function ku(c){var p=this.__data__;return At?p[c]!==void 0:Yn.call(p,c)}function ju(c,p){var x=this.__data__;return this.size+=this.has(c)?0:1,x[c]=At&&p===void 0?d:p,this}$e.prototype.clear=Zu,$e.prototype.delete=Ju,$e.prototype.get=Xu,$e.prototype.has=ku,$e.prototype.set=ju;function ce(c){var p=-1,x=c==null?0:c.length;for(this.clear();++p<x;){var P=c[p];this.set(P[0],P[1])}}function ns(){this.__data__=[],this.size=0}function es(c){var p=this.__data__,x=Rt(p,c);if(x<0)return!1;var P=p.length-1;return x==P?p.pop():zu.call(p,x,1),--this.size,!0}function ts(c){var p=this.__data__,x=Rt(p,c);return x<0?void 0:p[x][1]}function rs(c){return Rt(this.__data__,c)>-1}function is(c,p){var x=this.__data__,P=Rt(x,c);return P<0?(++this.size,x.push([c,p])):x[P][1]=p,this}ce.prototype.clear=ns,ce.prototype.delete=es,ce.prototype.get=ts,ce.prototype.has=rs,ce.prototype.set=is;function qe(c){var p=-1,x=c==null?0:c.length;for(this.clear();++p<x;){var P=c[p];this.set(P[0],P[1])}}function Jt(){this.size=0,this.__data__={hash:new $e,map:new(St||ce),string:new $e}}function us(c){var p=it(this,c).delete(c);return this.size-=p?1:0,p}function Xt(c){return it(this,c).get(c)}function ss(c){return it(this,c).has(c)}function os(c,p){var x=it(this,c),P=x.size;return x.set(c,p),this.size+=x.size==P?0:1,this}qe.prototype.clear=Jt,qe.prototype.delete=us,qe.prototype.get=Xt,qe.prototype.has=ss,qe.prototype.set=os;function kt(c){var p=-1,x=c==null?0:c.length;for(this.__data__=new qe;++p<x;)this.add(c[p])}function _i(c){return this.__data__.set(c,d),this}function vi(c){return this.__data__.has(c)}kt.prototype.add=kt.prototype.push=_i,kt.prototype.has=vi;function Ae(c){var p=this.__data__=new ce(c);this.size=p.size}function fs(){this.__data__=new ce,this.size=0}function as(c){var p=this.__data__,x=p.delete(c);return this.size=p.size,x}function cs(c){return this.__data__.get(c)}function ls(c){return this.__data__.has(c)}function mi(c,p){var x=this.__data__;if(x instanceof ce){var P=x.__data__;if(!St||P.length<i-1)return P.push([c,p]),this.size=++x.size,this;x=this.__data__=new qe(P)}return x.set(c,p),this.size=x.size,this}Ae.prototype.clear=fs,Ae.prototype.delete=as,Ae.prototype.get=cs,Ae.prototype.has=ls,Ae.prototype.set=mi;function wi(c,p){var x=er(c),P=!x&&Li(c),an=!x&&!P&&Ur(c),K=!x&&!P&&!an&&Mi(c),dn=x||P||an||K,xn=dn?li(c.length,String):[],k=xn.length;for(var cn in c)Yn.call(c,cn)&&!(dn&&(cn=="length"||an&&(cn=="offset"||cn=="parent")||K&&(cn=="buffer"||cn=="byteLength"||cn=="byteOffset")||Ii(cn,k)))&&xn.push(cn);return xn}function Rt(c,p){for(var x=c.length;x--;)if(Ci(c[x][0],p))return x;return-1}function Dr(c,p,x){var P=p(c);return er(c)?P:$u(P,x(c))}function xt(c){return c==null?c===void 0?On:Kn:Ge&&Ge in Object(c)?Ri(c):gs(c)}function Wr(c){return Tt(c)&&xt(c)==T}function It(c,p,x,P,an){return c===p?!0:c==null||p==null||!Tt(c)&&!Tt(p)?c!==c&&p!==p:bi(c,p,x,P,It,an)}function bi(c,p,x,P,an,K){var dn=er(c),xn=er(p),k=dn?E:Ne(c),cn=xn?E:Ne(p);k=k==T?Hn:k,cn=cn==T?Hn:cn;var Sn=k==Hn,Zn=cn==Hn,In=k==cn;if(In&&Ur(c)){if(!Ur(p))return!1;dn=!0,Sn=!1}if(In&&!Sn)return K||(K=new Ae),dn||Mi(c)?jt(c,p,x,P,an,K):ds(c,p,k,x,P,an,K);if(!(x&m)){var gn=Sn&&Yn.call(c,"__wrapped__"),Fn=Zn&&Yn.call(p,"__wrapped__");if(gn||Fn){var Re=gn?c.value():c,le=Fn?p.value():p;return K||(K=new Ae),an(Re,le,x,P,K)}}return In?(K||(K=new Ae),Ai(c,p,x,P,an,K)):!1}function hs(c){if(!Ni(c)||Ei(c))return!1;var p=tr(c)?Er:$t;return p.test(Ke(c))}function yi(c){return Tt(c)&&Pi(c.length)&&!!nn[xt(c)]}function Si(c){if(!Oi(c))return gi(c);var p=[];for(var x in Object(c))Yn.call(c,x)&&x!="constructor"&&p.push(x);return p}function jt(c,p,x,P,an,K){var dn=x&m,xn=c.length,k=p.length;if(xn!=k&&!(dn&&k>xn))return!1;var cn=K.get(c);if(cn&&K.get(p))return cn==p;var Sn=-1,Zn=!0,In=x&b?new kt:void 0;for(K.set(c,p),K.set(p,c);++Sn<xn;){var gn=c[Sn],Fn=p[Sn];if(P)var Re=dn?P(Fn,gn,Sn,p,c,K):P(gn,Fn,Sn,c,p,K);if(Re!==void 0){if(Re)continue;Zn=!1;break}if(In){if(!Se(p,function(le,Me){if(!wt(In,Me)&&(gn===le||an(gn,le,x,P,K)))return In.push(Me)})){Zn=!1;break}}else if(!(gn===Fn||an(gn,Fn,x,P,K))){Zn=!1;break}}return K.delete(c),K.delete(p),Zn}function ds(c,p,x,P,an,K,dn){switch(x){case Cn:if(c.byteLength!=p.byteLength||c.byteOffset!=p.byteOffset)return!1;c=c.buffer,p=p.buffer;case we:return!(c.byteLength!=p.byteLength||!K(new Qt(c),new Qt(p)));case M:case $:case bn:return Ci(+c,+p);case Y:return c.name==p.name&&c.message==p.message;case G:case hn:return c==p+"";case on:var xn=bt;case un:var k=P&m;if(xn||(xn=Ku),c.size!=p.size&&!k)return!1;var cn=dn.get(c);if(cn)return cn==p;P|=b,dn.set(c,p);var Sn=jt(xn(c),xn(p),P,an,K,dn);return dn.delete(c),Sn;case yn:if(Mr)return Mr.call(c)==Mr.call(p)}return!1}function Ai(c,p,x,P,an,K){var dn=x&m,xn=nr(c),k=xn.length,cn=nr(p),Sn=cn.length;if(k!=Sn&&!dn)return!1;for(var Zn=k;Zn--;){var In=xn[Zn];if(!(dn?In in p:Yn.call(p,In)))return!1}var gn=K.get(c);if(gn&&K.get(p))return gn==p;var Fn=!0;K.set(c,p),K.set(p,c);for(var Re=dn;++Zn<k;){In=xn[Zn];var le=c[In],Me=p[In];if(P)var Br=dn?P(Me,le,In,p,c,K):P(le,Me,In,c,p,K);if(!(Br===void 0?le===Me||an(le,Me,x,P,K):Br)){Fn=!1;break}Re||(Re=In=="constructor")}if(Fn&&!Re){var Et=c.constructor,Ln=p.constructor;Et!=Ln&&"constructor"in c&&"constructor"in p&&!(typeof Et=="function"&&Et instanceof Et&&typeof Ln=="function"&&Ln instanceof Ln)&&(Fn=!1)}return K.delete(c),K.delete(p),Fn}function nr(c){return Dr(c,vs,xi)}function it(c,p){var x=c.__data__;return Ti(p)?x[typeof p=="string"?"string":"hash"]:x.map}function re(c,p){var x=te(c,p);return hs(x)?x:void 0}function Ri(c){var p=Yn.call(c,Ge),x=c[Ge];try{c[Ge]=void 0;var P=!0}catch{}var an=zt.call(c);return P&&(p?c[Ge]=x:delete c[Ge]),an}var xi=hi?function(c){return c==null?[]:(c=Object(c),mt(hi(c),function(p){return Yt.call(c,p)}))}:fn,Ne=xt;(Or&&Ne(new Or(new ArrayBuffer(1)))!=Cn||St&&Ne(new St)!=on||Cr&&Ne(Cr.resolve())!=Nn||Lr&&Ne(new Lr)!=un||Zt&&Ne(new Zt)!=Oe)&&(Ne=function(c){var p=xt(c),x=p==Hn?c.constructor:void 0,P=x?Ke(x):"";if(P)switch(P){case Vu:return Cn;case Qu:return on;case Pr:return Nn;case Yu:return un;case Nr:return Oe}return p});function Ii(c,p){return p=p??S,!!p&&(typeof c=="number"||Ir.test(c))&&c>-1&&c%1==0&&c<p}function Ti(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Ei(c){return!!Ht&&Ht in c}function Oi(c){var p=c&&c.constructor,x=typeof p=="function"&&p.prototype||Le;return c===x}function gs(c){return zt.call(c)}function Ke(c){if(c!=null){try{return Kt.call(c)}catch{}try{return c+""}catch{}}return""}function Ci(c,p){return c===p||c!==c&&p!==p}var Li=Wr((function(){return arguments})())?Wr:function(c){return Tt(c)&&Yn.call(c,"callee")&&!Yt.call(c,"callee")},er=Array.isArray;function ps(c){return c!=null&&Pi(c.length)&&!tr(c)}var Ur=di||sn;function _s(c,p){return It(c,p)}function tr(c){if(!Ni(c))return!1;var p=xt(c);return p==F||p==V||p==L||p==Dn}function Pi(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=S}function Ni(c){var p=typeof c;return c!=null&&(p=="object"||p=="function")}function Tt(c){return c!=null&&typeof c=="object"}var Mi=Qn?qu(Qn):yi;function vs(c){return ps(c)?wi(c):Si(c)}function fn(){return[]}function sn(){return!1}f.exports=_s})(mr,mr.exports)),mr.exports}var Hc=Kc();const Pu=Eo(Hc);function zc(f){const[s]=je(f);return!vr(s)}function Nu(f,s,i){if(zc(s))return Nu(f,Wo,s);const{query:m}=Do(),b=Array.isArray(s),[S]=je(s),T=i,E=new S({key:f,defaultValue:T,multiple:b});return v.computed({get(L){const M=E.get(m);return Pu(M,L)?L:M},set(L){E.set(m,L)}})}function Bo(f,s){const i="dummy-key",d={},m=Array.isArray(f),[b]=je(f);return new b({multiple:m,key:i,defaultValue:s}).set(d,s),d[i]}function Vc(f){return f instanceof Date}function Fo(f){return typeof f=="object"&&f!==null&&!Vc(f)}function Qc(f,s){const i=Object.entries(f),d={};return i.reduce((m,[b,S])=>(m[b]=s(b,S),m),d)}function Go(f,s,i){const d=b=>i?`${i}.${b}`:b,m={};return Object.keys(f).forEach(b=>{const S=f[b],T=d(b),E=s[b];if(vr(S)||Lu(S)){m[T]=Bo(S,E);return}if(Mu(S)&&Fo(E)){const L=Go(S,E,T);Object.entries(L).forEach(([M,$])=>{m[M]=$})}}),m}function Yc(f,s,i){return $o(f,s,i)}function Mu(f){return!vr(f)}function $o(f,s,i){const d=b=>i?`${i}.${b}`:b;return Object.keys(f).reduce((b,S)=>{const T=f[S],E=s[S];if(vr(T)||Lu(T))return b[S]=Nu(d(S),T,E),b;if(Mu(T)){const L=E??{};return b[S]=$o(T,L,d(S)),b}return b},{})}function Zc(f,s){const i=v.ref(f),d=v.ref(s),m=()=>{!i.value||!d.value||(d.value.scrollTop=i.value.scrollTop,d.value.scrollLeft=i.value.scrollLeft)},b=()=>{i.value&&i.value.addEventListener("scroll",m)},S=()=>{i.value&&i.value.removeEventListener("scroll",m)};return v.onMounted(b),v.onUnmounted(S),{disconnect:S,source:i,target:d}}class Jc{type;get length(){const s=this.storage();return s?s.length:0}constructor(s){this.type=s}get(s,i=null){const d=this.storage();if(!d)return null;const m=d.getItem(s);if(m===null)return i;try{return JSON.parse(m)}catch{return console.error(`Unable to parse current value for key ${s}, returning default instead`),i}}set(s,i){const d=JSON.stringify(i),m=this.storage();if(m)return m.setItem(s,d)}remove(s){const i=this.storage();if(i)return i.removeItem(s)}clear(){const s=this.storage();if(s)return s.clear()}key(s){const i=this.storage();return i?i.key(s):null}storage(){return this.type==="local"&&yu("localStorage")?localStorage:this.type==="session"&&yu("sessionStorage")?sessionStorage:null}}function Du(f,s,i=null){const d=new Jc(f),m=d.get(s,i),b=v.ref(m);let S=!1;const T=()=>{S=!0,d.remove(s),b.value=null},E=L=>{b.value=L};return v.watch(b,L=>{if(S){console.warn(`Storage for key ${s} as been removed and cannot be updated`);return}d.set(s,L)}),{value:b,initialValue:m,remove:T,set:E}}function Xc(f,s=null){return Du("session",f,s)}function kc(f,s=null){return Du("local",f,s)}function jc(f){const s=Reflect.ownKeys(Object.prototype),i={};let d=Reflect.getPrototypeOf(f);for(Reflect.ownKeys(f).forEach(m=>{typeof m=="string"&&typeof f[m]=="function"&&(i[m]=f[m].bind(f))});d&&d!==Object.prototype;)Reflect.ownKeys(d).forEach(m=>{typeof m=="string"&&typeof i[m]>"u"&&typeof f[m]=="function"&&!s.includes(m)&&(i[m]=d[m].bind(f))}),d=Reflect.getPrototypeOf(d);return i}function Wu(f){return v.unref(f).map(v.unref)}function nl(f){return v.isRef(f)||v.isReactive(f)?f:Array.isArray(f)?f.filter(s=>v.isRef(s)||v.isReactive(s)):null}function si(f){const{loading:s,error:i,errored:d,response:m,executed:b,paused:S,late:T}=f;return{loading:s,error:i,errored:d,response:m,executed:b,paused:S,late:T,refresh:()=>f.refresh(),unsubscribe:()=>f.unsubscribe(),isSubscribed:()=>f.isSubscribed(),promise:()=>f.promise().then(E=>el(E))}}function el(f){const{loading:s,error:i,errored:d,response:m,executed:b,paused:S,late:T}=f;return v.reactive({loading:s,error:i,errored:d,response:m,executed:b,paused:S,late:T,refresh:()=>f.refresh(),unsubscribe:()=>f.unsubscribe(),isSubscribed:()=>f.isSubscribed()})}var wr={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 */var tl=wr.exports,qo;function rl(){return qo||(qo=1,(function(f,s){(function(){var i,d="4.17.21",m=200,b="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",T="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",L=500,M="__lodash_placeholder__",$=1,Y=2,F=4,V=1,on=2,bn=1,Kn=2,Hn=4,Nn=8,Dn=16,G=32,un=64,hn=128,yn=256,On=512,Oe=30,we="...",Cn=800,be=16,Ce=1,Gt=2,Fe=3,ee=1/0,zn=9007199254740991,xr=17976931348623157e292,nt=NaN,Bn=4294967295,et=Bn-1,$t=Bn>>>1,Ir=[["ary",hn],["bind",bn],["bindKey",Kn],["curry",Nn],["curryRight",Dn],["flip",On],["partial",G],["partialRight",un],["rearg",yn]],nn="[object Arguments]",ye="[object Array]",vn="[object AsyncFunction]",pn="[object Boolean]",Vn="[object Date]",_t="[object DOMException]",vt="[object Error]",tt="[object Function]",Tr="[object GeneratorFunction]",Qn="[object Map]",mt="[object Number]",$u="[object Null]",Se="[object Object]",li="[object Promise]",qu="[object Proxy]",wt="[object RegExp]",te="[object Set]",bt="[object String]",qt="[object Symbol]",Ku="[object Undefined]",yt="[object WeakMap]",Hu="[object WeakSet]",Le="[object ArrayBuffer]",Pe="[object DataView]",Kt="[object Float32Array]",Yn="[object Float64Array]",Ht="[object Int8Array]",zt="[object Int16Array]",Er="[object Int32Array]",Vt="[object Uint8Array]",rt="[object Uint8ClampedArray]",Qt="[object Uint16Array]",Yt="[object Uint32Array]",zu=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,hi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,di=/&(?:amp|lt|gt|quot|#39);/g,gi=/[&<>"']/g,Or=RegExp(di.source),St=RegExp(gi.source),Cr=/<%-([\s\S]+?)%>/g,Lr=/<%([\s\S]+?)%>/g,Zt=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vu=/^\w*$/,Qu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/[\\^$.*+?()[\]{}|]/g,Yu=RegExp(Pr.source),Nr=/^\s+/,pi=/\s/,Mr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$e=/\{\n\/\* \[wrapped with (.+)\] \*/,Zu=/,? & /,Ju=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xu=/[()=,{}\[\]\/\s]/,ku=/\\(\\)?/g,ju=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ce=/\w*$/,ns=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,ts=/^\[object .+?Constructor\]$/,rs=/^0o[0-7]+$/i,is=/^(?:0|[1-9]\d*)$/,qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,us=/['\n\r\u2028\u2029\\]/g,Xt="\\ud800-\\udfff",ss="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",kt="\\u20d0-\\u20ff",_i=ss+os+kt,vi="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",fs="\\xac\\xb1\\xd7\\xf7",as="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cs="\\u2000-\\u206f",ls=" \\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",mi="A-Z\\xc0-\\xd6\\xd8-\\xde",wi="\\ufe0e\\ufe0f",Rt=fs+as+cs+ls,Dr="['’]",xt="["+Xt+"]",Wr="["+Rt+"]",It="["+_i+"]",bi="\\d+",hs="["+vi+"]",yi="["+Ae+"]",Si="[^"+Xt+Rt+bi+vi+Ae+mi+"]",jt="\\ud83c[\\udffb-\\udfff]",ds="(?:"+It+"|"+jt+")",Ai="[^"+Xt+"]",nr="(?:\\ud83c[\\udde6-\\uddff]){2}",it="[\\ud800-\\udbff][\\udc00-\\udfff]",re="["+mi+"]",Ri="\\u200d",xi="(?:"+yi+"|"+Si+")",Ne="(?:"+re+"|"+Si+")",Ii="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",Ti="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",Ei=ds+"?",Oi="["+wi+"]?",gs="(?:"+Ri+"(?:"+[Ai,nr,it].join("|")+")"+Oi+Ei+")*",Ke="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ci="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Li=Oi+Ei+gs,er="(?:"+[hs,nr,it].join("|")+")"+Li,ps="(?:"+[Ai+It+"?",It,nr,it,xt].join("|")+")",Ur=RegExp(Dr,"g"),_s=RegExp(It,"g"),tr=RegExp(jt+"(?="+jt+")|"+ps+Li,"g"),Pi=RegExp([re+"?"+yi+"+"+Ii+"(?="+[Wr,re,"$"].join("|")+")",Ne+"+"+Ti+"(?="+[Wr,re+xi,"$"].join("|")+")",re+"?"+xi+"+"+Ii,re+"+"+Ti,Ci,Ke,bi,er].join("|"),"g"),Ni=RegExp("["+Ri+Xt+_i+wi+"]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mi=["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"],vs=-1,fn={};fn[Kt]=fn[Yn]=fn[Ht]=fn[zt]=fn[Er]=fn[Vt]=fn[rt]=fn[Qt]=fn[Yt]=!0,fn[nn]=fn[ye]=fn[Le]=fn[pn]=fn[Pe]=fn[Vn]=fn[vt]=fn[tt]=fn[Qn]=fn[mt]=fn[Se]=fn[wt]=fn[te]=fn[bt]=fn[yt]=!1;var sn={};sn[nn]=sn[ye]=sn[Le]=sn[Pe]=sn[pn]=sn[Vn]=sn[Kt]=sn[Yn]=sn[Ht]=sn[zt]=sn[Er]=sn[Qn]=sn[mt]=sn[Se]=sn[wt]=sn[te]=sn[bt]=sn[qt]=sn[Vt]=sn[rt]=sn[Qt]=sn[Yt]=!0,sn[vt]=sn[tt]=sn[yt]=!1;var c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},P={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},an=parseFloat,K=parseInt,dn=typeof ae=="object"&&ae&&ae.Object===Object&&ae,xn=typeof self=="object"&&self&&self.Object===Object&&self,k=dn||xn||Function("return this")(),cn=s&&!s.nodeType&&s,Sn=cn&&!0&&f&&!f.nodeType&&f,Zn=Sn&&Sn.exports===cn,In=Zn&&dn.process,gn=(function(){try{var g=Sn&&Sn.require&&Sn.require("util").types;return g||In&&In.binding&&In.binding("util")}catch{}})(),Fn=gn&&gn.isArrayBuffer,Re=gn&&gn.isDate,le=gn&&gn.isMap,Me=gn&&gn.isRegExp,Br=gn&&gn.isSet,Et=gn&&gn.isTypedArray;function Ln(g,y,w){switch(w.length){case 0:return g.call(y);case 1:return g.call(y,w[0]);case 2:return g.call(y,w[0],w[1]);case 3:return g.call(y,w[0],w[1],w[2])}return g.apply(y,w)}function Wl(g,y,w,N){for(var q=-1,en=g==null?0:g.length;++q<en;){var Tn=g[q];y(N,Tn,w(Tn),g)}return N}function he(g,y){for(var w=-1,N=g==null?0:g.length;++w<N&&y(g[w],w,g)!==!1;);return g}function Ul(g,y){for(var w=g==null?0:g.length;w--&&y(g[w],w,g)!==!1;);return g}function ef(g,y){for(var w=-1,N=g==null?0:g.length;++w<N;)if(!y(g[w],w,g))return!1;return!0}function ut(g,y){for(var w=-1,N=g==null?0:g.length,q=0,en=[];++w<N;){var Tn=g[w];y(Tn,w,g)&&(en[q++]=Tn)}return en}function Di(g,y){var w=g==null?0:g.length;return!!w&&rr(g,y,0)>-1}function ms(g,y,w){for(var N=-1,q=g==null?0:g.length;++N<q;)if(w(y,g[N]))return!0;return!1}function _n(g,y){for(var w=-1,N=g==null?0:g.length,q=Array(N);++w<N;)q[w]=y(g[w],w,g);return q}function st(g,y){for(var w=-1,N=y.length,q=g.length;++w<N;)g[q+w]=y[w];return g}function ws(g,y,w,N){var q=-1,en=g==null?0:g.length;for(N&&en&&(w=g[++q]);++q<en;)w=y(w,g[q],q,g);return w}function Bl(g,y,w,N){var q=g==null?0:g.length;for(N&&q&&(w=g[--q]);q--;)w=y(w,g[q],q,g);return w}function bs(g,y){for(var w=-1,N=g==null?0:g.length;++w<N;)if(y(g[w],w,g))return!0;return!1}var Fl=ys("length");function Gl(g){return g.split("")}function $l(g){return g.match(Ju)||[]}function tf(g,y,w){var N;return w(g,function(q,en,Tn){if(y(q,en,Tn))return N=en,!1}),N}function Wi(g,y,w,N){for(var q=g.length,en=w+(N?1:-1);N?en--:++en<q;)if(y(g[en],en,g))return en;return-1}function rr(g,y,w){return y===y?jl(g,y,w):Wi(g,rf,w)}function ql(g,y,w,N){for(var q=w-1,en=g.length;++q<en;)if(N(g[q],y))return q;return-1}function rf(g){return g!==g}function uf(g,y){var w=g==null?0:g.length;return w?As(g,y)/w:nt}function ys(g){return function(y){return y==null?i:y[g]}}function Ss(g){return function(y){return g==null?i:g[y]}}function sf(g,y,w,N,q){return q(g,function(en,Tn,ln){w=N?(N=!1,en):y(w,en,Tn,ln)}),w}function Kl(g,y){var w=g.length;for(g.sort(y);w--;)g[w]=g[w].value;return g}function As(g,y){for(var w,N=-1,q=g.length;++N<q;){var en=y(g[N]);en!==i&&(w=w===i?en:w+en)}return w}function Rs(g,y){for(var w=-1,N=Array(g);++w<g;)N[w]=y(w);return N}function Hl(g,y){return _n(y,function(w){return[w,g[w]]})}function of(g){return g&&g.slice(0,lf(g)+1).replace(Nr,"")}function ie(g){return function(y){return g(y)}}function xs(g,y){return _n(y,function(w){return g[w]})}function Fr(g,y){return g.has(y)}function ff(g,y){for(var w=-1,N=g.length;++w<N&&rr(y,g[w],0)>-1;);return w}function af(g,y){for(var w=g.length;w--&&rr(y,g[w],0)>-1;);return w}function zl(g,y){for(var w=g.length,N=0;w--;)g[w]===y&&++N;return N}var Vl=Ss(c),Ql=Ss(p);function Yl(g){return"\\"+P[g]}function Zl(g,y){return g==null?i:g[y]}function ir(g){return Ni.test(g)}function Jl(g){return Tt.test(g)}function Xl(g){for(var y,w=[];!(y=g.next()).done;)w.push(y.value);return w}function Is(g){var y=-1,w=Array(g.size);return g.forEach(function(N,q){w[++y]=[q,N]}),w}function cf(g,y){return function(w){return g(y(w))}}function ot(g,y){for(var w=-1,N=g.length,q=0,en=[];++w<N;){var Tn=g[w];(Tn===y||Tn===M)&&(g[w]=M,en[q++]=w)}return en}function Ui(g){var y=-1,w=Array(g.size);return g.forEach(function(N){w[++y]=N}),w}function kl(g){var y=-1,w=Array(g.size);return g.forEach(function(N){w[++y]=[N,N]}),w}function jl(g,y,w){for(var N=w-1,q=g.length;++N<q;)if(g[N]===y)return N;return-1}function nh(g,y,w){for(var N=w+1;N--;)if(g[N]===y)return N;return N}function ur(g){return ir(g)?th(g):Fl(g)}function xe(g){return ir(g)?rh(g):Gl(g)}function lf(g){for(var y=g.length;y--&&pi.test(g.charAt(y)););return y}var eh=Ss(x);function th(g){for(var y=tr.lastIndex=0;tr.test(g);)++y;return y}function rh(g){return g.match(tr)||[]}function ih(g){return g.match(Pi)||[]}var uh=(function g(y){y=y==null?k:sr.defaults(k.Object(),y,sr.pick(k,Mi));var w=y.Array,N=y.Date,q=y.Error,en=y.Function,Tn=y.Math,ln=y.Object,Ts=y.RegExp,sh=y.String,de=y.TypeError,Bi=w.prototype,oh=en.prototype,or=ln.prototype,Fi=y["__core-js_shared__"],Gi=oh.toString,rn=or.hasOwnProperty,fh=0,hf=(function(){var n=/[^.]+$/.exec(Fi&&Fi.keys&&Fi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),$i=or.toString,ah=Gi.call(ln),ch=k._,lh=Ts("^"+Gi.call(rn).replace(Pr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=Zn?y.Buffer:i,ft=y.Symbol,Ki=y.Uint8Array,df=qi?qi.allocUnsafe:i,Hi=cf(ln.getPrototypeOf,ln),gf=ln.create,pf=or.propertyIsEnumerable,zi=Bi.splice,_f=ft?ft.isConcatSpreadable:i,Gr=ft?ft.iterator:i,Ot=ft?ft.toStringTag:i,Vi=(function(){try{var n=Mt(ln,"defineProperty");return n({},"",{}),n}catch{}})(),hh=y.clearTimeout!==k.clearTimeout&&y.clearTimeout,dh=N&&N.now!==k.Date.now&&N.now,gh=y.setTimeout!==k.setTimeout&&y.setTimeout,Qi=Tn.ceil,Yi=Tn.floor,Es=ln.getOwnPropertySymbols,ph=qi?qi.isBuffer:i,vf=y.isFinite,_h=Bi.join,vh=cf(ln.keys,ln),En=Tn.max,Wn=Tn.min,mh=N.now,wh=y.parseInt,mf=Tn.random,bh=Bi.reverse,Os=Mt(y,"DataView"),$r=Mt(y,"Map"),Cs=Mt(y,"Promise"),fr=Mt(y,"Set"),qr=Mt(y,"WeakMap"),Kr=Mt(ln,"create"),Zi=qr&&new qr,ar={},yh=Dt(Os),Sh=Dt($r),Ah=Dt(Cs),Rh=Dt(fr),xh=Dt(qr),Ji=ft?ft.prototype:i,Hr=Ji?Ji.valueOf:i,wf=Ji?Ji.toString:i;function o(n){if(wn(n)&&!H(n)&&!(n instanceof X)){if(n instanceof ge)return n;if(rn.call(n,"__wrapped__"))return ba(n)}return new ge(n)}var cr=(function(){function n(){}return function(e){if(!mn(e))return{};if(gf)return gf(e);n.prototype=e;var t=new n;return n.prototype=i,t}})();function Xi(){}function ge(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}o.templateSettings={escape:Cr,evaluate:Lr,interpolate:Zt,variable:"",imports:{_:o}},o.prototype=Xi.prototype,o.prototype.constructor=o,ge.prototype=cr(Xi.prototype),ge.prototype.constructor=ge;function X(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bn,this.__views__=[]}function Ih(){var n=new X(this.__wrapped__);return n.__actions__=Jn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Jn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Jn(this.__views__),n}function Th(){if(this.__filtered__){var n=new X(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Eh(){var n=this.__wrapped__.value(),e=this.__dir__,t=H(n),r=e<0,u=t?n.length:0,a=Gd(0,u,this.__views__),l=a.start,h=a.end,_=h-l,A=r?h:l-1,R=this.__iteratees__,I=R.length,O=0,D=Wn(_,this.__takeCount__);if(!t||!r&&u==_&&D==_)return Kf(n,this.__actions__);var U=[];n:for(;_--&&O<D;){A+=e;for(var Q=-1,B=n[A];++Q<I;){var J=R[Q],j=J.iteratee,oe=J.type,qn=j(B);if(oe==Gt)B=qn;else if(!qn){if(oe==Ce)continue n;break n}}U[O++]=B}return U}X.prototype=cr(Xi.prototype),X.prototype.constructor=X;function Ct(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function Oh(){this.__data__=Kr?Kr(null):{},this.size=0}function Ch(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}function Lh(n){var e=this.__data__;if(Kr){var t=e[n];return t===E?i:t}return rn.call(e,n)?e[n]:i}function Ph(n){var e=this.__data__;return Kr?e[n]!==i:rn.call(e,n)}function Nh(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Kr&&e===i?E:e,this}Ct.prototype.clear=Oh,Ct.prototype.delete=Ch,Ct.prototype.get=Lh,Ct.prototype.has=Ph,Ct.prototype.set=Nh;function He(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function Mh(){this.__data__=[],this.size=0}function Dh(n){var e=this.__data__,t=ki(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():zi.call(e,t,1),--this.size,!0}function Wh(n){var e=this.__data__,t=ki(e,n);return t<0?i:e[t][1]}function Uh(n){return ki(this.__data__,n)>-1}function Bh(n,e){var t=this.__data__,r=ki(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}He.prototype.clear=Mh,He.prototype.delete=Dh,He.prototype.get=Wh,He.prototype.has=Uh,He.prototype.set=Bh;function ze(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function Fh(){this.size=0,this.__data__={hash:new Ct,map:new($r||He),string:new Ct}}function Gh(n){var e=cu(this,n).delete(n);return this.size-=e?1:0,e}function $h(n){return cu(this,n).get(n)}function qh(n){return cu(this,n).has(n)}function Kh(n,e){var t=cu(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}ze.prototype.clear=Fh,ze.prototype.delete=Gh,ze.prototype.get=$h,ze.prototype.has=qh,ze.prototype.set=Kh;function Lt(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new ze;++e<t;)this.add(n[e])}function Hh(n){return this.__data__.set(n,E),this}function zh(n){return this.__data__.has(n)}Lt.prototype.add=Lt.prototype.push=Hh,Lt.prototype.has=zh;function Ie(n){var e=this.__data__=new He(n);this.size=e.size}function Vh(){this.__data__=new He,this.size=0}function Qh(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function Yh(n){return this.__data__.get(n)}function Zh(n){return this.__data__.has(n)}function Jh(n,e){var t=this.__data__;if(t instanceof He){var r=t.__data__;if(!$r||r.length<m-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new ze(r)}return t.set(n,e),this.size=t.size,this}Ie.prototype.clear=Vh,Ie.prototype.delete=Qh,Ie.prototype.get=Yh,Ie.prototype.has=Zh,Ie.prototype.set=Jh;function bf(n,e){var t=H(n),r=!t&&Wt(n),u=!t&&!r&&dt(n),a=!t&&!r&&!u&&gr(n),l=t||r||u||a,h=l?Rs(n.length,sh):[],_=h.length;for(var A in n)(e||rn.call(n,A))&&!(l&&(A=="length"||u&&(A=="offset"||A=="parent")||a&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Ze(A,_)))&&h.push(A);return h}function yf(n){var e=n.length;return e?n[$s(0,e-1)]:i}function Xh(n,e){return lu(Jn(n),Pt(e,0,n.length))}function kh(n){return lu(Jn(n))}function Ls(n,e,t){(t!==i&&!Te(n[e],t)||t===i&&!(e in n))&&Ve(n,e,t)}function zr(n,e,t){var r=n[e];(!(rn.call(n,e)&&Te(r,t))||t===i&&!(e in n))&&Ve(n,e,t)}function ki(n,e){for(var t=n.length;t--;)if(Te(n[t][0],e))return t;return-1}function jh(n,e,t,r){return at(n,function(u,a,l){e(r,u,t(u),l)}),r}function Sf(n,e){return n&&We(e,Pn(e),n)}function nd(n,e){return n&&We(e,kn(e),n)}function Ve(n,e,t){e=="__proto__"&&Vi?Vi(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Ps(n,e){for(var t=-1,r=e.length,u=w(r),a=n==null;++t<r;)u[t]=a?i:ho(n,e[t]);return u}function Pt(n,e,t){return n===n&&(t!==i&&(n=n<=t?n:t),e!==i&&(n=n>=e?n:e)),n}function pe(n,e,t,r,u,a){var l,h=e&$,_=e&Y,A=e&F;if(t&&(l=u?t(n,r,u,a):t(n)),l!==i)return l;if(!mn(n))return n;var R=H(n);if(R){if(l=qd(n),!h)return Jn(n,l)}else{var I=Un(n),O=I==tt||I==Tr;if(dt(n))return Vf(n,h);if(I==Se||I==nn||O&&!u){if(l=_||O?{}:la(n),!h)return _?Ld(n,nd(l,n)):Cd(n,Sf(l,n))}else{if(!sn[I])return u?n:{};l=Kd(n,I,h)}}a||(a=new Ie);var D=a.get(n);if(D)return D;a.set(n,l),Ga(n)?n.forEach(function(B){l.add(pe(B,e,t,B,n,a))}):Ba(n)&&n.forEach(function(B,J){l.set(J,pe(B,e,t,J,n,a))});var U=A?_?ks:Xs:_?kn:Pn,Q=R?i:U(n);return he(Q||n,function(B,J){Q&&(J=B,B=n[J]),zr(l,J,pe(B,e,t,J,n,a))}),l}function ed(n){var e=Pn(n);return function(t){return Af(t,n,e)}}function Af(n,e,t){var r=t.length;if(n==null)return!r;for(n=ln(n);r--;){var u=t[r],a=e[u],l=n[u];if(l===i&&!(u in n)||!a(l))return!1}return!0}function Rf(n,e,t){if(typeof n!="function")throw new de(S);return kr(function(){n.apply(i,t)},e)}function Vr(n,e,t,r){var u=-1,a=Di,l=!0,h=n.length,_=[],A=e.length;if(!h)return _;t&&(e=_n(e,ie(t))),r?(a=ms,l=!1):e.length>=m&&(a=Fr,l=!1,e=new Lt(e));n:for(;++u<h;){var R=n[u],I=t==null?R:t(R);if(R=r||R!==0?R:0,l&&I===I){for(var O=A;O--;)if(e[O]===I)continue n;_.push(R)}else a(e,I,r)||_.push(R)}return _}var at=Xf(De),xf=Xf(Ms,!0);function td(n,e){var t=!0;return at(n,function(r,u,a){return t=!!e(r,u,a),t}),t}function ji(n,e,t){for(var r=-1,u=n.length;++r<u;){var a=n[r],l=e(a);if(l!=null&&(h===i?l===l&&!se(l):t(l,h)))var h=l,_=a}return _}function rd(n,e,t,r){var u=n.length;for(t=z(t),t<0&&(t=-t>u?0:u+t),r=r===i||r>u?u:z(r),r<0&&(r+=u),r=t>r?0:qa(r);t<r;)n[t++]=e;return n}function If(n,e){var t=[];return at(n,function(r,u,a){e(r,u,a)&&t.push(r)}),t}function Mn(n,e,t,r,u){var a=-1,l=n.length;for(t||(t=zd),u||(u=[]);++a<l;){var h=n[a];e>0&&t(h)?e>1?Mn(h,e-1,t,r,u):st(u,h):r||(u[u.length]=h)}return u}var Ns=kf(),Tf=kf(!0);function De(n,e){return n&&Ns(n,e,Pn)}function Ms(n,e){return n&&Tf(n,e,Pn)}function nu(n,e){return ut(e,function(t){return Je(n[t])})}function Nt(n,e){e=lt(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Ue(e[t++])];return t&&t==r?n:i}function Ef(n,e,t){var r=e(n);return H(n)?r:st(r,t(n))}function Gn(n){return n==null?n===i?Ku:$u:Ot&&Ot in ln(n)?Fd(n):kd(n)}function Ds(n,e){return n>e}function id(n,e){return n!=null&&rn.call(n,e)}function ud(n,e){return n!=null&&e in ln(n)}function sd(n,e,t){return n>=Wn(e,t)&&n<En(e,t)}function Ws(n,e,t){for(var r=t?ms:Di,u=n[0].length,a=n.length,l=a,h=w(a),_=1/0,A=[];l--;){var R=n[l];l&&e&&(R=_n(R,ie(e))),_=Wn(R.length,_),h[l]=!t&&(e||u>=120&&R.length>=120)?new Lt(l&&R):i}R=n[0];var I=-1,O=h[0];n:for(;++I<u&&A.length<_;){var D=R[I],U=e?e(D):D;if(D=t||D!==0?D:0,!(O?Fr(O,U):r(A,U,t))){for(l=a;--l;){var Q=h[l];if(!(Q?Fr(Q,U):r(n[l],U,t)))continue n}O&&O.push(U),A.push(D)}}return A}function od(n,e,t,r){return De(n,function(u,a,l){e(r,t(u),a,l)}),r}function Qr(n,e,t){e=lt(e,n),n=pa(n,e);var r=n==null?n:n[Ue(ve(e))];return r==null?i:Ln(r,n,t)}function Of(n){return wn(n)&&Gn(n)==nn}function fd(n){return wn(n)&&Gn(n)==Le}function ad(n){return wn(n)&&Gn(n)==Vn}function Yr(n,e,t,r,u){return n===e?!0:n==null||e==null||!wn(n)&&!wn(e)?n!==n&&e!==e:cd(n,e,t,r,Yr,u)}function cd(n,e,t,r,u,a){var l=H(n),h=H(e),_=l?ye:Un(n),A=h?ye:Un(e);_=_==nn?Se:_,A=A==nn?Se:A;var R=_==Se,I=A==Se,O=_==A;if(O&&dt(n)){if(!dt(e))return!1;l=!0,R=!1}if(O&&!R)return a||(a=new Ie),l||gr(n)?fa(n,e,t,r,u,a):Ud(n,e,_,t,r,u,a);if(!(t&V)){var D=R&&rn.call(n,"__wrapped__"),U=I&&rn.call(e,"__wrapped__");if(D||U){var Q=D?n.value():n,B=U?e.value():e;return a||(a=new Ie),u(Q,B,t,r,a)}}return O?(a||(a=new Ie),Bd(n,e,t,r,u,a)):!1}function ld(n){return wn(n)&&Un(n)==Qn}function Us(n,e,t,r){var u=t.length,a=u,l=!r;if(n==null)return!a;for(n=ln(n);u--;){var h=t[u];if(l&&h[2]?h[1]!==n[h[0]]:!(h[0]in n))return!1}for(;++u<a;){h=t[u];var _=h[0],A=n[_],R=h[1];if(l&&h[2]){if(A===i&&!(_ in n))return!1}else{var I=new Ie;if(r)var O=r(A,R,_,n,e,I);if(!(O===i?Yr(R,A,V|on,r,I):O))return!1}}return!0}function Cf(n){if(!mn(n)||Qd(n))return!1;var e=Je(n)?lh:ts;return e.test(Dt(n))}function hd(n){return wn(n)&&Gn(n)==wt}function dd(n){return wn(n)&&Un(n)==te}function gd(n){return wn(n)&&vu(n.length)&&!!fn[Gn(n)]}function Lf(n){return typeof n=="function"?n:n==null?jn:typeof n=="object"?H(n)?Mf(n[0],n[1]):Nf(n):ja(n)}function Bs(n){if(!Xr(n))return vh(n);var e=[];for(var t in ln(n))rn.call(n,t)&&t!="constructor"&&e.push(t);return e}function pd(n){if(!mn(n))return Xd(n);var e=Xr(n),t=[];for(var r in n)r=="constructor"&&(e||!rn.call(n,r))||t.push(r);return t}function Fs(n,e){return n<e}function Pf(n,e){var t=-1,r=Xn(n)?w(n.length):[];return at(n,function(u,a,l){r[++t]=e(u,a,l)}),r}function Nf(n){var e=no(n);return e.length==1&&e[0][2]?da(e[0][0],e[0][1]):function(t){return t===n||Us(t,n,e)}}function Mf(n,e){return to(n)&&ha(e)?da(Ue(n),e):function(t){var r=ho(t,n);return r===i&&r===e?go(t,n):Yr(e,r,V|on)}}function eu(n,e,t,r,u){n!==e&&Ns(e,function(a,l){if(u||(u=new Ie),mn(a))_d(n,e,l,t,eu,r,u);else{var h=r?r(io(n,l),a,l+"",n,e,u):i;h===i&&(h=a),Ls(n,l,h)}},kn)}function _d(n,e,t,r,u,a,l){var h=io(n,t),_=io(e,t),A=l.get(_);if(A){Ls(n,t,A);return}var R=a?a(h,_,t+"",n,e,l):i,I=R===i;if(I){var O=H(_),D=!O&&dt(_),U=!O&&!D&&gr(_);R=_,O||D||U?H(h)?R=h:An(h)?R=Jn(h):D?(I=!1,R=Vf(_,!0)):U?(I=!1,R=Qf(_,!0)):R=[]:jr(_)||Wt(_)?(R=h,Wt(h)?R=Ka(h):(!mn(h)||Je(h))&&(R=la(_))):I=!1}I&&(l.set(_,R),u(R,_,r,a,l),l.delete(_)),Ls(n,t,R)}function Df(n,e){var t=n.length;if(t)return e+=e<0?t:0,Ze(e,t)?n[e]:i}function Wf(n,e,t){e.length?e=_n(e,function(a){return H(a)?function(l){return Nt(l,a.length===1?a[0]:a)}:a}):e=[jn];var r=-1;e=_n(e,ie(W()));var u=Pf(n,function(a,l,h){var _=_n(e,function(A){return A(a)});return{criteria:_,index:++r,value:a}});return Kl(u,function(a,l){return Od(a,l,t)})}function vd(n,e){return Uf(n,e,function(t,r){return go(n,r)})}function Uf(n,e,t){for(var r=-1,u=e.length,a={};++r<u;){var l=e[r],h=Nt(n,l);t(h,l)&&Zr(a,lt(l,n),h)}return a}function md(n){return function(e){