@shopware-ag/meteor-admin-sdk
Version:
The Meteor SDK for the Shopware Administration.
8 lines • 256 kB
JavaScript
var ZM=Object.defineProperty;var JM=(tt,ke,gn)=>ke in tt?ZM(tt,ke,{enumerable:!0,configurable:!0,writable:!0,value:gn}):tt[ke]=gn;var ge=(tt,ke,gn)=>(JM(tt,typeof ke!="symbol"?ke+"":ke,gn),gn);(function(tt,ke){typeof exports=="object"&&typeof module!="undefined"?ke(exports):typeof define=="function"&&define.amd?define(["exports"],ke):(tt=typeof globalThis!="undefined"?globalThis:tt||self,ke(tt.sw={}))})(this,function(tt){var fh;"use strict";var ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function gn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mg=Object.prototype,yg=mg.hasOwnProperty;function bg(e,n){return e!=null&&yg.call(e,n)}var wg=bg,Eg=Array.isArray,cr=Eg,Sg=typeof ke=="object"&&ke&&ke.Object===Object&&ke,Ec=Sg,$g=Ec,Ag=typeof self=="object"&&self&&self.Object===Object&&self,Ig=$g||Ag||Function("return this")(),_n=Ig,Tg=_n,Cg=Tg.Symbol,Sa=Cg,Sc=Sa,$c=Object.prototype,Og=$c.hasOwnProperty,xg=$c.toString,Oi=Sc?Sc.toStringTag:void 0;function Rg(e){var n=Og.call(e,Oi),r=e[Oi];try{e[Oi]=void 0;var a=!0}catch{}var s=xg.call(e);return a&&(n?e[Oi]=r:delete e[Oi]),s}var Lg=Rg,Pg=Object.prototype,Ng=Pg.toString;function Dg(e){return Ng.call(e)}var Mg=Dg,Ac=Sa,Fg=Lg,Ug=Mg,jg="[object Null]",Bg="[object Undefined]",Ic=Ac?Ac.toStringTag:void 0;function zg(e){return e==null?e===void 0?Bg:jg:Ic&&Ic in Object(e)?Fg(e):Ug(e)}var xi=zg;function Wg(e){return e!=null&&typeof e=="object"}var Br=Wg,Gg=xi,Hg=Br,kg="[object Symbol]";function qg(e){return typeof e=="symbol"||Hg(e)&&Gg(e)==kg}var hs=qg,Kg=cr,Xg=hs,Yg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zg=/^\w*$/;function Jg(e,n){if(Kg(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Xg(e)?!0:Zg.test(e)||!Yg.test(e)||n!=null&&e in Object(n)}var Qg=Jg;function Vg(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Ri=Vg,e_=xi,t_=Ri,n_="[object AsyncFunction]",r_="[object Function]",i_="[object GeneratorFunction]",a_="[object Proxy]";function o_(e){if(!t_(e))return!1;var n=e_(e);return n==r_||n==i_||n==n_||n==a_}var Tc=o_,s_=_n,u_=s_["__core-js_shared__"],f_=u_,vs=f_,Cc=function(){var e=/[^.]+$/.exec(vs&&vs.keys&&vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c_(e){return!!Cc&&Cc in e}var l_=c_,p_=Function.prototype,d_=p_.toString;function h_(e){if(e!=null){try{return d_.call(e)}catch{}try{return e+""}catch{}}return""}var Oc=h_,v_=Tc,g_=l_,__=Ri,m_=Oc,y_=/[\\^$.*+?()[\]{}|]/g,b_=/^\[object .+?Constructor\]$/,w_=Function.prototype,E_=Object.prototype,S_=w_.toString,$_=E_.hasOwnProperty,A_=RegExp("^"+S_.call($_).replace(y_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I_(e){if(!__(e)||g_(e))return!1;var n=v_(e)?A_:b_;return n.test(m_(e))}var T_=I_;function C_(e,n){return e==null?void 0:e[n]}var O_=C_,x_=T_,R_=O_;function L_(e,n){var r=R_(e,n);return x_(r)?r:void 0}var lr=L_,P_=lr,N_=P_(Object,"create"),$a=N_,xc=$a;function D_(){this.__data__=xc?xc(null):{},this.size=0}var M_=D_;function F_(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var U_=F_,j_=$a,B_="__lodash_hash_undefined__",z_=Object.prototype,W_=z_.hasOwnProperty;function G_(e){var n=this.__data__;if(j_){var r=n[e];return r===B_?void 0:r}return W_.call(n,e)?n[e]:void 0}var H_=G_,k_=$a,q_=Object.prototype,K_=q_.hasOwnProperty;function X_(e){var n=this.__data__;return k_?n[e]!==void 0:K_.call(n,e)}var Y_=X_,Z_=$a,J_="__lodash_hash_undefined__";function Q_(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z_&&n===void 0?J_:n,this}var V_=Q_,em=M_,tm=U_,nm=H_,rm=Y_,im=V_;function zr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}zr.prototype.clear=em,zr.prototype.delete=tm,zr.prototype.get=nm,zr.prototype.has=rm,zr.prototype.set=im;var am=zr;function om(){this.__data__=[],this.size=0}var sm=om;function um(e,n){return e===n||e!==e&&n!==n}var Rc=um,fm=Rc;function cm(e,n){for(var r=e.length;r--;)if(fm(e[r][0],n))return r;return-1}var Aa=cm,lm=Aa,pm=Array.prototype,dm=pm.splice;function hm(e){var n=this.__data__,r=lm(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():dm.call(n,r,1),--this.size,!0}var vm=hm,gm=Aa;function _m(e){var n=this.__data__,r=gm(n,e);return r<0?void 0:n[r][1]}var mm=_m,ym=Aa;function bm(e){return ym(this.__data__,e)>-1}var wm=bm,Em=Aa;function Sm(e,n){var r=this.__data__,a=Em(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}var $m=Sm,Am=sm,Im=vm,Tm=mm,Cm=wm,Om=$m;function Wr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Wr.prototype.clear=Am,Wr.prototype.delete=Im,Wr.prototype.get=Tm,Wr.prototype.has=Cm,Wr.prototype.set=Om;var Ia=Wr,xm=lr,Rm=_n,Lm=xm(Rm,"Map"),gs=Lm,Lc=am,Pm=Ia,Nm=gs;function Dm(){this.size=0,this.__data__={hash:new Lc,map:new(Nm||Pm),string:new Lc}}var Mm=Dm;function Fm(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var Um=Fm,jm=Um;function Bm(e,n){var r=e.__data__;return jm(n)?r[typeof n=="string"?"string":"hash"]:r.map}var Ta=Bm,zm=Ta;function Wm(e){var n=zm(this,e).delete(e);return this.size-=n?1:0,n}var Gm=Wm,Hm=Ta;function km(e){return Hm(this,e).get(e)}var qm=km,Km=Ta;function Xm(e){return Km(this,e).has(e)}var Ym=Xm,Zm=Ta;function Jm(e,n){var r=Zm(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}var Qm=Jm,Vm=Mm,ey=Gm,ty=qm,ny=Ym,ry=Qm;function Gr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Gr.prototype.clear=Vm,Gr.prototype.delete=ey,Gr.prototype.get=ty,Gr.prototype.has=ny,Gr.prototype.set=ry;var Pc=Gr,Nc=Pc,iy="Expected a function";function _s(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(iy);var r=function(){var a=arguments,s=n?n.apply(this,a):a[0],u=r.cache;if(u.has(s))return u.get(s);var c=e.apply(this,a);return r.cache=u.set(s,c)||u,c};return r.cache=new(_s.Cache||Nc),r}_s.Cache=Nc;var ay=_s,oy=ay,sy=500;function uy(e){var n=oy(e,function(a){return r.size===sy&&r.clear(),a}),r=n.cache;return n}var fy=uy,cy=fy,ly=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,py=/\\(\\)?/g,dy=cy(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(ly,function(r,a,s,u){n.push(s?u.replace(py,"$1"):a||r)}),n}),hy=dy;function vy(e,n){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=n(e[r],r,e);return s}var gy=vy,Dc=Sa,_y=gy,my=cr,yy=hs,by=1/0,Mc=Dc?Dc.prototype:void 0,Fc=Mc?Mc.toString:void 0;function Uc(e){if(typeof e=="string")return e;if(my(e))return _y(e,Uc)+"";if(yy(e))return Fc?Fc.call(e):"";var n=e+"";return n=="0"&&1/e==-by?"-0":n}var wy=Uc,Ey=wy;function Sy(e){return e==null?"":Ey(e)}var $y=Sy,Ay=cr,Iy=Qg,Ty=hy,Cy=$y;function Oy(e,n){return Ay(e)?e:Iy(e,n)?[e]:Ty(Cy(e))}var xy=Oy,Ry=xi,Ly=Br,Py="[object Arguments]";function Ny(e){return Ly(e)&&Ry(e)==Py}var Dy=Ny,jc=Dy,My=Br,Bc=Object.prototype,Fy=Bc.hasOwnProperty,Uy=Bc.propertyIsEnumerable,jy=jc(function(){return arguments}())?jc:function(e){return My(e)&&Fy.call(e,"callee")&&!Uy.call(e,"callee")},zc=jy,By=9007199254740991,zy=/^(?:0|[1-9]\d*)$/;function Wy(e,n){var r=typeof e;return n=n==null?By:n,!!n&&(r=="number"||r!="symbol"&&zy.test(e))&&e>-1&&e%1==0&&e<n}var Wc=Wy,Gy=9007199254740991;function Hy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gy}var ms=Hy,ky=hs,qy=1/0;function Ky(e){if(typeof e=="string"||ky(e))return e;var n=e+"";return n=="0"&&1/e==-qy?"-0":n}var Xy=Ky,Yy=xy,Zy=zc,Jy=cr,Qy=Wc,Vy=ms,eb=Xy;function tb(e,n,r){n=Yy(n,e);for(var a=-1,s=n.length,u=!1;++a<s;){var c=eb(n[a]);if(!(u=e!=null&&r(e,c)))break;e=e[c]}return u||++a!=s?u:(s=e==null?0:e.length,!!s&&Vy(s)&&Qy(c,s)&&(Jy(e)||Zy(e)))}var nb=tb,rb=wg,ib=nb;function ab(e,n){return e!=null&&ib(e,n,rb)}var ob=ab;function Gc(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function Ca(e){return e!==null&&typeof e=="object"}function Li(){return new URLSearchParams(window.location.search).get("location-id")}function sb(){const e=window.location;return new URL(e.pathname,e.origin).toString()}function Pi(e,n){return Ca(n)&&n.__type__&&n.__type__===e}function ub(e,n){return ob(e,n)}function ys(e,n,r="root"){for(let a in e){const s=e[a];if(n.apply(this,[e,a,s,r]),Ca(s)){let u=r+"."+a;ys(s,n,u)}}}function fb(e){return e!==Object(e)||e===null||e===void 0}function Hc(e){return typeof e!="string"?e:e.replace(/^root\./,"")}function kc(e){if(typeof e!="string"||e==="")return;const n=new URL(e);return n.origin===window.location.origin?{baseUrl:n.hostname,permissions:{additional:["*"],create:["*"],read:["*"],update:["*"],delete:["*"]}}:Object.values(window._swsdk.adminExtensions).find(r=>new URL(r.baseUrl).hostname===n.hostname)}class In extends Error{constructor(r,a){super(`Your app is missing the privileges ${a.join(", ")} for action "${r}".`);ge(this,"missingPrivileges");ge(this,"messageType");this.missingPrivileges=a,this.messageType=r,Object.setPrototypeOf(this,In.prototype)}toJSON(){return{__type__:"__MissingPrivilegesError__",__messageType__:this.messageType,__data__:this.missingPrivileges}}}const cb=({send:e,handle:n})=>{const r={};let a=!1;function s(){a||(a=!0,n("__function__",async({args:u,id:c})=>await Promise.resolve(r[c](...u))))}return{name:"function",serialize:({value:u})=>{if(typeof u=="function"){const c=Gc();return r[c]=u,s(),{__type__:"__function__",id:c,origin:window.origin}}},deserialize:({value:u,event:c})=>{var d;const p=(d=c==null?void 0:c.source)!=null?d:window;if(Ca(u)&&u.__type__&&u.__type__==="__function__"&&typeof u.id=="string"){const m=u.id,y=u.origin;return(...w)=>e("__function__",{args:w,id:m},p,y)}}}};var lb=Ia;function pb(){this.__data__=new lb,this.size=0}var db=pb;function hb(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}var vb=hb;function gb(e){return this.__data__.get(e)}var _b=gb;function mb(e){return this.__data__.has(e)}var yb=mb,bb=Ia,wb=gs,Eb=Pc,Sb=200;function $b(e,n){var r=this.__data__;if(r instanceof bb){var a=r.__data__;if(!wb||a.length<Sb-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new Eb(a)}return r.set(e,n),this.size=r.size,this}var Ab=$b,Ib=Ia,Tb=db,Cb=vb,Ob=_b,xb=yb,Rb=Ab;function Hr(e){var n=this.__data__=new Ib(e);this.size=n.size}Hr.prototype.clear=Tb,Hr.prototype.delete=Cb,Hr.prototype.get=Ob,Hr.prototype.has=xb,Hr.prototype.set=Rb;var Lb=Hr;function Pb(e,n){for(var r=-1,a=e==null?0:e.length;++r<a&&n(e[r],r,e)!==!1;);return e}var Nb=Pb,Db=lr,Mb=function(){try{var e=Db(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fb=Mb,qc=Fb;function Ub(e,n,r){n=="__proto__"&&qc?qc(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Kc=Ub,jb=Kc,Bb=Rc,zb=Object.prototype,Wb=zb.hasOwnProperty;function Gb(e,n,r){var a=e[n];(!(Wb.call(e,n)&&Bb(a,r))||r===void 0&&!(n in e))&&jb(e,n,r)}var Xc=Gb,Hb=Xc,kb=Kc;function qb(e,n,r,a){var s=!r;r||(r={});for(var u=-1,c=n.length;++u<c;){var p=n[u],d=a?a(r[p],e[p],p,r,e):void 0;d===void 0&&(d=e[p]),s?kb(r,p,d):Hb(r,p,d)}return r}var Oa=qb;function Kb(e,n){for(var r=-1,a=Array(e);++r<e;)a[r]=n(r);return a}var Xb=Kb,xa={exports:{}};function Yb(){return!1}var Zb=Yb;(function(e,n){var r=_n,a=Zb,s=n&&!n.nodeType&&n,u=s&&!0&&e&&!e.nodeType&&e,c=u&&u.exports===s,p=c?r.Buffer:void 0,d=p?p.isBuffer:void 0,m=d||a;e.exports=m})(xa,xa.exports);var Jb=xi,Qb=ms,Vb=Br,e0="[object Arguments]",t0="[object Array]",n0="[object Boolean]",r0="[object Date]",i0="[object Error]",a0="[object Function]",o0="[object Map]",s0="[object Number]",u0="[object Object]",f0="[object RegExp]",c0="[object Set]",l0="[object String]",p0="[object WeakMap]",d0="[object ArrayBuffer]",h0="[object DataView]",v0="[object Float32Array]",g0="[object Float64Array]",_0="[object Int8Array]",m0="[object Int16Array]",y0="[object Int32Array]",b0="[object Uint8Array]",w0="[object Uint8ClampedArray]",E0="[object Uint16Array]",S0="[object Uint32Array]",qe={};qe[v0]=qe[g0]=qe[_0]=qe[m0]=qe[y0]=qe[b0]=qe[w0]=qe[E0]=qe[S0]=!0,qe[e0]=qe[t0]=qe[d0]=qe[n0]=qe[h0]=qe[r0]=qe[i0]=qe[a0]=qe[o0]=qe[s0]=qe[u0]=qe[f0]=qe[c0]=qe[l0]=qe[p0]=!1;function $0(e){return Vb(e)&&Qb(e.length)&&!!qe[Jb(e)]}var A0=$0;function I0(e){return function(n){return e(n)}}var bs=I0,Ni={exports:{}};(function(e,n){var r=Ec,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===a,c=u&&r.process,p=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=p})(Ni,Ni.exports);var T0=A0,C0=bs,Yc=Ni.exports,Zc=Yc&&Yc.isTypedArray,O0=Zc?C0(Zc):T0,x0=O0,R0=Xb,L0=zc,P0=cr,N0=xa.exports,D0=Wc,M0=x0,F0=Object.prototype,U0=F0.hasOwnProperty;function j0(e,n){var r=P0(e),a=!r&&L0(e),s=!r&&!a&&N0(e),u=!r&&!a&&!s&&M0(e),c=r||a||s||u,p=c?R0(e.length,String):[],d=p.length;for(var m in e)(n||U0.call(e,m))&&!(c&&(m=="length"||s&&(m=="offset"||m=="parent")||u&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||D0(m,d)))&&p.push(m);return p}var Jc=j0,B0=Object.prototype;function z0(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||B0;return e===r}var ws=z0;function W0(e,n){return function(r){return e(n(r))}}var Qc=W0,G0=Qc,H0=G0(Object.keys,Object),k0=H0,q0=ws,K0=k0,X0=Object.prototype,Y0=X0.hasOwnProperty;function Z0(e){if(!q0(e))return K0(e);var n=[];for(var r in Object(e))Y0.call(e,r)&&r!="constructor"&&n.push(r);return n}var J0=Z0,Q0=Tc,V0=ms;function ew(e){return e!=null&&V0(e.length)&&!Q0(e)}var Vc=ew,tw=Jc,nw=J0,rw=Vc;function iw(e){return rw(e)?tw(e):nw(e)}var Es=iw,aw=Oa,ow=Es;function sw(e,n){return e&&aw(n,ow(n),e)}var uw=sw;function fw(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var cw=fw,lw=Ri,pw=ws,dw=cw,hw=Object.prototype,vw=hw.hasOwnProperty;function gw(e){if(!lw(e))return dw(e);var n=pw(e),r=[];for(var a in e)a=="constructor"&&(n||!vw.call(e,a))||r.push(a);return r}var _w=gw,mw=Jc,yw=_w,bw=Vc;function ww(e){return bw(e)?mw(e,!0):yw(e)}var Ss=ww,Ew=Oa,Sw=Ss;function $w(e,n){return e&&Ew(n,Sw(n),e)}var Aw=$w,$s={exports:{}};(function(e,n){var r=_n,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===a,c=u?r.Buffer:void 0,p=c?c.allocUnsafe:void 0;function d(m,y){if(y)return m.slice();var w=m.length,P=p?p(w):new m.constructor(w);return m.copy(P),P}e.exports=d})($s,$s.exports);function Iw(e,n){var r=-1,a=e.length;for(n||(n=Array(a));++r<a;)n[r]=e[r];return n}var Tw=Iw;function Cw(e,n){for(var r=-1,a=e==null?0:e.length,s=0,u=[];++r<a;){var c=e[r];n(c,r,e)&&(u[s++]=c)}return u}var Ow=Cw;function xw(){return[]}var el=xw,Rw=Ow,Lw=el,Pw=Object.prototype,Nw=Pw.propertyIsEnumerable,tl=Object.getOwnPropertySymbols,Dw=tl?function(e){return e==null?[]:(e=Object(e),Rw(tl(e),function(n){return Nw.call(e,n)}))}:Lw,As=Dw,Mw=Oa,Fw=As;function Uw(e,n){return Mw(e,Fw(e),n)}var jw=Uw;function Bw(e,n){for(var r=-1,a=n.length,s=e.length;++r<a;)e[s+r]=n[r];return e}var nl=Bw,zw=Qc,Ww=zw(Object.getPrototypeOf,Object),rl=Ww,Gw=nl,Hw=rl,kw=As,qw=el,Kw=Object.getOwnPropertySymbols,Xw=Kw?function(e){for(var n=[];e;)Gw(n,kw(e)),e=Hw(e);return n}:qw,il=Xw,Yw=Oa,Zw=il;function Jw(e,n){return Yw(e,Zw(e),n)}var Qw=Jw,Vw=nl,e1=cr;function t1(e,n,r){var a=n(e);return e1(e)?a:Vw(a,r(e))}var al=t1,n1=al,r1=As,i1=Es;function a1(e){return n1(e,i1,r1)}var o1=a1,s1=al,u1=il,f1=Ss;function c1(e){return s1(e,f1,u1)}var l1=c1,p1=lr,d1=_n,h1=p1(d1,"DataView"),v1=h1,g1=lr,_1=_n,m1=g1(_1,"Promise"),y1=m1,b1=lr,w1=_n,E1=b1(w1,"Set"),S1=E1,$1=lr,A1=_n,I1=$1(A1,"WeakMap"),T1=I1,Is=v1,Ts=gs,Cs=y1,Os=S1,xs=T1,ol=xi,kr=Oc,sl="[object Map]",C1="[object Object]",ul="[object Promise]",fl="[object Set]",cl="[object WeakMap]",ll="[object DataView]",O1=kr(Is),x1=kr(Ts),R1=kr(Cs),L1=kr(Os),P1=kr(xs),pr=ol;(Is&&pr(new Is(new ArrayBuffer(1)))!=ll||Ts&&pr(new Ts)!=sl||Cs&&pr(Cs.resolve())!=ul||Os&&pr(new Os)!=fl||xs&&pr(new xs)!=cl)&&(pr=function(e){var n=ol(e),r=n==C1?e.constructor:void 0,a=r?kr(r):"";if(a)switch(a){case O1:return ll;case x1:return sl;case R1:return ul;case L1:return fl;case P1:return cl}return n});var Rs=pr,N1=Object.prototype,D1=N1.hasOwnProperty;function M1(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&D1.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var F1=M1,U1=_n,j1=U1.Uint8Array,B1=j1,pl=B1;function z1(e){var n=new e.constructor(e.byteLength);return new pl(n).set(new pl(e)),n}var Ls=z1,W1=Ls;function G1(e,n){var r=n?W1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var H1=G1,k1=/\w*$/;function q1(e){var n=new e.constructor(e.source,k1.exec(e));return n.lastIndex=e.lastIndex,n}var K1=q1,dl=Sa,hl=dl?dl.prototype:void 0,vl=hl?hl.valueOf:void 0;function X1(e){return vl?Object(vl.call(e)):{}}var Y1=X1,Z1=Ls;function J1(e,n){var r=n?Z1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Q1=J1,V1=Ls,eE=H1,tE=K1,nE=Y1,rE=Q1,iE="[object Boolean]",aE="[object Date]",oE="[object Map]",sE="[object Number]",uE="[object RegExp]",fE="[object Set]",cE="[object String]",lE="[object Symbol]",pE="[object ArrayBuffer]",dE="[object DataView]",hE="[object Float32Array]",vE="[object Float64Array]",gE="[object Int8Array]",_E="[object Int16Array]",mE="[object Int32Array]",yE="[object Uint8Array]",bE="[object Uint8ClampedArray]",wE="[object Uint16Array]",EE="[object Uint32Array]";function SE(e,n,r){var a=e.constructor;switch(n){case pE:return V1(e);case iE:case aE:return new a(+e);case dE:return eE(e,r);case hE:case vE:case gE:case _E:case mE:case yE:case bE:case wE:case EE:return rE(e,r);case oE:return new a;case sE:case cE:return new a(e);case uE:return tE(e);case fE:return new a;case lE:return nE(e)}}var $E=SE,AE=Ri,gl=Object.create,IE=function(){function e(){}return function(n){if(!AE(n))return{};if(gl)return gl(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}(),TE=IE,CE=TE,OE=rl,xE=ws;function RE(e){return typeof e.constructor=="function"&&!xE(e)?CE(OE(e)):{}}var LE=RE,PE=Rs,NE=Br,DE="[object Map]";function ME(e){return NE(e)&&PE(e)==DE}var FE=ME,UE=FE,jE=bs,_l=Ni.exports,ml=_l&&_l.isMap,BE=ml?jE(ml):UE,zE=BE,WE=Rs,GE=Br,HE="[object Set]";function kE(e){return GE(e)&&WE(e)==HE}var qE=kE,KE=qE,XE=bs,yl=Ni.exports,bl=yl&&yl.isSet,YE=bl?XE(bl):KE,ZE=YE,JE=Lb,QE=Nb,VE=Xc,eS=uw,tS=Aw,nS=$s.exports,rS=Tw,iS=jw,aS=Qw,oS=o1,sS=l1,uS=Rs,fS=F1,cS=$E,lS=LE,pS=cr,dS=xa.exports,hS=zE,vS=Ri,gS=ZE,_S=Es,mS=Ss,yS=1,bS=2,wS=4,wl="[object Arguments]",ES="[object Array]",SS="[object Boolean]",$S="[object Date]",AS="[object Error]",El="[object Function]",IS="[object GeneratorFunction]",TS="[object Map]",CS="[object Number]",Sl="[object Object]",OS="[object RegExp]",xS="[object Set]",RS="[object String]",LS="[object Symbol]",PS="[object WeakMap]",NS="[object ArrayBuffer]",DS="[object DataView]",MS="[object Float32Array]",FS="[object Float64Array]",US="[object Int8Array]",jS="[object Int16Array]",BS="[object Int32Array]",zS="[object Uint8Array]",WS="[object Uint8ClampedArray]",GS="[object Uint16Array]",HS="[object Uint32Array]",We={};We[wl]=We[ES]=We[NS]=We[DS]=We[SS]=We[$S]=We[MS]=We[FS]=We[US]=We[jS]=We[BS]=We[TS]=We[CS]=We[Sl]=We[OS]=We[xS]=We[RS]=We[LS]=We[zS]=We[WS]=We[GS]=We[HS]=!0,We[AS]=We[El]=We[PS]=!1;function Ra(e,n,r,a,s,u){var c,p=n&yS,d=n&bS,m=n&wS;if(r&&(c=s?r(e,a,s,u):r(e)),c!==void 0)return c;if(!vS(e))return e;var y=pS(e);if(y){if(c=fS(e),!p)return rS(e,c)}else{var w=uS(e),P=w==El||w==IS;if(dS(e))return nS(e,p);if(w==Sl||w==wl||P&&!s){if(c=d||P?{}:lS(e),!p)return d?aS(e,tS(c,e)):iS(e,eS(c,e))}else{if(!We[w])return s?e:{};c=cS(e,w,p)}}u||(u=new JE);var z=u.get(e);if(z)return z;u.set(e,c),gS(e)?e.forEach(function(X){c.add(Ra(X,n,r,X,e,u))}):hS(e)&&e.forEach(function(X,ne){c.set(ne,Ra(X,n,r,ne,e,u))});var Z=m?d?sS:oS:d?mS:_S,U=y?void 0:Z(e);return QE(U||e,function(X,ne){U&&(ne=X,X=e[ne]),VE(c,ne,Ra(X,n,r,ne,e,u))}),c}var kS=Ra,qS=kS,KS=1,XS=4;function YS(e){return qS(e,KS|XS)}var Ps=YS;let ZS=1,JS=null;class qr{constructor(n=ZS,r=JS){ge(this,"title");ge(this,"page");ge(this,"limit");ge(this,"term");ge(this,"filters");ge(this,"ids");ge(this,"queries");ge(this,"associations");ge(this,"postFilter");ge(this,"sortings");ge(this,"aggregations");ge(this,"grouping");ge(this,"fields");ge(this,"groupFields");ge(this,"totalCountMode");ge(this,"includes");this.page=n,this.limit=r,this.term=null,this.title=null,this.filters=[],this.includes=null,this.ids=[],this.queries=[],this.associations=[],this.postFilter=[],this.sortings=[],this.aggregations=[],this.grouping=[],this.groupFields=[],this.fields=[],this.totalCountMode=1}static fromCriteria(n){return Ps(n)}parse(){const n={};return this.ids.length>0&&(n.ids=this.ids.join("|")),this.page!==null&&(n.page=this.page),this.limit!==null&&(n.limit=this.limit),this.term!==null&&(n.term=this.term),this.queries.length>0&&(n.query=this.queries),this.filters.length>0&&(n.filter=this.filters),this.postFilter.length>0&&(n["post-filter"]=this.postFilter),this.sortings.length>0&&(n.sort=this.sortings),this.aggregations.length>0&&(n.aggregations=this.aggregations),this.groupFields.length>0&&(n.groupFields=this.groupFields),this.grouping.length>0&&(n.grouping=this.grouping),this.fields.length>0&&(n.fields=this.fields),this.associations.length>0&&(n.associations={},this.associations.forEach(r=>{!n.associations||(n.associations[r.association]=r.criteria.parse())})),this.includes!==null&&(n.includes=this.includes),this.totalCountMode!==null&&(n["total-count-mode"]=this.totalCountMode),n}setTitle(n){return this.title=n,this}getTitle(){return this.title}setIds(n){return this.ids=n,this}setTotalCountMode(n){return typeof n!="number"&&(this.totalCountMode=null),this.totalCountMode=n<0||n>2?null:n,this}setPage(n){return this.page=n,this}setLimit(n){return this.limit=n,this}setTerm(n){return this.term=n,this}addFilter(n){return this.filters.push(n),this}addIncludes(n){return Object.entries(n).forEach(([r,a])=>{this.includes===null&&(this.includes={}),this.includes[r]||(this.includes[r]=[]),this.includes[r].push(...a)}),this}addPostFilter(n){return this.postFilter.push(n),this}addSorting(n){return this.sortings.push(n),this}addQuery(n,r,a=null){const s={score:r,query:n};return a&&(s[a]=a),this.queries.push(s),this}addGroupField(n){return this.groupFields.push(n),this}addGrouping(n){return this.grouping.push(n),this}addFields(...n){return this.fields.push(...n),this}addAggregation(n){return this.aggregations.push(n),this}addAssociation(n){const r=n.split(".");let a=this;return r.forEach(s=>{a=a.getAssociation(s)}),this}getAssociation(n){const r=n.split(".");let a=this;return r.forEach(s=>{a.hasAssociation(s)||a.associations.push({association:s,criteria:new qr(null,null)}),a=a.getAssociationCriteria(s)}),a}getAssociationCriteria(n){let r=null;return this.associations.forEach(a=>{a.association===n&&(r=a.criteria)}),r}getLimit(){var n;return(n=this.limit)!=null?n:0}getPage(){var n;return(n=this.page)!=null?n:0}getCriteriaData(){return{page:this.page,limit:this.limit,term:this.term,title:this.title,filters:this.filters,ids:this.ids,queries:this.queries,associations:this.associations,postFilter:this.postFilter,sortings:this.sortings,aggregations:this.aggregations,grouping:this.grouping,fields:this.fields,groupFields:this.groupFields,totalCountMode:this.totalCountMode,includes:this.includes}}hasAssociation(n){return this.associations.some(r=>r.association===n)}resetSorting(){this.sortings=[]}static avg(n,r){return{type:"avg",name:n,field:r}}static count(n,r){return{type:"count",name:n,field:r}}static max(n,r){return{type:"max",name:n,field:r}}static min(n,r){return{type:"min",name:n,field:r}}static stats(n,r){return{type:"stats",name:n,field:r}}static sum(n,r){return{type:"sum",name:n,field:r}}static terms(n,r,a=null,s=null,u=null){return{type:"terms",name:n,field:r,limit:a,sort:s,aggregation:u}}static entityAggregation(n,r,a){return{type:"entity",name:n,field:r,definition:a}}static filter(n,r,a){return{type:"filter",name:n,filter:r,aggregation:a}}static histogram(n,r,a,s,u,c){return{type:"histogram",name:n,field:r,interval:a,format:s,aggregation:u,timeZone:c}}static sort(n,r="ASC",a=!1){return{field:n,order:r,naturalSorting:a}}static naturalSorting(n,r="ASC"){return{field:n,order:r,naturalSorting:!0}}static countSorting(n,r="ASC"){return{field:n,order:r,naturalSorting:!1,type:"count"}}static contains(n,r){return{type:"contains",field:n,value:r}}static prefix(n,r){return{type:"prefix",field:n,value:r}}static suffix(n,r){return{type:"suffix",field:n,value:r}}static equalsAny(n,r){return{type:"equalsAny",field:n,value:r.join("|")}}static range(n,r){return{type:"range",field:n,parameters:r}}static equals(n,r){return{type:"equals",field:n,value:r}}static not(n,r=[]){return{type:"not",operator:n,queries:r}}static multi(n,r=[]){return{type:"multi",operator:n,queries:r}}}const QS=()=>({name:"criteria",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(e instanceof qr)return{__type__:"__Criteria__",data:n(e.getCriteriaData(),r,a)}},deserialize:({value:e,customizerMethod:n})=>{if(Pi("__Criteria__",e)&&typeof e.data=="object"){const r=e.data,a=new qr;return a.setPage(r.page),a.setLimit(r.limit),a.setTerm(r.term),r.title!==null&&a.setTitle(r.title),r.filters.forEach(s=>{a.addFilter(s)}),a.setIds(r.ids),r.queries.forEach(({query:s,score:u})=>{a.addQuery(s,u)}),r.associations.forEach(s=>{a.associations.push(n(s))}),r.postFilter.forEach(s=>{a.addPostFilter(s)}),r.sortings.forEach(s=>{a.addSorting(s)}),r.aggregations.forEach(s=>{a.addAggregation(s)}),r.grouping.forEach(s=>{a.addGrouping(s)}),r.fields.forEach(s=>{a.addFields(s)}),r.groupFields.forEach(s=>{a.addGroupField(s)}),r.includes&&a.addIncludes(r.includes),a.setTotalCountMode(r.totalCountMode),a}}});let VS=(e,n,r)=>{e[n]=r};class e${constructor(n,r,a,s={}){ge(this,"id");ge(this,"_origin");ge(this,"_entityName");ge(this,"_draft");ge(this,"_isDirty");ge(this,"_isNew");var c,p;this.id=n,this._origin=s.originData?Ps(s.originData):Ps(a),this._entityName=r,this._draft=a,this._isDirty=(c=s.isDirty)!=null?c:!1,this._isNew=(p=s.isNew)!=null?p:!1;const u=this;return new Proxy(this._draft,{get(d,m){return m in u._draft?u._draft[m]:u[m]},set(d,m,y){return VS(u._draft,m,y),u._isDirty=!0,!0}})}__identifier__(){return"Entity"}markAsNew(){this._isNew=!0}isNew(){return this._isNew}getIsDirty(){return this._isDirty}getOrigin(){return this._origin}getDraft(){return this._draft}getEntityName(){return this._entityName}}const $l=function(n,r,a,s){return new e$(n,r,a,s)},t$=()=>({name:"entity",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(!(!Ca(e)||typeof e.__identifier__!="function"||e.__identifier__()!=="Entity"))return{__type__:"__Entity__",__id__:e.id,__entityName__:e._entityName,__isDirty__:e._isDirty,__isNew__:e._isNew,__origin__:n(e._origin,r,a),__draft__:n(e._draft,r,a)}},deserialize:({value:e,customizerMethod:n})=>{if(Pi("__Entity__",e)&&typeof e.__origin__=="object")return new $l(e.__id__,e.__entityName__,n(e.__draft__),{originData:n(e.__origin__),isDirty:e.__isDirty__,isNew:e.__isNew__})}});class Kr extends Array{constructor(r,a,s,u=null,c=[],p=null,d=null){super();ge(this,"entity");ge(this,"source");ge(this,"context");ge(this,"criteria");ge(this,"aggregations");ge(this,"total");ge(this,"first");ge(this,"last");ge(this,"remove");ge(this,"has");ge(this,"get");ge(this,"getAt");ge(this,"getIds");ge(this,"add");ge(this,"addAt");ge(this,"moveItem");ge(this,"__identifier__");this.entity=a,this.source=r,this.context=s,this.criteria=u,this.aggregations=d,this.total=p,this.push(...c),this.__identifier__=()=>"EntityCollection",this.first=function(){return this.length<=0?null:this[0]},this.last=function(){return this.length<=0?null:this[this.length-1]},this.remove=function(y){const w=this.findIndex(P=>P.id===y);return w<0?!1:(this.splice(w,1),!0)},this.has=function(y){return this.some(w=>w.id===y)},this.get=function(y){const w=this.find(P=>P.id===y);return typeof w!="undefined"?w:null},this.getAt=function(y){const w=this[y];return typeof w!="undefined"?w:null},this.getIds=function(){return this.map(y=>y.id)},this.add=function(y){this.push(y)},this.addAt=function(y,w){if(typeof w=="undefined"){this.add(y);return}this.splice(w,0,y)},this.moveItem=function(y,w=null){if(w===null&&(w=this.length),y<0||y>=this.length)return null;if(w===y)return this.getAt(y);const P=this.find((U,X)=>X===y);if(typeof P=="undefined")return null;const z=this.filter((U,X)=>X!==y),Z=[...z.slice(0,w),P,...z.slice(w)];return this.splice(0,this.length,...Z),P},this.filter=function(y,w){const P=Object.getPrototypeOf(this).filter.call(this,y,w);return new Kr(this.source,this.entity,this.context,this.criteria,P,this.total,this.aggregations)}}static fromCollection(r){return new Kr(r.source,r.entity,r.context,r.criteria===null?r.criteria:qr.fromCriteria(r.criteria),r,r.total,r.aggregations)}}const n$=()=>({name:"entity-collection",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(e instanceof Kr||(e==null?void 0:e.__identifier__)&&e.__identifier__()==="EntityCollection")return n({__type__:"__EntityCollection__",__source__:e.source,__entityName__:e.entity,__context__:e.context,__criteria__:e.criteria,__entities__:Array.from(e),__total__:e.total,__aggregations__:e.aggregations},r,a)},deserialize:({value:e,customizerMethod:n})=>{if(Pi("__EntityCollection__",e))return new Kr(e.__source__,e.__entityName__,e.__context__,n(e.__criteria__),n(e.__entities__),e.__total__,e.__aggregations__)}});class Di extends Error{constructor(r,a){super(r);ge(this,"code",500);a&&(this.code=a)}toJSON(){return{__type__:"__HandleError__",__code__:this.code,__message__:this.message}}}const r$=()=>({name:"handle-error",serialize:()=>{},deserialize:({value:e})=>{if(Pi("__HandleError__",e))return new Di(e.__message__,e.__code__)}});var Xr={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(e,n){(function(){var r,a="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",w=1,P=2,z=4,Z=1,U=2,X=1,ne=2,ie=4,ae=8,Ce=16,j=32,oe=64,ee=128,de=256,Ue=512,ot=30,Ye="...",Ve=800,ut=16,Ht=1,St=2,Qt=3,x=1/0,T=9007199254740991,M=17976931348623157e292,J=0/0,Q=4294967295,Ae=Q-1,ye=Q>>>1,le=[["ary",ee],["bind",X],["bindKey",ne],["curry",ae],["curryRight",Ce],["flip",Ue],["partial",j],["partialRight",oe],["rearg",de]],Se="[object Arguments]",$e="[object Array]",Oe="[object AsyncFunction]",Be="[object Boolean]",st="[object Date]",cn="[object DOMException]",Pt="[object Error]",Nt="[object Function]",ln="[object GeneratorFunction]",vt="[object Map]",Dt="[object Number]",zu="[object Null]",Vt="[object Object]",Ir="[object Promise]",ta="[object Proxy]",Pn="[object RegExp]",$t="[object Set]",Zn="[object String]",Tr="[object Symbol]",ho="[object Undefined]",Jn="[object WeakMap]",vo="[object WeakSet]",Qn="[object ArrayBuffer]",Nn="[object DataView]",ui="[object Float32Array]",fi="[object Float64Array]",ci="[object Int8Array]",li="[object Int16Array]",pi="[object Int32Array]",Cr="[object Uint8Array]",na="[object Uint8ClampedArray]",ra="[object Uint16Array]",Or="[object Uint32Array]",go=/\b__p \+= '';/g,Wu=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_o=/&(?:amp|lt|gt|quot|#39);/g,mo=/[&<>"']/g,yo=RegExp(_o.source),Gu=RegExp(mo.source),Hu=/<%-([\s\S]+?)%>/g,ku=/<%([\s\S]+?)%>/g,bo=/<%=([\s\S]+?)%>/g,qu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ku=/^\w*$/,Xu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ia=/[\\^$.*+?()[\]{}|]/g,Yu=RegExp(ia.source),aa=/^\s+/,wo=/\s/,Zu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ju=/\{\n\/\* \[wrapped with (.+)\] \*/,Qu=/,? & /,Vu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ef=/[()=,{}\[\]\/\s]/,tf=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Eo=/\w*$/,rf=/^[-+]0x[0-9a-f]+$/i,af=/^0b[01]+$/i,of=/^\[object .+?Constructor\]$/,sf=/^0o[0-7]+$/i,uf=/^(?:0|[1-9]\d*)$/,ff=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,di=/($^)/,So=/['\n\r\u2028\u2029\\]/g,En="\\ud800-\\udfff",$o="\\u0300-\\u036f",Vn="\\ufe20-\\ufe2f",cf="\\u20d0-\\u20ff",xr=$o+Vn+cf,hi="\\u2700-\\u27bf",Ao="a-z\\xdf-\\xf6\\xf8-\\xff",lf="\\xac\\xb1\\xd7\\xf7",oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pf="\\u2000-\\u206f",df=" \\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",v="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\ufe0e\\ufe0f",_=lf+oa+pf+df,A="['\u2019]",O="["+En+"]",$="["+_+"]",D="["+xr+"]",G="\\d+",H="["+hi+"]",k="["+Ao+"]",K="[^"+En+_+G+hi+Ao+v+"]",te="\\ud83c[\\udffb-\\udfff]",be="(?:"+D+"|"+te+")",Re="[^"+En+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+v+"]",At="\\u200d",er="(?:"+k+"|"+K+")",sa="(?:"+je+"|"+K+")",Io="(?:"+A+"(?:d|ll|m|re|s|t|ve))?",vi="(?:"+A+"(?:D|LL|M|RE|S|T|VE))?",hf=be+"?",To="["+E+"]?",vf="(?:"+At+"(?:"+[Re,Le,Ze].join("|")+")"+To+hf+")*",Co="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ch=To+hf+vf,rx="(?:"+[H,Le,Ze].join("|")+")"+ch,ix="(?:"+[Re+D+"?",D,Le,Ze,O].join("|")+")",ax=RegExp(A,"g"),ox=RegExp(D,"g"),gf=RegExp(te+"(?="+te+")|"+ix+ch,"g"),sx=RegExp([je+"?"+k+"+"+Io+"(?="+[$,je,"$"].join("|")+")",sa+"+"+vi+"(?="+[$,je+er,"$"].join("|")+")",je+"?"+er+"+"+Io,je+"+"+vi,nx,Co,G,rx].join("|"),"g"),ux=RegExp("["+At+En+xr+E+"]"),fx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cx=["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"],lx=-1,Xe={};Xe[ui]=Xe[fi]=Xe[ci]=Xe[li]=Xe[pi]=Xe[Cr]=Xe[na]=Xe[ra]=Xe[Or]=!0,Xe[Se]=Xe[$e]=Xe[Qn]=Xe[Be]=Xe[Nn]=Xe[st]=Xe[Pt]=Xe[Nt]=Xe[vt]=Xe[Dt]=Xe[Vt]=Xe[Pn]=Xe[$t]=Xe[Zn]=Xe[Jn]=!1;var He={};He[Se]=He[$e]=He[Qn]=He[Nn]=He[Be]=He[st]=He[ui]=He[fi]=He[ci]=He[li]=He[pi]=He[vt]=He[Dt]=He[Vt]=He[Pn]=He[$t]=He[Zn]=He[Tr]=He[Cr]=He[na]=He[ra]=He[Or]=!0,He[Pt]=He[Nt]=He[Jn]=!1;var px={\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"},dx={"&":"&","<":"<",">":">",'"':""","'":"'"},hx={"&":"&","<":"<",">":">",""":'"',"'":"'"},vx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gx=parseFloat,_x=parseInt,lh=typeof ke=="object"&&ke&&ke.Object===Object&&ke,mx=typeof self=="object"&&self&&self.Object===Object&&self,gt=lh||mx||Function("return this")(),_f=n&&!n.nodeType&&n,Rr=_f&&!0&&e&&!e.nodeType&&e,ph=Rr&&Rr.exports===_f,mf=ph&&lh.process,en=function(){try{var I=Rr&&Rr.require&&Rr.require("util").types;return I||mf&&mf.binding&&mf.binding("util")}catch{}}(),dh=en&&en.isArrayBuffer,hh=en&&en.isDate,vh=en&&en.isMap,gh=en&&en.isRegExp,_h=en&&en.isSet,mh=en&&en.isTypedArray;function kt(I,N,L){switch(L.length){case 0:return I.call(N);case 1:return I.call(N,L[0]);case 2:return I.call(N,L[0],L[1]);case 3:return I.call(N,L[0],L[1],L[2])}return I.apply(N,L)}function yx(I,N,L,V){for(var he=-1,Pe=I==null?0:I.length;++he<Pe;){var ft=I[he];N(V,ft,L(ft),I)}return V}function tn(I,N){for(var L=-1,V=I==null?0:I.length;++L<V&&N(I[L],L,I)!==!1;);return I}function bx(I,N){for(var L=I==null?0:I.length;L--&&N(I[L],L,I)!==!1;);return I}function yh(I,N){for(var L=-1,V=I==null?0:I.length;++L<V;)if(!N(I[L],L,I))return!1;return!0}function tr(I,N){for(var L=-1,V=I==null?0:I.length,he=0,Pe=[];++L<V;){var ft=I[L];N(ft,L,I)&&(Pe[he++]=ft)}return Pe}function Oo(I,N){var L=I==null?0:I.length;return!!L&&gi(I,N,0)>-1}function yf(I,N,L){for(var V=-1,he=I==null?0:I.length;++V<he;)if(L(N,I[V]))return!0;return!1}function Je(I,N){for(var L=-1,V=I==null?0:I.length,he=Array(V);++L<V;)he[L]=N(I[L],L,I);return he}function nr(I,N){for(var L=-1,V=N.length,he=I.length;++L<V;)I[he+L]=N[L];return I}function bf(I,N,L,V){var he=-1,Pe=I==null?0:I.length;for(V&&Pe&&(L=I[++he]);++he<Pe;)L=N(L,I[he],he,I);return L}function wx(I,N,L,V){var he=I==null?0:I.length;for(V&&he&&(L=I[--he]);he--;)L=N(L,I[he],he,I);return L}function wf(I,N){for(var L=-1,V=I==null?0:I.length;++L<V;)if(N(I[L],L,I))return!0;return!1}var Ex=Ef("length");function Sx(I){return I.split("")}function $x(I){return I.match(Vu)||[]}function bh(I,N,L){var V;return L(I,function(he,Pe,ft){if(N(he,Pe,ft))return V=Pe,!1}),V}function xo(I,N,L,V){for(var he=I.length,Pe=L+(V?1:-1);V?Pe--:++Pe<he;)if(N(I[Pe],Pe,I))return Pe;return-1}function gi(I,N,L){return N===N?Mx(I,N,L):xo(I,wh,L)}function Ax(I,N,L,V){for(var he=L-1,Pe=I.length;++he<Pe;)if(V(I[he],N))return he;return-1}function wh(I){return I!==I}function Eh(I,N){var L=I==null?0:I.length;return L?$f(I,N)/L:J}function Ef(I){return function(N){return N==null?r:N[I]}}function Sf(I){return function(N){return I==null?r:I[N]}}function Sh(I,N,L,V,he){return he(I,function(Pe,ft,ze){L=V?(V=!1,Pe):N(L,Pe,ft,ze)}),L}function Ix(I,N){var L=I.length;for(I.sort(N);L--;)I[L]=I[L].value;return I}function $f(I,N){for(var L,V=-1,he=I.length;++V<he;){var Pe=N(I[V]);Pe!==r&&(L=L===r?Pe:L+Pe)}return L}function Af(I,N){for(var L=-1,V=Array(I);++L<I;)V[L]=N(L);return V}function Tx(I,N){return Je(N,function(L){return[L,I[L]]})}function $h(I){return I&&I.slice(0,Ch(I)+1).replace(aa,"")}function qt(I){return function(N){return I(N)}}function If(I,N){return Je(N,function(L){return I[L]})}function ua(I,N){return I.has(N)}function Ah(I,N){for(var L=-1,V=I.length;++L<V&&gi(N,I[L],0)>-1;);return L}function Ih(I,N){for(var L=I.length;L--&&gi(N,I[L],0)>-1;);return L}function Cx(I,N){for(var L=I.length,V=0;L--;)I[L]===N&&++V;return V}var Ox=Sf(px),xx=Sf(dx);function Rx(I){return"\\"+vx[I]}function Lx(I,N){return I==null?r:I[N]}function _i(I){return ux.test(I)}function Px(I){return fx.test(I)}function Nx(I){for(var N,L=[];!(N=I.next()).done;)L.push(N.value);return L}function Tf(I){var N=-1,L=Array(I.size);return I.forEach(function(V,he){L[++N]=[he,V]}),L}function Th(I,N){return function(L){return I(N(L))}}function rr(I,N){for(var L=-1,V=I.length,he=0,Pe=[];++L<V;){var ft=I[L];(ft===N||ft===y)&&(I[L]=y,Pe[he++]=L)}return Pe}function Ro(I){var N=-1,L=Array(I.size);return I.forEach(function(V){L[++N]=V}),L}function Dx(I){var N=-1,L=Array(I.size);return I.forEach(function(V){L[++N]=[V,V]}),L}function Mx(I,N,L){for(var V=L-1,he=I.length;++V<he;)if(I[V]===N)return V;return-1}function Fx(I,N,L){for(var V=L+1;V--;)if(I[V]===N)return V;return V}function mi(I){return _i(I)?jx(I):Ex(I)}function pn(I){return _i(I)?Bx(I):Sx(I)}function Ch(I){for(var N=I.length;N--&&wo.test(I.charAt(N)););return N}var Ux=Sf(hx);function jx(I){for(var N=gf.lastIndex=0;gf.test(I);)++N;return N}function Bx(I){return I.match(gf)||[]}function zx(I){return I.match(sx)||[]}var Wx=function I(N){N=N==null?gt:yi.defaults(gt.Object(),N,yi.pick(gt,cx));var L=N.Array,V=N.Date,he=N.Error,Pe=N.Function,ft=N.Math,ze=N.Object,Cf=N.RegExp,Gx=N.String,nn=N.TypeError,Lo=L.prototype,Hx=Pe.prototype,bi=ze.prototype,Po=N["__core-js_shared__"],No=Hx.toString,Fe=bi.hasOwnProperty,kx=0,Oh=function(){var t=/[^.]+$/.exec(Po&&Po.keys&&Po.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Do=bi.toString,qx=No.call(ze),Kx=gt._,Xx=Cf("^"+No.call(Fe).replace(ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mo=ph?N.Buffer:r,ir=N.Symbol,Fo=N.Uint8Array,xh=Mo?Mo.allocUnsafe:r,Uo=Th(ze.getPrototypeOf,ze),Rh=ze.create,Lh=bi.propertyIsEnumerable,jo=Lo.splice,Ph=ir?ir.isConcatSpreadable:r,fa=ir?ir.iterator:r,Lr=ir?ir.toStringTag:r,Bo=function(){try{var t=Fr(ze,"defineProperty");return t({},"",{}),t}catch{}}(),Yx=N.clearTimeout!==gt.clearTimeout&&N.clearTimeout,Zx=V&&V.now!==gt.Date.now&&V.now,Jx=N.setTimeout!==gt.setTimeout&&N.setTimeout,zo=ft.ceil,Wo=ft.floor,Of=ze.getOwnPropertySymbols,Qx=Mo?Mo.isBuffer:r,Nh=N.isFinite,Vx=Lo.join,eR=Th(ze.keys,ze),ct=ft.max,yt=ft.min,tR=V.now,nR=N.parseInt,Dh=ft.random,rR=Lo.reverse,xf=Fr(N,"DataView"),ca=Fr(N,"Map"),Rf=Fr(N,"Promise"),wi=Fr(N,"Set"),la=Fr(N,"WeakMap"),pa=Fr(ze,"create"),Go=la&&new la,Ei={},iR=Ur(xf),aR=Ur(ca),oR=Ur(Rf),sR=Ur(wi),uR=Ur(la),Ho=ir?ir.prototype:r,da=Ho?Ho.valueOf:r,Mh=Ho?Ho.toString:r;function h(t){if(nt(t)&&!ve(t)&&!(t instanceof Te)){if(t instanceof rn)return t;if(Fe.call(t,"__wrapped__"))return Fv(t)}return new rn(t)}var Si=function(){function t(){}return function(i){if(!et(i))return{};if(Rh)return Rh(i);t.prototype=i;var o=new t;return t.prototype=r,o}}();function ko(){}function rn(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}h.templateSettings={escape:Hu,evaluate:ku,interpolate:bo,variable:"",imports:{_:h}},h.prototype=ko.prototype,h.prototype.constructor=h,rn.prototype=Si(ko.prototype),rn.prototype.constructor=rn;function Te(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function fR(){var t=new Te(this.__wrapped__);return t.__actions__=Mt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mt(this.__views__),t}function cR(){if(this.__filtered__){var t=new Te(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function lR(){var t=this.__wrapped__.value(),i=this.__dir__,o=ve(t),f=i<0,l=o?t.length:0,g=SL(0,l,this.__views__),b=g.start,S=g.end,C=S-b,F=f?S:b-1,B=this.__iteratees__,W=B.length,Y=0,re=yt(C,this.__takeCount__);if(!o||!f&&l==C&&re==C)return ov(t,this.__actions__);var ue=[];e:for(;C--&&Y<re;){F+=i;for(var we=-1,fe=t[F];++we<W;){var Ie=B[we],xe=Ie.iteratee,Yt=Ie.type,Ct=xe(fe);if(Yt==St)fe=Ct;else if(!Ct){if(Yt==Ht)continue e;break e}}ue[Y++]=fe}return ue}Te.prototype=Si(ko.prototype),Te.prototype.constructor=Te;function Pr(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function pR(){this.__data__=pa?pa(null):{},this.size=0}function dR(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function hR(t){var i=this.__data__;if(pa){var o=i[t];return o===d?r:o}return Fe.call(i,t)?i[t]:r}function vR(t){var i=this.__data__;return pa?i[t]!==r:Fe.call(i,t)}function gR(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=pa&&i===r?d:i,this}Pr.prototype.clear=pR,Pr.prototype.delete=dR,Pr.prototype.get=hR,Pr.prototype.has=vR,Pr.prototype.set=gR;function Dn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function _R(){this.__data__=[],this.size=0}function mR(t){var i=this.__data__,o=qo(i,t);if(o<0)return!1;var f=i.length-1;return o==f?i.pop():jo.call(i,o,1),--this.size,!0}function yR(t){var i=this.__data__,o=qo(i,t);return o<0?r:i[o][1]}function bR(t){return qo(this.__data__,t)>-1}function wR(t,i){var o=this.__data__,f=qo(o,t);return f<0?(++this.size,o.push([t,i])):o[f][1]=i,this}Dn.prototype.clear=_R,Dn.prototype.delete=mR,Dn.prototype.get=yR,Dn.prototype.has=bR,Dn.prototype.set=wR;function Mn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function ER(){this.size=0,this.__data__={hash:new Pr,map:new(ca||Dn),string:new Pr}}function SR(t){var i=is(this,t).delete(t);return this.size-=i?1:0,i}function $R(t){return is(this,t).get(t)}function AR(t){return is(this,t).has(t)}function IR(t,i){var o=is(this,t),f=o.size;return o.set(t,i),this.size+=o.size==f?0:1,this}Mn.prototype.clear=ER,Mn.prototype.delete=SR,Mn.prototype.get=$R,Mn.prototype.has=AR,Mn.prototype.set=IR;function Nr(t){var i=-1,o=t==null?0:t.length;for(this.__data__=new Mn;++i<o;)this.add(t[i])}function TR(t){return this.__data__.set(t,d),this}function CR(t){return this.__data__.has(t)}Nr.prototype.add=Nr.prototype.push=TR,Nr.prototype.has=CR;function dn(t){var i=this.__data__=new Dn(t);this.size=i.size}function OR(){this.__data__=new Dn,this.size=0}function xR(t){var i=this.__data__,o=i.delete(t);return this.size=i.size,o}function RR(t){return this.__data__.get(t)}function LR(t){return this.__data__.has(t)}function PR(t,i){var o=this.__data__;if(o instanceof Dn){var f=o.__data__;if(!ca||f.length<s-1)return f.push([t,i]),this.size=++o.size,this;o=this.__data__=new Mn(f)}return o.set(t,i),this.size=o.size,this}dn.prototype.clear=OR,dn.prototype.delete=xR,dn.prototype.get=RR,dn.prototype.has=LR,dn.prototype.set=PR;function Fh(t,i){var o=ve(t),f=!o&&jr(t),l=!o&&!f&&fr(t),g=!o&&!f&&!l&&Ti(t),b=o||f||l||g,S=b?Af(t.length,Gx):[],C=S.length;for(var F in t)(i||Fe.call(t,F))&&!(b&&(F=="length"||l&&(F=="offset"||F=="parent")||g&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||Bn(F,C)))&&S.push(F);return S}function Uh(t){var i=t.length;return i?t[Wf(0,i-1)]:r}function NR(t,i){return as(Mt(t),Dr(i,0,t.length))}function DR(t){return as(Mt(t))}function Lf(t,i,o){(o!==r&&!hn(t[i],o)||o===r&&!(i in t))&&Fn(t,i,o)}function ha(t,i,o){var f=t[i];(!(Fe.call(t,i)&&hn(f,o))||o===r&&!(i in t))&&Fn(t,i,o)}function qo(t,i){for(var o=t.length;o--;)if(hn(t[o][0],i))return o;return-1}function MR(t,i,o,f){return ar(t,function(l,g,b){i(f,l,o(l),b)}),f}function jh(t,i){return t&&$n(i,ht(i),t)}function FR(t,i){return t&&$n(i,Ut(i),t)}function Fn(t,i,o){i=="__proto__"&&Bo?Bo(t,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[i]=o}function Pf(t,i){for(var o=-1,f=i.length,l=L(f),g=t==null;++o<f;)l[o]=g?r:dc(t,i[o]);return l}function Dr(t,i,o){return t===t&&(o!==r&&(t=t<=o?t:o),i!==r&&(t=t>=i?t:i)),t}function an(t,i,o,f,l,g){var b,S=i&w,C=i&P,F=i&z;if(o&&(b=l?o(t,f,l,g):o(t)),b!==r)return b;if(!et(t))return t;var B=ve(t);if(B){if(b=AL(t),!S)return Mt(t,b)}else{var W=bt(t),Y=W==Nt||W==ln;if(fr(t))return fv(t,S);if(W==Vt||W==Se||Y&&!l){if(b=C||Y?{}:Cv(t),!S)return C?hL(t,FR(b,t)):dL(t,jh(b,t))}else{if(!He[W])return l?t:{};b=IL(t,W,S)}}g||(g=new dn);var re=g.get(t);if(re)return re;g.set(t,b),rg(t)?t.forEach(function(fe){b.add(an(fe,i,o,fe,t,g))}):tg(t)&&t.forEach(function(fe,Ie){b.set(Ie,an(fe,i,o,Ie,t,g))});var ue=F?C?Vf:Qf:C?Ut:ht,we=B?r:ue(t);return tn(we||t,function(fe,Ie){we&&(Ie=fe,fe=t[Ie]),ha(b,Ie,an(fe,i,o,Ie,t,g))}),b}function UR(t){var i=ht(t);return function(o){return Bh(o,t,i)}}function Bh(t,i,o){var f=o.length;if(t==null)return!f;for(t=ze(t);f--;){var l=o[f],g=i[l],b=t[l];if(b===r&&!(l in t)||!g(b))return!1}return!0}function zh(t,i,o){if(typeof t!="function")throw new nn(c);return wa(function(){t.apply(r,o)},i)}function va(t,i,o,f){var l=-1,g=Oo,b=!0,S=t.length,C=[],F=i.length;if(!S)return C;o&&(i=Je(i,qt(o))),f?(g=yf,b=!1):i.length>=s&&(g=ua,b=!1,i=new Nr(i));e:for(;++l<S;){var B=t[l],W=o==null?B:o(B);if(B=f||B!==0?B:0,b&&W===W){for(var Y=F;Y--;)if(i[Y]===W)continue e;C.push(B)}else g(i,W,f)||C.push(B)}return C}var ar=hv(Sn),Wh=hv(Df,!0);function jR(t,i){var o=!0;return ar(t,function(f,l,g){return o=!!i(f,l,g),o}),o}function Ko(t,i,o){for(var f=-1,l=t.length;++f<l;){var g=t[f],b=i(g);if(b!=null&&(S===r?b===b&&!Xt(b):o(b,S)))var S=b,C=g}return C}function BR(t,i,o,f){var l=t.length;for(o=_e(o),o<0&&(o=-o>l?0:l+o),f=f===r||f>l?l:_e(f),f<0&&(f+=l),f=o>f?0:ag(f);o<f;)t[o++]=i;return t}function Gh(t,i){var o=[];return ar(t,function(f,l,g){i(f,l,g)&&o.push(f)}),o}function _t(t,i,o,f,l){var g=-1,b=t.length;for(o||(o=CL),l||(l=[]);++g<b;){var S=t[g];i>0&&o(S)?i>1?_t(S,i-1,o,f,l):nr(l,S):f||(l[l.length]=S)}return l}var Nf=vv(),Hh=vv(!0);function Sn(t,i){return t&&Nf(t,i,ht)}function Df(t,i){return t&&Hh(t,i,ht)}fu