cocoda-sdk 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /*!
2
- * cocoda-sdk v3.4.0
2
+ * cocoda-sdk v3.4.2
3
3
  * Copyright (c) 2021 Verbundzentrale des GBV (VZG)
4
4
  * @license MIT
5
5
  *
6
6
  * For dependency license information, please see ./dist/cocoda-sdk.js.LICENSES.txt.
7
7
  */
8
- var CDK=(()=>{var Yd=Object.create;var Et=Object.defineProperty,Xd=Object.defineProperties,Zd=Object.getOwnPropertyDescriptor,Qd=Object.getOwnPropertyDescriptors,em=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,rm=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var ao=(r,e,t)=>e in r?Et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))gi.call(e,t)&&ao(r,t,e[t]);if(mn)for(var t of mn(e))uo.call(e,t)&&ao(r,t,e[t]);return r},k=(r,e)=>Xd(r,Qd(e));var Ct=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var V=(r,e)=>{var t={};for(var n in r)gi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&mn)for(var n of mn(r))e.indexOf(n)<0&&uo.call(r,n)&&(t[n]=r[n]);return t};var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),gn=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},fo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of em(e))!gi.call(r,i)&&i!==t&&Et(r,i,{get:()=>e[i],enumerable:!(n=Zd(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Yd(rm(r)):{},fo(e||!r||!r.__esModule?Et(t,"default",{value:r,enumerable:!0}):t,r)),tm=r=>fo(Et({},"__esModule",{value:!0}),r);var L=(r,e,t)=>new Promise((n,i)=>{var s=a=>{try{u(t.next(a))}catch(f){i(f)}},o=a=>{try{u(t.throw(a))}catch(f){i(f)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((t=t.apply(r,e)).next())});var We=_((hP,Ho)=>{var Qm=Array.isArray;Ho.exports=Qm});var ji=_((pP,Wo)=>{var eg=typeof global=="object"&&global&&global.Object===Object&&global;Wo.exports=eg});var Ze=_((dP,Go)=>{var rg=ji(),tg=typeof self=="object"&&self&&self.Object===Object&&self,ng=rg||tg||Function("return this")();Go.exports=ng});var kr=_((mP,Ko)=>{var ig=Ze(),sg=ig.Symbol;Ko.exports=sg});var Xo=_((gP,Yo)=>{var Jo=kr(),Vo=Object.prototype,og=Vo.hasOwnProperty,ag=Vo.toString,$t=Jo?Jo.toStringTag:void 0;function ug(r){var e=og.call(r,$t),t=r[$t];try{r[$t]=void 0;var n=!0}catch(s){}var i=ag.call(r);return n&&(e?r[$t]=t:delete r[$t]),i}Yo.exports=ug});var Qo=_((yP,Zo)=>{var fg=Object.prototype,cg=fg.toString;function lg(r){return cg.call(r)}Zo.exports=lg});var br=_((vP,ta)=>{var ea=kr(),hg=Xo(),pg=Qo(),dg="[object Null]",mg="[object Undefined]",ra=ea?ea.toStringTag:void 0;function gg(r){return r==null?r===void 0?mg:dg:ra&&ra in Object(r)?hg(r):pg(r)}ta.exports=gg});var Qe=_((wP,na)=>{function yg(r){return r!=null&&typeof r=="object"}na.exports=yg});var In=_((_P,ia)=>{var vg=br(),wg=Qe(),_g="[object Symbol]";function bg(r){return typeof r=="symbol"||wg(r)&&vg(r)==_g}ia.exports=bg});var oa=_((bP,sa)=>{var Sg=We(),xg=In(),Ag=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/;function Eg(r,e){if(Sg(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||xg(r)?!0:Og.test(r)||!Ag.test(r)||e!=null&&r in Object(e)}sa.exports=Eg});var er=_((SP,aa)=>{function Cg(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}aa.exports=Cg});var Pn=_((xP,ua)=>{var Tg=br(),Ig=er(),Pg="[object AsyncFunction]",qg="[object Function]",Rg="[object GeneratorFunction]",Mg="[object Proxy]";function Lg(r){if(!Ig(r))return!1;var e=Tg(r);return e==qg||e==Rg||e==Pg||e==Mg}ua.exports=Lg});var ca=_((AP,fa)=>{var Ng=Ze(),jg=Ng["__core-js_shared__"];fa.exports=jg});var pa=_((OP,ha)=>{var Ui=ca(),la=function(){var r=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Ug(r){return!!la&&la in r}ha.exports=Ug});var Di=_((EP,da)=>{var Dg=Function.prototype,Fg=Dg.toString;function Bg(r){if(r!=null){try{return Fg.call(r)}catch(e){}try{return r+""}catch(e){}}return""}da.exports=Bg});var ga=_((CP,ma)=>{var kg=Pn(),$g=pa(),zg=er(),Hg=Di(),Wg=/[\\^$.*+?()[\]{}|]/g,Gg=/^\[object .+?Constructor\]$/,Kg=Function.prototype,Jg=Object.prototype,Vg=Kg.toString,Yg=Jg.hasOwnProperty,Xg=RegExp("^"+Vg.call(Yg).replace(Wg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zg(r){if(!zg(r)||$g(r))return!1;var e=kg(r)?Xg:Gg;return e.test(Hg(r))}ma.exports=Zg});var va=_((TP,ya)=>{function Qg(r,e){return r==null?void 0:r[e]}ya.exports=Qg});var Sr=_((IP,wa)=>{var ey=ga(),ry=va();function ty(r,e){var t=ry(r,e);return ey(t)?t:void 0}wa.exports=ty});var zt=_((PP,_a)=>{var ny=Sr(),iy=ny(Object,"create");_a.exports=iy});var xa=_((qP,Sa)=>{var ba=zt();function sy(){this.__data__=ba?ba(null):{},this.size=0}Sa.exports=sy});var Oa=_((RP,Aa)=>{function oy(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Aa.exports=oy});var Ca=_((MP,Ea)=>{var ay=zt(),uy="__lodash_hash_undefined__",fy=Object.prototype,cy=fy.hasOwnProperty;function ly(r){var e=this.__data__;if(ay){var t=e[r];return t===uy?void 0:t}return cy.call(e,r)?e[r]:void 0}Ea.exports=ly});var Ia=_((LP,Ta)=>{var hy=zt(),py=Object.prototype,dy=py.hasOwnProperty;function my(r){var e=this.__data__;return hy?e[r]!==void 0:dy.call(e,r)}Ta.exports=my});var qa=_((NP,Pa)=>{var gy=zt(),yy="__lodash_hash_undefined__";function vy(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=gy&&e===void 0?yy:e,this}Pa.exports=vy});var Ma=_((jP,Ra)=>{var wy=xa(),_y=Oa(),by=Ca(),Sy=Ia(),xy=qa();function ot(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ot.prototype.clear=wy;ot.prototype.delete=_y;ot.prototype.get=by;ot.prototype.has=Sy;ot.prototype.set=xy;Ra.exports=ot});var Na=_((UP,La)=>{function Ay(){this.__data__=[],this.size=0}La.exports=Ay});var at=_((DP,ja)=>{function Oy(r,e){return r===e||r!==r&&e!==e}ja.exports=Oy});var Ht=_((FP,Ua)=>{var Ey=at();function Cy(r,e){for(var t=r.length;t--;)if(Ey(r[t][0],e))return t;return-1}Ua.exports=Cy});var Fa=_((BP,Da)=>{var Ty=Ht(),Iy=Array.prototype,Py=Iy.splice;function qy(r){var e=this.__data__,t=Ty(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Py.call(e,t,1),--this.size,!0}Da.exports=qy});var ka=_((kP,Ba)=>{var Ry=Ht();function My(r){var e=this.__data__,t=Ry(e,r);return t<0?void 0:e[t][1]}Ba.exports=My});var za=_(($P,$a)=>{var Ly=Ht();function Ny(r){return Ly(this.__data__,r)>-1}$a.exports=Ny});var Wa=_((zP,Ha)=>{var jy=Ht();function Uy(r,e){var t=this.__data__,n=jy(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}Ha.exports=Uy});var Wt=_((HP,Ga)=>{var Dy=Na(),Fy=Fa(),By=ka(),ky=za(),$y=Wa();function ut(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ut.prototype.clear=Dy;ut.prototype.delete=Fy;ut.prototype.get=By;ut.prototype.has=ky;ut.prototype.set=$y;Ga.exports=ut});var qn=_((WP,Ka)=>{var zy=Sr(),Hy=Ze(),Wy=zy(Hy,"Map");Ka.exports=Wy});var Ya=_((GP,Va)=>{var Ja=Ma(),Gy=Wt(),Ky=qn();function Jy(){this.size=0,this.__data__={hash:new Ja,map:new(Ky||Gy),string:new Ja}}Va.exports=Jy});var Za=_((KP,Xa)=>{function Vy(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Xa.exports=Vy});var Gt=_((JP,Qa)=>{var Yy=Za();function Xy(r,e){var t=r.__data__;return Yy(e)?t[typeof e=="string"?"string":"hash"]:t.map}Qa.exports=Xy});var ru=_((VP,eu)=>{var Zy=Gt();function Qy(r){var e=Zy(this,r).delete(r);return this.size-=e?1:0,e}eu.exports=Qy});var nu=_((YP,tu)=>{var ev=Gt();function rv(r){return ev(this,r).get(r)}tu.exports=rv});var su=_((XP,iu)=>{var tv=Gt();function nv(r){return tv(this,r).has(r)}iu.exports=nv});var au=_((ZP,ou)=>{var iv=Gt();function sv(r,e){var t=iv(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}ou.exports=sv});var Rn=_((QP,uu)=>{var ov=Ya(),av=ru(),uv=nu(),fv=su(),cv=au();function ft(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ft.prototype.clear=ov;ft.prototype.delete=av;ft.prototype.get=uv;ft.prototype.has=fv;ft.prototype.set=cv;uu.exports=ft});var lu=_((eq,cu)=>{var fu=Rn(),lv="Expected a function";function Fi(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(lv);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(Fi.Cache||fu),t}Fi.Cache=fu;cu.exports=Fi});var pu=_((rq,hu)=>{var hv=lu(),pv=500;function dv(r){var e=hv(r,function(n){return t.size===pv&&t.clear(),n}),t=e.cache;return e}hu.exports=dv});var mu=_((tq,du)=>{var mv=pu(),gv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yv=/\\(\\)?/g,vv=mv(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(gv,function(t,n,i,s){e.push(i?s.replace(yv,"$1"):n||t)}),e});du.exports=vv});var Kt=_((nq,gu)=>{function wv(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}gu.exports=wv});var Su=_((iq,bu)=>{var yu=kr(),_v=Kt(),bv=We(),Sv=In(),xv=1/0,vu=yu?yu.prototype:void 0,wu=vu?vu.toString:void 0;function _u(r){if(typeof r=="string")return r;if(bv(r))return _v(r,_u)+"";if(Sv(r))return wu?wu.call(r):"";var e=r+"";return e=="0"&&1/r==-xv?"-0":e}bu.exports=_u});var Au=_((sq,xu)=>{var Av=Su();function Ov(r){return r==null?"":Av(r)}xu.exports=Ov});var Jt=_((oq,Ou)=>{var Ev=We(),Cv=oa(),Tv=mu(),Iv=Au();function Pv(r,e){return Ev(r)?r:Cv(r,e)?[r]:Tv(Iv(r))}Ou.exports=Pv});var Mn=_((aq,Eu)=>{var qv=In(),Rv=1/0;function Mv(r){if(typeof r=="string"||qv(r))return r;var e=r+"";return e=="0"&&1/r==-Rv?"-0":e}Eu.exports=Mv});var Bi=_((uq,Cu)=>{var Lv=Jt(),Nv=Mn();function jv(r,e){e=Lv(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[Nv(e[t++])];return t&&t==n?r:void 0}Cu.exports=jv});var Iu=_((fq,Tu)=>{var Uv=Bi();function Dv(r,e,t){var n=r==null?void 0:Uv(r,e);return n===void 0?t:n}Tu.exports=Dv});var ki=_((cq,Pu)=>{var Fv=Sr(),Bv=function(){try{var r=Fv(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();Pu.exports=Bv});var Ln=_((lq,Ru)=>{var qu=ki();function kv(r,e,t){e=="__proto__"&&qu?qu(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Ru.exports=kv});var Nn=_((hq,Mu)=>{var $v=Ln(),zv=at(),Hv=Object.prototype,Wv=Hv.hasOwnProperty;function Gv(r,e,t){var n=r[e];(!(Wv.call(r,e)&&zv(n,t))||t===void 0&&!(e in r))&&$v(r,e,t)}Mu.exports=Gv});var jn=_((pq,Lu)=>{var Kv=9007199254740991,Jv=/^(?:0|[1-9]\d*)$/;function Vv(r,e){var t=typeof r;return e=e==null?Kv:e,!!e&&(t=="number"||t!="symbol"&&Jv.test(r))&&r>-1&&r%1==0&&r<e}Lu.exports=Vv});var Uu=_((dq,ju)=>{var Yv=Nn(),Xv=Jt(),Zv=jn(),Nu=er(),Qv=Mn();function ew(r,e,t,n){if(!Nu(r))return r;e=Xv(e,r);for(var i=-1,s=e.length,o=s-1,u=r;u!=null&&++i<s;){var a=Qv(e[i]),f=t;if(a==="__proto__"||a==="constructor"||a==="prototype")return r;if(i!=o){var d=u[a];f=n?n(d,a,u):void 0,f===void 0&&(f=Nu(d)?d:Zv(e[i+1])?[]:{})}Yv(u,a,f),u=u[a]}return r}ju.exports=ew});var Fu=_((mq,Du)=>{var rw=Uu();function tw(r,e,t){return r==null?r:rw(r,e,t)}Du.exports=tw});var ku=_((gq,Bu)=>{var nw="__lodash_hash_undefined__";function iw(r){return this.__data__.set(r,nw),this}Bu.exports=iw});var zu=_((yq,$u)=>{function sw(r){return this.__data__.has(r)}$u.exports=sw});var Dn=_((vq,Hu)=>{var ow=Rn(),aw=ku(),uw=zu();function Un(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ow;++e<t;)this.add(r[e])}Un.prototype.add=Un.prototype.push=aw;Un.prototype.has=uw;Hu.exports=Un});var Gu=_((wq,Wu)=>{function fw(r,e,t,n){for(var i=r.length,s=t+(n?1:-1);n?s--:++s<i;)if(e(r[s],s,r))return s;return-1}Wu.exports=fw});var Ju=_((_q,Ku)=>{function cw(r){return r!==r}Ku.exports=cw});var Yu=_((bq,Vu)=>{function lw(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}Vu.exports=lw});var Zu=_((Sq,Xu)=>{var hw=Gu(),pw=Ju(),dw=Yu();function mw(r,e,t){return e===e?dw(r,e,t):hw(r,pw,t)}Xu.exports=mw});var $i=_((xq,Qu)=>{var gw=Zu();function yw(r,e){var t=r==null?0:r.length;return!!t&&gw(r,e,0)>-1}Qu.exports=yw});var zi=_((Aq,ef)=>{function vw(r,e,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(e,r[n]))return!0;return!1}ef.exports=vw});var Fn=_((Oq,rf)=>{function ww(r,e){return r.has(e)}rf.exports=ww});var Hi=_((Eq,tf)=>{var _w=Sr(),bw=Ze(),Sw=_w(bw,"Set");tf.exports=Sw});var sf=_((Cq,nf)=>{function xw(){}nf.exports=xw});var Bn=_((Tq,of)=>{function Aw(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}of.exports=Aw});var uf=_((Iq,af)=>{var Wi=Hi(),Ow=sf(),Ew=Bn(),Cw=1/0,Tw=Wi&&1/Ew(new Wi([,-0]))[1]==Cw?function(r){return new Wi(r)}:Ow;af.exports=Tw});var Gi=_((Pq,ff)=>{var Iw=Dn(),Pw=$i(),qw=zi(),Rw=Fn(),Mw=uf(),Lw=Bn(),Nw=200;function jw(r,e,t){var n=-1,i=Pw,s=r.length,o=!0,u=[],a=u;if(t)o=!1,i=qw;else if(s>=Nw){var f=e?null:Mw(r);if(f)return Lw(f);o=!1,i=Rw,a=new Iw}else a=e?[]:u;e:for(;++n<s;){var d=r[n],v=e?e(d):d;if(d=t||d!==0?d:0,o&&v===v){for(var w=a.length;w--;)if(a[w]===v)continue e;e&&a.push(v),u.push(d)}else i(a,v,t)||(a!==u&&a.push(v),u.push(d))}return u}ff.exports=jw});var lf=_((qq,cf)=>{var Uw=Gi();function Dw(r){return r&&r.length?Uw(r):[]}cf.exports=Dw});var Vt=_((Rq,hf)=>{function Fw(r){return function(e){return r(e)}}hf.exports=Fw});var mf=_((Mq,df)=>{var Bw=Dn(),kw=$i(),$w=zi(),zw=Kt(),Hw=Vt(),pf=Fn(),Ww=Math.min;function Gw(r,e,t){for(var n=t?$w:kw,i=r[0].length,s=r.length,o=s,u=Array(s),a=1/0,f=[];o--;){var d=r[o];o&&e&&(d=zw(d,Hw(e))),a=Ww(d.length,a),u[o]=!t&&(e||i>=120&&d.length>=120)?new Bw(o&&d):void 0}d=r[0];var v=-1,w=u[0];e:for(;++v<i&&f.length<a;){var O=d[v],p=e?e(O):O;if(O=t||O!==0?O:0,!(w?pf(w,p):n(f,p,t))){for(o=s;--o;){var C=u[o];if(!(C?pf(C,p):n(r[o],p,t)))continue e}w&&w.push(p),f.push(O)}}return f}df.exports=Gw});var kn=_((Lq,gf)=>{function Kw(r){return r}gf.exports=Kw});var vf=_((Nq,yf)=>{function Jw(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}yf.exports=Jw});var Ki=_((jq,_f)=>{var Vw=vf(),wf=Math.max;function Yw(r,e,t){return e=wf(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=wf(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Vw(r,this,u)}}_f.exports=Yw});var Sf=_((Uq,bf)=>{function Xw(r){return function(){return r}}bf.exports=Xw});var Of=_((Dq,Af)=>{var Zw=Sf(),xf=ki(),Qw=kn(),e_=xf?function(r,e){return xf(r,"toString",{configurable:!0,enumerable:!1,value:Zw(e),writable:!0})}:Qw;Af.exports=e_});var Cf=_((Fq,Ef)=>{var r_=800,t_=16,n_=Date.now;function i_(r){var e=0,t=0;return function(){var n=n_(),i=t_-(n-t);if(t=n,i>0){if(++e>=r_)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Ef.exports=i_});var Ji=_((Bq,Tf)=>{var s_=Of(),o_=Cf(),a_=o_(s_);Tf.exports=a_});var $n=_((kq,If)=>{var u_=kn(),f_=Ki(),c_=Ji();function l_(r,e){return c_(f_(r,e,u_),r+"")}If.exports=l_});var Vi=_(($q,Pf)=>{var h_=9007199254740991;function p_(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=h_}Pf.exports=p_});var ct=_((zq,qf)=>{var d_=Pn(),m_=Vi();function g_(r){return r!=null&&m_(r.length)&&!d_(r)}qf.exports=g_});var zn=_((Hq,Rf)=>{var y_=ct(),v_=Qe();function w_(r){return v_(r)&&y_(r)}Rf.exports=w_});var Lf=_((Wq,Mf)=>{var __=zn();function b_(r){return __(r)?r:[]}Mf.exports=b_});var jf=_((Gq,Nf)=>{var S_=Kt(),x_=mf(),A_=$n(),O_=Lf(),E_=A_(function(r){var e=S_(r,O_);return e.length&&e[0]===r[0]?x_(e):[]});Nf.exports=E_});var Yt=_((Kq,Uf)=>{function C_(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}Uf.exports=C_});var Ff=_((Jq,Df)=>{var T_=br(),I_=Qe(),P_="[object Arguments]";function q_(r){return I_(r)&&T_(r)==P_}Df.exports=q_});var Xt=_((Vq,$f)=>{var Bf=Ff(),R_=Qe(),kf=Object.prototype,M_=kf.hasOwnProperty,L_=kf.propertyIsEnumerable,N_=Bf(function(){return arguments}())?Bf:function(r){return R_(r)&&M_.call(r,"callee")&&!L_.call(r,"callee")};$f.exports=N_});var Gf=_((Yq,Wf)=>{var zf=kr(),j_=Xt(),U_=We(),Hf=zf?zf.isConcatSpreadable:void 0;function D_(r){return U_(r)||j_(r)||!!(Hf&&r&&r[Hf])}Wf.exports=D_});var Hn=_((Xq,Jf)=>{var F_=Yt(),B_=Gf();function Kf(r,e,t,n,i){var s=-1,o=r.length;for(t||(t=B_),i||(i=[]);++s<o;){var u=r[s];e>0&&t(u)?e>1?Kf(u,e-1,t,n,i):F_(i,u):n||(i[i.length]=u)}return i}Jf.exports=Kf});var Yf=_((Zq,Vf)=>{var k_=Hn(),$_=$n(),z_=Gi(),H_=zn(),W_=$_(function(r){return z_(k_(r,1,H_,!0))});Vf.exports=W_});var Zf=_((Qq,Xf)=>{function G_(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var a=o[r?u:++i];if(t(s[a],a,s)===!1)break}return e}}Xf.exports=G_});var Yi=_((eR,Qf)=>{var K_=Zf(),J_=K_();Qf.exports=J_});var rc=_((rR,ec)=>{function V_(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}ec.exports=V_});var nc=_((tR,tc)=>{function Y_(){return!1}tc.exports=Y_});var ht=_((Zt,lt)=>{var X_=Ze(),Z_=nc(),oc=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,ic=oc&&typeof lt=="object"&&lt&&!lt.nodeType&&lt,Q_=ic&&ic.exports===oc,sc=Q_?X_.Buffer:void 0,eb=sc?sc.isBuffer:void 0,rb=eb||Z_;lt.exports=rb});var uc=_((nR,ac)=>{var tb=br(),nb=Vi(),ib=Qe(),sb="[object Arguments]",ob="[object Array]",ab="[object Boolean]",ub="[object Date]",fb="[object Error]",cb="[object Function]",lb="[object Map]",hb="[object Number]",pb="[object Object]",db="[object RegExp]",mb="[object Set]",gb="[object String]",yb="[object WeakMap]",vb="[object ArrayBuffer]",wb="[object DataView]",_b="[object Float32Array]",bb="[object Float64Array]",Sb="[object Int8Array]",xb="[object Int16Array]",Ab="[object Int32Array]",Ob="[object Uint8Array]",Eb="[object Uint8ClampedArray]",Cb="[object Uint16Array]",Tb="[object Uint32Array]",Se={};Se[_b]=Se[bb]=Se[Sb]=Se[xb]=Se[Ab]=Se[Ob]=Se[Eb]=Se[Cb]=Se[Tb]=!0;Se[sb]=Se[ob]=Se[vb]=Se[ab]=Se[wb]=Se[ub]=Se[fb]=Se[cb]=Se[lb]=Se[hb]=Se[pb]=Se[db]=Se[mb]=Se[gb]=Se[yb]=!1;function Ib(r){return ib(r)&&nb(r.length)&&!!Se[tb(r)]}ac.exports=Ib});var Wn=_((Qt,pt)=>{var Pb=ji(),fc=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,en=fc&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,qb=en&&en.exports===fc,Xi=qb&&Pb.process,Rb=function(){try{var r=en&&en.require&&en.require("util").types;return r||Xi&&Xi.binding&&Xi.binding("util")}catch(e){}}();pt.exports=Rb});var rn=_((iR,hc)=>{var Mb=uc(),Lb=Vt(),cc=Wn(),lc=cc&&cc.isTypedArray,Nb=lc?Lb(lc):Mb;hc.exports=Nb});var Zi=_((sR,pc)=>{var jb=rc(),Ub=Xt(),Db=We(),Fb=ht(),Bb=jn(),kb=rn(),$b=Object.prototype,zb=$b.hasOwnProperty;function Hb(r,e){var t=Db(r),n=!t&&Ub(r),i=!t&&!n&&Fb(r),s=!t&&!n&&!i&&kb(r),o=t||n||i||s,u=o?jb(r.length,String):[],a=u.length;for(var f in r)(e||zb.call(r,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Bb(f,a)))&&u.push(f);return u}pc.exports=Hb});var tn=_((oR,dc)=>{var Wb=Object.prototype;function Gb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Wb;return r===t}dc.exports=Gb});var Qi=_((aR,mc)=>{function Kb(r,e){return function(t){return r(e(t))}}mc.exports=Kb});var yc=_((uR,gc)=>{var Jb=Qi(),Vb=Jb(Object.keys,Object);gc.exports=Vb});var es=_((fR,vc)=>{var Yb=tn(),Xb=yc(),Zb=Object.prototype,Qb=Zb.hasOwnProperty;function e0(r){if(!Yb(r))return Xb(r);var e=[];for(var t in Object(r))Qb.call(r,t)&&t!="constructor"&&e.push(t);return e}vc.exports=e0});var nn=_((cR,wc)=>{var r0=Zi(),t0=es(),n0=ct();function i0(r){return n0(r)?r0(r):t0(r)}wc.exports=i0});var bc=_((lR,_c)=>{var s0=Yi(),o0=nn();function a0(r,e){return r&&s0(r,e,o0)}_c.exports=a0});var xc=_((hR,Sc)=>{var u0=kn();function f0(r){return typeof r=="function"?r:u0}Sc.exports=f0});var Oc=_((pR,Ac)=>{var c0=bc(),l0=xc();function h0(r,e){return r&&c0(r,l0(e))}Ac.exports=h0});var Cc=_((dR,Ec)=>{var p0=br(),d0=We(),m0=Qe(),g0="[object String]";function y0(r){return typeof r=="string"||!d0(r)&&m0(r)&&p0(r)==g0}Ec.exports=y0});var Ic=_((mR,Tc)=>{var v0=Sr(),w0=Ze(),_0=v0(w0,"DataView");Tc.exports=_0});var qc=_((gR,Pc)=>{var b0=Sr(),S0=Ze(),x0=b0(S0,"Promise");Pc.exports=x0});var Mc=_((yR,Rc)=>{var A0=Sr(),O0=Ze(),E0=A0(O0,"WeakMap");Rc.exports=E0});var mt=_((vR,Bc)=>{var rs=Ic(),ts=qn(),ns=qc(),is=Hi(),ss=Mc(),Fc=br(),dt=Di(),Lc="[object Map]",C0="[object Object]",Nc="[object Promise]",jc="[object Set]",Uc="[object WeakMap]",Dc="[object DataView]",T0=dt(rs),I0=dt(ts),P0=dt(ns),q0=dt(is),R0=dt(ss),$r=Fc;(rs&&$r(new rs(new ArrayBuffer(1)))!=Dc||ts&&$r(new ts)!=Lc||ns&&$r(ns.resolve())!=Nc||is&&$r(new is)!=jc||ss&&$r(new ss)!=Uc)&&($r=function(r){var e=Fc(r),t=e==C0?r.constructor:void 0,n=t?dt(t):"";if(n)switch(n){case T0:return Dc;case I0:return Lc;case P0:return Nc;case q0:return jc;case R0:return Uc}return e});Bc.exports=$r});var $c=_((wR,kc)=>{var M0=es(),L0=mt(),N0=Xt(),j0=We(),U0=ct(),D0=ht(),F0=tn(),B0=rn(),k0="[object Map]",$0="[object Set]",z0=Object.prototype,H0=z0.hasOwnProperty;function W0(r){if(r==null)return!0;if(U0(r)&&(j0(r)||typeof r=="string"||typeof r.splice=="function"||D0(r)||B0(r)||N0(r)))return!r.length;var e=L0(r);if(e==k0||e==$0)return!r.size;if(F0(r))return!M0(r).length;for(var t in r)if(H0.call(r,t))return!1;return!0}kc.exports=W0});var Hc=_((_R,zc)=>{var G0=Wt();function K0(){this.__data__=new G0,this.size=0}zc.exports=K0});var Gc=_((bR,Wc)=>{function J0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Wc.exports=J0});var Jc=_((SR,Kc)=>{function V0(r){return this.__data__.get(r)}Kc.exports=V0});var Yc=_((xR,Vc)=>{function Y0(r){return this.__data__.has(r)}Vc.exports=Y0});var Zc=_((AR,Xc)=>{var X0=Wt(),Z0=qn(),Q0=Rn(),eS=200;function rS(r,e){var t=this.__data__;if(t instanceof X0){var n=t.__data__;if(!Z0||n.length<eS-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Q0(n)}return t.set(r,e),this.size=t.size,this}Xc.exports=rS});var Gn=_((OR,Qc)=>{var tS=Wt(),nS=Hc(),iS=Gc(),sS=Jc(),oS=Yc(),aS=Zc();function gt(r){var e=this.__data__=new tS(r);this.size=e.size}gt.prototype.clear=nS;gt.prototype.delete=iS;gt.prototype.get=sS;gt.prototype.has=oS;gt.prototype.set=aS;Qc.exports=gt});var rl=_((ER,el)=>{function uS(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}el.exports=uS});var os=_((CR,tl)=>{var fS=Dn(),cS=rl(),lS=Fn(),hS=1,pS=2;function dS(r,e,t,n,i,s){var o=t&hS,u=r.length,a=e.length;if(u!=a&&!(o&&a>u))return!1;var f=s.get(r),d=s.get(e);if(f&&d)return f==e&&d==r;var v=-1,w=!0,O=t&pS?new fS:void 0;for(s.set(r,e),s.set(e,r);++v<u;){var p=r[v],C=e[v];if(n)var G=o?n(C,p,v,e,r,s):n(p,C,v,r,e,s);if(G!==void 0){if(G)continue;w=!1;break}if(O){if(!cS(e,function(K,te){if(!lS(O,te)&&(p===K||i(p,K,t,n,s)))return O.push(te)})){w=!1;break}}else if(!(p===C||i(p,C,t,n,s))){w=!1;break}}return s.delete(r),s.delete(e),w}tl.exports=dS});var as=_((TR,nl)=>{var mS=Ze(),gS=mS.Uint8Array;nl.exports=gS});var sl=_((IR,il)=>{function yS(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}il.exports=yS});var cl=_((PR,fl)=>{var ol=kr(),al=as(),vS=at(),wS=os(),_S=sl(),bS=Bn(),SS=1,xS=2,AS="[object Boolean]",OS="[object Date]",ES="[object Error]",CS="[object Map]",TS="[object Number]",IS="[object RegExp]",PS="[object Set]",qS="[object String]",RS="[object Symbol]",MS="[object ArrayBuffer]",LS="[object DataView]",ul=ol?ol.prototype:void 0,us=ul?ul.valueOf:void 0;function NS(r,e,t,n,i,s,o){switch(t){case LS:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case MS:return!(r.byteLength!=e.byteLength||!s(new al(r),new al(e)));case AS:case OS:case TS:return vS(+r,+e);case ES:return r.name==e.name&&r.message==e.message;case IS:case qS:return r==e+"";case CS:var u=_S;case PS:var a=n&SS;if(u||(u=bS),r.size!=e.size&&!a)return!1;var f=o.get(r);if(f)return f==e;n|=xS,o.set(r,e);var d=wS(u(r),u(e),n,i,s,o);return o.delete(r),d;case RS:if(us)return us.call(r)==us.call(e)}return!1}fl.exports=NS});var fs=_((qR,ll)=>{var jS=Yt(),US=We();function DS(r,e,t){var n=e(r);return US(r)?n:jS(n,t(r))}ll.exports=DS});var pl=_((RR,hl)=>{function FS(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}hl.exports=FS});var cs=_((MR,dl)=>{function BS(){return[]}dl.exports=BS});var Kn=_((LR,gl)=>{var kS=pl(),$S=cs(),zS=Object.prototype,HS=zS.propertyIsEnumerable,ml=Object.getOwnPropertySymbols,WS=ml?function(r){return r==null?[]:(r=Object(r),kS(ml(r),function(e){return HS.call(r,e)}))}:$S;gl.exports=WS});var ls=_((NR,yl)=>{var GS=fs(),KS=Kn(),JS=nn();function VS(r){return GS(r,JS,KS)}yl.exports=VS});var _l=_((jR,wl)=>{var vl=ls(),YS=1,XS=Object.prototype,ZS=XS.hasOwnProperty;function QS(r,e,t,n,i,s){var o=t&YS,u=vl(r),a=u.length,f=vl(e),d=f.length;if(a!=d&&!o)return!1;for(var v=a;v--;){var w=u[v];if(!(o?w in e:ZS.call(e,w)))return!1}var O=s.get(r),p=s.get(e);if(O&&p)return O==e&&p==r;var C=!0;s.set(r,e),s.set(e,r);for(var G=o;++v<a;){w=u[v];var K=r[w],te=e[w];if(n)var D=o?n(te,K,w,e,r,s):n(K,te,w,r,e,s);if(!(D===void 0?K===te||i(K,te,t,n,s):D)){C=!1;break}G||(G=w=="constructor")}if(C&&!G){var Q=r.constructor,ne=e.constructor;Q!=ne&&"constructor"in r&&"constructor"in e&&!(typeof Q=="function"&&Q instanceof Q&&typeof ne=="function"&&ne instanceof ne)&&(C=!1)}return s.delete(r),s.delete(e),C}wl.exports=QS});var Tl=_((UR,Cl)=>{var hs=Gn(),ex=os(),rx=cl(),tx=_l(),bl=mt(),Sl=We(),xl=ht(),nx=rn(),ix=1,Al="[object Arguments]",Ol="[object Array]",Jn="[object Object]",sx=Object.prototype,El=sx.hasOwnProperty;function ox(r,e,t,n,i,s){var o=Sl(r),u=Sl(e),a=o?Ol:bl(r),f=u?Ol:bl(e);a=a==Al?Jn:a,f=f==Al?Jn:f;var d=a==Jn,v=f==Jn,w=a==f;if(w&&xl(r)){if(!xl(e))return!1;o=!0,d=!1}if(w&&!d)return s||(s=new hs),o||nx(r)?ex(r,e,t,n,i,s):rx(r,e,a,t,n,i,s);if(!(t&ix)){var O=d&&El.call(r,"__wrapped__"),p=v&&El.call(e,"__wrapped__");if(O||p){var C=O?r.value():r,G=p?e.value():e;return s||(s=new hs),i(C,G,t,n,s)}}return w?(s||(s=new hs),tx(r,e,t,n,i,s)):!1}Cl.exports=ox});var Rl=_((DR,ql)=>{var ax=Tl(),Il=Qe();function Pl(r,e,t,n,i){return r===e?!0:r==null||e==null||!Il(r)&&!Il(e)?r!==r&&e!==e:ax(r,e,t,n,Pl,i)}ql.exports=Pl});var Ll=_((FR,Ml)=>{var ux=Rl();function fx(r,e){return ux(r,e)}Ml.exports=fx});var ps=_((BR,Nl)=>{var cx=Ln(),lx=at();function hx(r,e,t){(t!==void 0&&!lx(r[e],t)||t===void 0&&!(e in r))&&cx(r,e,t)}Nl.exports=hx});var ds=_((sn,yt)=>{var px=Ze(),Fl=typeof sn=="object"&&sn&&!sn.nodeType&&sn,jl=Fl&&typeof yt=="object"&&yt&&!yt.nodeType&&yt,dx=jl&&jl.exports===Fl,Ul=dx?px.Buffer:void 0,Dl=Ul?Ul.allocUnsafe:void 0;function mx(r,e){if(e)return r.slice();var t=r.length,n=Dl?Dl(t):new r.constructor(t);return r.copy(n),n}yt.exports=mx});var Vn=_((kR,kl)=>{var Bl=as();function gx(r){var e=new r.constructor(r.byteLength);return new Bl(e).set(new Bl(r)),e}kl.exports=gx});var ms=_(($R,$l)=>{var yx=Vn();function vx(r,e){var t=e?yx(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}$l.exports=vx});var Yn=_((zR,zl)=>{function wx(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}zl.exports=wx});var Gl=_((HR,Wl)=>{var _x=er(),Hl=Object.create,bx=function(){function r(){}return function(e){if(!_x(e))return{};if(Hl)return Hl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Wl.exports=bx});var Xn=_((WR,Kl)=>{var Sx=Qi(),xx=Sx(Object.getPrototypeOf,Object);Kl.exports=xx});var gs=_((GR,Jl)=>{var Ax=Gl(),Ox=Xn(),Ex=tn();function Cx(r){return typeof r.constructor=="function"&&!Ex(r)?Ax(Ox(r)):{}}Jl.exports=Cx});var ys=_((KR,Yl)=>{var Tx=br(),Ix=Xn(),Px=Qe(),qx="[object Object]",Rx=Function.prototype,Mx=Object.prototype,Vl=Rx.toString,Lx=Mx.hasOwnProperty,Nx=Vl.call(Object);function jx(r){if(!Px(r)||Tx(r)!=qx)return!1;var e=Ix(r);if(e===null)return!0;var t=Lx.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vl.call(t)==Nx}Yl.exports=jx});var vs=_((JR,Xl)=>{function Ux(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Xl.exports=Ux});var zr=_((VR,Zl)=>{var Dx=Nn(),Fx=Ln();function Bx(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],a=n?n(t[u],r[u],u,t,r):void 0;a===void 0&&(a=r[u]),i?Fx(t,u,a):Dx(t,u,a)}return t}Zl.exports=Bx});var eh=_((YR,Ql)=>{function kx(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Ql.exports=kx});var th=_((XR,rh)=>{var $x=er(),zx=tn(),Hx=eh(),Wx=Object.prototype,Gx=Wx.hasOwnProperty;function Kx(r){if(!$x(r))return Hx(r);var e=zx(r),t=[];for(var n in r)n=="constructor"&&(e||!Gx.call(r,n))||t.push(n);return t}rh.exports=Kx});var vt=_((ZR,nh)=>{var Jx=Zi(),Vx=th(),Yx=ct();function Xx(r){return Yx(r)?Jx(r,!0):Vx(r)}nh.exports=Xx});var sh=_((QR,ih)=>{var Zx=zr(),Qx=vt();function eA(r){return Zx(r,Qx(r))}ih.exports=eA});var lh=_((eM,ch)=>{var oh=ps(),rA=ds(),tA=ms(),nA=Yn(),iA=gs(),ah=Xt(),uh=We(),sA=zn(),oA=ht(),aA=Pn(),uA=er(),fA=ys(),cA=rn(),fh=vs(),lA=sh();function hA(r,e,t,n,i,s,o){var u=fh(r,t),a=fh(e,t),f=o.get(a);if(f){oh(r,t,f);return}var d=s?s(u,a,t+"",r,e,o):void 0,v=d===void 0;if(v){var w=uh(a),O=!w&&oA(a),p=!w&&!O&&cA(a);d=a,w||O||p?uh(u)?d=u:sA(u)?d=nA(u):O?(v=!1,d=rA(a,!0)):p?(v=!1,d=tA(a,!0)):d=[]:fA(a)||ah(a)?(d=u,ah(u)?d=lA(u):(!uA(u)||aA(u))&&(d=iA(a))):v=!1}v&&(o.set(a,d),i(d,a,n,s,o),o.delete(a)),oh(r,t,d)}ch.exports=hA});var dh=_((rM,ph)=>{var pA=Gn(),dA=ps(),mA=Yi(),gA=lh(),yA=er(),vA=vt(),wA=vs();function hh(r,e,t,n,i){r!==e&&mA(e,function(s,o){if(i||(i=new pA),yA(s))gA(r,e,o,t,hh,n,i);else{var u=n?n(wA(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),dA(r,o,u)}},vA)}ph.exports=hh});var gh=_((tM,mh)=>{var _A=at(),bA=ct(),SA=jn(),xA=er();function AA(r,e,t){if(!xA(t))return!1;var n=typeof e;return(n=="number"?bA(t)&&SA(e,t.length):n=="string"&&e in t)?_A(t[e],r):!1}mh.exports=AA});var vh=_((nM,yh)=>{var OA=$n(),EA=gh();function CA(r){return OA(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&EA(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}yh.exports=CA});var _h=_((iM,wh)=>{var TA=dh(),IA=vh(),PA=IA(function(r,e,t){TA(r,e,t)});wh.exports=PA});var ws=_((sM,bh)=>{function qA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}bh.exports=qA});var xh=_((oM,Sh)=>{function RA(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}Sh.exports=RA});var Oh=_((aM,Ah)=>{var MA=zr(),LA=nn();function NA(r,e){return r&&MA(e,LA(e),r)}Ah.exports=NA});var Ch=_((uM,Eh)=>{var jA=zr(),UA=vt();function DA(r,e){return r&&jA(e,UA(e),r)}Eh.exports=DA});var Ih=_((fM,Th)=>{var FA=zr(),BA=Kn();function kA(r,e){return FA(r,BA(r),e)}Th.exports=kA});var _s=_((cM,Ph)=>{var $A=Yt(),zA=Xn(),HA=Kn(),WA=cs(),GA=Object.getOwnPropertySymbols,KA=GA?function(r){for(var e=[];r;)$A(e,HA(r)),r=zA(r);return e}:WA;Ph.exports=KA});var Rh=_((lM,qh)=>{var JA=zr(),VA=_s();function YA(r,e){return JA(r,VA(r),e)}qh.exports=YA});var bs=_((hM,Mh)=>{var XA=fs(),ZA=_s(),QA=vt();function eO(r){return XA(r,QA,ZA)}Mh.exports=eO});var Nh=_((pM,Lh)=>{var rO=Object.prototype,tO=rO.hasOwnProperty;function nO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&tO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Lh.exports=nO});var Uh=_((dM,jh)=>{var iO=Vn();function sO(r,e){var t=e?iO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}jh.exports=sO});var Fh=_((mM,Dh)=>{var oO=/\w*$/;function aO(r){var e=new r.constructor(r.source,oO.exec(r));return e.lastIndex=r.lastIndex,e}Dh.exports=aO});var Hh=_((gM,zh)=>{var Bh=kr(),kh=Bh?Bh.prototype:void 0,$h=kh?kh.valueOf:void 0;function uO(r){return $h?Object($h.call(r)):{}}zh.exports=uO});var Gh=_((yM,Wh)=>{var fO=Vn(),cO=Uh(),lO=Fh(),hO=Hh(),pO=ms(),dO="[object Boolean]",mO="[object Date]",gO="[object Map]",yO="[object Number]",vO="[object RegExp]",wO="[object Set]",_O="[object String]",bO="[object Symbol]",SO="[object ArrayBuffer]",xO="[object DataView]",AO="[object Float32Array]",OO="[object Float64Array]",EO="[object Int8Array]",CO="[object Int16Array]",TO="[object Int32Array]",IO="[object Uint8Array]",PO="[object Uint8ClampedArray]",qO="[object Uint16Array]",RO="[object Uint32Array]";function MO(r,e,t){var n=r.constructor;switch(e){case SO:return fO(r);case dO:case mO:return new n(+r);case xO:return cO(r,t);case AO:case OO:case EO:case CO:case TO:case IO:case PO:case qO:case RO:return pO(r,t);case gO:return new n;case yO:case _O:return new n(r);case vO:return lO(r);case wO:return new n;case bO:return hO(r)}}Wh.exports=MO});var Jh=_((vM,Kh)=>{var LO=mt(),NO=Qe(),jO="[object Map]";function UO(r){return NO(r)&&LO(r)==jO}Kh.exports=UO});var Zh=_((wM,Xh)=>{var DO=Jh(),FO=Vt(),Vh=Wn(),Yh=Vh&&Vh.isMap,BO=Yh?FO(Yh):DO;Xh.exports=BO});var ep=_((_M,Qh)=>{var kO=mt(),$O=Qe(),zO="[object Set]";function HO(r){return $O(r)&&kO(r)==zO}Qh.exports=HO});var ip=_((bM,np)=>{var WO=ep(),GO=Vt(),rp=Wn(),tp=rp&&rp.isSet,KO=tp?GO(tp):WO;np.exports=KO});var fp=_((SM,up)=>{var JO=Gn(),VO=xh(),YO=Nn(),XO=Oh(),ZO=Ch(),QO=ds(),eE=Yn(),rE=Ih(),tE=Rh(),nE=ls(),iE=bs(),sE=mt(),oE=Nh(),aE=Gh(),uE=gs(),fE=We(),cE=ht(),lE=Zh(),hE=er(),pE=ip(),dE=nn(),mE=vt(),gE=1,yE=2,vE=4,sp="[object Arguments]",wE="[object Array]",_E="[object Boolean]",bE="[object Date]",SE="[object Error]",op="[object Function]",xE="[object GeneratorFunction]",AE="[object Map]",OE="[object Number]",ap="[object Object]",EE="[object RegExp]",CE="[object Set]",TE="[object String]",IE="[object Symbol]",PE="[object WeakMap]",qE="[object ArrayBuffer]",RE="[object DataView]",ME="[object Float32Array]",LE="[object Float64Array]",NE="[object Int8Array]",jE="[object Int16Array]",UE="[object Int32Array]",DE="[object Uint8Array]",FE="[object Uint8ClampedArray]",BE="[object Uint16Array]",kE="[object Uint32Array]",be={};be[sp]=be[wE]=be[qE]=be[RE]=be[_E]=be[bE]=be[ME]=be[LE]=be[NE]=be[jE]=be[UE]=be[AE]=be[OE]=be[ap]=be[EE]=be[CE]=be[TE]=be[IE]=be[DE]=be[FE]=be[BE]=be[kE]=!0;be[SE]=be[op]=be[PE]=!1;function Zn(r,e,t,n,i,s){var o,u=e&gE,a=e&yE,f=e&vE;if(t&&(o=i?t(r,n,i,s):t(r)),o!==void 0)return o;if(!hE(r))return r;var d=fE(r);if(d){if(o=oE(r),!u)return eE(r,o)}else{var v=sE(r),w=v==op||v==xE;if(cE(r))return QO(r,u);if(v==ap||v==sp||w&&!i){if(o=a||w?{}:uE(r),!u)return a?tE(r,ZO(o,r)):rE(r,XO(o,r))}else{if(!be[v])return i?r:{};o=aE(r,v,u)}}s||(s=new JO);var O=s.get(r);if(O)return O;s.set(r,o),pE(r)?r.forEach(function(G){o.add(Zn(G,e,t,G,r,s))}):lE(r)&&r.forEach(function(G,K){o.set(K,Zn(G,e,t,K,r,s))});var p=f?a?iE:nE:a?mE:dE,C=d?void 0:p(r);return VO(C||r,function(G,K){C&&(K=G,G=r[K]),YO(o,K,Zn(G,e,t,K,r,s))}),o}up.exports=Zn});var lp=_((xM,cp)=>{function $E(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}cp.exports=$E});var pp=_((AM,hp)=>{var zE=Bi(),HE=lp();function WE(r,e){return e.length<2?r:zE(r,HE(e,0,-1))}hp.exports=WE});var mp=_((OM,dp)=>{var GE=Jt(),KE=ws(),JE=pp(),VE=Mn();function YE(r,e){return e=GE(e,r),r=JE(r,e),r==null||delete r[VE(KE(e))]}dp.exports=YE});var yp=_((EM,gp)=>{var XE=ys();function ZE(r){return XE(r)?void 0:r}gp.exports=ZE});var wp=_((CM,vp)=>{var QE=Hn();function eC(r){var e=r==null?0:r.length;return e?QE(r,1):[]}vp.exports=eC});var bp=_((TM,_p)=>{var rC=wp(),tC=Ki(),nC=Ji();function iC(r){return nC(tC(r,void 0,rC),r+"")}_p.exports=iC});var xp=_((IM,Sp)=>{var sC=Kt(),oC=fp(),aC=mp(),uC=Jt(),fC=zr(),cC=yp(),lC=bp(),hC=bs(),pC=1,dC=2,mC=4,gC=lC(function(r,e){var t={};if(r==null)return t;var n=!1;e=sC(e,function(s){return s=uC(s,r),n||(n=s.length>1),s}),fC(r,hC(r),t),n&&(t=oC(t,pC|dC|mC,cC));for(var i=e.length;i--;)aC(t,e[i]);return t});Sp.exports=gC});var Op=_((PM,Ap)=>{var yC=Yt(),vC=Hn(),wC=Yn(),_C=We();function bC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],n=r;n--;)e[n-1]=arguments[n];return yC(_C(t)?wC(t):[t],vC(e,1))}Ap.exports=bC});var Cp=_((qM,Ep)=>{Ep.exports=function(e){var t=function(ne,E){var ee=ne<<E|ne>>>32-E;return ee},n=function(ne){var E="",ee,J;for(ee=7;ee>=0;ee--)J=ne>>>ee*4&15,E+=J.toString(16);return E},i,s,o,u=new Array(80),a=1732584193,f=4023233417,d=2562383102,v=271733878,w=3285377520,O,p,C,G,K,te;e=unescape(encodeURIComponent(e));var D=e.length,Q=[];for(s=0;s<D-3;s+=4)o=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Q.push(o);switch(D%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(D-1)<<24|8388608;break;case 2:s=e.charCodeAt(D-2)<<24|e.charCodeAt(D-1)<<16|32768;break;case 3:s=e.charCodeAt(D-3)<<24|e.charCodeAt(D-2)<<16|e.charCodeAt(D-1)<<8|128;break}for(Q.push(s);Q.length%16!==14;)Q.push(0);for(Q.push(D>>>29),Q.push(D<<3&4294967295),i=0;i<Q.length;i+=16){for(s=0;s<16;s++)u[s]=Q[i+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(O=a,p=f,C=d,G=v,K=w,s=0;s<=19;s++)te=t(O,5)+(p&C|~p&G)+K+u[s]+1518500249&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=20;s<=39;s++)te=t(O,5)+(p^C^G)+K+u[s]+1859775393&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=40;s<=59;s++)te=t(O,5)+(p&C|p&G|C&G)+K+u[s]+2400959708&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=60;s<=79;s++)te=t(O,5)+(p^C^G)+K+u[s]+3395469782&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;a=a+O&4294967295,f=f+p&4294967295,d=d+C&4294967295,v=v+G&4294967295,w=w+K&4294967295}return te=n(a)+n(f)+n(d)+n(v)+n(w),te.toLowerCase()}});var Dp=_((RM,Up)=>{var Ip=Cp();function Pp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function Ts(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Tp(r){let e=Ts(r),t=r[e]?Pp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(n=>({uri:n}))}}function qp(r){let{from:e,to:t,type:n}=r,i={from:Tp(e||{}),to:Tp(t||{}),type:[n&&n[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((i[s][Ts(i[s])]||[]).length==0){let o=r[s+"Scheme"];o&&o.uri&&(i[s+"Scheme"]={uri:o.uri})}return i}function Rp(r){let{from:e,to:t}=r,n=[e,t].filter(Boolean).map(i=>Pp(i[Ts(i)]||[]));return[].concat(...n).sort()}function Mp(r){let e=JSON.stringify(qp(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Ip(e+`
8
+ var CDK=(()=>{var Xd=Object.create;var Et=Object.defineProperty,Zd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,rm=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,tm=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var ao=(r,e,t)=>e in r?Et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))gi.call(e,t)&&ao(r,t,e[t]);if(mn)for(var t of mn(e))uo.call(e,t)&&ao(r,t,e[t]);return r},k=(r,e)=>Zd(r,em(e));var Ct=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var V=(r,e)=>{var t={};for(var n in r)gi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&mn)for(var n of mn(r))e.indexOf(n)<0&&uo.call(r,n)&&(t[n]=r[n]);return t};var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),gn=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},fo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of rm(e))!gi.call(r,i)&&i!==t&&Et(r,i,{get:()=>e[i],enumerable:!(n=Qd(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Xd(tm(r)):{},fo(e||!r||!r.__esModule?Et(t,"default",{value:r,enumerable:!0}):t,r)),nm=r=>fo(Et({},"__esModule",{value:!0}),r);var L=(r,e,t)=>new Promise((n,i)=>{var s=a=>{try{u(t.next(a))}catch(f){i(f)}},o=a=>{try{u(t.throw(a))}catch(f){i(f)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((t=t.apply(r,e)).next())});var We=_((pP,Ho)=>{var eg=Array.isArray;Ho.exports=eg});var ji=_((dP,Wo)=>{var rg=typeof global=="object"&&global&&global.Object===Object&&global;Wo.exports=rg});var Ze=_((mP,Go)=>{var tg=ji(),ng=typeof self=="object"&&self&&self.Object===Object&&self,ig=tg||ng||Function("return this")();Go.exports=ig});var $r=_((gP,Ko)=>{var sg=Ze(),og=sg.Symbol;Ko.exports=og});var Xo=_((yP,Yo)=>{var Jo=$r(),Vo=Object.prototype,ag=Vo.hasOwnProperty,ug=Vo.toString,$t=Jo?Jo.toStringTag:void 0;function fg(r){var e=ag.call(r,$t),t=r[$t];try{r[$t]=void 0;var n=!0}catch(s){}var i=ug.call(r);return n&&(e?r[$t]=t:delete r[$t]),i}Yo.exports=fg});var Qo=_((vP,Zo)=>{var cg=Object.prototype,lg=cg.toString;function hg(r){return lg.call(r)}Zo.exports=hg});var Sr=_((wP,ta)=>{var ea=$r(),pg=Xo(),dg=Qo(),mg="[object Null]",gg="[object Undefined]",ra=ea?ea.toStringTag:void 0;function yg(r){return r==null?r===void 0?gg:mg:ra&&ra in Object(r)?pg(r):dg(r)}ta.exports=yg});var Qe=_((_P,na)=>{function vg(r){return r!=null&&typeof r=="object"}na.exports=vg});var In=_((bP,ia)=>{var wg=Sr(),_g=Qe(),bg="[object Symbol]";function Sg(r){return typeof r=="symbol"||_g(r)&&wg(r)==bg}ia.exports=Sg});var oa=_((SP,sa)=>{var xg=We(),Ag=In(),Og=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eg=/^\w*$/;function Cg(r,e){if(xg(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||Ag(r)?!0:Eg.test(r)||!Og.test(r)||e!=null&&r in Object(e)}sa.exports=Cg});var er=_((xP,aa)=>{function Tg(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}aa.exports=Tg});var Pn=_((AP,ua)=>{var Ig=Sr(),Pg=er(),qg="[object AsyncFunction]",Rg="[object Function]",Mg="[object GeneratorFunction]",Lg="[object Proxy]";function Ng(r){if(!Pg(r))return!1;var e=Ig(r);return e==Rg||e==Mg||e==qg||e==Lg}ua.exports=Ng});var ca=_((OP,fa)=>{var jg=Ze(),Ug=jg["__core-js_shared__"];fa.exports=Ug});var pa=_((EP,ha)=>{var Ui=ca(),la=function(){var r=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Dg(r){return!!la&&la in r}ha.exports=Dg});var Di=_((CP,da)=>{var Fg=Function.prototype,Bg=Fg.toString;function kg(r){if(r!=null){try{return Bg.call(r)}catch(e){}try{return r+""}catch(e){}}return""}da.exports=kg});var ga=_((TP,ma)=>{var $g=Pn(),zg=pa(),Hg=er(),Wg=Di(),Gg=/[\\^$.*+?()[\]{}|]/g,Kg=/^\[object .+?Constructor\]$/,Jg=Function.prototype,Vg=Object.prototype,Yg=Jg.toString,Xg=Vg.hasOwnProperty,Zg=RegExp("^"+Yg.call(Xg).replace(Gg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qg(r){if(!Hg(r)||zg(r))return!1;var e=$g(r)?Zg:Kg;return e.test(Wg(r))}ma.exports=Qg});var va=_((IP,ya)=>{function ey(r,e){return r==null?void 0:r[e]}ya.exports=ey});var xr=_((PP,wa)=>{var ry=ga(),ty=va();function ny(r,e){var t=ty(r,e);return ry(t)?t:void 0}wa.exports=ny});var zt=_((qP,_a)=>{var iy=xr(),sy=iy(Object,"create");_a.exports=sy});var xa=_((RP,Sa)=>{var ba=zt();function oy(){this.__data__=ba?ba(null):{},this.size=0}Sa.exports=oy});var Oa=_((MP,Aa)=>{function ay(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Aa.exports=ay});var Ca=_((LP,Ea)=>{var uy=zt(),fy="__lodash_hash_undefined__",cy=Object.prototype,ly=cy.hasOwnProperty;function hy(r){var e=this.__data__;if(uy){var t=e[r];return t===fy?void 0:t}return ly.call(e,r)?e[r]:void 0}Ea.exports=hy});var Ia=_((NP,Ta)=>{var py=zt(),dy=Object.prototype,my=dy.hasOwnProperty;function gy(r){var e=this.__data__;return py?e[r]!==void 0:my.call(e,r)}Ta.exports=gy});var qa=_((jP,Pa)=>{var yy=zt(),vy="__lodash_hash_undefined__";function wy(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=yy&&e===void 0?vy:e,this}Pa.exports=wy});var Ma=_((UP,Ra)=>{var _y=xa(),by=Oa(),Sy=Ca(),xy=Ia(),Ay=qa();function ot(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ot.prototype.clear=_y;ot.prototype.delete=by;ot.prototype.get=Sy;ot.prototype.has=xy;ot.prototype.set=Ay;Ra.exports=ot});var Na=_((DP,La)=>{function Oy(){this.__data__=[],this.size=0}La.exports=Oy});var at=_((FP,ja)=>{function Ey(r,e){return r===e||r!==r&&e!==e}ja.exports=Ey});var Ht=_((BP,Ua)=>{var Cy=at();function Ty(r,e){for(var t=r.length;t--;)if(Cy(r[t][0],e))return t;return-1}Ua.exports=Ty});var Fa=_((kP,Da)=>{var Iy=Ht(),Py=Array.prototype,qy=Py.splice;function Ry(r){var e=this.__data__,t=Iy(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():qy.call(e,t,1),--this.size,!0}Da.exports=Ry});var ka=_(($P,Ba)=>{var My=Ht();function Ly(r){var e=this.__data__,t=My(e,r);return t<0?void 0:e[t][1]}Ba.exports=Ly});var za=_((zP,$a)=>{var Ny=Ht();function jy(r){return Ny(this.__data__,r)>-1}$a.exports=jy});var Wa=_((HP,Ha)=>{var Uy=Ht();function Dy(r,e){var t=this.__data__,n=Uy(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}Ha.exports=Dy});var Wt=_((WP,Ga)=>{var Fy=Na(),By=Fa(),ky=ka(),$y=za(),zy=Wa();function ut(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ut.prototype.clear=Fy;ut.prototype.delete=By;ut.prototype.get=ky;ut.prototype.has=$y;ut.prototype.set=zy;Ga.exports=ut});var qn=_((GP,Ka)=>{var Hy=xr(),Wy=Ze(),Gy=Hy(Wy,"Map");Ka.exports=Gy});var Ya=_((KP,Va)=>{var Ja=Ma(),Ky=Wt(),Jy=qn();function Vy(){this.size=0,this.__data__={hash:new Ja,map:new(Jy||Ky),string:new Ja}}Va.exports=Vy});var Za=_((JP,Xa)=>{function Yy(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Xa.exports=Yy});var Gt=_((VP,Qa)=>{var Xy=Za();function Zy(r,e){var t=r.__data__;return Xy(e)?t[typeof e=="string"?"string":"hash"]:t.map}Qa.exports=Zy});var ru=_((YP,eu)=>{var Qy=Gt();function ev(r){var e=Qy(this,r).delete(r);return this.size-=e?1:0,e}eu.exports=ev});var nu=_((XP,tu)=>{var rv=Gt();function tv(r){return rv(this,r).get(r)}tu.exports=tv});var su=_((ZP,iu)=>{var nv=Gt();function iv(r){return nv(this,r).has(r)}iu.exports=iv});var au=_((QP,ou)=>{var sv=Gt();function ov(r,e){var t=sv(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}ou.exports=ov});var Rn=_((eq,uu)=>{var av=Ya(),uv=ru(),fv=nu(),cv=su(),lv=au();function ft(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ft.prototype.clear=av;ft.prototype.delete=uv;ft.prototype.get=fv;ft.prototype.has=cv;ft.prototype.set=lv;uu.exports=ft});var lu=_((rq,cu)=>{var fu=Rn(),hv="Expected a function";function Fi(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(hv);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(Fi.Cache||fu),t}Fi.Cache=fu;cu.exports=Fi});var pu=_((tq,hu)=>{var pv=lu(),dv=500;function mv(r){var e=pv(r,function(n){return t.size===dv&&t.clear(),n}),t=e.cache;return e}hu.exports=mv});var mu=_((nq,du)=>{var gv=pu(),yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vv=/\\(\\)?/g,wv=gv(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(yv,function(t,n,i,s){e.push(i?s.replace(vv,"$1"):n||t)}),e});du.exports=wv});var Kt=_((iq,gu)=>{function _v(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}gu.exports=_v});var Su=_((sq,bu)=>{var yu=$r(),bv=Kt(),Sv=We(),xv=In(),Av=1/0,vu=yu?yu.prototype:void 0,wu=vu?vu.toString:void 0;function _u(r){if(typeof r=="string")return r;if(Sv(r))return bv(r,_u)+"";if(xv(r))return wu?wu.call(r):"";var e=r+"";return e=="0"&&1/r==-Av?"-0":e}bu.exports=_u});var Au=_((oq,xu)=>{var Ov=Su();function Ev(r){return r==null?"":Ov(r)}xu.exports=Ev});var Jt=_((aq,Ou)=>{var Cv=We(),Tv=oa(),Iv=mu(),Pv=Au();function qv(r,e){return Cv(r)?r:Tv(r,e)?[r]:Iv(Pv(r))}Ou.exports=qv});var Mn=_((uq,Eu)=>{var Rv=In(),Mv=1/0;function Lv(r){if(typeof r=="string"||Rv(r))return r;var e=r+"";return e=="0"&&1/r==-Mv?"-0":e}Eu.exports=Lv});var Bi=_((fq,Cu)=>{var Nv=Jt(),jv=Mn();function Uv(r,e){e=Nv(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[jv(e[t++])];return t&&t==n?r:void 0}Cu.exports=Uv});var Iu=_((cq,Tu)=>{var Dv=Bi();function Fv(r,e,t){var n=r==null?void 0:Dv(r,e);return n===void 0?t:n}Tu.exports=Fv});var ki=_((lq,Pu)=>{var Bv=xr(),kv=function(){try{var r=Bv(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();Pu.exports=kv});var Ln=_((hq,Ru)=>{var qu=ki();function $v(r,e,t){e=="__proto__"&&qu?qu(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Ru.exports=$v});var Nn=_((pq,Mu)=>{var zv=Ln(),Hv=at(),Wv=Object.prototype,Gv=Wv.hasOwnProperty;function Kv(r,e,t){var n=r[e];(!(Gv.call(r,e)&&Hv(n,t))||t===void 0&&!(e in r))&&zv(r,e,t)}Mu.exports=Kv});var jn=_((dq,Lu)=>{var Jv=9007199254740991,Vv=/^(?:0|[1-9]\d*)$/;function Yv(r,e){var t=typeof r;return e=e==null?Jv:e,!!e&&(t=="number"||t!="symbol"&&Vv.test(r))&&r>-1&&r%1==0&&r<e}Lu.exports=Yv});var Uu=_((mq,ju)=>{var Xv=Nn(),Zv=Jt(),Qv=jn(),Nu=er(),ew=Mn();function rw(r,e,t,n){if(!Nu(r))return r;e=Zv(e,r);for(var i=-1,s=e.length,o=s-1,u=r;u!=null&&++i<s;){var a=ew(e[i]),f=t;if(a==="__proto__"||a==="constructor"||a==="prototype")return r;if(i!=o){var d=u[a];f=n?n(d,a,u):void 0,f===void 0&&(f=Nu(d)?d:Qv(e[i+1])?[]:{})}Xv(u,a,f),u=u[a]}return r}ju.exports=rw});var Fu=_((gq,Du)=>{var tw=Uu();function nw(r,e,t){return r==null?r:tw(r,e,t)}Du.exports=nw});var ku=_((yq,Bu)=>{var iw="__lodash_hash_undefined__";function sw(r){return this.__data__.set(r,iw),this}Bu.exports=sw});var zu=_((vq,$u)=>{function ow(r){return this.__data__.has(r)}$u.exports=ow});var Dn=_((wq,Hu)=>{var aw=Rn(),uw=ku(),fw=zu();function Un(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new aw;++e<t;)this.add(r[e])}Un.prototype.add=Un.prototype.push=uw;Un.prototype.has=fw;Hu.exports=Un});var Gu=_((_q,Wu)=>{function cw(r,e,t,n){for(var i=r.length,s=t+(n?1:-1);n?s--:++s<i;)if(e(r[s],s,r))return s;return-1}Wu.exports=cw});var Ju=_((bq,Ku)=>{function lw(r){return r!==r}Ku.exports=lw});var Yu=_((Sq,Vu)=>{function hw(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}Vu.exports=hw});var Zu=_((xq,Xu)=>{var pw=Gu(),dw=Ju(),mw=Yu();function gw(r,e,t){return e===e?mw(r,e,t):pw(r,dw,t)}Xu.exports=gw});var $i=_((Aq,Qu)=>{var yw=Zu();function vw(r,e){var t=r==null?0:r.length;return!!t&&yw(r,e,0)>-1}Qu.exports=vw});var zi=_((Oq,ef)=>{function ww(r,e,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(e,r[n]))return!0;return!1}ef.exports=ww});var Fn=_((Eq,rf)=>{function _w(r,e){return r.has(e)}rf.exports=_w});var Hi=_((Cq,tf)=>{var bw=xr(),Sw=Ze(),xw=bw(Sw,"Set");tf.exports=xw});var sf=_((Tq,nf)=>{function Aw(){}nf.exports=Aw});var Bn=_((Iq,of)=>{function Ow(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}of.exports=Ow});var uf=_((Pq,af)=>{var Wi=Hi(),Ew=sf(),Cw=Bn(),Tw=1/0,Iw=Wi&&1/Cw(new Wi([,-0]))[1]==Tw?function(r){return new Wi(r)}:Ew;af.exports=Iw});var Gi=_((qq,ff)=>{var Pw=Dn(),qw=$i(),Rw=zi(),Mw=Fn(),Lw=uf(),Nw=Bn(),jw=200;function Uw(r,e,t){var n=-1,i=qw,s=r.length,o=!0,u=[],a=u;if(t)o=!1,i=Rw;else if(s>=jw){var f=e?null:Lw(r);if(f)return Nw(f);o=!1,i=Mw,a=new Pw}else a=e?[]:u;e:for(;++n<s;){var d=r[n],v=e?e(d):d;if(d=t||d!==0?d:0,o&&v===v){for(var w=a.length;w--;)if(a[w]===v)continue e;e&&a.push(v),u.push(d)}else i(a,v,t)||(a!==u&&a.push(v),u.push(d))}return u}ff.exports=Uw});var lf=_((Rq,cf)=>{var Dw=Gi();function Fw(r){return r&&r.length?Dw(r):[]}cf.exports=Fw});var Vt=_((Mq,hf)=>{function Bw(r){return function(e){return r(e)}}hf.exports=Bw});var mf=_((Lq,df)=>{var kw=Dn(),$w=$i(),zw=zi(),Hw=Kt(),Ww=Vt(),pf=Fn(),Gw=Math.min;function Kw(r,e,t){for(var n=t?zw:$w,i=r[0].length,s=r.length,o=s,u=Array(s),a=1/0,f=[];o--;){var d=r[o];o&&e&&(d=Hw(d,Ww(e))),a=Gw(d.length,a),u[o]=!t&&(e||i>=120&&d.length>=120)?new kw(o&&d):void 0}d=r[0];var v=-1,w=u[0];e:for(;++v<i&&f.length<a;){var O=d[v],p=e?e(O):O;if(O=t||O!==0?O:0,!(w?pf(w,p):n(f,p,t))){for(o=s;--o;){var C=u[o];if(!(C?pf(C,p):n(r[o],p,t)))continue e}w&&w.push(p),f.push(O)}}return f}df.exports=Kw});var kn=_((Nq,gf)=>{function Jw(r){return r}gf.exports=Jw});var vf=_((jq,yf)=>{function Vw(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}yf.exports=Vw});var Ki=_((Uq,_f)=>{var Yw=vf(),wf=Math.max;function Xw(r,e,t){return e=wf(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=wf(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Yw(r,this,u)}}_f.exports=Xw});var Sf=_((Dq,bf)=>{function Zw(r){return function(){return r}}bf.exports=Zw});var Of=_((Fq,Af)=>{var Qw=Sf(),xf=ki(),e_=kn(),r_=xf?function(r,e){return xf(r,"toString",{configurable:!0,enumerable:!1,value:Qw(e),writable:!0})}:e_;Af.exports=r_});var Cf=_((Bq,Ef)=>{var t_=800,n_=16,i_=Date.now;function s_(r){var e=0,t=0;return function(){var n=i_(),i=n_-(n-t);if(t=n,i>0){if(++e>=t_)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Ef.exports=s_});var Ji=_((kq,Tf)=>{var o_=Of(),a_=Cf(),u_=a_(o_);Tf.exports=u_});var $n=_(($q,If)=>{var f_=kn(),c_=Ki(),l_=Ji();function h_(r,e){return l_(c_(r,e,f_),r+"")}If.exports=h_});var Vi=_((zq,Pf)=>{var p_=9007199254740991;function d_(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=p_}Pf.exports=d_});var ct=_((Hq,qf)=>{var m_=Pn(),g_=Vi();function y_(r){return r!=null&&g_(r.length)&&!m_(r)}qf.exports=y_});var zn=_((Wq,Rf)=>{var v_=ct(),w_=Qe();function __(r){return w_(r)&&v_(r)}Rf.exports=__});var Lf=_((Gq,Mf)=>{var b_=zn();function S_(r){return b_(r)?r:[]}Mf.exports=S_});var jf=_((Kq,Nf)=>{var x_=Kt(),A_=mf(),O_=$n(),E_=Lf(),C_=O_(function(r){var e=x_(r,E_);return e.length&&e[0]===r[0]?A_(e):[]});Nf.exports=C_});var Yt=_((Jq,Uf)=>{function T_(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}Uf.exports=T_});var Ff=_((Vq,Df)=>{var I_=Sr(),P_=Qe(),q_="[object Arguments]";function R_(r){return P_(r)&&I_(r)==q_}Df.exports=R_});var Xt=_((Yq,$f)=>{var Bf=Ff(),M_=Qe(),kf=Object.prototype,L_=kf.hasOwnProperty,N_=kf.propertyIsEnumerable,j_=Bf(function(){return arguments}())?Bf:function(r){return M_(r)&&L_.call(r,"callee")&&!N_.call(r,"callee")};$f.exports=j_});var Gf=_((Xq,Wf)=>{var zf=$r(),U_=Xt(),D_=We(),Hf=zf?zf.isConcatSpreadable:void 0;function F_(r){return D_(r)||U_(r)||!!(Hf&&r&&r[Hf])}Wf.exports=F_});var Hn=_((Zq,Jf)=>{var B_=Yt(),k_=Gf();function Kf(r,e,t,n,i){var s=-1,o=r.length;for(t||(t=k_),i||(i=[]);++s<o;){var u=r[s];e>0&&t(u)?e>1?Kf(u,e-1,t,n,i):B_(i,u):n||(i[i.length]=u)}return i}Jf.exports=Kf});var Yf=_((Qq,Vf)=>{var $_=Hn(),z_=$n(),H_=Gi(),W_=zn(),G_=z_(function(r){return H_($_(r,1,W_,!0))});Vf.exports=G_});var Zf=_((eR,Xf)=>{function K_(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var a=o[r?u:++i];if(t(s[a],a,s)===!1)break}return e}}Xf.exports=K_});var Yi=_((rR,Qf)=>{var J_=Zf(),V_=J_();Qf.exports=V_});var rc=_((tR,ec)=>{function Y_(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}ec.exports=Y_});var nc=_((nR,tc)=>{function X_(){return!1}tc.exports=X_});var ht=_((Zt,lt)=>{var Z_=Ze(),Q_=nc(),oc=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,ic=oc&&typeof lt=="object"&&lt&&!lt.nodeType&&lt,eb=ic&&ic.exports===oc,sc=eb?Z_.Buffer:void 0,rb=sc?sc.isBuffer:void 0,tb=rb||Q_;lt.exports=tb});var uc=_((iR,ac)=>{var nb=Sr(),ib=Vi(),sb=Qe(),ob="[object Arguments]",ab="[object Array]",ub="[object Boolean]",fb="[object Date]",cb="[object Error]",lb="[object Function]",hb="[object Map]",pb="[object Number]",db="[object Object]",mb="[object RegExp]",gb="[object Set]",yb="[object String]",vb="[object WeakMap]",wb="[object ArrayBuffer]",_b="[object DataView]",bb="[object Float32Array]",Sb="[object Float64Array]",xb="[object Int8Array]",Ab="[object Int16Array]",Ob="[object Int32Array]",Eb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",Ib="[object Uint32Array]",Se={};Se[bb]=Se[Sb]=Se[xb]=Se[Ab]=Se[Ob]=Se[Eb]=Se[Cb]=Se[Tb]=Se[Ib]=!0;Se[ob]=Se[ab]=Se[wb]=Se[ub]=Se[_b]=Se[fb]=Se[cb]=Se[lb]=Se[hb]=Se[pb]=Se[db]=Se[mb]=Se[gb]=Se[yb]=Se[vb]=!1;function Pb(r){return sb(r)&&ib(r.length)&&!!Se[nb(r)]}ac.exports=Pb});var Wn=_((Qt,pt)=>{var qb=ji(),fc=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,en=fc&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,Rb=en&&en.exports===fc,Xi=Rb&&qb.process,Mb=function(){try{var r=en&&en.require&&en.require("util").types;return r||Xi&&Xi.binding&&Xi.binding("util")}catch(e){}}();pt.exports=Mb});var rn=_((sR,hc)=>{var Lb=uc(),Nb=Vt(),cc=Wn(),lc=cc&&cc.isTypedArray,jb=lc?Nb(lc):Lb;hc.exports=jb});var Zi=_((oR,pc)=>{var Ub=rc(),Db=Xt(),Fb=We(),Bb=ht(),kb=jn(),$b=rn(),zb=Object.prototype,Hb=zb.hasOwnProperty;function Wb(r,e){var t=Fb(r),n=!t&&Db(r),i=!t&&!n&&Bb(r),s=!t&&!n&&!i&&$b(r),o=t||n||i||s,u=o?Ub(r.length,String):[],a=u.length;for(var f in r)(e||Hb.call(r,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||kb(f,a)))&&u.push(f);return u}pc.exports=Wb});var tn=_((aR,dc)=>{var Gb=Object.prototype;function Kb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Gb;return r===t}dc.exports=Kb});var Qi=_((uR,mc)=>{function Jb(r,e){return function(t){return r(e(t))}}mc.exports=Jb});var yc=_((fR,gc)=>{var Vb=Qi(),Yb=Vb(Object.keys,Object);gc.exports=Yb});var es=_((cR,vc)=>{var Xb=tn(),Zb=yc(),Qb=Object.prototype,e0=Qb.hasOwnProperty;function r0(r){if(!Xb(r))return Zb(r);var e=[];for(var t in Object(r))e0.call(r,t)&&t!="constructor"&&e.push(t);return e}vc.exports=r0});var nn=_((lR,wc)=>{var t0=Zi(),n0=es(),i0=ct();function s0(r){return i0(r)?t0(r):n0(r)}wc.exports=s0});var bc=_((hR,_c)=>{var o0=Yi(),a0=nn();function u0(r,e){return r&&o0(r,e,a0)}_c.exports=u0});var xc=_((pR,Sc)=>{var f0=kn();function c0(r){return typeof r=="function"?r:f0}Sc.exports=c0});var Oc=_((dR,Ac)=>{var l0=bc(),h0=xc();function p0(r,e){return r&&l0(r,h0(e))}Ac.exports=p0});var Cc=_((mR,Ec)=>{var d0=Sr(),m0=We(),g0=Qe(),y0="[object String]";function v0(r){return typeof r=="string"||!m0(r)&&g0(r)&&d0(r)==y0}Ec.exports=v0});var Ic=_((gR,Tc)=>{var w0=xr(),_0=Ze(),b0=w0(_0,"DataView");Tc.exports=b0});var qc=_((yR,Pc)=>{var S0=xr(),x0=Ze(),A0=S0(x0,"Promise");Pc.exports=A0});var Mc=_((vR,Rc)=>{var O0=xr(),E0=Ze(),C0=O0(E0,"WeakMap");Rc.exports=C0});var mt=_((wR,Bc)=>{var rs=Ic(),ts=qn(),ns=qc(),is=Hi(),ss=Mc(),Fc=Sr(),dt=Di(),Lc="[object Map]",T0="[object Object]",Nc="[object Promise]",jc="[object Set]",Uc="[object WeakMap]",Dc="[object DataView]",I0=dt(rs),P0=dt(ts),q0=dt(ns),R0=dt(is),M0=dt(ss),zr=Fc;(rs&&zr(new rs(new ArrayBuffer(1)))!=Dc||ts&&zr(new ts)!=Lc||ns&&zr(ns.resolve())!=Nc||is&&zr(new is)!=jc||ss&&zr(new ss)!=Uc)&&(zr=function(r){var e=Fc(r),t=e==T0?r.constructor:void 0,n=t?dt(t):"";if(n)switch(n){case I0:return Dc;case P0:return Lc;case q0:return Nc;case R0:return jc;case M0:return Uc}return e});Bc.exports=zr});var $c=_((_R,kc)=>{var L0=es(),N0=mt(),j0=Xt(),U0=We(),D0=ct(),F0=ht(),B0=tn(),k0=rn(),$0="[object Map]",z0="[object Set]",H0=Object.prototype,W0=H0.hasOwnProperty;function G0(r){if(r==null)return!0;if(D0(r)&&(U0(r)||typeof r=="string"||typeof r.splice=="function"||F0(r)||k0(r)||j0(r)))return!r.length;var e=N0(r);if(e==$0||e==z0)return!r.size;if(B0(r))return!L0(r).length;for(var t in r)if(W0.call(r,t))return!1;return!0}kc.exports=G0});var Hc=_((bR,zc)=>{var K0=Wt();function J0(){this.__data__=new K0,this.size=0}zc.exports=J0});var Gc=_((SR,Wc)=>{function V0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Wc.exports=V0});var Jc=_((xR,Kc)=>{function Y0(r){return this.__data__.get(r)}Kc.exports=Y0});var Yc=_((AR,Vc)=>{function X0(r){return this.__data__.has(r)}Vc.exports=X0});var Zc=_((OR,Xc)=>{var Z0=Wt(),Q0=qn(),eS=Rn(),rS=200;function tS(r,e){var t=this.__data__;if(t instanceof Z0){var n=t.__data__;if(!Q0||n.length<rS-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new eS(n)}return t.set(r,e),this.size=t.size,this}Xc.exports=tS});var Gn=_((ER,Qc)=>{var nS=Wt(),iS=Hc(),sS=Gc(),oS=Jc(),aS=Yc(),uS=Zc();function gt(r){var e=this.__data__=new nS(r);this.size=e.size}gt.prototype.clear=iS;gt.prototype.delete=sS;gt.prototype.get=oS;gt.prototype.has=aS;gt.prototype.set=uS;Qc.exports=gt});var rl=_((CR,el)=>{function fS(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}el.exports=fS});var os=_((TR,tl)=>{var cS=Dn(),lS=rl(),hS=Fn(),pS=1,dS=2;function mS(r,e,t,n,i,s){var o=t&pS,u=r.length,a=e.length;if(u!=a&&!(o&&a>u))return!1;var f=s.get(r),d=s.get(e);if(f&&d)return f==e&&d==r;var v=-1,w=!0,O=t&dS?new cS:void 0;for(s.set(r,e),s.set(e,r);++v<u;){var p=r[v],C=e[v];if(n)var G=o?n(C,p,v,e,r,s):n(p,C,v,r,e,s);if(G!==void 0){if(G)continue;w=!1;break}if(O){if(!lS(e,function(K,te){if(!hS(O,te)&&(p===K||i(p,K,t,n,s)))return O.push(te)})){w=!1;break}}else if(!(p===C||i(p,C,t,n,s))){w=!1;break}}return s.delete(r),s.delete(e),w}tl.exports=mS});var as=_((IR,nl)=>{var gS=Ze(),yS=gS.Uint8Array;nl.exports=yS});var sl=_((PR,il)=>{function vS(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}il.exports=vS});var cl=_((qR,fl)=>{var ol=$r(),al=as(),wS=at(),_S=os(),bS=sl(),SS=Bn(),xS=1,AS=2,OS="[object Boolean]",ES="[object Date]",CS="[object Error]",TS="[object Map]",IS="[object Number]",PS="[object RegExp]",qS="[object Set]",RS="[object String]",MS="[object Symbol]",LS="[object ArrayBuffer]",NS="[object DataView]",ul=ol?ol.prototype:void 0,us=ul?ul.valueOf:void 0;function jS(r,e,t,n,i,s,o){switch(t){case NS:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case LS:return!(r.byteLength!=e.byteLength||!s(new al(r),new al(e)));case OS:case ES:case IS:return wS(+r,+e);case CS:return r.name==e.name&&r.message==e.message;case PS:case RS:return r==e+"";case TS:var u=bS;case qS:var a=n&xS;if(u||(u=SS),r.size!=e.size&&!a)return!1;var f=o.get(r);if(f)return f==e;n|=AS,o.set(r,e);var d=_S(u(r),u(e),n,i,s,o);return o.delete(r),d;case MS:if(us)return us.call(r)==us.call(e)}return!1}fl.exports=jS});var fs=_((RR,ll)=>{var US=Yt(),DS=We();function FS(r,e,t){var n=e(r);return DS(r)?n:US(n,t(r))}ll.exports=FS});var pl=_((MR,hl)=>{function BS(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}hl.exports=BS});var cs=_((LR,dl)=>{function kS(){return[]}dl.exports=kS});var Kn=_((NR,gl)=>{var $S=pl(),zS=cs(),HS=Object.prototype,WS=HS.propertyIsEnumerable,ml=Object.getOwnPropertySymbols,GS=ml?function(r){return r==null?[]:(r=Object(r),$S(ml(r),function(e){return WS.call(r,e)}))}:zS;gl.exports=GS});var ls=_((jR,yl)=>{var KS=fs(),JS=Kn(),VS=nn();function YS(r){return KS(r,VS,JS)}yl.exports=YS});var _l=_((UR,wl)=>{var vl=ls(),XS=1,ZS=Object.prototype,QS=ZS.hasOwnProperty;function ex(r,e,t,n,i,s){var o=t&XS,u=vl(r),a=u.length,f=vl(e),d=f.length;if(a!=d&&!o)return!1;for(var v=a;v--;){var w=u[v];if(!(o?w in e:QS.call(e,w)))return!1}var O=s.get(r),p=s.get(e);if(O&&p)return O==e&&p==r;var C=!0;s.set(r,e),s.set(e,r);for(var G=o;++v<a;){w=u[v];var K=r[w],te=e[w];if(n)var D=o?n(te,K,w,e,r,s):n(K,te,w,r,e,s);if(!(D===void 0?K===te||i(K,te,t,n,s):D)){C=!1;break}G||(G=w=="constructor")}if(C&&!G){var Q=r.constructor,ne=e.constructor;Q!=ne&&"constructor"in r&&"constructor"in e&&!(typeof Q=="function"&&Q instanceof Q&&typeof ne=="function"&&ne instanceof ne)&&(C=!1)}return s.delete(r),s.delete(e),C}wl.exports=ex});var Tl=_((DR,Cl)=>{var hs=Gn(),rx=os(),tx=cl(),nx=_l(),bl=mt(),Sl=We(),xl=ht(),ix=rn(),sx=1,Al="[object Arguments]",Ol="[object Array]",Jn="[object Object]",ox=Object.prototype,El=ox.hasOwnProperty;function ax(r,e,t,n,i,s){var o=Sl(r),u=Sl(e),a=o?Ol:bl(r),f=u?Ol:bl(e);a=a==Al?Jn:a,f=f==Al?Jn:f;var d=a==Jn,v=f==Jn,w=a==f;if(w&&xl(r)){if(!xl(e))return!1;o=!0,d=!1}if(w&&!d)return s||(s=new hs),o||ix(r)?rx(r,e,t,n,i,s):tx(r,e,a,t,n,i,s);if(!(t&sx)){var O=d&&El.call(r,"__wrapped__"),p=v&&El.call(e,"__wrapped__");if(O||p){var C=O?r.value():r,G=p?e.value():e;return s||(s=new hs),i(C,G,t,n,s)}}return w?(s||(s=new hs),nx(r,e,t,n,i,s)):!1}Cl.exports=ax});var Rl=_((FR,ql)=>{var ux=Tl(),Il=Qe();function Pl(r,e,t,n,i){return r===e?!0:r==null||e==null||!Il(r)&&!Il(e)?r!==r&&e!==e:ux(r,e,t,n,Pl,i)}ql.exports=Pl});var Ll=_((BR,Ml)=>{var fx=Rl();function cx(r,e){return fx(r,e)}Ml.exports=cx});var ps=_((kR,Nl)=>{var lx=Ln(),hx=at();function px(r,e,t){(t!==void 0&&!hx(r[e],t)||t===void 0&&!(e in r))&&lx(r,e,t)}Nl.exports=px});var ds=_((sn,yt)=>{var dx=Ze(),Fl=typeof sn=="object"&&sn&&!sn.nodeType&&sn,jl=Fl&&typeof yt=="object"&&yt&&!yt.nodeType&&yt,mx=jl&&jl.exports===Fl,Ul=mx?dx.Buffer:void 0,Dl=Ul?Ul.allocUnsafe:void 0;function gx(r,e){if(e)return r.slice();var t=r.length,n=Dl?Dl(t):new r.constructor(t);return r.copy(n),n}yt.exports=gx});var Vn=_(($R,kl)=>{var Bl=as();function yx(r){var e=new r.constructor(r.byteLength);return new Bl(e).set(new Bl(r)),e}kl.exports=yx});var ms=_((zR,$l)=>{var vx=Vn();function wx(r,e){var t=e?vx(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}$l.exports=wx});var Yn=_((HR,zl)=>{function _x(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}zl.exports=_x});var Gl=_((WR,Wl)=>{var bx=er(),Hl=Object.create,Sx=function(){function r(){}return function(e){if(!bx(e))return{};if(Hl)return Hl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Wl.exports=Sx});var Xn=_((GR,Kl)=>{var xx=Qi(),Ax=xx(Object.getPrototypeOf,Object);Kl.exports=Ax});var gs=_((KR,Jl)=>{var Ox=Gl(),Ex=Xn(),Cx=tn();function Tx(r){return typeof r.constructor=="function"&&!Cx(r)?Ox(Ex(r)):{}}Jl.exports=Tx});var ys=_((JR,Yl)=>{var Ix=Sr(),Px=Xn(),qx=Qe(),Rx="[object Object]",Mx=Function.prototype,Lx=Object.prototype,Vl=Mx.toString,Nx=Lx.hasOwnProperty,jx=Vl.call(Object);function Ux(r){if(!qx(r)||Ix(r)!=Rx)return!1;var e=Px(r);if(e===null)return!0;var t=Nx.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vl.call(t)==jx}Yl.exports=Ux});var vs=_((VR,Xl)=>{function Dx(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Xl.exports=Dx});var Hr=_((YR,Zl)=>{var Fx=Nn(),Bx=Ln();function kx(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],a=n?n(t[u],r[u],u,t,r):void 0;a===void 0&&(a=r[u]),i?Bx(t,u,a):Fx(t,u,a)}return t}Zl.exports=kx});var eh=_((XR,Ql)=>{function $x(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Ql.exports=$x});var th=_((ZR,rh)=>{var zx=er(),Hx=tn(),Wx=eh(),Gx=Object.prototype,Kx=Gx.hasOwnProperty;function Jx(r){if(!zx(r))return Wx(r);var e=Hx(r),t=[];for(var n in r)n=="constructor"&&(e||!Kx.call(r,n))||t.push(n);return t}rh.exports=Jx});var vt=_((QR,nh)=>{var Vx=Zi(),Yx=th(),Xx=ct();function Zx(r){return Xx(r)?Vx(r,!0):Yx(r)}nh.exports=Zx});var sh=_((eM,ih)=>{var Qx=Hr(),eA=vt();function rA(r){return Qx(r,eA(r))}ih.exports=rA});var lh=_((rM,ch)=>{var oh=ps(),tA=ds(),nA=ms(),iA=Yn(),sA=gs(),ah=Xt(),uh=We(),oA=zn(),aA=ht(),uA=Pn(),fA=er(),cA=ys(),lA=rn(),fh=vs(),hA=sh();function pA(r,e,t,n,i,s,o){var u=fh(r,t),a=fh(e,t),f=o.get(a);if(f){oh(r,t,f);return}var d=s?s(u,a,t+"",r,e,o):void 0,v=d===void 0;if(v){var w=uh(a),O=!w&&aA(a),p=!w&&!O&&lA(a);d=a,w||O||p?uh(u)?d=u:oA(u)?d=iA(u):O?(v=!1,d=tA(a,!0)):p?(v=!1,d=nA(a,!0)):d=[]:cA(a)||ah(a)?(d=u,ah(u)?d=hA(u):(!fA(u)||uA(u))&&(d=sA(a))):v=!1}v&&(o.set(a,d),i(d,a,n,s,o),o.delete(a)),oh(r,t,d)}ch.exports=pA});var dh=_((tM,ph)=>{var dA=Gn(),mA=ps(),gA=Yi(),yA=lh(),vA=er(),wA=vt(),_A=vs();function hh(r,e,t,n,i){r!==e&&gA(e,function(s,o){if(i||(i=new dA),vA(s))yA(r,e,o,t,hh,n,i);else{var u=n?n(_A(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),mA(r,o,u)}},wA)}ph.exports=hh});var gh=_((nM,mh)=>{var bA=at(),SA=ct(),xA=jn(),AA=er();function OA(r,e,t){if(!AA(t))return!1;var n=typeof e;return(n=="number"?SA(t)&&xA(e,t.length):n=="string"&&e in t)?bA(t[e],r):!1}mh.exports=OA});var vh=_((iM,yh)=>{var EA=$n(),CA=gh();function TA(r){return EA(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&CA(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}yh.exports=TA});var _h=_((sM,wh)=>{var IA=dh(),PA=vh(),qA=PA(function(r,e,t){IA(r,e,t)});wh.exports=qA});var ws=_((oM,bh)=>{function RA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}bh.exports=RA});var xh=_((aM,Sh)=>{function MA(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}Sh.exports=MA});var Oh=_((uM,Ah)=>{var LA=Hr(),NA=nn();function jA(r,e){return r&&LA(e,NA(e),r)}Ah.exports=jA});var Ch=_((fM,Eh)=>{var UA=Hr(),DA=vt();function FA(r,e){return r&&UA(e,DA(e),r)}Eh.exports=FA});var Ih=_((cM,Th)=>{var BA=Hr(),kA=Kn();function $A(r,e){return BA(r,kA(r),e)}Th.exports=$A});var _s=_((lM,Ph)=>{var zA=Yt(),HA=Xn(),WA=Kn(),GA=cs(),KA=Object.getOwnPropertySymbols,JA=KA?function(r){for(var e=[];r;)zA(e,WA(r)),r=HA(r);return e}:GA;Ph.exports=JA});var Rh=_((hM,qh)=>{var VA=Hr(),YA=_s();function XA(r,e){return VA(r,YA(r),e)}qh.exports=XA});var bs=_((pM,Mh)=>{var ZA=fs(),QA=_s(),eO=vt();function rO(r){return ZA(r,eO,QA)}Mh.exports=rO});var Nh=_((dM,Lh)=>{var tO=Object.prototype,nO=tO.hasOwnProperty;function iO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&nO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Lh.exports=iO});var Uh=_((mM,jh)=>{var sO=Vn();function oO(r,e){var t=e?sO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}jh.exports=oO});var Fh=_((gM,Dh)=>{var aO=/\w*$/;function uO(r){var e=new r.constructor(r.source,aO.exec(r));return e.lastIndex=r.lastIndex,e}Dh.exports=uO});var Hh=_((yM,zh)=>{var Bh=$r(),kh=Bh?Bh.prototype:void 0,$h=kh?kh.valueOf:void 0;function fO(r){return $h?Object($h.call(r)):{}}zh.exports=fO});var Gh=_((vM,Wh)=>{var cO=Vn(),lO=Uh(),hO=Fh(),pO=Hh(),dO=ms(),mO="[object Boolean]",gO="[object Date]",yO="[object Map]",vO="[object Number]",wO="[object RegExp]",_O="[object Set]",bO="[object String]",SO="[object Symbol]",xO="[object ArrayBuffer]",AO="[object DataView]",OO="[object Float32Array]",EO="[object Float64Array]",CO="[object Int8Array]",TO="[object Int16Array]",IO="[object Int32Array]",PO="[object Uint8Array]",qO="[object Uint8ClampedArray]",RO="[object Uint16Array]",MO="[object Uint32Array]";function LO(r,e,t){var n=r.constructor;switch(e){case xO:return cO(r);case mO:case gO:return new n(+r);case AO:return lO(r,t);case OO:case EO:case CO:case TO:case IO:case PO:case qO:case RO:case MO:return dO(r,t);case yO:return new n;case vO:case bO:return new n(r);case wO:return hO(r);case _O:return new n;case SO:return pO(r)}}Wh.exports=LO});var Jh=_((wM,Kh)=>{var NO=mt(),jO=Qe(),UO="[object Map]";function DO(r){return jO(r)&&NO(r)==UO}Kh.exports=DO});var Zh=_((_M,Xh)=>{var FO=Jh(),BO=Vt(),Vh=Wn(),Yh=Vh&&Vh.isMap,kO=Yh?BO(Yh):FO;Xh.exports=kO});var ep=_((bM,Qh)=>{var $O=mt(),zO=Qe(),HO="[object Set]";function WO(r){return zO(r)&&$O(r)==HO}Qh.exports=WO});var ip=_((SM,np)=>{var GO=ep(),KO=Vt(),rp=Wn(),tp=rp&&rp.isSet,JO=tp?KO(tp):GO;np.exports=JO});var fp=_((xM,up)=>{var VO=Gn(),YO=xh(),XO=Nn(),ZO=Oh(),QO=Ch(),eE=ds(),rE=Yn(),tE=Ih(),nE=Rh(),iE=ls(),sE=bs(),oE=mt(),aE=Nh(),uE=Gh(),fE=gs(),cE=We(),lE=ht(),hE=Zh(),pE=er(),dE=ip(),mE=nn(),gE=vt(),yE=1,vE=2,wE=4,sp="[object Arguments]",_E="[object Array]",bE="[object Boolean]",SE="[object Date]",xE="[object Error]",op="[object Function]",AE="[object GeneratorFunction]",OE="[object Map]",EE="[object Number]",ap="[object Object]",CE="[object RegExp]",TE="[object Set]",IE="[object String]",PE="[object Symbol]",qE="[object WeakMap]",RE="[object ArrayBuffer]",ME="[object DataView]",LE="[object Float32Array]",NE="[object Float64Array]",jE="[object Int8Array]",UE="[object Int16Array]",DE="[object Int32Array]",FE="[object Uint8Array]",BE="[object Uint8ClampedArray]",kE="[object Uint16Array]",$E="[object Uint32Array]",be={};be[sp]=be[_E]=be[RE]=be[ME]=be[bE]=be[SE]=be[LE]=be[NE]=be[jE]=be[UE]=be[DE]=be[OE]=be[EE]=be[ap]=be[CE]=be[TE]=be[IE]=be[PE]=be[FE]=be[BE]=be[kE]=be[$E]=!0;be[xE]=be[op]=be[qE]=!1;function Zn(r,e,t,n,i,s){var o,u=e&yE,a=e&vE,f=e&wE;if(t&&(o=i?t(r,n,i,s):t(r)),o!==void 0)return o;if(!pE(r))return r;var d=cE(r);if(d){if(o=aE(r),!u)return rE(r,o)}else{var v=oE(r),w=v==op||v==AE;if(lE(r))return eE(r,u);if(v==ap||v==sp||w&&!i){if(o=a||w?{}:fE(r),!u)return a?nE(r,QO(o,r)):tE(r,ZO(o,r))}else{if(!be[v])return i?r:{};o=uE(r,v,u)}}s||(s=new VO);var O=s.get(r);if(O)return O;s.set(r,o),dE(r)?r.forEach(function(G){o.add(Zn(G,e,t,G,r,s))}):hE(r)&&r.forEach(function(G,K){o.set(K,Zn(G,e,t,K,r,s))});var p=f?a?sE:iE:a?gE:mE,C=d?void 0:p(r);return YO(C||r,function(G,K){C&&(K=G,G=r[K]),XO(o,K,Zn(G,e,t,K,r,s))}),o}up.exports=Zn});var lp=_((AM,cp)=>{function zE(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}cp.exports=zE});var pp=_((OM,hp)=>{var HE=Bi(),WE=lp();function GE(r,e){return e.length<2?r:HE(r,WE(e,0,-1))}hp.exports=GE});var mp=_((EM,dp)=>{var KE=Jt(),JE=ws(),VE=pp(),YE=Mn();function XE(r,e){return e=KE(e,r),r=VE(r,e),r==null||delete r[YE(JE(e))]}dp.exports=XE});var yp=_((CM,gp)=>{var ZE=ys();function QE(r){return ZE(r)?void 0:r}gp.exports=QE});var wp=_((TM,vp)=>{var eC=Hn();function rC(r){var e=r==null?0:r.length;return e?eC(r,1):[]}vp.exports=rC});var bp=_((IM,_p)=>{var tC=wp(),nC=Ki(),iC=Ji();function sC(r){return iC(nC(r,void 0,tC),r+"")}_p.exports=sC});var xp=_((PM,Sp)=>{var oC=Kt(),aC=fp(),uC=mp(),fC=Jt(),cC=Hr(),lC=yp(),hC=bp(),pC=bs(),dC=1,mC=2,gC=4,yC=hC(function(r,e){var t={};if(r==null)return t;var n=!1;e=oC(e,function(s){return s=fC(s,r),n||(n=s.length>1),s}),cC(r,pC(r),t),n&&(t=aC(t,dC|mC|gC,lC));for(var i=e.length;i--;)uC(t,e[i]);return t});Sp.exports=yC});var Op=_((qM,Ap)=>{var vC=Yt(),wC=Hn(),_C=Yn(),bC=We();function SC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],n=r;n--;)e[n-1]=arguments[n];return vC(bC(t)?_C(t):[t],wC(e,1))}Ap.exports=SC});var Cp=_((RM,Ep)=>{Ep.exports=function(e){var t=function(ne,E){var ee=ne<<E|ne>>>32-E;return ee},n=function(ne){var E="",ee,J;for(ee=7;ee>=0;ee--)J=ne>>>ee*4&15,E+=J.toString(16);return E},i,s,o,u=new Array(80),a=1732584193,f=4023233417,d=2562383102,v=271733878,w=3285377520,O,p,C,G,K,te;e=unescape(encodeURIComponent(e));var D=e.length,Q=[];for(s=0;s<D-3;s+=4)o=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Q.push(o);switch(D%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(D-1)<<24|8388608;break;case 2:s=e.charCodeAt(D-2)<<24|e.charCodeAt(D-1)<<16|32768;break;case 3:s=e.charCodeAt(D-3)<<24|e.charCodeAt(D-2)<<16|e.charCodeAt(D-1)<<8|128;break}for(Q.push(s);Q.length%16!==14;)Q.push(0);for(Q.push(D>>>29),Q.push(D<<3&4294967295),i=0;i<Q.length;i+=16){for(s=0;s<16;s++)u[s]=Q[i+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(O=a,p=f,C=d,G=v,K=w,s=0;s<=19;s++)te=t(O,5)+(p&C|~p&G)+K+u[s]+1518500249&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=20;s<=39;s++)te=t(O,5)+(p^C^G)+K+u[s]+1859775393&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=40;s<=59;s++)te=t(O,5)+(p&C|p&G|C&G)+K+u[s]+2400959708&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=60;s<=79;s++)te=t(O,5)+(p^C^G)+K+u[s]+3395469782&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;a=a+O&4294967295,f=f+p&4294967295,d=d+C&4294967295,v=v+G&4294967295,w=w+K&4294967295}return te=n(a)+n(f)+n(d)+n(v)+n(w),te.toLowerCase()}});var Dp=_((MM,Up)=>{var Ip=Cp();function Pp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function Ts(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Tp(r){let e=Ts(r),t=r[e]?Pp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(n=>({uri:n}))}}function qp(r){let{from:e,to:t,type:n}=r,i={from:Tp(e||{}),to:Tp(t||{}),type:[n&&n[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((i[s][Ts(i[s])]||[]).length==0){let o=r[s+"Scheme"];o&&o.uri&&(i[s+"Scheme"]={uri:o.uri})}return i}function Rp(r){let{from:e,to:t}=r,n=[e,t].filter(Boolean).map(i=>Pp(i[Ts(i)]||[]));return[].concat(...n).sort()}function Mp(r){let e=JSON.stringify(qp(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Ip(e+`
9
9
  `)}function Lp(r){let e=JSON.stringify(Rp(r));return"urn:jskos:mapping:members:"+Ip(e+`
10
- `)}function Cs(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Lp(r),Mp(r)]).sort();return Object.assign({},r,{identifier:e})}function Np(r,e,t){r=r&&Cs(r),e=e&&Cs(e);let n=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,i=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return n==i}function jp(r,e){return Np(r,e,"urn:jskos:mapping:content:")}var xC=jp;function AC(r,e){return Np(r,e,"urn:jskos:mapping:members:")}Up.exports={mappingContent:qp,mappingMembers:Rp,mappingContentIdentifier:Mp,mappingMembersIdentifier:Lp,addMappingIdentifiers:Cs,compareMappings:jp,compareMappingContent:xC,compareMappingMembers:AC}});var Is=_((MM,Bp)=>{function Fp(r,e,t){var n=Array.prototype.slice,i=typeof Object.keys=="function"?Object.keys:function(f){var d=[];for(var v in f)d.push(v);return d},s=function(f,d){return f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():typeof f!="object"&&typeof d!="object"?f==d:a(f,d)};function o(f){return f==null}function u(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function a(f,d){if(o(f)||o(d)||f.prototype!==d.prototype)return!1;if(u(f))return u(d)?(f=n.call(f),d=n.call(d),s(f,d)):!1;try{var v=i(f),w=i(d),O,p}catch(C){return!1}if(v.length!=w.length)return!1;for(v.sort(),w.sort(),p=v.length-1;p>=0;p--)if(v[p]!=w[p])return!1;for(p=v.length-1;p>=0;p--)if(O=v[p],t){let C=t(f[O],d[O],O);if(C===void 0&&(C=Fp(f[O],d[O])),!C)return!1}else if(!s(f[O],d[O]))return!1;return!0}return s(r,e)}Bp.exports={get:(r,e,t=void 0)=>{let n=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((o,u)=>o!=null?o[u]:o,r),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===r?t:i},pick:(r,e)=>e.reduce((t,n)=>(r&&r.hasOwnProperty(n)&&(t[n]=r[n]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Fp,intersection:(...r)=>r.reduce((e,t)=>e.filter(n=>t.includes(n))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((n,i)=>(n.findIndex(s=>t(s,i))!==-1||n.push(i),n),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let n=0;n<t.length-1;n++)r=r[t[n]];delete r[t.pop()]}}}});var Ps=_((LM,OC)=>{OC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",bs:"ta\u010Dno podudaranje",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",ur:"\u0628\u0627\u0644\u06A9\u0644 \u062F\u0631\u0633\u062A \u062C\u0648\u0691",zh:"\u7CBE\u78BA\u5339\u914D","zh-cn":"\u7CBE\u786E\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",hu:"kv\xE1zi-egyen\xE9rt\xE9k\u0171s\xE9g",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",cs:"\u0161ir\u0161\xED koncept",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza con termine pi\xF9 generico",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",fi:"liittyv\xE4 k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fi:"SKOS mappaussuhde",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",ja:"SKOS\u4E00\u822C\u30DE\u30C3\u30D4\u30F3\u30B0\u95A2\u4FC2",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"SKOS generisk mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var $p=_((NM,kp)=>{var EC=Ps(),ei={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:EC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Qn=Object.keys(ei).reduce((r,e)=>{for(let t of ei[e].type||[])r[t]=e;return r},{});function CC(r,e=!1){var t;if(typeof r=="string"&&r)r in Qn?t=Qn[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(ei).find(n=>{let i=n.toLowerCase();if(i===r||i==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let n=Array.isArray(r.type)?r.type:[r.type];for(let i of n)if(i in Qn){t=Qn[i];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}kp.exports={objectTypes:ei,guessObjectType:CC}});var Rs=_((jM,zp)=>{var TC=/[\\^$.*+?()[\]{}|]/g,IC=r=>r.replace(TC,"\\$&"),PC=/[%ÄÖÜäöü ]/g,qs=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+IC(this.namespace);let t=this.notationPattern.replace(PC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let n=this.notationFromUri(e);if(n===void 0)return;let i={uri:e,notation:[n]};return t.inScheme&&(i.inScheme=[{uri:this.uri}]),t.topConcept&&(i.topConceptOf=[{uri:this.uri}]),i}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};zp.exports=qs});var Ms=_((UM,Wp)=>{var qC=Is(),ri={store:null,path:"",defaults:["en"],getLanguages:Hp,selectLanguage:RC};function Hp(){return qC.get(ri.store,ri.path)||ri.defaults}function RC(r){if(!r)return null;for(let e of Hp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Wp.exports=ri});var ed=_((DM,Qp)=>{var ie=Is(),MC=r=>/^[A-Z]*$/.test(r),wt=(r,e)=>e.split(".").reduce((t,n)=>t&&t[n]?t[n]:null,r),LC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),Us=r=>(Object.keys(r).forEach(e=>{MC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=Us(r[e]))}),r),NC=Us,ti=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let n=Array.isArray(r)?[]:{};for(let i in r)if(!(t&&i[0]=="_")){if(e.includes(i))if(r[i]&&Array.isArray(r[i])){r[i].length>0?n[i]=[null]:n[i]=[];continue}else{n[i]=null;continue}if(i=="inScheme"){let s=[];for(let o of r.inScheme){let u={uri:o.uri};o.notation&&(u.notation=o.notation),o.prefLabel&&(u.prefLabel=o.prefLabel),s.push(u)}n.inScheme=s;continue}r[i]!=null&&typeof r[i]=="object"?n[i]=ti(r[i]):n[i]=r[i]}return n},jC=ti,Ls=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]):[],Ar=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),n=Ls(r).map(t),i=Ls(e).map(t);return ie.intersection(n,i).length>0},UC=Ar,DC=Ar,FC=Ar,BC=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Gp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Kp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(Ar(r,t))return!0;return!1},kC=Kp,$C=(r,e=!1)=>r.sort((t,n)=>{let i=ie.get(t,"notation[0]"),s=ie.get(n,"notation[0]");if(i&&s&&(i=i.toLowerCase(),s=s.toLowerCase()),e&&(i=parseFloat(i)||i,s=parseFloat(s)||s),(!i||!s||i==s)&&(i=t.uri,s=n.uri),i&&s){if(i>s)return 1;if(i<s)return-1}return 0}),zC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,n)=>{for(let i of e){let s,o;if(Array.isArray(i))for(let u of i)s=s||ie.get(t,u),o=o||ie.get(n,u);else s=ie.get(t,i),o=ie.get(n,i);if(s!=null&&o!=null){if(s=s.toLowerCase(),o=o.toLowerCase(),s>o)return 1;if(s<o)return-1}}return 0})},HC=r=>{let e=ie.pick(ti(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(n,i)=>{let s=[];for(let o of n)s.push(ie.pick(o,["uri","notation"]));t[i]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Jp=Ps(),un=function(r){for(let e of Jp)if(r==e.uri)return e;return null},Vp=un("http://www.w3.org/2004/02/skos/core#mappingRelation"),WC=function(r,e=Vp){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,un(t)||e},GC=(r,e={})=>{let{language:t}=e,n=wt(r,"from.memberSet.0.notation.0"),i=wt(r,"to.memberSet.0.notation.0");n=n!==null?n:"",i=i!==null?i:"";let s=un(wt(r,"type.0"));s=s?s.SHORT:"";let o=_t(wt(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=_t(wt(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",a=_t(wt(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:n,toNotation:i,fromLabel:o,toLabel:u,type:s,creator:a}},KC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',n=r.lineTerminator||`
11
- `,i=t+t,s=o=>t+(o==null?"":o.split(t).join(i))+t;return o=>o.map(s).join(e)+n},Hr=(r,e)=>{let t=[];for(let n of["from","to"])(e==null||n===e)&&(t=t.concat(ie.get(r,`${n}.memberSet`)||ie.get(r,`${n}.memberChoice`)||ie.get(r,`${n}.memberList`)||[]));return t.filter(n=>n!=null)},JC=(r={})=>{let e=KC(r),t=r.language||"en";r.type==null&&(r.type=!0);let n=o=>{o=o||[];let u=[];for(let a of["from","to"]){r.schemes&&u.push(`${a}Scheme`);let f=Math.max(...o.map(d=>Hr(d,a).length),1);for(let d=0;d<f;d+=1)u.push(`${a}Notation${d?d+1:""}`),r.labels&&u.push(`${a}Label${d?d+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},i=(o,u={})=>{let a=[];for(let f of["from","to"]){r.schemes&&a.push(ie.get(o,`${f}Scheme.notation[0]`,""));let d=Hr(o,f),v=u[`${f}Count`];v==null&&(v=d.length),v=Math.max(v,1);for(let w=0;w<v;w+=1)a.push(ie.get(d[w],"notation[0]","")),r.labels&&a.push(_t(d[w],{language:t,fallbackToUri:!1}))}return r.type&&a.push(ie.get(un(ie.get(o,"type[0]")),"SHORT","")),r.creator&&a.push(_t(ie.get(o,"creator[0]"),{language:t,fallbackToUri:!1})),e(a)};return{header:n,fromMapping:i,fromMappings:(o,u={header:!0})=>{let a="";u.header&&(a+=n(o));let f={fromCount:Math.max(...o.map(d=>Hr(d,"from").length)),toCount:Math.max(...o.map(d=>Hr(d,"to").length))};for(let d of o)a+=i(d,f);return a}}};function VC(r,e){return ie.isEqualWith(r,e,(t,n,i)=>{let s={[i]:t},o={[i]:n};if(i=="from"||i=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,i,{})),Object.getOwnPropertyNames(ie.get(n,i,{})))?ie.isEqualWith(Hr(s,i),Hr(o,i),(u,a,f)=>{if(f!=null)return Ar(u,a)}):!1;if(i=="fromScheme"||i=="toScheme")return Ar(t,n)})}var{objectTypes:YC,guessObjectType:Ns}=$p(),XC=(r,e)=>{let t=Ns(r),n=Ns(e);return!(t&&n&&t!=n)},Yp=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},Xp=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,Yp(r.identifier)),r),Zp=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let n=t._path||"",i=t.detectMismatch||[],s=t.skipPaths||[],o={};return ie.forOwn(r,(u,a)=>{if(!s.includes(n+a))if(Array.isArray(u)&&Array.isArray(e[a]))o[a]=ie.unionWith(u,e[a],(f,d)=>ie.isObject(f)&&ie.isObject(d)?Ar(f,d):f===d),Yp(o[a]);else if(ie.isObject(u)&&ie.isObject(e[a]))o[a]=Zp(u,e[a],Object.assign({_path:`${n}${a}.`},t));else{if(u&&e[a]&&i.includes(n+a)&&!ie.isEqualWith(u,e[a]))throw new Error("Property mismatch in "+n+a);o[a]=u}}),ie.forOwn(e,(u,a)=>{r[a]||(o[a]=u)}),n==""&&ie.omitMod(o,s),t.mergeUris&&Xp(o,e),o},js=r=>Array.isArray(r)?r.map(e=>js(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=js(e)}),r):ie.isString(r)?r.normalize():r,ZC=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},QC={mappingsByConcepts:(r,e,t)=>{let n=["memberSet","memberList","memberChoice"],i,s;for(let o of n)i=i||ie.get(r,t+"."+o+"[0].notation[0]"),s=s||ie.get(e,t+"."+o+"[0].notation[0]");return i==null||i<s?-1:s==null||i>s?1:0}},eT=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),rT=Rs(),tT=Ms();function nT(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Gp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new rT(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(n){}return t||""}function Ds(r,e,{language:t}={}){let n=r&&e?r[e]:r;return n&&(n[t]||(t=tT.selectLanguage(n),t))?n[t]:null}function _t(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||Ds(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function iT(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||Ds(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function sT(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function oT(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function aT(r){return ie.get(r,"creator.name")||""}function uT(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}Qp.exports={addContext:LC,clean:Us,cleanJSKOS:NC,copyDeep:ti,deepCopy:jC,getAllUris:Ls,compare:Ar,compareObjects:UC,compareSchemes:DC,compareConcepts:FC,isConcept:BC,isScheme:Gp,isContainedIn:Kp,isSchemeInList:kC,sortConcepts:$C,sortSchemes:zC,minifyMapping:HC,mappingTypes:Jp,mappingTypeByUri:un,mappingTypeByType:WC,flattenMapping:GC,mappingCSV:JC,defaultMappingType:Vp,conceptsOfMapping:Hr,compareMappingsDeep:VC,objectTypes:YC,guessObjectType:Ns,matchObjectTypes:XC,mergeUris:Xp,merge:Zp,normalize:js,isValidUri:ZC,compareFunctions:QC,userOwnsMapping:eT,notation:nT,languageMapContent:Ds,prefLabel:_t,definition:iT,mappingRegistryIsStored:sT,annotationCreatorUri:oT,annotationCreatorName:aT,annotationCreatorMatches:uT}});var Ge=_((FM,rd)=>{var fT=Dp(),cT=ed(),lT=Rs(),hT=Ms();rd.exports=Object.assign({ConceptScheme:lT,languagePreference:hT},fT,cT)});var nd=_((td,Bs)=>{(function(r){if(typeof td=="object"&&typeof Bs!="undefined")Bs.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(i,s,o){function u(d,v){if(!s[d]){if(!i[d]){var w=typeof Ct=="function"&&Ct;if(!v&&w)return w(d,!0);if(a)return a(d,!0);var O=new Error("Cannot find module '"+d+"'");throw O.code="MODULE_NOT_FOUND",O}var p=s[d]={exports:{}};i[d][0].call(p.exports,function(C){var G=i[d][1][C];return u(G||C)},p,p.exports,n,i,s,o)}return s[d].exports}for(var a=typeof Ct=="function"&&Ct,f=0;f<o.length;f++)u(o[f]);return u}({1:[function(n,i,s){(function(o){"use strict";var u=o.MutationObserver||o.WebKitMutationObserver,a;if(u){var f=0,d=new u(C),v=o.document.createTextNode("");d.observe(v,{characterData:!0}),a=function(){v.data=f=++f%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var w=new o.MessageChannel;w.port1.onmessage=C,a=function(){w.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var K=o.document.createElement("script");K.onreadystatechange=function(){C(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},o.document.documentElement.appendChild(K)}:a=function(){setTimeout(C,0)};var O,p=[];function C(){O=!0;for(var K,te,D=p.length;D;){for(te=p,p=[],K=-1;++K<D;)te[K]();D=p.length}O=!1}i.exports=G;function G(K){p.push(K)===1&&!O&&a()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,s){"use strict";var o=n(1);function u(){}var a={},f=["REJECTED"],d=["FULFILLED"],v=["PENDING"];i.exports=w;function w(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,E!==u&&G(this,E)}w.prototype.catch=function(E){return this.then(null,E)},w.prototype.then=function(E,ee){if(typeof E!="function"&&this.state===d||typeof ee!="function"&&this.state===f)return this;var J=new this.constructor(u);if(this.state!==v){var ge=this.state===d?E:ee;p(J,ge,this.outcome)}else this.queue.push(new O(J,E,ee));return J};function O(E,ee,J){this.promise=E,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}O.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},O.prototype.otherCallFulfilled=function(E){p(this.promise,this.onFulfilled,E)},O.prototype.callRejected=function(E){a.reject(this.promise,E)},O.prototype.otherCallRejected=function(E){p(this.promise,this.onRejected,E)};function p(E,ee,J){o(function(){var ge;try{ge=ee(J)}catch(Te){return a.reject(E,Te)}ge===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,ge)})}a.resolve=function(E,ee){var J=K(C,ee);if(J.status==="error")return a.reject(E,J.value);var ge=J.value;if(ge)G(E,ge);else{E.state=d,E.outcome=ee;for(var Te=-1,we=E.queue.length;++Te<we;)E.queue[Te].callFulfilled(ee)}return E},a.reject=function(E,ee){E.state=f,E.outcome=ee;for(var J=-1,ge=E.queue.length;++J<ge;)E.queue[J].callRejected(ee);return E};function C(E){var ee=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof ee=="function")return function(){ee.apply(E,arguments)}}function G(E,ee){var J=!1;function ge(Me){J||(J=!0,a.reject(E,Me))}function Te(Me){J||(J=!0,a.resolve(E,Me))}function we(){ee(Te,ge)}var ke=K(we);ke.status==="error"&&ge(ke.value)}function K(E,ee){var J={};try{J.value=E(ee),J.status="success"}catch(ge){J.status="error",J.value=ge}return J}w.resolve=te;function te(E){return E instanceof this?E:a.resolve(new this(u),E)}w.reject=D;function D(E){var ee=new this(u);return a.reject(ee,E)}w.all=Q;function Q(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=new Array(J),we=0,ke=-1,Me=new this(u);++ke<J;)Ye(E[ke],ke);return Me;function Ye(dr,Ur){ee.resolve(dr).then(Je,function(mr){ge||(ge=!0,a.reject(Me,mr))});function Je(mr){Te[Ur]=mr,++we===J&&!ge&&(ge=!0,a.resolve(Me,Te))}}}w.race=ne;function ne(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=-1,we=new this(u);++Te<J;)ke(E[Te]);return we;function ke(Me){ee.resolve(Me).then(function(Ye){ge||(ge=!0,a.resolve(we,Ye))},function(Ye){ge||(ge=!0,a.reject(we,Ye))})}}},{1:1}],3:[function(n,i,s){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,s){"use strict";var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function u(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(c){return}}var f=a();function d(){try{if(!f||!f.open)return!1;var c=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),y=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||y)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(l){return!1}}function v(c,y){c=c||[],y=y||{};try{return new Blob(c,y)}catch(b){if(b.name!=="TypeError")throw b;for(var l=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,S=new l,x=0;x<c.length;x+=1)S.append(c[x]);return S.getBlob(y.type)}}typeof Promise=="undefined"&&n(3);var w=Promise;function O(c,y){y&&c.then(function(l){y(null,l)},function(l){y(l)})}function p(c,y,l){typeof y=="function"&&c.then(y),typeof l=="function"&&c.catch(l)}function C(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function G(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",te=void 0,D={},Q=Object.prototype.toString,ne="readonly",E="readwrite";function ee(c){for(var y=c.length,l=new ArrayBuffer(y),S=new Uint8Array(l),x=0;x<y;x++)S[x]=c.charCodeAt(x);return l}function J(c){return new w(function(y){var l=c.transaction(K,E),S=v([""]);l.objectStore(K).put(S,"key"),l.onabort=function(x){x.preventDefault(),x.stopPropagation(),y(!1)},l.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),b=navigator.userAgent.match(/Edge\//);y(b||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function ge(c){return typeof te=="boolean"?w.resolve(te):J(c).then(function(y){return te=y,te})}function Te(c){var y=D[c.name],l={};l.promise=new w(function(S,x){l.resolve=S,l.reject=x}),y.deferredOperations.push(l),y.dbReady?y.dbReady=y.dbReady.then(function(){return l.promise}):y.dbReady=l.promise}function we(c){var y=D[c.name],l=y.deferredOperations.pop();if(l)return l.resolve(),l.promise}function ke(c,y){var l=D[c.name],S=l.deferredOperations.pop();if(S)return S.reject(y),S.promise}function Me(c,y){return new w(function(l,S){if(D[c.name]=D[c.name]||g(),c.db)if(y)Te(c),c.db.close();else return l(c.db);var x=[c.name];y&&x.push(c.version);var b=f.open.apply(f,x);y&&(b.onupgradeneeded=function(P){var j=b.result;try{j.createObjectStore(c.storeName),P.oldVersion<=1&&j.createObjectStore(K)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw F}}),b.onerror=function(P){P.preventDefault(),S(b.error)},b.onsuccess=function(){var P=b.result;P.onversionchange=function(j){j.target.close()},l(P),we(c)}})}function Ye(c){return Me(c,!1)}function dr(c){return Me(c,!0)}function Ur(c,y){if(!c.db)return!0;var l=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,x=c.version>c.db.version;if(S&&(c.version!==y&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),x||l){if(l){var b=c.db.version+1;b>c.version&&(c.version=b)}return!0}return!1}function Je(c){return new w(function(y,l){var S=new FileReader;S.onerror=l,S.onloadend=function(x){var b=btoa(x.target.result||"");y({__local_forage_encoded_blob:!0,data:b,type:c.type})},S.readAsBinaryString(c)})}function mr(c){var y=ee(atob(c.data));return v([y],{type:c.type})}function ar(c){return c&&c.__local_forage_encoded_blob}function fi(c){var y=this,l=y._initReady().then(function(){var S=D[y._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return p(l,c,c),l}function h(c){Te(c);for(var y=D[c.name],l=y.forages,S=0;S<l.length;S++){var x=l[S];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return c.db=null,Ye(c).then(function(b){return c.db=b,Ur(c)?dr(c):b}).then(function(b){c.db=y.db=b;for(var P=0;P<l.length;P++)l[P]._dbInfo.db=b}).catch(function(b){throw ke(c,b),b})}function m(c,y,l,S){S===void 0&&(S=1);try{var x=c.db.transaction(c.storeName,y);l(null,x)}catch(b){if(S>0&&(!c.db||b.name==="InvalidStateError"||b.name==="NotFoundError"))return w.resolve().then(function(){if(!c.db||b.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),dr(c)}).then(function(){return h(c).then(function(){m(c,y,l,S-1)})}).catch(l);l(b)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=c[S];var x=D[l.name];x||(x=g(),D[l.name]=x),x.forages.push(y),y._initReady||(y._initReady=y.ready,y.ready=fi);var b=[];function P(){return w.resolve()}for(var j=0;j<x.forages.length;j++){var F=x.forages[j];F!==y&&b.push(F._initReady().catch(P))}var B=x.forages.slice(0);return w.all(b).then(function(){return l.db=x.db,Ye(l)}).then(function(z){return l.db=z,Ur(l,y._defaultConfig.version)?dr(l):z}).then(function(z){l.db=x.db=z,y._dbInfo=l;for(var Z=0;Z<B.length;Z++){var fe=B[Z];fe!==y&&(fe._dbInfo.db=l.db,fe._dbInfo.version=l.version)}})}function T(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.get(c);B.onsuccess=function(){var z=B.result;z===void 0&&(z=null),ar(z)&&(z=mr(z)),x(z)},B.onerror=function(){b(B.error)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function q(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.openCursor(),z=1;B.onsuccess=function(){var Z=B.result;if(Z){var fe=Z.value;ar(fe)&&(fe=mr(fe));var me=c(fe,Z.key,z++);me!==void 0?x(me):Z.continue()}else x()},B.onerror=function(){b(B.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function N(c,y,l){var S=this;c=C(c);var x=new w(function(b,P){var j;S.ready().then(function(){return j=S._dbInfo,Q.call(y)==="[object Blob]"?ge(j.db).then(function(F){return F?y:Je(y)}):y}).then(function(F){m(S._dbInfo,E,function(B,z){if(B)return P(B);try{var Z=z.objectStore(S._dbInfo.storeName);F===null&&(F=void 0);var fe=Z.put(F,c);z.oncomplete=function(){F===void 0&&(F=null),b(F)},z.onabort=z.onerror=function(){var me=fe.error?fe.error:fe.transaction.error;P(me)}}catch(me){P(me)}})}).catch(P)});return O(x,l),x}function R(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,E,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.delete(c);j.oncomplete=function(){x()},j.onerror=function(){b(B.error)},j.onabort=function(){var z=B.error?B.error:B.transaction.error;b(z)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function U(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,E,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.clear();P.oncomplete=function(){S()},P.onabort=P.onerror=function(){var B=F.error?F.error:F.transaction.error;x(B)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function $(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.count();F.onsuccess=function(){S(F.result)},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function X(c,y){var l=this,S=new w(function(x,b){if(c<0){x(null);return}l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=!1,z=F.openKeyCursor();z.onsuccess=function(){var Z=z.result;if(!Z){x(null);return}c===0||B?x(Z.key):(B=!0,Z.advance(c))},z.onerror=function(){b(z.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function Y(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.openKeyCursor(),B=[];F.onsuccess=function(){var z=F.result;if(!z){S(B);return}B.push(z.key),z.continue()},F.onerror=function(){x(F.error)}}catch(z){x(z)}})}).catch(x)});return O(l,c),l}function W(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;if(!c.name)x=w.reject("Invalid arguments");else{var b=c.name===l.name&&S._dbInfo.db,P=b?w.resolve(S._dbInfo.db):Ye(c).then(function(j){var F=D[c.name],B=F.forages;F.db=j;for(var z=0;z<B.length;z++)B[z]._dbInfo.db=j;return j});c.storeName?x=P.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var F=j.version+1;Te(c);var B=D[c.name],z=B.forages;j.close();for(var Z=0;Z<z.length;Z++){var fe=z[Z];fe._dbInfo.db=null,fe._dbInfo.version=F}var me=new w(function(ye,Ce){var Ee=f.open(c.name,F);Ee.onerror=function(Ve){var Ot=Ee.result;Ot.close(),Ce(Ve)},Ee.onupgradeneeded=function(){var Ve=Ee.result;Ve.deleteObjectStore(c.storeName)},Ee.onsuccess=function(){var Ve=Ee.result;Ve.close(),ye(Ve)}});return me.then(function(ye){B.db=ye;for(var Ce=0;Ce<z.length;Ce++){var Ee=z[Ce];Ee._dbInfo.db=ye,we(Ee._dbInfo)}}).catch(function(ye){throw(ke(c,ye)||w.resolve()).catch(function(){}),ye})}}):x=P.then(function(j){Te(c);var F=D[c.name],B=F.forages;j.close();for(var z=0;z<B.length;z++){var Z=B[z];Z._dbInfo.db=null}var fe=new w(function(me,ye){var Ce=f.deleteDatabase(c.name);Ce.onerror=function(){var Ee=Ce.result;Ee&&Ee.close(),ye(Ce.error)},Ce.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Ce.onsuccess=function(){var Ee=Ce.result;Ee&&Ee.close(),me(Ee)}});return fe.then(function(me){F.db=me;for(var ye=0;ye<B.length;ye++){var Ce=B[ye];we(Ce._dbInfo)}}).catch(function(me){throw(ke(c,me)||w.resolve()).catch(function(){}),me})})}return O(x,y),x}var ae={_driver:"asyncStorage",_initStorage:A,_support:d(),iterate:q,getItem:T,setItem:N,removeItem:R,clear:U,length:$,key:X,keys:Y,dropInstance:W};function oe(){return typeof openDatabase=="function"}var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e="~~local_forage_type~",ve=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ue=se.length,de="arbf",$e="blob",Pe="si08",Le="ui08",Xe="uic8",Xr="si16",Dr="si32",Zr="ur16",Fr="ui32",pn="fl32",Br="fl64",Zs=ue+de.length,Qs=Object.prototype.toString;function eo(c){var y=c.length*.75,l=c.length,S,x=0,b,P,j,F;c[c.length-1]==="="&&(y--,c[c.length-2]==="="&&y--);var B=new ArrayBuffer(y),z=new Uint8Array(B);for(S=0;S<l;S+=4)b=he.indexOf(c[S]),P=he.indexOf(c[S+1]),j=he.indexOf(c[S+2]),F=he.indexOf(c[S+3]),z[x++]=b<<2|P>>4,z[x++]=(P&15)<<4|j>>2,z[x++]=(j&3)<<6|F&63;return B}function ci(c){var y=new Uint8Array(c),l="",S;for(S=0;S<y.length;S+=3)l+=he[y[S]>>2],l+=he[(y[S]&3)<<4|y[S+1]>>4],l+=he[(y[S+1]&15)<<2|y[S+2]>>6],l+=he[y[S+2]&63];return y.length%3===2?l=l.substring(0,l.length-1)+"=":y.length%3===1&&(l=l.substring(0,l.length-2)+"=="),l}function hd(c,y){var l="";if(c&&(l=Qs.call(c)),c&&(l==="[object ArrayBuffer]"||c.buffer&&Qs.call(c.buffer)==="[object ArrayBuffer]")){var S,x=se;c instanceof ArrayBuffer?(S=c,x+=de):(S=c.buffer,l==="[object Int8Array]"?x+=Pe:l==="[object Uint8Array]"?x+=Le:l==="[object Uint8ClampedArray]"?x+=Xe:l==="[object Int16Array]"?x+=Xr:l==="[object Uint16Array]"?x+=Zr:l==="[object Int32Array]"?x+=Dr:l==="[object Uint32Array]"?x+=Fr:l==="[object Float32Array]"?x+=pn:l==="[object Float64Array]"?x+=Br:y(new Error("Failed to get type for BinaryArray"))),y(x+ci(S))}else if(l==="[object Blob]"){var b=new FileReader;b.onload=function(){var P=_e+c.type+"~"+ci(this.result);y(se+$e+P)},b.readAsArrayBuffer(c)}else try{y(JSON.stringify(c))}catch(P){console.error("Couldn't convert value into a JSON string: ",c),y(null,P)}}function pd(c){if(c.substring(0,ue)!==se)return JSON.parse(c);var y=c.substring(Zs),l=c.substring(ue,Zs),S;if(l===$e&&ve.test(y)){var x=y.match(ve);S=x[1],y=y.substring(x[0].length)}var b=eo(y);switch(l){case de:return b;case $e:return v([b],{type:S});case Pe:return new Int8Array(b);case Le:return new Uint8Array(b);case Xe:return new Uint8ClampedArray(b);case Xr:return new Int16Array(b);case Zr:return new Uint16Array(b);case Dr:return new Int32Array(b);case Fr:return new Uint32Array(b);case pn:return new Float32Array(b);case Br:return new Float64Array(b);default:throw new Error("Unkown type: "+l)}}var li={serialize:hd,deserialize:pd,stringToBuffer:eo,bufferToString:ci};function ro(c,y,l,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+y.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],l,S)}function dd(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=typeof c[S]!="string"?c[S].toString():c[S];var x=new w(function(b,P){try{l.db=openDatabase(l.name,String(l.version),l.description,l.size)}catch(j){return P(j)}l.db.transaction(function(j){ro(j,l,function(){y._dbInfo=l,b()},function(F,B){P(B)})},P)});return l.serializer=li,x}function gr(c,y,l,S,x,b){c.executeSql(l,S,x,function(P,j){j.code===j.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[y.storeName],function(F,B){B.rows.length?b(F,j):ro(F,y,function(){F.executeSql(l,S,x,b)},b)},b):b(P,j)},b)}function md(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[c],function(F,B){var z=B.rows.length?B.rows.item(0).value:null;z&&(z=P.serializer.deserialize(z)),x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function gd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT * FROM "+P.storeName,[],function(F,B){for(var z=B.rows,Z=z.length,fe=0;fe<Z;fe++){var me=z.item(fe),ye=me.value;if(ye&&(ye=P.serializer.deserialize(ye)),ye=c(ye,me.key,fe+1),ye!==void 0){x(ye);return}}x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function to(c,y,l,S){var x=this;c=C(c);var b=new w(function(P,j){x.ready().then(function(){y===void 0&&(y=null);var F=y,B=x._dbInfo;B.serializer.serialize(y,function(z,Z){Z?j(Z):B.db.transaction(function(fe){gr(fe,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){P(F)},function(me,ye){j(ye)})},function(fe){if(fe.code===fe.QUOTA_ERR){if(S>0){P(to.apply(x,[c,F,l,S-1]));return}j(fe)}})})}).catch(j)});return O(b,l),b}function yd(c,y,l){return to.apply(this,[c,y,l,1])}function vd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[c],function(){x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function wd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"DELETE FROM "+b.storeName,[],function(){S()},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function _d(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"SELECT COUNT(key) as c FROM "+b.storeName,[],function(j,F){var B=F.rows.item(0).c;S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function bd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[c+1],function(F,B){var z=B.rows.length?B.rows.item(0).key:null;x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function Sd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"SELECT key FROM "+b.storeName,[],function(j,F){for(var B=[],z=0;z<F.rows.length;z++)B.push(F.rows.item(z).key);S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function xd(c){return new w(function(y,l){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,b){for(var P=[],j=0;j<b.rows.length;j++)P.push(b.rows.item(j).name);y({db:c,storeNames:P})},function(x,b){l(b)})},function(S){l(S)})})}function Ad(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;return c.name?x=new w(function(b){var P;c.name===l.name?P=S._dbInfo.db:P=openDatabase(c.name,"","",0),c.storeName?b({db:P,storeNames:[c.storeName]}):b(xd(P))}).then(function(b){return new w(function(P,j){b.db.transaction(function(F){function B(me){return new w(function(ye,Ce){F.executeSql("DROP TABLE IF EXISTS "+me,[],function(){ye()},function(Ee,Ve){Ce(Ve)})})}for(var z=[],Z=0,fe=b.storeNames.length;Z<fe;Z++)z.push(B(b.storeNames[Z]));w.all(z).then(function(){P()}).catch(function(me){j(me)})},function(F){j(F)})})}):x=w.reject("Invalid arguments"),O(x,y),x}var Od={_driver:"webSQLStorage",_initStorage:dd,_support:oe(),iterate:gd,getItem:md,setItem:yd,removeItem:vd,clear:wd,length:_d,key:bd,keys:Sd,dropInstance:Ad};function Ed(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(c){return!1}}function no(c,y){var l=c.name+"/";return c.storeName!==y.storeName&&(l+=c.storeName+"/"),l}function Cd(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch(y){return!0}}function Td(){return!Cd()||localStorage.length>0}function Id(c){var y=this,l={};if(c)for(var S in c)l[S]=c[S];return l.keyPrefix=no(c,y._defaultConfig),Td()?(y._dbInfo=l,l.serializer=li,w.resolve()):w.reject()}function Pd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var b=localStorage.key(x);b.indexOf(S)===0&&localStorage.removeItem(b)}});return O(l,c),l}function qd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo,b=localStorage.getItem(x.keyPrefix+c);return b&&(b=x.serializer.deserialize(b)),b});return O(S,y),S}function Rd(c,y){var l=this,S=l.ready().then(function(){for(var x=l._dbInfo,b=x.keyPrefix,P=b.length,j=localStorage.length,F=1,B=0;B<j;B++){var z=localStorage.key(B);if(z.indexOf(b)===0){var Z=localStorage.getItem(z);if(Z&&(Z=x.serializer.deserialize(Z)),Z=c(Z,z.substring(P),F++),Z!==void 0)return Z}}});return O(S,y),S}function Md(c,y){var l=this,S=l.ready().then(function(){var x=l._dbInfo,b;try{b=localStorage.key(c)}catch(P){b=null}return b&&(b=b.substring(x.keyPrefix.length)),b});return O(S,y),S}function Ld(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo,x=localStorage.length,b=[],P=0;P<x;P++){var j=localStorage.key(P);j.indexOf(S.keyPrefix)===0&&b.push(j.substring(S.keyPrefix.length))}return b});return O(l,c),l}function Nd(c){var y=this,l=y.keys().then(function(S){return S.length});return O(l,c),l}function jd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo;localStorage.removeItem(x.keyPrefix+c)});return O(S,y),S}function Ud(c,y,l){var S=this;c=C(c);var x=S.ready().then(function(){y===void 0&&(y=null);var b=y;return new w(function(P,j){var F=S._dbInfo;F.serializer.serialize(y,function(B,z){if(z)j(z);else try{localStorage.setItem(F.keyPrefix+c,B),P(b)}catch(Z){(Z.name==="QuotaExceededError"||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Z),j(Z)}})})});return O(x,l),x}function Dd(c,y){if(y=G.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var l=this.config();c.name=c.name||l.name,c.storeName=c.storeName||l.storeName}var S=this,x;return c.name?x=new w(function(b){c.storeName?b(no(c,S._defaultConfig)):b(c.name+"/")}).then(function(b){for(var P=localStorage.length-1;P>=0;P--){var j=localStorage.key(P);j.indexOf(b)===0&&localStorage.removeItem(j)}}):x=w.reject("Invalid arguments"),O(x,y),x}var Fd={_driver:"localStorageWrapper",_initStorage:Id,_support:Ed(),iterate:Rd,getItem:qd,setItem:Ud,removeItem:jd,clear:Pd,length:Nd,key:Md,keys:Ld,dropInstance:Dd},Bd=function(y,l){return y===l||typeof y=="number"&&typeof l=="number"&&isNaN(y)&&isNaN(l)},kd=function(y,l){for(var S=y.length,x=0;x<S;){if(Bd(y[x],l))return!0;x++}return!1},io=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},At={},so={},Qr={INDEXEDDB:ae,WEBSQL:Od,LOCALSTORAGE:Fd},$d=[Qr.INDEXEDDB._driver,Qr.WEBSQL._driver,Qr.LOCALSTORAGE._driver],dn=["dropInstance"],hi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dn),zd={description:"",driver:$d.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Hd(c,y){c[y]=function(){var l=arguments;return c.ready().then(function(){return c[y].apply(c,l)})}}function pi(){for(var c=1;c<arguments.length;c++){var y=arguments[c];if(y)for(var l in y)y.hasOwnProperty(l)&&(io(y[l])?arguments[0][l]=y[l].slice():arguments[0][l]=y[l])}return arguments[0]}var Wd=function(){function c(y){u(this,c);for(var l in Qr)if(Qr.hasOwnProperty(l)){var S=Qr[l],x=S._driver;this[l]=x,At[x]||this.defineDriver(S)}this._defaultConfig=pi({},zd),this._config=pi({},this._defaultConfig,y),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(l){if((typeof l=="undefined"?"undefined":o(l))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in l){if(S==="storeName"&&(l[S]=l[S].replace(/\W/g,"_")),S==="version"&&typeof l[S]!="number")return new Error("Database version must be a number.");this._config[S]=l[S]}return"driver"in l&&l.driver?this.setDriver(this._config.driver):!0}else return typeof l=="string"?this._config[l]:this._config},c.prototype.defineDriver=function(l,S,x){var b=new w(function(P,j){try{var F=l._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver){j(B);return}for(var z=hi.concat("_initStorage"),Z=0,fe=z.length;Z<fe;Z++){var me=z[Z],ye=!kd(dn,me);if((ye||l[me])&&typeof l[me]!="function"){j(B);return}}var Ce=function(){for(var Ot=function(Jd){return function(){var Vd=new Error("Method "+Jd+" is not implemented by the current driver"),oo=w.reject(Vd);return O(oo,arguments[arguments.length-1]),oo}},di=0,Kd=dn.length;di<Kd;di++){var mi=dn[di];l[mi]||(l[mi]=Ot(mi))}};Ce();var Ee=function(Ot){At[F]&&console.info("Redefining LocalForage driver: "+F),At[F]=l,so[F]=Ot,P()};"_support"in l?l._support&&typeof l._support=="function"?l._support().then(Ee,j):Ee(!!l._support):Ee(!0)}catch(Ve){j(Ve)}});return p(b,S,x),b},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(l,S,x){var b=At[l]?w.resolve(At[l]):w.reject(new Error("Driver not found."));return p(b,S,x),b},c.prototype.getSerializer=function(l){var S=w.resolve(li);return p(S,l),S},c.prototype.ready=function(l){var S=this,x=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return p(x,l,l),x},c.prototype.setDriver=function(l,S,x){var b=this;io(l)||(l=[l]);var P=this._getSupportedDrivers(l);function j(){b._config.driver=b.driver()}function F(Z){return b._extend(Z),j(),b._ready=b._initStorage(b._config),b._ready}function B(Z){return function(){var fe=0;function me(){for(;fe<Z.length;){var ye=Z[fe];return fe++,b._dbInfo=null,b._ready=null,b.getDriver(ye).then(F).catch(me)}j();var Ce=new Error("No available storage method found.");return b._driverSet=w.reject(Ce),b._driverSet}return me()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=z.then(function(){var Z=P[0];return b._dbInfo=null,b._ready=null,b.getDriver(Z).then(function(fe){b._driver=fe._driver,j(),b._wrapLibraryMethodsWithReady(),b._initDriver=B(P)})}).catch(function(){j();var Z=new Error("No available storage method found.");return b._driverSet=w.reject(Z),b._driverSet}),p(this._driverSet,S,x),this._driverSet},c.prototype.supports=function(l){return!!so[l]},c.prototype._extend=function(l){pi(this,l)},c.prototype._getSupportedDrivers=function(l){for(var S=[],x=0,b=l.length;x<b;x++){var P=l[x];this.supports(P)&&S.push(P)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var l=0,S=hi.length;l<S;l++)Hd(this,hi[l])},c.prototype.createInstance=function(l){return new c(l)},c}(),Gd=new Wd;i.exports=Gd},{3:3}]},{},[4])(4)})});var Ks=_((Gs,ad)=>{"use strict";(function(r,e,t){let n;(n=t.define)&&n.amd?n([],function(){return e}):(n=t.modules)?n[r.toLowerCase()]=e:typeof Gs=="object"?ad.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,m){let g=m?m.id:h&&h.id;this.id=g||g===0?g:Ye++,this.init(h,m),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function n(h,m,g,A){return this.u!==this.g&&(this.o=this.o.concat(g),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(m,this.o),this.F&&this.F(this.o))),this}function i(h){let m=J();for(let g in h)if(h.hasOwnProperty(g)){let A=h[g];D(A)?m[g]=A.slice(0):ne(A)?m[g]=i(A):m[g]=A}return m}function s(h,m){let g=h.length,A=Q(m),T=[];for(let q=0,N=0;q<g;q++){let R=h[q];(A&&m(R)||!A&&!m[R])&&(T[N++]=R)}return T}function o(h,m,g,A,T,q,N,R,U,$){g=K(g,N?0:T,R,q,m,U,$);let X;if(R&&(R=g.page,X=g.next,g=g.result),N)m=this.where(N,null,T,g);else{for(m=g,g=this.l,T=m.length,q=Array(T),N=0;N<T;N++)q[N]=g[m[N]];m=q}return g=m,A&&(Q(A)||(Je=A.split(":"),1<Je.length?A=C:(Je=Je[0],A=p)),g.sort(A)),g=G(R,X,g),this.cache&&this.j.set(h,g),g}function u(h,m,g){Object.defineProperty(h,m,{get:g})}function a(h){return new RegExp(h,"g")}function f(h,m){for(let g=0;g<m.length;g+=2)h=h.replace(m[g],m[g+1]);return h}function d(h,m,g,A,T,q,N,R){return m[g]?m[g]:(T=T?(R-(N||R/1.5))*q+(N||R/1.5)*T:q,m[g]=T,T>=N&&(h=h[R-(T+.5>>0)],h=h[g]||(h[g]=[]),h[h.length]=A),T)}function v(h,m){if(h){let g=Object.keys(h);for(let A=0,T=g.length;A<T;A++){let q=g[A],N=h[q];if(N)for(let R=0,U=N.length;R<U;R++)if(N[R]===m){U===1?delete h[q]:N.splice(R,1);break}else ne(N[R])&&v(N[R],m)}}}function w(h){let m="",g="";var A="";for(let T=0;T<h.length;T++){let q=h[T];q!==g&&(T&&q==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((g==="a"||g==="e"||g==="i"||g==="o"||g==="u"||g==="y")&&A||g===" ")&&(m+=q)):m+=q),A=T===h.length-1?"":h[T+1],g=q}return m}function O(h,m){return h=h.length-m.length,0>h?1:h?-1:0}function p(h,m){return h=h[Je],m=m[Je],h<m?-1:h>m?1:0}function C(h,m){let g=Je.length;for(let A=0;A<g;A++)h=h[Je[A]],m=m[Je[A]];return h<m?-1:h>m?1:0}function G(h,m,g){return h?{page:h,next:m?""+m:null,result:g}:g}function K(h,m,g,A,T,q,N){let R,U=[];if(g===!0){g="0";var $=""}else $=g&&g.split(":");let X=h.length;if(1<X){let ve=J(),se=[],ue,de;var Y=0,W;let $e;var ae=!0;let Pe,Le=0,Xe,Xr,Dr,Zr;if($&&($.length===2?(Dr=$,$=!1):$=Zr=parseInt($[0],10)),N){for(ue=J();Y<X;Y++)if(T[Y]==="not")for(de=h[Y],$e=de.length,W=0;W<$e;W++)ue["@"+de[W]]=1;else Xr=Y+1;if(E(Xr))return G(g,R,U);Y=0}else Xe=te(T)&&T;let Fr;for(;Y<X;Y++){let pn=Y===(Xr||X)-1;if(!Xe||!Y)if((W=Xe||T&&T[Y])&&W!=="and")if(W==="or")Fr=!1;else continue;else Fr=q=!0;if(de=h[Y],$e=de.length){if(ae)if(Pe){var oe=Pe.length;for(W=0;W<oe;W++){ae=Pe[W];var he="@"+ae;N&&ue[he]||(ve[he]=1,q||(U[Le++]=ae))}Pe=null,ae=!1}else{Pe=de;continue}for(he=!1,W=0;W<$e;W++){oe=de[W];var _e="@"+oe;let Br=q?ve[_e]||0:Y;if(!(!Br&&!A||N&&ue[_e]||!q&&ve[_e]))if(Br===Y){if(pn){if((!Zr||--Zr<Le)&&(U[Le++]=oe,m&&Le===m))return G(g,Le+($||0),U)}else ve[_e]=Y+1;he=!0}else A&&(_e=se[Br]||(se[Br]=[]),_e[_e.length]=oe)}if(Fr&&!he&&!A)break}else if(Fr&&!A)return G(g,R,de)}if(Pe)if(Y=Pe.length,N)for(W=$?parseInt($,10):0;W<Y;W++)h=Pe[W],ue["@"+h]||(U[Le++]=h);else U=Pe;if(A){for(Le=U.length,Dr?(Y=parseInt(Dr[0],10)+1,W=parseInt(Dr[1],10)+1):(Y=se.length,W=0);Y--;)if(oe=se[Y]){for($e=oe.length;W<$e;W++)if(A=oe[W],(!N||!ue["@"+A])&&(U[Le++]=A,m&&Le===m))return G(g,Y+":"+W,U);W=0}}}else!X||T&&T[0]==="not"||(U=h[0],$&&($=parseInt($[0],10)));return m&&(N=U.length,$&&$>N&&($=0),$=$||0,R=$+m,R<N?U=U.slice($,R):(R=0,$&&(U=U.slice($)))),G(g,R,U)}function te(h){return typeof h=="string"}function D(h){return h.constructor===Array}function Q(h){return typeof h=="function"}function ne(h){return typeof h=="object"}function E(h){return typeof h=="undefined"}function ee(h){let m=Array(h);for(let g=0;g<h;g++)m[g]=J();return m}function J(){return Object.create(null)}function ge(){let h,m;self.onmessage=function(g){if(g=g.data)if(g.search){let A=m.search(g.content,g.threshold?{limit:g.limit,threshold:g.threshold,where:g.where}:g.limit);self.postMessage({id:h,content:g.content,limit:g.limit,result:A})}else g.add?m.add(g.id,g.content):g.update?m.update(g.id,g.content):g.remove?m.remove(g.id):g.clear?m.clear():g.info?(g=m.info(),g.worker=h,console.log(g)):g.register&&(h=g.id,g.options.cache=!1,g.options.async=!1,g.options.worker=!1,m=new Function(g.register.substring(g.register.indexOf("{")+1,g.register.lastIndexOf("}")))(),m=new m(g.options))}}function Te(h,m,g,A){h=e("flexsearch","id"+h,ge,function(q){(q=q.data)&&q.result&&A(q.id,q.content,q.result,q.limit,q.where,q.cursor,q.suggest)},m);let T=r.toString();return g.id=m,h.postMessage({register:T,options:g,id:m}),h}let we={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ke={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Me=[],Ye=0,dr={},Ur={};t.create=function(h,m){return new t(h,m)},t.registerMatcher=function(h){for(let m in h)h.hasOwnProperty(m)&&Me.push(a(m),h[m]);return this},t.registerEncoder=function(h,m){return ar[h]=m.bind(ar),this},t.registerLanguage=function(h,m){return dr[h]=m.filter,Ur[h]=m.stemmer,this},t.encode=function(h,m){return ar[h](m)},t.prototype.init=function(h,m){if(this.v=[],m){var g=m.preset;h=m}else h||(h=we),g=h.preset;if(m={},te(h)?(m=ke[h],h={}):g&&(m=ke[g]),g=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(g,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var T=0;T<A;T++)this.m[T]=Te(this.id,T,h,n.bind(this))}if(this.f=h.tokenize||m.f||this.f||we.f,this.split=E(g=h.split)?this.split||we.split:te(g)?a(g):g,this.D=h.rtl||this.D||we.D,this.async=typeof Promise=="undefined"||E(g=h.async)?this.async||we.async:g,this.g=E(g=h.worker)?this.g||we.g:g,this.threshold=E(g=h.threshold)?m.threshold||this.threshold||we.threshold:g,this.b=E(g=h.resolution)?g=m.b||this.b||we.b:g,g<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||E(g=h.depth)?m.depth||this.depth||we.depth:g,this.w=(g=E(g=h.encode)?m.encode||we.encode:g)&&ar[g]&&ar[g].bind(ar)||(Q(g)?g:this.w||!1),(g=h.matcher)&&this.addMatcher(g),g=(m=h.lang)||h.filter){if(te(g)&&(g=dr[g]),D(g)){A=this.w,T=J();for(var q=0;q<g.length;q++){var N=A?A(g[q]):g[q];T[N]=1}g=T}this.filter=g}if(g=m||h.stemmer){var R;m=te(g)?Ur[g]:g,A=this.w,T=[];for(R in m)m.hasOwnProperty(R)&&(q=A?A(R):R,T.push(a(q+"($|\\W)"),A?A(m[R]):m[R]));this.stemmer=R=T}if(this.a=T=(g=h.doc)?i(g):this.a||we.a,this.i=ee(this.b-(this.threshold||0)),this.h=J(),this.c=J(),T){if(this.l=J(),h.doc=null,R=T.index={},m=T.keys=[],A=T.field,q=T.tag,N=T.store,D(T.id)||(T.id=T.id.split(":")),N){var U=J();if(te(N))U[N]=1;else if(D(N))for(let $=0;$<N.length;$++)U[N[$]]=1;else ne(N)&&(U=N);T.store=U}if(q){if(this.G=J(),N=J(),A)if(te(A))N[A]=h;else if(D(A))for(U=0;U<A.length;U++)N[A[U]]=h;else ne(A)&&(N=A);for(D(q)||(T.tag=q=[q]),A=0;A<q.length;A++)this.G[q[A]]=J();this.I=q,A=N}if(A){let $;for(D(A)||(ne(A)?($=A,T.field=A=Object.keys(A)):T.field=A=[A]),T=0;T<A.length;T++)q=A[T],D(q)||($&&(h=$[q]),m[T]=q,A[T]=q.split(":")),R[q]=new t(h)}h.doc=g}return this.B=!0,this.j=(this.cache=g=E(g=h.cache)?this.cache||we.cache:g)?new fi(g):!1,this},t.prototype.encode=function(h){return h&&(Me.length&&(h=f(h,Me)),this.v.length&&(h=f(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=f(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let m=this.v;for(let g in h)h.hasOwnProperty(g)&&m.push(a(g),h[g]);return this},t.prototype.add=function(h,m,g,A,T){if(this.a&&ne(h))return this.A("add",h,m);if(m&&te(m)&&(h||h===0)){var q="@"+h;if(this.c[q]&&!A)return this.update(h,m);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:m}),this.c[q]=""+this.C,g&&g(),this;if(!T){if(this.async&&typeof importScripts!="function"){let se=this;if(q=new Promise(function(ue){setTimeout(function(){se.add(h,m,null,A,!0),se=null,ue()})}),g)q.then(g);else return q;return this}if(g)return this.add(h,m,null,A,!0),g(),this}if(m=this.encode(m),!m.length)return this;g=this.f,T=Q(g)?g(m):m.split(this.split),this.filter&&(T=s(T,this.filter));let Y=J();Y._ctx=J();let W=T.length,ae=this.threshold,oe=this.depth,he=this.b,_e=this.i,ve=this.D;for(let se=0;se<W;se++){var N=T[se];if(N){var R=N.length,U=(ve?se+1:W-se)/W,$="";switch(g){case"reverse":case"both":for(var X=R;--X;)$=N[X]+$,d(_e,Y,$,h,ve?1:(R-X)/R,U,ae,he-1);$="";case"forward":for(X=0;X<R;X++)$+=N[X],d(_e,Y,$,h,ve?(X+1)/R:1,U,ae,he-1);break;case"full":for(X=0;X<R;X++){let ue=(ve?X+1:R-X)/R;for(let de=R;de>X;de--)$=N.substring(X,de),d(_e,Y,$,h,ue,U,ae,he-1)}break;default:if(R=d(_e,Y,N,h,1,U,ae,he-1),oe&&1<W&&R>=ae)for(R=Y._ctx[N]||(Y._ctx[N]=J()),N=this.h[N]||(this.h[N]=ee(he-(ae||0))),U=se-oe,$=se+oe+1,0>U&&(U=0),$>W&&($=W);U<$;U++)U!==se&&d(N,R,T[U],h,0,he-(U<se?se-U:U-se),ae,he-1)}}}this.c[q]=1,this.B=!1}return this},t.prototype.A=function(h,m,g){if(D(m)){var A=m.length;if(A--){for(var T=0;T<A;T++)this.A(h,m[T]);return this.A(h,m[A],g)}}else{var q=this.a.index,N=this.a.keys,R=this.a.tag;T=this.a.store;var U,$=this.a.id;A=m;for(var X=0;X<$.length;X++)A=A[$[X]];if(h==="remove"&&(delete this.l[A],$=N.length,$--)){for(m=0;m<$;m++)q[N[m]].remove(A);return q[N[$]].remove(A,g)}if(R){for(U=0;U<R.length;U++){var Y=R[U],W=m;for($=Y.split(":"),X=0;X<$.length;X++)W=W[$[X]];W="@"+W}U=this.G[Y],U=U[W]||(U[W]=[])}$=this.a.field;for(let ae=0,oe=$.length;ae<oe;ae++){for(Y=$[ae],R=m,W=0;W<Y.length;W++)R=R[Y[W]];Y=q[N[ae]],W=h==="add"?Y.add:Y.update,ae===oe-1?W.call(Y,A,R,g):W.call(Y,A,R)}if(T){for(g=Object.keys(T),h=J(),q=0;q<g.length;q++)if(N=g[q],T[N]){N=N.split(":");let ae,oe;for($=0;$<N.length;$++)R=N[$],ae=(ae||m)[R],oe=(oe||h)[R]=ae}m=h}U&&(U[U.length]=m),this.l[A]=m}return this},t.prototype.update=function(h,m,g){return this.a&&ne(h)?this.A("update",h,m):(this.c["@"+h]&&te(m)&&(this.remove(h),this.add(h,m,g,!0)),this)},t.prototype.remove=function(h,m,g){if(this.a&&ne(h))return this.A("remove",h,m);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],m&&m(),this;if(!g){if(this.async&&typeof importScripts!="function"){let T=this;if(A=new Promise(function(q){setTimeout(function(){T.remove(h,null,!0),T=null,q()})}),m)A.then(m);else return A;return this}if(m)return this.remove(h,null,!0),m(),this}for(m=0;m<this.b-(this.threshold||0);m++)v(this.i[m],h);this.depth&&v(this.h,h),delete this.c[A],this.B=!1}return this};let Je;t.prototype.search=function(h,m,g,A){if(ne(m)){if(D(m))for(var T=0;T<m.length;T++)m[T].query=h;else m.query=h;h=m,m=1e3}else m&&Q(m)?(g=m,m=1e3):m||m===0||(m=1e3);if(this.g){this.F=g,this.u=0,this.o=[];for(var q=0;q<this.g;q++)this.m[q].postMessage({search:!0,limit:m,content:h})}else{var N=[],R=h;if(ne(h)&&!D(h)){g||(g=h.callback)&&(R.callback=null);var U=h.sort,$=h.page;m=h.limit,q=h.threshold;var X=h.suggest;h=h.query}if(this.a){q=this.a.index;let ve=R.where;var Y=R.bool||"or",W=R.field;let se=Y,ue,de;if(W)D(W)||(W=[W]);else if(D(R)){var ae=R;W=[],se=[];for(var oe=0;oe<R.length;oe++)A=R[oe],T=A.bool||Y,W[oe]=A.field,se[oe]=T,T==="not"?ue=!0:T==="and"&&(de=!0)}else W=this.a.keys;for(Y=W.length,oe=0;oe<Y;oe++)ae&&(R=ae[oe]),$&&!te(R)&&(R.page=null,R.limit=0),N[oe]=q[W[oe]].search(R,0);if(g)return g(o.call(this,h,se,N,U,m,X,ve,$,de,ue));if(this.async){let $e=this;return new Promise(function(Pe){Promise.all(N).then(function(Le){Pe(o.call($e,h,se,Le,U,m,X,ve,$,de,ue))})})}return o.call(this,h,se,N,U,m,X,ve,$,de,ue)}if(q||(q=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ve=this;if(q=new Promise(function(se){setTimeout(function(){se(ve.search(R,m,null,!0)),ve=null})}),g)q.then(g);else return q;return this}if(g)return g(this.search(R,m,null,!0)),this}if(!h||!te(h))return N;if(R=h,this.cache)if(this.B){if(g=this.j.get(h))return g}else this.j.clear(),this.B=!0;if(R=this.encode(R),!R.length)return N;g=this.f,g=Q(g)?g(R):R.split(this.split),this.filter&&(g=s(g,this.filter)),ae=g.length,A=!0,T=[];var he=J(),_e=0;if(1<ae&&(this.depth&&this.f==="strict"?Y=!0:g.sort(O)),!Y||(oe=this.h)){let ve=this.b;for(;_e<ae;_e++){let se=g[_e];if(se){if(Y){if(!W){if(oe[se])W=se,he[se]=1;else if(!X)return N}if(X&&_e===ae-1&&!T.length)Y=!1,se=W||se,he[se]=0;else if(!W)continue}if(!he[se]){let ue=[],de=!1,$e=0,Pe=Y?oe[W]:this.i;if(Pe){let Le;for(let Xe=0;Xe<ve-q;Xe++)(Le=Pe[Xe]&&Pe[Xe][se])&&(ue[$e++]=Le,de=!0)}if(de)W=se,T[T.length]=1<$e?ue.concat.apply([],ue):ue[0];else if(!X){A=!1;break}he[se]=1}}}}else A=!1;return A&&(N=K(T,m,$,X)),this.cache&&this.j.set(h,N),N}},t.prototype.find=function(h,m){return this.where(h,m,1)[0]||null},t.prototype.where=function(h,m,g,A){let T=this.l,q=[],N=0,R;var U;let $;if(ne(h)){g||(g=m);var X=Object.keys(h),Y=X.length;if(R=!1,Y===1&&X[0]==="id")return[T[h.id]];if((U=this.I)&&!A)for(var W=0;W<U.length;W++){var ae=U[W],oe=h[ae];if(!E(oe)){if($=this.G[ae]["@"+oe],--Y===0)return $;X.splice(X.indexOf(ae),1),delete h[ae];break}}for(U=Array(Y),W=0;W<Y;W++)U[W]=X[W].split(":")}else{if(Q(h)){for(m=A||Object.keys(T),g=m.length,X=0;X<g;X++)Y=T[m[X]],h(Y)&&(q[N++]=Y);return q}if(E(m))return[T[h]];if(h==="id")return[T[m]];X=[h],Y=1,U=[h.split(":")],R=!0}for(A=$||A||Object.keys(T),W=A.length,ae=0;ae<W;ae++){oe=$?A[ae]:T[A[ae]];let he=!0;for(let _e=0;_e<Y;_e++){R||(m=h[X[_e]]);let ve=U[_e],se=ve.length,ue=oe;if(1<se)for(let de=0;de<se;de++)ue=ue[ve[de]];else ue=ue[ve[0]];if(ue!==m){he=!1;break}}if(he&&(q[N++]=oe,g&&N===g))break}return q},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Me.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let m=0;m<h.length;m++)this.a.index[h[m]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let m=!h||E(h.serialize)||h.serialize;if(this.a){let A=!h||E(h.doc)||h.doc;var g=!h||E(h.index)||h.index;h=[];let T=0;if(g)for(g=this.a.keys;T<g.length;T++){let q=this.a.index[g[T]];h[T]=[q.i,q.h,Object.keys(q.c)]}A&&(h[T]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return m&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,m){(!m||E(m.serialize)||m.serialize)&&(h=JSON.parse(h));let g=J();if(this.a){var A=!m||E(m.doc)||m.doc,T=0;if(!m||E(m.index)||m.index){m=this.a.keys;let N=m.length;for(var q=h[0][2];T<q.length;T++)g[q[T]]=1;for(T=0;T<N;T++){q=this.a.index[m[T]];let R=h[T];R&&(q.i=R[0],q.h=R[1],q.c=g)}}A&&(this.l=ne(A)?A:h[T])}else{for(A=h[2],T=0;T<A.length;T++)g[A[T]]=1;this.i=h[0],this.h=h[1],this.c=g}};let mr=function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=[a("[-/]")," ",m,"",h," "];return function(A){return w(f(A.toLowerCase(),g))}}(),ar={icase:function(h){return h.toLowerCase()},simple:function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=a("[-/]"),A=a("[\xE0\xE1\xE2\xE3\xE4\xE5]"),T=a("[\xE8\xE9\xEA\xEB]"),q=a("[\xEC\xED\xEE\xEF]"),N=a("[\xF2\xF3\xF4\xF5\xF6\u0151]"),R=a("[\xF9\xFA\xFB\xFC\u0171]"),U=a("[\xFD\u0177\xFF]"),$=a("\xF1"),X=a("[\xE7c]"),Y=a("\xDF"),W=a(" & "),ae=[A,"a",T,"e",q,"i",N,"o",R,"u",U,"y",$,"n",X,"k",Y,"s",W," and ",g," ",m,"",h," "];return function(oe){return oe=f(oe.toLowerCase(),ae),oe===" "?"":oe}}(),advanced:function(){let h=a("ae"),m=a("ai"),g=a("ay"),A=a("ey"),T=a("oe"),q=a("ue"),N=a("ie"),R=a("sz"),U=a("zs"),$=a("ck"),X=a("cc"),Y=a("sh"),W=a("th"),ae=a("dt"),oe=a("ph"),he=a("pf"),_e=a("ou"),ve=a("uo"),se=[h,"a",m,"ei",g,"ei",A,"ei",T,"o",q,"u",N,"i",R,"s",U,"s",Y,"s",$,"k",X,"k",W,"t",ae,"t",oe,"f",he,"f",_e,"o",ve,"u"];return function(ue,de){return ue&&(ue=this.simple(ue),2<ue.length&&(ue=f(ue,se)),de||1<ue.length&&(ue=w(ue)),ue)}}(),extra:function(){let h=a("p"),m=a("z"),g=a("[cgq]"),A=a("n"),T=a("d"),q=a("[vw]"),N=a("[aeiouy]"),R=[h,"b",m,"s",g,"k",A,"m",T,"t",q,"f",N,""];return function(U){if(!U)return U;if(U=this.advanced(U,!0),1<U.length){U=U.split(" ");for(let $=0;$<U.length;$++){let X=U[$];1<X.length&&(U[$]=X[0]+f(X.substring(1),R))}U=U.join(" "),U=w(U)}return U}}(),balance:mr},fi=function(){function h(m){this.clear(),this.H=m!==!0&&m}return h.prototype.clear=function(){this.cache=J(),this.count=J(),this.index=J(),this.s=[]},h.prototype.set=function(m,g){if(this.H&&E(this.cache[m])){let A=this.s.length;if(A===this.H){A--;let T=this.s[A];delete this.cache[T],delete this.count[T],delete this.index[T]}this.index[m]=A,this.s[A]=m,this.count[m]=-1,this.cache[m]=g,this.get(m)}else this.cache[m]=g},h.prototype.get=function(m){let g=this.cache[m];if(this.H&&g){var A=++this.count[m];let q=this.index,N=q[m];if(0<N){let R=this.s;for(var T=N;this.count[R[--N]]<=A&&N!==-1;);if(N++,N!==T){for(A=T;A>N;A--)T=R[A-1],R[A]=T,q[T]=A;R[N]=m,q[m]=N}}}return g},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+n,r[t]||(r[t]=[]),r[t][o]=new Worker(i),r[t][o].onmessage=s,r[t][o]}}()),Gs)});var _T={};gn(_T,{BaseProvider:()=>le,CocodaSDK:()=>jr,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>Ir,LobidApiProvider:()=>Yr,LocApiProvider:()=>qr,LocalMappingsProvider:()=>Er,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Lr,OccurrencesApiProvider:()=>Cr,ReconciliationApiProvider:()=>Tr,SkohubProvider:()=>Rr,SkosmosApiProvider:()=>Pr,addAllProviders:()=>wT,cdk:()=>ld,errors:()=>Ue,utils:()=>Or});var Ue={};gn(Ue,{BackendError:()=>It,BackendUnavailableError:()=>Pt,CDKError:()=>qe,InvalidOrMissingParameterError:()=>H,InvalidProviderError:()=>et,InvalidRequestError:()=>tr,MethodNotImplementedError:()=>Tt,MissingApiUrlError:()=>ze,NetworkError:()=>qt});var qe=class extends Error{constructor({message:e="",relatedError:t=null,code:n=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=n}},Tt=class extends qe{constructor(i){var s=i,{method:e,message:t=""}=s,n=V(s,["method","message"]);n.message=`Method not implemented: ${e} (${t})`,super(n)}},H=class extends qe{constructor(i){var s=i,{parameter:e,message:t=""}=s,n=V(s,["parameter","message"]);n.message=`Invalid or missing parameter: ${e} (${t})`,super(n)}},tr=class extends qe{},It=class extends qe{},Pt=class extends qe{},qt=class extends qe{},ze=class extends qe{},et=class extends qe{};function Rt(r,e){return function(){return r.apply(e,arguments)}}var{toString:ho}=Object.prototype,{getPrototypeOf:wi}=Object,_i=(r=>e=>{let t=ho.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ur=r=>(r=r.toLowerCase(),e=>_i(e)===r),vn=r=>e=>typeof e===r,{isArray:rt}=Array,Mt=vn("undefined");function nm(r){return r!==null&&!Mt(r)&&r.constructor!==null&&!Mt(r.constructor)&&yr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var po=ur("ArrayBuffer");function im(r){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&po(r.buffer),e}var sm=vn("string"),yr=vn("function"),mo=vn("number"),bi=r=>r!==null&&typeof r=="object",om=r=>r===!0||r===!1,yn=r=>{if(_i(r)!=="object")return!1;let e=wi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},am=ur("Date"),um=ur("File"),fm=ur("Blob"),cm=ur("FileList"),lm=r=>bi(r)&&yr(r.pipe),hm=r=>{let e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||ho.call(r)===e||yr(r.toString)&&r.toString()===e)},pm=ur("URLSearchParams"),dm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r=="undefined")return;let n,i;if(typeof r!="object"&&(r=[r]),rt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{let s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length,u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function go(r,e){e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}var yo=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),vo=r=>!Mt(r)&&r!==yo;function vi(){let{caseless:r}=vo(this)&&this||{},e={},t=(n,i)=>{let s=r&&go(e,i)||i;yn(e[s])&&yn(n)?e[s]=vi(e[s],n):yn(n)?e[s]=vi({},n):rt(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Lt(arguments[n],t);return e}var mm=(r,e,t,{allOwnKeys:n}={})=>(Lt(e,(i,s)=>{t&&yr(i)?r[s]=Rt(i,t):r[s]=i},{allOwnKeys:n}),r),gm=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),ym=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},vm=(r,e,t,n)=>{let i,s,o,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&wi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},wm=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},_m=r=>{if(!r)return null;if(rt(r))return r;let e=r.length;if(!mo(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},bm=(r=>e=>r&&e instanceof r)(typeof Uint8Array!="undefined"&&wi(Uint8Array)),Sm=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},xm=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Am=ur("HTMLFormElement"),Om=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),co=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Em=ur("RegExp"),wo=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Lt(t,(i,s)=>{e(i,s,r)!==!1&&(n[s]=i)}),Object.defineProperties(r,n)},Cm=r=>{wo(r,(e,t)=>{if(yr(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(yr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Tm=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return rt(r)?n(r):n(String(r).split(e)),t},Im=()=>{},Pm=(r,e)=>(r=+r,Number.isFinite(r)?r:e),yi="abcdefghijklmnopqrstuvwxyz",lo="0123456789",_o={DIGIT:lo,ALPHA:yi,ALPHA_DIGIT:yi+yi.toUpperCase()+lo},qm=(r=16,e=_o.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function Rm(r){return!!(r&&yr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var Mm=r=>{let e=new Array(10),t=(n,i)=>{if(bi(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=rt(n)?[]:{};return Lt(n,(o,u)=>{let a=t(o,i+1);!Mt(a)&&(s[u]=a)}),e[i]=void 0,s}}return n};return t(r,0)},I={isArray:rt,isArrayBuffer:po,isBuffer:nm,isFormData:hm,isArrayBufferView:im,isString:sm,isNumber:mo,isBoolean:om,isObject:bi,isPlainObject:yn,isUndefined:Mt,isDate:am,isFile:um,isBlob:fm,isRegExp:Em,isFunction:yr,isStream:lm,isURLSearchParams:pm,isTypedArray:bm,isFileList:cm,forEach:Lt,merge:vi,extend:mm,trim:dm,stripBOM:gm,inherits:ym,toFlatObject:vm,kindOf:_i,kindOfTest:ur,endsWith:wm,toArray:_m,forEachEntry:Sm,matchAll:xm,isHTMLForm:Am,hasOwnProperty:co,hasOwnProp:co,reduceDescriptors:wo,freezeMethods:Cm,toObjectSet:Tm,toCamelCase:Om,noop:Im,toFiniteNumber:Pm,findKey:go,global:yo,isContextDefined:vo,ALPHABET:_o,generateString:qm,isSpecCompliantForm:Rm,toJSONObject:Mm};function tt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}I.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var bo=tt.prototype,So={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{So[r]={value:r}});Object.defineProperties(tt,So);Object.defineProperty(bo,"isAxiosError",{value:!0});tt.from=(r,e,t,n,i,s)=>{let o=Object.create(bo);return I.toFlatObject(r,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),tt.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var ce=tt;var wn=null;function Si(r){return I.isPlainObject(r)||I.isArray(r)}function Ao(r){return I.endsWith(r,"[]")?r.slice(0,-2):r}function xo(r,e,t){return r?r.concat(e).map(function(i,s){return i=Ao(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function Lm(r){return I.isArray(r)&&!r.some(Si)}var Nm=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function jm(r,e,t){if(!I.isObject(r))throw new TypeError("target must be an object");e=e||new(wn||FormData),t=I.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,G){return!I.isUndefined(G[C])});let n=t.metaTokens,i=t.visitor||d,s=t.dots,o=t.indexes,a=(t.Blob||typeof Blob!="undefined"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!a&&I.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,C,G){let K=p;if(p&&!G&&typeof p=="object"){if(I.endsWith(C,"{}"))C=n?C:C.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&Lm(p)||(I.isFileList(p)||I.endsWith(C,"[]"))&&(K=I.toArray(p)))return C=Ao(C),K.forEach(function(D,Q){!(I.isUndefined(D)||D===null)&&e.append(o===!0?xo([C],Q,s):o===null?C:C+"[]",f(D))}),!1}return Si(p)?!0:(e.append(xo(G,C,s),f(p)),!1)}let v=[],w=Object.assign(Nm,{defaultVisitor:d,convertValue:f,isVisitable:Si});function O(p,C){if(!I.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(p),I.forEach(p,function(K,te){(!(I.isUndefined(K)||K===null)&&i.call(e,K,I.isString(te)?te.trim():te,C,w))===!0&&O(K,C?C.concat(te):[te])}),v.pop()}}if(!I.isObject(r))throw new TypeError("data must be an object");return O(r),e}var vr=jm;function Oo(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eo(r,e){this._pairs=[],r&&vr(r,this,e)}var Co=Eo.prototype;Co.append=function(e,t){this._pairs.push([e,t])};Co.toString=function(e){let t=e?function(n){return e.call(this,n,Oo)}:Oo;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var _n=Eo;function Um(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(r,e,t){if(!e)return r;let n=t&&t.encode||Um,i=t&&t.serialize,s;if(i?s=i(e,t):s=I.isURLSearchParams(e)?e.toString():new _n(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var xi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(n){n!==null&&e(n)})}},Ai=xi;var bn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var To=typeof URLSearchParams!="undefined"?URLSearchParams:_n;var Io=FormData;var Dm=(()=>{let r;return typeof navigator!="undefined"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Fm=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:To,FormData:Io,Blob},isStandardBrowserEnv:Dm,isStandardBrowserWebWorkerEnv:Fm,protocols:["http","https","file","blob","url","data"]};function Oi(r,e){return vr(r,new De.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return De.isNode&&I.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Bm(r){return I.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function km(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function $m(r){function e(t,n,i,s){let o=t[s++],u=Number.isFinite(+o),a=s>=t.length;return o=!o&&I.isArray(i)?i.length:o,a?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&I.isArray(i[o])&&(i[o]=km(i[o])),!u)}if(I.isFormData(r)&&I.isFunction(r.entries)){let t={};return I.forEachEntry(r,(n,i)=>{e(Bm(n),i,t,0)}),t}return null}var Sn=$m;var zm={"Content-Type":void 0};function Hm(r,e,t){if(I.isString(r))try{return(e||JSON.parse)(r),I.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var xn={transitional:bn,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=I.isObject(e);if(s&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i&&i?JSON.stringify(Sn(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oi(e,this.formSerializer).toString();if((u=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return vr(u?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Hm(e)):e}],transformResponse:[function(e){let t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&I.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?ce.from(u,ce.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){xn.headers[e]={}});I.forEach(["post","put","patch"],function(e){xn.headers[e]=I.merge(zm)});var nt=xn;var Wm=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Po=r=>{let e={},t,n,i;return r&&r.split(`
12
- `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&Wm[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var qo=Symbol("internals");function jt(r){return r&&String(r).trim().toLowerCase()}function An(r){return r===!1||r==null?r:I.isArray(r)?r.map(An):String(r)}function Gm(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function Km(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function Ei(r,e,t,n){if(I.isFunction(n))return n.call(this,e,t);if(I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function Jm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Vm(r,e){let t=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var it=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,a,f){let d=jt(a);if(!d)throw new Error("header name must be a non-empty string");let v=I.findKey(i,d);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||a]=An(u))}let o=(u,a)=>I.forEach(u,(f,d)=>s(f,d,a));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!Km(e)?o(Po(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=jt(e),e){let n=I.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return Gm(i);if(I.isFunction(t))return t.call(this,i,n);if(I.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e),e){let n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ei(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=jt(o),o){let u=I.findKey(n,o);u&&(!t||Ei(n,n[u],u,t))&&(delete n[u],i=!0)}}return I.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||Ei(this,this[s],s,e))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return I.forEach(this,(i,s)=>{let o=I.findKey(n,s);if(o){t[o]=An(i),delete t[s];return}let u=e?Jm(s):String(s).trim();u!==s&&delete t[s],t[u]=An(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&I.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
13
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[qo]=this[qo]={accessors:{}}).accessors,i=this.prototype;function s(o){let u=jt(o);n[u]||(Vm(i,o),n[u]=!0)}return I.isArray(e)?e.forEach(s):s(e),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(it.prototype);I.freezeMethods(it);var He=it;function Ut(r,e){let t=this||nt,n=e||t,i=He.from(n.headers),s=n.data;return I.forEach(r,function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Dt(r){return!!(r&&r.__CANCEL__)}function Ro(r,e,t){ce.call(this,r==null?"canceled":r,ce.ERR_CANCELED,e,t),this.name="CanceledError"}I.inherits(Ro,ce,{__CANCEL__:!0});var wr=Ro;function Ci(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new ce("Request failed with status code "+t.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Mo=De.isStandardBrowserEnv?function(){return{write:function(t,n,i,s,o,u){let a=[];a.push(t+"="+encodeURIComponent(n)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(s)&&a.push("path="+s),I.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ti(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ii(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function Ft(r,e){return r&&!Ti(e)?Ii(r,e):e}var Lo=De.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let u=I.isString(o)?i(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Pi(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Ym(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),d=n[s];o||(o=f),t[i]=a,n[i]=f;let v=s,w=0;for(;v!==i;)w+=t[v++],v=v%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),f-o<e)return;let O=d&&f-d;return O?Math.round(w*1e3/O):void 0}}var No=Ym;function jo(r,e){let t=0,n=No(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,u=s-t,a=n(u),f=s<=o;t=s;let d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:a||void 0,estimated:a&&o&&f?(o-s)/a:void 0,event:i};d[e?"download":"upload"]=!0,r(d)}}var Xm=typeof XMLHttpRequest!="undefined",Uo=Xm&&function(r){return new Promise(function(t,n){let i=r.data,s=He.from(r.headers).normalize(),o=r.responseType,u;function a(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}I.isFormData(i)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(r.auth){let O=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+p))}let d=Ft(r.baseURL,r.url);f.open(r.method.toUpperCase(),Nt(d,r.params,r.paramsSerializer),!0),f.timeout=r.timeout;function v(){if(!f)return;let O=He.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:r,request:f};Ci(function(K){t(K),a()},function(K){n(K),a()},C),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new ce("Request aborted",ce.ECONNABORTED,r,f)),f=null)},f.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,r,f)),f=null},f.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",C=r.transitional||bn;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new ce(p,C.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,r,f)),f=null},De.isStandardBrowserEnv){let O=(r.withCredentials||Lo(d))&&r.xsrfCookieName&&Mo.read(r.xsrfCookieName);O&&s.set(r.xsrfHeaderName,O)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&I.forEach(s.toJSON(),function(p,C){f.setRequestHeader(C,p)}),I.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&f.addEventListener("progress",jo(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jo(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=O=>{f&&(n(!O||O.type?new wr(null,r,f):O),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let w=Pi(d);if(w&&De.protocols.indexOf(w)===-1){n(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,r));return}f.send(i||null)})};var On={http:wn,xhr:Uo};I.forEach(On,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Do={getAdapter:r=>{r=I.isArray(r)?r:[r];let{length:e}=r,t,n;for(let i=0;i<e&&(t=r[i],!(n=I.isString(t)?On[t.toLowerCase()]:t));i++);if(!n)throw n===!1?new ce(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(On,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:On};function qi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new wr(null,r)}function En(r){return qi(r),r.headers=He.from(r.headers),r.data=Ut.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Do.getAdapter(r.adapter||nt.adapter)(r).then(function(n){return qi(r),n.data=Ut.call(r,r.transformResponse,n),n.headers=He.from(n.headers),n},function(n){return Dt(n)||(qi(r),n&&n.response&&(n.response.data=Ut.call(r,r.transformResponse,n.response),n.response.headers=He.from(n.response.headers))),Promise.reject(n)})}var Fo=r=>r instanceof He?r.toJSON():r;function fr(r,e){e=e||{};let t={};function n(f,d,v){return I.isPlainObject(f)&&I.isPlainObject(d)?I.merge.call({caseless:v},f,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(f,d,v){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f,v)}else return n(f,d,v)}function s(f,d){if(!I.isUndefined(d))return n(void 0,d)}function o(f,d){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,v){if(v in e)return n(f,d);if(v in r)return n(void 0,f)}let a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d)=>i(Fo(f),Fo(d),!0)};return I.forEach(Object.keys(r).concat(Object.keys(e)),function(d){let v=a[d]||i,w=v(r[d],e[d],d);I.isUndefined(w)&&v!==u||(t[d]=w)}),t}var Cn="1.3.2";var Ri={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Ri[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var Bo={};Ri.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new ce(i(o," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!Bo[o]&&(Bo[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function Zm(r,e,t){if(typeof r!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let u=r[s],a=u===void 0||o(u,s,r);if(a!==!0)throw new ce("option "+s+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}var Tn={assertOptions:Zm,validators:Ri};var _r=Tn.validators,st=class{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=fr(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Tn.assertOptions(n,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!==void 0&&Tn.assertOptions(i,{encode:_r.function,serialize:_r.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=s&&I.merge(s.common,s[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=He.concat(o,s);let u=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});let f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let d,v=0,w;if(!a){let p=[En.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),w=p.length,d=Promise.resolve(t);v<w;)d=d.then(p[v++],p[v++]);return d}w=u.length;let O=t;for(v=0;v<w;){let p=u[v++],C=u[v++];try{O=p(O)}catch(G){C.call(this,G);break}}try{d=En.call(this,O)}catch(p){return Promise.reject(p)}for(v=0,w=f.length;v<w;)d=d.then(f[v++],f[v++]);return d}getUri(e){e=fr(this.defaults,e);let t=Ft(e.baseURL,e.url);return Nt(t,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,n){return this.request(fr(n||{},{method:e,url:t,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,u){return this.request(fr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});var Bt=st;var kt=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new wr(s,o,u),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt(function(i){e=i}),cancel:e}}},ko=kt;function Mi(r){return function(t){return r.apply(null,t)}}function Li(r){return I.isObject(r)&&r.isAxiosError===!0}var Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([r,e])=>{Ni[e]=r});var $o=Ni;function zo(r){let e=new Bt(r),t=Rt(Bt.prototype.request,e);return I.extend(t,Bt.prototype,e,{allOwnKeys:!0}),I.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return zo(fr(r,i))},t}var Ie=zo(nt);Ie.Axios=Bt;Ie.CanceledError=wr;Ie.CancelToken=ko;Ie.isCancel=Dt;Ie.VERSION=Cn;Ie.toFormData=vr;Ie.AxiosError=ce;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=Mi;Ie.isAxiosError=Li;Ie.mergeConfig=fr;Ie.AxiosHeaders=He;Ie.formToJSON=r=>Sn(I.isHTMLForm(r)?new FormData(r):r);Ie.HttpStatusCode=$o;Ie.default=Ie;var Fe=Ie;var{Axios:YI,AxiosError:XI,CanceledError:ZI,isCancel:QI,CancelToken:eP,VERSION:rP,all:tP,Cancel:nP,isAxiosError:iP,spread:sP,toFormData:oP,AxiosHeaders:aP,HttpStatusCode:uP,formToJSON:fP,mergeConfig:cP}=Fe;var re=pe(Iu(),1),Ae=pe(Fu(),1),xr=pe(lf(),1),on=pe(jf(),1),Ss=pe(Yf(),1),xs=pe(Oc(),1),Re=pe(We(),1),an=pe(er(),1),xe=pe(Cc(),1),As=pe($c(),1),nr=pe(Ll(),1),SC=pe(_h(),1),Os=pe(ws(),1),cr=pe(xp(),1),Es=pe(Op(),1);var Nr=pe(Ge(),1);var hn={};gn(hn,{BaseProvider:()=>le,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>Ir,LobidApiProvider:()=>Yr,LocApiProvider:()=>qr,LocalMappingsProvider:()=>Er,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Lr,OccurrencesApiProvider:()=>Cr,ReconciliationApiProvider:()=>Tr,SkohubProvider:()=>Rr,SkosmosApiProvider:()=>Pr});var bt=pe(Ge(),1);var Or={};gn(Or,{concatUrl:()=>lr,listOfCapabilities:()=>Oe,requestMethods:()=>Fs,withCustomProps:()=>Wr});var Fs=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function lr(...r){let[e,...t]=r;for(let n of t)e.endsWith("/")||(e+="/"),n.startsWith("/")&&(n=n.slice(1)),e+=n;return e}function Wr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Oe=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Fe.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(n=>{if(!n._skipAdditionalParameters){let i=xr.default([].concat(re.default(n,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");Ae.default(n,"params.language",i),this.has.auth&&this._auth.bearerToken&&!re.default(n,"headers.Authorization")&&Ae.default(n,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(n.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Fe.Cancel("Can't call http API from https.");return n}),this.axios.interceptors.response.use(({data:n,headers:i={},config:s={}})=>{n=bt.default.normalize(n);let o=s.url;if(o.endsWith("?")||(o+="?"),xs.default(s.params||{},(u,a)=>{o+=`${a}=${encodeURIComponent(u)}&`}),Re.default(n)||an.default(n)){let u=parseInt(i["x-total-count"]);isNaN(u)||(n._totalCount=u),n._url=o}return n},n=>{let i=re.default(n,"config._retryCount",0),s=re.default(n,"config.method"),o=re.default(n,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(o)&&i<this._retryConfig.count?(n.config._retryCount=i+1,n.config.data&&(n.config.data=JSON.parse(n.config.data)),new Promise((u,a)=>{setTimeout(()=>{this.axios(n.config).then(u).catch(a)},(()=>{let f=this._retryConfig.delay;return typeof f=="function"?f(i):f})())})):Promise.reject(n)});let t=[];for(let{method:n,type:i}of Fs){let s=this[n]&&this[n].bind(this);if(!s){this[n]=()=>{throw new Tt({method:n})};continue}this[n]=(o={})=>{if(o._raw)return delete o._raw,s(o);let u=t.find(v=>v.method==n&&nr.default(v.options,o));if(u)return u.promise;let a;o.cancelToken||(a=this.getCancelTokenSource(),o.cancelToken=a.token);let f=this.init().then(()=>s(o)).then(v=>(Re.default(v)&&v._totalCount===void 0?v._totalCount=v.length:an.default(v)&&v._totalCount===void 0&&(v._totalCount=1),v&&i&&this[`adjust${i}`]&&(v=this[`adjust${i}`](v)),v)).catch(v=>{throw v instanceof qe?v:v.response?v.response.status.toString().startsWith(4)?new tr({relatedError:v,code:v.response.status}):new It({relatedError:v,code:v.response.status}):v.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new Pt({relatedError:v}):new qt({relatedError:v}):new qe({relatedError:v})});a&&(f.cancel=(...v)=>a.cancel(...v));let d={method:n,options:cr.default(o,["cancelToken"]),promise:f};return t.push(d),f.catch(()=>{}).then(()=>t.splice(t.indexOf(d),1)),f}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return L(this,null,function*(){return this._init?this._init:(this._init=(()=>L(this,null,function*(){this._prepare();let e;if(xe.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(an.default(e)&&!As.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Fe.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:n,crossUser:i}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!n||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let o=[n.uri].concat(Object.values(n.identities||{}).map(u=>u.uri)).filter(u=>u!=null);if(s.auth&&s.identities&&on.default(o,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys(n&&n.identities||{});if(on.default(u,s.identityProviders).length==0)return!1}return i?s.crossUser===!0||on.default(s.crossUser||[],o).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Re.default(this.schemes)?this.schemes:null;return t==null&&!bt.default.isContainedIn(e,this.excludedSchemes||[])?!0:bt.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower(k(M({},t),{concept:e})),e._getAncestors=t=>this.getAncestors(k(M({},t),{concept:e})),e._getDetails=t=>L(this,null,function*(){return(yield this.getConcepts(k(M({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Wr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(n=>{Array.isArray(e[n])&&(e[n].length===0||e[n][0]===null)&&delete e[n]}),e._registry&&(e._getTop=n=>e._registry.getTop(k(M({},n),{scheme:e})),e._getTypes=n=>e._registry.getTypes(k(M({},n),{scheme:e})),e._suggest=s=>{var o=s,{search:n}=o,i=V(o,["search"]);return e._registry.suggest(k(M({},i),{search:n,scheme:e}))}),e}adjustSchemes(e){return Wr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let n=`${t}Scheme`;e[n]||(e[n]=re.default(bt.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(bt.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Wr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return L(this,arguments,function*({method:e,items:t,itemProperty:n,config:i}){let o=[],u=yield Promise.all(t.map(a=>L(this,null,function*(){try{return yield this[e](k(M({[n]:a},i),{_raw:!0}))}catch(f){return o[t.indexOf(a)]=f,null}})));return u._errors=o,u})}};le.providerName="Base";var je=pe(Ge(),1);var hr=pe(nd(),1);var ni,pT=new Uint8Array(16);function ks(){if(!ni&&(ni=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ni))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ni(pT)}var Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function id(r,e=0){return(Ne[r[e+0]]+Ne[r[e+1]]+Ne[r[e+2]]+Ne[r[e+3]]+"-"+Ne[r[e+4]]+Ne[r[e+5]]+"-"+Ne[r[e+6]]+Ne[r[e+7]]+"-"+Ne[r[e+8]]+Ne[r[e+9]]+"-"+Ne[r[e+10]]+Ne[r[e+11]]+Ne[r[e+12]]+Ne[r[e+13]]+Ne[r[e+14]]+Ne[r[e+15]]).toLowerCase()}var dT=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$s={randomUUID:dT};function mT(r,e,t){if($s.randomUUID&&!e&&!r)return $s.randomUUID();r=r||{};let n=r.random||(r.rng||ks)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return id(n)}var ii=mT;var si="urn:uuid:",Er=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>hr.default.getItem(this.localStorageKey).then(n=>{n=n||[];let i=0;for(let s of n.filter(o=>!o.uri||!o.uri.startsWith(si)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${si}${ii()}`,i+=1;return i&&console.warn(`URIs added to ${i} local mappings.`),hr.default.setItem(this.localStorageKey,n)});hr.default.getItem(e).then(n=>{n&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(n=>{console.warn("Error when adding URIs to local mappings:",n)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=Os.default(this.queue)||Promise.resolve();return new Promise(t=>{function n(){var o,u,a=new Promise((f,d)=>{o=f,u=d});return a.resolve=o,a.reject=u,a}let i=n(),s=()=>{i.resolve()};this.queue.push(i),e.then(()=>hr.default.getItem(this.localStorageKey)).then(o=>{t({mappings:o,done:s})})})}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new H({parameter:"mapping"});return(yield this.getMappings(k(M({},t),{uri:e.uri})))[0]})}getMappings(){return L(this,arguments,function*({from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,uri:O}={}){let p={};return e&&(p.from=xe.default(e)?e:e.uri),t&&(p.fromScheme=xe.default(t)?{uri:t}:t),n&&(p.to=xe.default(n)?n:n.uri),i&&(p.toScheme=xe.default(i)?{uri:i}:i),s&&(p.creator=xe.default(s)?s:je.default.prefLabel(s)),o&&(p.type=xe.default(o)?o:o.uri),u&&(p.partOf=xe.default(u)?u:u.uri),a&&(p.offset=a),f&&(p.limit=f),d&&(p.direction=d),v&&(p.mode=v),w&&(p.identifier=w),O&&(p.uri=O),this._getMappingsQueue().catch(C=>{throw new qe({message:"Could not get mappings from local storage",relatedError:C})}).then(({mappings:C,done:G})=>{G();let K=(D,Q)=>D.uri==Q||Q&&D.notation&&D.notation[0].toLowerCase()==Q.toLowerCase();if((p.from||p.to)&&(C=C.filter(D=>{let Q=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.from))!=null,ne=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.from))!=null,E=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.to))!=null,ee=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.to))!=null;return p.direction=="backward"?p.mode=="or"?p.from&&ne||p.to&&E:(!p.from||ne)&&(!p.to||E):p.direction=="both"?p.mode=="or"?p.from&&(Q||ne)||p.to&&(E||ee):(!p.from||Q)&&(!p.to||ee)||(!p.from||ne)&&(!p.to||E):p.mode=="or"?p.from&&Q||p.to&&ee:(!p.from||Q)&&(!p.to||ee)})),(p.fromScheme||p.toScheme)&&(C=C.filter(D=>{let Q=je.default.compare(D.fromScheme,p.fromScheme),ne=je.default.compare(D.toScheme,p.fromScheme),E=je.default.compare(D.fromScheme,p.toScheme),ee=je.default.compare(D.toScheme,p.toScheme);return p.direction=="backward"?p.mode=="or"?p.fromScheme&&ne||p.toScheme&&E:(!p.fromScheme||ne)&&(!p.toScheme||E):p.direction=="both"?p.mode=="or"?p.fromScheme&&(Q||ne)||p.toScheme&&(E||ee):(!p.fromScheme||Q)&&(!p.toScheme||ee)||(!p.fromScheme||ne)&&(!p.toScheme||E):p.mode=="or"?p.fromScheme&&Q||p.toScheme&&ee:(!p.fromScheme||Q)&&(!p.toScheme||ee)})),p.creator){let D=p.creator.split("|");C=C.filter(Q=>(Q.creator&&Q.creator.find(ne=>D.includes(je.default.prefLabel(ne))||D.includes(ne.uri)))!=null)}p.type&&(C=C.filter(D=>(D.type||[je.default.defaultMappingType.uri]).includes(p.type))),p.partOf&&(C=C.filter(D=>D.partOf!=null&&D.partOf.find(Q=>je.default.compare(Q,{uri:p.partOf}))!=null)),p.identifier&&(C=C.filter(D=>p.identifier.split("|").map(Q=>(D.identifier||[]).includes(Q)||D.uri==Q).reduce((Q,ne)=>Q||ne))),p.uri&&(C=C.filter(D=>D.uri==p.uri));let te=C.length;return C=C.sort((D,Q)=>{let ne=D.modified||D.created,E=Q.modified||Q.created;return E==null?-1:ne==null?1:ne>E?-1:1}),C=C.slice(p.offset||0),C=C.slice(0,p.limit),C._totalCount=te,C})})}postMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(si))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${si}${ii()}`),n.find(s=>s.uri==e.uri))throw i(),new H({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),n.push(e),n=n.map(s=>je.default.minifyMapping(s));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(s){throw i(),s}})}putMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=e,n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}patchMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=Object.assign(n[s],e),n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}deleteMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();try{return n=n.filter(s=>s.uri!=e.uri),n=n.map(s=>je.default.minifyMapping(s)),yield hr.default.setItem(this.localStorageKey,n),i(),!0}catch(s){throw i(),s}})}};Er.providerName="LocalMappings";Er.stored=!0;var St=pe(Ge(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios(k(M({},t),{url:e.uri,params:M(M({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Q){return L(this,null,function*(){var ne=Q,{from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,cardinality:O,annotatedBy:p,annotatedFor:C,annotatedWith:G,sort:K,order:te}=ne,D=V(ne,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let E={},ee=this._api.mappings;return e&&(E.from=xe.default(e)?e:e.uri),t&&(E.fromScheme=xe.default(t)?t:t.uri),n&&(E.to=xe.default(n)?n:n.uri),i&&(E.toScheme=xe.default(i)?i:i.uri),s&&(E.creator=xe.default(s)?s:St.default.prefLabel(s)),o&&(E.type=xe.default(o)?o:o.uri),u&&(E.partOf=xe.default(u)?u:u.uri),a&&(E.offset=a),f&&(E.limit=f),d&&(E.direction=d),O&&(E.cardinality=O),p&&(E.annotatedBy=p),C&&(E.annotatedFor=C),G&&(E.annotatedWith=G),v&&(E.mode=v),w&&(E.identifier=w),K&&(E.sort=K),te&&(E.order=te),this.axios(k(M({},D),{method:"get",url:ee,params:M(M(M({},this._defaultParams),D.params||{}),E)}))})}postMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});return e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e),this.axios(k(M({},t),{method:"post",url:this._api.mappings,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getAnnotations(n){return L(this,null,function*(){var i=n,{target:e}=i,t=V(i,["target"]);return e&&Ae.default(t,"params.target",e),this.axios(k(M({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);return this.axios(k(M({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e}))})}patchAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getConcordances(e){return L(this,null,function*(){return this.axios(k(M({},e),{method:"get",url:this._api.concordances}))})}postConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});return this.axios(k(M({},t),{method:"post",url:this._api.concordances,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}};ir.providerName="MappingsApi";ir.stored=!0;var xt=pe(Ge(),1);var zs={},Cr=class extends le{get _cache(){return zs[this.uri]}_prepare(){zs[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return L(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let n=lr(this._api.api,"voc"),i=yield this.axios({method:"get",url:n});this._occurrencesSupportedSchemes=i||[]}catch(n){}let t=!1;for(let n of this._occurrencesSupportedSchemes)xt.default.compare(e,n)&&(t=!0);return t})}getMappings(e){return L(this,null,function*(){let t=yield this.getOccurrences(e),n=e.from,i=re.default(n,"inScheme[0]")||e.fromScheme,s=e.to,o=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let a of t){if(!a)continue;let f={};f.from=re.default(a,"memberSet[0]"),f.from?f.from={memberSet:[f.from]}:f.from=null,f.fromScheme=re.default(a,"memberSet[0].inScheme[0]"),f.to=re.default(a,"memberSet[1]"),f.to?f.to={memberSet:[f.to]}:f.to={memberSet:[]},f.toScheme=re.default(a,"memberSet[1].inScheme[0]"),(n&&xt.default.compare(n,re.default(f,"to.memberSet[0]"))||s&&xt.default.compare(s,re.default(f,"from.memberSet[0]")))&&([f.from,f.fromScheme,f.to,f.toScheme]=[f.to,f.toScheme,f.from,f.fromScheme]),!f.fromScheme&&i&&(f.fromScheme=i),!f.toScheme&&o&&(f.toScheme=o),f.type=[xt.default.defaultMappingType.uri],f._occurrence=a,f=xt.default.addMappingIdentifiers(f),u.push(f)}return u._url=t._url,u})}getOccurrences(o){return L(this,null,function*(){var u=o,{from:e,to:t,concepts:n,threshold:i=0}=u,s=V(u,["from","to","concepts","threshold"]);let a=[];n=(n||[]).concat([e,t]).filter(p=>!!p);for(let p of n)a.push(this._occurrencesIsSupported(re.default(p,"inScheme[0]")).then(C=>C&&p.uri?p.uri:null));let f=yield Promise.all(a);if(f=f.filter(p=>p!=null),f.length==0)throw new H({parameter:"concepts"});a=[];for(let p of f)a.push(this._getOccurrences(k(M({},s),{params:{member:p,scheme:"*",threshold:i}})));let d=yield Promise.all(a),v=Es.default([],...d),w=[],O=[];for(let p=0;p<v.length;p+=1){let C=v[p];if(!C)continue;let G=C.memberSet.reduce((K,te)=>K.concat(te.uri),[]).sort().join(" ");w.includes(G)?O.push(p):w.push(G)}return O.forEach(p=>{delete v[p]}),v=v.filter(p=>p!=null),v=v.sort((p,C)=>parseInt(C.count||0)-parseInt(p.count||0)),v._url=d.map(p=>p._url),v})}_getOccurrences(e){return L(this,null,function*(){let t=this._cache.find(i=>nr.default(i.config.params,e.params));if(t)return t.data;let n=yield this.axios(k(M({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:n}),this._cache.length>20&&(zs[this.uri]=this._cache.slice(this._cache.length-20)),n})}};Cr.providerName="OccurrencesApi";Cr.stored=!1;var Gr=pe(Ge(),1);var sr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Gr.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Gr.default.compare(e,s)))return null;let i=(yield this.getSchemes({params:{uri:Gr.default.getAllUris(e).join("|")}})).find(s=>Gr.default.compare(s,e));return i?(this._approvedSchemes.push({uri:i.uri,identifier:Gr.default.getAllUris(e)}),i.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return L(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new ze}let t=yield this.axios(k(M({},e),{method:"get",url:this._api.schemes,params:M(k(M({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Wr(t.filter(n=>Gr.default.isContainedIn(n,this.schemes)),t):t})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.top)throw new ze;if(!e)throw new H({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios(k(M({},t),{method:"get",url:this._api.top,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);if(this.has.data===!1)throw new ze;if(!e)throw new H({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(o=>o.uri).filter(o=>o!=null);return this.axios(k(M({},t),{method:"get",url:this._api.data,params:k(M(k(M({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.narrower)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.narrower,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.ancestors)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.ancestors,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(o){return L(this,null,function*(){var u=o,{use:e="notation,label",types:t=[],sort:n="score",params:i={}}=u,s=V(u,["use","types","sort","params"]);return this._search(k(M({},s),{endpoint:"suggest",params:k(M({},i),{type:t.join("|"),use:e,sort:n})}))})}search(i){return L(this,null,function*(){var s=i,{types:e=[],params:t={}}=s,n=V(s,["types","params"]);return this._search(k(M({},n),{endpoint:"search",params:k(M({},t),{type:e.join("|")})}))})}vocSuggest(s){return L(this,null,function*(){var o=s,{use:e="notation,label",sort:t="score",params:n={}}=o,i=V(o,["use","sort","params"]);return this._search(k(M({},i),{endpoint:"voc-suggest",params:k(M({},n),{use:e,sort:t})}))})}vocSearch(e){return L(this,null,function*(){return this._search(k(M({},e),{endpoint:"voc-search"}))})}_search(f){return L(this,null,function*(){var d=f,{endpoint:e,scheme:t,search:n,limit:i,offset:s,params:o,url:u}=d,a=V(d,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new ze;if(!n)throw new H({parameter:"search"});i=i||this._jskos.suggestResultLimit||100,s=s||0;let v=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",n),this.axios(k(M({},a),{params:k(M(M({},this._defaultParams),o),{limit:i,count:i,offset:s,search:n,query:n,voc:v}),method:"get",url:u}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.types)throw new ze;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));return s&&Ae.default(t,"params.uri",s),this.axios(k(M({},t),{method:"get",url:this._api.types}))})}};sr.providerName="ConceptApi";sr.providerType="http://bartoc.org/api-type/jskos";var fn=pe(Ge(),1);var Hs={},Tr=class extends le{get _cache(){return Hs[this.uri]}_prepare(){Hs[this.uri]=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return L(this,null,function*(){var o=s,{from:e,to:t,mode:n}=o,i=V(o,["from","to","mode"]);let u=[];Re.default(this.schemes)&&(u=this.schemes);let a,f,d=re.default(e,"inScheme[0]"),v=re.default(t,"inScheme[0]"),w,O;if(!e||fn.default.isContainedIn(d,u)?(a=!0,f=t,w=v,O=u.find(E=>fn.default.compare(E,d))||u[0]):(a=!1,f=e,w=d,O=u.find(E=>fn.default.compare(E,v))||u[0]),n!="or")return[];if(!this._api.api)throw new ze;if(!f)throw new H({parameter:a?"to":"from"});let p=fn.default.languagePreference.selectLanguage(f.prefLabel);if(!p)throw new H({parameter:a?"to":"from",message:"Missing language"});let C=re.default(f,`altLabel.${p}`,[]);xe.default(C)&&(C=[C]);let G=re.default(f,`prefLabel.${p}`),K=C.concat([G]);K=[G];let{url:te,data:D}=yield this._getReconciliationResults(k(M({},i),{labels:K,language:p}));D=[].concat(...Object.values(D).map(E=>E.result)).filter(E=>E),D=D.sort((E,ee)=>E.score!=ee.score?ee.score-E.score:E.match!=ee.match?E.match?-1:1:E.id.length-ee.id.length);let Q=re.default(O,"namespace",""),ne=D.map(E=>({fromScheme:w,from:{memberSet:[f]},toScheme:O,to:{memberSet:[{uri:Q+E.id}]},type:[E.match?"http://www.w3.org/2004/02/skos/core#exactMatch":E.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return a&&(ne=ne.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),ne._url=te,ne})}_getReconciliationResults(i){return L(this,null,function*(){var s=i,{labels:e,language:t}=s,n=V(s,["labels","language"]);e=e.sort();let o=this._cache.find(O=>nr.default(O.labels,e)&&O.language==t);if(o)return o;let u={},a=0;for(let O of e)u[`q${a}`]={query:O},a+=1;let f=this._api.api;t&&(f=f.replace("{language}",t));let d=`queries=${encodeURIComponent(JSON.stringify(u))}`;Ae.default(n,["headers","Content-Type"],"application/x-www-form-urlencoded");let v=yield this.axios(k(M({},n),{method:"post",url:f,data:d}));v=v||{};let w={labels:e,language:t,data:v,url:`${f}${f.includes("?")?"&":"?"}${d}`};return this._cache.push(w),this._cache.length>20&&(Hs[this.uri]=this._cache.slice(this._cache.length-20)),w})}};Tr.providerName="ReconciliationApi";Tr.stored=!1;var Kr=pe(Ge(),1);var Ir=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return L(this,null,function*(){var a=u,{from:e,to:t,mode:n,selected:i,limit:s=10}=a,o=V(a,["from","to","mode","selected","limit"]);if(n!="or")return[];if(!i)throw new H({parameter:"selected"});let f=[];e&&this.supportsScheme(i.scheme[!1])?f.push(this._getMappings(k(M({},o),{concept:e,sourceScheme:i.scheme[!0],targetScheme:i.scheme[!1],limit:s}))):f.push(Promise.resolve([])),t&&this.supportsScheme(i.scheme[!0])?f.push(this._getMappings(k(M({},o),{concept:t,sourceScheme:i.scheme[!1],targetScheme:i.scheme[!0],limit:s,swap:!0}))):f.push(Promise.resolve([]));let[d,v]=yield Promise.all(f);for(v=v.filter(w=>!d.find(O=>Kr.default.compareMappingMembers(w,O)));d.length+v.length>s;)v.length>=d.length?v=v.slice(0,-1):d=d.slice(0,-1);return Ss.default(d,v)})}_getMappings(u){return L(this,null,function*(){var a=u,{concept:e,sourceScheme:t,targetScheme:n,limit:i,swap:s=!1}=a,o=V(a,["concept","sourceScheme","targetScheme","limit","swap"]);var p;if(!e||!t||!n)return[];if(Kr.default.compare(t,n))return[];let f=Kr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],d=Kr.default.prefLabel(e,{fallbackToUri:!1,language:f});if(!d)return[];let v=/^[\s\wäüöÄÜÖß]*\w/.exec(d);d=v?v[0]:d;let w=yield this._getResults(k(M({},o),{label:d,targetScheme:n,limit:i}));if(!w.length&&((p=e.broader)!=null&&p.length))for(let C of e.broader){let G=Kr.default.prefLabel(C,{fallbackToUri:!1,language:f});if(G&&(w=yield this._getResults(k(M({},o),{label:G,targetScheme:n,limit:i})),w.length))break}let O=w.map(C=>({fromScheme:t,from:{memberSet:[e]},toScheme:n,to:{memberSet:[C]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(O=O.map(C=>Object.assign(C,{fromScheme:C.toScheme,from:C.to,toScheme:C.fromScheme,to:C.from}))),O})}_getResults(s){return L(this,null,function*(){var o=s,{label:e,targetScheme:t,limit:n}=o,i=V(o,["label","targetScheme","limit"]);var v;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=n)return u;let a=re.default(t,"_registry");if(!a||a.has.search===!1)return[];let f=(v=(this._jskos.overrides||[]).find(w=>Kr.default.compare(w,t)))==null?void 0:v.search,d=yield a.search(k(M({},i),{url:f,search:e,scheme:t,limit:n}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=d,this._cache[t.uri][e]._limit=n,d})}};Ir.providerName="LabelSearchSuggestion";Ir.stored=!1;var Be=pe(Ge(),1);var Pr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let n={},i=e.match(/(.+\/)([^/]+)\/$/);return i?(n.api=i[1]+"rest/v1/",t.VOCID=i[2],n.schemes=[t],n):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,n){let i=e&&e.VOCID||re.default(this.schemes.find(o=>Be.default.compare(o,e)),"VOCID");if(!i)throw new H({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",n=n||{},n.lang||(n.lang=this._language);let s=Object.keys(n).map(o=>`${o}=${encodeURIComponent(n[o])}`).join("&");return`${this._api.api}${i}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let n=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new H({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(n,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(o=>Be.default.compare(e,o));if(t)return t.uri;if(this._rejectedSchemes.find(o=>Be.default.compare(e,o)))return null;let n=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:n})).conceptschemes.find(o=>Be.default.compare(o,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:Be.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:n,result:i,language:s}={}){if(!e)return null;t=Be.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,n&&(t.inScheme=[n]);let o=e.matchedPrefLabel||e.prefLabel||e.label;if(xe.default(o))Ae.default(t,`prefLabel.${s}`,o);else{o&&!Re.default(o)&&(o=[o]);for(let f of o||[])Ae.default(t,`prefLabel.${f.lang}`,f.value)}let u=e.altLabel;if(xe.default(u))Ae.default(t,`altLabel.${s}`,[u]);else{u&&!Re.default(u)&&(u=[u]);for(let f of u||[])re.default(t,`altLabel.${f.lang}`)?(t.altLabel[f.lang].push(f.value),t.altLabel[f.lang]=xr.default(t.altLabel[f.lang])):Ae.default(t,`altLabel.${f.lang}`,[f.value])}let a=e.notation||e["skos:notation"]||Be.default.notation(t);a&&(t.notation=[a.value||a]),e.broader&&(Re.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(f=>xe.default(f)?{uri:f}:f)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Re.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let f of e.type||[]){if(!Be.default.isValidUri(f))continue;let d=f.slice(0,f.indexOf(":"));i&&i["@context"]&&i["@context"][d]&&(f=f.replace(d+":",i["@context"][d])),t.type.push(f)}return t.type=xr.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);let n=[];for(let i of this.schemes||[]){let s=this._getApiUrl(i,"/"),u=(yield this.axios(k(M({},e),{method:"get",url:s}))).conceptschemes.find(f=>Be.default.compare(f,i)),a=u&&(u.prefLabel||u.label||u.title);a&&Ae.default(i,`prefLabel.${this._language}`,a),n.push(i),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(f=>Be.default.compare(i,f))||this._approvedSchemes.push({uri:u.uri,identifier:Be.default.getAllUris(i)})}return n})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),o=yield this._getSchemeUri(e);if(!o)throw new H({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});Ae.default(t,"params.scheme",o);let u=yield this.axios(k(M({},t),{method:"get",url:s})),a=[];for(let f of u.topconcepts||[]){let d=this._toJskosConcept(f,{scheme:e,language:this._language});d.topConceptOf=[e],a.push(d)}return a})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);Re.default(e)||(e=[e]),e=e.map(o=>({uri:o.uri,inScheme:o.inScheme}));let s=[];for(let o of e){let u=this._getDataUrl(o,{addFormatParameter:!1});if(!u)continue;let a=yield this.axios(k(M({},t),{method:"get",url:u,params:{uri:o.uri,format:"application/json"}})),f=a&&a.graph&&a.graph.find(d=>Be.default.compare(d,o));if(f){let d=this._toJskosConcept(f,{concept:o,result:a});for(let v of["broader","narrower"]){let w=f[v]||d[v];w&&!Re.default(w)&&(w=[w]),w||(w=[]),d[v]=w.map(O=>this._toJskosConcept(a.graph.find(p=>Be.default.compare(p,O)),{scheme:o.inScheme[0],result:a}))}d.ancestors=[],s.push(d)}}return s})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/children");return Ae.default(t,"params.uri",e.uri),((yield this.axios(k(M({},t),{method:"get",url:o}))).narrower||[]).map(f=>this._toJskosConcept(f,{scheme:s}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/broaderTransitive");Ae.default(t,"params.uri",e.uri);let u=yield this.axios(k(M({},t),{method:"get",url:o})),a=[],f=e.uri;for(;f;){if(f!=e.uri){let v=re.default(u,`broaderTransitive["${f}"]`);a=a.concat([v])}f=re.default(u,`broaderTransitive["${f}"].broader[0]`)}return a.map(v=>this._toJskosConcept(v,{scheme:s})).filter(v=>v.uri!=e.uri)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Be.default.notation(i),o=Be.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}search(o){return L(this,null,function*(){var u=o,{search:e,scheme:t,limit:n,types:i=[]}=u,s=V(u,["search","scheme","limit","types"]);let a=this._getApiUrl(t,"/search");return Ae.default(s,"params.query",`${e}*`),Ae.default(s,"params.unique",1),Ae.default(s,"params.maxhits",n||100),Ae.default(s,"params.type",i.join(" ")),((yield this.axios(k(M({},s),{method:"get",url:a}))).results||[]).map(v=>this._toJskosConcept(v,{scheme:t}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/types"),o=[],u=yield this.axios(k(M({},t),{method:"get",url:s}));for(let a of u&&u.types||[])a.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(a.label&&(a.prefLabel={[u["@context"]["@language"]]:a.label},delete a.label),o.push(a));return o._url=s,o})}};Pr.providerName="SkosmosApi";Pr.providerType="http://bartoc.org/api-type/skosmos";var pr=pe(Ge(),1);var ai="http://id.loc.gov/authorities/",oi=[{uri:`${ai}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${ai}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],sd=`${ai}classification`;function od(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(i=>i["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let n=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];n.length&&(e.altLabel={en:n.map(i=>i["@value"])});for(let i of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(i["@value"]);return e}function gT(r){let e=od(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Ws=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function yT(r,{scheme:e}){let t=od(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>oi.find(o=>o.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let n=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=n.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0]));let i=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=i.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0])),t}var qr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!oi.find(t=>pr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return L(this,null,function*(){let e=[];for(let t of yield Promise.all(oi.filter(n=>!this.schemes||!this.schemes.length||this.schemes.find(i=>pr.default.compare(n,i))).map(n=>Fe({method:"get",url:`${n.uri.replace("http:","https:")}.json`}).then(({status:i,data:s})=>{if(i===200){let o=s.find(u=>n.uri===u["@id"]);if(o)return o=pr.default.merge(gT(o),n),o.topConcepts=(o.topConcepts||[]).filter(u=>u),o}return null}))))t&&e.push(t);return e})}getConcepts(t){return L(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let n=[];for(let i of yield Promise.all(e.map(s=>Fe({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:o,data:u})=>{if(o===200){let a=u.find(f=>s.uri===f["@id"]);return a?yT(a,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))i&&n.push(i);return n})}suggest(e){return L(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(n=>pr.default.prefLabel(n,{fallbackToUri:!0})),[],t.map(n=>n.uri)]})}search(s){return L(this,arguments,function*({search:e,scheme:t,limit:n,offset:i}){let o=pr.default.getAllUris(t).find(a=>a.startsWith(ai));if(!o||!oi.find(a=>pr.default.compare(a,{uri:o})))throw new H({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new H({parameter:"search",message:"parameter is empty or missing"});n=n||this._jskos.suggestResultLimit||100,i=i||0;let{data:u}=yield Fe({method:"get",url:`${o}/suggest2`.replace("http:","https:"),params:{q:e,count:n||100,offset:i,searchtype:"keyword"}});return(u.hits||[]).map(a=>({uri:a.uri,notation:[a.token],prefLabel:{en:a.aLabel},inScheme:[t]})).filter(Ws(t))})}};qr.providerName="LocApi";qr.providerType="http://bartoc.org/api-type/loc";var Vr=pe(Ge(),1),ud=pe(Ks(),1);function ui(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Jr={},Rr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Jr[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Jr[this.uri]&&Jr[this.uri].index}get _conceptCache(){return Jr[this.uri]&&Jr[this.uri].conceptCache}get _schemeCache(){return Jr[this.uri]&&Jr[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:Vr.default.getAllUris(t).filter(i=>i!==e)}]}}_loadScheme(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=Vr.default.getAllUris(e);for(let p of s)if(this._schemeCache[p])return this._schemeCache[p];let o=this.schemes.find(p=>Vr.default.compare(p,e));if(!o||!o.uri)throw new tr({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=o.uri;s=xr.default(s.concat(Vr.default.getAllUris(o)));let a=".json";u.endsWith("/")&&(a="index.json");let f=yield this.axios(k(M({},t),{url:`${u}${a}`,_skipAdditionalParameters:!0}));if(f.id!==u)throw new tr({message:"Skohub URL did not return expected concept scheme"});let{title:d,preferredNamespaceUri:v,hasTopConcept:w,description:O}=f;e={uri:u,identifier:s.filter(p=>p!==u)},e.prefLabel=d,Object.keys(e.prefLabel||{}).forEach(p=>{e.prefLabel[p]=ui(e.prefLabel[p])}),e.namespace=v,e.topConcepts=(w||[]).map(p=>this._toJskosConcept(p)),e.concepts=[null],O&&(e.definition=O,Object.keys(e.definition).forEach(p=>{e.definition[p]=[ui(e.definition[p])]}));for(let p of Object.keys(e).filter(C=>!e[C]))delete e[p];for(let p of s)this._schemeCache[p]=e;return e})}_loadConcept(n){return L(this,null,function*(){var i=n,{uri:e}=i,t=V(i,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios(k(M({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new tr({message:"Skohub URL did not return expected concept URI"});let o=this._toJskosConcept(s);return this._conceptCache[e]=o,o}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(n=>{t.prefLabel[n]=ui(t.prefLabel[n])}),t.narrower=(e.narrower||[]).map(n=>this._toJskosConcept(n)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(n=>{t.scopeNote[n]=[ui(t.scopeNote[n])]})),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);return Promise.all(this.schemes.map(n=>this._loadScheme(k(M({},e),{scheme:n}))))})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(M({scheme:e},t)),e.topConcepts||[]})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept(k(M({},t),{uri:s}))))).filter(Boolean)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept(k(M({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(M({concept:s},t))).map(o=>({uri:o.uri}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept(k(M({},t),{uri:e.uri}))),e.narrower})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let a of[""].concat(this.languages)){if(this._index[t.uri][a]){s=this._index[t.uri][a];break}if(this._index[t.uri][a]!==null)try{let f=a?`.${a}.index`:".index";t.uri.endsWith("/")&&(f=`index${f}`);let d=yield this.axios({url:`${t.uri}${f}`,_skipAdditionalParameters:!0});if(d.length<100){this._index[t.uri][a]=null;continue}s=ud.default.create(),s.import(d),this._index[t.uri][a]=s;break}catch(f){this._index[t.uri][a]=null}}if(!s)throw new tr({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let o=s.search(e);return(yield this.getConcepts({concepts:o.map(a=>({uri:a}))})).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Vr.default.notation(i),o=Vr.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Rr.providerName="Skohub";Rr.providerType="http://bartoc.org/api-type/skohub";var cn=pe(Ge(),1);var Mr={uri:"http://bartoc.org/en/node/430",concepts:[null],topConcepts:[],type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"],DISPLAY:{hideNotation:!0},identifier:["http://www.wikidata.org/entity/Q36578"],license:[{uri:"http://creativecommons.org/publicdomain/zero/1.0/"}],namespace:"https://d-nb.info/gnd/",notation:["GND"],notationPattern:"[0-9X-]+",prefLabel:{de:"Gemeinsame Normdatei",en:"Integrated Authority File"},types:[{uri:"https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson",prefLabel:{de:"Person",en:"Person"}},{uri:"https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",prefLabel:{de:"Geografikum",en:"Place"}},{uri:"https://d-nb.info/standards/elementset/gnd#CorporateBody",prefLabel:{de:"Organisation",en:"Organization"}},{uri:"https://d-nb.info/standards/elementset/gnd#SubjectHeading",prefLabel:{de:"Sachbegriff",en:"Subject"}},{uri:"https://d-nb.info/standards/elementset/gnd#Work",prefLabel:{de:"Werk",en:"Work"}},{uri:"https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",prefLabel:{de:"Konferenz oder Veranstaltung",en:"ConferenceOrEvent"}}]},Ys=new cn.default.ConceptScheme({uri:"https://d-nb.info/standards/elementset/gnd",namespace:"https://d-nb.info/standards/elementset/gnd#"});Mr.types.forEach(r=>{r.notation=[Ys.notationFromUri(r.uri)]});var vT=new cn.default.ConceptScheme(Mr),fd=["broaderTerm","broaderTermGeneral","broaderTermGeneric","broaderTermInstantial","broaderTermPartitive"];function Js(r){let e={uri:r.id,notation:[r.gndIdentifier],prefLabel:{de:r.preferredName},inScheme:[{uri:Mr.uri}]};return r.variantName&&(e.altLabel={de:r.variantName}),e.type=r.type.map(t=>Ys.uriFromNotation(t)).filter(Boolean),e.broader=[],fd.forEach(t=>{e.broader=e.broader.concat(r[t]||[])}),e.broader=e.broader.map(t=>({uri:t.id})),e.identifier=[e.uri.replace("https://","http://")],e}function Vs(r){return r&&r.startsWith("http://")?r.replace("http://","https://"):r}var Yr=class extends le{_prepare(){this.has.schemes=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.suggest=!0,this.has.search=!0,this.has.types=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t||!cn.default.compare(t,Mr)||e!=="https://lobid.org/gnd/api"?null:{api:"https://lobid.org/gnd/",schemes:[Mr]}}getSchemes(){return L(this,null,function*(){return[Mr]})}getTop(){return L(this,null,function*(){return[]})}getConcepts(t){return L(this,arguments,function*({concepts:e}){if(!e)throw new i.InvalidOrMissingParameterError({parameter:"concepts"});Array.isArray(e)||(e=[e]);let n=e.map(o=>{var u,a;return(u=o==null?void 0:o.notation)!=null&&u[0]?(a=o==null?void 0:o.notation)==null?void 0:a[0]:vT.notationFromUri(Vs(o==null?void 0:o.uri))}).filter(Boolean),i=[],s=yield Promise.all(n.map(o=>L(this,null,function*(){try{let u=yield Fe.get(`${this._api.api}${o}.json`);return Js(u.data)}catch(u){i.push(u)}})));if(i.length===e.length)throw i[0];return s.filter(Boolean)})}getNarrower(i){return L(this,arguments,function*({concept:e,limit:t=200,offset:n=0}){if(!e||!e.uri)throw new H({parameter:"concept"});let s=Vs(e.uri),o=fd.map(a=>`${a}.id:"${s}"`).join(" OR ");return(yield Fe.get(`${this._api.api}search`,{params:{q:o,format:"json",size:t,from:n}})).data.member.map(a=>Js(a))})}suggest(e){return L(this,null,function*(){let t=yield this._search(k(M({},e),{format:"json:suggest"}));return[e.search,t.map(n=>n.label),[],t.map(n=>n.id)]})}search(e){return L(this,null,function*(){return(yield this._search(e)).member.map(n=>Js(n))})}_search(o){return L(this,arguments,function*({search:e,types:t,limit:n=100,offset:i=0,format:s="json"}){if(!e)throw new H({parameter:"search"});let u="";return t=(t==null?void 0:t.map(f=>Ys.notationFromUri(Vs(f))).filter(Boolean))||[],t.length&&(u=t.map(f=>`type:${f}`).join(" OR ")),(yield Fe.get(`${this._api.api}search`,{params:{q:e,filter:u,format:s,size:n,from:i}})).data})}getTypes(t){return L(this,arguments,function*({scheme:e}){if(!e||!cn.default.compare(e,Mr))throw new H({parameter:"search",message:e!=null&&e.uri?`scheme ${e==null?void 0:e.uri} not supported`:""});return Mr.types})}};Yr.providerName="LobidApi";var ln=pe(Ge(),1),cd=pe(Ks(),1);var Ke={},Lr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,n={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{n[s.lang]=s.text});let i={uri:t,prefLabel:n};return e.categories&&e.categories.length&&(i.topConcepts=[null]),e.category&&e.category.length&&(i.concepts=[null]),i}_categoryToJSKOS(e,{scheme:t,broader:n=[]}){if(!e||!t)return null;let i=e.ID,s=`${t.uri}/${i}`;if(Ke[t.uri].concepts[s])return Ke[t.uri].concepts[s];let o={};e.labels.filter(a=>!a.lang.startsWith("x-")&&a.text).forEach(a=>{o[a.lang]=a.text.replace(`${i} `,""),Ke[t.uri].searchIndex.add(s,o[a.lang])});let u={};return e.labels.filter(a=>!a.lang.startsWith("x-")&&a.description).forEach(a=>{u[a.lang]||(u[a.lang]=[]),u[a.lang].push(a.description)}),Ke[t.uri].concepts[s]={uri:s,notation:[i],prefLabel:o,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(a=>({uri:`${t.uri}/${a.ID}`})),broader:n},Ke[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return L(this,null,function*(){let t=yield this.axios(k(M({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let n=this._scheme.uri;Ke[n]={schemeInfo:t,searchIndex:cd.default.create({tokenize:"full"}),concepts:{}};let i=(s,{broader:o=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:o});(s.categories||[]).forEach(a=>i(a,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>i(s)),Ke[n].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return L(this,arguments,function*(e={}){if(!this._api.api)throw new ze;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!ln.default.compare(e,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Ke[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(M({concept:s},t))):[]})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});if(!t||!t.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!ln.default.compare(t,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield Ke[this._scheme.uri].searchIndex.search(e)).map(o=>Ke[this._scheme.uri].concepts[o]).map(this._removeNarrower).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=ln.default.notation(i),o=ln.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Lr.providerName="MyCoRe";Lr.providerType="http://bartoc.org/api-type/mycore";var or={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new et},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new et}};or.addProvider(sr);or.addProvider(ir);Object.values(hn).forEach(r=>{or.addProvider(r)});var Xs={},jr=class{constructor(e){this.config=e,this.axios=Fe.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>or.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return or}createInstance(e){return new jr(e)}loadConfig(e){return L(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(o){var u=o,{url:e,buildInfo:t=null,interval:n=6e4,callback:i}=u,s=V(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new qe({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat(k(M({},s),{function:()=>L(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:n,callback:(a,f,d)=>{a?i(a):(d||!d&&t&&!nr.default(f,t))&&i(null,f,d||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=or.init(e),e.cdk=this,e}addProvider(e){or.addProvider(e)}static addProvider(e){or.addProvider(e)}repeat({function:e,interval:t=15e3,callback:n,callImmediately:i=!0}={}){if(!e)throw new H({parameter:"function"});if(typeof e!="function")throw new H({parameter:"function",message:"function needs to be a function"});let s=()=>L(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new H({parameter:"interval"});if(!n)throw new H({parameter:"callback"});if(typeof n!="function")throw new H({parameter:"callback",message:"callback needs to be a function"});let o={timer:null,result:null,error:null,isPaused:!1,interval:t},u=w=>{let O=o.result;nr.default(O,w)||(o.result=w,o.error=null,n(null,w,O))},a=w=>{o.error=w,n(w)},f=w=>{o.isPaused||(o.timer=setTimeout(()=>{w()},o.interval))},d=()=>s().then(u).catch(a).then(()=>f(d)),v=(w=i)=>{w?d():f(d)};return v(),{start:(...w)=>{o.isPaused=!1,v(...w)},stop:()=>{o.isPaused=!0,o.timer?clearTimeout(o.timer):setTimeout(()=>{o.timer&&clearTimeout(o.timer)},o.interval)},get isPaused(){return o.isPaused},get lastResult(){return o.result},get hasErrored(){return!!o.error},get interval(){return o.interval},set interval(w){o.interval=w}}}getSchemes(){return L(this,arguments,function*(e={}){let t=[],n=[];for(let i of this.config.registries)if(i.has.schemes!==!1){let s=i.getSchemes(e).then(o=>{for(let u of o){u._registry=i,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let a=t.find(w=>Nr.default.compare(w,u)),f,d,v=!1;if(a){f=this.config.registries.indexOf(i),f!=-1&&(f=this.config.registries.length-f),d=this.config.registries.indexOf(re.default(a,"_registry")),d!=-1&&(d=this.config.registries.length-d);let w=u.concepts?u.concepts.length==0?-1:1:0,O=a.concepts?a.concepts.length==0?-1:1:0;w>O?v=!0:w<O?v=!1:v=d<f}if(!a||v){if(v){let w=t.findIndex(O=>Nr.default.compare(O,a));w!=-1&&t.splice(w,1),u=Nr.default.merge(u,cr.default(a,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=i,t.push(u)}else{let w=t.findIndex(O=>Nr.default.compare(O,u));if(w!=-1){let O=t[w]._registry;t[w]=Nr.default.merge(t[w],cr.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[w]._registry=O}}}}).catch(o=>{console.warn("Couldn't load schemes for registry",i.uri,o)});n.push(s)}return yield Promise.all(n),t.forEach(i=>{let s=i._registry;delete i._registry;let o=this.registryForScheme(i);!o||o._api.api===s._api.api?i._registry=s:i._registry=o}),Nr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let n of e.API||[]){let i=n,{type:s}=i,o=V(i,["type"]);let u=o.url;if(Xs[u]){let a=Xs[u];return Array.isArray(a._jskos.schemes)&&!Nr.default.isContainedIn(e,a._jskos.schemes)&&a._jskos.schemes.push(e),a}else{o.scheme=e;for(let a of Object.values(or)){if(a.providerType&&a.providerType!==s||!a._registryConfigForBartocApiConfig)continue;let f=a.providerName,d=or[f]._registryConfigForBartocApiConfig(o);if(d){d.provider=f;try{if(t=this.initializeRegistry(d),t)return Xs[u]=t,t}catch(v){continue}}}}}return null}};var ld=new jr;function wT(r){Object.values(hn).forEach(e=>(r||ld).addProvider(e))}return tm(_T);})();
10
+ `)}function Cs(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Lp(r),Mp(r)]).sort();return Object.assign({},r,{identifier:e})}function Np(r,e,t){r=r&&Cs(r),e=e&&Cs(e);let n=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,i=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return n==i}function jp(r,e){return Np(r,e,"urn:jskos:mapping:content:")}var AC=jp;function OC(r,e){return Np(r,e,"urn:jskos:mapping:members:")}Up.exports={mappingContent:qp,mappingMembers:Rp,mappingContentIdentifier:Mp,mappingMembersIdentifier:Lp,addMappingIdentifiers:Cs,compareMappings:jp,compareMappingContent:AC,compareMappingMembers:OC}});var Is=_((LM,Bp)=>{function Fp(r,e,t){var n=Array.prototype.slice,i=typeof Object.keys=="function"?Object.keys:function(f){var d=[];for(var v in f)d.push(v);return d},s=function(f,d){return f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():typeof f!="object"&&typeof d!="object"?f==d:a(f,d)};function o(f){return f==null}function u(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function a(f,d){if(o(f)||o(d)||f.prototype!==d.prototype)return!1;if(u(f))return u(d)?(f=n.call(f),d=n.call(d),s(f,d)):!1;try{var v=i(f),w=i(d),O,p}catch(C){return!1}if(v.length!=w.length)return!1;for(v.sort(),w.sort(),p=v.length-1;p>=0;p--)if(v[p]!=w[p])return!1;for(p=v.length-1;p>=0;p--)if(O=v[p],t){let C=t(f[O],d[O],O);if(C===void 0&&(C=Fp(f[O],d[O])),!C)return!1}else if(!s(f[O],d[O]))return!1;return!0}return s(r,e)}Bp.exports={get:(r,e,t=void 0)=>{let n=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((o,u)=>o!=null?o[u]:o,r),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===r?t:i},pick:(r,e)=>e.reduce((t,n)=>(r&&r.hasOwnProperty(n)&&(t[n]=r[n]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Fp,intersection:(...r)=>r.reduce((e,t)=>e.filter(n=>t.includes(n))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((n,i)=>(n.findIndex(s=>t(s,i))!==-1||n.push(i),n),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let n=0;n<t.length-1;n++)r=r[t[n]];delete r[t.pop()]}}}});var Ps=_((NM,EC)=>{EC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",bs:"ta\u010Dno podudaranje",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",ur:"\u0628\u0627\u0644\u06A9\u0644 \u062F\u0631\u0633\u062A \u062C\u0648\u0691",zh:"\u7CBE\u78BA\u5339\u914D","zh-cn":"\u7CBE\u786E\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",hu:"kv\xE1zi-egyen\xE9rt\xE9k\u0171s\xE9g",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",cs:"\u0161ir\u0161\xED koncept",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza con termine pi\xF9 generico",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",fi:"liittyv\xE4 k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fi:"SKOS mappaussuhde",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",ja:"SKOS\u4E00\u822C\u30DE\u30C3\u30D4\u30F3\u30B0\u95A2\u4FC2",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"SKOS generisk mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var $p=_((jM,kp)=>{var CC=Ps(),ei={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:CC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Qn=Object.keys(ei).reduce((r,e)=>{for(let t of ei[e].type||[])r[t]=e;return r},{});function TC(r,e=!1){var t;if(typeof r=="string"&&r)r in Qn?t=Qn[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(ei).find(n=>{let i=n.toLowerCase();if(i===r||i==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let n=Array.isArray(r.type)?r.type:[r.type];for(let i of n)if(i in Qn){t=Qn[i];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}kp.exports={objectTypes:ei,guessObjectType:TC}});var Rs=_((UM,zp)=>{var IC=/[\\^$.*+?()[\]{}|]/g,PC=r=>r.replace(IC,"\\$&"),qC=/[%ÄÖÜäöü ]/g,qs=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+PC(this.namespace);let t=this.notationPattern.replace(qC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let n=this.notationFromUri(e);if(n===void 0)return;let i={uri:e,notation:[n]};return t.inScheme&&(i.inScheme=[{uri:this.uri}]),t.topConcept&&(i.topConceptOf=[{uri:this.uri}]),i}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};zp.exports=qs});var Ms=_((DM,Wp)=>{var RC=Is(),ri={store:null,path:"",defaults:["en"],getLanguages:Hp,selectLanguage:MC};function Hp(){return RC.get(ri.store,ri.path)||ri.defaults}function MC(r){if(!r)return null;for(let e of Hp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Wp.exports=ri});var ed=_((FM,Qp)=>{var ie=Is(),LC=r=>/^[A-Z]*$/.test(r),wt=(r,e)=>e.split(".").reduce((t,n)=>t&&t[n]?t[n]:null,r),NC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),Us=r=>(Object.keys(r).forEach(e=>{LC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=Us(r[e]))}),r),jC=Us,ti=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let n=Array.isArray(r)?[]:{};for(let i in r)if(!(t&&i[0]=="_")){if(e.includes(i))if(r[i]&&Array.isArray(r[i])){r[i].length>0?n[i]=[null]:n[i]=[];continue}else{n[i]=null;continue}if(i=="inScheme"){let s=[];for(let o of r.inScheme){let u={uri:o.uri};o.notation&&(u.notation=o.notation),o.prefLabel&&(u.prefLabel=o.prefLabel),s.push(u)}n.inScheme=s;continue}r[i]!=null&&typeof r[i]=="object"?n[i]=ti(r[i]):n[i]=r[i]}return n},UC=ti,Ls=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]):[],Or=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),n=Ls(r).map(t),i=Ls(e).map(t);return ie.intersection(n,i).length>0},DC=Or,FC=Or,BC=Or,kC=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Gp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Kp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(Or(r,t))return!0;return!1},$C=Kp,zC=(r,e=!1)=>r.sort((t,n)=>{let i=ie.get(t,"notation[0]"),s=ie.get(n,"notation[0]");if(i&&s&&(i=i.toLowerCase(),s=s.toLowerCase()),e&&(i=parseFloat(i)||i,s=parseFloat(s)||s),(!i||!s||i==s)&&(i=t.uri,s=n.uri),i&&s){if(i>s)return 1;if(i<s)return-1}return 0}),HC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,n)=>{for(let i of e){let s,o;if(Array.isArray(i))for(let u of i)s=s||ie.get(t,u),o=o||ie.get(n,u);else s=ie.get(t,i),o=ie.get(n,i);if(s!=null&&o!=null){if(s=s.toLowerCase(),o=o.toLowerCase(),s>o)return 1;if(s<o)return-1}}return 0})},WC=r=>{let e=ie.pick(ti(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(n,i)=>{let s=[];for(let o of n)s.push(ie.pick(o,["uri","notation"]));t[i]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Jp=Ps(),un=function(r){for(let e of Jp)if(r==e.uri)return e;return null},Vp=un("http://www.w3.org/2004/02/skos/core#mappingRelation"),GC=function(r,e=Vp){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,un(t)||e},KC=(r,e={})=>{let{language:t}=e,n=wt(r,"from.memberSet.0.notation.0"),i=wt(r,"to.memberSet.0.notation.0");n=n!==null?n:"",i=i!==null?i:"";let s=un(wt(r,"type.0"));s=s?s.SHORT:"";let o=_t(wt(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=_t(wt(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",a=_t(wt(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:n,toNotation:i,fromLabel:o,toLabel:u,type:s,creator:a}},JC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',n=r.lineTerminator||`
11
+ `,i=t+t,s=o=>t+(o==null?"":o.split(t).join(i))+t;return o=>o.map(s).join(e)+n},Wr=(r,e)=>{let t=[];for(let n of["from","to"])(e==null||n===e)&&(t=t.concat(ie.get(r,`${n}.memberSet`)||ie.get(r,`${n}.memberChoice`)||ie.get(r,`${n}.memberList`)||[]));return t.filter(n=>n!=null)},VC=(r={})=>{let e=JC(r),t=r.language||"en";r.type==null&&(r.type=!0);let n=o=>{o=o||[];let u=[];for(let a of["from","to"]){r.schemes&&u.push(`${a}Scheme`);let f=Math.max(...o.map(d=>Wr(d,a).length),1);for(let d=0;d<f;d+=1)u.push(`${a}Notation${d?d+1:""}`),r.labels&&u.push(`${a}Label${d?d+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},i=(o,u={})=>{let a=[];for(let f of["from","to"]){r.schemes&&a.push(ie.get(o,`${f}Scheme.notation[0]`,""));let d=Wr(o,f),v=u[`${f}Count`];v==null&&(v=d.length),v=Math.max(v,1);for(let w=0;w<v;w+=1)a.push(ie.get(d[w],"notation[0]","")),r.labels&&a.push(_t(d[w],{language:t,fallbackToUri:!1}))}return r.type&&a.push(ie.get(un(ie.get(o,"type[0]")),"SHORT","")),r.creator&&a.push(_t(ie.get(o,"creator[0]"),{language:t,fallbackToUri:!1})),e(a)};return{header:n,fromMapping:i,fromMappings:(o,u={header:!0})=>{let a="";u.header&&(a+=n(o));let f={fromCount:Math.max(...o.map(d=>Wr(d,"from").length)),toCount:Math.max(...o.map(d=>Wr(d,"to").length))};for(let d of o)a+=i(d,f);return a}}};function YC(r,e){return ie.isEqualWith(r,e,(t,n,i)=>{let s={[i]:t},o={[i]:n};if(i=="from"||i=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,i,{})),Object.getOwnPropertyNames(ie.get(n,i,{})))?ie.isEqualWith(Wr(s,i),Wr(o,i),(u,a,f)=>{if(f!=null)return Or(u,a)}):!1;if(i=="fromScheme"||i=="toScheme")return Or(t,n)})}var{objectTypes:XC,guessObjectType:Ns}=$p(),ZC=(r,e)=>{let t=Ns(r),n=Ns(e);return!(t&&n&&t!=n)},Yp=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},Xp=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,Yp(r.identifier)),r),Zp=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let n=t._path||"",i=t.detectMismatch||[],s=t.skipPaths||[],o={};return ie.forOwn(r,(u,a)=>{if(!s.includes(n+a))if(Array.isArray(u)&&Array.isArray(e[a]))o[a]=ie.unionWith(u,e[a],(f,d)=>ie.isObject(f)&&ie.isObject(d)?Or(f,d):f===d),Yp(o[a]);else if(ie.isObject(u)&&ie.isObject(e[a]))o[a]=Zp(u,e[a],Object.assign({_path:`${n}${a}.`},t));else{if(u&&e[a]&&i.includes(n+a)&&!ie.isEqualWith(u,e[a]))throw new Error("Property mismatch in "+n+a);o[a]=u}}),ie.forOwn(e,(u,a)=>{r[a]||(o[a]=u)}),n==""&&ie.omitMod(o,s),t.mergeUris&&Xp(o,e),o},js=r=>Array.isArray(r)?r.map(e=>js(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=js(e)}),r):ie.isString(r)?r.normalize():r,QC=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},eT={mappingsByConcepts:(r,e,t)=>{let n=["memberSet","memberList","memberChoice"],i,s;for(let o of n)i=i||ie.get(r,t+"."+o+"[0].notation[0]"),s=s||ie.get(e,t+"."+o+"[0].notation[0]");return i==null||i<s?-1:s==null||i>s?1:0}},rT=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),tT=Rs(),nT=Ms();function iT(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Gp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new tT(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(n){}return t||""}function Ds(r,e,{language:t}={}){let n=r&&e?r[e]:r;return n&&(n[t]||(t=nT.selectLanguage(n),t))?n[t]:null}function _t(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||Ds(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function sT(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||Ds(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function oT(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function aT(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function uT(r){return ie.get(r,"creator.name")||""}function fT(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}Qp.exports={addContext:NC,clean:Us,cleanJSKOS:jC,copyDeep:ti,deepCopy:UC,getAllUris:Ls,compare:Or,compareObjects:DC,compareSchemes:FC,compareConcepts:BC,isConcept:kC,isScheme:Gp,isContainedIn:Kp,isSchemeInList:$C,sortConcepts:zC,sortSchemes:HC,minifyMapping:WC,mappingTypes:Jp,mappingTypeByUri:un,mappingTypeByType:GC,flattenMapping:KC,mappingCSV:VC,defaultMappingType:Vp,conceptsOfMapping:Wr,compareMappingsDeep:YC,objectTypes:XC,guessObjectType:Ns,matchObjectTypes:ZC,mergeUris:Xp,merge:Zp,normalize:js,isValidUri:QC,compareFunctions:eT,userOwnsMapping:rT,notation:iT,languageMapContent:Ds,prefLabel:_t,definition:sT,mappingRegistryIsStored:oT,annotationCreatorUri:aT,annotationCreatorName:uT,annotationCreatorMatches:fT}});var Ge=_((BM,rd)=>{var cT=Dp(),lT=ed(),hT=Rs(),pT=Ms();rd.exports=Object.assign({ConceptScheme:hT,languagePreference:pT},cT,lT)});var nd=_((td,Bs)=>{(function(r){if(typeof td=="object"&&typeof Bs!="undefined")Bs.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(i,s,o){function u(d,v){if(!s[d]){if(!i[d]){var w=typeof Ct=="function"&&Ct;if(!v&&w)return w(d,!0);if(a)return a(d,!0);var O=new Error("Cannot find module '"+d+"'");throw O.code="MODULE_NOT_FOUND",O}var p=s[d]={exports:{}};i[d][0].call(p.exports,function(C){var G=i[d][1][C];return u(G||C)},p,p.exports,n,i,s,o)}return s[d].exports}for(var a=typeof Ct=="function"&&Ct,f=0;f<o.length;f++)u(o[f]);return u}({1:[function(n,i,s){(function(o){"use strict";var u=o.MutationObserver||o.WebKitMutationObserver,a;if(u){var f=0,d=new u(C),v=o.document.createTextNode("");d.observe(v,{characterData:!0}),a=function(){v.data=f=++f%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var w=new o.MessageChannel;w.port1.onmessage=C,a=function(){w.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var K=o.document.createElement("script");K.onreadystatechange=function(){C(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},o.document.documentElement.appendChild(K)}:a=function(){setTimeout(C,0)};var O,p=[];function C(){O=!0;for(var K,te,D=p.length;D;){for(te=p,p=[],K=-1;++K<D;)te[K]();D=p.length}O=!1}i.exports=G;function G(K){p.push(K)===1&&!O&&a()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,s){"use strict";var o=n(1);function u(){}var a={},f=["REJECTED"],d=["FULFILLED"],v=["PENDING"];i.exports=w;function w(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,E!==u&&G(this,E)}w.prototype.catch=function(E){return this.then(null,E)},w.prototype.then=function(E,ee){if(typeof E!="function"&&this.state===d||typeof ee!="function"&&this.state===f)return this;var J=new this.constructor(u);if(this.state!==v){var ge=this.state===d?E:ee;p(J,ge,this.outcome)}else this.queue.push(new O(J,E,ee));return J};function O(E,ee,J){this.promise=E,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}O.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},O.prototype.otherCallFulfilled=function(E){p(this.promise,this.onFulfilled,E)},O.prototype.callRejected=function(E){a.reject(this.promise,E)},O.prototype.otherCallRejected=function(E){p(this.promise,this.onRejected,E)};function p(E,ee,J){o(function(){var ge;try{ge=ee(J)}catch(Te){return a.reject(E,Te)}ge===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,ge)})}a.resolve=function(E,ee){var J=K(C,ee);if(J.status==="error")return a.reject(E,J.value);var ge=J.value;if(ge)G(E,ge);else{E.state=d,E.outcome=ee;for(var Te=-1,we=E.queue.length;++Te<we;)E.queue[Te].callFulfilled(ee)}return E},a.reject=function(E,ee){E.state=f,E.outcome=ee;for(var J=-1,ge=E.queue.length;++J<ge;)E.queue[J].callRejected(ee);return E};function C(E){var ee=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof ee=="function")return function(){ee.apply(E,arguments)}}function G(E,ee){var J=!1;function ge(Me){J||(J=!0,a.reject(E,Me))}function Te(Me){J||(J=!0,a.resolve(E,Me))}function we(){ee(Te,ge)}var ke=K(we);ke.status==="error"&&ge(ke.value)}function K(E,ee){var J={};try{J.value=E(ee),J.status="success"}catch(ge){J.status="error",J.value=ge}return J}w.resolve=te;function te(E){return E instanceof this?E:a.resolve(new this(u),E)}w.reject=D;function D(E){var ee=new this(u);return a.reject(ee,E)}w.all=Q;function Q(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=new Array(J),we=0,ke=-1,Me=new this(u);++ke<J;)Ye(E[ke],ke);return Me;function Ye(mr,Dr){ee.resolve(mr).then(Je,function(gr){ge||(ge=!0,a.reject(Me,gr))});function Je(gr){Te[Dr]=gr,++we===J&&!ge&&(ge=!0,a.resolve(Me,Te))}}}w.race=ne;function ne(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=-1,we=new this(u);++Te<J;)ke(E[Te]);return we;function ke(Me){ee.resolve(Me).then(function(Ye){ge||(ge=!0,a.resolve(we,Ye))},function(Ye){ge||(ge=!0,a.reject(we,Ye))})}}},{1:1}],3:[function(n,i,s){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,s){"use strict";var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function u(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(c){return}}var f=a();function d(){try{if(!f||!f.open)return!1;var c=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),y=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||y)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(l){return!1}}function v(c,y){c=c||[],y=y||{};try{return new Blob(c,y)}catch(b){if(b.name!=="TypeError")throw b;for(var l=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,S=new l,x=0;x<c.length;x+=1)S.append(c[x]);return S.getBlob(y.type)}}typeof Promise=="undefined"&&n(3);var w=Promise;function O(c,y){y&&c.then(function(l){y(null,l)},function(l){y(l)})}function p(c,y,l){typeof y=="function"&&c.then(y),typeof l=="function"&&c.catch(l)}function C(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function G(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",te=void 0,D={},Q=Object.prototype.toString,ne="readonly",E="readwrite";function ee(c){for(var y=c.length,l=new ArrayBuffer(y),S=new Uint8Array(l),x=0;x<y;x++)S[x]=c.charCodeAt(x);return l}function J(c){return new w(function(y){var l=c.transaction(K,E),S=v([""]);l.objectStore(K).put(S,"key"),l.onabort=function(x){x.preventDefault(),x.stopPropagation(),y(!1)},l.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),b=navigator.userAgent.match(/Edge\//);y(b||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function ge(c){return typeof te=="boolean"?w.resolve(te):J(c).then(function(y){return te=y,te})}function Te(c){var y=D[c.name],l={};l.promise=new w(function(S,x){l.resolve=S,l.reject=x}),y.deferredOperations.push(l),y.dbReady?y.dbReady=y.dbReady.then(function(){return l.promise}):y.dbReady=l.promise}function we(c){var y=D[c.name],l=y.deferredOperations.pop();if(l)return l.resolve(),l.promise}function ke(c,y){var l=D[c.name],S=l.deferredOperations.pop();if(S)return S.reject(y),S.promise}function Me(c,y){return new w(function(l,S){if(D[c.name]=D[c.name]||g(),c.db)if(y)Te(c),c.db.close();else return l(c.db);var x=[c.name];y&&x.push(c.version);var b=f.open.apply(f,x);y&&(b.onupgradeneeded=function(P){var j=b.result;try{j.createObjectStore(c.storeName),P.oldVersion<=1&&j.createObjectStore(K)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw F}}),b.onerror=function(P){P.preventDefault(),S(b.error)},b.onsuccess=function(){var P=b.result;P.onversionchange=function(j){j.target.close()},l(P),we(c)}})}function Ye(c){return Me(c,!1)}function mr(c){return Me(c,!0)}function Dr(c,y){if(!c.db)return!0;var l=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,x=c.version>c.db.version;if(S&&(c.version!==y&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),x||l){if(l){var b=c.db.version+1;b>c.version&&(c.version=b)}return!0}return!1}function Je(c){return new w(function(y,l){var S=new FileReader;S.onerror=l,S.onloadend=function(x){var b=btoa(x.target.result||"");y({__local_forage_encoded_blob:!0,data:b,type:c.type})},S.readAsBinaryString(c)})}function gr(c){var y=ee(atob(c.data));return v([y],{type:c.type})}function ar(c){return c&&c.__local_forage_encoded_blob}function fi(c){var y=this,l=y._initReady().then(function(){var S=D[y._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return p(l,c,c),l}function h(c){Te(c);for(var y=D[c.name],l=y.forages,S=0;S<l.length;S++){var x=l[S];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return c.db=null,Ye(c).then(function(b){return c.db=b,Dr(c)?mr(c):b}).then(function(b){c.db=y.db=b;for(var P=0;P<l.length;P++)l[P]._dbInfo.db=b}).catch(function(b){throw ke(c,b),b})}function m(c,y,l,S){S===void 0&&(S=1);try{var x=c.db.transaction(c.storeName,y);l(null,x)}catch(b){if(S>0&&(!c.db||b.name==="InvalidStateError"||b.name==="NotFoundError"))return w.resolve().then(function(){if(!c.db||b.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),mr(c)}).then(function(){return h(c).then(function(){m(c,y,l,S-1)})}).catch(l);l(b)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=c[S];var x=D[l.name];x||(x=g(),D[l.name]=x),x.forages.push(y),y._initReady||(y._initReady=y.ready,y.ready=fi);var b=[];function P(){return w.resolve()}for(var j=0;j<x.forages.length;j++){var F=x.forages[j];F!==y&&b.push(F._initReady().catch(P))}var B=x.forages.slice(0);return w.all(b).then(function(){return l.db=x.db,Ye(l)}).then(function(z){return l.db=z,Dr(l,y._defaultConfig.version)?mr(l):z}).then(function(z){l.db=x.db=z,y._dbInfo=l;for(var Z=0;Z<B.length;Z++){var fe=B[Z];fe!==y&&(fe._dbInfo.db=l.db,fe._dbInfo.version=l.version)}})}function T(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.get(c);B.onsuccess=function(){var z=B.result;z===void 0&&(z=null),ar(z)&&(z=gr(z)),x(z)},B.onerror=function(){b(B.error)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function q(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.openCursor(),z=1;B.onsuccess=function(){var Z=B.result;if(Z){var fe=Z.value;ar(fe)&&(fe=gr(fe));var me=c(fe,Z.key,z++);me!==void 0?x(me):Z.continue()}else x()},B.onerror=function(){b(B.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function N(c,y,l){var S=this;c=C(c);var x=new w(function(b,P){var j;S.ready().then(function(){return j=S._dbInfo,Q.call(y)==="[object Blob]"?ge(j.db).then(function(F){return F?y:Je(y)}):y}).then(function(F){m(S._dbInfo,E,function(B,z){if(B)return P(B);try{var Z=z.objectStore(S._dbInfo.storeName);F===null&&(F=void 0);var fe=Z.put(F,c);z.oncomplete=function(){F===void 0&&(F=null),b(F)},z.onabort=z.onerror=function(){var me=fe.error?fe.error:fe.transaction.error;P(me)}}catch(me){P(me)}})}).catch(P)});return O(x,l),x}function R(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,E,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.delete(c);j.oncomplete=function(){x()},j.onerror=function(){b(B.error)},j.onabort=function(){var z=B.error?B.error:B.transaction.error;b(z)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function U(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,E,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.clear();P.oncomplete=function(){S()},P.onabort=P.onerror=function(){var B=F.error?F.error:F.transaction.error;x(B)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function $(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.count();F.onsuccess=function(){S(F.result)},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function X(c,y){var l=this,S=new w(function(x,b){if(c<0){x(null);return}l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=!1,z=F.openKeyCursor();z.onsuccess=function(){var Z=z.result;if(!Z){x(null);return}c===0||B?x(Z.key):(B=!0,Z.advance(c))},z.onerror=function(){b(z.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function Y(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.openKeyCursor(),B=[];F.onsuccess=function(){var z=F.result;if(!z){S(B);return}B.push(z.key),z.continue()},F.onerror=function(){x(F.error)}}catch(z){x(z)}})}).catch(x)});return O(l,c),l}function W(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;if(!c.name)x=w.reject("Invalid arguments");else{var b=c.name===l.name&&S._dbInfo.db,P=b?w.resolve(S._dbInfo.db):Ye(c).then(function(j){var F=D[c.name],B=F.forages;F.db=j;for(var z=0;z<B.length;z++)B[z]._dbInfo.db=j;return j});c.storeName?x=P.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var F=j.version+1;Te(c);var B=D[c.name],z=B.forages;j.close();for(var Z=0;Z<z.length;Z++){var fe=z[Z];fe._dbInfo.db=null,fe._dbInfo.version=F}var me=new w(function(ye,Ce){var Ee=f.open(c.name,F);Ee.onerror=function(Ve){var Ot=Ee.result;Ot.close(),Ce(Ve)},Ee.onupgradeneeded=function(){var Ve=Ee.result;Ve.deleteObjectStore(c.storeName)},Ee.onsuccess=function(){var Ve=Ee.result;Ve.close(),ye(Ve)}});return me.then(function(ye){B.db=ye;for(var Ce=0;Ce<z.length;Ce++){var Ee=z[Ce];Ee._dbInfo.db=ye,we(Ee._dbInfo)}}).catch(function(ye){throw(ke(c,ye)||w.resolve()).catch(function(){}),ye})}}):x=P.then(function(j){Te(c);var F=D[c.name],B=F.forages;j.close();for(var z=0;z<B.length;z++){var Z=B[z];Z._dbInfo.db=null}var fe=new w(function(me,ye){var Ce=f.deleteDatabase(c.name);Ce.onerror=function(){var Ee=Ce.result;Ee&&Ee.close(),ye(Ce.error)},Ce.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Ce.onsuccess=function(){var Ee=Ce.result;Ee&&Ee.close(),me(Ee)}});return fe.then(function(me){F.db=me;for(var ye=0;ye<B.length;ye++){var Ce=B[ye];we(Ce._dbInfo)}}).catch(function(me){throw(ke(c,me)||w.resolve()).catch(function(){}),me})})}return O(x,y),x}var ae={_driver:"asyncStorage",_initStorage:A,_support:d(),iterate:q,getItem:T,setItem:N,removeItem:R,clear:U,length:$,key:X,keys:Y,dropInstance:W};function oe(){return typeof openDatabase=="function"}var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e="~~local_forage_type~",ve=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ue=se.length,de="arbf",$e="blob",Pe="si08",Le="ui08",Xe="uic8",Xr="si16",Fr="si32",Zr="ur16",Br="ui32",pn="fl32",kr="fl64",Zs=ue+de.length,Qs=Object.prototype.toString;function eo(c){var y=c.length*.75,l=c.length,S,x=0,b,P,j,F;c[c.length-1]==="="&&(y--,c[c.length-2]==="="&&y--);var B=new ArrayBuffer(y),z=new Uint8Array(B);for(S=0;S<l;S+=4)b=he.indexOf(c[S]),P=he.indexOf(c[S+1]),j=he.indexOf(c[S+2]),F=he.indexOf(c[S+3]),z[x++]=b<<2|P>>4,z[x++]=(P&15)<<4|j>>2,z[x++]=(j&3)<<6|F&63;return B}function ci(c){var y=new Uint8Array(c),l="",S;for(S=0;S<y.length;S+=3)l+=he[y[S]>>2],l+=he[(y[S]&3)<<4|y[S+1]>>4],l+=he[(y[S+1]&15)<<2|y[S+2]>>6],l+=he[y[S+2]&63];return y.length%3===2?l=l.substring(0,l.length-1)+"=":y.length%3===1&&(l=l.substring(0,l.length-2)+"=="),l}function pd(c,y){var l="";if(c&&(l=Qs.call(c)),c&&(l==="[object ArrayBuffer]"||c.buffer&&Qs.call(c.buffer)==="[object ArrayBuffer]")){var S,x=se;c instanceof ArrayBuffer?(S=c,x+=de):(S=c.buffer,l==="[object Int8Array]"?x+=Pe:l==="[object Uint8Array]"?x+=Le:l==="[object Uint8ClampedArray]"?x+=Xe:l==="[object Int16Array]"?x+=Xr:l==="[object Uint16Array]"?x+=Zr:l==="[object Int32Array]"?x+=Fr:l==="[object Uint32Array]"?x+=Br:l==="[object Float32Array]"?x+=pn:l==="[object Float64Array]"?x+=kr:y(new Error("Failed to get type for BinaryArray"))),y(x+ci(S))}else if(l==="[object Blob]"){var b=new FileReader;b.onload=function(){var P=_e+c.type+"~"+ci(this.result);y(se+$e+P)},b.readAsArrayBuffer(c)}else try{y(JSON.stringify(c))}catch(P){console.error("Couldn't convert value into a JSON string: ",c),y(null,P)}}function dd(c){if(c.substring(0,ue)!==se)return JSON.parse(c);var y=c.substring(Zs),l=c.substring(ue,Zs),S;if(l===$e&&ve.test(y)){var x=y.match(ve);S=x[1],y=y.substring(x[0].length)}var b=eo(y);switch(l){case de:return b;case $e:return v([b],{type:S});case Pe:return new Int8Array(b);case Le:return new Uint8Array(b);case Xe:return new Uint8ClampedArray(b);case Xr:return new Int16Array(b);case Zr:return new Uint16Array(b);case Fr:return new Int32Array(b);case Br:return new Uint32Array(b);case pn:return new Float32Array(b);case kr:return new Float64Array(b);default:throw new Error("Unkown type: "+l)}}var li={serialize:pd,deserialize:dd,stringToBuffer:eo,bufferToString:ci};function ro(c,y,l,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+y.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],l,S)}function md(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=typeof c[S]!="string"?c[S].toString():c[S];var x=new w(function(b,P){try{l.db=openDatabase(l.name,String(l.version),l.description,l.size)}catch(j){return P(j)}l.db.transaction(function(j){ro(j,l,function(){y._dbInfo=l,b()},function(F,B){P(B)})},P)});return l.serializer=li,x}function yr(c,y,l,S,x,b){c.executeSql(l,S,x,function(P,j){j.code===j.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[y.storeName],function(F,B){B.rows.length?b(F,j):ro(F,y,function(){F.executeSql(l,S,x,b)},b)},b):b(P,j)},b)}function gd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[c],function(F,B){var z=B.rows.length?B.rows.item(0).value:null;z&&(z=P.serializer.deserialize(z)),x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function yd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName,[],function(F,B){for(var z=B.rows,Z=z.length,fe=0;fe<Z;fe++){var me=z.item(fe),ye=me.value;if(ye&&(ye=P.serializer.deserialize(ye)),ye=c(ye,me.key,fe+1),ye!==void 0){x(ye);return}}x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function to(c,y,l,S){var x=this;c=C(c);var b=new w(function(P,j){x.ready().then(function(){y===void 0&&(y=null);var F=y,B=x._dbInfo;B.serializer.serialize(y,function(z,Z){Z?j(Z):B.db.transaction(function(fe){yr(fe,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){P(F)},function(me,ye){j(ye)})},function(fe){if(fe.code===fe.QUOTA_ERR){if(S>0){P(to.apply(x,[c,F,l,S-1]));return}j(fe)}})})}).catch(j)});return O(b,l),b}function vd(c,y,l){return to.apply(this,[c,y,l,1])}function wd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[c],function(){x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function _d(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"DELETE FROM "+b.storeName,[],function(){S()},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function bd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT COUNT(key) as c FROM "+b.storeName,[],function(j,F){var B=F.rows.item(0).c;S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Sd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[c+1],function(F,B){var z=B.rows.length?B.rows.item(0).key:null;x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function xd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT key FROM "+b.storeName,[],function(j,F){for(var B=[],z=0;z<F.rows.length;z++)B.push(F.rows.item(z).key);S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Ad(c){return new w(function(y,l){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,b){for(var P=[],j=0;j<b.rows.length;j++)P.push(b.rows.item(j).name);y({db:c,storeNames:P})},function(x,b){l(b)})},function(S){l(S)})})}function Od(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;return c.name?x=new w(function(b){var P;c.name===l.name?P=S._dbInfo.db:P=openDatabase(c.name,"","",0),c.storeName?b({db:P,storeNames:[c.storeName]}):b(Ad(P))}).then(function(b){return new w(function(P,j){b.db.transaction(function(F){function B(me){return new w(function(ye,Ce){F.executeSql("DROP TABLE IF EXISTS "+me,[],function(){ye()},function(Ee,Ve){Ce(Ve)})})}for(var z=[],Z=0,fe=b.storeNames.length;Z<fe;Z++)z.push(B(b.storeNames[Z]));w.all(z).then(function(){P()}).catch(function(me){j(me)})},function(F){j(F)})})}):x=w.reject("Invalid arguments"),O(x,y),x}var Ed={_driver:"webSQLStorage",_initStorage:md,_support:oe(),iterate:yd,getItem:gd,setItem:vd,removeItem:wd,clear:_d,length:bd,key:Sd,keys:xd,dropInstance:Od};function Cd(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(c){return!1}}function no(c,y){var l=c.name+"/";return c.storeName!==y.storeName&&(l+=c.storeName+"/"),l}function Td(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch(y){return!0}}function Id(){return!Td()||localStorage.length>0}function Pd(c){var y=this,l={};if(c)for(var S in c)l[S]=c[S];return l.keyPrefix=no(c,y._defaultConfig),Id()?(y._dbInfo=l,l.serializer=li,w.resolve()):w.reject()}function qd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var b=localStorage.key(x);b.indexOf(S)===0&&localStorage.removeItem(b)}});return O(l,c),l}function Rd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo,b=localStorage.getItem(x.keyPrefix+c);return b&&(b=x.serializer.deserialize(b)),b});return O(S,y),S}function Md(c,y){var l=this,S=l.ready().then(function(){for(var x=l._dbInfo,b=x.keyPrefix,P=b.length,j=localStorage.length,F=1,B=0;B<j;B++){var z=localStorage.key(B);if(z.indexOf(b)===0){var Z=localStorage.getItem(z);if(Z&&(Z=x.serializer.deserialize(Z)),Z=c(Z,z.substring(P),F++),Z!==void 0)return Z}}});return O(S,y),S}function Ld(c,y){var l=this,S=l.ready().then(function(){var x=l._dbInfo,b;try{b=localStorage.key(c)}catch(P){b=null}return b&&(b=b.substring(x.keyPrefix.length)),b});return O(S,y),S}function Nd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo,x=localStorage.length,b=[],P=0;P<x;P++){var j=localStorage.key(P);j.indexOf(S.keyPrefix)===0&&b.push(j.substring(S.keyPrefix.length))}return b});return O(l,c),l}function jd(c){var y=this,l=y.keys().then(function(S){return S.length});return O(l,c),l}function Ud(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo;localStorage.removeItem(x.keyPrefix+c)});return O(S,y),S}function Dd(c,y,l){var S=this;c=C(c);var x=S.ready().then(function(){y===void 0&&(y=null);var b=y;return new w(function(P,j){var F=S._dbInfo;F.serializer.serialize(y,function(B,z){if(z)j(z);else try{localStorage.setItem(F.keyPrefix+c,B),P(b)}catch(Z){(Z.name==="QuotaExceededError"||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Z),j(Z)}})})});return O(x,l),x}function Fd(c,y){if(y=G.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var l=this.config();c.name=c.name||l.name,c.storeName=c.storeName||l.storeName}var S=this,x;return c.name?x=new w(function(b){c.storeName?b(no(c,S._defaultConfig)):b(c.name+"/")}).then(function(b){for(var P=localStorage.length-1;P>=0;P--){var j=localStorage.key(P);j.indexOf(b)===0&&localStorage.removeItem(j)}}):x=w.reject("Invalid arguments"),O(x,y),x}var Bd={_driver:"localStorageWrapper",_initStorage:Pd,_support:Cd(),iterate:Md,getItem:Rd,setItem:Dd,removeItem:Ud,clear:qd,length:jd,key:Ld,keys:Nd,dropInstance:Fd},kd=function(y,l){return y===l||typeof y=="number"&&typeof l=="number"&&isNaN(y)&&isNaN(l)},$d=function(y,l){for(var S=y.length,x=0;x<S;){if(kd(y[x],l))return!0;x++}return!1},io=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},At={},so={},Qr={INDEXEDDB:ae,WEBSQL:Ed,LOCALSTORAGE:Bd},zd=[Qr.INDEXEDDB._driver,Qr.WEBSQL._driver,Qr.LOCALSTORAGE._driver],dn=["dropInstance"],hi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dn),Hd={description:"",driver:zd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Wd(c,y){c[y]=function(){var l=arguments;return c.ready().then(function(){return c[y].apply(c,l)})}}function pi(){for(var c=1;c<arguments.length;c++){var y=arguments[c];if(y)for(var l in y)y.hasOwnProperty(l)&&(io(y[l])?arguments[0][l]=y[l].slice():arguments[0][l]=y[l])}return arguments[0]}var Gd=function(){function c(y){u(this,c);for(var l in Qr)if(Qr.hasOwnProperty(l)){var S=Qr[l],x=S._driver;this[l]=x,At[x]||this.defineDriver(S)}this._defaultConfig=pi({},Hd),this._config=pi({},this._defaultConfig,y),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(l){if((typeof l=="undefined"?"undefined":o(l))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in l){if(S==="storeName"&&(l[S]=l[S].replace(/\W/g,"_")),S==="version"&&typeof l[S]!="number")return new Error("Database version must be a number.");this._config[S]=l[S]}return"driver"in l&&l.driver?this.setDriver(this._config.driver):!0}else return typeof l=="string"?this._config[l]:this._config},c.prototype.defineDriver=function(l,S,x){var b=new w(function(P,j){try{var F=l._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver){j(B);return}for(var z=hi.concat("_initStorage"),Z=0,fe=z.length;Z<fe;Z++){var me=z[Z],ye=!$d(dn,me);if((ye||l[me])&&typeof l[me]!="function"){j(B);return}}var Ce=function(){for(var Ot=function(Vd){return function(){var Yd=new Error("Method "+Vd+" is not implemented by the current driver"),oo=w.reject(Yd);return O(oo,arguments[arguments.length-1]),oo}},di=0,Jd=dn.length;di<Jd;di++){var mi=dn[di];l[mi]||(l[mi]=Ot(mi))}};Ce();var Ee=function(Ot){At[F]&&console.info("Redefining LocalForage driver: "+F),At[F]=l,so[F]=Ot,P()};"_support"in l?l._support&&typeof l._support=="function"?l._support().then(Ee,j):Ee(!!l._support):Ee(!0)}catch(Ve){j(Ve)}});return p(b,S,x),b},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(l,S,x){var b=At[l]?w.resolve(At[l]):w.reject(new Error("Driver not found."));return p(b,S,x),b},c.prototype.getSerializer=function(l){var S=w.resolve(li);return p(S,l),S},c.prototype.ready=function(l){var S=this,x=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return p(x,l,l),x},c.prototype.setDriver=function(l,S,x){var b=this;io(l)||(l=[l]);var P=this._getSupportedDrivers(l);function j(){b._config.driver=b.driver()}function F(Z){return b._extend(Z),j(),b._ready=b._initStorage(b._config),b._ready}function B(Z){return function(){var fe=0;function me(){for(;fe<Z.length;){var ye=Z[fe];return fe++,b._dbInfo=null,b._ready=null,b.getDriver(ye).then(F).catch(me)}j();var Ce=new Error("No available storage method found.");return b._driverSet=w.reject(Ce),b._driverSet}return me()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=z.then(function(){var Z=P[0];return b._dbInfo=null,b._ready=null,b.getDriver(Z).then(function(fe){b._driver=fe._driver,j(),b._wrapLibraryMethodsWithReady(),b._initDriver=B(P)})}).catch(function(){j();var Z=new Error("No available storage method found.");return b._driverSet=w.reject(Z),b._driverSet}),p(this._driverSet,S,x),this._driverSet},c.prototype.supports=function(l){return!!so[l]},c.prototype._extend=function(l){pi(this,l)},c.prototype._getSupportedDrivers=function(l){for(var S=[],x=0,b=l.length;x<b;x++){var P=l[x];this.supports(P)&&S.push(P)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var l=0,S=hi.length;l<S;l++)Wd(this,hi[l])},c.prototype.createInstance=function(l){return new c(l)},c}(),Kd=new Gd;i.exports=Kd},{3:3}]},{},[4])(4)})});var Ks=_((Gs,ad)=>{"use strict";(function(r,e,t){let n;(n=t.define)&&n.amd?n([],function(){return e}):(n=t.modules)?n[r.toLowerCase()]=e:typeof Gs=="object"?ad.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,m){let g=m?m.id:h&&h.id;this.id=g||g===0?g:Ye++,this.init(h,m),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function n(h,m,g,A){return this.u!==this.g&&(this.o=this.o.concat(g),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(m,this.o),this.F&&this.F(this.o))),this}function i(h){let m=J();for(let g in h)if(h.hasOwnProperty(g)){let A=h[g];D(A)?m[g]=A.slice(0):ne(A)?m[g]=i(A):m[g]=A}return m}function s(h,m){let g=h.length,A=Q(m),T=[];for(let q=0,N=0;q<g;q++){let R=h[q];(A&&m(R)||!A&&!m[R])&&(T[N++]=R)}return T}function o(h,m,g,A,T,q,N,R,U,$){g=K(g,N?0:T,R,q,m,U,$);let X;if(R&&(R=g.page,X=g.next,g=g.result),N)m=this.where(N,null,T,g);else{for(m=g,g=this.l,T=m.length,q=Array(T),N=0;N<T;N++)q[N]=g[m[N]];m=q}return g=m,A&&(Q(A)||(Je=A.split(":"),1<Je.length?A=C:(Je=Je[0],A=p)),g.sort(A)),g=G(R,X,g),this.cache&&this.j.set(h,g),g}function u(h,m,g){Object.defineProperty(h,m,{get:g})}function a(h){return new RegExp(h,"g")}function f(h,m){for(let g=0;g<m.length;g+=2)h=h.replace(m[g],m[g+1]);return h}function d(h,m,g,A,T,q,N,R){return m[g]?m[g]:(T=T?(R-(N||R/1.5))*q+(N||R/1.5)*T:q,m[g]=T,T>=N&&(h=h[R-(T+.5>>0)],h=h[g]||(h[g]=[]),h[h.length]=A),T)}function v(h,m){if(h){let g=Object.keys(h);for(let A=0,T=g.length;A<T;A++){let q=g[A],N=h[q];if(N)for(let R=0,U=N.length;R<U;R++)if(N[R]===m){U===1?delete h[q]:N.splice(R,1);break}else ne(N[R])&&v(N[R],m)}}}function w(h){let m="",g="";var A="";for(let T=0;T<h.length;T++){let q=h[T];q!==g&&(T&&q==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((g==="a"||g==="e"||g==="i"||g==="o"||g==="u"||g==="y")&&A||g===" ")&&(m+=q)):m+=q),A=T===h.length-1?"":h[T+1],g=q}return m}function O(h,m){return h=h.length-m.length,0>h?1:h?-1:0}function p(h,m){return h=h[Je],m=m[Je],h<m?-1:h>m?1:0}function C(h,m){let g=Je.length;for(let A=0;A<g;A++)h=h[Je[A]],m=m[Je[A]];return h<m?-1:h>m?1:0}function G(h,m,g){return h?{page:h,next:m?""+m:null,result:g}:g}function K(h,m,g,A,T,q,N){let R,U=[];if(g===!0){g="0";var $=""}else $=g&&g.split(":");let X=h.length;if(1<X){let ve=J(),se=[],ue,de;var Y=0,W;let $e;var ae=!0;let Pe,Le=0,Xe,Xr,Fr,Zr;if($&&($.length===2?(Fr=$,$=!1):$=Zr=parseInt($[0],10)),N){for(ue=J();Y<X;Y++)if(T[Y]==="not")for(de=h[Y],$e=de.length,W=0;W<$e;W++)ue["@"+de[W]]=1;else Xr=Y+1;if(E(Xr))return G(g,R,U);Y=0}else Xe=te(T)&&T;let Br;for(;Y<X;Y++){let pn=Y===(Xr||X)-1;if(!Xe||!Y)if((W=Xe||T&&T[Y])&&W!=="and")if(W==="or")Br=!1;else continue;else Br=q=!0;if(de=h[Y],$e=de.length){if(ae)if(Pe){var oe=Pe.length;for(W=0;W<oe;W++){ae=Pe[W];var he="@"+ae;N&&ue[he]||(ve[he]=1,q||(U[Le++]=ae))}Pe=null,ae=!1}else{Pe=de;continue}for(he=!1,W=0;W<$e;W++){oe=de[W];var _e="@"+oe;let kr=q?ve[_e]||0:Y;if(!(!kr&&!A||N&&ue[_e]||!q&&ve[_e]))if(kr===Y){if(pn){if((!Zr||--Zr<Le)&&(U[Le++]=oe,m&&Le===m))return G(g,Le+($||0),U)}else ve[_e]=Y+1;he=!0}else A&&(_e=se[kr]||(se[kr]=[]),_e[_e.length]=oe)}if(Br&&!he&&!A)break}else if(Br&&!A)return G(g,R,de)}if(Pe)if(Y=Pe.length,N)for(W=$?parseInt($,10):0;W<Y;W++)h=Pe[W],ue["@"+h]||(U[Le++]=h);else U=Pe;if(A){for(Le=U.length,Fr?(Y=parseInt(Fr[0],10)+1,W=parseInt(Fr[1],10)+1):(Y=se.length,W=0);Y--;)if(oe=se[Y]){for($e=oe.length;W<$e;W++)if(A=oe[W],(!N||!ue["@"+A])&&(U[Le++]=A,m&&Le===m))return G(g,Y+":"+W,U);W=0}}}else!X||T&&T[0]==="not"||(U=h[0],$&&($=parseInt($[0],10)));return m&&(N=U.length,$&&$>N&&($=0),$=$||0,R=$+m,R<N?U=U.slice($,R):(R=0,$&&(U=U.slice($)))),G(g,R,U)}function te(h){return typeof h=="string"}function D(h){return h.constructor===Array}function Q(h){return typeof h=="function"}function ne(h){return typeof h=="object"}function E(h){return typeof h=="undefined"}function ee(h){let m=Array(h);for(let g=0;g<h;g++)m[g]=J();return m}function J(){return Object.create(null)}function ge(){let h,m;self.onmessage=function(g){if(g=g.data)if(g.search){let A=m.search(g.content,g.threshold?{limit:g.limit,threshold:g.threshold,where:g.where}:g.limit);self.postMessage({id:h,content:g.content,limit:g.limit,result:A})}else g.add?m.add(g.id,g.content):g.update?m.update(g.id,g.content):g.remove?m.remove(g.id):g.clear?m.clear():g.info?(g=m.info(),g.worker=h,console.log(g)):g.register&&(h=g.id,g.options.cache=!1,g.options.async=!1,g.options.worker=!1,m=new Function(g.register.substring(g.register.indexOf("{")+1,g.register.lastIndexOf("}")))(),m=new m(g.options))}}function Te(h,m,g,A){h=e("flexsearch","id"+h,ge,function(q){(q=q.data)&&q.result&&A(q.id,q.content,q.result,q.limit,q.where,q.cursor,q.suggest)},m);let T=r.toString();return g.id=m,h.postMessage({register:T,options:g,id:m}),h}let we={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ke={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Me=[],Ye=0,mr={},Dr={};t.create=function(h,m){return new t(h,m)},t.registerMatcher=function(h){for(let m in h)h.hasOwnProperty(m)&&Me.push(a(m),h[m]);return this},t.registerEncoder=function(h,m){return ar[h]=m.bind(ar),this},t.registerLanguage=function(h,m){return mr[h]=m.filter,Dr[h]=m.stemmer,this},t.encode=function(h,m){return ar[h](m)},t.prototype.init=function(h,m){if(this.v=[],m){var g=m.preset;h=m}else h||(h=we),g=h.preset;if(m={},te(h)?(m=ke[h],h={}):g&&(m=ke[g]),g=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(g,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var T=0;T<A;T++)this.m[T]=Te(this.id,T,h,n.bind(this))}if(this.f=h.tokenize||m.f||this.f||we.f,this.split=E(g=h.split)?this.split||we.split:te(g)?a(g):g,this.D=h.rtl||this.D||we.D,this.async=typeof Promise=="undefined"||E(g=h.async)?this.async||we.async:g,this.g=E(g=h.worker)?this.g||we.g:g,this.threshold=E(g=h.threshold)?m.threshold||this.threshold||we.threshold:g,this.b=E(g=h.resolution)?g=m.b||this.b||we.b:g,g<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||E(g=h.depth)?m.depth||this.depth||we.depth:g,this.w=(g=E(g=h.encode)?m.encode||we.encode:g)&&ar[g]&&ar[g].bind(ar)||(Q(g)?g:this.w||!1),(g=h.matcher)&&this.addMatcher(g),g=(m=h.lang)||h.filter){if(te(g)&&(g=mr[g]),D(g)){A=this.w,T=J();for(var q=0;q<g.length;q++){var N=A?A(g[q]):g[q];T[N]=1}g=T}this.filter=g}if(g=m||h.stemmer){var R;m=te(g)?Dr[g]:g,A=this.w,T=[];for(R in m)m.hasOwnProperty(R)&&(q=A?A(R):R,T.push(a(q+"($|\\W)"),A?A(m[R]):m[R]));this.stemmer=R=T}if(this.a=T=(g=h.doc)?i(g):this.a||we.a,this.i=ee(this.b-(this.threshold||0)),this.h=J(),this.c=J(),T){if(this.l=J(),h.doc=null,R=T.index={},m=T.keys=[],A=T.field,q=T.tag,N=T.store,D(T.id)||(T.id=T.id.split(":")),N){var U=J();if(te(N))U[N]=1;else if(D(N))for(let $=0;$<N.length;$++)U[N[$]]=1;else ne(N)&&(U=N);T.store=U}if(q){if(this.G=J(),N=J(),A)if(te(A))N[A]=h;else if(D(A))for(U=0;U<A.length;U++)N[A[U]]=h;else ne(A)&&(N=A);for(D(q)||(T.tag=q=[q]),A=0;A<q.length;A++)this.G[q[A]]=J();this.I=q,A=N}if(A){let $;for(D(A)||(ne(A)?($=A,T.field=A=Object.keys(A)):T.field=A=[A]),T=0;T<A.length;T++)q=A[T],D(q)||($&&(h=$[q]),m[T]=q,A[T]=q.split(":")),R[q]=new t(h)}h.doc=g}return this.B=!0,this.j=(this.cache=g=E(g=h.cache)?this.cache||we.cache:g)?new fi(g):!1,this},t.prototype.encode=function(h){return h&&(Me.length&&(h=f(h,Me)),this.v.length&&(h=f(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=f(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let m=this.v;for(let g in h)h.hasOwnProperty(g)&&m.push(a(g),h[g]);return this},t.prototype.add=function(h,m,g,A,T){if(this.a&&ne(h))return this.A("add",h,m);if(m&&te(m)&&(h||h===0)){var q="@"+h;if(this.c[q]&&!A)return this.update(h,m);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:m}),this.c[q]=""+this.C,g&&g(),this;if(!T){if(this.async&&typeof importScripts!="function"){let se=this;if(q=new Promise(function(ue){setTimeout(function(){se.add(h,m,null,A,!0),se=null,ue()})}),g)q.then(g);else return q;return this}if(g)return this.add(h,m,null,A,!0),g(),this}if(m=this.encode(m),!m.length)return this;g=this.f,T=Q(g)?g(m):m.split(this.split),this.filter&&(T=s(T,this.filter));let Y=J();Y._ctx=J();let W=T.length,ae=this.threshold,oe=this.depth,he=this.b,_e=this.i,ve=this.D;for(let se=0;se<W;se++){var N=T[se];if(N){var R=N.length,U=(ve?se+1:W-se)/W,$="";switch(g){case"reverse":case"both":for(var X=R;--X;)$=N[X]+$,d(_e,Y,$,h,ve?1:(R-X)/R,U,ae,he-1);$="";case"forward":for(X=0;X<R;X++)$+=N[X],d(_e,Y,$,h,ve?(X+1)/R:1,U,ae,he-1);break;case"full":for(X=0;X<R;X++){let ue=(ve?X+1:R-X)/R;for(let de=R;de>X;de--)$=N.substring(X,de),d(_e,Y,$,h,ue,U,ae,he-1)}break;default:if(R=d(_e,Y,N,h,1,U,ae,he-1),oe&&1<W&&R>=ae)for(R=Y._ctx[N]||(Y._ctx[N]=J()),N=this.h[N]||(this.h[N]=ee(he-(ae||0))),U=se-oe,$=se+oe+1,0>U&&(U=0),$>W&&($=W);U<$;U++)U!==se&&d(N,R,T[U],h,0,he-(U<se?se-U:U-se),ae,he-1)}}}this.c[q]=1,this.B=!1}return this},t.prototype.A=function(h,m,g){if(D(m)){var A=m.length;if(A--){for(var T=0;T<A;T++)this.A(h,m[T]);return this.A(h,m[A],g)}}else{var q=this.a.index,N=this.a.keys,R=this.a.tag;T=this.a.store;var U,$=this.a.id;A=m;for(var X=0;X<$.length;X++)A=A[$[X]];if(h==="remove"&&(delete this.l[A],$=N.length,$--)){for(m=0;m<$;m++)q[N[m]].remove(A);return q[N[$]].remove(A,g)}if(R){for(U=0;U<R.length;U++){var Y=R[U],W=m;for($=Y.split(":"),X=0;X<$.length;X++)W=W[$[X]];W="@"+W}U=this.G[Y],U=U[W]||(U[W]=[])}$=this.a.field;for(let ae=0,oe=$.length;ae<oe;ae++){for(Y=$[ae],R=m,W=0;W<Y.length;W++)R=R[Y[W]];Y=q[N[ae]],W=h==="add"?Y.add:Y.update,ae===oe-1?W.call(Y,A,R,g):W.call(Y,A,R)}if(T){for(g=Object.keys(T),h=J(),q=0;q<g.length;q++)if(N=g[q],T[N]){N=N.split(":");let ae,oe;for($=0;$<N.length;$++)R=N[$],ae=(ae||m)[R],oe=(oe||h)[R]=ae}m=h}U&&(U[U.length]=m),this.l[A]=m}return this},t.prototype.update=function(h,m,g){return this.a&&ne(h)?this.A("update",h,m):(this.c["@"+h]&&te(m)&&(this.remove(h),this.add(h,m,g,!0)),this)},t.prototype.remove=function(h,m,g){if(this.a&&ne(h))return this.A("remove",h,m);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],m&&m(),this;if(!g){if(this.async&&typeof importScripts!="function"){let T=this;if(A=new Promise(function(q){setTimeout(function(){T.remove(h,null,!0),T=null,q()})}),m)A.then(m);else return A;return this}if(m)return this.remove(h,null,!0),m(),this}for(m=0;m<this.b-(this.threshold||0);m++)v(this.i[m],h);this.depth&&v(this.h,h),delete this.c[A],this.B=!1}return this};let Je;t.prototype.search=function(h,m,g,A){if(ne(m)){if(D(m))for(var T=0;T<m.length;T++)m[T].query=h;else m.query=h;h=m,m=1e3}else m&&Q(m)?(g=m,m=1e3):m||m===0||(m=1e3);if(this.g){this.F=g,this.u=0,this.o=[];for(var q=0;q<this.g;q++)this.m[q].postMessage({search:!0,limit:m,content:h})}else{var N=[],R=h;if(ne(h)&&!D(h)){g||(g=h.callback)&&(R.callback=null);var U=h.sort,$=h.page;m=h.limit,q=h.threshold;var X=h.suggest;h=h.query}if(this.a){q=this.a.index;let ve=R.where;var Y=R.bool||"or",W=R.field;let se=Y,ue,de;if(W)D(W)||(W=[W]);else if(D(R)){var ae=R;W=[],se=[];for(var oe=0;oe<R.length;oe++)A=R[oe],T=A.bool||Y,W[oe]=A.field,se[oe]=T,T==="not"?ue=!0:T==="and"&&(de=!0)}else W=this.a.keys;for(Y=W.length,oe=0;oe<Y;oe++)ae&&(R=ae[oe]),$&&!te(R)&&(R.page=null,R.limit=0),N[oe]=q[W[oe]].search(R,0);if(g)return g(o.call(this,h,se,N,U,m,X,ve,$,de,ue));if(this.async){let $e=this;return new Promise(function(Pe){Promise.all(N).then(function(Le){Pe(o.call($e,h,se,Le,U,m,X,ve,$,de,ue))})})}return o.call(this,h,se,N,U,m,X,ve,$,de,ue)}if(q||(q=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ve=this;if(q=new Promise(function(se){setTimeout(function(){se(ve.search(R,m,null,!0)),ve=null})}),g)q.then(g);else return q;return this}if(g)return g(this.search(R,m,null,!0)),this}if(!h||!te(h))return N;if(R=h,this.cache)if(this.B){if(g=this.j.get(h))return g}else this.j.clear(),this.B=!0;if(R=this.encode(R),!R.length)return N;g=this.f,g=Q(g)?g(R):R.split(this.split),this.filter&&(g=s(g,this.filter)),ae=g.length,A=!0,T=[];var he=J(),_e=0;if(1<ae&&(this.depth&&this.f==="strict"?Y=!0:g.sort(O)),!Y||(oe=this.h)){let ve=this.b;for(;_e<ae;_e++){let se=g[_e];if(se){if(Y){if(!W){if(oe[se])W=se,he[se]=1;else if(!X)return N}if(X&&_e===ae-1&&!T.length)Y=!1,se=W||se,he[se]=0;else if(!W)continue}if(!he[se]){let ue=[],de=!1,$e=0,Pe=Y?oe[W]:this.i;if(Pe){let Le;for(let Xe=0;Xe<ve-q;Xe++)(Le=Pe[Xe]&&Pe[Xe][se])&&(ue[$e++]=Le,de=!0)}if(de)W=se,T[T.length]=1<$e?ue.concat.apply([],ue):ue[0];else if(!X){A=!1;break}he[se]=1}}}}else A=!1;return A&&(N=K(T,m,$,X)),this.cache&&this.j.set(h,N),N}},t.prototype.find=function(h,m){return this.where(h,m,1)[0]||null},t.prototype.where=function(h,m,g,A){let T=this.l,q=[],N=0,R;var U;let $;if(ne(h)){g||(g=m);var X=Object.keys(h),Y=X.length;if(R=!1,Y===1&&X[0]==="id")return[T[h.id]];if((U=this.I)&&!A)for(var W=0;W<U.length;W++){var ae=U[W],oe=h[ae];if(!E(oe)){if($=this.G[ae]["@"+oe],--Y===0)return $;X.splice(X.indexOf(ae),1),delete h[ae];break}}for(U=Array(Y),W=0;W<Y;W++)U[W]=X[W].split(":")}else{if(Q(h)){for(m=A||Object.keys(T),g=m.length,X=0;X<g;X++)Y=T[m[X]],h(Y)&&(q[N++]=Y);return q}if(E(m))return[T[h]];if(h==="id")return[T[m]];X=[h],Y=1,U=[h.split(":")],R=!0}for(A=$||A||Object.keys(T),W=A.length,ae=0;ae<W;ae++){oe=$?A[ae]:T[A[ae]];let he=!0;for(let _e=0;_e<Y;_e++){R||(m=h[X[_e]]);let ve=U[_e],se=ve.length,ue=oe;if(1<se)for(let de=0;de<se;de++)ue=ue[ve[de]];else ue=ue[ve[0]];if(ue!==m){he=!1;break}}if(he&&(q[N++]=oe,g&&N===g))break}return q},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Me.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let m=0;m<h.length;m++)this.a.index[h[m]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let m=!h||E(h.serialize)||h.serialize;if(this.a){let A=!h||E(h.doc)||h.doc;var g=!h||E(h.index)||h.index;h=[];let T=0;if(g)for(g=this.a.keys;T<g.length;T++){let q=this.a.index[g[T]];h[T]=[q.i,q.h,Object.keys(q.c)]}A&&(h[T]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return m&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,m){(!m||E(m.serialize)||m.serialize)&&(h=JSON.parse(h));let g=J();if(this.a){var A=!m||E(m.doc)||m.doc,T=0;if(!m||E(m.index)||m.index){m=this.a.keys;let N=m.length;for(var q=h[0][2];T<q.length;T++)g[q[T]]=1;for(T=0;T<N;T++){q=this.a.index[m[T]];let R=h[T];R&&(q.i=R[0],q.h=R[1],q.c=g)}}A&&(this.l=ne(A)?A:h[T])}else{for(A=h[2],T=0;T<A.length;T++)g[A[T]]=1;this.i=h[0],this.h=h[1],this.c=g}};let gr=function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=[a("[-/]")," ",m,"",h," "];return function(A){return w(f(A.toLowerCase(),g))}}(),ar={icase:function(h){return h.toLowerCase()},simple:function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=a("[-/]"),A=a("[\xE0\xE1\xE2\xE3\xE4\xE5]"),T=a("[\xE8\xE9\xEA\xEB]"),q=a("[\xEC\xED\xEE\xEF]"),N=a("[\xF2\xF3\xF4\xF5\xF6\u0151]"),R=a("[\xF9\xFA\xFB\xFC\u0171]"),U=a("[\xFD\u0177\xFF]"),$=a("\xF1"),X=a("[\xE7c]"),Y=a("\xDF"),W=a(" & "),ae=[A,"a",T,"e",q,"i",N,"o",R,"u",U,"y",$,"n",X,"k",Y,"s",W," and ",g," ",m,"",h," "];return function(oe){return oe=f(oe.toLowerCase(),ae),oe===" "?"":oe}}(),advanced:function(){let h=a("ae"),m=a("ai"),g=a("ay"),A=a("ey"),T=a("oe"),q=a("ue"),N=a("ie"),R=a("sz"),U=a("zs"),$=a("ck"),X=a("cc"),Y=a("sh"),W=a("th"),ae=a("dt"),oe=a("ph"),he=a("pf"),_e=a("ou"),ve=a("uo"),se=[h,"a",m,"ei",g,"ei",A,"ei",T,"o",q,"u",N,"i",R,"s",U,"s",Y,"s",$,"k",X,"k",W,"t",ae,"t",oe,"f",he,"f",_e,"o",ve,"u"];return function(ue,de){return ue&&(ue=this.simple(ue),2<ue.length&&(ue=f(ue,se)),de||1<ue.length&&(ue=w(ue)),ue)}}(),extra:function(){let h=a("p"),m=a("z"),g=a("[cgq]"),A=a("n"),T=a("d"),q=a("[vw]"),N=a("[aeiouy]"),R=[h,"b",m,"s",g,"k",A,"m",T,"t",q,"f",N,""];return function(U){if(!U)return U;if(U=this.advanced(U,!0),1<U.length){U=U.split(" ");for(let $=0;$<U.length;$++){let X=U[$];1<X.length&&(U[$]=X[0]+f(X.substring(1),R))}U=U.join(" "),U=w(U)}return U}}(),balance:gr},fi=function(){function h(m){this.clear(),this.H=m!==!0&&m}return h.prototype.clear=function(){this.cache=J(),this.count=J(),this.index=J(),this.s=[]},h.prototype.set=function(m,g){if(this.H&&E(this.cache[m])){let A=this.s.length;if(A===this.H){A--;let T=this.s[A];delete this.cache[T],delete this.count[T],delete this.index[T]}this.index[m]=A,this.s[A]=m,this.count[m]=-1,this.cache[m]=g,this.get(m)}else this.cache[m]=g},h.prototype.get=function(m){let g=this.cache[m];if(this.H&&g){var A=++this.count[m];let q=this.index,N=q[m];if(0<N){let R=this.s;for(var T=N;this.count[R[--N]]<=A&&N!==-1;);if(N++,N!==T){for(A=T;A>N;A--)T=R[A-1],R[A]=T,q[T]=A;R[N]=m,q[m]=N}}}return g},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+n,r[t]||(r[t]=[]),r[t][o]=new Worker(i),r[t][o].onmessage=s,r[t][o]}}()),Gs)});var bT={};gn(bT,{BaseProvider:()=>le,CocodaSDK:()=>Ur,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr,addAllProviders:()=>_T,cdk:()=>hd,errors:()=>Ue,utils:()=>Er});var Ue={};gn(Ue,{BackendError:()=>It,BackendUnavailableError:()=>Pt,CDKError:()=>qe,InvalidOrMissingParameterError:()=>H,InvalidProviderError:()=>et,InvalidRequestError:()=>tr,MethodNotImplementedError:()=>Tt,MissingApiUrlError:()=>ze,NetworkError:()=>qt});var qe=class extends Error{constructor({message:e="",relatedError:t=null,code:n=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=n}},Tt=class extends qe{constructor(i){var s=i,{method:e,message:t=""}=s,n=V(s,["method","message"]);n.message=`Method not implemented: ${e} (${t})`,super(n)}},H=class extends qe{constructor(i){var s=i,{parameter:e,message:t=""}=s,n=V(s,["parameter","message"]);n.message=`Invalid or missing parameter: ${e} (${t})`,super(n)}},tr=class extends qe{},It=class extends qe{},Pt=class extends qe{},qt=class extends qe{},ze=class extends qe{},et=class extends qe{};function Rt(r,e){return function(){return r.apply(e,arguments)}}var{toString:ho}=Object.prototype,{getPrototypeOf:wi}=Object,_i=(r=>e=>{let t=ho.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ur=r=>(r=r.toLowerCase(),e=>_i(e)===r),vn=r=>e=>typeof e===r,{isArray:rt}=Array,Mt=vn("undefined");function im(r){return r!==null&&!Mt(r)&&r.constructor!==null&&!Mt(r.constructor)&&vr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var po=ur("ArrayBuffer");function sm(r){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&po(r.buffer),e}var om=vn("string"),vr=vn("function"),mo=vn("number"),bi=r=>r!==null&&typeof r=="object",am=r=>r===!0||r===!1,yn=r=>{if(_i(r)!=="object")return!1;let e=wi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},um=ur("Date"),fm=ur("File"),cm=ur("Blob"),lm=ur("FileList"),hm=r=>bi(r)&&vr(r.pipe),pm=r=>{let e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||ho.call(r)===e||vr(r.toString)&&r.toString()===e)},dm=ur("URLSearchParams"),mm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r=="undefined")return;let n,i;if(typeof r!="object"&&(r=[r]),rt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{let s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length,u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function go(r,e){e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}var yo=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),vo=r=>!Mt(r)&&r!==yo;function vi(){let{caseless:r}=vo(this)&&this||{},e={},t=(n,i)=>{let s=r&&go(e,i)||i;yn(e[s])&&yn(n)?e[s]=vi(e[s],n):yn(n)?e[s]=vi({},n):rt(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Lt(arguments[n],t);return e}var gm=(r,e,t,{allOwnKeys:n}={})=>(Lt(e,(i,s)=>{t&&vr(i)?r[s]=Rt(i,t):r[s]=i},{allOwnKeys:n}),r),ym=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),vm=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},wm=(r,e,t,n)=>{let i,s,o,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&wi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},_m=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},bm=r=>{if(!r)return null;if(rt(r))return r;let e=r.length;if(!mo(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Sm=(r=>e=>r&&e instanceof r)(typeof Uint8Array!="undefined"&&wi(Uint8Array)),xm=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},Am=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Om=ur("HTMLFormElement"),Em=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),co=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Cm=ur("RegExp"),wo=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Lt(t,(i,s)=>{e(i,s,r)!==!1&&(n[s]=i)}),Object.defineProperties(r,n)},Tm=r=>{wo(r,(e,t)=>{if(vr(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(vr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Im=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return rt(r)?n(r):n(String(r).split(e)),t},Pm=()=>{},qm=(r,e)=>(r=+r,Number.isFinite(r)?r:e),yi="abcdefghijklmnopqrstuvwxyz",lo="0123456789",_o={DIGIT:lo,ALPHA:yi,ALPHA_DIGIT:yi+yi.toUpperCase()+lo},Rm=(r=16,e=_o.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function Mm(r){return!!(r&&vr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var Lm=r=>{let e=new Array(10),t=(n,i)=>{if(bi(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=rt(n)?[]:{};return Lt(n,(o,u)=>{let a=t(o,i+1);!Mt(a)&&(s[u]=a)}),e[i]=void 0,s}}return n};return t(r,0)},I={isArray:rt,isArrayBuffer:po,isBuffer:im,isFormData:pm,isArrayBufferView:sm,isString:om,isNumber:mo,isBoolean:am,isObject:bi,isPlainObject:yn,isUndefined:Mt,isDate:um,isFile:fm,isBlob:cm,isRegExp:Cm,isFunction:vr,isStream:hm,isURLSearchParams:dm,isTypedArray:Sm,isFileList:lm,forEach:Lt,merge:vi,extend:gm,trim:mm,stripBOM:ym,inherits:vm,toFlatObject:wm,kindOf:_i,kindOfTest:ur,endsWith:_m,toArray:bm,forEachEntry:xm,matchAll:Am,isHTMLForm:Om,hasOwnProperty:co,hasOwnProp:co,reduceDescriptors:wo,freezeMethods:Tm,toObjectSet:Im,toCamelCase:Em,noop:Pm,toFiniteNumber:qm,findKey:go,global:yo,isContextDefined:vo,ALPHABET:_o,generateString:Rm,isSpecCompliantForm:Mm,toJSONObject:Lm};function tt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}I.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var bo=tt.prototype,So={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{So[r]={value:r}});Object.defineProperties(tt,So);Object.defineProperty(bo,"isAxiosError",{value:!0});tt.from=(r,e,t,n,i,s)=>{let o=Object.create(bo);return I.toFlatObject(r,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),tt.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var ce=tt;var wn=null;function Si(r){return I.isPlainObject(r)||I.isArray(r)}function Ao(r){return I.endsWith(r,"[]")?r.slice(0,-2):r}function xo(r,e,t){return r?r.concat(e).map(function(i,s){return i=Ao(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function Nm(r){return I.isArray(r)&&!r.some(Si)}var jm=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Um(r,e,t){if(!I.isObject(r))throw new TypeError("target must be an object");e=e||new(wn||FormData),t=I.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,G){return!I.isUndefined(G[C])});let n=t.metaTokens,i=t.visitor||d,s=t.dots,o=t.indexes,a=(t.Blob||typeof Blob!="undefined"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!a&&I.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,C,G){let K=p;if(p&&!G&&typeof p=="object"){if(I.endsWith(C,"{}"))C=n?C:C.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&Nm(p)||(I.isFileList(p)||I.endsWith(C,"[]"))&&(K=I.toArray(p)))return C=Ao(C),K.forEach(function(D,Q){!(I.isUndefined(D)||D===null)&&e.append(o===!0?xo([C],Q,s):o===null?C:C+"[]",f(D))}),!1}return Si(p)?!0:(e.append(xo(G,C,s),f(p)),!1)}let v=[],w=Object.assign(jm,{defaultVisitor:d,convertValue:f,isVisitable:Si});function O(p,C){if(!I.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(p),I.forEach(p,function(K,te){(!(I.isUndefined(K)||K===null)&&i.call(e,K,I.isString(te)?te.trim():te,C,w))===!0&&O(K,C?C.concat(te):[te])}),v.pop()}}if(!I.isObject(r))throw new TypeError("data must be an object");return O(r),e}var wr=Um;function Oo(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eo(r,e){this._pairs=[],r&&wr(r,this,e)}var Co=Eo.prototype;Co.append=function(e,t){this._pairs.push([e,t])};Co.toString=function(e){let t=e?function(n){return e.call(this,n,Oo)}:Oo;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var _n=Eo;function Dm(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(r,e,t){if(!e)return r;let n=t&&t.encode||Dm,i=t&&t.serialize,s;if(i?s=i(e,t):s=I.isURLSearchParams(e)?e.toString():new _n(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var xi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(n){n!==null&&e(n)})}},Ai=xi;var bn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var To=typeof URLSearchParams!="undefined"?URLSearchParams:_n;var Io=typeof FormData!="undefined"?FormData:null;var Fm=(()=>{let r;return typeof navigator!="undefined"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Bm=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:To,FormData:Io,Blob},isStandardBrowserEnv:Fm,isStandardBrowserWebWorkerEnv:Bm,protocols:["http","https","file","blob","url","data"]};function Oi(r,e){return wr(r,new De.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return De.isNode&&I.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function km(r){return I.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function $m(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function zm(r){function e(t,n,i,s){let o=t[s++],u=Number.isFinite(+o),a=s>=t.length;return o=!o&&I.isArray(i)?i.length:o,a?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&I.isArray(i[o])&&(i[o]=$m(i[o])),!u)}if(I.isFormData(r)&&I.isFunction(r.entries)){let t={};return I.forEachEntry(r,(n,i)=>{e(km(n),i,t,0)}),t}return null}var Sn=zm;var Hm={"Content-Type":void 0};function Wm(r,e,t){if(I.isString(r))try{return(e||JSON.parse)(r),I.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var xn={transitional:bn,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=I.isObject(e);if(s&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i&&i?JSON.stringify(Sn(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oi(e,this.formSerializer).toString();if((u=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return wr(u?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Wm(e)):e}],transformResponse:[function(e){let t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&I.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?ce.from(u,ce.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){xn.headers[e]={}});I.forEach(["post","put","patch"],function(e){xn.headers[e]=I.merge(Hm)});var nt=xn;var Gm=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Po=r=>{let e={},t,n,i;return r&&r.split(`
12
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&Gm[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var qo=Symbol("internals");function jt(r){return r&&String(r).trim().toLowerCase()}function An(r){return r===!1||r==null?r:I.isArray(r)?r.map(An):String(r)}function Km(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function Jm(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function Ei(r,e,t,n,i){if(I.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function Vm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ym(r,e){let t=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var it=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,a,f){let d=jt(a);if(!d)throw new Error("header name must be a non-empty string");let v=I.findKey(i,d);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||a]=An(u))}let o=(u,a)=>I.forEach(u,(f,d)=>s(f,d,a));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!Jm(e)?o(Po(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=jt(e),e){let n=I.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return Km(i);if(I.isFunction(t))return t.call(this,i,n);if(I.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e),e){let n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ei(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=jt(o),o){let u=I.findKey(n,o);u&&(!t||Ei(n,n[u],u,t))&&(delete n[u],i=!0)}}return I.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||Ei(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return I.forEach(this,(i,s)=>{let o=I.findKey(n,s);if(o){t[o]=An(i),delete t[s];return}let u=e?Vm(s):String(s).trim();u!==s&&delete t[s],t[u]=An(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&I.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
13
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[qo]=this[qo]={accessors:{}}).accessors,i=this.prototype;function s(o){let u=jt(o);n[u]||(Ym(i,o),n[u]=!0)}return I.isArray(e)?e.forEach(s):s(e),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(it.prototype);I.freezeMethods(it);var He=it;function Ut(r,e){let t=this||nt,n=e||t,i=He.from(n.headers),s=n.data;return I.forEach(r,function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Dt(r){return!!(r&&r.__CANCEL__)}function Ro(r,e,t){ce.call(this,r==null?"canceled":r,ce.ERR_CANCELED,e,t),this.name="CanceledError"}I.inherits(Ro,ce,{__CANCEL__:!0});var _r=Ro;function Ci(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new ce("Request failed with status code "+t.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Mo=De.isStandardBrowserEnv?function(){return{write:function(t,n,i,s,o,u){let a=[];a.push(t+"="+encodeURIComponent(n)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(s)&&a.push("path="+s),I.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ti(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ii(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function Ft(r,e){return r&&!Ti(e)?Ii(r,e):e}var Lo=De.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let u=I.isString(o)?i(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Pi(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Xm(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),d=n[s];o||(o=f),t[i]=a,n[i]=f;let v=s,w=0;for(;v!==i;)w+=t[v++],v=v%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),f-o<e)return;let O=d&&f-d;return O?Math.round(w*1e3/O):void 0}}var No=Xm;function jo(r,e){let t=0,n=No(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,u=s-t,a=n(u),f=s<=o;t=s;let d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:a||void 0,estimated:a&&o&&f?(o-s)/a:void 0,event:i};d[e?"download":"upload"]=!0,r(d)}}var Zm=typeof XMLHttpRequest!="undefined",Uo=Zm&&function(r){return new Promise(function(t,n){let i=r.data,s=He.from(r.headers).normalize(),o=r.responseType,u;function a(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}I.isFormData(i)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(r.auth){let O=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+p))}let d=Ft(r.baseURL,r.url);f.open(r.method.toUpperCase(),Nt(d,r.params,r.paramsSerializer),!0),f.timeout=r.timeout;function v(){if(!f)return;let O=He.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:r,request:f};Ci(function(K){t(K),a()},function(K){n(K),a()},C),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new ce("Request aborted",ce.ECONNABORTED,r,f)),f=null)},f.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,r,f)),f=null},f.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",C=r.transitional||bn;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new ce(p,C.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,r,f)),f=null},De.isStandardBrowserEnv){let O=(r.withCredentials||Lo(d))&&r.xsrfCookieName&&Mo.read(r.xsrfCookieName);O&&s.set(r.xsrfHeaderName,O)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&I.forEach(s.toJSON(),function(p,C){f.setRequestHeader(C,p)}),I.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&f.addEventListener("progress",jo(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jo(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=O=>{f&&(n(!O||O.type?new _r(null,r,f):O),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let w=Pi(d);if(w&&De.protocols.indexOf(w)===-1){n(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,r));return}f.send(i||null)})};var On={http:wn,xhr:Uo};I.forEach(On,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Do={getAdapter:r=>{r=I.isArray(r)?r:[r];let{length:e}=r,t,n;for(let i=0;i<e&&(t=r[i],!(n=I.isString(t)?On[t.toLowerCase()]:t));i++);if(!n)throw n===!1?new ce(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(On,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:On};function qi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new _r(null,r)}function En(r){return qi(r),r.headers=He.from(r.headers),r.data=Ut.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Do.getAdapter(r.adapter||nt.adapter)(r).then(function(n){return qi(r),n.data=Ut.call(r,r.transformResponse,n),n.headers=He.from(n.headers),n},function(n){return Dt(n)||(qi(r),n&&n.response&&(n.response.data=Ut.call(r,r.transformResponse,n.response),n.response.headers=He.from(n.response.headers))),Promise.reject(n)})}var Fo=r=>r instanceof He?r.toJSON():r;function fr(r,e){e=e||{};let t={};function n(f,d,v){return I.isPlainObject(f)&&I.isPlainObject(d)?I.merge.call({caseless:v},f,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(f,d,v){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f,v)}else return n(f,d,v)}function s(f,d){if(!I.isUndefined(d))return n(void 0,d)}function o(f,d){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,v){if(v in e)return n(f,d);if(v in r)return n(void 0,f)}let a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d)=>i(Fo(f),Fo(d),!0)};return I.forEach(Object.keys(r).concat(Object.keys(e)),function(d){let v=a[d]||i,w=v(r[d],e[d],d);I.isUndefined(w)&&v!==u||(t[d]=w)}),t}var Cn="1.3.3";var Ri={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Ri[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var Bo={};Ri.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new ce(i(o," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!Bo[o]&&(Bo[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function Qm(r,e,t){if(typeof r!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let u=r[s],a=u===void 0||o(u,s,r);if(a!==!0)throw new ce("option "+s+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}var Tn={assertOptions:Qm,validators:Ri};var br=Tn.validators,st=class{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=fr(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Tn.assertOptions(n,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),i!==void 0&&Tn.assertOptions(i,{encode:br.function,serialize:br.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=s&&I.merge(s.common,s[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=He.concat(o,s);let u=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});let f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let d,v=0,w;if(!a){let p=[En.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),w=p.length,d=Promise.resolve(t);v<w;)d=d.then(p[v++],p[v++]);return d}w=u.length;let O=t;for(v=0;v<w;){let p=u[v++],C=u[v++];try{O=p(O)}catch(G){C.call(this,G);break}}try{d=En.call(this,O)}catch(p){return Promise.reject(p)}for(v=0,w=f.length;v<w;)d=d.then(f[v++],f[v++]);return d}getUri(e){e=fr(this.defaults,e);let t=Ft(e.baseURL,e.url);return Nt(t,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,n){return this.request(fr(n||{},{method:e,url:t,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,u){return this.request(fr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});var Bt=st;var kt=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new _r(s,o,u),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt(function(i){e=i}),cancel:e}}},ko=kt;function Mi(r){return function(t){return r.apply(null,t)}}function Li(r){return I.isObject(r)&&r.isAxiosError===!0}var Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([r,e])=>{Ni[e]=r});var $o=Ni;function zo(r){let e=new Bt(r),t=Rt(Bt.prototype.request,e);return I.extend(t,Bt.prototype,e,{allOwnKeys:!0}),I.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return zo(fr(r,i))},t}var Ie=zo(nt);Ie.Axios=Bt;Ie.CanceledError=_r;Ie.CancelToken=ko;Ie.isCancel=Dt;Ie.VERSION=Cn;Ie.toFormData=wr;Ie.AxiosError=ce;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=Mi;Ie.isAxiosError=Li;Ie.mergeConfig=fr;Ie.AxiosHeaders=He;Ie.formToJSON=r=>Sn(I.isHTMLForm(r)?new FormData(r):r);Ie.HttpStatusCode=$o;Ie.default=Ie;var Fe=Ie;var{Axios:XI,AxiosError:ZI,CanceledError:QI,isCancel:eP,CancelToken:rP,VERSION:tP,all:nP,Cancel:iP,isAxiosError:sP,spread:oP,toFormData:aP,AxiosHeaders:uP,HttpStatusCode:fP,formToJSON:cP,mergeConfig:lP}=Fe;var re=pe(Iu(),1),Ae=pe(Fu(),1),Ar=pe(lf(),1),on=pe(jf(),1),Ss=pe(Yf(),1),xs=pe(Oc(),1),Re=pe(We(),1),an=pe(er(),1),xe=pe(Cc(),1),As=pe($c(),1),nr=pe(Ll(),1),xC=pe(_h(),1),Os=pe(ws(),1),cr=pe(xp(),1),Es=pe(Op(),1);var jr=pe(Ge(),1);var hn={};gn(hn,{BaseProvider:()=>le,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr});var bt=pe(Ge(),1);var Er={};gn(Er,{concatUrl:()=>lr,listOfCapabilities:()=>Oe,requestMethods:()=>Fs,withCustomProps:()=>Gr});var Fs=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function lr(...r){let[e,...t]=r;for(let n of t)e.endsWith("/")||(e+="/"),n.startsWith("/")&&(n=n.slice(1)),e+=n;return e}function Gr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Oe=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Fe.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(n=>{if(!n._skipAdditionalParameters){let i=Ar.default([].concat(re.default(n,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");Ae.default(n,"params.language",i),this.has.auth&&this._auth.bearerToken&&!re.default(n,"headers.Authorization")&&Ae.default(n,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(n.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Fe.Cancel("Can't call http API from https.");return n}),this.axios.interceptors.response.use(({data:n,headers:i={},config:s={}})=>{n=bt.default.normalize(n);let o=s.url;if(o.endsWith("?")||(o+="?"),xs.default(s.params||{},(u,a)=>{o+=`${a}=${encodeURIComponent(u)}&`}),Re.default(n)||an.default(n)){let u=parseInt(i["x-total-count"]);isNaN(u)||(n._totalCount=u),n._url=o}return n},n=>{let i=re.default(n,"config._retryCount",0),s=re.default(n,"config.method"),o=re.default(n,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(o)&&i<this._retryConfig.count?(n.config._retryCount=i+1,n.config.data&&(n.config.data=JSON.parse(n.config.data)),new Promise((u,a)=>{setTimeout(()=>{this.axios(n.config).then(u).catch(a)},(()=>{let f=this._retryConfig.delay;return typeof f=="function"?f(i):f})())})):Promise.reject(n)});let t=[];for(let{method:n,type:i}of Fs){let s=this[n]&&this[n].bind(this);if(!s){this[n]=()=>{throw new Tt({method:n})};continue}this[n]=(o={})=>{if(o._raw)return delete o._raw,s(o);let u=t.find(v=>v.method==n&&nr.default(v.options,o));if(u)return u.promise;let a;o.cancelToken||(a=this.getCancelTokenSource(),o.cancelToken=a.token);let f=this.init().then(()=>s(o)).then(v=>(Re.default(v)&&v._totalCount===void 0?v._totalCount=v.length:an.default(v)&&v._totalCount===void 0&&(v._totalCount=1),v&&i&&this[`adjust${i}`]&&(v=this[`adjust${i}`](v)),v)).catch(v=>{throw v instanceof qe?v:v.response?v.response.status.toString().startsWith(4)?new tr({relatedError:v,code:v.response.status}):new It({relatedError:v,code:v.response.status}):v.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new Pt({relatedError:v}):new qt({relatedError:v}):new qe({relatedError:v})});a&&(f.cancel=(...v)=>a.cancel(...v));let d={method:n,options:cr.default(o,["cancelToken"]),promise:f};return t.push(d),f.catch(()=>{}).then(()=>t.splice(t.indexOf(d),1)),f}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return L(this,null,function*(){return this._init?this._init:(this._init=(()=>L(this,null,function*(){this._prepare();let e;if(xe.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(an.default(e)&&!As.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Fe.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:n,crossUser:i}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!n||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let o=[n.uri].concat(Object.values(n.identities||{}).map(u=>u.uri)).filter(u=>u!=null);if(s.auth&&s.identities&&on.default(o,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys(n&&n.identities||{});if(on.default(u,s.identityProviders).length==0)return!1}return i?s.crossUser===!0||on.default(s.crossUser||[],o).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Re.default(this.schemes)?this.schemes:null;return t==null&&!bt.default.isContainedIn(e,this.excludedSchemes||[])?!0:bt.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower(k(M({},t),{concept:e})),e._getAncestors=t=>this.getAncestors(k(M({},t),{concept:e})),e._getDetails=t=>L(this,null,function*(){return(yield this.getConcepts(k(M({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Gr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(n=>{Array.isArray(e[n])&&(e[n].length===0||e[n][0]===null)&&delete e[n]}),e._registry&&(e._getTop=n=>e._registry.getTop(k(M({},n),{scheme:e})),e._getTypes=n=>e._registry.getTypes(k(M({},n),{scheme:e})),e._suggest=s=>{var o=s,{search:n}=o,i=V(o,["search"]);return e._registry.suggest(k(M({},i),{search:n,scheme:e}))}),e}adjustSchemes(e){return Gr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let n=`${t}Scheme`;e[n]||(e[n]=re.default(bt.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(bt.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Gr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return L(this,arguments,function*({method:e,items:t,itemProperty:n,config:i}){let o=[],u=yield Promise.all(t.map(a=>L(this,null,function*(){try{return yield this[e](k(M({[n]:a},i),{_raw:!0}))}catch(f){return o[t.indexOf(a)]=f,null}})));return u._errors=o,u})}};le.providerName="Base";var je=pe(Ge(),1);var hr=pe(nd(),1);var ni,dT=new Uint8Array(16);function ks(){if(!ni&&(ni=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ni))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ni(dT)}var Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function id(r,e=0){return(Ne[r[e+0]]+Ne[r[e+1]]+Ne[r[e+2]]+Ne[r[e+3]]+"-"+Ne[r[e+4]]+Ne[r[e+5]]+"-"+Ne[r[e+6]]+Ne[r[e+7]]+"-"+Ne[r[e+8]]+Ne[r[e+9]]+"-"+Ne[r[e+10]]+Ne[r[e+11]]+Ne[r[e+12]]+Ne[r[e+13]]+Ne[r[e+14]]+Ne[r[e+15]]).toLowerCase()}var mT=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$s={randomUUID:mT};function gT(r,e,t){if($s.randomUUID&&!e&&!r)return $s.randomUUID();r=r||{};let n=r.random||(r.rng||ks)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return id(n)}var ii=gT;var si="urn:uuid:",Cr=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>hr.default.getItem(this.localStorageKey).then(n=>{n=n||[];let i=0;for(let s of n.filter(o=>!o.uri||!o.uri.startsWith(si)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${si}${ii()}`,i+=1;return i&&console.warn(`URIs added to ${i} local mappings.`),hr.default.setItem(this.localStorageKey,n)});hr.default.getItem(e).then(n=>{n&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(n=>{console.warn("Error when adding URIs to local mappings:",n)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=Os.default(this.queue)||Promise.resolve();return new Promise(t=>{function n(){var o,u,a=new Promise((f,d)=>{o=f,u=d});return a.resolve=o,a.reject=u,a}let i=n(),s=()=>{i.resolve()};this.queue.push(i),e.then(()=>hr.default.getItem(this.localStorageKey)).then(o=>{t({mappings:o,done:s})})})}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new H({parameter:"mapping"});return(yield this.getMappings(k(M({},t),{uri:e.uri})))[0]})}getMappings(){return L(this,arguments,function*({from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,uri:O}={}){let p={};return e&&(p.from=xe.default(e)?e:e.uri),t&&(p.fromScheme=xe.default(t)?{uri:t}:t),n&&(p.to=xe.default(n)?n:n.uri),i&&(p.toScheme=xe.default(i)?{uri:i}:i),s&&(p.creator=xe.default(s)?s:je.default.prefLabel(s)),o&&(p.type=xe.default(o)?o:o.uri),u&&(p.partOf=xe.default(u)?u:u.uri),a&&(p.offset=a),f&&(p.limit=f),d&&(p.direction=d),v&&(p.mode=v),w&&(p.identifier=w),O&&(p.uri=O),this._getMappingsQueue().catch(C=>{throw new qe({message:"Could not get mappings from local storage",relatedError:C})}).then(({mappings:C,done:G})=>{G();let K=(D,Q)=>D.uri==Q||Q&&D.notation&&D.notation[0].toLowerCase()==Q.toLowerCase();if((p.from||p.to)&&(C=C.filter(D=>{let Q=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.from))!=null,ne=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.from))!=null,E=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.to))!=null,ee=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.to))!=null;return p.direction=="backward"?p.mode=="or"?p.from&&ne||p.to&&E:(!p.from||ne)&&(!p.to||E):p.direction=="both"?p.mode=="or"?p.from&&(Q||ne)||p.to&&(E||ee):(!p.from||Q)&&(!p.to||ee)||(!p.from||ne)&&(!p.to||E):p.mode=="or"?p.from&&Q||p.to&&ee:(!p.from||Q)&&(!p.to||ee)})),(p.fromScheme||p.toScheme)&&(C=C.filter(D=>{let Q=je.default.compare(D.fromScheme,p.fromScheme),ne=je.default.compare(D.toScheme,p.fromScheme),E=je.default.compare(D.fromScheme,p.toScheme),ee=je.default.compare(D.toScheme,p.toScheme);return p.direction=="backward"?p.mode=="or"?p.fromScheme&&ne||p.toScheme&&E:(!p.fromScheme||ne)&&(!p.toScheme||E):p.direction=="both"?p.mode=="or"?p.fromScheme&&(Q||ne)||p.toScheme&&(E||ee):(!p.fromScheme||Q)&&(!p.toScheme||ee)||(!p.fromScheme||ne)&&(!p.toScheme||E):p.mode=="or"?p.fromScheme&&Q||p.toScheme&&ee:(!p.fromScheme||Q)&&(!p.toScheme||ee)})),p.creator){let D=p.creator.split("|");C=C.filter(Q=>(Q.creator&&Q.creator.find(ne=>D.includes(je.default.prefLabel(ne))||D.includes(ne.uri)))!=null)}p.type&&(C=C.filter(D=>(D.type||[je.default.defaultMappingType.uri]).includes(p.type))),p.partOf&&(C=C.filter(D=>D.partOf!=null&&D.partOf.find(Q=>je.default.compare(Q,{uri:p.partOf}))!=null)),p.identifier&&(C=C.filter(D=>p.identifier.split("|").map(Q=>(D.identifier||[]).includes(Q)||D.uri==Q).reduce((Q,ne)=>Q||ne))),p.uri&&(C=C.filter(D=>D.uri==p.uri));let te=C.length;return C=C.sort((D,Q)=>{let ne=D.modified||D.created,E=Q.modified||Q.created;return E==null?-1:ne==null?1:ne>E?-1:1}),C=C.slice(p.offset||0),C=C.slice(0,p.limit),C._totalCount=te,C})})}postMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(si))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${si}${ii()}`),n.find(s=>s.uri==e.uri))throw i(),new H({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),n.push(e),n=n.map(s=>je.default.minifyMapping(s));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(s){throw i(),s}})}putMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=e,n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}patchMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=Object.assign(n[s],e),n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}deleteMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();try{return n=n.filter(s=>s.uri!=e.uri),n=n.map(s=>je.default.minifyMapping(s)),yield hr.default.setItem(this.localStorageKey,n),i(),!0}catch(s){throw i(),s}})}};Cr.providerName="LocalMappings";Cr.stored=!0;var St=pe(Ge(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios(k(M({},t),{url:e.uri,params:M(M({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Q){return L(this,null,function*(){var ne=Q,{from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,cardinality:O,annotatedBy:p,annotatedFor:C,annotatedWith:G,sort:K,order:te}=ne,D=V(ne,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let E={},ee=this._api.mappings;return e&&(E.from=xe.default(e)?e:e.uri),t&&(E.fromScheme=xe.default(t)?t:t.uri),n&&(E.to=xe.default(n)?n:n.uri),i&&(E.toScheme=xe.default(i)?i:i.uri),s&&(E.creator=xe.default(s)?s:St.default.prefLabel(s)),o&&(E.type=xe.default(o)?o:o.uri),u&&(E.partOf=xe.default(u)?u:u.uri),a&&(E.offset=a),f&&(E.limit=f),d&&(E.direction=d),O&&(E.cardinality=O),p&&(E.annotatedBy=p),C&&(E.annotatedFor=C),G&&(E.annotatedWith=G),v&&(E.mode=v),w&&(E.identifier=w),K&&(E.sort=K),te&&(E.order=te),this.axios(k(M({},D),{method:"get",url:ee,params:M(M(M({},this._defaultParams),D.params||{}),E)}))})}postMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});return e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e),this.axios(k(M({},t),{method:"post",url:this._api.mappings,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getAnnotations(n){return L(this,null,function*(){var i=n,{target:e}=i,t=V(i,["target"]);return e&&Ae.default(t,"params.target",e),this.axios(k(M({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);return this.axios(k(M({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e}))})}patchAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getConcordances(e){return L(this,null,function*(){return this.axios(k(M({},e),{method:"get",url:this._api.concordances}))})}postConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});return this.axios(k(M({},t),{method:"post",url:this._api.concordances,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}};ir.providerName="MappingsApi";ir.stored=!0;var xt=pe(Ge(),1);var zs={},Tr=class extends le{get _cache(){return zs[this.uri]}_prepare(){zs[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return L(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let n=lr(this._api.api,"voc"),i=yield this.axios({method:"get",url:n});this._occurrencesSupportedSchemes=i||[]}catch(n){}let t=!1;for(let n of this._occurrencesSupportedSchemes)xt.default.compare(e,n)&&(t=!0);return t})}getMappings(e){return L(this,null,function*(){let t=yield this.getOccurrences(e),n=e.from,i=re.default(n,"inScheme[0]")||e.fromScheme,s=e.to,o=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let a of t){if(!a)continue;let f={};f.from=re.default(a,"memberSet[0]"),f.from?f.from={memberSet:[f.from]}:f.from=null,f.fromScheme=re.default(a,"memberSet[0].inScheme[0]"),f.to=re.default(a,"memberSet[1]"),f.to?f.to={memberSet:[f.to]}:f.to={memberSet:[]},f.toScheme=re.default(a,"memberSet[1].inScheme[0]"),(n&&xt.default.compare(n,re.default(f,"to.memberSet[0]"))||s&&xt.default.compare(s,re.default(f,"from.memberSet[0]")))&&([f.from,f.fromScheme,f.to,f.toScheme]=[f.to,f.toScheme,f.from,f.fromScheme]),!f.fromScheme&&i&&(f.fromScheme=i),!f.toScheme&&o&&(f.toScheme=o),f.type=[xt.default.defaultMappingType.uri],f._occurrence=a,f=xt.default.addMappingIdentifiers(f),u.push(f)}return u._url=t._url,u})}getOccurrences(o){return L(this,null,function*(){var u=o,{from:e,to:t,concepts:n,threshold:i=0}=u,s=V(u,["from","to","concepts","threshold"]);let a=[];n=(n||[]).concat([e,t]).filter(p=>!!p);for(let p of n)a.push(this._occurrencesIsSupported(re.default(p,"inScheme[0]")).then(C=>C&&p.uri?p.uri:null));let f=yield Promise.all(a);if(f=f.filter(p=>p!=null),f.length==0)throw new H({parameter:"concepts"});a=[];for(let p of f)a.push(this._getOccurrences(k(M({},s),{params:{member:p,scheme:"*",threshold:i}})));let d=yield Promise.all(a),v=Es.default([],...d),w=[],O=[];for(let p=0;p<v.length;p+=1){let C=v[p];if(!C)continue;let G=C.memberSet.reduce((K,te)=>K.concat(te.uri),[]).sort().join(" ");w.includes(G)?O.push(p):w.push(G)}return O.forEach(p=>{delete v[p]}),v=v.filter(p=>p!=null),v=v.sort((p,C)=>parseInt(C.count||0)-parseInt(p.count||0)),v._url=d.map(p=>p._url),v})}_getOccurrences(e){return L(this,null,function*(){let t=this._cache.find(i=>nr.default(i.config.params,e.params));if(t)return t.data;let n=yield this.axios(k(M({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:n}),this._cache.length>20&&(zs[this.uri]=this._cache.slice(this._cache.length-20)),n})}};Tr.providerName="OccurrencesApi";Tr.stored=!1;var Ir=pe(Ge(),1);var sr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Ir.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Ir.default.compare(e,s)))return null;let i=(yield this.getSchemes({params:{uri:Ir.default.getAllUris(e).join("|")}})).find(s=>Ir.default.compare(s,e));return i?(this._approvedSchemes.push({uri:i.uri,identifier:Ir.default.getAllUris(e)}),i.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return L(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new ze}let t=yield this.axios(k(M({},e),{method:"get",url:this._api.schemes,params:M(k(M({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Gr(t.filter(n=>Ir.default.isContainedIn(n,this.schemes)),t):t})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.top)throw new ze;if(!e)throw new H({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios(k(M({},t),{method:"get",url:this._api.top,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);if(this.has.data===!1)throw new ze;if(!e)throw new H({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(o=>o.uri).filter(o=>o!=null);return this.axios(k(M({},t),{method:"get",url:this._api.data,params:k(M(k(M({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.narrower)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.narrower,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.ancestors)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.ancestors,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(o){return L(this,null,function*(){var u=o,{use:e="notation,label",types:t=[],sort:n="score",params:i={}}=u,s=V(u,["use","types","sort","params"]);return this._search(k(M({},s),{endpoint:"suggest",params:k(M({},i),{type:t.join("|"),use:e,sort:n})}))})}search(i){return L(this,null,function*(){var s=i,{types:e=[],params:t={}}=s,n=V(s,["types","params"]);return this._search(k(M({},n),{endpoint:"search",params:k(M({},t),{type:e.join("|")})}))})}vocSuggest(s){return L(this,null,function*(){var o=s,{use:e="notation,label",sort:t="score",params:n={}}=o,i=V(o,["use","sort","params"]);return this._search(k(M({},i),{endpoint:"voc-suggest",params:k(M({},n),{use:e,sort:t})}))})}vocSearch(e){return L(this,null,function*(){return this._search(k(M({},e),{endpoint:"voc-search"}))})}_search(f){return L(this,null,function*(){var d=f,{endpoint:e,scheme:t,search:n,limit:i,offset:s,params:o,url:u}=d,a=V(d,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new ze;if(!n)throw new H({parameter:"search"});i=i||this._jskos.suggestResultLimit||100,s=s||0;let v=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",n),this.axios(k(M({},a),{params:k(M(M({},this._defaultParams),o),{limit:i,count:i,offset:s,search:n,query:n,voc:v}),method:"get",url:u}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.types)throw new ze;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));s&&Ae.default(t,"params.uri",s);let o=yield this.axios(k(M({},t),{method:"get",url:this._api.types}));return s&&(o=o.filter(u=>!u.inScheme||Ir.default.isContainedIn(e,u.inScheme))),o})}};sr.providerName="ConceptApi";sr.providerType="http://bartoc.org/api-type/jskos";var fn=pe(Ge(),1);var Hs={},Pr=class extends le{get _cache(){return Hs[this.uri]}_prepare(){Hs[this.uri]=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return L(this,null,function*(){var o=s,{from:e,to:t,mode:n}=o,i=V(o,["from","to","mode"]);let u=[];Re.default(this.schemes)&&(u=this.schemes);let a,f,d=re.default(e,"inScheme[0]"),v=re.default(t,"inScheme[0]"),w,O;if(!e||fn.default.isContainedIn(d,u)?(a=!0,f=t,w=v,O=u.find(E=>fn.default.compare(E,d))||u[0]):(a=!1,f=e,w=d,O=u.find(E=>fn.default.compare(E,v))||u[0]),n!="or")return[];if(!this._api.api)throw new ze;if(!f)throw new H({parameter:a?"to":"from"});let p=fn.default.languagePreference.selectLanguage(f.prefLabel);if(!p)throw new H({parameter:a?"to":"from",message:"Missing language"});let C=re.default(f,`altLabel.${p}`,[]);xe.default(C)&&(C=[C]);let G=re.default(f,`prefLabel.${p}`),K=C.concat([G]);K=[G];let{url:te,data:D}=yield this._getReconciliationResults(k(M({},i),{labels:K,language:p}));D=[].concat(...Object.values(D).map(E=>E.result)).filter(E=>E),D=D.sort((E,ee)=>E.score!=ee.score?ee.score-E.score:E.match!=ee.match?E.match?-1:1:E.id.length-ee.id.length);let Q=re.default(O,"namespace",""),ne=D.map(E=>({fromScheme:w,from:{memberSet:[f]},toScheme:O,to:{memberSet:[{uri:Q+E.id}]},type:[E.match?"http://www.w3.org/2004/02/skos/core#exactMatch":E.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return a&&(ne=ne.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),ne._url=te,ne})}_getReconciliationResults(i){return L(this,null,function*(){var s=i,{labels:e,language:t}=s,n=V(s,["labels","language"]);e=e.sort();let o=this._cache.find(O=>nr.default(O.labels,e)&&O.language==t);if(o)return o;let u={},a=0;for(let O of e)u[`q${a}`]={query:O},a+=1;let f=this._api.api;t&&(f=f.replace("{language}",t));let d=`queries=${encodeURIComponent(JSON.stringify(u))}`;Ae.default(n,["headers","Content-Type"],"application/x-www-form-urlencoded");let v=yield this.axios(k(M({},n),{method:"post",url:f,data:d}));v=v||{};let w={labels:e,language:t,data:v,url:`${f}${f.includes("?")?"&":"?"}${d}`};return this._cache.push(w),this._cache.length>20&&(Hs[this.uri]=this._cache.slice(this._cache.length-20)),w})}};Pr.providerName="ReconciliationApi";Pr.stored=!1;var Kr=pe(Ge(),1);var qr=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return L(this,null,function*(){var a=u,{from:e,to:t,mode:n,selected:i,limit:s=10}=a,o=V(a,["from","to","mode","selected","limit"]);if(n!="or")return[];if(!i)throw new H({parameter:"selected"});let f=[];e&&this.supportsScheme(i.scheme[!1])?f.push(this._getMappings(k(M({},o),{concept:e,sourceScheme:i.scheme[!0],targetScheme:i.scheme[!1],limit:s}))):f.push(Promise.resolve([])),t&&this.supportsScheme(i.scheme[!0])?f.push(this._getMappings(k(M({},o),{concept:t,sourceScheme:i.scheme[!1],targetScheme:i.scheme[!0],limit:s,swap:!0}))):f.push(Promise.resolve([]));let[d,v]=yield Promise.all(f);for(v=v.filter(w=>!d.find(O=>Kr.default.compareMappingMembers(w,O)));d.length+v.length>s;)v.length>=d.length?v=v.slice(0,-1):d=d.slice(0,-1);return Ss.default(d,v)})}_getMappings(u){return L(this,null,function*(){var a=u,{concept:e,sourceScheme:t,targetScheme:n,limit:i,swap:s=!1}=a,o=V(a,["concept","sourceScheme","targetScheme","limit","swap"]);var p;if(!e||!t||!n)return[];if(Kr.default.compare(t,n))return[];let f=Kr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],d=Kr.default.prefLabel(e,{fallbackToUri:!1,language:f});if(!d)return[];let v=/^[\s\wäüöÄÜÖß]*\w/.exec(d);d=v?v[0]:d;let w=yield this._getResults(k(M({},o),{label:d,targetScheme:n,limit:i}));if(!w.length&&((p=e.broader)!=null&&p.length))for(let C of e.broader){let G=Kr.default.prefLabel(C,{fallbackToUri:!1,language:f});if(G&&(w=yield this._getResults(k(M({},o),{label:G,targetScheme:n,limit:i})),w.length))break}let O=w.map(C=>({fromScheme:t,from:{memberSet:[e]},toScheme:n,to:{memberSet:[C]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(O=O.map(C=>Object.assign(C,{fromScheme:C.toScheme,from:C.to,toScheme:C.fromScheme,to:C.from}))),O})}_getResults(s){return L(this,null,function*(){var o=s,{label:e,targetScheme:t,limit:n}=o,i=V(o,["label","targetScheme","limit"]);var v;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=n)return u;let a=re.default(t,"_registry");if(!a||a.has.search===!1)return[];let f=(v=(this._jskos.overrides||[]).find(w=>Kr.default.compare(w,t)))==null?void 0:v.search,d=yield a.search(k(M({},i),{url:f,search:e,scheme:t,limit:n}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=d,this._cache[t.uri][e]._limit=n,d})}};qr.providerName="LabelSearchSuggestion";qr.stored=!1;var Be=pe(Ge(),1);var Rr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let n={},i=e.match(/(.+\/)([^/]+)\/$/);return i?(n.api=i[1]+"rest/v1/",t.VOCID=i[2],n.schemes=[t],n):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,n){let i=e&&e.VOCID||re.default(this.schemes.find(o=>Be.default.compare(o,e)),"VOCID");if(!i)throw new H({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",n=n||{},n.lang||(n.lang=this._language);let s=Object.keys(n).map(o=>`${o}=${encodeURIComponent(n[o])}`).join("&");return`${this._api.api}${i}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let n=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new H({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(n,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(o=>Be.default.compare(e,o));if(t)return t.uri;if(this._rejectedSchemes.find(o=>Be.default.compare(e,o)))return null;let n=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:n})).conceptschemes.find(o=>Be.default.compare(o,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:Be.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:n,result:i,language:s}={}){if(!e)return null;t=Be.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,n&&(t.inScheme=[n]);let o=e.matchedPrefLabel||e.prefLabel||e.label;if(xe.default(o))Ae.default(t,`prefLabel.${s}`,o);else{o&&!Re.default(o)&&(o=[o]);for(let f of o||[])Ae.default(t,`prefLabel.${f.lang}`,f.value)}let u=e.altLabel;if(xe.default(u))Ae.default(t,`altLabel.${s}`,[u]);else{u&&!Re.default(u)&&(u=[u]);for(let f of u||[])re.default(t,`altLabel.${f.lang}`)?(t.altLabel[f.lang].push(f.value),t.altLabel[f.lang]=Ar.default(t.altLabel[f.lang])):Ae.default(t,`altLabel.${f.lang}`,[f.value])}let a=e.notation||e["skos:notation"]||Be.default.notation(t);a&&(t.notation=[a.value||a]),e.broader&&(Re.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(f=>xe.default(f)?{uri:f}:f)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Re.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let f of e.type||[]){if(!Be.default.isValidUri(f))continue;let d=f.slice(0,f.indexOf(":"));i&&i["@context"]&&i["@context"][d]&&(f=f.replace(d+":",i["@context"][d])),t.type.push(f)}return t.type=Ar.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);let n=[];for(let i of this.schemes||[]){let s=this._getApiUrl(i,"/"),u=(yield this.axios(k(M({},e),{method:"get",url:s}))).conceptschemes.find(f=>Be.default.compare(f,i)),a=u&&(u.prefLabel||u.label||u.title);a&&Ae.default(i,`prefLabel.${this._language}`,a),n.push(i),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(f=>Be.default.compare(i,f))||this._approvedSchemes.push({uri:u.uri,identifier:Be.default.getAllUris(i)})}return n})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),o=yield this._getSchemeUri(e);if(!o)throw new H({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});Ae.default(t,"params.scheme",o);let u=yield this.axios(k(M({},t),{method:"get",url:s})),a=[];for(let f of u.topconcepts||[]){let d=this._toJskosConcept(f,{scheme:e,language:this._language});d.topConceptOf=[e],a.push(d)}return a})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);Re.default(e)||(e=[e]),e=e.map(o=>({uri:o.uri,inScheme:o.inScheme}));let s=[];for(let o of e){let u=this._getDataUrl(o,{addFormatParameter:!1});if(!u)continue;let a=yield this.axios(k(M({},t),{method:"get",url:u,params:{uri:o.uri,format:"application/json"}})),f=a&&a.graph&&a.graph.find(d=>Be.default.compare(d,o));if(f){let d=this._toJskosConcept(f,{concept:o,result:a});for(let v of["broader","narrower"]){let w=f[v]||d[v];w&&!Re.default(w)&&(w=[w]),w||(w=[]),d[v]=w.map(O=>this._toJskosConcept(a.graph.find(p=>Be.default.compare(p,O)),{scheme:o.inScheme[0],result:a}))}d.ancestors=[],s.push(d)}}return s})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/children");return Ae.default(t,"params.uri",e.uri),((yield this.axios(k(M({},t),{method:"get",url:o}))).narrower||[]).map(f=>this._toJskosConcept(f,{scheme:s}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/broaderTransitive");Ae.default(t,"params.uri",e.uri);let u=yield this.axios(k(M({},t),{method:"get",url:o})),a=[],f=e.uri;for(;f;){if(f!=e.uri){let v=re.default(u,`broaderTransitive["${f}"]`);a=a.concat([v])}f=re.default(u,`broaderTransitive["${f}"].broader[0]`)}return a.map(v=>this._toJskosConcept(v,{scheme:s})).filter(v=>v.uri!=e.uri)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Be.default.notation(i),o=Be.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}search(o){return L(this,null,function*(){var u=o,{search:e,scheme:t,limit:n,types:i=[]}=u,s=V(u,["search","scheme","limit","types"]);let a=this._getApiUrl(t,"/search");return Ae.default(s,"params.query",`${e}*`),Ae.default(s,"params.unique",1),Ae.default(s,"params.maxhits",n||100),Ae.default(s,"params.type",i.join(" ")),((yield this.axios(k(M({},s),{method:"get",url:a}))).results||[]).map(v=>this._toJskosConcept(v,{scheme:t}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/types"),o=[],u=yield this.axios(k(M({},t),{method:"get",url:s}));for(let a of u&&u.types||[])a.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(a.label&&(a.prefLabel={[u["@context"]["@language"]]:a.label},delete a.label),o.push(a));return o._url=s,o})}};Rr.providerName="SkosmosApi";Rr.providerType="http://bartoc.org/api-type/skosmos";var pr=pe(Ge(),1);var ai="http://id.loc.gov/authorities/",oi=[{uri:`${ai}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${ai}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],sd=`${ai}classification`;function od(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(i=>i["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let n=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];n.length&&(e.altLabel={en:n.map(i=>i["@value"])});for(let i of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(i["@value"]);return e}function yT(r){let e=od(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Ws=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function vT(r,{scheme:e}){let t=od(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>oi.find(o=>o.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let n=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=n.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0]));let i=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=i.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0])),t}var Mr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!oi.find(t=>pr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return L(this,null,function*(){let e=[];for(let t of yield Promise.all(oi.filter(n=>!this.schemes||!this.schemes.length||this.schemes.find(i=>pr.default.compare(n,i))).map(n=>Fe({method:"get",url:`${n.uri.replace("http:","https:")}.json`}).then(({status:i,data:s})=>{if(i===200){let o=s.find(u=>n.uri===u["@id"]);if(o)return o=pr.default.merge(yT(o),n),o.topConcepts=(o.topConcepts||[]).filter(u=>u),o}return null}))))t&&e.push(t);return e})}getConcepts(t){return L(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let n=[];for(let i of yield Promise.all(e.map(s=>Fe({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:o,data:u})=>{if(o===200){let a=u.find(f=>s.uri===f["@id"]);return a?vT(a,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))i&&n.push(i);return n})}suggest(e){return L(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(n=>pr.default.prefLabel(n,{fallbackToUri:!0})),[],t.map(n=>n.uri)]})}search(s){return L(this,arguments,function*({search:e,scheme:t,limit:n,offset:i}){let o=pr.default.getAllUris(t).find(a=>a.startsWith(ai));if(!o||!oi.find(a=>pr.default.compare(a,{uri:o})))throw new H({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new H({parameter:"search",message:"parameter is empty or missing"});n=n||this._jskos.suggestResultLimit||100,i=i||0;let{data:u}=yield Fe({method:"get",url:`${o}/suggest2`.replace("http:","https:"),params:{q:e,count:n||100,offset:i,searchtype:"keyword"}});return(u.hits||[]).map(a=>({uri:a.uri,notation:[a.token],prefLabel:{en:a.aLabel},inScheme:[t]})).filter(Ws(t))})}};Mr.providerName="LocApi";Mr.providerType="http://bartoc.org/api-type/loc";var Vr=pe(Ge(),1),ud=pe(Ks(),1);function ui(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Jr={},Lr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Jr[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Jr[this.uri]&&Jr[this.uri].index}get _conceptCache(){return Jr[this.uri]&&Jr[this.uri].conceptCache}get _schemeCache(){return Jr[this.uri]&&Jr[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:Vr.default.getAllUris(t).filter(i=>i!==e)}]}}_loadScheme(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=Vr.default.getAllUris(e);for(let p of s)if(this._schemeCache[p])return this._schemeCache[p];let o=this.schemes.find(p=>Vr.default.compare(p,e));if(!o||!o.uri)throw new tr({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=o.uri;s=Ar.default(s.concat(Vr.default.getAllUris(o)));let a=".json";u.endsWith("/")&&(a="index.json");let f=yield this.axios(k(M({},t),{url:`${u}${a}`,_skipAdditionalParameters:!0}));if(f.id!==u)throw new tr({message:"Skohub URL did not return expected concept scheme"});let{title:d,preferredNamespaceUri:v,hasTopConcept:w,description:O}=f;e={uri:u,identifier:s.filter(p=>p!==u)},e.prefLabel=d,Object.keys(e.prefLabel||{}).forEach(p=>{e.prefLabel[p]=ui(e.prefLabel[p])}),e.namespace=v,e.topConcepts=(w||[]).map(p=>this._toJskosConcept(p)),e.concepts=[null],O&&(e.definition=O,Object.keys(e.definition).forEach(p=>{e.definition[p]=[ui(e.definition[p])]}));for(let p of Object.keys(e).filter(C=>!e[C]))delete e[p];for(let p of s)this._schemeCache[p]=e;return e})}_loadConcept(n){return L(this,null,function*(){var i=n,{uri:e}=i,t=V(i,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios(k(M({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new tr({message:"Skohub URL did not return expected concept URI"});let o=this._toJskosConcept(s);return this._conceptCache[e]=o,o}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(n=>{t.prefLabel[n]=ui(t.prefLabel[n])}),t.narrower=(e.narrower||[]).map(n=>this._toJskosConcept(n)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(n=>{t.scopeNote[n]=[ui(t.scopeNote[n])]})),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);return Promise.all(this.schemes.map(n=>this._loadScheme(k(M({},e),{scheme:n}))))})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(M({scheme:e},t)),e.topConcepts||[]})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept(k(M({},t),{uri:s}))))).filter(Boolean)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept(k(M({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(M({concept:s},t))).map(o=>({uri:o.uri}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept(k(M({},t),{uri:e.uri}))),e.narrower})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let a of[""].concat(this.languages)){if(this._index[t.uri][a]){s=this._index[t.uri][a];break}if(this._index[t.uri][a]!==null)try{let f=a?`.${a}.index`:".index";t.uri.endsWith("/")&&(f=`index${f}`);let d=yield this.axios({url:`${t.uri}${f}`,_skipAdditionalParameters:!0});if(d.length<100){this._index[t.uri][a]=null;continue}s=ud.default.create(),s.import(d),this._index[t.uri][a]=s;break}catch(f){this._index[t.uri][a]=null}}if(!s)throw new tr({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let o=s.search(e);return(yield this.getConcepts({concepts:o.map(a=>({uri:a}))})).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Vr.default.notation(i),o=Vr.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Lr.providerName="Skohub";Lr.providerType="http://bartoc.org/api-type/skohub";var cn=pe(Ge(),1);var fd="https://lobid.org/gnd/",dr={uri:"http://bartoc.org/en/node/430",concepts:[null],topConcepts:[],type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"],DISPLAY:{hideNotation:!0},identifier:["http://www.wikidata.org/entity/Q36578"],license:[{uri:"http://creativecommons.org/publicdomain/zero/1.0/"}],namespace:"https://d-nb.info/gnd/",notation:["GND"],notationPattern:"[0-9X-]+",prefLabel:{de:"Gemeinsame Normdatei",en:"Integrated Authority File"},types:[{uri:"https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson",prefLabel:{de:"Person",en:"Person"}},{uri:"https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",prefLabel:{de:"Geografikum",en:"Place"}},{uri:"https://d-nb.info/standards/elementset/gnd#CorporateBody",prefLabel:{de:"Organisation",en:"Organization"}},{uri:"https://d-nb.info/standards/elementset/gnd#SubjectHeading",prefLabel:{de:"Sachbegriff",en:"Subject"}},{uri:"https://d-nb.info/standards/elementset/gnd#Work",prefLabel:{de:"Werk",en:"Work"}},{uri:"https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",prefLabel:{de:"Konferenz oder Veranstaltung",en:"ConferenceOrEvent"}}]},Ys=new cn.default.ConceptScheme({uri:"https://d-nb.info/standards/elementset/gnd",namespace:"https://d-nb.info/standards/elementset/gnd#"});dr.types.forEach(r=>{r.notation=[Ys.notationFromUri(r.uri)]});var wT=new cn.default.ConceptScheme(dr),cd=["broaderTerm","broaderTermGeneral","broaderTermGeneric","broaderTermInstantial","broaderTermPartitive"];function Js(r){let e={uri:r.id,notation:[r.gndIdentifier],prefLabel:{de:r.preferredName},inScheme:[{uri:dr.uri}]};return r.variantName&&(e.altLabel={de:r.variantName}),e.type=r.type.map(t=>Ys.uriFromNotation(t)).filter(Boolean),e.broader=[],cd.forEach(t=>{e.broader=e.broader.concat(r[t]||[])}),e.broader=e.broader.map(t=>({uri:t.id})),e.identifier=[e.uri.replace("https://","http://")],r.sameAs&&r.sameAs.length&&(e.mappings=r.sameAs.map(t=>({from:{memberSet:[{uri:e.uri}]},fromScheme:{uri:dr.uri},to:{memberSet:[{uri:t.id}]},toScheme:{uri:t.collection.id},type:["http://www.w3.org/2004/02/skos/core#exactMatch"]}))),e}function Vs(r){return r&&r.startsWith("http://")?r.replace("http://","https://"):r}var Yr=class extends le{_prepare(){this.has.schemes=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.suggest=!0,this.has.search=!0,this.has.types=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._api.api||(this._api.api=fd)}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t||!cn.default.compare(t,dr)||e!=="https://lobid.org/gnd/api"?null:{api:fd,schemes:[dr]}}getSchemes(){return L(this,null,function*(){return[dr]})}getTop(){return L(this,null,function*(){return[]})}getConcepts(t){return L(this,arguments,function*({concepts:e}){if(!e)throw new i.InvalidOrMissingParameterError({parameter:"concepts"});Array.isArray(e)||(e=[e]);let n=e.map(o=>{var u,a;return(u=o==null?void 0:o.notation)!=null&&u[0]?(a=o==null?void 0:o.notation)==null?void 0:a[0]:wT.notationFromUri(Vs(o==null?void 0:o.uri))}).filter(Boolean),i=[],s=yield Promise.all(n.map(o=>L(this,null,function*(){try{let u=yield Fe.get(`${this._api.api}${o}.json`);return Js(u.data)}catch(u){i.push(u)}})));if(i.length===e.length)throw i[0];return s.filter(Boolean)})}getNarrower(i){return L(this,arguments,function*({concept:e,limit:t=200,offset:n=0}){if(!e||!e.uri)throw new H({parameter:"concept"});let s=Vs(e.uri),o=cd.map(a=>`${a}.id:"${s}"`).join(" OR ");return(yield Fe.get(`${this._api.api}search`,{params:{q:o,format:"json",size:t,from:n}})).data.member.map(a=>Js(a))})}suggest(e){return L(this,null,function*(){let t=yield this._search(k(M({},e),{format:"json:suggest"}));return[e.search,t.map(n=>n.label),[],t.map(n=>n.id)]})}search(e){return L(this,null,function*(){return(yield this._search(e)).member.map(n=>Js(n))})}_search(o){return L(this,arguments,function*({search:e,types:t,limit:n=100,offset:i=0,format:s="json"}){if(!e)throw new H({parameter:"search"});let u="";return t=(t==null?void 0:t.map(f=>Ys.notationFromUri(Vs(f))).filter(Boolean))||[],t.length&&(u=t.map(f=>`type:${f}`).join(" OR ")),(yield Fe.get(`${this._api.api}search`,{params:{q:e,filter:u,format:s,size:n,from:i}})).data})}getTypes(t){return L(this,arguments,function*({scheme:e}){if(!e||!cn.default.compare(e,dr))throw new H({parameter:"search",message:e!=null&&e.uri?`scheme ${e==null?void 0:e.uri} not supported`:""});return dr.types})}};Yr.providerName="LobidApi";var ln=pe(Ge(),1),ld=pe(Ks(),1);var Ke={},Nr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,n={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{n[s.lang]=s.text});let i={uri:t,prefLabel:n};return e.categories&&e.categories.length&&(i.topConcepts=[null]),e.category&&e.category.length&&(i.concepts=[null]),i}_categoryToJSKOS(e,{scheme:t,broader:n=[]}){if(!e||!t)return null;let i=e.ID,s=`${t.uri}/${i}`;if(Ke[t.uri].concepts[s])return Ke[t.uri].concepts[s];let o={};e.labels.filter(a=>!a.lang.startsWith("x-")&&a.text).forEach(a=>{o[a.lang]=a.text.replace(`${i} `,""),Ke[t.uri].searchIndex.add(s,o[a.lang])});let u={};return e.labels.filter(a=>!a.lang.startsWith("x-")&&a.description).forEach(a=>{u[a.lang]||(u[a.lang]=[]),u[a.lang].push(a.description)}),Ke[t.uri].concepts[s]={uri:s,notation:[i],prefLabel:o,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(a=>({uri:`${t.uri}/${a.ID}`})),broader:n},Ke[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return L(this,null,function*(){let t=yield this.axios(k(M({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let n=this._scheme.uri;Ke[n]={schemeInfo:t,searchIndex:ld.default.create({tokenize:"full"}),concepts:{}};let i=(s,{broader:o=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:o});(s.categories||[]).forEach(a=>i(a,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>i(s)),Ke[n].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return L(this,arguments,function*(e={}){if(!this._api.api)throw new ze;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!ln.default.compare(e,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Ke[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(M({concept:s},t))):[]})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});if(!t||!t.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!ln.default.compare(t,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield Ke[this._scheme.uri].searchIndex.search(e)).map(o=>Ke[this._scheme.uri].concepts[o]).map(this._removeNarrower).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=ln.default.notation(i),o=ln.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Nr.providerName="MyCoRe";Nr.providerType="http://bartoc.org/api-type/mycore";var or={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new et},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new et}};or.addProvider(sr);or.addProvider(ir);Object.values(hn).forEach(r=>{or.addProvider(r)});var Xs={},Ur=class{constructor(e){this.config=e,this.axios=Fe.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>or.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return or}createInstance(e){return new Ur(e)}loadConfig(e){return L(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(o){var u=o,{url:e,buildInfo:t=null,interval:n=6e4,callback:i}=u,s=V(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new qe({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat(k(M({},s),{function:()=>L(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:n,callback:(a,f,d)=>{a?i(a):(d||!d&&t&&!nr.default(f,t))&&i(null,f,d||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=or.init(e),e.cdk=this,e}addProvider(e){or.addProvider(e)}static addProvider(e){or.addProvider(e)}repeat({function:e,interval:t=15e3,callback:n,callImmediately:i=!0}={}){if(!e)throw new H({parameter:"function"});if(typeof e!="function")throw new H({parameter:"function",message:"function needs to be a function"});let s=()=>L(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new H({parameter:"interval"});if(!n)throw new H({parameter:"callback"});if(typeof n!="function")throw new H({parameter:"callback",message:"callback needs to be a function"});let o={timer:null,result:null,error:null,isPaused:!1,interval:t},u=w=>{let O=o.result;nr.default(O,w)||(o.result=w,o.error=null,n(null,w,O))},a=w=>{o.error=w,n(w)},f=w=>{o.isPaused||(o.timer=setTimeout(()=>{w()},o.interval))},d=()=>s().then(u).catch(a).then(()=>f(d)),v=(w=i)=>{w?d():f(d)};return v(),{start:(...w)=>{o.isPaused=!1,v(...w)},stop:()=>{o.isPaused=!0,o.timer?clearTimeout(o.timer):setTimeout(()=>{o.timer&&clearTimeout(o.timer)},o.interval)},get isPaused(){return o.isPaused},get lastResult(){return o.result},get hasErrored(){return!!o.error},get interval(){return o.interval},set interval(w){o.interval=w}}}getSchemes(){return L(this,arguments,function*(e={}){let t=[],n=[];for(let i of this.config.registries)if(i.has.schemes!==!1){let s=i.getSchemes(e).then(o=>{for(let u of o){u._registry=i,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let a=t.find(w=>jr.default.compare(w,u)),f,d,v=!1;if(a){f=this.config.registries.indexOf(i),f!=-1&&(f=this.config.registries.length-f),d=this.config.registries.indexOf(re.default(a,"_registry")),d!=-1&&(d=this.config.registries.length-d);let w=u.concepts?u.concepts.length==0?-1:1:0,O=a.concepts?a.concepts.length==0?-1:1:0;w>O?v=!0:w<O?v=!1:v=d<f}if(!a||v){if(v){let w=t.findIndex(O=>jr.default.compare(O,a));w!=-1&&t.splice(w,1),u=jr.default.merge(u,cr.default(a,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=i,t.push(u)}else{let w=t.findIndex(O=>jr.default.compare(O,u));if(w!=-1){let O=t[w]._registry;t[w]=jr.default.merge(t[w],cr.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[w]._registry=O}}}}).catch(o=>{console.warn("Couldn't load schemes for registry",i.uri,o)});n.push(s)}return yield Promise.all(n),t.forEach(i=>{let s=i._registry;delete i._registry;let o=this.registryForScheme(i);!o||o._api.api===s._api.api?i._registry=s:i._registry=o}),jr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let n of e.API||[]){let i=n,{type:s}=i,o=V(i,["type"]);let u=o.url;if(Xs[u]){let a=Xs[u];return Array.isArray(a._jskos.schemes)&&!jr.default.isContainedIn(e,a._jskos.schemes)&&a._jskos.schemes.push(e),a}else{o.scheme=e;for(let a of Object.values(or)){if(a.providerType&&a.providerType!==s||!a._registryConfigForBartocApiConfig)continue;let f=a.providerName,d=or[f]._registryConfigForBartocApiConfig(o);if(d){d.provider=f;try{if(t=this.initializeRegistry(d),t)return Xs[u]=t,t}catch(v){continue}}}}}return null}};var hd=new Ur;function _T(r){Object.values(hn).forEach(e=>(r||hd).addProvider(e))}return nm(bT);})();
14
14
  /*! Bundled license information:
15
15
 
16
16
  localforage/dist/localforage.js: