New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storyblok-js-client

Package Overview
Dependencies
Maintainers
7
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storyblok-js-client - npm Package Compare versions

Comparing version 4.5.5 to 4.5.6

2

dist/es5/rich-text-resolver.cjs.js

@@ -6,2 +6,2 @@ /*!

*/
"use strict";function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=a,s=Function.prototype,l=s.bind,p=s.call,g=f&&l.bind(p,p),v=f?function(t){return t&&g(t)}:function(t){return t&&function(){return p.apply(t,arguments)}},d=function(t){return"function"==typeof t},y=o,h=d,b=/#|\.prototype\./,m=function(t,r){var e=O[S(t)];return e==x||e!=w&&(h(r)?y(r):!!r)},S=m.normalize=function(t){return String(t).replace(b,".").toLowerCase()},O=m.data={},w=m.NATIVE="N",x=m.POLYFILL="P",j=m,E=d,T=function(t){return"object"==typeof t?null!==t:E(t)},P=u,k=T,A=P.String,R=P.TypeError,I=function(t){if(k(t))return t;throw R(A(t)+" is not an object")},M=u,L=d,_=M.String,C=M.TypeError,D=v,F=I,N=function(t){if("object"==typeof t||L(t))return t;throw C("Can't set "+_(t)+" as a prototype")},$=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=D(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return F(e),N(n),r?t(e,n):e.__proto__=n,e}}():void 0),G=d,z=T,V=$,B={},U=T,q=u.document,K=U(q)&&U(q.createElement),W=function(t){return K?q.createElement(t):{}},Y=W,H=!i&&!o((function(){return 7!=Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a})),J=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),X=a,Q=Function.prototype.call,Z=X?Q.bind(Q):function(){return Q.apply(Q,arguments)},tt=u,rt=d,et=function(t){return rt(t)?t:void 0},nt=function(t,r){return arguments.length<2?et(tt[t]):tt[t]&&tt[t][r]},ot=v({}.isPrototypeOf),it=u,ct=nt("navigator","userAgent")||"",ut=it.process,at=it.Deno,ft=ut&&ut.versions||at&&at.version,st=ft&&ft.v8;st&&(e=(r=st.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!e&&ct&&(!(r=ct.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ct.match(/Chrome\/(\d+)/))&&(e=+r[1]);var lt=e,pt=lt,gt=o,vt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),dt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=nt,ht=d,bt=ot,mt=dt,St=u.Object,Ot=mt?function(t){return"symbol"==typeof t}:function(t){var r=yt("Symbol");return ht(r)&&bt(r.prototype,St(t))},wt=u.String,xt=function(t){try{return wt(t)}catch(t){return"Object"}},jt=d,Et=xt,Tt=u.TypeError,Pt=function(t){if(jt(t))return t;throw Tt(Et(t)+" is not a function")},kt=Pt,At=function(t,r){var e=t[r];return null==e?void 0:kt(e)},Rt=Z,It=d,Mt=T,Lt=u.TypeError,_t={exports:{}},Ct=u,Dt=Object.defineProperty,Ft=function(t,r){try{Dt(Ct,t,{value:r,configurable:!0,writable:!0})}catch(e){Ct[t]=r}return r},Nt=Ft,$t=u["__core-js_shared__"]||Nt("__core-js_shared__",{}),Gt=$t;(_t.exports=function(t,r){return Gt[t]||(Gt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=u.TypeError,Vt=function(t){if(null==t)throw zt("Can't call method on "+t);return t},Bt=Vt,Ut=u.Object,qt=function(t){return Ut(Bt(t))},Kt=qt,Wt=v({}.hasOwnProperty),Yt=Object.hasOwn||function(t,r){return Wt(Kt(t),r)},Ht=v,Jt=0,Xt=Math.random(),Qt=Ht(1..toString),Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+Xt,36)},tr=u,rr=_t.exports,er=Yt,nr=Zt,or=vt,ir=dt,cr=rr("wks"),ur=tr.Symbol,ar=ur&&ur.for,fr=ir?ur:ur&&ur.withoutSetter||nr,sr=function(t){if(!er(cr,t)||!or&&"string"!=typeof cr[t]){var r="Symbol."+t;or&&er(ur,t)?cr[t]=ur[t]:cr[t]=ir&&ar?ar(r):fr(r)}return cr[t]},lr=Z,pr=T,gr=Ot,vr=At,dr=function(t,r){var e,n;if("string"===r&&It(e=t.toString)&&!Mt(n=Rt(e,t)))return n;if(It(e=t.valueOf)&&!Mt(n=Rt(e,t)))return n;if("string"!==r&&It(e=t.toString)&&!Mt(n=Rt(e,t)))return n;throw Lt("Can't convert object to primitive value")},yr=sr,hr=u.TypeError,br=yr("toPrimitive"),mr=function(t,r){if(!pr(t)||gr(t))return t;var e,n=vr(t,br);if(n){if(void 0===r&&(r="default"),e=lr(n,t,r),!pr(e)||gr(e))return e;throw hr("Can't convert object to primitive value")}return void 0===r&&(r="number"),dr(t,r)},Sr=Ot,Or=function(t){var r=mr(t,"string");return Sr(r)?r:r+""},wr=i,xr=H,jr=J,Er=I,Tr=Or,Pr=u.TypeError,kr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor;B.f=wr?jr?function(t,r,e){if(Er(t),r=Tr(r),Er(e),"function"==typeof t&&"prototype"===r&&"value"in e&&"writable"in e&&!e.writable){var n=Ar(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:"configurable"in e?e.configurable:n.configurable,enumerable:"enumerable"in e?e.enumerable:n.enumerable,writable:!1})}return kr(t,r,e)}:kr:function(t,r,e){if(Er(t),r=Tr(r),Er(e),xr)try{return kr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw Pr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Rr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Ir=B,Mr=Rr,Lr=i?function(t,r,e){return Ir.f(t,r,Mr(1,e))}:function(t,r,e){return t[r]=e,t},_r={},Cr=v,Dr=Cr({}.toString),Fr=Cr("".slice),Nr=function(t){return Fr(Dr(t),8,-1)},$r=v,Gr=o,zr=Nr,Vr=u.Object,Br=$r("".split),Ur=Gr((function(){return!Vr("z").propertyIsEnumerable(0)}))?function(t){return"String"==zr(t)?Br(t,""):Vr(t)}:Vr,qr=Ur,Kr=Vt,Wr=function(t){return qr(Kr(t))},Yr=Math.ceil,Hr=Math.floor,Jr=function(t){var r=+t;return r!=r||0===r?0:(r>0?Hr:Yr)(r)},Xr=Jr,Qr=Math.max,Zr=Math.min,te=function(t,r){var e=Xr(t);return e<0?Qr(e+r,0):Zr(e,r)},re=Jr,ee=Math.min,ne=function(t){return t>0?ee(re(t),9007199254740991):0},oe=ne,ie=function(t){return oe(t.length)},ce=Wr,ue=te,ae=ie,fe=function(t){return function(r,e,n){var o,i=ce(r),c=ae(i),u=ue(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},se={includes:fe(!0),indexOf:fe(!1)},le={},pe=Yt,ge=Wr,ve=se.indexOf,de=le,ye=v([].push),he=function(t,r){var e,n=ge(t),o=0,i=[];for(e in n)!pe(de,e)&&pe(n,e)&&ye(i,e);for(;r.length>o;)pe(n,e=r[o++])&&(~ve(i,e)||ye(i,e));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=he,Se=be.concat("length","prototype");_r.f=Object.getOwnPropertyNames||function(t){return me(t,Se)};var Oe=T,we=Nr,xe=sr("match"),je={};je[sr("toStringTag")]="z";var Ee="[object z]"===String(je),Te=u,Pe=Ee,ke=d,Ae=Nr,Re=sr("toStringTag"),Ie=Te.Object,Me="Arguments"==Ae(function(){return arguments}()),Le=Pe?Ae:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Ie(t),Re))?e:Me?Ae(r):"Object"==(n=Ae(r))&&ke(r.callee)?"Arguments":n},_e=Le,Ce=u.String,De=function(t){if("Symbol"===_e(t))throw TypeError("Cannot convert a Symbol value to a string");return Ce(t)},Fe=I,Ne=function(){var t=Fe(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},$e=Z,Ge=Yt,ze=ot,Ve=Ne,Be=RegExp.prototype,Ue=function(t){var r=t.flags;return void 0!==r||"flags"in Be||Ge(t,"flags")||!ze(Be,t)?r:$e(Ve,t)},qe=o,Ke=u.RegExp,We=qe((function(){var t=Ke("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ye=We||qe((function(){return!Ke("a","y").sticky})),He={BROKEN_CARET:We||qe((function(){var t=Ke("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ye,UNSUPPORTED_Y:We},Je=B.f,Xe={exports:{}},Qe=d,Ze=$t,tn=v(Function.toString);Qe(Ze.inspectSource)||(Ze.inspectSource=function(t){return tn(t)});var rn,en,nn,on=Ze.inspectSource,cn=d,un=on,an=u.WeakMap,fn=cn(an)&&/native code/.test(un(an)),sn=_t.exports,ln=Zt,pn=sn("keys"),gn=function(t){return pn[t]||(pn[t]=ln(t))},vn=fn,dn=u,yn=v,hn=T,bn=Lr,mn=Yt,Sn=$t,On=gn,wn=le,xn=dn.TypeError,jn=dn.WeakMap;if(vn||Sn.state){var En=Sn.state||(Sn.state=new jn),Tn=yn(En.get),Pn=yn(En.has),kn=yn(En.set);rn=function(t,r){if(Pn(En,t))throw new xn("Object already initialized");return r.facade=t,kn(En,t,r),r},en=function(t){return Tn(En,t)||{}},nn=function(t){return Pn(En,t)}}else{var An=On("state");wn[An]=!0,rn=function(t,r){if(mn(t,An))throw new xn("Object already initialized");return r.facade=t,bn(t,An,r),r},en=function(t){return mn(t,An)?t[An]:{}},nn=function(t){return mn(t,An)}}var Rn={set:rn,get:en,has:nn,enforce:function(t){return nn(t)?en(t):rn(t,{})},getterFor:function(t){return function(r){var e;if(!hn(r)||(e=en(r)).type!==t)throw xn("Incompatible receiver, "+t+" required");return e}}},In=i,Mn=Yt,Ln=Function.prototype,_n=In&&Object.getOwnPropertyDescriptor,Cn=Mn(Ln,"name"),Dn={EXISTS:Cn,PROPER:Cn&&"something"===function(){}.name,CONFIGURABLE:Cn&&(!In||In&&_n(Ln,"name").configurable)},Fn=u,Nn=d,$n=Yt,Gn=Lr,zn=Ft,Vn=on,Bn=Dn.CONFIGURABLE,Un=Rn.get,qn=Rn.enforce,Kn=String(String).split("String");(Xe.exports=function(t,r,e,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,a=n&&void 0!==n.name?n.name:r;Nn(e)&&("Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$n(e,"name")||Bn&&e.name!==a)&&Gn(e,"name",a),(o=qn(e)).source||(o.source=Kn.join("string"==typeof a?a:""))),t!==Fn?(i?!u&&t[r]&&(c=!0):delete t[r],c?t[r]=e:Gn(t,r,e)):c?t[r]=e:zn(r,e)})(Function.prototype,"toString",(function(){return Nn(this)&&Un(this).source||Vn(this)}));var Wn=nt,Yn=B,Hn=i,Jn=sr("species"),Xn=o,Qn=u.RegExp,Zn=Xn((function(){var t=Qn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),to=o,ro=u.RegExp,eo=to((function(){var t=ro("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),no=i,oo=u,io=v,co=j,uo=function(t,r,e){var n,o;return V&&G(n=r.constructor)&&n!==e&&z(o=n.prototype)&&o!==e.prototype&&V(t,o),t},ao=Lr,fo=_r.f,so=ot,lo=function(t){var r;return Oe(t)&&(void 0!==(r=t[xe])?!!r:"RegExp"==we(t))},po=De,go=Ue,vo=He,yo=function(t,r,e){e in t||Je(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},ho=Xe.exports,bo=o,mo=Yt,So=Rn.enforce,Oo=function(t){var r=Wn(t),e=Yn.f;Hn&&r&&!r[Jn]&&e(r,Jn,{configurable:!0,get:function(){return this}})},wo=Zn,xo=eo,jo=sr("match"),Eo=oo.RegExp,To=Eo.prototype,Po=oo.SyntaxError,ko=io(To.exec),Ao=io("".charAt),Ro=io("".replace),Io=io("".indexOf),Mo=io("".slice),Lo=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_o=/a/g,Co=/a/g,Do=new Eo(_o)!==_o,Fo=vo.MISSED_STICKY,No=vo.UNSUPPORTED_Y,$o=no&&(!Do||Fo||wo||xo||bo((function(){return Co[jo]=!1,Eo(_o)!=_o||Eo(Co)==Co||"/a/i"!=Eo(_o,"i")})));if(co("RegExp",$o)){for(var Go=function(t,r){var e,n,o,i,c,u,a=so(To,this),f=lo(t),s=void 0===r,l=[],p=t;if(!a&&f&&s&&t.constructor===Go)return t;if((f||so(To,t))&&(t=t.source,s&&(r=go(p))),t=void 0===t?"":po(t),r=void 0===r?"":po(r),p=t,wo&&"dotAll"in _o&&(n=!!r&&Io(r,"s")>-1)&&(r=Ro(r,/s/g,"")),e=r,Fo&&"sticky"in _o&&(o=!!r&&Io(r,"y")>-1)&&No&&(r=Ro(r,/y/g,"")),xo&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=Ao(t,n)))r+=Ao(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:ko(Lo,Mo(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||mo(c,s))throw new Po("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),c=uo(Eo(t,r),a?this:To,Go),(n||o||l.length)&&(u=So(c),n&&(u.dotAll=!0,u.raw=Go(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=Ao(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+Ao(t,++n);return o}(t),e)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==p)try{ao(c,"source",""===p?"(?:)":p)}catch(t){}return c},zo=fo(Eo),Vo=0;zo.length>Vo;)yo(Go,Eo,zo[Vo++]);To.constructor=Go,Go.prototype=To,ho(oo,"RegExp",Go)}Oo("RegExp");var Bo={},Uo={},qo={}.propertyIsEnumerable,Ko=Object.getOwnPropertyDescriptor,Wo=Ko&&!qo.call({1:2},1);Uo.f=Wo?function(t){var r=Ko(this,t);return!!r&&r.enumerable}:qo;var Yo=i,Ho=Z,Jo=Uo,Xo=Rr,Qo=Wr,Zo=Or,ti=Yt,ri=H,ei=Object.getOwnPropertyDescriptor;Bo.f=Yo?ei:function(t,r){if(t=Qo(t),r=Zo(r),ri)try{return ei(t,r)}catch(t){}if(ti(t,r))return Xo(!Ho(Jo.f,t,r),t[r])};var ni={};ni.f=Object.getOwnPropertySymbols;var oi=nt,ii=_r,ci=ni,ui=I,ai=v([].concat),fi=oi("Reflect","ownKeys")||function(t){var r=ii.f(ui(t)),e=ci.f;return e?ai(r,e(t)):r},si=Yt,li=fi,pi=Bo,gi=B,vi=u,di=Bo.f,yi=Lr,hi=Xe.exports,bi=Ft,mi=function(t,r,e){for(var n=li(r),o=gi.f,i=pi.f,c=0;c<n.length;c++){var u=n[c];si(t,u)||e&&si(e,u)||o(t,u,i(r,u))}},Si=j,Oi=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?vi:f?vi[u]||bi(u,{}):(vi[u]||{}).prototype)for(n in r){if(i=r[n],o=t.noTargetGet?(c=di(e,n))&&c.value:e[n],!Si(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;mi(i,o)}(t.sham||o&&o.sham)&&yi(i,"sham",!0),hi(e,n,i,t)}},wi={},xi=he,ji=be,Ei=Object.keys||function(t){return xi(t,ji)},Ti=i,Pi=J,ki=B,Ai=I,Ri=Wr,Ii=Ei;wi.f=Ti&&!Pi?Object.defineProperties:function(t,r){Ai(t);for(var e,n=Ri(r),o=Ii(r),i=o.length,c=0;i>c;)ki.f(t,e=o[c++],n[e]);return t};var Mi,Li=nt("document","documentElement"),_i=I,Ci=wi,Di=be,Fi=le,Ni=Li,$i=W,Gi=gn("IE_PROTO"),zi=function(){},Vi=function(t){return"<script>"+t+"<\/script>"},Bi=function(t){t.write(Vi("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ui=function(){try{Mi=new ActiveXObject("htmlfile")}catch(t){}var t,r;Ui="undefined"!=typeof document?document.domain&&Mi?Bi(Mi):((r=$i("iframe")).style.display="none",Ni.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Vi("document.F=Object")),t.close(),t.F):Bi(Mi);for(var e=Di.length;e--;)delete Ui.prototype[Di[e]];return Ui()};Fi[Gi]=!0;var qi=Object.create||function(t,r){var e;return null!==t?(zi.prototype=_i(t),e=new zi,zi.prototype=null,e[Gi]=t):e=Ui(),void 0===r?e:Ci.f(e,r)},Ki=Z,Wi=v,Yi=De,Hi=Ne,Ji=He,Xi=_t.exports,Qi=qi,Zi=Rn.get,tc=Zn,rc=eo,ec=Xi("native-string-replace",String.prototype.replace),nc=RegExp.prototype.exec,oc=nc,ic=Wi("".charAt),cc=Wi("".indexOf),uc=Wi("".replace),ac=Wi("".slice),fc=function(){var t=/a/,r=/b*/g;return Ki(nc,t,"a"),Ki(nc,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),sc=Ji.BROKEN_CARET,lc=void 0!==/()??/.exec("")[1];(fc||lc||sc||tc||rc)&&(oc=function(t){var r,e,n,o,i,c,u,a=this,f=Zi(a),s=Yi(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Ki(oc,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=sc&&a.sticky,v=Ki(Hi,a),d=a.source,y=0,h=s;if(g&&(v=uc(v,"y",""),-1===cc(v,"g")&&(v+="g"),h=ac(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==ic(s,a.lastIndex-1))&&(d="(?: "+d+")",h=" "+h,y++),e=new RegExp("^(?:"+d+")",v)),lc&&(e=new RegExp("^"+d+"$(?!\\s)",v)),fc&&(n=a.lastIndex),o=Ki(nc,g?e:a,h),g?o?(o.input=ac(o.input,y),o[0]=ac(o[0],y),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:fc&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),lc&&o&&o.length>1&&Ki(ec,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=Qi(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var pc=oc;Oi({target:"RegExp",proto:!0,forced:/./.exec!==pc},{exec:pc});var gc=Dn.PROPER,vc=Xe.exports,dc=I,yc=De,hc=o,bc=Ue,mc=RegExp.prototype.toString,Sc=hc((function(){return"/a/b"!=mc.call({source:"a",flags:"b"})})),Oc=gc&&"toString"!=mc.name;(Sc||Oc)&&vc(RegExp.prototype,"toString",(function(){var t=dc(this);return"/"+yc(t.source)+"/"+yc(bc(t))}),{unsafe:!0});var wc=a,xc=Function.prototype,jc=xc.apply,Ec=xc.call,Tc="object"==typeof Reflect&&Reflect.apply||(wc?Ec.bind(jc):function(){return Ec.apply(jc,arguments)}),Pc=v,kc=Xe.exports,Ac=pc,Rc=o,Ic=sr,Mc=Lr,Lc=Ic("species"),_c=RegExp.prototype,Cc=v,Dc=Jr,Fc=De,Nc=Vt,$c=Cc("".charAt),Gc=Cc("".charCodeAt),zc=Cc("".slice),Vc=function(t){return function(r,e){var n,o,i=Fc(Nc(r)),c=Dc(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=Gc(i,c))<55296||n>56319||c+1===u||(o=Gc(i,c+1))<56320||o>57343?t?$c(i,c):n:t?zc(i,c,c+2):o-56320+(n-55296<<10)+65536}},Bc={codeAt:Vc(!1),charAt:Vc(!0)}.charAt,Uc=v,qc=qt,Kc=Math.floor,Wc=Uc("".charAt),Yc=Uc("".replace),Hc=Uc("".slice),Jc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Xc=/\$([$&'`]|\d{1,2})/g,Qc=Z,Zc=I,tu=d,ru=Nr,eu=pc,nu=u.TypeError,ou=Tc,iu=Z,cu=v,uu=function(t,r,e,n){var o=Ic(t),i=!Rc((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!Rc((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Lc]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=Pc(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var c=Pc(t),a=r.exec;return a===Ac||a===_c.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));kc(String.prototype,t,a[0]),kc(_c,o,a[1])}n&&Mc(_c[o],"sham",!0)},au=o,fu=I,su=d,lu=Jr,pu=ne,gu=De,vu=Vt,du=function(t,r,e){return r+(e?Bc(t,r).length:1)},yu=At,hu=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=Xc;return void 0!==o&&(o=qc(o),a=Jc),Yc(i,a,(function(i,a){var f;switch(Wc(a,0)){case"$":return"$";case"&":return t;case"`":return Hc(r,0,e);case"'":return Hc(r,c);case"<":f=o[Hc(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=Kc(s/10);return 0===l?i:l<=u?void 0===n[l-1]?Wc(a,1):n[l-1]+Wc(a,1):i}f=n[s-1]}return void 0===f?"":f}))},bu=function(t,r){var e=t.exec;if(tu(e)){var n=Qc(e,t,r);return null!==n&&Zc(n),n}if("RegExp"===ru(t))return Qc(eu,t,r);throw nu("RegExp#exec called on incompatible receiver")},mu=sr("replace"),Su=Math.max,Ou=Math.min,wu=cu([].concat),xu=cu([].push),ju=cu("".indexOf),Eu=cu("".slice),Tu="$0"==="a".replace(/./,"$0"),Pu=!!/./[mu]&&""===/./[mu]("a","$0");uu("replace",(function(t,r,e){var n=Pu?"$":"$0";return[function(t,e){var n=vu(this),o=null==t?void 0:yu(t,mu);return o?iu(o,t,n,e):iu(r,gu(n),t,e)},function(t,o){var i=fu(this),c=gu(t);if("string"==typeof o&&-1===ju(o,n)&&-1===ju(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=su(o);a||(o=gu(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=bu(i,c);if(null===p)break;if(xu(l,p),!f)break;""===gu(p[0])&&(i.lastIndex=du(c,pu(i.lastIndex),s))}for(var g,v="",d=0,y=0;y<l.length;y++){for(var h=gu((p=l[y])[0]),b=Su(Ou(lu(p.index),c.length),0),m=[],S=1;S<p.length;S++)xu(m,void 0===(g=p[S])?g:String(g));var O=p.groups;if(a){var w=wu([h],m,b,c);void 0!==O&&xu(w,O);var x=gu(ou(o,void 0,w))}else x=hu(h,c,b,m,O,o);b>=d&&(v+=Eu(c,d,b)+x,d=b+h.length)}return v+Eu(c,d)}]}),!!au((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Tu||Pu);var ku=Le,Au=Ee?{}.toString:function(){return"[object "+ku(this)+"]"},Ru=Ee,Iu=Xe.exports,Mu=Au;Ru||Iu(Object.prototype,"toString",Mu,{unsafe:!0});var Lu=W("span").classList,_u=Lu&&Lu.constructor&&Lu.constructor.prototype,Cu=_u===Object.prototype?void 0:_u,Du=Pt,Fu=a,Nu=v(v.bind),$u=Nr,Gu=Array.isArray||function(t){return"Array"==$u(t)},zu=v,Vu=o,Bu=d,Uu=Le,qu=on,Ku=function(){},Wu=[],Yu=nt("Reflect","construct"),Hu=/^\s*(?:class|function)\b/,Ju=zu(Hu.exec),Xu=!Hu.exec(Ku),Qu=function(t){if(!Bu(t))return!1;try{return Yu(Ku,Wu,t),!0}catch(t){return!1}},Zu=function(t){if(!Bu(t))return!1;switch(Uu(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xu||!!Ju(Hu,qu(t))}catch(t){return!0}};Zu.sham=!0;var ta=!Yu||Vu((function(){var t;return Qu(Qu.call)||!Qu(Object)||!Qu((function(){t=!0}))||t}))?Zu:Qu,ra=u,ea=Gu,na=ta,oa=T,ia=sr("species"),ca=ra.Array,ua=function(t){var r;return ea(t)&&(r=t.constructor,(na(r)&&(r===ca||ea(r.prototype))||oa(r)&&null===(r=r[ia]))&&(r=void 0)),void 0===r?ca:r},aa=function(t,r){return new(ua(t))(0===r?0:r)},fa=function(t,r){return Du(t),void 0===r?t:Fu?Nu(t,r):function(){return t.apply(r,arguments)}},sa=Ur,la=qt,pa=ie,ga=aa,va=v([].push),da=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var p,g,v=la(a),d=sa(v),y=fa(f,s),h=pa(d),b=0,m=l||ga,S=r?m(a,h):e||c?m(a,0):void 0;h>b;b++)if((u||b in d)&&(g=y(p=d[b],b,v),t))if(r)S[b]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:va(S,p)}else switch(t){case 4:return!1;case 7:va(S,p)}return i?-1:n||o?o:S}},ya={forEach:da(0),map:da(1),filter:da(2),some:da(3),every:da(4),find:da(5),findIndex:da(6),filterReject:da(7)},ha=o,ba=function(t,r){var e=[][t];return!!e&&ha((function(){e.call(null,r||function(){return 1},1)}))},ma=ya.forEach,Sa=u,Oa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},wa=Cu,xa=ba("forEach")?[].forEach:function(t){return ma(this,t,arguments.length>1?arguments[1]:void 0)},ja=Lr,Ea=function(t){if(t&&t.forEach!==xa)try{ja(t,"forEach",xa)}catch(r){t.forEach=xa}};for(var Ta in Oa)Oa[Ta]&&Ea(Sa[Ta]&&Sa[Ta].prototype);Ea(wa);var Pa=Oi,ka=Gu,Aa=v([].reverse),Ra=[1,2];Pa({target:"Array",proto:!0,forced:String(Ra)===String(Ra.reverse())},{reverse:function(){return ka(this)&&(this.length=this.length),Aa(this)}});var Ia=Or,Ma=B,La=Rr,_a=function(t,r,e){var n=Ia(r);n in t?Ma.f(t,n,La(0,e)):t[n]=e},Ca=o,Da=lt,Fa=sr("species"),Na=function(t){return Da>=51||!Ca((function(){var r=[];return(r.constructor={})[Fa]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},$a=v([].slice),Ga=Oi,za=u,Va=Gu,Ba=ta,Ua=T,qa=te,Ka=ie,Wa=Wr,Ya=_a,Ha=sr,Ja=$a,Xa=Na("slice"),Qa=Ha("species"),Za=za.Array,tf=Math.max;Ga({target:"Array",proto:!0,forced:!Xa},{slice:function(t,r){var e,n,o,i=Wa(this),c=Ka(i),u=qa(t,c),a=qa(void 0===r?c:r,c);if(Va(i)&&(e=i.constructor,(Ba(e)&&(e===Za||Va(e.prototype))||Ua(e)&&null===(e=e[Qa]))&&(e=void 0),e===Za||void 0===e))return Ja(i,u,a);for(n=new(void 0===e?Za:e)(tf(a-u,0)),o=0;u<a;u++,o++)u in i&&Ya(n,o,i[u]);return n.length=o,n}});var rf=Oi,ef=Ur,nf=Wr,of=ba,cf=v([].join),uf=ef!=Object,af=of("join",",");rf({target:"Array",proto:!0,forced:uf||!af},{join:function(t){return cf(nf(this),void 0===t?",":t)}});var ff=Oi,sf=u,lf=o,pf=Gu,gf=T,vf=qt,df=ie,yf=_a,hf=aa,bf=Na,mf=lt,Sf=sr("isConcatSpreadable"),Of=sf.TypeError,wf=mf>=51||!lf((function(){var t=[];return t[Sf]=!1,t.concat()[0]!==t})),xf=bf("concat"),jf=function(t){if(!gf(t))return!1;var r=t[Sf];return void 0!==r?!!r:pf(t)};ff({target:"Array",proto:!0,forced:!wf||!xf},{concat:function(t){var r,e,n,o,i,c=vf(this),u=hf(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(jf(i=-1===r?c:arguments[r])){if(a+(o=df(i))>9007199254740991)throw Of("Maximum allowed index exceeded");for(e=0;e<o;e++,a++)e in i&&yf(u,a,i[e])}else{if(a>=9007199254740991)throw Of("Maximum allowed index exceeded");yf(u,a++,i)}return u.length=a,u}});var Ef=ya.map;Oi({target:"Array",proto:!0,forced:!Na("map")},{map:function(t){return Ef(this,t,arguments.length>1?arguments[1]:void 0)}});var Tf=qt,Pf=Ei;Oi({target:"Object",stat:!0,forced:o((function(){Pf(1)}))},{keys:function(t){return Pf(Tf(t))}});var kf={},Af=te,Rf=ie,If=_a,Mf=u.Array,Lf=Math.max,_f=Nr,Cf=Wr,Df=_r.f,Ff=function(t,r,e){for(var n=Rf(t),o=Af(r,n),i=Af(void 0===e?n:e,n),c=Mf(Lf(i-o,0)),u=0;o<i;o++,u++)If(c,u,t[o]);return c.length=u,c},Nf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];kf.f=function(t){return Nf&&"Window"==_f(t)?function(t){try{return Df(t)}catch(t){return Ff(Nf)}}(t):Df(Cf(t))};var $f={},Gf=sr;$f.f=Gf;var zf=u,Vf=Yt,Bf=$f,Uf=B.f,qf=Z,Kf=nt,Wf=sr,Yf=Xe.exports,Hf=B.f,Jf=Yt,Xf=sr("toStringTag"),Qf=Oi,Zf=u,ts=Z,rs=v,es=i,ns=vt,os=o,is=Yt,cs=ot,us=I,as=Wr,fs=Or,ss=De,ls=Rr,ps=qi,gs=Ei,vs=_r,ds=kf,ys=ni,hs=Bo,bs=B,ms=wi,Ss=Uo,Os=Xe.exports,ws=_t.exports,xs=le,js=Zt,Es=sr,Ts=$f,Ps=function(t){var r=zf.Symbol||(zf.Symbol={});Vf(r,t)||Uf(r,t,{value:Bf.f(t)})},ks=function(){var t=Kf("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Wf("toPrimitive");r&&!r[n]&&Yf(r,n,(function(t){return qf(e,this)}))},As=function(t,r,e){t&&!e&&(t=t.prototype),t&&!Jf(t,Xf)&&Hf(t,Xf,{configurable:!0,value:r})},Rs=Rn,Is=ya.forEach,Ms=gn("hidden"),Ls=Rs.set,_s=Rs.getterFor("Symbol"),Cs=Object.prototype,Ds=Zf.Symbol,Fs=Ds&&Ds.prototype,Ns=Zf.TypeError,$s=Zf.QObject,Gs=hs.f,zs=bs.f,Vs=ds.f,Bs=Ss.f,Us=rs([].push),qs=ws("symbols"),Ks=ws("op-symbols"),Ws=ws("wks"),Ys=!$s||!$s.prototype||!$s.prototype.findChild,Hs=es&&os((function(){return 7!=ps(zs({},"a",{get:function(){return zs(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=Gs(Cs,r);n&&delete Cs[r],zs(t,r,e),n&&t!==Cs&&zs(Cs,r,n)}:zs,Js=function(t,r){var e=qs[t]=ps(Fs);return Ls(e,{type:"Symbol",tag:t,description:r}),es||(e.description=r),e},Xs=function(t,r,e){t===Cs&&Xs(Ks,r,e),us(t);var n=fs(r);return us(e),is(qs,n)?(e.enumerable?(is(t,Ms)&&t[Ms][n]&&(t[Ms][n]=!1),e=ps(e,{enumerable:ls(0,!1)})):(is(t,Ms)||zs(t,Ms,ls(1,{})),t[Ms][n]=!0),Hs(t,n,e)):zs(t,n,e)},Qs=function(t,r){us(t);var e=as(r),n=gs(e).concat(el(e));return Is(n,(function(r){es&&!ts(Zs,e,r)||Xs(t,r,e[r])})),t},Zs=function(t){var r=fs(t),e=ts(Bs,this,r);return!(this===Cs&&is(qs,r)&&!is(Ks,r))&&(!(e||!is(this,r)||!is(qs,r)||is(this,Ms)&&this[Ms][r])||e)},tl=function(t,r){var e=as(t),n=fs(r);if(e!==Cs||!is(qs,n)||is(Ks,n)){var o=Gs(e,n);return!o||!is(qs,n)||is(e,Ms)&&e[Ms][n]||(o.enumerable=!0),o}},rl=function(t){var r=Vs(as(t)),e=[];return Is(r,(function(t){is(qs,t)||is(xs,t)||Us(e,t)})),e},el=function(t){var r=t===Cs,e=Vs(r?Ks:as(t)),n=[];return Is(e,(function(t){!is(qs,t)||r&&!is(Cs,t)||Us(n,qs[t])})),n};ns||(Os(Fs=(Ds=function(){if(cs(Fs,this))throw Ns("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ss(arguments[0]):void 0,r=js(t),e=function(t){this===Cs&&ts(e,Ks,t),is(this,Ms)&&is(this[Ms],r)&&(this[Ms][r]=!1),Hs(this,r,ls(1,t))};return es&&Ys&&Hs(Cs,r,{configurable:!0,set:e}),Js(r,t)}).prototype,"toString",(function(){return _s(this).tag})),Os(Ds,"withoutSetter",(function(t){return Js(js(t),t)})),Ss.f=Zs,bs.f=Xs,ms.f=Qs,hs.f=tl,vs.f=ds.f=rl,ys.f=el,Ts.f=function(t){return Js(Es(t),t)},es&&(zs(Fs,"description",{configurable:!0,get:function(){return _s(this).description}}),Os(Cs,"propertyIsEnumerable",Zs,{unsafe:!0}))),Qf({global:!0,wrap:!0,forced:!ns,sham:!ns},{Symbol:Ds}),Is(gs(Ws),(function(t){Ps(t)})),Qf({target:"Symbol",stat:!0,forced:!ns},{useSetter:function(){Ys=!0},useSimple:function(){Ys=!1}}),Qf({target:"Object",stat:!0,forced:!ns,sham:!es},{create:function(t,r){return void 0===r?ps(t):Qs(ps(t),r)},defineProperty:Xs,defineProperties:Qs,getOwnPropertyDescriptor:tl}),Qf({target:"Object",stat:!0,forced:!ns},{getOwnPropertyNames:rl}),ks(),As(Ds,"Symbol"),xs[Ms]=!0;var nl=vt&&!!Symbol.for&&!!Symbol.keyFor,ol=Oi,il=nt,cl=Yt,ul=De,al=_t.exports,fl=nl,sl=al("string-to-symbol-registry"),ll=al("symbol-to-string-registry");ol({target:"Symbol",stat:!0,forced:!fl},{for:function(t){var r=ul(t);if(cl(sl,r))return sl[r];var e=il("Symbol")(r);return sl[r]=e,ll[e]=r,e}});var pl=Oi,gl=Yt,vl=Ot,dl=xt,yl=nl,hl=(0,_t.exports)("symbol-to-string-registry");pl({target:"Symbol",stat:!0,forced:!yl},{keyFor:function(t){if(!vl(t))throw TypeError(dl(t)+" is not a symbol");if(gl(hl,t))return hl[t]}});var bl=Oi,ml=nt,Sl=Tc,Ol=Z,wl=v,xl=o,jl=Gu,El=d,Tl=T,Pl=Ot,kl=$a,Al=vt,Rl=ml("JSON","stringify"),Il=wl(/./.exec),Ml=wl("".charAt),Ll=wl("".charCodeAt),_l=wl("".replace),Cl=wl(1..toString),Dl=/[\uD800-\uDFFF]/g,Fl=/^[\uD800-\uDBFF]$/,Nl=/^[\uDC00-\uDFFF]$/,$l=!Al||xl((function(){var t=ml("Symbol")();return"[null]"!=Rl([t])||"{}"!=Rl({a:t})||"{}"!=Rl(Object(t))})),Gl=xl((function(){return'"\\udf06\\ud834"'!==Rl("\udf06\ud834")||'"\\udead"'!==Rl("\udead")})),zl=function(t,r){var e=kl(arguments),n=r;if((Tl(r)||void 0!==t)&&!Pl(t))return jl(r)||(r=function(t,r){if(El(n)&&(r=Ol(n,this,t,r)),!Pl(r))return r}),e[1]=r,Sl(Rl,null,e)},Vl=function(t,r,e){var n=Ml(e,r-1),o=Ml(e,r+1);return Il(Fl,t)&&!Il(Nl,o)||Il(Nl,t)&&!Il(Fl,n)?"\\u"+Cl(Ll(t,0),16):t};Rl&&bl({target:"JSON",stat:!0,forced:$l||Gl},{stringify:function(t,r,e){var n=kl(arguments),o=Sl($l?zl:Rl,null,n);return Gl&&"string"==typeof o?_l(o,Dl,Vl):o}});var Bl=ni,Ul=qt;Oi({target:"Object",stat:!0,forced:!vt||o((function(){Bl.f(1)}))},{getOwnPropertySymbols:function(t){var r=Bl.f;return r?r(Ul(t)):[]}});var ql=ya.filter;Oi({target:"Array",proto:!0,forced:!Na("filter")},{filter:function(t){return ql(this,t,arguments.length>1?arguments[1]:void 0)}});var Kl=Oi,Wl=o,Yl=Wr,Hl=Bo.f,Jl=i,Xl=Wl((function(){Hl(1)}));Kl({target:"Object",stat:!0,forced:!Jl||Xl,sham:!Jl},{getOwnPropertyDescriptor:function(t,r){return Hl(Yl(t),r)}});var Ql=fi,Zl=Wr,tp=Bo,rp=_a;function ep(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}Oi({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Zl(t),o=tp.f,i=Ql(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&rp(c,r,e);return c}});var np=Vt,op=De,ip=/"/g,cp=v("".replace),up=o,ap=function(t,r,e,n){var o=op(np(t)),i="<"+r;return""!==e&&(i+=" "+e+'="'+cp(op(n),ip,"&quot;")+'"'),i+">"+o+"</"+r+">"},fp=function(t){return up((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};function sp(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}Oi({target:"String",proto:!0,forced:fp("anchor")},{anchor:function(t){return ap(this,"a","name",t)}});var lp=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},pp={nodes:{horizontal_rule:function(){return{singleTag:"hr"}},blockquote:function(){return{tag:"blockquote"}},bullet_list:function(){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:lp(t.attrs,["src","alt","title"])}]}},list_item:function(){return{tag:"li"}},ordered_list:function(){return{tag:"ol"}},paragraph:function(){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?sp(Object(e),!0).forEach((function(r){ep(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sp(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},gp=function(){function r(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),t||(t=pp),this.marks=t.marks||[],this.nodes=t.nodes||[]}var e,n,o;return e=r,n=[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}],n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),r}();module.exports=gp;
"use strict";function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=a,s=Function.prototype,l=s.bind,p=s.call,g=f&&l.bind(p,p),v=f?function(t){return t&&g(t)}:function(t){return t&&function(){return p.apply(t,arguments)}},y=function(t){return"function"==typeof t},d=o,h=y,b=/#|\.prototype\./,m=function(t,r){var e=O[S(t)];return e==x||e!=w&&(h(r)?d(r):!!r)},S=m.normalize=function(t){return String(t).replace(b,".").toLowerCase()},O=m.data={},w=m.NATIVE="N",x=m.POLYFILL="P",j=m,E=y,P=function(t){return"object"==typeof t?null!==t:E(t)},k=P,T=String,A=TypeError,R=function(t){if(k(t))return t;throw A(T(t)+" is not an object")},I=y,M=String,L=TypeError,_=v,C=R,D=function(t){if("object"==typeof t||I(t))return t;throw L("Can't set "+M(t)+" as a prototype")},F=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return C(e),D(n),r?t(e,n):e.__proto__=n,e}}():void 0),N=y,$=P,G=F,z={},V=P,B=u.document,U=V(B)&&V(B.createElement),q=function(t){return U?B.createElement(t):{}},W=q,K=!i&&!o((function(){return 7!=Object.defineProperty(W("div"),"a",{get:function(){return 7}}).a})),Y=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),H=a,J=Function.prototype.call,X=H?J.bind(J):function(){return J.apply(J,arguments)},Q=u,Z=y,tt=function(t){return Z(t)?t:void 0},rt=function(t,r){return arguments.length<2?tt(Q[t]):Q[t]&&Q[t][r]},et=v({}.isPrototypeOf),nt=u,ot=rt("navigator","userAgent")||"",it=nt.process,ct=nt.Deno,ut=it&&it.versions||ct&&ct.version,at=ut&&ut.v8;at&&(e=(r=at.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!e&&ot&&(!(r=ot.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ot.match(/Chrome\/(\d+)/))&&(e=+r[1]);var ft=e,st=ft,lt=o,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),gt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=rt,yt=y,dt=et,ht=Object,bt=gt?function(t){return"symbol"==typeof t}:function(t){var r=vt("Symbol");return yt(r)&&dt(r.prototype,ht(t))},mt=String,St=function(t){try{return mt(t)}catch(t){return"Object"}},Ot=y,wt=St,xt=TypeError,jt=function(t){if(Ot(t))return t;throw xt(wt(t)+" is not a function")},Et=jt,Pt=function(t,r){var e=t[r];return null==e?void 0:Et(e)},kt=X,Tt=y,At=P,Rt=TypeError,It={exports:{}},Mt=u,Lt=Object.defineProperty,_t=function(t,r){try{Lt(Mt,t,{value:r,configurable:!0,writable:!0})}catch(e){Mt[t]=r}return r},Ct=_t,Dt=u["__core-js_shared__"]||Ct("__core-js_shared__",{}),Ft=Dt;(It.exports=function(t,r){return Ft[t]||(Ft[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Nt=TypeError,$t=function(t){if(null==t)throw Nt("Can't call method on "+t);return t},Gt=$t,zt=Object,Vt=function(t){return zt(Gt(t))},Bt=Vt,Ut=v({}.hasOwnProperty),qt=Object.hasOwn||function(t,r){return Ut(Bt(t),r)},Wt=v,Kt=0,Yt=Math.random(),Ht=Wt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Kt+Yt,36)},Xt=u,Qt=It.exports,Zt=qt,tr=Jt,rr=pt,er=gt,nr=Qt("wks"),or=Xt.Symbol,ir=or&&or.for,cr=er?or:or&&or.withoutSetter||tr,ur=function(t){if(!Zt(nr,t)||!rr&&"string"!=typeof nr[t]){var r="Symbol."+t;rr&&Zt(or,t)?nr[t]=or[t]:nr[t]=er&&ir?ir(r):cr(r)}return nr[t]},ar=X,fr=P,sr=bt,lr=Pt,pr=function(t,r){var e,n;if("string"===r&&Tt(e=t.toString)&&!At(n=kt(e,t)))return n;if(Tt(e=t.valueOf)&&!At(n=kt(e,t)))return n;if("string"!==r&&Tt(e=t.toString)&&!At(n=kt(e,t)))return n;throw Rt("Can't convert object to primitive value")},gr=TypeError,vr=ur("toPrimitive"),yr=function(t,r){if(!fr(t)||sr(t))return t;var e,n=lr(t,vr);if(n){if(void 0===r&&(r="default"),e=ar(n,t,r),!fr(e)||sr(e))return e;throw gr("Can't convert object to primitive value")}return void 0===r&&(r="number"),pr(t,r)},dr=bt,hr=function(t){var r=yr(t,"string");return dr(r)?r:r+""},br=i,mr=K,Sr=Y,Or=R,wr=hr,xr=TypeError,jr=Object.defineProperty,Er=Object.getOwnPropertyDescriptor;z.f=br?Sr?function(t,r,e){if(Or(t),r=wr(r),Or(e),"function"==typeof t&&"prototype"===r&&"value"in e&&"writable"in e&&!e.writable){var n=Er(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:"configurable"in e?e.configurable:n.configurable,enumerable:"enumerable"in e?e.enumerable:n.enumerable,writable:!1})}return jr(t,r,e)}:jr:function(t,r,e){if(Or(t),r=wr(r),Or(e),mr)try{return jr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw xr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Pr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},kr=z,Tr=Pr,Ar=i?function(t,r,e){return kr.f(t,r,Tr(1,e))}:function(t,r,e){return t[r]=e,t},Rr={},Ir=v,Mr=Ir({}.toString),Lr=Ir("".slice),_r=function(t){return Lr(Mr(t),8,-1)},Cr=o,Dr=_r,Fr=Object,Nr=v("".split),$r=Cr((function(){return!Fr("z").propertyIsEnumerable(0)}))?function(t){return"String"==Dr(t)?Nr(t,""):Fr(t)}:Fr,Gr=$r,zr=$t,Vr=function(t){return Gr(zr(t))},Br=Math.ceil,Ur=Math.floor,qr=Math.trunc||function(t){var r=+t;return(r>0?Ur:Br)(r)},Wr=function(t){var r=+t;return r!=r||0===r?0:qr(r)},Kr=Wr,Yr=Math.max,Hr=Math.min,Jr=function(t,r){var e=Kr(t);return e<0?Yr(e+r,0):Hr(e,r)},Xr=Wr,Qr=Math.min,Zr=function(t){return t>0?Qr(Xr(t),9007199254740991):0},te=Zr,re=function(t){return te(t.length)},ee=Vr,ne=Jr,oe=re,ie=function(t){return function(r,e,n){var o,i=ee(r),c=oe(i),u=ne(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},ce={includes:ie(!0),indexOf:ie(!1)},ue={},ae=qt,fe=Vr,se=ce.indexOf,le=ue,pe=v([].push),ge=function(t,r){var e,n=fe(t),o=0,i=[];for(e in n)!ae(le,e)&&ae(n,e)&&pe(i,e);for(;r.length>o;)ae(n,e=r[o++])&&(~se(i,e)||pe(i,e));return i},ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=ge,de=ve.concat("length","prototype");Rr.f=Object.getOwnPropertyNames||function(t){return ye(t,de)};var he=P,be=_r,me=ur("match"),Se={};Se[ur("toStringTag")]="z";var Oe="[object z]"===String(Se),we=Oe,xe=y,je=_r,Ee=ur("toStringTag"),Pe=Object,ke="Arguments"==je(function(){return arguments}()),Te=we?je:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Pe(t),Ee))?e:ke?je(r):"Object"==(n=je(r))&&xe(r.callee)?"Arguments":n},Ae=Te,Re=String,Ie=function(t){if("Symbol"===Ae(t))throw TypeError("Cannot convert a Symbol value to a string");return Re(t)},Me=R,Le=function(){var t=Me(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},_e=X,Ce=qt,De=et,Fe=Le,Ne=RegExp.prototype,$e=function(t){var r=t.flags;return void 0!==r||"flags"in Ne||Ce(t,"flags")||!De(Ne,t)?r:_e(Fe,t)},Ge=o,ze=u.RegExp,Ve=Ge((function(){var t=ze("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Be=Ve||Ge((function(){return!ze("a","y").sticky})),Ue={BROKEN_CARET:Ve||Ge((function(){var t=ze("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Be,UNSUPPORTED_Y:Ve},qe=z.f,We={exports:{}},Ke=i,Ye=qt,He=Function.prototype,Je=Ke&&Object.getOwnPropertyDescriptor,Xe=Ye(He,"name"),Qe={EXISTS:Xe,PROPER:Xe&&"something"===function(){}.name,CONFIGURABLE:Xe&&(!Ke||Ke&&Je(He,"name").configurable)},Ze=y,tn=Dt,rn=v(Function.toString);Ze(tn.inspectSource)||(tn.inspectSource=function(t){return rn(t)});var en,nn,on,cn=tn.inspectSource,un=y,an=cn,fn=u.WeakMap,sn=un(fn)&&/native code/.test(an(fn)),ln=It.exports,pn=Jt,gn=ln("keys"),vn=function(t){return gn[t]||(gn[t]=pn(t))},yn=sn,dn=u,hn=v,bn=P,mn=Ar,Sn=qt,On=Dt,wn=vn,xn=ue,jn=dn.TypeError,En=dn.WeakMap;if(yn||On.state){var Pn=On.state||(On.state=new En),kn=hn(Pn.get),Tn=hn(Pn.has),An=hn(Pn.set);en=function(t,r){if(Tn(Pn,t))throw new jn("Object already initialized");return r.facade=t,An(Pn,t,r),r},nn=function(t){return kn(Pn,t)||{}},on=function(t){return Tn(Pn,t)}}else{var Rn=wn("state");xn[Rn]=!0,en=function(t,r){if(Sn(t,Rn))throw new jn("Object already initialized");return r.facade=t,mn(t,Rn,r),r},nn=function(t){return Sn(t,Rn)?t[Rn]:{}},on=function(t){return Sn(t,Rn)}}var In={set:en,get:nn,has:on,enforce:function(t){return on(t)?nn(t):en(t,{})},getterFor:function(t){return function(r){var e;if(!bn(r)||(e=nn(r)).type!==t)throw jn("Incompatible receiver, "+t+" required");return e}}},Mn=o,Ln=y,_n=qt,Cn=i,Dn=Qe.CONFIGURABLE,Fn=cn,Nn=In.enforce,$n=In.get,Gn=Object.defineProperty,zn=Cn&&!Mn((function(){return 8!==Gn((function(){}),"length",{value:8}).length})),Vn=String(String).split("String"),Bn=We.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!_n(t,"name")||Dn&&t.name!==r)&&(Cn?Gn(t,"name",{value:r,configurable:!0}):t.name=r),zn&&e&&_n(e,"arity")&&t.length!==e.arity&&Gn(t,"length",{value:e.arity});try{e&&_n(e,"constructor")&&e.constructor?Cn&&Gn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Nn(t);return _n(n,"source")||(n.source=Vn.join("string"==typeof r?r:"")),t};Function.prototype.toString=Bn((function(){return Ln(this)&&$n(this).source||Fn(this)}),"toString");var Un=y,qn=z,Wn=We.exports,Kn=_t,Yn=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Un(e)&&Wn(e,i,n),n.global)o?t[r]=e:Kn(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(t){}o?t[r]=e:qn.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Hn=rt,Jn=z,Xn=i,Qn=ur("species"),Zn=o,to=u.RegExp,ro=Zn((function(){var t=to(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),eo=o,no=u.RegExp,oo=eo((function(){var t=no("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),io=i,co=u,uo=v,ao=j,fo=function(t,r,e){var n,o;return G&&N(n=r.constructor)&&n!==e&&$(o=n.prototype)&&o!==e.prototype&&G(t,o),t},so=Ar,lo=Rr.f,po=et,go=function(t){var r;return he(t)&&(void 0!==(r=t[me])?!!r:"RegExp"==be(t))},vo=Ie,yo=$e,ho=Ue,bo=function(t,r,e){e in t||qe(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},mo=Yn,So=o,Oo=qt,wo=In.enforce,xo=function(t){var r=Hn(t),e=Jn.f;Xn&&r&&!r[Qn]&&e(r,Qn,{configurable:!0,get:function(){return this}})},jo=ro,Eo=oo,Po=ur("match"),ko=co.RegExp,To=ko.prototype,Ao=co.SyntaxError,Ro=uo(To.exec),Io=uo("".charAt),Mo=uo("".replace),Lo=uo("".indexOf),_o=uo("".slice),Co=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Do=/a/g,Fo=/a/g,No=new ko(Do)!==Do,$o=ho.MISSED_STICKY,Go=ho.UNSUPPORTED_Y,zo=io&&(!No||$o||jo||Eo||So((function(){return Fo[Po]=!1,ko(Do)!=Do||ko(Fo)==Fo||"/a/i"!=ko(Do,"i")})));if(ao("RegExp",zo)){for(var Vo=function(t,r){var e,n,o,i,c,u,a=po(To,this),f=go(t),s=void 0===r,l=[],p=t;if(!a&&f&&s&&t.constructor===Vo)return t;if((f||po(To,t))&&(t=t.source,s&&(r=yo(p))),t=void 0===t?"":vo(t),r=void 0===r?"":vo(r),p=t,jo&&"dotAll"in Do&&(n=!!r&&Lo(r,"s")>-1)&&(r=Mo(r,/s/g,"")),e=r,$o&&"sticky"in Do&&(o=!!r&&Lo(r,"y")>-1)&&Go&&(r=Mo(r,/y/g,"")),Eo&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=Io(t,n)))r+=Io(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:Ro(Co,_o(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||Oo(c,s))throw new Ao("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),c=fo(ko(t,r),a?this:To,Vo),(n||o||l.length)&&(u=wo(c),n&&(u.dotAll=!0,u.raw=Vo(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=Io(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+Io(t,++n);return o}(t),e)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==p)try{so(c,"source",""===p?"(?:)":p)}catch(t){}return c},Bo=lo(ko),Uo=0;Bo.length>Uo;)bo(Vo,ko,Bo[Uo++]);To.constructor=Vo,Vo.prototype=To,mo(co,"RegExp",Vo,{constructor:!0})}xo("RegExp");var qo={},Wo={},Ko={}.propertyIsEnumerable,Yo=Object.getOwnPropertyDescriptor,Ho=Yo&&!Ko.call({1:2},1);Wo.f=Ho?function(t){var r=Yo(this,t);return!!r&&r.enumerable}:Ko;var Jo=i,Xo=X,Qo=Wo,Zo=Pr,ti=Vr,ri=hr,ei=qt,ni=K,oi=Object.getOwnPropertyDescriptor;qo.f=Jo?oi:function(t,r){if(t=ti(t),r=ri(r),ni)try{return oi(t,r)}catch(t){}if(ei(t,r))return Zo(!Xo(Qo.f,t,r),t[r])};var ii={};ii.f=Object.getOwnPropertySymbols;var ci=rt,ui=Rr,ai=ii,fi=R,si=v([].concat),li=ci("Reflect","ownKeys")||function(t){var r=ui.f(fi(t)),e=ai.f;return e?si(r,e(t)):r},pi=qt,gi=li,vi=qo,yi=z,di=u,hi=qo.f,bi=Ar,mi=Yn,Si=_t,Oi=function(t,r,e){for(var n=gi(r),o=yi.f,i=vi.f,c=0;c<n.length;c++){var u=n[c];pi(t,u)||e&&pi(e,u)||o(t,u,i(r,u))}},wi=j,xi=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?di:f?di[u]||Si(u,{}):(di[u]||{}).prototype)for(n in r){if(i=r[n],o=t.dontCallGetSet?(c=hi(e,n))&&c.value:e[n],!wi(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Oi(i,o)}(t.sham||o&&o.sham)&&bi(i,"sham",!0),mi(e,n,i,t)}},ji={},Ei=ge,Pi=ve,ki=Object.keys||function(t){return Ei(t,Pi)},Ti=i,Ai=Y,Ri=z,Ii=R,Mi=Vr,Li=ki;ji.f=Ti&&!Ai?Object.defineProperties:function(t,r){Ii(t);for(var e,n=Mi(r),o=Li(r),i=o.length,c=0;i>c;)Ri.f(t,e=o[c++],n[e]);return t};var _i,Ci=rt("document","documentElement"),Di=R,Fi=ji,Ni=ve,$i=ue,Gi=Ci,zi=q,Vi=vn("IE_PROTO"),Bi=function(){},Ui=function(t){return"<script>"+t+"<\/script>"},qi=function(t){t.write(Ui("")),t.close();var r=t.parentWindow.Object;return t=null,r},Wi=function(){try{_i=new ActiveXObject("htmlfile")}catch(t){}var t,r;Wi="undefined"!=typeof document?document.domain&&_i?qi(_i):((r=zi("iframe")).style.display="none",Gi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Ui("document.F=Object")),t.close(),t.F):qi(_i);for(var e=Ni.length;e--;)delete Wi.prototype[Ni[e]];return Wi()};$i[Vi]=!0;var Ki=Object.create||function(t,r){var e;return null!==t?(Bi.prototype=Di(t),e=new Bi,Bi.prototype=null,e[Vi]=t):e=Wi(),void 0===r?e:Fi.f(e,r)},Yi=X,Hi=v,Ji=Ie,Xi=Le,Qi=Ue,Zi=It.exports,tc=Ki,rc=In.get,ec=ro,nc=oo,oc=Zi("native-string-replace",String.prototype.replace),ic=RegExp.prototype.exec,cc=ic,uc=Hi("".charAt),ac=Hi("".indexOf),fc=Hi("".replace),sc=Hi("".slice),lc=function(){var t=/a/,r=/b*/g;return Yi(ic,t,"a"),Yi(ic,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),pc=Qi.BROKEN_CARET,gc=void 0!==/()??/.exec("")[1];(lc||gc||pc||ec||nc)&&(cc=function(t){var r,e,n,o,i,c,u,a=this,f=rc(a),s=Ji(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Yi(cc,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=pc&&a.sticky,v=Yi(Xi,a),y=a.source,d=0,h=s;if(g&&(v=fc(v,"y",""),-1===ac(v,"g")&&(v+="g"),h=sc(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==uc(s,a.lastIndex-1))&&(y="(?: "+y+")",h=" "+h,d++),e=new RegExp("^(?:"+y+")",v)),gc&&(e=new RegExp("^"+y+"$(?!\\s)",v)),lc&&(n=a.lastIndex),o=Yi(ic,g?e:a,h),g?o?(o.input=sc(o.input,d),o[0]=sc(o[0],d),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:lc&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),gc&&o&&o.length>1&&Yi(oc,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=tc(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var vc=cc;xi({target:"RegExp",proto:!0,forced:/./.exec!==vc},{exec:vc});var yc=Qe.PROPER,dc=Yn,hc=R,bc=Ie,mc=o,Sc=$e,Oc=RegExp.prototype.toString,wc=mc((function(){return"/a/b"!=Oc.call({source:"a",flags:"b"})})),xc=yc&&"toString"!=Oc.name;(wc||xc)&&dc(RegExp.prototype,"toString",(function(){var t=hc(this);return"/"+bc(t.source)+"/"+bc(Sc(t))}),{unsafe:!0});var jc=a,Ec=Function.prototype,Pc=Ec.apply,kc=Ec.call,Tc="object"==typeof Reflect&&Reflect.apply||(jc?kc.bind(Pc):function(){return kc.apply(Pc,arguments)}),Ac=v,Rc=Yn,Ic=vc,Mc=o,Lc=ur,_c=Ar,Cc=Lc("species"),Dc=RegExp.prototype,Fc=v,Nc=Wr,$c=Ie,Gc=$t,zc=Fc("".charAt),Vc=Fc("".charCodeAt),Bc=Fc("".slice),Uc=function(t){return function(r,e){var n,o,i=$c(Gc(r)),c=Nc(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=Vc(i,c))<55296||n>56319||c+1===u||(o=Vc(i,c+1))<56320||o>57343?t?zc(i,c):n:t?Bc(i,c,c+2):o-56320+(n-55296<<10)+65536}},qc={codeAt:Uc(!1),charAt:Uc(!0)}.charAt,Wc=v,Kc=Vt,Yc=Math.floor,Hc=Wc("".charAt),Jc=Wc("".replace),Xc=Wc("".slice),Qc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Zc=/\$([$&'`]|\d{1,2})/g,tu=X,ru=R,eu=y,nu=_r,ou=vc,iu=TypeError,cu=Tc,uu=X,au=v,fu=function(t,r,e,n){var o=Lc(t),i=!Mc((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!Mc((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Cc]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=Ac(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var c=Ac(t),a=r.exec;return a===Ic||a===Dc.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));Rc(String.prototype,t,a[0]),Rc(Dc,o,a[1])}n&&_c(Dc[o],"sham",!0)},su=o,lu=R,pu=y,gu=Wr,vu=Zr,yu=Ie,du=$t,hu=function(t,r,e){return r+(e?qc(t,r).length:1)},bu=Pt,mu=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=Zc;return void 0!==o&&(o=Kc(o),a=Qc),Jc(i,a,(function(i,a){var f;switch(Hc(a,0)){case"$":return"$";case"&":return t;case"`":return Xc(r,0,e);case"'":return Xc(r,c);case"<":f=o[Xc(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=Yc(s/10);return 0===l?i:l<=u?void 0===n[l-1]?Hc(a,1):n[l-1]+Hc(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Su=function(t,r){var e=t.exec;if(eu(e)){var n=tu(e,t,r);return null!==n&&ru(n),n}if("RegExp"===nu(t))return tu(ou,t,r);throw iu("RegExp#exec called on incompatible receiver")},Ou=ur("replace"),wu=Math.max,xu=Math.min,ju=au([].concat),Eu=au([].push),Pu=au("".indexOf),ku=au("".slice),Tu="$0"==="a".replace(/./,"$0"),Au=!!/./[Ou]&&""===/./[Ou]("a","$0");fu("replace",(function(t,r,e){var n=Au?"$":"$0";return[function(t,e){var n=du(this),o=null==t?void 0:bu(t,Ou);return o?uu(o,t,n,e):uu(r,yu(n),t,e)},function(t,o){var i=lu(this),c=yu(t);if("string"==typeof o&&-1===Pu(o,n)&&-1===Pu(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=pu(o);a||(o=yu(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Su(i,c);if(null===p)break;if(Eu(l,p),!f)break;""===yu(p[0])&&(i.lastIndex=hu(c,vu(i.lastIndex),s))}for(var g,v="",y=0,d=0;d<l.length;d++){for(var h=yu((p=l[d])[0]),b=wu(xu(gu(p.index),c.length),0),m=[],S=1;S<p.length;S++)Eu(m,void 0===(g=p[S])?g:String(g));var O=p.groups;if(a){var w=ju([h],m,b,c);void 0!==O&&Eu(w,O);var x=yu(cu(o,void 0,w))}else x=mu(h,c,b,m,O,o);b>=y&&(v+=ku(c,y,b)+x,y=b+h.length)}return v+ku(c,y)}]}),!!su((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Tu||Au);var Ru=Te,Iu=Oe?{}.toString:function(){return"[object "+Ru(this)+"]"};Oe||Yn(Object.prototype,"toString",Iu,{unsafe:!0});var Mu=q("span").classList,Lu=Mu&&Mu.constructor&&Mu.constructor.prototype,_u=Lu===Object.prototype?void 0:Lu,Cu=jt,Du=a,Fu=v(v.bind),Nu=_r,$u=Array.isArray||function(t){return"Array"==Nu(t)},Gu=v,zu=o,Vu=y,Bu=Te,Uu=cn,qu=function(){},Wu=[],Ku=rt("Reflect","construct"),Yu=/^\s*(?:class|function)\b/,Hu=Gu(Yu.exec),Ju=!Yu.exec(qu),Xu=function(t){if(!Vu(t))return!1;try{return Ku(qu,Wu,t),!0}catch(t){return!1}},Qu=function(t){if(!Vu(t))return!1;switch(Bu(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ju||!!Hu(Yu,Uu(t))}catch(t){return!0}};Qu.sham=!0;var Zu=!Ku||zu((function(){var t;return Xu(Xu.call)||!Xu(Object)||!Xu((function(){t=!0}))||t}))?Qu:Xu,ta=$u,ra=Zu,ea=P,na=ur("species"),oa=Array,ia=function(t){var r;return ta(t)&&(r=t.constructor,(ra(r)&&(r===oa||ta(r.prototype))||ea(r)&&null===(r=r[na]))&&(r=void 0)),void 0===r?oa:r},ca=function(t,r){return new(ia(t))(0===r?0:r)},ua=function(t,r){return Cu(t),void 0===r?t:Du?Fu(t,r):function(){return t.apply(r,arguments)}},aa=$r,fa=Vt,sa=re,la=ca,pa=v([].push),ga=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var p,g,v=fa(a),y=aa(v),d=ua(f,s),h=sa(y),b=0,m=l||la,S=r?m(a,h):e||c?m(a,0):void 0;h>b;b++)if((u||b in y)&&(g=d(p=y[b],b,v),t))if(r)S[b]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:pa(S,p)}else switch(t){case 4:return!1;case 7:pa(S,p)}return i?-1:n||o?o:S}},va={forEach:ga(0),map:ga(1),filter:ga(2),some:ga(3),every:ga(4),find:ga(5),findIndex:ga(6),filterReject:ga(7)},ya=o,da=function(t,r){var e=[][t];return!!e&&ya((function(){e.call(null,r||function(){return 1},1)}))},ha=va.forEach,ba=u,ma={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Sa=_u,Oa=da("forEach")?[].forEach:function(t){return ha(this,t,arguments.length>1?arguments[1]:void 0)},wa=Ar,xa=function(t){if(t&&t.forEach!==Oa)try{wa(t,"forEach",Oa)}catch(r){t.forEach=Oa}};for(var ja in ma)ma[ja]&&xa(ba[ja]&&ba[ja].prototype);xa(Sa);var Ea=xi,Pa=$u,ka=v([].reverse),Ta=[1,2];Ea({target:"Array",proto:!0,forced:String(Ta)===String(Ta.reverse())},{reverse:function(){return Pa(this)&&(this.length=this.length),ka(this)}});var Aa=hr,Ra=z,Ia=Pr,Ma=function(t,r,e){var n=Aa(r);n in t?Ra.f(t,n,Ia(0,e)):t[n]=e},La=o,_a=ft,Ca=ur("species"),Da=function(t){return _a>=51||!La((function(){var r=[];return(r.constructor={})[Ca]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Fa=v([].slice),Na=xi,$a=$u,Ga=Zu,za=P,Va=Jr,Ba=re,Ua=Vr,qa=Ma,Wa=ur,Ka=Fa,Ya=Da("slice"),Ha=Wa("species"),Ja=Array,Xa=Math.max;Na({target:"Array",proto:!0,forced:!Ya},{slice:function(t,r){var e,n,o,i=Ua(this),c=Ba(i),u=Va(t,c),a=Va(void 0===r?c:r,c);if($a(i)&&(e=i.constructor,(Ga(e)&&(e===Ja||$a(e.prototype))||za(e)&&null===(e=e[Ha]))&&(e=void 0),e===Ja||void 0===e))return Ka(i,u,a);for(n=new(void 0===e?Ja:e)(Xa(a-u,0)),o=0;u<a;u++,o++)u in i&&qa(n,o,i[u]);return n.length=o,n}});var Qa=xi,Za=$r,tf=Vr,rf=da,ef=v([].join),nf=Za!=Object,of=rf("join",",");Qa({target:"Array",proto:!0,forced:nf||!of},{join:function(t){return ef(tf(this),void 0===t?",":t)}});var cf=TypeError,uf=xi,af=o,ff=$u,sf=P,lf=Vt,pf=re,gf=function(t){if(t>9007199254740991)throw cf("Maximum allowed index exceeded");return t},vf=Ma,yf=ca,df=Da,hf=ft,bf=ur("isConcatSpreadable"),mf=hf>=51||!af((function(){var t=[];return t[bf]=!1,t.concat()[0]!==t})),Sf=df("concat"),Of=function(t){if(!sf(t))return!1;var r=t[bf];return void 0!==r?!!r:ff(t)};uf({target:"Array",proto:!0,arity:1,forced:!mf||!Sf},{concat:function(t){var r,e,n,o,i,c=lf(this),u=yf(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(Of(i=-1===r?c:arguments[r]))for(o=pf(i),gf(a+o),e=0;e<o;e++,a++)e in i&&vf(u,a,i[e]);else gf(a+1),vf(u,a++,i);return u.length=a,u}});var wf=va.map;xi({target:"Array",proto:!0,forced:!Da("map")},{map:function(t){return wf(this,t,arguments.length>1?arguments[1]:void 0)}});var xf=Vt,jf=ki;xi({target:"Object",stat:!0,forced:o((function(){jf(1)}))},{keys:function(t){return jf(xf(t))}});var Ef={},Pf=Jr,kf=re,Tf=Ma,Af=Array,Rf=Math.max,If=_r,Mf=Vr,Lf=Rr.f,_f=function(t,r,e){for(var n=kf(t),o=Pf(r,n),i=Pf(void 0===e?n:e,n),c=Af(Rf(i-o,0)),u=0;o<i;o++,u++)Tf(c,u,t[o]);return c.length=u,c},Cf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ef.f=function(t){return Cf&&"Window"==If(t)?function(t){try{return Lf(t)}catch(t){return _f(Cf)}}(t):Lf(Mf(t))};var Df={},Ff=ur;Df.f=Ff;var Nf=u,$f=qt,Gf=Df,zf=z.f,Vf=X,Bf=rt,Uf=ur,qf=Yn,Wf=z.f,Kf=qt,Yf=ur("toStringTag"),Hf=xi,Jf=u,Xf=X,Qf=v,Zf=i,ts=pt,rs=o,es=qt,ns=et,os=R,is=Vr,cs=hr,us=Ie,as=Pr,fs=Ki,ss=ki,ls=Rr,ps=Ef,gs=ii,vs=qo,ys=z,ds=ji,hs=Wo,bs=Yn,ms=It.exports,Ss=ue,Os=Jt,ws=ur,xs=Df,js=function(t){var r=Nf.Symbol||(Nf.Symbol={});$f(r,t)||zf(r,t,{value:Gf.f(t)})},Es=function(){var t=Bf("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Uf("toPrimitive");r&&!r[n]&&qf(r,n,(function(t){return Vf(e,this)}),{arity:1})},Ps=function(t,r,e){t&&!e&&(t=t.prototype),t&&!Kf(t,Yf)&&Wf(t,Yf,{configurable:!0,value:r})},ks=In,Ts=va.forEach,As=vn("hidden"),Rs=ks.set,Is=ks.getterFor("Symbol"),Ms=Object.prototype,Ls=Jf.Symbol,_s=Ls&&Ls.prototype,Cs=Jf.TypeError,Ds=Jf.QObject,Fs=vs.f,Ns=ys.f,$s=ps.f,Gs=hs.f,zs=Qf([].push),Vs=ms("symbols"),Bs=ms("op-symbols"),Us=ms("wks"),qs=!Ds||!Ds.prototype||!Ds.prototype.findChild,Ws=Zf&&rs((function(){return 7!=fs(Ns({},"a",{get:function(){return Ns(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=Fs(Ms,r);n&&delete Ms[r],Ns(t,r,e),n&&t!==Ms&&Ns(Ms,r,n)}:Ns,Ks=function(t,r){var e=Vs[t]=fs(_s);return Rs(e,{type:"Symbol",tag:t,description:r}),Zf||(e.description=r),e},Ys=function(t,r,e){t===Ms&&Ys(Bs,r,e),os(t);var n=cs(r);return os(e),es(Vs,n)?(e.enumerable?(es(t,As)&&t[As][n]&&(t[As][n]=!1),e=fs(e,{enumerable:as(0,!1)})):(es(t,As)||Ns(t,As,as(1,{})),t[As][n]=!0),Ws(t,n,e)):Ns(t,n,e)},Hs=function(t,r){os(t);var e=is(r),n=ss(e).concat(Zs(e));return Ts(n,(function(r){Zf&&!Xf(Js,e,r)||Ys(t,r,e[r])})),t},Js=function(t){var r=cs(t),e=Xf(Gs,this,r);return!(this===Ms&&es(Vs,r)&&!es(Bs,r))&&(!(e||!es(this,r)||!es(Vs,r)||es(this,As)&&this[As][r])||e)},Xs=function(t,r){var e=is(t),n=cs(r);if(e!==Ms||!es(Vs,n)||es(Bs,n)){var o=Fs(e,n);return!o||!es(Vs,n)||es(e,As)&&e[As][n]||(o.enumerable=!0),o}},Qs=function(t){var r=$s(is(t)),e=[];return Ts(r,(function(t){es(Vs,t)||es(Ss,t)||zs(e,t)})),e},Zs=function(t){var r=t===Ms,e=$s(r?Bs:is(t)),n=[];return Ts(e,(function(t){!es(Vs,t)||r&&!es(Ms,t)||zs(n,Vs[t])})),n};ts||(bs(_s=(Ls=function(){if(ns(_s,this))throw Cs("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?us(arguments[0]):void 0,r=Os(t),e=function(t){this===Ms&&Xf(e,Bs,t),es(this,As)&&es(this[As],r)&&(this[As][r]=!1),Ws(this,r,as(1,t))};return Zf&&qs&&Ws(Ms,r,{configurable:!0,set:e}),Ks(r,t)}).prototype,"toString",(function(){return Is(this).tag})),bs(Ls,"withoutSetter",(function(t){return Ks(Os(t),t)})),hs.f=Js,ys.f=Ys,ds.f=Hs,vs.f=Xs,ls.f=ps.f=Qs,gs.f=Zs,xs.f=function(t){return Ks(ws(t),t)},Zf&&(Ns(_s,"description",{configurable:!0,get:function(){return Is(this).description}}),bs(Ms,"propertyIsEnumerable",Js,{unsafe:!0}))),Hf({global:!0,constructor:!0,wrap:!0,forced:!ts,sham:!ts},{Symbol:Ls}),Ts(ss(Us),(function(t){js(t)})),Hf({target:"Symbol",stat:!0,forced:!ts},{useSetter:function(){qs=!0},useSimple:function(){qs=!1}}),Hf({target:"Object",stat:!0,forced:!ts,sham:!Zf},{create:function(t,r){return void 0===r?fs(t):Hs(fs(t),r)},defineProperty:Ys,defineProperties:Hs,getOwnPropertyDescriptor:Xs}),Hf({target:"Object",stat:!0,forced:!ts},{getOwnPropertyNames:Qs}),Es(),Ps(Ls,"Symbol"),Ss[As]=!0;var tl=pt&&!!Symbol.for&&!!Symbol.keyFor,rl=xi,el=rt,nl=qt,ol=Ie,il=It.exports,cl=tl,ul=il("string-to-symbol-registry"),al=il("symbol-to-string-registry");rl({target:"Symbol",stat:!0,forced:!cl},{for:function(t){var r=ol(t);if(nl(ul,r))return ul[r];var e=el("Symbol")(r);return ul[r]=e,al[e]=r,e}});var fl=xi,sl=qt,ll=bt,pl=St,gl=tl,vl=(0,It.exports)("symbol-to-string-registry");fl({target:"Symbol",stat:!0,forced:!gl},{keyFor:function(t){if(!ll(t))throw TypeError(pl(t)+" is not a symbol");if(sl(vl,t))return vl[t]}});var yl=xi,dl=rt,hl=Tc,bl=X,ml=v,Sl=o,Ol=$u,wl=y,xl=P,jl=bt,El=Fa,Pl=pt,kl=dl("JSON","stringify"),Tl=ml(/./.exec),Al=ml("".charAt),Rl=ml("".charCodeAt),Il=ml("".replace),Ml=ml(1..toString),Ll=/[\uD800-\uDFFF]/g,_l=/^[\uD800-\uDBFF]$/,Cl=/^[\uDC00-\uDFFF]$/,Dl=!Pl||Sl((function(){var t=dl("Symbol")();return"[null]"!=kl([t])||"{}"!=kl({a:t})||"{}"!=kl(Object(t))})),Fl=Sl((function(){return'"\\udf06\\ud834"'!==kl("\udf06\ud834")||'"\\udead"'!==kl("\udead")})),Nl=function(t,r){var e=El(arguments),n=r;if((xl(r)||void 0!==t)&&!jl(t))return Ol(r)||(r=function(t,r){if(wl(n)&&(r=bl(n,this,t,r)),!jl(r))return r}),e[1]=r,hl(kl,null,e)},$l=function(t,r,e){var n=Al(e,r-1),o=Al(e,r+1);return Tl(_l,t)&&!Tl(Cl,o)||Tl(Cl,t)&&!Tl(_l,n)?"\\u"+Ml(Rl(t,0),16):t};kl&&yl({target:"JSON",stat:!0,arity:3,forced:Dl||Fl},{stringify:function(t,r,e){var n=El(arguments),o=hl(Dl?Nl:kl,null,n);return Fl&&"string"==typeof o?Il(o,Ll,$l):o}});var Gl=ii,zl=Vt;xi({target:"Object",stat:!0,forced:!pt||o((function(){Gl.f(1)}))},{getOwnPropertySymbols:function(t){var r=Gl.f;return r?r(zl(t)):[]}});var Vl=va.filter;xi({target:"Array",proto:!0,forced:!Da("filter")},{filter:function(t){return Vl(this,t,arguments.length>1?arguments[1]:void 0)}});var Bl=xi,Ul=o,ql=Vr,Wl=qo.f,Kl=i,Yl=Ul((function(){Wl(1)}));Bl({target:"Object",stat:!0,forced:!Kl||Yl,sham:!Kl},{getOwnPropertyDescriptor:function(t,r){return Wl(ql(t),r)}});var Hl=li,Jl=Vr,Xl=qo,Ql=Ma;function Zl(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}xi({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Jl(t),o=Xl.f,i=Hl(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&Ql(c,r,e);return c}});var tp=$t,rp=Ie,ep=/"/g,np=v("".replace),op=o,ip=function(t,r,e,n){var o=rp(tp(t)),i="<"+r;return""!==e&&(i+=" "+e+'="'+np(rp(n),ep,"&quot;")+'"'),i+">"+o+"</"+r+">"},cp=function(t){return op((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};function up(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}xi({target:"String",proto:!0,forced:cp("anchor")},{anchor:function(t){return ip(this,"a","name",t)}});var ap=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},fp={nodes:{horizontal_rule:function(){return{singleTag:"hr"}},blockquote:function(){return{tag:"blockquote"}},bullet_list:function(){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:ap(t.attrs,["src","alt","title"])}]}},list_item:function(){return{tag:"li"}},ordered_list:function(){return{tag:"ol"}},paragraph:function(){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?up(Object(e),!0).forEach((function(r){Zl(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):up(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},sp=function(){function r(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),t||(t=fp),this.marks=t.marks||[],this.nodes=t.nodes||[]}var e,n,o;return e=r,n=[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}],n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),r}();module.exports=sp;

@@ -6,2 +6,2 @@ /*!

*/
var RichTextResolver=function(){"use strict";function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=a,s=Function.prototype,l=s.bind,p=s.call,g=f&&l.bind(p,p),v=f?function(t){return t&&g(t)}:function(t){return t&&function(){return p.apply(t,arguments)}},d=function(t){return"function"==typeof t},h=o,y=d,b=/#|\.prototype\./,m=function(t,r){var e=S[O(t)];return e==x||e!=w&&(y(r)?h(r):!!r)},O=m.normalize=function(t){return String(t).replace(b,".").toLowerCase()},S=m.data={},w=m.NATIVE="N",x=m.POLYFILL="P",j=m,E=d,T=function(t){return"object"==typeof t?null!==t:E(t)},P=u,k=T,A=P.String,R=P.TypeError,I=function(t){if(k(t))return t;throw R(A(t)+" is not an object")},L=u,M=d,C=L.String,_=L.TypeError,D=v,F=I,N=function(t){if("object"==typeof t||M(t))return t;throw _("Can't set "+C(t)+" as a prototype")},$=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=D(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return F(e),N(n),r?t(e,n):e.__proto__=n,e}}():void 0),G=d,z=T,V=$,B={},U=T,q=u.document,K=U(q)&&U(q.createElement),W=function(t){return K?q.createElement(t):{}},Y=W,H=!i&&!o((function(){return 7!=Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a})),J=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),X=a,Q=Function.prototype.call,Z=X?Q.bind(Q):function(){return Q.apply(Q,arguments)},tt=u,rt=d,et=function(t){return rt(t)?t:void 0},nt=function(t,r){return arguments.length<2?et(tt[t]):tt[t]&&tt[t][r]},ot=v({}.isPrototypeOf),it=u,ct=nt("navigator","userAgent")||"",ut=it.process,at=it.Deno,ft=ut&&ut.versions||at&&at.version,st=ft&&ft.v8;st&&(e=(r=st.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!e&&ct&&(!(r=ct.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ct.match(/Chrome\/(\d+)/))&&(e=+r[1]);var lt=e,pt=lt,gt=o,vt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),dt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ht=nt,yt=d,bt=ot,mt=dt,Ot=u.Object,St=mt?function(t){return"symbol"==typeof t}:function(t){var r=ht("Symbol");return yt(r)&&bt(r.prototype,Ot(t))},wt=u.String,xt=function(t){try{return wt(t)}catch(t){return"Object"}},jt=d,Et=xt,Tt=u.TypeError,Pt=function(t){if(jt(t))return t;throw Tt(Et(t)+" is not a function")},kt=Pt,At=function(t,r){var e=t[r];return null==e?void 0:kt(e)},Rt=Z,It=d,Lt=T,Mt=u.TypeError,Ct={exports:{}},_t=u,Dt=Object.defineProperty,Ft=function(t,r){try{Dt(_t,t,{value:r,configurable:!0,writable:!0})}catch(e){_t[t]=r}return r},Nt=Ft,$t="__core-js_shared__",Gt=u[$t]||Nt($t,{}),zt=Gt;(Ct.exports=function(t,r){return zt[t]||(zt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Vt=u.TypeError,Bt=function(t){if(null==t)throw Vt("Can't call method on "+t);return t},Ut=Bt,qt=u.Object,Kt=function(t){return qt(Ut(t))},Wt=Kt,Yt=v({}.hasOwnProperty),Ht=Object.hasOwn||function(t,r){return Yt(Wt(t),r)},Jt=v,Xt=0,Qt=Math.random(),Zt=Jt(1..toString),tr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++Xt+Qt,36)},rr=u,er=Ct.exports,nr=Ht,or=tr,ir=vt,cr=dt,ur=er("wks"),ar=rr.Symbol,fr=ar&&ar.for,sr=cr?ar:ar&&ar.withoutSetter||or,lr=function(t){if(!nr(ur,t)||!ir&&"string"!=typeof ur[t]){var r="Symbol."+t;ir&&nr(ar,t)?ur[t]=ar[t]:ur[t]=cr&&fr?fr(r):sr(r)}return ur[t]},pr=Z,gr=T,vr=St,dr=At,hr=function(t,r){var e,n;if("string"===r&&It(e=t.toString)&&!Lt(n=Rt(e,t)))return n;if(It(e=t.valueOf)&&!Lt(n=Rt(e,t)))return n;if("string"!==r&&It(e=t.toString)&&!Lt(n=Rt(e,t)))return n;throw Mt("Can't convert object to primitive value")},yr=lr,br=u.TypeError,mr=yr("toPrimitive"),Or=function(t,r){if(!gr(t)||vr(t))return t;var e,n=dr(t,mr);if(n){if(void 0===r&&(r="default"),e=pr(n,t,r),!gr(e)||vr(e))return e;throw br("Can't convert object to primitive value")}return void 0===r&&(r="number"),hr(t,r)},Sr=St,wr=function(t){var r=Or(t,"string");return Sr(r)?r:r+""},xr=i,jr=H,Er=J,Tr=I,Pr=wr,kr=u.TypeError,Ar=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Ir="enumerable",Lr="configurable",Mr="writable";B.f=xr?Er?function(t,r,e){if(Tr(t),r=Pr(r),Tr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Mr in e&&!e.writable){var n=Rr(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:Lr in e?e.configurable:n.configurable,enumerable:Ir in e?e.enumerable:n.enumerable,writable:!1})}return Ar(t,r,e)}:Ar:function(t,r,e){if(Tr(t),r=Pr(r),Tr(e),jr)try{return Ar(t,r,e)}catch(t){}if("get"in e||"set"in e)throw kr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Cr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},_r=B,Dr=Cr,Fr=i?function(t,r,e){return _r.f(t,r,Dr(1,e))}:function(t,r,e){return t[r]=e,t},Nr={},$r=v,Gr=$r({}.toString),zr=$r("".slice),Vr=function(t){return zr(Gr(t),8,-1)},Br=v,Ur=o,qr=Vr,Kr=u.Object,Wr=Br("".split),Yr=Ur((function(){return!Kr("z").propertyIsEnumerable(0)}))?function(t){return"String"==qr(t)?Wr(t,""):Kr(t)}:Kr,Hr=Yr,Jr=Bt,Xr=function(t){return Hr(Jr(t))},Qr=Math.ceil,Zr=Math.floor,te=function(t){var r=+t;return r!=r||0===r?0:(r>0?Zr:Qr)(r)},re=te,ee=Math.max,ne=Math.min,oe=function(t,r){var e=re(t);return e<0?ee(e+r,0):ne(e,r)},ie=te,ce=Math.min,ue=function(t){return t>0?ce(ie(t),9007199254740991):0},ae=ue,fe=function(t){return ae(t.length)},se=Xr,le=oe,pe=fe,ge=function(t){return function(r,e,n){var o,i=se(r),c=pe(i),u=le(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},ve={includes:ge(!0),indexOf:ge(!1)},de={},he=Ht,ye=Xr,be=ve.indexOf,me=de,Oe=v([].push),Se=function(t,r){var e,n=ye(t),o=0,i=[];for(e in n)!he(me,e)&&he(n,e)&&Oe(i,e);for(;r.length>o;)he(n,e=r[o++])&&(~be(i,e)||Oe(i,e));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xe=Se,je=we.concat("length","prototype");Nr.f=Object.getOwnPropertyNames||function(t){return xe(t,je)};var Ee=T,Te=Vr,Pe=lr("match"),ke={};ke[lr("toStringTag")]="z";var Ae="[object z]"===String(ke),Re=u,Ie=Ae,Le=d,Me=Vr,Ce=lr("toStringTag"),_e=Re.Object,De="Arguments"==Me(function(){return arguments}()),Fe=Ie?Me:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=_e(t),Ce))?e:De?Me(r):"Object"==(n=Me(r))&&Le(r.callee)?"Arguments":n},Ne=Fe,$e=u.String,Ge=function(t){if("Symbol"===Ne(t))throw TypeError("Cannot convert a Symbol value to a string");return $e(t)},ze=I,Ve=function(){var t=ze(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},Be=Z,Ue=Ht,qe=ot,Ke=Ve,We=RegExp.prototype,Ye=function(t){var r=t.flags;return void 0!==r||"flags"in We||Ue(t,"flags")||!qe(We,t)?r:Be(Ke,t)},He=o,Je=u.RegExp,Xe=He((function(){var t=Je("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Qe=Xe||He((function(){return!Je("a","y").sticky})),Ze={BROKEN_CARET:Xe||He((function(){var t=Je("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Qe,UNSUPPORTED_Y:Xe},tn=B.f,rn={exports:{}},en=d,nn=Gt,on=v(Function.toString);en(nn.inspectSource)||(nn.inspectSource=function(t){return on(t)});var cn,un,an,fn=nn.inspectSource,sn=d,ln=fn,pn=u.WeakMap,gn=sn(pn)&&/native code/.test(ln(pn)),vn=Ct.exports,dn=tr,hn=vn("keys"),yn=function(t){return hn[t]||(hn[t]=dn(t))},bn=gn,mn=u,On=v,Sn=T,wn=Fr,xn=Ht,jn=Gt,En=yn,Tn=de,Pn="Object already initialized",kn=mn.TypeError,An=mn.WeakMap;if(bn||jn.state){var Rn=jn.state||(jn.state=new An),In=On(Rn.get),Ln=On(Rn.has),Mn=On(Rn.set);cn=function(t,r){if(Ln(Rn,t))throw new kn(Pn);return r.facade=t,Mn(Rn,t,r),r},un=function(t){return In(Rn,t)||{}},an=function(t){return Ln(Rn,t)}}else{var Cn=En("state");Tn[Cn]=!0,cn=function(t,r){if(xn(t,Cn))throw new kn(Pn);return r.facade=t,wn(t,Cn,r),r},un=function(t){return xn(t,Cn)?t[Cn]:{}},an=function(t){return xn(t,Cn)}}var _n={set:cn,get:un,has:an,enforce:function(t){return an(t)?un(t):cn(t,{})},getterFor:function(t){return function(r){var e;if(!Sn(r)||(e=un(r)).type!==t)throw kn("Incompatible receiver, "+t+" required");return e}}},Dn=i,Fn=Ht,Nn=Function.prototype,$n=Dn&&Object.getOwnPropertyDescriptor,Gn=Fn(Nn,"name"),zn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!Dn||Dn&&$n(Nn,"name").configurable)},Vn=u,Bn=d,Un=Ht,qn=Fr,Kn=Ft,Wn=fn,Yn=zn.CONFIGURABLE,Hn=_n.get,Jn=_n.enforce,Xn=String(String).split("String");(rn.exports=function(t,r,e,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,a=n&&void 0!==n.name?n.name:r;Bn(e)&&("Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Un(e,"name")||Yn&&e.name!==a)&&qn(e,"name",a),(o=Jn(e)).source||(o.source=Xn.join("string"==typeof a?a:""))),t!==Vn?(i?!u&&t[r]&&(c=!0):delete t[r],c?t[r]=e:qn(t,r,e)):c?t[r]=e:Kn(r,e)})(Function.prototype,"toString",(function(){return Bn(this)&&Hn(this).source||Wn(this)}));var Qn=nt,Zn=B,to=i,ro=lr("species"),eo=o,no=u.RegExp,oo=eo((function(){var t=no(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),io=o,co=u.RegExp,uo=io((function(){var t=co("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ao=i,fo=u,so=v,lo=j,po=function(t,r,e){var n,o;return V&&G(n=r.constructor)&&n!==e&&z(o=n.prototype)&&o!==e.prototype&&V(t,o),t},go=Fr,vo=Nr.f,ho=ot,yo=function(t){var r;return Ee(t)&&(void 0!==(r=t[Pe])?!!r:"RegExp"==Te(t))},bo=Ge,mo=Ye,Oo=Ze,So=function(t,r,e){e in t||tn(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},wo=rn.exports,xo=o,jo=Ht,Eo=_n.enforce,To=function(t){var r=Qn(t),e=Zn.f;to&&r&&!r[ro]&&e(r,ro,{configurable:!0,get:function(){return this}})},Po=oo,ko=uo,Ao=lr("match"),Ro=fo.RegExp,Io=Ro.prototype,Lo=fo.SyntaxError,Mo=so(Io.exec),Co=so("".charAt),_o=so("".replace),Do=so("".indexOf),Fo=so("".slice),No=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$o=/a/g,Go=/a/g,zo=new Ro($o)!==$o,Vo=Oo.MISSED_STICKY,Bo=Oo.UNSUPPORTED_Y,Uo=ao&&(!zo||Vo||Po||ko||xo((function(){return Go[Ao]=!1,Ro($o)!=$o||Ro(Go)==Go||"/a/i"!=Ro($o,"i")})));if(lo("RegExp",Uo)){for(var qo=function(t,r){var e,n,o,i,c,u,a=ho(Io,this),f=yo(t),s=void 0===r,l=[],p=t;if(!a&&f&&s&&t.constructor===qo)return t;if((f||ho(Io,t))&&(t=t.source,s&&(r=mo(p))),t=void 0===t?"":bo(t),r=void 0===r?"":bo(r),p=t,Po&&"dotAll"in $o&&(n=!!r&&Do(r,"s")>-1)&&(r=_o(r,/s/g,"")),e=r,Vo&&"sticky"in $o&&(o=!!r&&Do(r,"y")>-1)&&Bo&&(r=_o(r,/y/g,"")),ko&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=Co(t,n)))r+=Co(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:Mo(No,Fo(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||jo(c,s))throw new Lo("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),c=po(Ro(t,r),a?this:Io,qo),(n||o||l.length)&&(u=Eo(c),n&&(u.dotAll=!0,u.raw=qo(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=Co(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+Co(t,++n);return o}(t),e)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==p)try{go(c,"source",""===p?"(?:)":p)}catch(t){}return c},Ko=vo(Ro),Wo=0;Ko.length>Wo;)So(qo,Ro,Ko[Wo++]);Io.constructor=qo,qo.prototype=Io,wo(fo,"RegExp",qo)}To("RegExp");var Yo={},Ho={},Jo={}.propertyIsEnumerable,Xo=Object.getOwnPropertyDescriptor,Qo=Xo&&!Jo.call({1:2},1);Ho.f=Qo?function(t){var r=Xo(this,t);return!!r&&r.enumerable}:Jo;var Zo=i,ti=Z,ri=Ho,ei=Cr,ni=Xr,oi=wr,ii=Ht,ci=H,ui=Object.getOwnPropertyDescriptor;Yo.f=Zo?ui:function(t,r){if(t=ni(t),r=oi(r),ci)try{return ui(t,r)}catch(t){}if(ii(t,r))return ei(!ti(ri.f,t,r),t[r])};var ai={};ai.f=Object.getOwnPropertySymbols;var fi=nt,si=Nr,li=ai,pi=I,gi=v([].concat),vi=fi("Reflect","ownKeys")||function(t){var r=si.f(pi(t)),e=li.f;return e?gi(r,e(t)):r},di=Ht,hi=vi,yi=Yo,bi=B,mi=u,Oi=Yo.f,Si=Fr,wi=rn.exports,xi=Ft,ji=function(t,r,e){for(var n=hi(r),o=bi.f,i=yi.f,c=0;c<n.length;c++){var u=n[c];di(t,u)||e&&di(e,u)||o(t,u,i(r,u))}},Ei=j,Ti=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?mi:f?mi[u]||xi(u,{}):(mi[u]||{}).prototype)for(n in r){if(i=r[n],o=t.noTargetGet?(c=Oi(e,n))&&c.value:e[n],!Ei(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ji(i,o)}(t.sham||o&&o.sham)&&Si(i,"sham",!0),wi(e,n,i,t)}},Pi={},ki=Se,Ai=we,Ri=Object.keys||function(t){return ki(t,Ai)},Ii=i,Li=J,Mi=B,Ci=I,_i=Xr,Di=Ri;Pi.f=Ii&&!Li?Object.defineProperties:function(t,r){Ci(t);for(var e,n=_i(r),o=Di(r),i=o.length,c=0;i>c;)Mi.f(t,e=o[c++],n[e]);return t};var Fi,Ni=nt("document","documentElement"),$i=I,Gi=Pi,zi=we,Vi=de,Bi=Ni,Ui=W,qi=yn("IE_PROTO"),Ki=function(){},Wi=function(t){return"<script>"+t+"</"+"script>"},Yi=function(t){t.write(Wi("")),t.close();var r=t.parentWindow.Object;return t=null,r},Hi=function(){try{Fi=new ActiveXObject("htmlfile")}catch(t){}var t,r;Hi="undefined"!=typeof document?document.domain&&Fi?Yi(Fi):((r=Ui("iframe")).style.display="none",Bi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Wi("document.F=Object")),t.close(),t.F):Yi(Fi);for(var e=zi.length;e--;)delete Hi.prototype[zi[e]];return Hi()};Vi[qi]=!0;var Ji=Object.create||function(t,r){var e;return null!==t?(Ki.prototype=$i(t),e=new Ki,Ki.prototype=null,e[qi]=t):e=Hi(),void 0===r?e:Gi.f(e,r)},Xi=Z,Qi=v,Zi=Ge,tc=Ve,rc=Ze,ec=Ct.exports,nc=Ji,oc=_n.get,ic=oo,cc=uo,uc=ec("native-string-replace",String.prototype.replace),ac=RegExp.prototype.exec,fc=ac,sc=Qi("".charAt),lc=Qi("".indexOf),pc=Qi("".replace),gc=Qi("".slice),vc=function(){var t=/a/,r=/b*/g;return Xi(ac,t,"a"),Xi(ac,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),dc=rc.BROKEN_CARET,hc=void 0!==/()??/.exec("")[1];(vc||hc||dc||ic||cc)&&(fc=function(t){var r,e,n,o,i,c,u,a=this,f=oc(a),s=Zi(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Xi(fc,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=dc&&a.sticky,v=Xi(tc,a),d=a.source,h=0,y=s;if(g&&(v=pc(v,"y",""),-1===lc(v,"g")&&(v+="g"),y=gc(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==sc(s,a.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,h++),e=new RegExp("^(?:"+d+")",v)),hc&&(e=new RegExp("^"+d+"$(?!\\s)",v)),vc&&(n=a.lastIndex),o=Xi(ac,g?e:a,y),g?o?(o.input=gc(o.input,h),o[0]=gc(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:vc&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),hc&&o&&o.length>1&&Xi(uc,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=nc(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var yc=fc;Ti({target:"RegExp",proto:!0,forced:/./.exec!==yc},{exec:yc});var bc=zn.PROPER,mc=rn.exports,Oc=I,Sc=Ge,wc=o,xc=Ye,jc="toString",Ec=RegExp.prototype.toString,Tc=wc((function(){return"/a/b"!=Ec.call({source:"a",flags:"b"})})),Pc=bc&&Ec.name!=jc;(Tc||Pc)&&mc(RegExp.prototype,jc,(function(){var t=Oc(this);return"/"+Sc(t.source)+"/"+Sc(xc(t))}),{unsafe:!0});var kc=a,Ac=Function.prototype,Rc=Ac.apply,Ic=Ac.call,Lc="object"==typeof Reflect&&Reflect.apply||(kc?Ic.bind(Rc):function(){return Ic.apply(Rc,arguments)}),Mc=v,Cc=rn.exports,_c=yc,Dc=o,Fc=lr,Nc=Fr,$c=Fc("species"),Gc=RegExp.prototype,zc=v,Vc=te,Bc=Ge,Uc=Bt,qc=zc("".charAt),Kc=zc("".charCodeAt),Wc=zc("".slice),Yc=function(t){return function(r,e){var n,o,i=Bc(Uc(r)),c=Vc(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=Kc(i,c))<55296||n>56319||c+1===u||(o=Kc(i,c+1))<56320||o>57343?t?qc(i,c):n:t?Wc(i,c,c+2):o-56320+(n-55296<<10)+65536}},Hc={codeAt:Yc(!1),charAt:Yc(!0)}.charAt,Jc=v,Xc=Kt,Qc=Math.floor,Zc=Jc("".charAt),tu=Jc("".replace),ru=Jc("".slice),eu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nu=/\$([$&'`]|\d{1,2})/g,ou=Z,iu=I,cu=d,uu=Vr,au=yc,fu=u.TypeError,su=Lc,lu=Z,pu=v,gu=function(t,r,e,n){var o=Fc(t),i=!Dc((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!Dc((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[$c]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=Mc(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var c=Mc(t),a=r.exec;return a===_c||a===Gc.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));Cc(String.prototype,t,a[0]),Cc(Gc,o,a[1])}n&&Nc(Gc[o],"sham",!0)},vu=o,du=I,hu=d,yu=te,bu=ue,mu=Ge,Ou=Bt,Su=function(t,r,e){return r+(e?Hc(t,r).length:1)},wu=At,xu=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=nu;return void 0!==o&&(o=Xc(o),a=eu),tu(i,a,(function(i,a){var f;switch(Zc(a,0)){case"$":return"$";case"&":return t;case"`":return ru(r,0,e);case"'":return ru(r,c);case"<":f=o[ru(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=Qc(s/10);return 0===l?i:l<=u?void 0===n[l-1]?Zc(a,1):n[l-1]+Zc(a,1):i}f=n[s-1]}return void 0===f?"":f}))},ju=function(t,r){var e=t.exec;if(cu(e)){var n=ou(e,t,r);return null!==n&&iu(n),n}if("RegExp"===uu(t))return ou(au,t,r);throw fu("RegExp#exec called on incompatible receiver")},Eu=lr("replace"),Tu=Math.max,Pu=Math.min,ku=pu([].concat),Au=pu([].push),Ru=pu("".indexOf),Iu=pu("".slice),Lu="$0"==="a".replace(/./,"$0"),Mu=!!/./[Eu]&&""===/./[Eu]("a","$0");gu("replace",(function(t,r,e){var n=Mu?"$":"$0";return[function(t,e){var n=Ou(this),o=null==t?void 0:wu(t,Eu);return o?lu(o,t,n,e):lu(r,mu(n),t,e)},function(t,o){var i=du(this),c=mu(t);if("string"==typeof o&&-1===Ru(o,n)&&-1===Ru(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=hu(o);a||(o=mu(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=ju(i,c);if(null===p)break;if(Au(l,p),!f)break;""===mu(p[0])&&(i.lastIndex=Su(c,bu(i.lastIndex),s))}for(var g,v="",d=0,h=0;h<l.length;h++){for(var y=mu((p=l[h])[0]),b=Tu(Pu(yu(p.index),c.length),0),m=[],O=1;O<p.length;O++)Au(m,void 0===(g=p[O])?g:String(g));var S=p.groups;if(a){var w=ku([y],m,b,c);void 0!==S&&Au(w,S);var x=mu(su(o,void 0,w))}else x=xu(y,c,b,m,S,o);b>=d&&(v+=Iu(c,d,b)+x,d=b+y.length)}return v+Iu(c,d)}]}),!!vu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Lu||Mu);var Cu=Fe,_u=Ae?{}.toString:function(){return"[object "+Cu(this)+"]"},Du=Ae,Fu=rn.exports,Nu=_u;Du||Fu(Object.prototype,"toString",Nu,{unsafe:!0});var $u=W("span").classList,Gu=$u&&$u.constructor&&$u.constructor.prototype,zu=Gu===Object.prototype?void 0:Gu,Vu=Pt,Bu=a,Uu=v(v.bind),qu=Vr,Ku=Array.isArray||function(t){return"Array"==qu(t)},Wu=v,Yu=o,Hu=d,Ju=Fe,Xu=fn,Qu=function(){},Zu=[],ta=nt("Reflect","construct"),ra=/^\s*(?:class|function)\b/,ea=Wu(ra.exec),na=!ra.exec(Qu),oa=function(t){if(!Hu(t))return!1;try{return ta(Qu,Zu,t),!0}catch(t){return!1}},ia=function(t){if(!Hu(t))return!1;switch(Ju(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return na||!!ea(ra,Xu(t))}catch(t){return!0}};ia.sham=!0;var ca=!ta||Yu((function(){var t;return oa(oa.call)||!oa(Object)||!oa((function(){t=!0}))||t}))?ia:oa,ua=u,aa=Ku,fa=ca,sa=T,la=lr("species"),pa=ua.Array,ga=function(t){var r;return aa(t)&&(r=t.constructor,(fa(r)&&(r===pa||aa(r.prototype))||sa(r)&&null===(r=r[la]))&&(r=void 0)),void 0===r?pa:r},va=function(t,r){return new(ga(t))(0===r?0:r)},da=function(t,r){return Vu(t),void 0===r?t:Bu?Uu(t,r):function(){return t.apply(r,arguments)}},ha=Yr,ya=Kt,ba=fe,ma=va,Oa=v([].push),Sa=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var p,g,v=ya(a),d=ha(v),h=da(f,s),y=ba(d),b=0,m=l||ma,O=r?m(a,y):e||c?m(a,0):void 0;y>b;b++)if((u||b in d)&&(g=h(p=d[b],b,v),t))if(r)O[b]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:Oa(O,p)}else switch(t){case 4:return!1;case 7:Oa(O,p)}return i?-1:n||o?o:O}},wa={forEach:Sa(0),map:Sa(1),filter:Sa(2),some:Sa(3),every:Sa(4),find:Sa(5),findIndex:Sa(6),filterReject:Sa(7)},xa=o,ja=function(t,r){var e=[][t];return!!e&&xa((function(){e.call(null,r||function(){return 1},1)}))},Ea=wa.forEach,Ta=ja("forEach")?[].forEach:function(t){return Ea(this,t,arguments.length>1?arguments[1]:void 0)},Pa=u,ka={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Aa=zu,Ra=Ta,Ia=Fr,La=function(t){if(t&&t.forEach!==Ra)try{Ia(t,"forEach",Ra)}catch(r){t.forEach=Ra}};for(var Ma in ka)ka[Ma]&&La(Pa[Ma]&&Pa[Ma].prototype);La(Aa);var Ca=Ti,_a=Ku,Da=v([].reverse),Fa=[1,2];Ca({target:"Array",proto:!0,forced:String(Fa)===String(Fa.reverse())},{reverse:function(){return _a(this)&&(this.length=this.length),Da(this)}});var Na=wr,$a=B,Ga=Cr,za=function(t,r,e){var n=Na(r);n in t?$a.f(t,n,Ga(0,e)):t[n]=e},Va=o,Ba=lt,Ua=lr("species"),qa=function(t){return Ba>=51||!Va((function(){var r=[];return(r.constructor={})[Ua]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Ka=v([].slice),Wa=Ti,Ya=u,Ha=Ku,Ja=ca,Xa=T,Qa=oe,Za=fe,tf=Xr,rf=za,ef=lr,nf=Ka,of=qa("slice"),cf=ef("species"),uf=Ya.Array,af=Math.max;Wa({target:"Array",proto:!0,forced:!of},{slice:function(t,r){var e,n,o,i=tf(this),c=Za(i),u=Qa(t,c),a=Qa(void 0===r?c:r,c);if(Ha(i)&&(e=i.constructor,(Ja(e)&&(e===uf||Ha(e.prototype))||Xa(e)&&null===(e=e[cf]))&&(e=void 0),e===uf||void 0===e))return nf(i,u,a);for(n=new(void 0===e?uf:e)(af(a-u,0)),o=0;u<a;u++,o++)u in i&&rf(n,o,i[u]);return n.length=o,n}});var ff=Ti,sf=Yr,lf=Xr,pf=ja,gf=v([].join),vf=sf!=Object,df=pf("join",",");ff({target:"Array",proto:!0,forced:vf||!df},{join:function(t){return gf(lf(this),void 0===t?",":t)}});var hf=Ti,yf=u,bf=o,mf=Ku,Of=T,Sf=Kt,wf=fe,xf=za,jf=va,Ef=qa,Tf=lt,Pf=lr("isConcatSpreadable"),kf=9007199254740991,Af="Maximum allowed index exceeded",Rf=yf.TypeError,If=Tf>=51||!bf((function(){var t=[];return t[Pf]=!1,t.concat()[0]!==t})),Lf=Ef("concat"),Mf=function(t){if(!Of(t))return!1;var r=t[Pf];return void 0!==r?!!r:mf(t)};hf({target:"Array",proto:!0,forced:!If||!Lf},{concat:function(t){var r,e,n,o,i,c=Sf(this),u=jf(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(Mf(i=-1===r?c:arguments[r])){if(a+(o=wf(i))>kf)throw Rf(Af);for(e=0;e<o;e++,a++)e in i&&xf(u,a,i[e])}else{if(a>=kf)throw Rf(Af);xf(u,a++,i)}return u.length=a,u}});var Cf=wa.map;Ti({target:"Array",proto:!0,forced:!qa("map")},{map:function(t){return Cf(this,t,arguments.length>1?arguments[1]:void 0)}});var _f=Kt,Df=Ri;Ti({target:"Object",stat:!0,forced:o((function(){Df(1)}))},{keys:function(t){return Df(_f(t))}});var Ff={},Nf=oe,$f=fe,Gf=za,zf=u.Array,Vf=Math.max,Bf=Vr,Uf=Xr,qf=Nr.f,Kf=function(t,r,e){for(var n=$f(t),o=Nf(r,n),i=Nf(void 0===e?n:e,n),c=zf(Vf(i-o,0)),u=0;o<i;o++,u++)Gf(c,u,t[o]);return c.length=u,c},Wf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ff.f=function(t){return Wf&&"Window"==Bf(t)?function(t){try{return qf(t)}catch(t){return Kf(Wf)}}(t):qf(Uf(t))};var Yf={},Hf=lr;Yf.f=Hf;var Jf=u,Xf=Ht,Qf=Yf,Zf=B.f,ts=Z,rs=nt,es=lr,ns=rn.exports,os=B.f,is=Ht,cs=lr("toStringTag"),us=Ti,as=u,fs=Z,ss=v,ls=i,ps=vt,gs=o,vs=Ht,ds=ot,hs=I,ys=Xr,bs=wr,ms=Ge,Os=Cr,Ss=Ji,ws=Ri,xs=Nr,js=Ff,Es=ai,Ts=Yo,Ps=B,ks=Pi,As=Ho,Rs=rn.exports,Is=Ct.exports,Ls=de,Ms=tr,Cs=lr,_s=Yf,Ds=function(t){var r=Jf.Symbol||(Jf.Symbol={});Xf(r,t)||Zf(r,t,{value:Qf.f(t)})},Fs=function(){var t=rs("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=es("toPrimitive");r&&!r[n]&&ns(r,n,(function(t){return ts(e,this)}))},Ns=function(t,r,e){t&&!e&&(t=t.prototype),t&&!is(t,cs)&&os(t,cs,{configurable:!0,value:r})},$s=_n,Gs=wa.forEach,zs=yn("hidden"),Vs="Symbol",Bs=$s.set,Us=$s.getterFor(Vs),qs=Object.prototype,Ks=as.Symbol,Ws=Ks&&Ks.prototype,Ys=as.TypeError,Hs=as.QObject,Js=Ts.f,Xs=Ps.f,Qs=js.f,Zs=As.f,tl=ss([].push),rl=Is("symbols"),el=Is("op-symbols"),nl=Is("wks"),ol=!Hs||!Hs.prototype||!Hs.prototype.findChild,il=ls&&gs((function(){return 7!=Ss(Xs({},"a",{get:function(){return Xs(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=Js(qs,r);n&&delete qs[r],Xs(t,r,e),n&&t!==qs&&Xs(qs,r,n)}:Xs,cl=function(t,r){var e=rl[t]=Ss(Ws);return Bs(e,{type:Vs,tag:t,description:r}),ls||(e.description=r),e},ul=function(t,r,e){t===qs&&ul(el,r,e),hs(t);var n=bs(r);return hs(e),vs(rl,n)?(e.enumerable?(vs(t,zs)&&t[zs][n]&&(t[zs][n]=!1),e=Ss(e,{enumerable:Os(0,!1)})):(vs(t,zs)||Xs(t,zs,Os(1,{})),t[zs][n]=!0),il(t,n,e)):Xs(t,n,e)},al=function(t,r){hs(t);var e=ys(r),n=ws(e).concat(pl(e));return Gs(n,(function(r){ls&&!fs(fl,e,r)||ul(t,r,e[r])})),t},fl=function(t){var r=bs(t),e=fs(Zs,this,r);return!(this===qs&&vs(rl,r)&&!vs(el,r))&&(!(e||!vs(this,r)||!vs(rl,r)||vs(this,zs)&&this[zs][r])||e)},sl=function(t,r){var e=ys(t),n=bs(r);if(e!==qs||!vs(rl,n)||vs(el,n)){var o=Js(e,n);return!o||!vs(rl,n)||vs(e,zs)&&e[zs][n]||(o.enumerable=!0),o}},ll=function(t){var r=Qs(ys(t)),e=[];return Gs(r,(function(t){vs(rl,t)||vs(Ls,t)||tl(e,t)})),e},pl=function(t){var r=t===qs,e=Qs(r?el:ys(t)),n=[];return Gs(e,(function(t){!vs(rl,t)||r&&!vs(qs,t)||tl(n,rl[t])})),n};ps||(Ks=function(){if(ds(Ws,this))throw Ys("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ms(arguments[0]):void 0,r=Ms(t),e=function(t){this===qs&&fs(e,el,t),vs(this,zs)&&vs(this[zs],r)&&(this[zs][r]=!1),il(this,r,Os(1,t))};return ls&&ol&&il(qs,r,{configurable:!0,set:e}),cl(r,t)},Rs(Ws=Ks.prototype,"toString",(function(){return Us(this).tag})),Rs(Ks,"withoutSetter",(function(t){return cl(Ms(t),t)})),As.f=fl,Ps.f=ul,ks.f=al,Ts.f=sl,xs.f=js.f=ll,Es.f=pl,_s.f=function(t){return cl(Cs(t),t)},ls&&(Xs(Ws,"description",{configurable:!0,get:function(){return Us(this).description}}),Rs(qs,"propertyIsEnumerable",fl,{unsafe:!0}))),us({global:!0,wrap:!0,forced:!ps,sham:!ps},{Symbol:Ks}),Gs(ws(nl),(function(t){Ds(t)})),us({target:Vs,stat:!0,forced:!ps},{useSetter:function(){ol=!0},useSimple:function(){ol=!1}}),us({target:"Object",stat:!0,forced:!ps,sham:!ls},{create:function(t,r){return void 0===r?Ss(t):al(Ss(t),r)},defineProperty:ul,defineProperties:al,getOwnPropertyDescriptor:sl}),us({target:"Object",stat:!0,forced:!ps},{getOwnPropertyNames:ll}),Fs(),Ns(Ks,Vs),Ls[zs]=!0;var gl=vt&&!!Symbol.for&&!!Symbol.keyFor,vl=Ti,dl=nt,hl=Ht,yl=Ge,bl=Ct.exports,ml=gl,Ol=bl("string-to-symbol-registry"),Sl=bl("symbol-to-string-registry");vl({target:"Symbol",stat:!0,forced:!ml},{for:function(t){var r=yl(t);if(hl(Ol,r))return Ol[r];var e=dl("Symbol")(r);return Ol[r]=e,Sl[e]=r,e}});var wl=Ti,xl=Ht,jl=St,El=xt,Tl=gl,Pl=(0,Ct.exports)("symbol-to-string-registry");wl({target:"Symbol",stat:!0,forced:!Tl},{keyFor:function(t){if(!jl(t))throw TypeError(El(t)+" is not a symbol");if(xl(Pl,t))return Pl[t]}});var kl=Ti,Al=nt,Rl=Lc,Il=Z,Ll=v,Ml=o,Cl=Ku,_l=d,Dl=T,Fl=St,Nl=Ka,$l=vt,Gl=Al("JSON","stringify"),zl=Ll(/./.exec),Vl=Ll("".charAt),Bl=Ll("".charCodeAt),Ul=Ll("".replace),ql=Ll(1..toString),Kl=/[\uD800-\uDFFF]/g,Wl=/^[\uD800-\uDBFF]$/,Yl=/^[\uDC00-\uDFFF]$/,Hl=!$l||Ml((function(){var t=Al("Symbol")();return"[null]"!=Gl([t])||"{}"!=Gl({a:t})||"{}"!=Gl(Object(t))})),Jl=Ml((function(){return'"\\udf06\\ud834"'!==Gl("\udf06\ud834")||'"\\udead"'!==Gl("\udead")})),Xl=function(t,r){var e=Nl(arguments),n=r;if((Dl(r)||void 0!==t)&&!Fl(t))return Cl(r)||(r=function(t,r){if(_l(n)&&(r=Il(n,this,t,r)),!Fl(r))return r}),e[1]=r,Rl(Gl,null,e)},Ql=function(t,r,e){var n=Vl(e,r-1),o=Vl(e,r+1);return zl(Wl,t)&&!zl(Yl,o)||zl(Yl,t)&&!zl(Wl,n)?"\\u"+ql(Bl(t,0),16):t};Gl&&kl({target:"JSON",stat:!0,forced:Hl||Jl},{stringify:function(t,r,e){var n=Nl(arguments),o=Rl(Hl?Xl:Gl,null,n);return Jl&&"string"==typeof o?Ul(o,Kl,Ql):o}});var Zl=ai,tp=Kt;Ti({target:"Object",stat:!0,forced:!vt||o((function(){Zl.f(1)}))},{getOwnPropertySymbols:function(t){var r=Zl.f;return r?r(tp(t)):[]}});var rp=wa.filter;Ti({target:"Array",proto:!0,forced:!qa("filter")},{filter:function(t){return rp(this,t,arguments.length>1?arguments[1]:void 0)}});var ep=Ti,np=o,op=Xr,ip=Yo.f,cp=i,up=np((function(){ip(1)}));ep({target:"Object",stat:!0,forced:!cp||up,sham:!cp},{getOwnPropertyDescriptor:function(t,r){return ip(op(t),r)}});var ap=vi,fp=Xr,sp=Yo,lp=za;function pp(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}Ti({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=fp(t),o=sp.f,i=ap(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&lp(c,r,e);return c}});var gp=Bt,vp=Ge,dp=/"/g,hp=v("".replace),yp=o,bp=function(t,r,e,n){var o=vp(gp(t)),i="<"+r;return""!==e&&(i+=" "+e+'="'+hp(vp(n),dp,"&quot;")+'"'),i+">"+o+"</"+r+">"},mp=function(t){return yp((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};function Op(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}Ti({target:"String",proto:!0,forced:mp("anchor")},{anchor:function(t){return bp(this,"a","name",t)}});var Sp=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},wp={nodes:{horizontal_rule:function(){return{singleTag:"hr"}},blockquote:function(){return{tag:"blockquote"}},bullet_list:function(){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:Sp(t.attrs,["src","alt","title"])}]}},list_item:function(){return{tag:"li"}},ordered_list:function(){return{tag:"ol"}},paragraph:function(){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Op(Object(e),!0).forEach((function(r){pp(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Op(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},xp=function(){function r(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),t||(t=wp),this.marks=t.marks||[],this.nodes=t.nodes||[]}var e,n,o;return e=r,n=[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}],n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),r}();return xp}();
var RichTextResolver=function(){"use strict";function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=a,s=Function.prototype,l=s.bind,p=s.call,g=f&&l.bind(p,p),v=f?function(t){return t&&g(t)}:function(t){return t&&function(){return p.apply(t,arguments)}},y=function(t){return"function"==typeof t},d=o,h=y,b=/#|\.prototype\./,m=function(t,r){var e=O[S(t)];return e==x||e!=w&&(h(r)?d(r):!!r)},S=m.normalize=function(t){return String(t).replace(b,".").toLowerCase()},O=m.data={},w=m.NATIVE="N",x=m.POLYFILL="P",j=m,E=y,P=function(t){return"object"==typeof t?null!==t:E(t)},T=P,k=String,A=TypeError,R=function(t){if(T(t))return t;throw A(k(t)+" is not an object")},I=y,M=String,L=TypeError,C=v,_=R,D=function(t){if("object"==typeof t||I(t))return t;throw L("Can't set "+M(t)+" as a prototype")},F=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=C(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return _(e),D(n),r?t(e,n):e.__proto__=n,e}}():void 0),N=y,$=P,G=F,z={},V=P,B=u.document,U=V(B)&&V(B.createElement),q=function(t){return U?B.createElement(t):{}},W=q,K=!i&&!o((function(){return 7!=Object.defineProperty(W("div"),"a",{get:function(){return 7}}).a})),Y=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),H=a,J=Function.prototype.call,X=H?J.bind(J):function(){return J.apply(J,arguments)},Q=u,Z=y,tt=function(t){return Z(t)?t:void 0},rt=function(t,r){return arguments.length<2?tt(Q[t]):Q[t]&&Q[t][r]},et=v({}.isPrototypeOf),nt=u,ot=rt("navigator","userAgent")||"",it=nt.process,ct=nt.Deno,ut=it&&it.versions||ct&&ct.version,at=ut&&ut.v8;at&&(e=(r=at.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!e&&ot&&(!(r=ot.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ot.match(/Chrome\/(\d+)/))&&(e=+r[1]);var ft=e,st=ft,lt=o,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),gt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=rt,yt=y,dt=et,ht=Object,bt=gt?function(t){return"symbol"==typeof t}:function(t){var r=vt("Symbol");return yt(r)&&dt(r.prototype,ht(t))},mt=String,St=function(t){try{return mt(t)}catch(t){return"Object"}},Ot=y,wt=St,xt=TypeError,jt=function(t){if(Ot(t))return t;throw xt(wt(t)+" is not a function")},Et=jt,Pt=function(t,r){var e=t[r];return null==e?void 0:Et(e)},Tt=X,kt=y,At=P,Rt=TypeError,It={exports:{}},Mt=u,Lt=Object.defineProperty,Ct=function(t,r){try{Lt(Mt,t,{value:r,configurable:!0,writable:!0})}catch(e){Mt[t]=r}return r},_t=Ct,Dt="__core-js_shared__",Ft=u[Dt]||_t(Dt,{}),Nt=Ft;(It.exports=function(t,r){return Nt[t]||(Nt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var $t=TypeError,Gt=function(t){if(null==t)throw $t("Can't call method on "+t);return t},zt=Gt,Vt=Object,Bt=function(t){return Vt(zt(t))},Ut=Bt,qt=v({}.hasOwnProperty),Wt=Object.hasOwn||function(t,r){return qt(Ut(t),r)},Kt=v,Yt=0,Ht=Math.random(),Jt=Kt(1..toString),Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Jt(++Yt+Ht,36)},Qt=u,Zt=It.exports,tr=Wt,rr=Xt,er=pt,nr=gt,or=Zt("wks"),ir=Qt.Symbol,cr=ir&&ir.for,ur=nr?ir:ir&&ir.withoutSetter||rr,ar=function(t){if(!tr(or,t)||!er&&"string"!=typeof or[t]){var r="Symbol."+t;er&&tr(ir,t)?or[t]=ir[t]:or[t]=nr&&cr?cr(r):ur(r)}return or[t]},fr=X,sr=P,lr=bt,pr=Pt,gr=function(t,r){var e,n;if("string"===r&&kt(e=t.toString)&&!At(n=Tt(e,t)))return n;if(kt(e=t.valueOf)&&!At(n=Tt(e,t)))return n;if("string"!==r&&kt(e=t.toString)&&!At(n=Tt(e,t)))return n;throw Rt("Can't convert object to primitive value")},vr=TypeError,yr=ar("toPrimitive"),dr=function(t,r){if(!sr(t)||lr(t))return t;var e,n=pr(t,yr);if(n){if(void 0===r&&(r="default"),e=fr(n,t,r),!sr(e)||lr(e))return e;throw vr("Can't convert object to primitive value")}return void 0===r&&(r="number"),gr(t,r)},hr=bt,br=function(t){var r=dr(t,"string");return hr(r)?r:r+""},mr=i,Sr=K,Or=Y,wr=R,xr=br,jr=TypeError,Er=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Tr="enumerable",kr="configurable",Ar="writable";z.f=mr?Or?function(t,r,e){if(wr(t),r=xr(r),wr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Ar in e&&!e.writable){var n=Pr(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:kr in e?e.configurable:n.configurable,enumerable:Tr in e?e.enumerable:n.enumerable,writable:!1})}return Er(t,r,e)}:Er:function(t,r,e){if(wr(t),r=xr(r),wr(e),Sr)try{return Er(t,r,e)}catch(t){}if("get"in e||"set"in e)throw jr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Rr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Ir=z,Mr=Rr,Lr=i?function(t,r,e){return Ir.f(t,r,Mr(1,e))}:function(t,r,e){return t[r]=e,t},Cr={},_r=v,Dr=_r({}.toString),Fr=_r("".slice),Nr=function(t){return Fr(Dr(t),8,-1)},$r=o,Gr=Nr,zr=Object,Vr=v("".split),Br=$r((function(){return!zr("z").propertyIsEnumerable(0)}))?function(t){return"String"==Gr(t)?Vr(t,""):zr(t)}:zr,Ur=Br,qr=Gt,Wr=function(t){return Ur(qr(t))},Kr=Math.ceil,Yr=Math.floor,Hr=Math.trunc||function(t){var r=+t;return(r>0?Yr:Kr)(r)},Jr=function(t){var r=+t;return r!=r||0===r?0:Hr(r)},Xr=Jr,Qr=Math.max,Zr=Math.min,te=function(t,r){var e=Xr(t);return e<0?Qr(e+r,0):Zr(e,r)},re=Jr,ee=Math.min,ne=function(t){return t>0?ee(re(t),9007199254740991):0},oe=ne,ie=function(t){return oe(t.length)},ce=Wr,ue=te,ae=ie,fe=function(t){return function(r,e,n){var o,i=ce(r),c=ae(i),u=ue(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},se={includes:fe(!0),indexOf:fe(!1)},le={},pe=Wt,ge=Wr,ve=se.indexOf,ye=le,de=v([].push),he=function(t,r){var e,n=ge(t),o=0,i=[];for(e in n)!pe(ye,e)&&pe(n,e)&&de(i,e);for(;r.length>o;)pe(n,e=r[o++])&&(~ve(i,e)||de(i,e));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=he,Se=be.concat("length","prototype");Cr.f=Object.getOwnPropertyNames||function(t){return me(t,Se)};var Oe=P,we=Nr,xe=ar("match"),je={};je[ar("toStringTag")]="z";var Ee="[object z]"===String(je),Pe=Ee,Te=y,ke=Nr,Ae=ar("toStringTag"),Re=Object,Ie="Arguments"==ke(function(){return arguments}()),Me=Pe?ke:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Re(t),Ae))?e:Ie?ke(r):"Object"==(n=ke(r))&&Te(r.callee)?"Arguments":n},Le=Me,Ce=String,_e=function(t){if("Symbol"===Le(t))throw TypeError("Cannot convert a Symbol value to a string");return Ce(t)},De=R,Fe=function(){var t=De(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Ne=X,$e=Wt,Ge=et,ze=Fe,Ve=RegExp.prototype,Be=function(t){var r=t.flags;return void 0!==r||"flags"in Ve||$e(t,"flags")||!Ge(Ve,t)?r:Ne(ze,t)},Ue=o,qe=u.RegExp,We=Ue((function(){var t=qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ke=We||Ue((function(){return!qe("a","y").sticky})),Ye={BROKEN_CARET:We||Ue((function(){var t=qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ke,UNSUPPORTED_Y:We},He=z.f,Je={exports:{}},Xe=i,Qe=Wt,Ze=Function.prototype,tn=Xe&&Object.getOwnPropertyDescriptor,rn=Qe(Ze,"name"),en={EXISTS:rn,PROPER:rn&&"something"===function(){}.name,CONFIGURABLE:rn&&(!Xe||Xe&&tn(Ze,"name").configurable)},nn=y,on=Ft,cn=v(Function.toString);nn(on.inspectSource)||(on.inspectSource=function(t){return cn(t)});var un,an,fn,sn=on.inspectSource,ln=y,pn=sn,gn=u.WeakMap,vn=ln(gn)&&/native code/.test(pn(gn)),yn=It.exports,dn=Xt,hn=yn("keys"),bn=function(t){return hn[t]||(hn[t]=dn(t))},mn=vn,Sn=u,On=v,wn=P,xn=Lr,jn=Wt,En=Ft,Pn=bn,Tn=le,kn="Object already initialized",An=Sn.TypeError,Rn=Sn.WeakMap;if(mn||En.state){var In=En.state||(En.state=new Rn),Mn=On(In.get),Ln=On(In.has),Cn=On(In.set);un=function(t,r){if(Ln(In,t))throw new An(kn);return r.facade=t,Cn(In,t,r),r},an=function(t){return Mn(In,t)||{}},fn=function(t){return Ln(In,t)}}else{var _n=Pn("state");Tn[_n]=!0,un=function(t,r){if(jn(t,_n))throw new An(kn);return r.facade=t,xn(t,_n,r),r},an=function(t){return jn(t,_n)?t[_n]:{}},fn=function(t){return jn(t,_n)}}var Dn={set:un,get:an,has:fn,enforce:function(t){return fn(t)?an(t):un(t,{})},getterFor:function(t){return function(r){var e;if(!wn(r)||(e=an(r)).type!==t)throw An("Incompatible receiver, "+t+" required");return e}}},Fn=o,Nn=y,$n=Wt,Gn=i,zn=en.CONFIGURABLE,Vn=sn,Bn=Dn.enforce,Un=Dn.get,qn=Object.defineProperty,Wn=Gn&&!Fn((function(){return 8!==qn((function(){}),"length",{value:8}).length})),Kn=String(String).split("String"),Yn=Je.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!$n(t,"name")||zn&&t.name!==r)&&(Gn?qn(t,"name",{value:r,configurable:!0}):t.name=r),Wn&&e&&$n(e,"arity")&&t.length!==e.arity&&qn(t,"length",{value:e.arity});try{e&&$n(e,"constructor")&&e.constructor?Gn&&qn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Bn(t);return $n(n,"source")||(n.source=Kn.join("string"==typeof r?r:"")),t};Function.prototype.toString=Yn((function(){return Nn(this)&&Un(this).source||Vn(this)}),"toString");var Hn=y,Jn=z,Xn=Je.exports,Qn=Ct,Zn=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Hn(e)&&Xn(e,i,n),n.global)o?t[r]=e:Qn(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(t){}o?t[r]=e:Jn.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},to=rt,ro=z,eo=i,no=ar("species"),oo=o,io=u.RegExp,co=oo((function(){var t=io(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),uo=o,ao=u.RegExp,fo=uo((function(){var t=ao("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),so=i,lo=u,po=v,go=j,vo=function(t,r,e){var n,o;return G&&N(n=r.constructor)&&n!==e&&$(o=n.prototype)&&o!==e.prototype&&G(t,o),t},yo=Lr,ho=Cr.f,bo=et,mo=function(t){var r;return Oe(t)&&(void 0!==(r=t[xe])?!!r:"RegExp"==we(t))},So=_e,Oo=Be,wo=Ye,xo=function(t,r,e){e in t||He(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},jo=Zn,Eo=o,Po=Wt,To=Dn.enforce,ko=function(t){var r=to(t),e=ro.f;eo&&r&&!r[no]&&e(r,no,{configurable:!0,get:function(){return this}})},Ao=co,Ro=fo,Io=ar("match"),Mo=lo.RegExp,Lo=Mo.prototype,Co=lo.SyntaxError,_o=po(Lo.exec),Do=po("".charAt),Fo=po("".replace),No=po("".indexOf),$o=po("".slice),Go=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,zo=/a/g,Vo=/a/g,Bo=new Mo(zo)!==zo,Uo=wo.MISSED_STICKY,qo=wo.UNSUPPORTED_Y,Wo=so&&(!Bo||Uo||Ao||Ro||Eo((function(){return Vo[Io]=!1,Mo(zo)!=zo||Mo(Vo)==Vo||"/a/i"!=Mo(zo,"i")})));if(go("RegExp",Wo)){for(var Ko=function(t,r){var e,n,o,i,c,u,a=bo(Lo,this),f=mo(t),s=void 0===r,l=[],p=t;if(!a&&f&&s&&t.constructor===Ko)return t;if((f||bo(Lo,t))&&(t=t.source,s&&(r=Oo(p))),t=void 0===t?"":So(t),r=void 0===r?"":So(r),p=t,Ao&&"dotAll"in zo&&(n=!!r&&No(r,"s")>-1)&&(r=Fo(r,/s/g,"")),e=r,Uo&&"sticky"in zo&&(o=!!r&&No(r,"y")>-1)&&qo&&(r=Fo(r,/y/g,"")),Ro&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=Do(t,n)))r+=Do(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:_o(Go,$o(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||Po(c,s))throw new Co("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),c=vo(Mo(t,r),a?this:Lo,Ko),(n||o||l.length)&&(u=To(c),n&&(u.dotAll=!0,u.raw=Ko(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=Do(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+Do(t,++n);return o}(t),e)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==p)try{yo(c,"source",""===p?"(?:)":p)}catch(t){}return c},Yo=ho(Mo),Ho=0;Yo.length>Ho;)xo(Ko,Mo,Yo[Ho++]);Lo.constructor=Ko,Ko.prototype=Lo,jo(lo,"RegExp",Ko,{constructor:!0})}ko("RegExp");var Jo={},Xo={},Qo={}.propertyIsEnumerable,Zo=Object.getOwnPropertyDescriptor,ti=Zo&&!Qo.call({1:2},1);Xo.f=ti?function(t){var r=Zo(this,t);return!!r&&r.enumerable}:Qo;var ri=i,ei=X,ni=Xo,oi=Rr,ii=Wr,ci=br,ui=Wt,ai=K,fi=Object.getOwnPropertyDescriptor;Jo.f=ri?fi:function(t,r){if(t=ii(t),r=ci(r),ai)try{return fi(t,r)}catch(t){}if(ui(t,r))return oi(!ei(ni.f,t,r),t[r])};var si={};si.f=Object.getOwnPropertySymbols;var li=rt,pi=Cr,gi=si,vi=R,yi=v([].concat),di=li("Reflect","ownKeys")||function(t){var r=pi.f(vi(t)),e=gi.f;return e?yi(r,e(t)):r},hi=Wt,bi=di,mi=Jo,Si=z,Oi=u,wi=Jo.f,xi=Lr,ji=Zn,Ei=Ct,Pi=function(t,r,e){for(var n=bi(r),o=Si.f,i=mi.f,c=0;c<n.length;c++){var u=n[c];hi(t,u)||e&&hi(e,u)||o(t,u,i(r,u))}},Ti=j,ki=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?Oi:f?Oi[u]||Ei(u,{}):(Oi[u]||{}).prototype)for(n in r){if(i=r[n],o=t.dontCallGetSet?(c=wi(e,n))&&c.value:e[n],!Ti(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pi(i,o)}(t.sham||o&&o.sham)&&xi(i,"sham",!0),ji(e,n,i,t)}},Ai={},Ri=he,Ii=be,Mi=Object.keys||function(t){return Ri(t,Ii)},Li=i,Ci=Y,_i=z,Di=R,Fi=Wr,Ni=Mi;Ai.f=Li&&!Ci?Object.defineProperties:function(t,r){Di(t);for(var e,n=Fi(r),o=Ni(r),i=o.length,c=0;i>c;)_i.f(t,e=o[c++],n[e]);return t};var $i,Gi=rt("document","documentElement"),zi=R,Vi=Ai,Bi=be,Ui=le,qi=Gi,Wi=q,Ki=bn("IE_PROTO"),Yi=function(){},Hi=function(t){return"<script>"+t+"</"+"script>"},Ji=function(t){t.write(Hi("")),t.close();var r=t.parentWindow.Object;return t=null,r},Xi=function(){try{$i=new ActiveXObject("htmlfile")}catch(t){}var t,r;Xi="undefined"!=typeof document?document.domain&&$i?Ji($i):((r=Wi("iframe")).style.display="none",qi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Hi("document.F=Object")),t.close(),t.F):Ji($i);for(var e=Bi.length;e--;)delete Xi.prototype[Bi[e]];return Xi()};Ui[Ki]=!0;var Qi=Object.create||function(t,r){var e;return null!==t?(Yi.prototype=zi(t),e=new Yi,Yi.prototype=null,e[Ki]=t):e=Xi(),void 0===r?e:Vi.f(e,r)},Zi=X,tc=v,rc=_e,ec=Fe,nc=Ye,oc=It.exports,ic=Qi,cc=Dn.get,uc=co,ac=fo,fc=oc("native-string-replace",String.prototype.replace),sc=RegExp.prototype.exec,lc=sc,pc=tc("".charAt),gc=tc("".indexOf),vc=tc("".replace),yc=tc("".slice),dc=function(){var t=/a/,r=/b*/g;return Zi(sc,t,"a"),Zi(sc,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),hc=nc.BROKEN_CARET,bc=void 0!==/()??/.exec("")[1];(dc||bc||hc||uc||ac)&&(lc=function(t){var r,e,n,o,i,c,u,a=this,f=cc(a),s=rc(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Zi(lc,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=hc&&a.sticky,v=Zi(ec,a),y=a.source,d=0,h=s;if(g&&(v=vc(v,"y",""),-1===gc(v,"g")&&(v+="g"),h=yc(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==pc(s,a.lastIndex-1))&&(y="(?: "+y+")",h=" "+h,d++),e=new RegExp("^(?:"+y+")",v)),bc&&(e=new RegExp("^"+y+"$(?!\\s)",v)),dc&&(n=a.lastIndex),o=Zi(sc,g?e:a,h),g?o?(o.input=yc(o.input,d),o[0]=yc(o[0],d),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:dc&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),bc&&o&&o.length>1&&Zi(fc,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=ic(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var mc=lc;ki({target:"RegExp",proto:!0,forced:/./.exec!==mc},{exec:mc});var Sc=en.PROPER,Oc=Zn,wc=R,xc=_e,jc=o,Ec=Be,Pc="toString",Tc=RegExp.prototype.toString,kc=jc((function(){return"/a/b"!=Tc.call({source:"a",flags:"b"})})),Ac=Sc&&Tc.name!=Pc;(kc||Ac)&&Oc(RegExp.prototype,Pc,(function(){var t=wc(this);return"/"+xc(t.source)+"/"+xc(Ec(t))}),{unsafe:!0});var Rc=a,Ic=Function.prototype,Mc=Ic.apply,Lc=Ic.call,Cc="object"==typeof Reflect&&Reflect.apply||(Rc?Lc.bind(Mc):function(){return Lc.apply(Mc,arguments)}),_c=v,Dc=Zn,Fc=mc,Nc=o,$c=ar,Gc=Lr,zc=$c("species"),Vc=RegExp.prototype,Bc=v,Uc=Jr,qc=_e,Wc=Gt,Kc=Bc("".charAt),Yc=Bc("".charCodeAt),Hc=Bc("".slice),Jc=function(t){return function(r,e){var n,o,i=qc(Wc(r)),c=Uc(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=Yc(i,c))<55296||n>56319||c+1===u||(o=Yc(i,c+1))<56320||o>57343?t?Kc(i,c):n:t?Hc(i,c,c+2):o-56320+(n-55296<<10)+65536}},Xc={codeAt:Jc(!1),charAt:Jc(!0)}.charAt,Qc=v,Zc=Bt,tu=Math.floor,ru=Qc("".charAt),eu=Qc("".replace),nu=Qc("".slice),ou=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iu=/\$([$&'`]|\d{1,2})/g,cu=X,uu=R,au=y,fu=Nr,su=mc,lu=TypeError,pu=Cc,gu=X,vu=v,yu=function(t,r,e,n){var o=$c(t),i=!Nc((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!Nc((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[zc]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=_c(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var c=_c(t),a=r.exec;return a===Fc||a===Vc.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));Dc(String.prototype,t,a[0]),Dc(Vc,o,a[1])}n&&Gc(Vc[o],"sham",!0)},du=o,hu=R,bu=y,mu=Jr,Su=ne,Ou=_e,wu=Gt,xu=function(t,r,e){return r+(e?Xc(t,r).length:1)},ju=Pt,Eu=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=iu;return void 0!==o&&(o=Zc(o),a=ou),eu(i,a,(function(i,a){var f;switch(ru(a,0)){case"$":return"$";case"&":return t;case"`":return nu(r,0,e);case"'":return nu(r,c);case"<":f=o[nu(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=tu(s/10);return 0===l?i:l<=u?void 0===n[l-1]?ru(a,1):n[l-1]+ru(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Pu=function(t,r){var e=t.exec;if(au(e)){var n=cu(e,t,r);return null!==n&&uu(n),n}if("RegExp"===fu(t))return cu(su,t,r);throw lu("RegExp#exec called on incompatible receiver")},Tu=ar("replace"),ku=Math.max,Au=Math.min,Ru=vu([].concat),Iu=vu([].push),Mu=vu("".indexOf),Lu=vu("".slice),Cu="$0"==="a".replace(/./,"$0"),_u=!!/./[Tu]&&""===/./[Tu]("a","$0");yu("replace",(function(t,r,e){var n=_u?"$":"$0";return[function(t,e){var n=wu(this),o=null==t?void 0:ju(t,Tu);return o?gu(o,t,n,e):gu(r,Ou(n),t,e)},function(t,o){var i=hu(this),c=Ou(t);if("string"==typeof o&&-1===Mu(o,n)&&-1===Mu(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=bu(o);a||(o=Ou(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Pu(i,c);if(null===p)break;if(Iu(l,p),!f)break;""===Ou(p[0])&&(i.lastIndex=xu(c,Su(i.lastIndex),s))}for(var g,v="",y=0,d=0;d<l.length;d++){for(var h=Ou((p=l[d])[0]),b=ku(Au(mu(p.index),c.length),0),m=[],S=1;S<p.length;S++)Iu(m,void 0===(g=p[S])?g:String(g));var O=p.groups;if(a){var w=Ru([h],m,b,c);void 0!==O&&Iu(w,O);var x=Ou(pu(o,void 0,w))}else x=Eu(h,c,b,m,O,o);b>=y&&(v+=Lu(c,y,b)+x,y=b+h.length)}return v+Lu(c,y)}]}),!!du((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Cu||_u);var Du=Me,Fu=Ee?{}.toString:function(){return"[object "+Du(this)+"]"};Ee||Zn(Object.prototype,"toString",Fu,{unsafe:!0});var Nu=q("span").classList,$u=Nu&&Nu.constructor&&Nu.constructor.prototype,Gu=$u===Object.prototype?void 0:$u,zu=jt,Vu=a,Bu=v(v.bind),Uu=Nr,qu=Array.isArray||function(t){return"Array"==Uu(t)},Wu=v,Ku=o,Yu=y,Hu=Me,Ju=sn,Xu=function(){},Qu=[],Zu=rt("Reflect","construct"),ta=/^\s*(?:class|function)\b/,ra=Wu(ta.exec),ea=!ta.exec(Xu),na=function(t){if(!Yu(t))return!1;try{return Zu(Xu,Qu,t),!0}catch(t){return!1}},oa=function(t){if(!Yu(t))return!1;switch(Hu(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ea||!!ra(ta,Ju(t))}catch(t){return!0}};oa.sham=!0;var ia=!Zu||Ku((function(){var t;return na(na.call)||!na(Object)||!na((function(){t=!0}))||t}))?oa:na,ca=qu,ua=ia,aa=P,fa=ar("species"),sa=Array,la=function(t){var r;return ca(t)&&(r=t.constructor,(ua(r)&&(r===sa||ca(r.prototype))||aa(r)&&null===(r=r[fa]))&&(r=void 0)),void 0===r?sa:r},pa=function(t,r){return new(la(t))(0===r?0:r)},ga=function(t,r){return zu(t),void 0===r?t:Vu?Bu(t,r):function(){return t.apply(r,arguments)}},va=Br,ya=Bt,da=ie,ha=pa,ba=v([].push),ma=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var p,g,v=ya(a),y=va(v),d=ga(f,s),h=da(y),b=0,m=l||ha,S=r?m(a,h):e||c?m(a,0):void 0;h>b;b++)if((u||b in y)&&(g=d(p=y[b],b,v),t))if(r)S[b]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:ba(S,p)}else switch(t){case 4:return!1;case 7:ba(S,p)}return i?-1:n||o?o:S}},Sa={forEach:ma(0),map:ma(1),filter:ma(2),some:ma(3),every:ma(4),find:ma(5),findIndex:ma(6),filterReject:ma(7)},Oa=o,wa=function(t,r){var e=[][t];return!!e&&Oa((function(){e.call(null,r||function(){return 1},1)}))},xa=Sa.forEach,ja=wa("forEach")?[].forEach:function(t){return xa(this,t,arguments.length>1?arguments[1]:void 0)},Ea=u,Pa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ta=Gu,ka=ja,Aa=Lr,Ra=function(t){if(t&&t.forEach!==ka)try{Aa(t,"forEach",ka)}catch(r){t.forEach=ka}};for(var Ia in Pa)Pa[Ia]&&Ra(Ea[Ia]&&Ea[Ia].prototype);Ra(Ta);var Ma=ki,La=qu,Ca=v([].reverse),_a=[1,2];Ma({target:"Array",proto:!0,forced:String(_a)===String(_a.reverse())},{reverse:function(){return La(this)&&(this.length=this.length),Ca(this)}});var Da=br,Fa=z,Na=Rr,$a=function(t,r,e){var n=Da(r);n in t?Fa.f(t,n,Na(0,e)):t[n]=e},Ga=o,za=ft,Va=ar("species"),Ba=function(t){return za>=51||!Ga((function(){var r=[];return(r.constructor={})[Va]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Ua=v([].slice),qa=ki,Wa=qu,Ka=ia,Ya=P,Ha=te,Ja=ie,Xa=Wr,Qa=$a,Za=ar,tf=Ua,rf=Ba("slice"),ef=Za("species"),nf=Array,of=Math.max;qa({target:"Array",proto:!0,forced:!rf},{slice:function(t,r){var e,n,o,i=Xa(this),c=Ja(i),u=Ha(t,c),a=Ha(void 0===r?c:r,c);if(Wa(i)&&(e=i.constructor,(Ka(e)&&(e===nf||Wa(e.prototype))||Ya(e)&&null===(e=e[ef]))&&(e=void 0),e===nf||void 0===e))return tf(i,u,a);for(n=new(void 0===e?nf:e)(of(a-u,0)),o=0;u<a;u++,o++)u in i&&Qa(n,o,i[u]);return n.length=o,n}});var cf=ki,uf=Br,af=Wr,ff=wa,sf=v([].join),lf=uf!=Object,pf=ff("join",",");cf({target:"Array",proto:!0,forced:lf||!pf},{join:function(t){return sf(af(this),void 0===t?",":t)}});var gf=TypeError,vf=ki,yf=o,df=qu,hf=P,bf=Bt,mf=ie,Sf=function(t){if(t>9007199254740991)throw gf("Maximum allowed index exceeded");return t},Of=$a,wf=pa,xf=Ba,jf=ft,Ef=ar("isConcatSpreadable"),Pf=jf>=51||!yf((function(){var t=[];return t[Ef]=!1,t.concat()[0]!==t})),Tf=xf("concat"),kf=function(t){if(!hf(t))return!1;var r=t[Ef];return void 0!==r?!!r:df(t)};vf({target:"Array",proto:!0,arity:1,forced:!Pf||!Tf},{concat:function(t){var r,e,n,o,i,c=bf(this),u=wf(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(kf(i=-1===r?c:arguments[r]))for(o=mf(i),Sf(a+o),e=0;e<o;e++,a++)e in i&&Of(u,a,i[e]);else Sf(a+1),Of(u,a++,i);return u.length=a,u}});var Af=Sa.map;ki({target:"Array",proto:!0,forced:!Ba("map")},{map:function(t){return Af(this,t,arguments.length>1?arguments[1]:void 0)}});var Rf=Bt,If=Mi;ki({target:"Object",stat:!0,forced:o((function(){If(1)}))},{keys:function(t){return If(Rf(t))}});var Mf={},Lf=te,Cf=ie,_f=$a,Df=Array,Ff=Math.max,Nf=Nr,$f=Wr,Gf=Cr.f,zf=function(t,r,e){for(var n=Cf(t),o=Lf(r,n),i=Lf(void 0===e?n:e,n),c=Df(Ff(i-o,0)),u=0;o<i;o++,u++)_f(c,u,t[o]);return c.length=u,c},Vf="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Mf.f=function(t){return Vf&&"Window"==Nf(t)?function(t){try{return Gf(t)}catch(t){return zf(Vf)}}(t):Gf($f(t))};var Bf={},Uf=ar;Bf.f=Uf;var qf=u,Wf=Wt,Kf=Bf,Yf=z.f,Hf=X,Jf=rt,Xf=ar,Qf=Zn,Zf=z.f,ts=Wt,rs=ar("toStringTag"),es=ki,ns=u,os=X,is=v,cs=i,us=pt,as=o,fs=Wt,ss=et,ls=R,ps=Wr,gs=br,vs=_e,ys=Rr,ds=Qi,hs=Mi,bs=Cr,ms=Mf,Ss=si,Os=Jo,ws=z,xs=Ai,js=Xo,Es=Zn,Ps=It.exports,Ts=le,ks=Xt,As=ar,Rs=Bf,Is=function(t){var r=qf.Symbol||(qf.Symbol={});Wf(r,t)||Yf(r,t,{value:Kf.f(t)})},Ms=function(){var t=Jf("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Xf("toPrimitive");r&&!r[n]&&Qf(r,n,(function(t){return Hf(e,this)}),{arity:1})},Ls=function(t,r,e){t&&!e&&(t=t.prototype),t&&!ts(t,rs)&&Zf(t,rs,{configurable:!0,value:r})},Cs=Dn,_s=Sa.forEach,Ds=bn("hidden"),Fs="Symbol",Ns=Cs.set,$s=Cs.getterFor(Fs),Gs=Object.prototype,zs=ns.Symbol,Vs=zs&&zs.prototype,Bs=ns.TypeError,Us=ns.QObject,qs=Os.f,Ws=ws.f,Ks=ms.f,Ys=js.f,Hs=is([].push),Js=Ps("symbols"),Xs=Ps("op-symbols"),Qs=Ps("wks"),Zs=!Us||!Us.prototype||!Us.prototype.findChild,tl=cs&&as((function(){return 7!=ds(Ws({},"a",{get:function(){return Ws(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=qs(Gs,r);n&&delete Gs[r],Ws(t,r,e),n&&t!==Gs&&Ws(Gs,r,n)}:Ws,rl=function(t,r){var e=Js[t]=ds(Vs);return Ns(e,{type:Fs,tag:t,description:r}),cs||(e.description=r),e},el=function(t,r,e){t===Gs&&el(Xs,r,e),ls(t);var n=gs(r);return ls(e),fs(Js,n)?(e.enumerable?(fs(t,Ds)&&t[Ds][n]&&(t[Ds][n]=!1),e=ds(e,{enumerable:ys(0,!1)})):(fs(t,Ds)||Ws(t,Ds,ys(1,{})),t[Ds][n]=!0),tl(t,n,e)):Ws(t,n,e)},nl=function(t,r){ls(t);var e=ps(r),n=hs(e).concat(ul(e));return _s(n,(function(r){cs&&!os(ol,e,r)||el(t,r,e[r])})),t},ol=function(t){var r=gs(t),e=os(Ys,this,r);return!(this===Gs&&fs(Js,r)&&!fs(Xs,r))&&(!(e||!fs(this,r)||!fs(Js,r)||fs(this,Ds)&&this[Ds][r])||e)},il=function(t,r){var e=ps(t),n=gs(r);if(e!==Gs||!fs(Js,n)||fs(Xs,n)){var o=qs(e,n);return!o||!fs(Js,n)||fs(e,Ds)&&e[Ds][n]||(o.enumerable=!0),o}},cl=function(t){var r=Ks(ps(t)),e=[];return _s(r,(function(t){fs(Js,t)||fs(Ts,t)||Hs(e,t)})),e},ul=function(t){var r=t===Gs,e=Ks(r?Xs:ps(t)),n=[];return _s(e,(function(t){!fs(Js,t)||r&&!fs(Gs,t)||Hs(n,Js[t])})),n};us||(zs=function(){if(ss(Vs,this))throw Bs("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?vs(arguments[0]):void 0,r=ks(t),e=function(t){this===Gs&&os(e,Xs,t),fs(this,Ds)&&fs(this[Ds],r)&&(this[Ds][r]=!1),tl(this,r,ys(1,t))};return cs&&Zs&&tl(Gs,r,{configurable:!0,set:e}),rl(r,t)},Es(Vs=zs.prototype,"toString",(function(){return $s(this).tag})),Es(zs,"withoutSetter",(function(t){return rl(ks(t),t)})),js.f=ol,ws.f=el,xs.f=nl,Os.f=il,bs.f=ms.f=cl,Ss.f=ul,Rs.f=function(t){return rl(As(t),t)},cs&&(Ws(Vs,"description",{configurable:!0,get:function(){return $s(this).description}}),Es(Gs,"propertyIsEnumerable",ol,{unsafe:!0}))),es({global:!0,constructor:!0,wrap:!0,forced:!us,sham:!us},{Symbol:zs}),_s(hs(Qs),(function(t){Is(t)})),es({target:Fs,stat:!0,forced:!us},{useSetter:function(){Zs=!0},useSimple:function(){Zs=!1}}),es({target:"Object",stat:!0,forced:!us,sham:!cs},{create:function(t,r){return void 0===r?ds(t):nl(ds(t),r)},defineProperty:el,defineProperties:nl,getOwnPropertyDescriptor:il}),es({target:"Object",stat:!0,forced:!us},{getOwnPropertyNames:cl}),Ms(),Ls(zs,Fs),Ts[Ds]=!0;var al=pt&&!!Symbol.for&&!!Symbol.keyFor,fl=ki,sl=rt,ll=Wt,pl=_e,gl=It.exports,vl=al,yl=gl("string-to-symbol-registry"),dl=gl("symbol-to-string-registry");fl({target:"Symbol",stat:!0,forced:!vl},{for:function(t){var r=pl(t);if(ll(yl,r))return yl[r];var e=sl("Symbol")(r);return yl[r]=e,dl[e]=r,e}});var hl=ki,bl=Wt,ml=bt,Sl=St,Ol=al,wl=(0,It.exports)("symbol-to-string-registry");hl({target:"Symbol",stat:!0,forced:!Ol},{keyFor:function(t){if(!ml(t))throw TypeError(Sl(t)+" is not a symbol");if(bl(wl,t))return wl[t]}});var xl=ki,jl=rt,El=Cc,Pl=X,Tl=v,kl=o,Al=qu,Rl=y,Il=P,Ml=bt,Ll=Ua,Cl=pt,_l=jl("JSON","stringify"),Dl=Tl(/./.exec),Fl=Tl("".charAt),Nl=Tl("".charCodeAt),$l=Tl("".replace),Gl=Tl(1..toString),zl=/[\uD800-\uDFFF]/g,Vl=/^[\uD800-\uDBFF]$/,Bl=/^[\uDC00-\uDFFF]$/,Ul=!Cl||kl((function(){var t=jl("Symbol")();return"[null]"!=_l([t])||"{}"!=_l({a:t})||"{}"!=_l(Object(t))})),ql=kl((function(){return'"\\udf06\\ud834"'!==_l("\udf06\ud834")||'"\\udead"'!==_l("\udead")})),Wl=function(t,r){var e=Ll(arguments),n=r;if((Il(r)||void 0!==t)&&!Ml(t))return Al(r)||(r=function(t,r){if(Rl(n)&&(r=Pl(n,this,t,r)),!Ml(r))return r}),e[1]=r,El(_l,null,e)},Kl=function(t,r,e){var n=Fl(e,r-1),o=Fl(e,r+1);return Dl(Vl,t)&&!Dl(Bl,o)||Dl(Bl,t)&&!Dl(Vl,n)?"\\u"+Gl(Nl(t,0),16):t};_l&&xl({target:"JSON",stat:!0,arity:3,forced:Ul||ql},{stringify:function(t,r,e){var n=Ll(arguments),o=El(Ul?Wl:_l,null,n);return ql&&"string"==typeof o?$l(o,zl,Kl):o}});var Yl=si,Hl=Bt;ki({target:"Object",stat:!0,forced:!pt||o((function(){Yl.f(1)}))},{getOwnPropertySymbols:function(t){var r=Yl.f;return r?r(Hl(t)):[]}});var Jl=Sa.filter;ki({target:"Array",proto:!0,forced:!Ba("filter")},{filter:function(t){return Jl(this,t,arguments.length>1?arguments[1]:void 0)}});var Xl=ki,Ql=o,Zl=Wr,tp=Jo.f,rp=i,ep=Ql((function(){tp(1)}));Xl({target:"Object",stat:!0,forced:!rp||ep,sham:!rp},{getOwnPropertyDescriptor:function(t,r){return tp(Zl(t),r)}});var np=di,op=Wr,ip=Jo,cp=$a;function up(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}ki({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=op(t),o=ip.f,i=np(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&cp(c,r,e);return c}});var ap=Gt,fp=_e,sp=/"/g,lp=v("".replace),pp=o,gp=function(t,r,e,n){var o=fp(ap(t)),i="<"+r;return""!==e&&(i+=" "+e+'="'+lp(fp(n),sp,"&quot;")+'"'),i+">"+o+"</"+r+">"},vp=function(t){return pp((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};function yp(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}ki({target:"String",proto:!0,forced:vp("anchor")},{anchor:function(t){return gp(this,"a","name",t)}});var dp=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},hp={nodes:{horizontal_rule:function(){return{singleTag:"hr"}},blockquote:function(){return{tag:"blockquote"}},bullet_list:function(){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:dp(t.attrs,["src","alt","title"])}]}},list_item:function(){return{tag:"li"}},ordered_list:function(){return{tag:"ol"}},paragraph:function(){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?yp(Object(e),!0).forEach((function(r){up(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):yp(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},bp=function(){function r(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),t||(t=hp),this.marks=t.marks||[],this.nodes=t.nodes||[]}var e,n,o;return e=r,n=[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}],n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),r}();return bp}();

@@ -6,2 +6,2 @@ /*!

*/
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("axios"));function s(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function r(e,t,r){if(!s(t))throw new TypeError("Expected `limit` to be a finite number");if(!s(r))throw new TypeError("Expected `interval` to be a finite number");var i=[],n=[],o=0,a=function(){o++;var t=setTimeout((function(){o--,i.length>0&&a(),n=n.filter((function(e){return e!==t}))}),r);n.indexOf(t)<0&&n.push(t);var s=i.shift();s.resolve(e.apply(s.self,s.args))},l=function(){var e=arguments,s=this;return new Promise((function(r,n){i.push({resolve:r,reject:n,args:e,self:s}),o<t&&a()}))};return l.abort=function(){n.forEach(clearTimeout),n=[],i.forEach((function(e){e.reject(new throttle.AbortError)})),i.length=0},l}r.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const i=function(e,t){if(!e)return null;let s={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(s[r]=i)}return s};var n={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:i(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:s="url"}=e.attrs;return"email"===s&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class o{constructor(e){e||(e=n),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderOpeningTag(s.tag))}));const s=this.getMatchingNode(e);return s&&s.tag&&t.push(this.renderOpeningTag(s.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=/[&<>"']/g,r=RegExp(s.source);return e&&r.test(e)?e.replace(s,(e=>t[e])):e}(e.text)):s&&s.singleTag?t.push(this.renderTag(s.singleTag," /")):s&&s.html&&t.push(s.html),s&&s.tag&&t.push(this.renderClosingTag(s.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderClosingTag(s.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let s=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(s+=` ${t}="${r}"`)}return`${s}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const a=(e=0,t=e)=>{const s=Math.abs(t-e)||0,r=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(s,((t,s)=>s*r+e))},l=(e,t,s)=>{const r=[];for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=e[i],o=s?"":encodeURIComponent(i);let a;a="object"==typeof n?l(n,t?t+encodeURIComponent("["+o+"]"):o,Array.isArray(n)):(t?t+encodeURIComponent("["+o+"]"):o)+"="+encodeURIComponent(n),r.push(a)}return r.join("&")};let c={},h={};module.exports=class{constructor(e,s){if(!s){let t=e.region?`-${e.region}`:"",r=!1===e.https?"http":"https";s=void 0===e.oauthToken?`${r}://api${t}.storyblok.com/v2`:`${r}://api${t}.storyblok.com/v1`}let i=Object.assign({},e.headers),n=5;void 0!==e.oauthToken&&(i.Authorization=e.oauthToken,n=3),void 0!==e.rateLimit&&(n=e.rateLimit),this.richTextResolver=new o(e.richTextSchema),"function"==typeof e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=r(this.throttledRequest,n,1e3),this.accessToken=e.accessToken,this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.client=t.default.create({baseURL:s,timeout:e.timeout||0,headers:i,proxy:e.proxy||!1}),e.responseInterceptor&&this.client.interceptors.response.use((t=>e.responseInterceptor(t))),this.resolveNestedRelations=e.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let s="";return t.attrs.body.forEach((t=>{s+=e(t.component,t)})),{html:s}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=h[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,s,r){const i=this.factoryParamOptions(e,((e={},t=25,s=1)=>({...e,per_page:t,page:s}))(t,s,r));return this.cacheResponse(e,i)}get(e,t){let s=`/${e}`;const r=this.factoryParamOptions(s,t);return this.cacheResponse(s,r)}async getAll(e,t={},s){const r=t.per_page||25,i=`/${e}`,n=i.split("/");s=s||n[n.length-1];const o=await this.makeRequest(i,t,r,1),l=Math.ceil(o.total/r);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([o,...await(async(e=[],t)=>Promise.all(e.map(t)))(a(1,l),(async e=>this.makeRequest(i,t,r,e+1)))],(e=>Object.values(e.data[s])))}post(e,t){let s=`/${e}`;return this.throttle("post",s,t)}put(e,t){let s=`/${e}`;return this.throttle("put",s,t)}delete(e,t){let s=`/${e}`;return this.throttle("delete",s,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const s=e[t];s&&"multilink"==s.fieldtype&&"story"==s.linktype&&"string"==typeof s.id&&this.links[s.id]?s.story=this._cleanCopy(this.links[s.id]):s&&"story"===s.linktype&&"string"==typeof s.uuid&&this.links[s.uuid]&&(s.story=this._cleanCopy(this.links[s.uuid]))}_insertRelations(e,t,s){if(s.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let s=[];e[t].forEach((e=>{this.relations[e]&&s.push(this._cleanCopy(this.relations[e]))})),e[t]=s}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let s=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)s(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let r in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,r,t),this._insertLinks(e,r)):"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),s(e[r])}};s(e.content)}async resolveLinks(e,t){let s=[];if(e.link_uuids){const r=e.link_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.link_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.links;s.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let s=[];if(e.rel_uuids){const r=e.rel_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.rel_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.rels;s.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let s=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(s=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],s);e.story?this.iterateTree(e.story,s):e.stories.forEach((e=>{this.iterateTree(e,s)}))}resolveAssetsRelations(e){const{assets:t,stories:s,story:r}=e;if(s)for(const e of s)this.iterateTree(e,t);else{if(!r)return e;this.iterateTree(r,t)}}cacheResponse(e,t,s){return void 0===s&&(s=0),new Promise((async(r,i)=>{let n=l({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await o.get(n);if(e)return r(e)}try{let s=await this.throttle("get",e,{params:t,paramsSerializer:e=>l(e)}),a={data:s.data,headers:s.headers};if(a.data.assets&&a.data.assets.length&&this.resolveAssetsRelations(a.data),s.headers["per-page"]&&(a=Object.assign({},a,{perPage:parseInt(s.headers["per-page"]),total:parseInt(s.headers.total)})),200!=s.status)return i(s);(a.data.story||a.data.stories)&&await this.resolveStories(a.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&o.set(n,a),a.data.cv&&("draft"==t.version&&h[t.token]!=a.data.cv&&this.flushCache(),h[t.token]=a.data.cv),r(a)}catch(n){if(n.response&&429===n.response.status&&(s+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${s} seconds.`),await(a=1e3*s,new Promise((e=>setTimeout(e,a)))),this.cacheResponse(e,t,s).then(r).catch(i);i(n)}var a}))}throttledRequest(e,t,s){return this.client[e](t,s)}cacheVersions(){return h}cacheVersion(){return h[this.accessToken]}setCacheVersion(e){this.accessToken&&(h[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>c[e],getAll:()=>c,set(e,t){c[e]=t},flush(){c={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}};
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("axios"));function s(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function r(e,t,r){if(!s(t))throw new TypeError("Expected `limit` to be a finite number");if(!s(r))throw new TypeError("Expected `interval` to be a finite number");var i=[],n=[],o=0,a=function(){o++;var t=setTimeout((function(){o--,i.length>0&&a(),n=n.filter((function(e){return e!==t}))}),r);n.indexOf(t)<0&&n.push(t);var s=i.shift();s.resolve(e.apply(s.self,s.args))},l=function(){var e=arguments,s=this;return new Promise((function(r,n){i.push({resolve:r,reject:n,args:e,self:s}),o<t&&a()}))};return l.abort=function(){n.forEach(clearTimeout),n=[],i.forEach((function(e){e.reject(new throttle.AbortError)})),i.length=0},l}r.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const i=function(e,t){if(!e)return null;let s={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(s[r]=i)}return s};var n={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:i(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:s="url"}=e.attrs;return"email"===s&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class o{constructor(e){e||(e=n),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderOpeningTag(s.tag))}));const s=this.getMatchingNode(e);return s&&s.tag&&t.push(this.renderOpeningTag(s.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=/[&<>"']/g,r=RegExp(s.source);return e&&r.test(e)?e.replace(s,(e=>t[e])):e}(e.text)):s&&s.singleTag?t.push(this.renderTag(s.singleTag," /")):s&&s.html&&t.push(s.html),s&&s.tag&&t.push(this.renderClosingTag(s.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderClosingTag(s.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let s=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(s+=` ${t}="${r}"`)}return`${s}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const a=(e=0,t=e)=>{const s=Math.abs(t-e)||0,r=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(s,((t,s)=>s*r+e))},l=(e,t,s)=>{const r=[];for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=e[i],o=s?"":encodeURIComponent(i);let a;a="object"==typeof n?l(n,t?t+encodeURIComponent("["+o+"]"):o,Array.isArray(n)):(t?t+encodeURIComponent("["+o+"]"):o)+"="+encodeURIComponent(n),r.push(a)}return r.join("&")};let c={},h={};module.exports=class{constructor(e,s){if(!s){let t=e.region?`-${e.region}`:"",r=!1===e.https?"http":"https";s=void 0===e.oauthToken?`${r}://api${t}.storyblok.com/v2`:`${r}://api${t}.storyblok.com/v1`}let i=Object.assign({},e.headers),n=5;void 0!==e.oauthToken&&(i.Authorization=e.oauthToken,n=3),void 0!==e.rateLimit&&(n=e.rateLimit),this.richTextResolver=new o(e.richTextSchema),"function"==typeof e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=r(this.throttledRequest,n,1e3),this.accessToken=e.accessToken,this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.client=t.default.create({baseURL:s,timeout:e.timeout||0,headers:i,proxy:e.proxy||!1}),e.responseInterceptor&&this.client.interceptors.response.use((t=>e.responseInterceptor(t))),this.resolveNestedRelations=e.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let s="";return t.attrs.body.forEach((t=>{s+=e(t.component,t)})),{html:s}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=h[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,s,r){const i=this.factoryParamOptions(e,((e={},t=25,s=1)=>({...e,per_page:t,page:s}))(t,s,r));return this.cacheResponse(e,i)}get(e,t){let s=`/${e}`;const r=this.factoryParamOptions(s,t);return this.cacheResponse(s,r)}async getAll(e,t={},s){const r=t.per_page||25,i=`/${e}`,n=i.split("/");s=s||n[n.length-1];const o=await this.makeRequest(i,t,r,1),l=Math.ceil(o.total/r);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([o,...await(async(e=[],t)=>Promise.all(e.map(t)))(a(1,l),(async e=>this.makeRequest(i,t,r,e+1)))],(e=>Object.values(e.data[s])))}post(e,t){let s=`/${e}`;return this.throttle("post",s,t)}put(e,t){let s=`/${e}`;return this.throttle("put",s,t)}delete(e,t){let s=`/${e}`;return this.throttle("delete",s,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const s=e[t];s&&"multilink"==s.fieldtype&&"story"==s.linktype&&"string"==typeof s.id&&this.links[s.id]?s.story=this._cleanCopy(this.links[s.id]):s&&"story"===s.linktype&&"string"==typeof s.uuid&&this.links[s.uuid]&&(s.story=this._cleanCopy(this.links[s.uuid]))}_insertRelations(e,t,s){if(s.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let s=[];e[t].forEach((e=>{this.relations[e]&&s.push(this._cleanCopy(this.relations[e]))})),e[t]=s}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let s=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)s(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let r in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,r,t),this._insertLinks(e,r)):"id"in e&&"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),s(e[r])}};s(e.content)}async resolveLinks(e,t){let s=[];if(e.link_uuids){const r=e.link_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.link_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.links;s.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let s=[];if(e.rel_uuids){const r=e.rel_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.rel_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.rels;s.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let s=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(e.rels||e.rel_uuids)&&(s=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&(e.links||e.link_uuids)&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],s);e.story?this.iterateTree(e.story,s):e.stories.forEach((e=>{this.iterateTree(e,s)}))}resolveAssetsRelations(e){const{assets:t,stories:s,story:r}=e;if(s)for(const e of s)this.iterateTree(e,t);else{if(!r)return e;this.iterateTree(r,t)}}cacheResponse(e,t,s){return void 0===s&&(s=0),new Promise((async(r,i)=>{let n=l({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await o.get(n);if(e)return r(e)}try{let s=await this.throttle("get",e,{params:t,paramsSerializer:e=>l(e)}),a={data:s.data,headers:s.headers};if(a.data.assets&&a.data.assets.length&&this.resolveAssetsRelations(a.data),s.headers["per-page"]&&(a=Object.assign({},a,{perPage:parseInt(s.headers["per-page"]),total:parseInt(s.headers.total)})),200!=s.status)return i(s);(a.data.story||a.data.stories)&&await this.resolveStories(a.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&o.set(n,a),a.data.cv&&("draft"==t.version&&h[t.token]!=a.data.cv&&this.flushCache(),h[t.token]=a.data.cv),r(a)}catch(n){if(n.response&&429===n.response.status&&(s+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${s} seconds.`),await(a=1e3*s,new Promise((e=>setTimeout(e,a)))),this.cacheResponse(e,t,s).then(r).catch(i);i(n)}var a}))}throttledRequest(e,t,s){return this.client[e](t,s)}cacheVersions(){return h}cacheVersion(){return h[this.accessToken]}setCacheVersion(e){this.accessToken&&(h[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>c[e],getAll:()=>c,set(e,t){c[e]=t},flush(){c={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}};

@@ -6,2 +6,2 @@ /*!

*/
import e from"axios";function t(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function s(e,s,r){if(!t(s))throw new TypeError("Expected `limit` to be a finite number");if(!t(r))throw new TypeError("Expected `interval` to be a finite number");var i=[],n=[],o=0,a=function(){o++;var t=setTimeout((function(){o--,i.length>0&&a(),n=n.filter((function(e){return e!==t}))}),r);n.indexOf(t)<0&&n.push(t);var s=i.shift();s.resolve(e.apply(s.self,s.args))},l=function(){var e=arguments,t=this;return new Promise((function(r,n){i.push({resolve:r,reject:n,args:e,self:t}),o<s&&a()}))};return l.abort=function(){n.forEach(clearTimeout),n=[],i.forEach((function(e){e.reject(new throttle.AbortError)})),i.length=0},l}s.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const r=function(e,t){if(!e)return null;let s={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(s[r]=i)}return s};var i={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:r(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:s="url"}=e.attrs;return"email"===s&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class n{constructor(e){e||(e=i),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderOpeningTag(s.tag))}));const s=this.getMatchingNode(e);return s&&s.tag&&t.push(this.renderOpeningTag(s.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=/[&<>"']/g,r=RegExp(s.source);return e&&r.test(e)?e.replace(s,(e=>t[e])):e}(e.text)):s&&s.singleTag?t.push(this.renderTag(s.singleTag," /")):s&&s.html&&t.push(s.html),s&&s.tag&&t.push(this.renderClosingTag(s.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderClosingTag(s.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let s=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(s+=` ${t}="${r}"`)}return`${s}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const o=(e=0,t=e)=>{const s=Math.abs(t-e)||0,r=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(s,((t,s)=>s*r+e))},a=(e,t,s)=>{const r=[];for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=e[i],o=s?"":encodeURIComponent(i);let l;l="object"==typeof n?a(n,t?t+encodeURIComponent("["+o+"]"):o,Array.isArray(n)):(t?t+encodeURIComponent("["+o+"]"):o)+"="+encodeURIComponent(n),r.push(l)}return r.join("&")};let l={},c={};class h{constructor(t,r){if(!r){let e=t.region?`-${t.region}`:"",s=!1===t.https?"http":"https";r=void 0===t.oauthToken?`${s}://api${e}.storyblok.com/v2`:`${s}://api${e}.storyblok.com/v1`}let i=Object.assign({},t.headers),o=5;void 0!==t.oauthToken&&(i.Authorization=t.oauthToken,o=3),void 0!==t.rateLimit&&(o=t.rateLimit),this.richTextResolver=new n(t.richTextSchema),"function"==typeof t.componentResolver&&this.setComponentResolver(t.componentResolver),this.maxRetries=t.maxRetries||5,this.throttle=s(this.throttledRequest,o,1e3),this.accessToken=t.accessToken,this.relations={},this.links={},this.cache=t.cache||{clear:"manual"},this.client=e.create({baseURL:r,timeout:t.timeout||0,headers:i,proxy:t.proxy||!1}),t.responseInterceptor&&this.client.interceptors.response.use((e=>t.responseInterceptor(e))),this.resolveNestedRelations=t.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let s="";return t.attrs.body.forEach((t=>{s+=e(t.component,t)})),{html:s}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=c[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,s,r){const i=this.factoryParamOptions(e,((e={},t=25,s=1)=>({...e,per_page:t,page:s}))(t,s,r));return this.cacheResponse(e,i)}get(e,t){let s=`/${e}`;const r=this.factoryParamOptions(s,t);return this.cacheResponse(s,r)}async getAll(e,t={},s){const r=t.per_page||25,i=`/${e}`,n=i.split("/");s=s||n[n.length-1];const a=await this.makeRequest(i,t,r,1),l=Math.ceil(a.total/r);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([a,...await(async(e=[],t)=>Promise.all(e.map(t)))(o(1,l),(async e=>this.makeRequest(i,t,r,e+1)))],(e=>Object.values(e.data[s])))}post(e,t){let s=`/${e}`;return this.throttle("post",s,t)}put(e,t){let s=`/${e}`;return this.throttle("put",s,t)}delete(e,t){let s=`/${e}`;return this.throttle("delete",s,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const s=e[t];s&&"multilink"==s.fieldtype&&"story"==s.linktype&&"string"==typeof s.id&&this.links[s.id]?s.story=this._cleanCopy(this.links[s.id]):s&&"story"===s.linktype&&"string"==typeof s.uuid&&this.links[s.uuid]&&(s.story=this._cleanCopy(this.links[s.uuid]))}_insertRelations(e,t,s){if(s.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let s=[];e[t].forEach((e=>{this.relations[e]&&s.push(this._cleanCopy(this.relations[e]))})),e[t]=s}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let s=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)s(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let r in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,r,t),this._insertLinks(e,r)):"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),s(e[r])}};s(e.content)}async resolveLinks(e,t){let s=[];if(e.link_uuids){const r=e.link_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.link_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.links;s.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let s=[];if(e.rel_uuids){const r=e.rel_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.rel_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.rels;s.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let s=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(s=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],s);e.story?this.iterateTree(e.story,s):e.stories.forEach((e=>{this.iterateTree(e,s)}))}resolveAssetsRelations(e){const{assets:t,stories:s,story:r}=e;if(s)for(const e of s)this.iterateTree(e,t);else{if(!r)return e;this.iterateTree(r,t)}}cacheResponse(e,t,s){return void 0===s&&(s=0),new Promise((async(r,i)=>{let n=a({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await o.get(n);if(e)return r(e)}try{let s=await this.throttle("get",e,{params:t,paramsSerializer:e=>a(e)}),l={data:s.data,headers:s.headers};if(l.data.assets&&l.data.assets.length&&this.resolveAssetsRelations(l.data),s.headers["per-page"]&&(l=Object.assign({},l,{perPage:parseInt(s.headers["per-page"]),total:parseInt(s.headers.total)})),200!=s.status)return i(s);(l.data.story||l.data.stories)&&await this.resolveStories(l.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&o.set(n,l),l.data.cv&&("draft"==t.version&&c[t.token]!=l.data.cv&&this.flushCache(),c[t.token]=l.data.cv),r(l)}catch(n){if(n.response&&429===n.response.status&&(s+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${s} seconds.`),await(l=1e3*s,new Promise((e=>setTimeout(e,l)))),this.cacheResponse(e,t,s).then(r).catch(i);i(n)}var l}))}throttledRequest(e,t,s){return this.client[e](t,s)}cacheVersions(){return c}cacheVersion(){return c[this.accessToken]}setCacheVersion(e){this.accessToken&&(c[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>l[e],getAll:()=>l,set(e,t){l[e]=t},flush(){l={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}}export{h as default};
import e from"axios";function t(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function s(e,s,r){if(!t(s))throw new TypeError("Expected `limit` to be a finite number");if(!t(r))throw new TypeError("Expected `interval` to be a finite number");var i=[],n=[],o=0,a=function(){o++;var t=setTimeout((function(){o--,i.length>0&&a(),n=n.filter((function(e){return e!==t}))}),r);n.indexOf(t)<0&&n.push(t);var s=i.shift();s.resolve(e.apply(s.self,s.args))},l=function(){var e=arguments,t=this;return new Promise((function(r,n){i.push({resolve:r,reject:n,args:e,self:t}),o<s&&a()}))};return l.abort=function(){n.forEach(clearTimeout),n=[],i.forEach((function(e){e.reject(new throttle.AbortError)})),i.length=0},l}s.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const r=function(e,t){if(!e)return null;let s={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(s[r]=i)}return s};var i={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:r(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:s="url"}=e.attrs;return"email"===s&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class n{constructor(e){e||(e=i),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderOpeningTag(s.tag))}));const s=this.getMatchingNode(e);return s&&s.tag&&t.push(this.renderOpeningTag(s.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=/[&<>"']/g,r=RegExp(s.source);return e&&r.test(e)?e.replace(s,(e=>t[e])):e}(e.text)):s&&s.singleTag?t.push(this.renderTag(s.singleTag," /")):s&&s.html&&t.push(s.html),s&&s.tag&&t.push(this.renderClosingTag(s.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const s=this.getMatchingMark(e);s&&t.push(this.renderClosingTag(s.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let s=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(s+=` ${t}="${r}"`)}return`${s}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const o=(e=0,t=e)=>{const s=Math.abs(t-e)||0,r=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(s,((t,s)=>s*r+e))},a=(e,t,s)=>{const r=[];for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const n=e[i],o=s?"":encodeURIComponent(i);let l;l="object"==typeof n?a(n,t?t+encodeURIComponent("["+o+"]"):o,Array.isArray(n)):(t?t+encodeURIComponent("["+o+"]"):o)+"="+encodeURIComponent(n),r.push(l)}return r.join("&")};let l={},c={};class h{constructor(t,r){if(!r){let e=t.region?`-${t.region}`:"",s=!1===t.https?"http":"https";r=void 0===t.oauthToken?`${s}://api${e}.storyblok.com/v2`:`${s}://api${e}.storyblok.com/v1`}let i=Object.assign({},t.headers),o=5;void 0!==t.oauthToken&&(i.Authorization=t.oauthToken,o=3),void 0!==t.rateLimit&&(o=t.rateLimit),this.richTextResolver=new n(t.richTextSchema),"function"==typeof t.componentResolver&&this.setComponentResolver(t.componentResolver),this.maxRetries=t.maxRetries||5,this.throttle=s(this.throttledRequest,o,1e3),this.accessToken=t.accessToken,this.relations={},this.links={},this.cache=t.cache||{clear:"manual"},this.client=e.create({baseURL:r,timeout:t.timeout||0,headers:i,proxy:t.proxy||!1}),t.responseInterceptor&&this.client.interceptors.response.use((e=>t.responseInterceptor(e))),this.resolveNestedRelations=t.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let s="";return t.attrs.body.forEach((t=>{s+=e(t.component,t)})),{html:s}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=c[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,s,r){const i=this.factoryParamOptions(e,((e={},t=25,s=1)=>({...e,per_page:t,page:s}))(t,s,r));return this.cacheResponse(e,i)}get(e,t){let s=`/${e}`;const r=this.factoryParamOptions(s,t);return this.cacheResponse(s,r)}async getAll(e,t={},s){const r=t.per_page||25,i=`/${e}`,n=i.split("/");s=s||n[n.length-1];const a=await this.makeRequest(i,t,r,1),l=Math.ceil(a.total/r);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([a,...await(async(e=[],t)=>Promise.all(e.map(t)))(o(1,l),(async e=>this.makeRequest(i,t,r,e+1)))],(e=>Object.values(e.data[s])))}post(e,t){let s=`/${e}`;return this.throttle("post",s,t)}put(e,t){let s=`/${e}`;return this.throttle("put",s,t)}delete(e,t){let s=`/${e}`;return this.throttle("delete",s,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const s=e[t];s&&"multilink"==s.fieldtype&&"story"==s.linktype&&"string"==typeof s.id&&this.links[s.id]?s.story=this._cleanCopy(this.links[s.id]):s&&"story"===s.linktype&&"string"==typeof s.uuid&&this.links[s.uuid]&&(s.story=this._cleanCopy(this.links[s.uuid]))}_insertRelations(e,t,s){if(s.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let s=[];e[t].forEach((e=>{this.relations[e]&&s.push(this._cleanCopy(this.relations[e]))})),e[t]=s}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let s=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)s(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let r in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,r,t),this._insertLinks(e,r)):"id"in e&&"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),s(e[r])}};s(e.content)}async resolveLinks(e,t){let s=[];if(e.link_uuids){const r=e.link_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.link_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.links;s.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let s=[];if(e.rel_uuids){const r=e.rel_uuids.length;let i=[];const n=50;for(let t=0;t<r;t+=n){const s=Math.min(r,t+n);i.push(e.rel_uuids.slice(t,s))}for(let e=0;e<i.length;e++){(await this.getStories({per_page:n,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach((e=>{s.push(e)}))}}else s=e.rels;s.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let s=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(e.rels||e.rel_uuids)&&(s=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&(e.links||e.link_uuids)&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],s);e.story?this.iterateTree(e.story,s):e.stories.forEach((e=>{this.iterateTree(e,s)}))}resolveAssetsRelations(e){const{assets:t,stories:s,story:r}=e;if(s)for(const e of s)this.iterateTree(e,t);else{if(!r)return e;this.iterateTree(r,t)}}cacheResponse(e,t,s){return void 0===s&&(s=0),new Promise((async(r,i)=>{let n=a({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await o.get(n);if(e)return r(e)}try{let s=await this.throttle("get",e,{params:t,paramsSerializer:e=>a(e)}),l={data:s.data,headers:s.headers};if(l.data.assets&&l.data.assets.length&&this.resolveAssetsRelations(l.data),s.headers["per-page"]&&(l=Object.assign({},l,{perPage:parseInt(s.headers["per-page"]),total:parseInt(s.headers.total)})),200!=s.status)return i(s);(l.data.story||l.data.stories)&&await this.resolveStories(l.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&o.set(n,l),l.data.cv&&("draft"==t.version&&c[t.token]!=l.data.cv&&this.flushCache(),c[t.token]=l.data.cv),r(l)}catch(n){if(n.response&&429===n.response.status&&(s+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${s} seconds.`),await(l=1e3*s,new Promise((e=>setTimeout(e,l)))),this.cacheResponse(e,t,s).then(r).catch(i);i(n)}var l}))}throttledRequest(e,t,s){return this.client[e](t,s)}cacheVersions(){return c}cacheVersion(){return c[this.accessToken]}setCacheVersion(e){this.accessToken&&(c[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>l[e],getAll:()=>l,set(e,t){l[e]=t},flush(){l={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}}export{h as default};

@@ -6,2 +6,2 @@ /*!

*/
var StoryblokClient=function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r={exports:{}},n={exports:{}},o=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},i=o,s=Object.prototype.toString,a=(t=Object.create(null),function(e){var r=s.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())});function c(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function l(e){return void 0===e}var f=c("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=c("Date"),g=c("File"),m=c("Blob"),v=c("FileList");function y(e){return"[object Function]"===s.call(e)}var E=c("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var R,w=(R="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return R&&e instanceof R}),O={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||s.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:p,isUndefined:l,isDate:d,isFile:g,isBlob:m,isFunction:y,isStream:function(e){return h(e)&&y(e.pipe)},isURLSearchParams:E,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){p(t[n])&&p(r)?t[n]=e(t[n],r):p(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?i(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,s={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=n[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:v},T=O;function _(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var k=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(T.isURLSearchParams(t))n=t.toString();else{var o=[];T.forEach(t,(function(e,t){null!=e&&(T.isArray(e)?t+="[]":e=[e],T.forEach(e,(function(e){T.isDate(e)?e=e.toISOString():T.isObject(e)&&(e=JSON.stringify(e)),o.push(_(t)+"="+_(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},A=O;function S(){this.handlers=[]}S.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},S.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},S.prototype.forEach=function(e){A.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var x,C,j=S,N=O;function P(){if(C)return x;C=1;var e=O;function t(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}e.inherits(t,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,n={};return["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"].forEach((function(e){n[e]={value:e}})),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(n,o,i,s,a,c){var u=Object.create(r);return e.toFlatObject(n,u,(function(e){return e!==Error.prototype})),t.call(u,n.message,o,i,s,a),u.name=n.name,c&&Object.assign(u,c),u},x=t}var U,B,D,L,$,q,I={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function M(){if(B)return U;B=1;var e=O;return U=function(t,r){r=r||new FormData;var n=[];function o(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,s){if(e.isPlainObject(i)||e.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),e.forEach(i,(function(n,i){if(!e.isUndefined(n)){var a,c=s?s+"."+i:i;if(n&&!s&&"object"==typeof n)if(e.endsWith(i,"{}"))n=JSON.stringify(n);else if(e.endsWith(i,"[]")&&(a=e.toArray(n)))return void a.forEach((function(t){!e.isUndefined(t)&&r.append(c,o(t))}));t(n,c)}})),n.pop()}else r.append(s,o(i))}(t),r},U}function F(){if(L)return D;L=1;var e=P();return D=function(t,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}}function J(){if(q)return $;q=1;var e=O;return $=e.isStandardBrowserEnv()?{write:function(t,r,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(r)),e.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),e.isString(o)&&a.push("path="+o),e.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var z,V,H,W,X,K,Q,G,Y,Z,ee,te,re=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},ne=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},oe=function(e,t){return e&&!re(t)?ne(e,t):t};function ie(){if(V)return z;V=1;var e=O,t=["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"];return z=function(r){var n,o,i,s={};return r?(e.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=e.trim(r.substr(0,i)).toLowerCase(),o=e.trim(r.substr(i+1)),n){if(s[n]&&t.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([o]):s[n]?s[n]+", "+o:o}})),s):s}}function se(){if(W)return H;W=1;var e=O;return H=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(r){var n=e.isString(r)?o(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}}function ae(){if(K)return X;K=1;var e=P();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return O.inherits(t,e,{__CANCEL__:!0}),X=t}function ce(){return G?Q:(G=1,Q=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""})}function ue(){if(Z)return Y;Z=1;var e=O,t=F(),r=J(),n=k,o=oe,i=ie(),s=se(),a=I,c=P(),u=ae(),l=ce();return Y=function(f){return new Promise((function(h,p){var d,g=f.data,m=f.headers,v=f.responseType;function y(){f.cancelToken&&f.cancelToken.unsubscribe(d),f.signal&&f.signal.removeEventListener("abort",d)}e.isFormData(g)&&e.isStandardBrowserEnv()&&delete m["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",R=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+R)}var w=o(f.baseURL,f.url);function O(){if(E){var e="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,r={data:v&&"text"!==v&&"json"!==v?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:e,config:f,request:E};t((function(e){h(e),y()}),(function(e){p(e),y()}),r),E=null}}if(E.open(f.method.toUpperCase(),n(w,f.params,f.paramsSerializer),!0),E.timeout=f.timeout,"onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))&&setTimeout(O)},E.onabort=function(){E&&(p(new c("Request aborted",c.ECONNABORTED,f,E)),E=null)},E.onerror=function(){p(new c("Network Error",c.ERR_NETWORK,f,E,E)),E=null},E.ontimeout=function(){var e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",t=f.transitional||a;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),p(new c(e,t.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,f,E)),E=null},e.isStandardBrowserEnv()){var T=(f.withCredentials||s(w))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;T&&(m[f.xsrfHeaderName]=T)}"setRequestHeader"in E&&e.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:E.setRequestHeader(t,e)})),e.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),v&&"json"!==v&&(E.responseType=f.responseType),"function"==typeof f.onDownloadProgress&&E.addEventListener("progress",f.onDownloadProgress),"function"==typeof f.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(d=function(e){E&&(p(!e||e&&e.type?new u:e),E.abort(),E=null)},f.cancelToken&&f.cancelToken.subscribe(d),f.signal&&(f.signal.aborted?d():f.signal.addEventListener("abort",d))),g||(g=null);var _=l(w);_&&-1===["http","https","file"].indexOf(_)?p(new c("Unsupported protocol "+_+":",c.ERR_BAD_REQUEST,f)):E.send(g)}))},Y}var le=O,fe=function(e,t){N.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},he=P(),pe=I,de=M(),ge={"Content-Type":"application/x-www-form-urlencoded"};function me(e,t){!le.isUndefined(e)&&le.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ve,ye={transitional:pe,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ve=ue()),ve),transformRequest:[function(e,t){if(fe(t,"Accept"),fe(t,"Content-Type"),le.isFormData(e)||le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return me(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=le.isObject(e),o=t&&t["Content-Type"];if((r=le.isFileList(e))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return de(r?{"files[]":e}:e,i&&new i)}return n||"application/json"===o?(me(t,"application/json"),function(e,t,r){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ye.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&le.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw he.from(e,he.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:te?ee:(te=1,ee=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};le.forEach(["delete","get","head"],(function(e){ye.headers[e]={}})),le.forEach(["post","put","patch"],(function(e){ye.headers[e]=le.merge(ge)}));var Ee,be,Re=ye,we=O,Oe=Re;function Te(){return be?Ee:(be=1,Ee=function(e){return!(!e||!e.__CANCEL__)})}var _e=O,ke=function(e,t,r){var n=this||Oe;return we.forEach(r,(function(r){e=r.call(n,e,t)})),e},Ae=Te(),Se=Re,xe=ae();function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe}var je,Ne,Pe=O,Ue=function(e,t){t=t||{};var r={};function n(e,t){return Pe.isPlainObject(e)&&Pe.isPlainObject(t)?Pe.merge(e,t):Pe.isPlainObject(t)?Pe.merge({},t):Pe.isArray(t)?t.slice():t}function o(r){return Pe.isUndefined(t[r])?Pe.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Pe.isUndefined(t[e]))return n(void 0,t[e])}function s(r){return Pe.isUndefined(t[r])?Pe.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function a(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Pe.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);Pe.isUndefined(n)&&t!==a||(r[e]=n)})),r};function Be(){return Ne?je:(Ne=1,je={version:"0.27.2"})}var De=Be().version,Le=P(),$e={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){$e[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var qe={};$e.transitional=function(e,t,r){function n(e,t){return"[Axios v"+De+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Le(n(o," has been removed"+(t?" in "+t:"")),Le.ERR_DEPRECATED);return t&&!qe[o]&&(qe[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Ie,Me,Fe,Je,ze,Ve,He={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],c=void 0===a||s(a,i,e);if(!0!==c)throw new Le("option "+i+" must be "+c,Le.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Le("Unknown option "+i,Le.ERR_BAD_OPTION)}},validators:$e},We=O,Xe=k,Ke=j,Qe=function(e){return Ce(e),e.headers=e.headers||{},e.data=ke.call(e,e.data,e.headers,e.transformRequest),e.headers=_e.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),_e.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Se.adapter)(e).then((function(t){return Ce(e),t.data=ke.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ae(t)||(Ce(e),t&&t.response&&(t.response.data=ke.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ge=Ue,Ye=oe,Ze=He,et=Ze.validators;function tt(e){this.defaults=e,this.interceptors={request:new Ke,response:new Ke}}tt.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ge(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Ze.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var a=[Qe,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var c=t;n.length;){var u=n.shift(),l=n.shift();try{c=u(c)}catch(e){l(e);break}}try{i=Qe(c)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},tt.prototype.getUri=function(e){e=Ge(this.defaults,e);var t=Ye(e.baseURL,e.url);return Xe(t,e.params,e.paramsSerializer)},We.forEach(["delete","get","head","options"],(function(e){tt.prototype[e]=function(t,r){return this.request(Ge(r||{},{method:e,url:t,data:(r||{}).data}))}})),We.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ge(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tt.prototype[e]=t(),tt.prototype[e+"Form"]=t(!0)}));var rt=O,nt=o,ot=tt,it=Ue;var st=function e(t){var r=new ot(t),n=nt(ot.prototype.request,r);return rt.extend(n,ot.prototype,r),rt.extend(n,r),n.create=function(r){return e(it(t,r))},n}(Re);st.Axios=ot,st.CanceledError=ae(),st.CancelToken=function(){if(Me)return Ie;Me=1;var e=ae();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(t){n.reason||(n.reason=new e(t),r(n.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},Ie=t}(),st.isCancel=Te(),st.VERSION=Be().version,st.toFormData=M(),st.AxiosError=P(),st.Cancel=st.CanceledError,st.all=function(e){return Promise.all(e)},st.spread=Je?Fe:(Je=1,Fe=function(e){return function(t){return e.apply(null,t)}}),st.isAxiosError=function(){if(Ve)return ze;Ve=1;var e=O;return ze=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),n.exports=st,n.exports.default=st,r.exports=n.exports;var at=e(r.exports);function ct(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function ut(e,t,r){if(!ct(t))throw new TypeError("Expected `limit` to be a finite number");if(!ct(r))throw new TypeError("Expected `interval` to be a finite number");var n=[],o=[],i=0,s=function(){i++;var t=setTimeout((function(){i--,n.length>0&&s(),o=o.filter((function(e){return e!==t}))}),r);o.indexOf(t)<0&&o.push(t);var a=n.shift();a.resolve(e.apply(a.self,a.args))},a=function(){var e=arguments,r=this;return new Promise((function(o,a){n.push({resolve:o,reject:a,args:e,self:r}),i<t&&s()}))};return a.abort=function(){o.forEach(clearTimeout),o=[],n.forEach((function(e){e.reject(new throttle.AbortError)})),n.length=0},a}ut.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const lt=function(e,t){if(!e)return null;let r={};for(let n in e){let o=e[n];t.indexOf(n)>-1&&null!==o&&(r[n]=o)}return r};var ft={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:lt(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:r="url"}=e.attrs;return"email"===r&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class ht{constructor(e){e||(e=ft),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const r=this.getMatchingMark(e);r&&t.push(this.renderOpeningTag(r.tag))}));const r=this.getMatchingNode(e);return r&&r.tag&&t.push(this.renderOpeningTag(r.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},r=/[&<>"']/g,n=RegExp(r.source);return e&&n.test(e)?e.replace(r,(e=>t[e])):e}(e.text)):r&&r.singleTag?t.push(this.renderTag(r.singleTag," /")):r&&r.html&&t.push(r.html),r&&r.tag&&t.push(this.renderClosingTag(r.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const r=this.getMatchingMark(e);r&&t.push(this.renderClosingTag(r.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let r=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let n=e.attrs[t];null!==n&&(r+=` ${t}="${n}"`)}return`${r}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const pt=(e=0,t=e)=>{const r=Math.abs(t-e)||0,n=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(r,((t,r)=>r*n+e))},dt=(e,t,r)=>{const n=[];for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o],s=r?"":encodeURIComponent(o);let a;a="object"==typeof i?dt(i,t?t+encodeURIComponent("["+s+"]"):s,Array.isArray(i)):(t?t+encodeURIComponent("["+s+"]"):s)+"="+encodeURIComponent(i),n.push(a)}return n.join("&")};let gt={},mt={};return class{constructor(e,t){if(!t){let r=e.region?`-${e.region}`:"",n=!1===e.https?"http":"https";t=void 0===e.oauthToken?`${n}://api${r}.storyblok.com/v2`:`${n}://api${r}.storyblok.com/v1`}let r=Object.assign({},e.headers),n=5;void 0!==e.oauthToken&&(r.Authorization=e.oauthToken,n=3),void 0!==e.rateLimit&&(n=e.rateLimit),this.richTextResolver=new ht(e.richTextSchema),"function"==typeof e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=ut(this.throttledRequest,n,1e3),this.accessToken=e.accessToken,this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.client=at.create({baseURL:t,timeout:e.timeout||0,headers:r,proxy:e.proxy||!1}),e.responseInterceptor&&this.client.interceptors.response.use((t=>e.responseInterceptor(t))),this.resolveNestedRelations=e.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let r="";return t.attrs.body.forEach((t=>{r+=e(t.component,t)})),{html:r}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=mt[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,r,n){const o=this.factoryParamOptions(e,((e={},t=25,r=1)=>({...e,per_page:t,page:r}))(t,r,n));return this.cacheResponse(e,o)}get(e,t){let r=`/${e}`;const n=this.factoryParamOptions(r,t);return this.cacheResponse(r,n)}async getAll(e,t={},r){const n=t.per_page||25,o=`/${e}`,i=o.split("/");r=r||i[i.length-1];const s=await this.makeRequest(o,t,n,1),a=Math.ceil(s.total/n);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([s,...await(async(e=[],t)=>Promise.all(e.map(t)))(pt(1,a),(async e=>this.makeRequest(o,t,n,e+1)))],(e=>Object.values(e.data[r])))}post(e,t){let r=`/${e}`;return this.throttle("post",r,t)}put(e,t){let r=`/${e}`;return this.throttle("put",r,t)}delete(e,t){let r=`/${e}`;return this.throttle("delete",r,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const r=e[t];r&&"multilink"==r.fieldtype&&"story"==r.linktype&&"string"==typeof r.id&&this.links[r.id]?r.story=this._cleanCopy(this.links[r.id]):r&&"story"===r.linktype&&"string"==typeof r.uuid&&this.links[r.uuid]&&(r.story=this._cleanCopy(this.links[r.uuid]))}_insertRelations(e,t,r){if(r.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let r=[];e[t].forEach((e=>{this.relations[e]&&r.push(this._cleanCopy(this.relations[e]))})),e[t]=r}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let r=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)r(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let n in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,n,t),this._insertLinks(e,n)):"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),r(e[n])}};r(e.content)}async resolveLinks(e,t){let r=[];if(e.link_uuids){const n=e.link_uuids.length;let o=[];const i=50;for(let t=0;t<n;t+=i){const r=Math.min(n,t+i);o.push(e.link_uuids.slice(t,r))}for(let e=0;e<o.length;e++){(await this.getStories({per_page:i,language:t.language,version:t.version,by_uuids:o[e].join(",")})).data.stories.forEach((e=>{r.push(e)}))}}else r=e.links;r.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let r=[];if(e.rel_uuids){const n=e.rel_uuids.length;let o=[];const i=50;for(let t=0;t<n;t+=i){const r=Math.min(n,t+i);o.push(e.rel_uuids.slice(t,r))}for(let e=0;e<o.length;e++){(await this.getStories({per_page:i,language:t.language,version:t.version,by_uuids:o[e].join(",")})).data.stories.forEach((e=>{r.push(e)}))}}else r=e.rels;r.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let r=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(r=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],r);e.story?this.iterateTree(e.story,r):e.stories.forEach((e=>{this.iterateTree(e,r)}))}resolveAssetsRelations(e){const{assets:t,stories:r,story:n}=e;if(r)for(const e of r)this.iterateTree(e,t);else{if(!n)return e;this.iterateTree(n,t)}}cacheResponse(e,t,r){return void 0===r&&(r=0),new Promise((async(n,o)=>{let i=dt({url:e,params:t}),s=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await s.get(i);if(e)return n(e)}try{let r=await this.throttle("get",e,{params:t,paramsSerializer:e=>dt(e)}),a={data:r.data,headers:r.headers};if(a.data.assets&&a.data.assets.length&&this.resolveAssetsRelations(a.data),r.headers["per-page"]&&(a=Object.assign({},a,{perPage:parseInt(r.headers["per-page"]),total:parseInt(r.headers.total)})),200!=r.status)return o(r);(a.data.story||a.data.stories)&&await this.resolveStories(a.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&s.set(i,a),a.data.cv&&("draft"==t.version&&mt[t.token]!=a.data.cv&&this.flushCache(),mt[t.token]=a.data.cv),n(a)}catch(i){if(i.response&&429===i.response.status&&(r+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${r} seconds.`),await(a=1e3*r,new Promise((e=>setTimeout(e,a)))),this.cacheResponse(e,t,r).then(n).catch(o);o(i)}var a}))}throttledRequest(e,t,r){return this.client[e](t,r)}cacheVersions(){return mt}cacheVersion(){return mt[this.accessToken]}setCacheVersion(e){this.accessToken&&(mt[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>gt[e],getAll:()=>gt,set(e,t){gt[e]=t},flush(){gt={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}}}();
var StoryblokClient=function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r={exports:{}},n={exports:{}},o=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},i=o,s=Object.prototype.toString,a=(t=Object.create(null),function(e){var r=s.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())});function u(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var f=u("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=u("Date"),g=u("File"),m=u("Blob"),v=u("FileList");function y(e){return"[object Function]"===s.call(e)}var E=u("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var R,w=(R="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return R&&e instanceof R}),O={isArray:c,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||s.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:p,isUndefined:l,isDate:d,isFile:g,isBlob:m,isFunction:y,isStream:function(e){return h(e)&&y(e.pipe)},isURLSearchParams:E,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){p(t[n])&&p(r)?t[n]=e(t[n],r):p(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?i(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,s={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=n[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:u,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:v},T=O;function _(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var k=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(T.isURLSearchParams(t))n=t.toString();else{var o=[];T.forEach(t,(function(e,t){null!=e&&(T.isArray(e)?t+="[]":e=[e],T.forEach(e,(function(e){T.isDate(e)?e=e.toISOString():T.isObject(e)&&(e=JSON.stringify(e)),o.push(_(t)+"="+_(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},A=O;function S(){this.handlers=[]}S.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},S.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},S.prototype.forEach=function(e){A.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var x,C,j=S,N=O;function P(){if(C)return x;C=1;var e=O;function t(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}e.inherits(t,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,n={};return["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"].forEach((function(e){n[e]={value:e}})),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(n,o,i,s,a,u){var c=Object.create(r);return e.toFlatObject(n,c,(function(e){return e!==Error.prototype})),t.call(c,n.message,o,i,s,a),c.name=n.name,u&&Object.assign(c,u),c},x=t}var U,B,D,L,$,q,I={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function M(){if(B)return U;B=1;var e=O;return U=function(t,r){r=r||new FormData;var n=[];function o(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,s){if(e.isPlainObject(i)||e.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),e.forEach(i,(function(n,i){if(!e.isUndefined(n)){var a,u=s?s+"."+i:i;if(n&&!s&&"object"==typeof n)if(e.endsWith(i,"{}"))n=JSON.stringify(n);else if(e.endsWith(i,"[]")&&(a=e.toArray(n)))return void a.forEach((function(t){!e.isUndefined(t)&&r.append(u,o(t))}));t(n,u)}})),n.pop()}else r.append(s,o(i))}(t),r},U}function F(){if(L)return D;L=1;var e=P();return D=function(t,r,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?r(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}}function J(){if(q)return $;q=1;var e=O;return $=e.isStandardBrowserEnv()?{write:function(t,r,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(r)),e.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),e.isString(o)&&a.push("path="+o),e.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}var z,V,H,W,X,K,Q,G,Y,Z,ee,te,re=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},ne=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},oe=function(e,t){return e&&!re(t)?ne(e,t):t};function ie(){if(V)return z;V=1;var e=O,t=["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"];return z=function(r){var n,o,i,s={};return r?(e.forEach(r.split("\n"),(function(r){if(i=r.indexOf(":"),n=e.trim(r.substr(0,i)).toLowerCase(),o=e.trim(r.substr(i+1)),n){if(s[n]&&t.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([o]):s[n]?s[n]+", "+o:o}})),s):s}}function se(){if(W)return H;W=1;var e=O;return H=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(r){var n=e.isString(r)?o(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}}function ae(){if(K)return X;K=1;var e=P();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return O.inherits(t,e,{__CANCEL__:!0}),X=t}function ue(){return G?Q:(G=1,Q=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""})}function ce(){if(Z)return Y;Z=1;var e=O,t=F(),r=J(),n=k,o=oe,i=ie(),s=se(),a=I,u=P(),c=ae(),l=ue();return Y=function(f){return new Promise((function(h,p){var d,g=f.data,m=f.headers,v=f.responseType;function y(){f.cancelToken&&f.cancelToken.unsubscribe(d),f.signal&&f.signal.removeEventListener("abort",d)}e.isFormData(g)&&e.isStandardBrowserEnv()&&delete m["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",R=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+R)}var w=o(f.baseURL,f.url);function O(){if(E){var e="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,r={data:v&&"text"!==v&&"json"!==v?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:e,config:f,request:E};t((function(e){h(e),y()}),(function(e){p(e),y()}),r),E=null}}if(E.open(f.method.toUpperCase(),n(w,f.params,f.paramsSerializer),!0),E.timeout=f.timeout,"onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))&&setTimeout(O)},E.onabort=function(){E&&(p(new u("Request aborted",u.ECONNABORTED,f,E)),E=null)},E.onerror=function(){p(new u("Network Error",u.ERR_NETWORK,f,E,E)),E=null},E.ontimeout=function(){var e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",t=f.transitional||a;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),p(new u(e,t.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,f,E)),E=null},e.isStandardBrowserEnv()){var T=(f.withCredentials||s(w))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;T&&(m[f.xsrfHeaderName]=T)}"setRequestHeader"in E&&e.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:E.setRequestHeader(t,e)})),e.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),v&&"json"!==v&&(E.responseType=f.responseType),"function"==typeof f.onDownloadProgress&&E.addEventListener("progress",f.onDownloadProgress),"function"==typeof f.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(d=function(e){E&&(p(!e||e&&e.type?new c:e),E.abort(),E=null)},f.cancelToken&&f.cancelToken.subscribe(d),f.signal&&(f.signal.aborted?d():f.signal.addEventListener("abort",d))),g||(g=null);var _=l(w);_&&-1===["http","https","file"].indexOf(_)?p(new u("Unsupported protocol "+_+":",u.ERR_BAD_REQUEST,f)):E.send(g)}))},Y}var le=O,fe=function(e,t){N.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},he=P(),pe=I,de=M(),ge={"Content-Type":"application/x-www-form-urlencoded"};function me(e,t){!le.isUndefined(e)&&le.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ve,ye={transitional:pe,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ve=ce()),ve),transformRequest:[function(e,t){if(fe(t,"Accept"),fe(t,"Content-Type"),le.isFormData(e)||le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return me(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=le.isObject(e),o=t&&t["Content-Type"];if((r=le.isFileList(e))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return de(r?{"files[]":e}:e,i&&new i)}return n||"application/json"===o?(me(t,"application/json"),function(e,t,r){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ye.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&le.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw he.from(e,he.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:te?ee:(te=1,ee=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};le.forEach(["delete","get","head"],(function(e){ye.headers[e]={}})),le.forEach(["post","put","patch"],(function(e){ye.headers[e]=le.merge(ge)}));var Ee,be,Re=ye,we=O,Oe=Re;function Te(){return be?Ee:(be=1,Ee=function(e){return!(!e||!e.__CANCEL__)})}var _e=O,ke=function(e,t,r){var n=this||Oe;return we.forEach(r,(function(r){e=r.call(n,e,t)})),e},Ae=Te(),Se=Re,xe=ae();function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe}var je,Ne,Pe=O,Ue=function(e,t){t=t||{};var r={};function n(e,t){return Pe.isPlainObject(e)&&Pe.isPlainObject(t)?Pe.merge(e,t):Pe.isPlainObject(t)?Pe.merge({},t):Pe.isArray(t)?t.slice():t}function o(r){return Pe.isUndefined(t[r])?Pe.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Pe.isUndefined(t[e]))return n(void 0,t[e])}function s(r){return Pe.isUndefined(t[r])?Pe.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function a(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Pe.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,n=t(e);Pe.isUndefined(n)&&t!==a||(r[e]=n)})),r};function Be(){return Ne?je:(Ne=1,je={version:"0.27.2"})}var De=Be().version,Le=P(),$e={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){$e[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var qe={};$e.transitional=function(e,t,r){function n(e,t){return"[Axios v"+De+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Le(n(o," has been removed"+(t?" in "+t:"")),Le.ERR_DEPRECATED);return t&&!qe[o]&&(qe[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Ie,Me,Fe,Je,ze,Ve,He={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new Le("option "+i+" must be "+u,Le.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Le("Unknown option "+i,Le.ERR_BAD_OPTION)}},validators:$e},We=O,Xe=k,Ke=j,Qe=function(e){return Ce(e),e.headers=e.headers||{},e.data=ke.call(e,e.data,e.headers,e.transformRequest),e.headers=_e.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),_e.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Se.adapter)(e).then((function(t){return Ce(e),t.data=ke.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Ae(t)||(Ce(e),t&&t.response&&(t.response.data=ke.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ge=Ue,Ye=oe,Ze=He,et=Ze.validators;function tt(e){this.defaults=e,this.interceptors={request:new Ke,response:new Ke}}tt.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ge(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Ze.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var a=[Qe,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var u=t;n.length;){var c=n.shift(),l=n.shift();try{u=c(u)}catch(e){l(e);break}}try{i=Qe(u)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},tt.prototype.getUri=function(e){e=Ge(this.defaults,e);var t=Ye(e.baseURL,e.url);return Xe(t,e.params,e.paramsSerializer)},We.forEach(["delete","get","head","options"],(function(e){tt.prototype[e]=function(t,r){return this.request(Ge(r||{},{method:e,url:t,data:(r||{}).data}))}})),We.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ge(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tt.prototype[e]=t(),tt.prototype[e+"Form"]=t(!0)}));var rt=O,nt=o,ot=tt,it=Ue;var st=function e(t){var r=new ot(t),n=nt(ot.prototype.request,r);return rt.extend(n,ot.prototype,r),rt.extend(n,r),n.create=function(r){return e(it(t,r))},n}(Re);st.Axios=ot,st.CanceledError=ae(),st.CancelToken=function(){if(Me)return Ie;Me=1;var e=ae();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(t){n.reason||(n.reason=new e(t),r(n.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},Ie=t}(),st.isCancel=Te(),st.VERSION=Be().version,st.toFormData=M(),st.AxiosError=P(),st.Cancel=st.CanceledError,st.all=function(e){return Promise.all(e)},st.spread=Je?Fe:(Je=1,Fe=function(e){return function(t){return e.apply(null,t)}}),st.isAxiosError=function(){if(Ve)return ze;Ve=1;var e=O;return ze=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),n.exports=st,n.exports.default=st,r.exports=n.exports;var at=e(r.exports);function ut(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)}function ct(e,t,r){if(!ut(t))throw new TypeError("Expected `limit` to be a finite number");if(!ut(r))throw new TypeError("Expected `interval` to be a finite number");var n=[],o=[],i=0,s=function(){i++;var t=setTimeout((function(){i--,n.length>0&&s(),o=o.filter((function(e){return e!==t}))}),r);o.indexOf(t)<0&&o.push(t);var a=n.shift();a.resolve(e.apply(a.self,a.args))},a=function(){var e=arguments,r=this;return new Promise((function(o,a){n.push({resolve:o,reject:a,args:e,self:r}),i<t&&s()}))};return a.abort=function(){o.forEach(clearTimeout),o=[],n.forEach((function(e){e.reject(new throttle.AbortError)})),n.length=0},a}ct.AbortError=function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"};const lt=function(e,t){if(!e)return null;let r={};for(let n in e){let o=e[n];t.indexOf(n)>-1&&null!==o&&(r[n]=o)}return r};var ft={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:lt(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link(e){const t={...e.attrs},{linktype:r="url"}=e.attrs;return"email"===r&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),{tag:[{tag:"a",attrs:t}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]})}};class ht{constructor(e){e||(e=ft),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e={}){if(e.content&&Array.isArray(e.content)){let t="";return e.content.forEach((e=>{t+=this.renderNode(e)})),t}return console.warn("The render method must receive an object with a content field, which is an array"),""}renderNode(e){let t=[];e.marks&&e.marks.forEach((e=>{const r=this.getMatchingMark(e);r&&t.push(this.renderOpeningTag(r.tag))}));const r=this.getMatchingNode(e);return r&&r.tag&&t.push(this.renderOpeningTag(r.tag)),e.content?e.content.forEach((e=>{t.push(this.renderNode(e))})):e.text?t.push(function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},r=/[&<>"']/g,n=RegExp(r.source);return e&&n.test(e)?e.replace(r,(e=>t[e])):e}(e.text)):r&&r.singleTag?t.push(this.renderTag(r.singleTag," /")):r&&r.html&&t.push(r.html),r&&r.tag&&t.push(this.renderClosingTag(r.tag)),e.marks&&e.marks.slice(0).reverse().forEach((e=>{const r=this.getMatchingMark(e);r&&t.push(this.renderClosingTag(r.tag))})),t.join("")}renderTag(e,t){if(e.constructor===String)return`<${e}${t}>`;return e.map((e=>{if(e.constructor===String)return`<${e}${t}>`;{let r=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let n=e.attrs[t];null!==n&&(r+=` ${t}="${n}"`)}return`${r}${t}>`}})).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){if(e.constructor===String)return`</${e}>`;return e.slice(0).reverse().map((e=>e.constructor===String?`</${e}>`:`</${e.tag}>`)).join("")}getMatchingNode(e){if("function"==typeof this.nodes[e.type])return this.nodes[e.type](e)}getMatchingMark(e){if("function"==typeof this.marks[e.type])return this.marks[e.type](e)}}const pt=(e=0,t=e)=>{const r=Math.abs(t-e)||0,n=e<t?1:-1;return((e=0,t)=>[...Array(e)].map(t))(r,((t,r)=>r*n+e))},dt=(e,t,r)=>{const n=[];for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o],s=r?"":encodeURIComponent(o);let a;a="object"==typeof i?dt(i,t?t+encodeURIComponent("["+s+"]"):s,Array.isArray(i)):(t?t+encodeURIComponent("["+s+"]"):s)+"="+encodeURIComponent(i),n.push(a)}return n.join("&")};let gt={},mt={};return class{constructor(e,t){if(!t){let r=e.region?`-${e.region}`:"",n=!1===e.https?"http":"https";t=void 0===e.oauthToken?`${n}://api${r}.storyblok.com/v2`:`${n}://api${r}.storyblok.com/v1`}let r=Object.assign({},e.headers),n=5;void 0!==e.oauthToken&&(r.Authorization=e.oauthToken,n=3),void 0!==e.rateLimit&&(n=e.rateLimit),this.richTextResolver=new ht(e.richTextSchema),"function"==typeof e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=ct(this.throttledRequest,n,1e3),this.accessToken=e.accessToken,this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.client=at.create({baseURL:t,timeout:e.timeout||0,headers:r,proxy:e.proxy||!1}),e.responseInterceptor&&this.client.interceptors.response.use((t=>e.responseInterceptor(t))),this.resolveNestedRelations=e.resolveNestedRelations||!0}setComponentResolver(e){this.richTextResolver.addNode("blok",(t=>{let r="";return t.attrs.body.forEach((t=>{r+=e(t.component,t)})),{html:r}}))}parseParams(e={}){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=mt[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t={}){return((e="")=>e.indexOf("/cdn/")>-1)(e)?this.parseParams(t):t}makeRequest(e,t,r,n){const o=this.factoryParamOptions(e,((e={},t=25,r=1)=>({...e,per_page:t,page:r}))(t,r,n));return this.cacheResponse(e,o)}get(e,t){let r=`/${e}`;const n=this.factoryParamOptions(r,t);return this.cacheResponse(r,n)}async getAll(e,t={},r){const n=t.per_page||25,o=`/${e}`,i=o.split("/");r=r||i[i.length-1];const s=await this.makeRequest(o,t,n,1),a=Math.ceil(s.total/n);return((e=[],t)=>e.map(t).reduce(((e,t)=>[...e,...t]),[]))([s,...await(async(e=[],t)=>Promise.all(e.map(t)))(pt(1,a),(async e=>this.makeRequest(o,t,n,e+1)))],(e=>Object.values(e.data[r])))}post(e,t){let r=`/${e}`;return this.throttle("post",r,t)}put(e,t){let r=`/${e}`;return this.throttle("put",r,t)}delete(e,t){let r=`/${e}`;return this.throttle("delete",r,t)}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}setToken(e){this.accessToken=e}getToken(){return this.accessToken}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t){const r=e[t];r&&"multilink"==r.fieldtype&&"story"==r.linktype&&"string"==typeof r.id&&this.links[r.id]?r.story=this._cleanCopy(this.links[r.id]):r&&"story"===r.linktype&&"string"==typeof r.uuid&&this.links[r.uuid]&&(r.story=this._cleanCopy(this.links[r.uuid]))}_insertRelations(e,t,r){if(r.indexOf(e.component+"."+t)>-1)if("string"==typeof e[t])this.relations[e[t]]&&(e[t]=this._cleanCopy(this.relations[e[t]]));else if(e[t].constructor===Array){let r=[];e[t].forEach((e=>{this.relations[e]&&r.push(this._cleanCopy(this.relations[e]))})),e[t]=r}}_insertAssetsRelations(e,t){t.forEach((t=>{e.id===t.id&&(e.original=t,e.original.filename=e.filename,e.original.filename=e.original.filename.includes("https://s3.amazonaws.com/")?e.original.filename:e.original.filename.replace("https://","https://s3.amazonaws.com/"),delete e.original.s3_filename)}))}iterateTree(e,t){let r=e=>{if(null!=e)if(e.constructor===Array)for(let t=0;t<e.length;t++)r(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let n in e)e.component&&e._uid||"link"===e.type?(this._insertRelations(e,n,t),this._insertLinks(e,n)):"id"in e&&"asset"===e.fieldtype&&this._insertAssetsRelations(e,t),r(e[n])}};r(e.content)}async resolveLinks(e,t){let r=[];if(e.link_uuids){const n=e.link_uuids.length;let o=[];const i=50;for(let t=0;t<n;t+=i){const r=Math.min(n,t+i);o.push(e.link_uuids.slice(t,r))}for(let e=0;e<o.length;e++){(await this.getStories({per_page:i,language:t.language,version:t.version,by_uuids:o[e].join(",")})).data.stories.forEach((e=>{r.push(e)}))}}else r=e.links;r.forEach((e=>{this.links[e.uuid]={...e,_stopResolving:!0}}))}async resolveRelations(e,t){let r=[];if(e.rel_uuids){const n=e.rel_uuids.length;let o=[];const i=50;for(let t=0;t<n;t+=i){const r=Math.min(n,t+i);o.push(e.rel_uuids.slice(t,r))}for(let e=0;e<o.length;e++){(await this.getStories({per_page:i,language:t.language,version:t.version,by_uuids:o[e].join(",")})).data.stories.forEach((e=>{r.push(e)}))}}else r=e.rels;r.forEach((e=>{this.relations[e.uuid]={...e,_stopResolving:!0}}))}async resolveStories(e,t){let r=[];if(void 0!==t.resolve_relations&&t.resolve_relations.length>0&&(e.rels||e.rel_uuids)&&(r=t.resolve_relations.split(","),await this.resolveRelations(e,t)),["1","story","url"].indexOf(t.resolve_links)>-1&&(e.links||e.link_uuids)&&await this.resolveLinks(e,t),this.resolveNestedRelations)for(const e in this.relations)this.iterateTree(this.relations[e],r);e.story?this.iterateTree(e.story,r):e.stories.forEach((e=>{this.iterateTree(e,r)}))}resolveAssetsRelations(e){const{assets:t,stories:r,story:n}=e;if(r)for(const e of r)this.iterateTree(e,t);else{if(!n)return e;this.iterateTree(n,t)}}cacheResponse(e,t,r){return void 0===r&&(r=0),new Promise((async(n,o)=>{let i=dt({url:e,params:t}),s=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){const e=await s.get(i);if(e)return n(e)}try{let r=await this.throttle("get",e,{params:t,paramsSerializer:e=>dt(e)}),a={data:r.data,headers:r.headers};if(a.data.assets&&a.data.assets.length&&this.resolveAssetsRelations(a.data),r.headers["per-page"]&&(a=Object.assign({},a,{perPage:parseInt(r.headers["per-page"]),total:parseInt(r.headers.total)})),200!=r.status)return o(r);(a.data.story||a.data.stories)&&await this.resolveStories(a.data,t),"published"===t.version&&"/cdn/spaces/me"!=e&&s.set(i,a),a.data.cv&&("draft"==t.version&&mt[t.token]!=a.data.cv&&this.flushCache(),mt[t.token]=a.data.cv),n(a)}catch(i){if(i.response&&429===i.response.status&&(r+=1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${r} seconds.`),await(a=1e3*r,new Promise((e=>setTimeout(e,a)))),this.cacheResponse(e,t,r).then(n).catch(o);o(i)}var a}))}throttledRequest(e,t,r){return this.client[e](t,r)}cacheVersions(){return mt}cacheVersion(){return mt[this.accessToken]}setCacheVersion(e){this.accessToken&&(mt[this.accessToken]=e)}cacheProvider(){return"memory"===this.cache.type?{get:e=>gt[e],getAll:()=>gt,set(e,t){gt[e]=t},flush(){gt={}}}:{get(){},getAll(){},set(){},flush(){}}}async flushCache(){return await this.cacheProvider().flush(),this}}}();
{
"name": "storyblok-js-client",
"version": "4.5.5",
"version": "4.5.6",
"description": "Universal JavaScript SDK for Storyblok's API",

@@ -5,0 +5,0 @@ "types": "./types/index.d.ts",

@@ -252,3 +252,3 @@ "use strict";

this._insertLinks(jtree, treeItem);
} else if (jtree.fieldtype === "asset") {
} else if ('id' in jtree && jtree.fieldtype === "asset") {
this._insertAssetsRelations(jtree, fields);

@@ -335,11 +335,8 @@ }

if (
typeof params.resolve_relations !== "undefined" &&
params.resolve_relations.length > 0
) {
relationParams = params.resolve_relations.split(",");
await this.resolveRelations(responseData, params);
if (typeof params.resolve_relations !== 'undefined' && params.resolve_relations.length > 0 && (responseData.rels || responseData.rel_uuids)) {
relationParams = params.resolve_relations.split(',')
await this.resolveRelations(responseData, params)
}
if (["1", "story", "url"].indexOf(params.resolve_links) > -1) {
if (["1", "story", "url"].indexOf(params.resolve_links) > -1 && (responseData.links || responseData.link_uuids)) {
await this.resolveLinks(responseData, params);

@@ -346,0 +343,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc