Socket
Socket
Sign inDemoInstall

@tryghost/content-api

Package Overview
Dependencies
Maintainers
21
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/content-api - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

73

cjs/content-api.js

@@ -5,2 +5,74 @@ 'use strict';

var name$1 = "@tryghost/content-api";
var version = "1.9.0";
var repository = "https://github.com/TryGhost/SDK/tree/master/packages/content-api";
var author = "Ghost Foundation";
var license = "MIT";
var main = "cjs/content-api.js";
var unpkg = "umd/content-api.min.js";
var module$1 = "es/content-api.js";
var source = "lib/index.js";
var files = [
"LICENSE",
"README.md",
"cjs/",
"lib/",
"umd/",
"es/"
];
var scripts = {
dev: "echo \"Implement me!\"",
pretest: "yarn build",
test: "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
build: "rollup -c",
lint: "eslint . --ext .js --cache",
prepare: "NODE_ENV=production yarn build",
posttest: "yarn lint"
};
var publishConfig = {
access: "public"
};
var devDependencies = {
"@babel/core": "7.17.9",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.16.11",
"@rollup/plugin-json": "^4.1.0",
c8: "7.11.0",
"core-js": "3.22.0",
"eslint-plugin-ghost": "1.5.0",
mocha: "7.2.0",
rollup: "2.70.2",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-terser": "7.0.2",
should: "13.2.3",
sinon: "9.2.4"
};
var dependencies = {
axios: "^0.21.1"
};
var gitHead = "f699f18279c596be384760adccbbf90a659bd4bc";
var packageInfo = {
name: name$1,
version: version,
repository: repository,
author: author,
license: license,
main: main,
"umd:main": "umd/content-api.min.js",
unpkg: unpkg,
module: module$1,
source: source,
files: files,
scripts: scripts,
publishConfig: publishConfig,
devDependencies: devDependencies,
dependencies: dependencies,
gitHead: gitHead
};
const packageVersion = packageInfo.version;
// NOTE: bump this default when Ghost v5 is released

@@ -132,2 +204,3 @@ const defaultAcceptVersionHeader = 'v4.0';

headers['User-Agent'] = `GhostContentSDK/${packageVersion}`;
if (acceptVersionHeader) {

@@ -134,0 +207,0 @@ headers['Accept-Version'] = acceptVersionHeader;

4

lib/index.js
import axios from 'axios';
import packageInfo from '../package.json';
const packageVersion = packageInfo.version;
// NOTE: bump this default when Ghost v5 is released

@@ -129,2 +132,3 @@ const defaultAcceptVersionHeader = 'v4.0';

headers['User-Agent'] = `GhostContentSDK/${packageVersion}`;
if (acceptVersionHeader) {

@@ -131,0 +135,0 @@ headers['Accept-Version'] = acceptVersionHeader;

9

package.json
{
"name": "@tryghost/content-api",
"version": "1.8.0",
"version": "1.9.0",
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/content-api",

@@ -36,7 +36,8 @@ "author": "Ghost Foundation",

"@babel/preset-env": "7.16.11",
"@rollup/plugin-json": "^4.1.0",
"c8": "7.11.0",
"core-js": "3.21.1",
"core-js": "3.22.0",
"eslint-plugin-ghost": "1.5.0",
"mocha": "7.2.0",
"rollup": "2.70.1",
"rollup": "2.70.2",
"rollup-plugin-babel": "4.4.0",

@@ -53,3 +54,3 @@ "rollup-plugin-commonjs": "10.1.0",

},
"gitHead": "3633e6e946c394c73e53b496477543e98e301aa4"
"gitHead": "f699f18279c596be384760adccbbf90a659bd4bc"
}

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).GhostContentAPI=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,f=u?s.bind(s):function(){return s.apply(s,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=Function.prototype,g=v.bind,m=v.call,y=u&&g.bind(m,m),b=u?function(t){return t&&y(t)}:function(t){return t&&function(){return m.apply(t,arguments)}},w=b({}.toString),E=b("".slice),j=function(t){return E(w(t),8,-1)},S=i.Object,x=b("".split),O=a((function(){return!S("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?x(t,""):S(t)}:S,T=i.TypeError,R=function(t){if(null==t)throw T("Can't call method on "+t);return t},A=function(t){return O(R(t))},C=function(t){return"function"==typeof t},P=function(t){return"object"==typeof t?null!==t:C(t)},L=function(t){return C(t)?t:void 0},I=function(t,e){return arguments.length<2?L(i[t]):i[t]&&i[t][e]},k=b({}.isPrototypeOf),N=I("navigator","userAgent")||"",M=i.process,U=i.Deno,B=M&&M.versions||U&&U.version,F=B&&B.v8;F&&(r=(n=F.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&N&&(!(n=N.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=N.match(/Chrome\/(\d+)/))&&(r=+n[1]);var q=r,D=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),_=D&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,z=i.Object,W=_?function(t){return"symbol"==typeof t}:function(t){var e=I("Symbol");return C(e)&&k(e.prototype,z(t))},G=i.String,H=function(t){try{return G(t)}catch(t){return"Object"}},V=i.TypeError,X=function(t){if(C(t))return t;throw V(H(t)+" is not a function")},$=function(t,e){var n=t[e];return null==n?void 0:X(n)},K=i.TypeError,J=Object.defineProperty,Y=function(t,e){try{J(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},Q="__core-js_shared__",Z=i[Q]||Y(Q,{}),tt=e((function(t){(t.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),et=i.Object,nt=function(t){return et(R(t))},rt=b({}.hasOwnProperty),ot=Object.hasOwn||function(t,e){return rt(nt(t),e)},it=0,at=Math.random(),ct=b(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++it+at,36)},st=tt("wks"),ft=i.Symbol,lt=ft&&ft.for,pt=_?ft:ft&&ft.withoutSetter||ut,dt=function(t){if(!ot(st,t)||!D&&"string"!=typeof st[t]){var e="Symbol."+t;D&&ot(ft,t)?st[t]=ft[t]:st[t]=_&&lt?lt(e):pt(e)}return st[t]},ht=i.TypeError,vt=dt("toPrimitive"),gt=function(t,e){if(!P(t)||W(t))return t;var n,r=$(t,vt);if(r){if(void 0===e&&(e="default"),n=f(r,t,e),!P(n)||W(n))return n;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&C(n=t.toString)&&!P(r=f(n,t)))return r;if(C(n=t.valueOf)&&!P(r=f(n,t)))return r;if("string"!==e&&C(n=t.toString)&&!P(r=f(n,t)))return r;throw K("Can't convert object to primitive value")}(t,e)},mt=function(t){var e=gt(t,"string");return W(e)?e:e+""},yt=i.document,bt=P(yt)&&P(yt.createElement),wt=function(t){return bt?yt.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,St={f:c?jt:function(t,e){if(t=A(t),e=mt(e),Et)try{return jt(t,e)}catch(t){}if(ot(t,e))return h(!f(d.f,t,e),t[e])}},xt=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ot=i.String,Tt=i.TypeError,Rt=function(t){if(P(t))return t;throw Tt(Ot(t)+" is not an object")},At=i.TypeError,Ct=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Lt="enumerable",It="configurable",kt="writable",Nt={f:c?xt?function(t,e,n){if(Rt(t),e=mt(e),Rt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&kt in n&&!n.writable){var r=Pt(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:It in n?n.configurable:r.configurable,enumerable:Lt in n?n.enumerable:r.enumerable,writable:!1})}return Ct(t,e,n)}:Ct:function(t,e,n){if(Rt(t),e=mt(e),Rt(n),Et)try{return Ct(t,e,n)}catch(t){}if("get"in n||"set"in n)throw At("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Mt=c?function(t,e,n){return Nt.f(t,e,h(1,n))}:function(t,e,n){return t[e]=n,t},Ut=b(Function.toString);C(Z.inspectSource)||(Z.inspectSource=function(t){return Ut(t)});var Bt,Ft,qt,Dt=Z.inspectSource,_t=i.WeakMap,zt=C(_t)&&/native code/.test(Dt(_t)),Wt=tt("keys"),Gt=function(t){return Wt[t]||(Wt[t]=ut(t))},Ht={},Vt="Object already initialized",Xt=i.TypeError,$t=i.WeakMap;if(zt||Z.state){var Kt=Z.state||(Z.state=new $t),Jt=b(Kt.get),Yt=b(Kt.has),Qt=b(Kt.set);Bt=function(t,e){if(Yt(Kt,t))throw new Xt(Vt);return e.facade=t,Qt(Kt,t,e),e},Ft=function(t){return Jt(Kt,t)||{}},qt=function(t){return Yt(Kt,t)}}else{var Zt=Gt("state");Ht[Zt]=!0,Bt=function(t,e){if(ot(t,Zt))throw new Xt(Vt);return e.facade=t,Mt(t,Zt,e),e},Ft=function(t){return ot(t,Zt)?t[Zt]:{}},qt=function(t){return ot(t,Zt)}}var te={set:Bt,get:Ft,has:qt,enforce:function(t){return qt(t)?Ft(t):Bt(t,{})},getterFor:function(t){return function(e){var n;if(!P(e)||(n=Ft(e)).type!==t)throw Xt("Incompatible receiver, "+t+" required");return n}}},ee=Function.prototype,ne=c&&Object.getOwnPropertyDescriptor,re=ot(ee,"name"),oe={EXISTS:re,PROPER:re&&"something"===function(){}.name,CONFIGURABLE:re&&(!c||c&&ne(ee,"name").configurable)},ie=e((function(t){var e=oe.CONFIGURABLE,n=te.get,r=te.enforce,o=String(String).split("String");(t.exports=function(t,n,a,c){var u,s=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:n;C(a)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ot(a,"name")||e&&a.name!==p)&&Mt(a,"name",p),(u=r(a)).source||(u.source=o.join("string"==typeof p?p:""))),t!==i?(s?!l&&t[n]&&(f=!0):delete t[n],f?t[n]=a:Mt(t,n,a)):f?t[n]=a:Y(n,a)})(Function.prototype,"toString",(function(){return C(this)&&n(this).source||Dt(this)}))})),ae=Math.ceil,ce=Math.floor,ue=function(t){var e=+t;return e!=e||0===e?0:(e>0?ce:ae)(e)},se=Math.max,fe=Math.min,le=Math.min,pe=function(t){return t>0?le(ue(t),9007199254740991):0},de=function(t){return pe(t.length)},he=function(t){return function(e,n,r){var o,i=A(e),a=de(i),c=function(t,e){var n=ue(t);return n<0?se(n+e,0):fe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ve={includes:he(!0),indexOf:he(!1)},ge=ve.indexOf,me=b([].push),ye=function(t,e){var n,r=A(t),o=0,i=[];for(n in r)!ot(Ht,n)&&ot(r,n)&&me(i,n);for(;e.length>o;)ot(r,n=e[o++])&&(~ge(i,n)||me(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(t){return ye(t,we)}},je={f:Object.getOwnPropertySymbols},Se=b([].concat),xe=I("Reflect","ownKeys")||function(t){var e=Ee.f(Rt(t)),n=je.f;return n?Se(e,n(t)):e},Oe=function(t,e,n){for(var r=xe(e),o=Nt.f,i=St.f,a=0;a<r.length;a++){var c=r[a];ot(t,c)||n&&ot(n,c)||o(t,c,i(e,c))}},Te=/#|\.prototype\./,Re=function(t,e){var n=Ce[Ae(t)];return n==Le||n!=Pe&&(C(e)?a(e):!!e)},Ae=Re.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},Ce=Re.data={},Pe=Re.NATIVE="N",Le=Re.POLYFILL="P",Ie=Re,ke=St.f,Ne=function(t,e){var n,r,o,a,c,u=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[u]||Y(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(c=ke(n,r))&&c.value:n[r],!Ie(s?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Oe(a,o)}(t.sham||o&&o.sham)&&Mt(a,"sham",!0),ie(n,r,a,t)}},Me=function(t,e){var n=[][t];return!!n&&a((function(){n.call(null,e||function(){return 1},1)}))},Ue=b([].join),Be=O!=Object,Fe=Me("join",",");Ne({target:"Array",proto:!0,forced:Be||!Fe},{join:function(t){return Ue(A(this),void 0===t?",":t)}});var qe={};qe[dt("toStringTag")]="z";var De="[object z]"===String(qe),_e=dt("toStringTag"),ze=i.Object,We="Arguments"==j(function(){return arguments}()),Ge=De?j:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ze(t),_e))?n:We?j(e):"Object"==(r=j(e))&&C(e.callee)?"Arguments":r},He=De?{}.toString:function(){return"[object "+Ge(this)+"]"};De||ie(Object.prototype,"toString",He,{unsafe:!0});var Ve=Object.keys||function(t){return ye(t,be)};Ne({target:"Object",stat:!0,forced:a((function(){Ve(1)}))},{keys:function(t){return Ve(nt(t))}});var Xe=Array.isArray||function(t){return"Array"==j(t)},$e=function(t,e,n){var r=mt(e);r in t?Nt.f(t,r,h(0,n)):t[r]=n},Ke=function(){},Je=[],Ye=I("Reflect","construct"),Qe=/^\s*(?:class|function)\b/,Ze=b(Qe.exec),tn=!Qe.exec(Ke),en=function(t){if(!C(t))return!1;try{return Ye(Ke,Je,t),!0}catch(t){return!1}},nn=function(t){if(!C(t))return!1;switch(Ge(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tn||!!Ze(Qe,Dt(t))}catch(t){return!0}};nn.sham=!0;var rn,on=!Ye||a((function(){var t;return en(en.call)||!en(Object)||!en((function(){t=!0}))||t}))?nn:en,an=dt("species"),cn=i.Array,un=function(t,e){return new(function(t){var e;return Xe(t)&&(e=t.constructor,(on(e)&&(e===cn||Xe(e.prototype))||P(e)&&null===(e=e[an]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},sn=dt("species"),fn=dt("isConcatSpreadable"),ln=9007199254740991,pn="Maximum allowed index exceeded",dn=i.TypeError,hn=q>=51||!a((function(){var t=[];return t[fn]=!1,t.concat()[0]!==t})),vn=(rn="concat",q>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[rn](Boolean).foo}))),gn=function(t){if(!P(t))return!1;var e=t[fn];return void 0!==e?!!e:Xe(t)};Ne({target:"Array",proto:!0,forced:!hn||!vn},{concat:function(t){var e,n,r,o,i,a=nt(this),c=un(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(gn(i=-1===e?a:arguments[e])){if(u+(o=de(i))>ln)throw dn(pn);for(n=0;n<o;n++,u++)n in i&&$e(c,u,i[n])}else{if(u>=ln)throw dn(pn);$e(c,u++,i)}return c.length=u,c}});var mn,yn={f:c&&!xt?Object.defineProperties:function(t,e){Rt(t);for(var n,r=A(e),o=Ve(e),i=o.length,a=0;i>a;)Nt.f(t,n=o[a++],r[n]);return t}},bn=I("document","documentElement"),wn=Gt("IE_PROTO"),En=function(){},jn=function(t){return"<script>"+t+"</"+"script>"},Sn=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},xn=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,e;xn="undefined"!=typeof document?document.domain&&mn?Sn(mn):((e=wt("iframe")).style.display="none",bn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):Sn(mn);for(var n=be.length;n--;)delete xn.prototype[be[n]];return xn()};Ht[wn]=!0;var On=Object.create||function(t,e){var n;return null!==t?(En.prototype=Rt(t),n=new En,En.prototype=null,n[wn]=t):n=xn(),void 0===e?n:yn.f(n,e)},Tn=dt("unscopables"),Rn=Array.prototype;null==Rn[Tn]&&Nt.f(Rn,Tn,{configurable:!0,value:On(null)});var An,Cn=ve.includes;Ne({target:"Array",proto:!0},{includes:function(t){return Cn(this,t,arguments.length>1?arguments[1]:void 0)}}),An="includes",Rn[Tn][An]=!0;var Pn,Ln,In=i.String,kn=function(t){if("Symbol"===Ge(t))throw TypeError("Cannot convert a Symbol value to a string");return In(t)},Nn=function(){var t=Rt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Mn=i.RegExp,Un=a((function(){var t=Mn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Bn=Un||a((function(){return!Mn("a","y").sticky})),Fn={BROKEN_CARET:Un||a((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Bn,UNSUPPORTED_Y:Un},qn=i.RegExp,Dn=a((function(){var t=qn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_n=i.RegExp,zn=a((function(){var t=_n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Wn=te.get,Gn=tt("native-string-replace",String.prototype.replace),Hn=RegExp.prototype.exec,Vn=Hn,Xn=b("".charAt),$n=b("".indexOf),Kn=b("".replace),Jn=b("".slice),Yn=(Ln=/b*/g,f(Hn,Pn=/a/,"a"),f(Hn,Ln,"a"),0!==Pn.lastIndex||0!==Ln.lastIndex),Qn=Fn.BROKEN_CARET,Zn=void 0!==/()??/.exec("")[1];(Yn||Zn||Qn||Dn||zn)&&(Vn=function(t){var e,n,r,o,i,a,c,u=this,s=Wn(u),l=kn(t),p=s.raw;if(p)return p.lastIndex=u.lastIndex,e=f(Vn,p,l),u.lastIndex=p.lastIndex,e;var d=s.groups,h=Qn&&u.sticky,v=f(Nn,u),g=u.source,m=0,y=l;if(h&&(v=Kn(v,"y",""),-1===$n(v,"g")&&(v+="g"),y=Jn(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Xn(l,u.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),Zn&&(n=new RegExp("^"+g+"$(?!\\s)",v)),Yn&&(r=u.lastIndex),o=f(Hn,h?n:u,y),h?o?(o.input=Jn(o.input,m),o[0]=Jn(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Yn&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Zn&&o&&o.length>1&&f(Gn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=On(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var tr=Vn;Ne({target:"RegExp",proto:!0,forced:/./.exec!==tr},{exec:tr});var er=dt("species"),nr=RegExp.prototype,rr=b("".charAt),or=b("".charCodeAt),ir=b("".slice),ar=function(t){return function(e,n){var r,o,i=kn(R(e)),a=ue(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=or(i,a))<55296||r>56319||a+1===c||(o=or(i,a+1))<56320||o>57343?t?rr(i,a):r:t?ir(i,a,a+2):o-56320+(r-55296<<10)+65536}},cr={codeAt:ar(!1),charAt:ar(!0)}.charAt,ur=function(t,e,n){return e+(n?cr(t,e).length:1)},sr=i.TypeError,fr=function(t,e){var n=t.exec;if(C(n)){var r=f(n,t,e);return null!==r&&Rt(r),r}if("RegExp"===j(t))return f(tr,t,e);throw sr("RegExp#exec called on incompatible receiver")};!function(t,e,n,r){var o=dt(t),i=!a((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[er]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||n){var u=b(/./[o]),s=e(o,""[t],(function(t,e,n,r,o){var a=b(t),c=e.exec;return c===tr||c===nr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));ie(String.prototype,t,s[0]),ie(nr,o,s[1])}r&&Mt(nr[o],"sham",!0)}("match",(function(t,e,n){return[function(e){var n=R(this),r=null==e?void 0:$(e,t);return r?f(r,e,n):new RegExp(e)[t](kn(n))},function(t){var r=Rt(this),o=kn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return fr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],s=0;null!==(c=fr(r,o));){var f=kn(c[0]);u[s]=f,""===f&&(r.lastIndex=ur(o,pe(r.lastIndex),a)),s++}return 0===s?null:u}]}));var lr,pr=dt("match"),dr=i.TypeError,hr=function(t){if(function(t){var e;return P(t)&&(void 0!==(e=t[pr])?!!e:"RegExp"==j(t))}(t))throw dr("The method doesn't accept regular expressions");return t},vr=dt("match"),gr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[vr]=!1,"/./"[t](e)}catch(t){}}return!1},mr=St.f,yr=b("".endsWith),br=b("".slice),wr=Math.min,Er=gr("endsWith");Ne({target:"String",proto:!0,forced:!!(Er||(lr=mr(String.prototype,"endsWith"),!lr||lr.writable))&&!Er},{endsWith:function(t){var e=kn(R(this));hr(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=void 0===n?r:wr(pe(n),r),i=kn(t);return yr?yr(e,i,o):br(e,o-i.length,o)===i}});var jr=St.f,Sr=b("".startsWith),xr=b("".slice),Or=Math.min,Tr=gr("startsWith");Ne({target:"String",proto:!0,forced:!(!Tr&&!!function(){var t=jr(String.prototype,"startsWith");return t&&!t.writable}())&&!Tr},{startsWith:function(t){var e=kn(R(this));hr(t);var n=pe(Or(arguments.length>1?arguments[1]:void 0,e.length)),r=kn(t);return Sr?Sr(e,r,n):xr(e,n,n+r.length)===r}});var Rr=i.Promise,Ar=i.String,Cr=i.TypeError,Pr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Rt(n),function(t){if("object"==typeof t||C(t))return t;throw Cr("Can't set "+Ar(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Lr=Nt.f,Ir=dt("toStringTag"),kr=dt("species"),Nr=i.TypeError,Mr=b(b.bind),Ur=function(t,e){return X(t),void 0===e?t:u?Mr(t,e):function(){return t.apply(e,arguments)}},Br={},Fr=dt("iterator"),qr=Array.prototype,Dr=dt("iterator"),_r=function(t){if(null!=t)return $(t,Dr)||$(t,"@@iterator")||Br[Ge(t)]},zr=i.TypeError,Wr=function(t,e,n){var r,o;Rt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=f(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Rt(r),n},Gr=i.TypeError,Hr=function(t,e){this.stopped=t,this.result=e},Vr=Hr.prototype,Xr=function(t,e,n){var r,o,i,a,c,u,s,l,p=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Ur(e,p),m=function(t){return r&&Wr(r,"normal",t),new Hr(!0,t)},y=function(t){return d?(Rt(t),v?g(t[0],t[1],m):g(t[0],t[1])):v?g(t,m):g(t)};if(h)r=t;else{if(!(o=_r(t)))throw Gr(H(t)+" is not iterable");if(void 0!==(l=o)&&(Br.Array===l||qr[Fr]===l)){for(i=0,a=de(t);a>i;i++)if((c=y(t[i]))&&k(Vr,c))return c;return new Hr(!1)}r=function(t,e){var n=arguments.length<2?_r(t):e;if(X(n))return Rt(f(n,t));throw zr(H(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=f(u,r)).done;){try{c=y(s.value)}catch(t){Wr(r,"throw",t)}if("object"==typeof c&&c&&k(Vr,c))return c}return new Hr(!1)},$r=dt("iterator"),Kr=!1;try{var Jr=0,Yr={next:function(){return{done:!!Jr++}},return:function(){Kr=!0}};Yr[$r]=function(){return this},Array.from(Yr,(function(){throw 2}))}catch(t){}var Qr,Zr,to,eo,no=i.TypeError,ro=dt("species"),oo=function(t,e){var n,r=Rt(t).constructor;return void 0===r||null==(n=Rt(r)[ro])?e:function(t){if(on(t))return t;throw no(H(t)+" is not a constructor")}(n)},io=Function.prototype,ao=io.apply,co=io.call,uo="object"==typeof Reflect&&Reflect.apply||(u?co.bind(ao):function(){return co.apply(ao,arguments)}),so=b([].slice),fo=i.TypeError,lo=function(t,e){if(t<e)throw fo("Not enough arguments");return t},po=/(?:ipad|iphone|ipod).*applewebkit/i.test(N),ho="process"==j(i.process),vo=i.setImmediate,go=i.clearImmediate,mo=i.process,yo=i.Dispatch,bo=i.Function,wo=i.MessageChannel,Eo=i.String,jo=0,So={},xo="onreadystatechange";try{Qr=i.location}catch(t){}var Oo=function(t){if(ot(So,t)){var e=So[t];delete So[t],e()}},To=function(t){return function(){Oo(t)}},Ro=function(t){Oo(t.data)},Ao=function(t){i.postMessage(Eo(t),Qr.protocol+"//"+Qr.host)};vo&&go||(vo=function(t){lo(arguments.length,1);var e=C(t)?t:bo(t),n=so(arguments,1);return So[++jo]=function(){uo(e,void 0,n)},Zr(jo),jo},go=function(t){delete So[t]},ho?Zr=function(t){mo.nextTick(To(t))}:yo&&yo.now?Zr=function(t){yo.now(To(t))}:wo&&!po?(eo=(to=new wo).port2,to.port1.onmessage=Ro,Zr=Ur(eo.postMessage,eo)):i.addEventListener&&C(i.postMessage)&&!i.importScripts&&Qr&&"file:"!==Qr.protocol&&!a(Ao)?(Zr=Ao,i.addEventListener("message",Ro,!1)):Zr=xo in wt("script")?function(t){bn.appendChild(wt("script")).onreadystatechange=function(){bn.removeChild(this),Oo(t)}}:function(t){setTimeout(To(t),0)});var Co,Po,Lo,Io,ko,No,Mo,Uo,Bo={set:vo,clear:go},Fo=/ipad|iphone|ipod/i.test(N)&&void 0!==i.Pebble,qo=/web0s(?!.*chrome)/i.test(N),Do=St.f,_o=Bo.set,zo=i.MutationObserver||i.WebKitMutationObserver,Wo=i.document,Go=i.process,Ho=i.Promise,Vo=Do(i,"queueMicrotask"),Xo=Vo&&Vo.value;Xo||(Co=function(){var t,e;for(ho&&(t=Go.domain)&&t.exit();Po;){e=Po.fn,Po=Po.next;try{e()}catch(t){throw Po?Io():Lo=void 0,t}}Lo=void 0,t&&t.enter()},po||ho||qo||!zo||!Wo?!Fo&&Ho&&Ho.resolve?((Mo=Ho.resolve(void 0)).constructor=Ho,Uo=Ur(Mo.then,Mo),Io=function(){Uo(Co)}):ho?Io=function(){Go.nextTick(Co)}:(_o=Ur(_o,i),Io=function(){_o(Co)}):(ko=!0,No=Wo.createTextNode(""),new zo(Co).observe(No,{characterData:!0}),Io=function(){No.data=ko=!ko}));var $o=Xo||function(t){var e={fn:t,next:void 0};Lo&&(Lo.next=e),Po||(Po=e,Io()),Lo=e},Ko=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=X(e),this.reject=X(n)},Jo={f:function(t){return new Ko(t)}},Yo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Qo=function(){this.head=null,this.tail=null};Qo.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Zo,ti,ei,ni,ri,oi,ii,ai=Qo,ci="object"==typeof window,ui=Bo.set,si=dt("species"),fi="Promise",li=te.getterFor(fi),pi=te.set,di=te.getterFor(fi),hi=Rr&&Rr.prototype,vi=Rr,gi=hi,mi=i.TypeError,yi=i.document,bi=i.process,wi=Jo.f,Ei=wi,ji=!!(yi&&yi.createEvent&&i.dispatchEvent),Si=C(i.PromiseRejectionEvent),xi="unhandledrejection",Oi=!1,Ti=Ie(fi,(function(){var t=Dt(vi),e=t!==String(vi);if(!e&&66===q)return!0;if(q>=51&&/native code/.test(t))return!1;var n=new vi((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[si]=r,!(Oi=n.then((function(){}))instanceof r)||!e&&ci&&!Si})),Ri=Ti||!function(t,e){if(!e&&!Kr)return!1;var n=!1;try{var r={};r[$r]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){vi.all(t).catch((function(){}))})),Ai=function(t){var e;return!(!P(t)||!C(e=t.then))&&e},Ci=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&Ni(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(mi("Promise-chain cycle")):(r=Ai(n))?f(r,n,u,s):u(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},Pi=function(t,e){t.notified||(t.notified=!0,$o((function(){for(var n,r=t.reactions;n=r.get();)Ci(n,t);t.notified=!1,e&&!t.rejection&&Ii(t)})))},Li=function(t,e,n){var r,o;ji?((r=yi.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Si&&(o=i["on"+t])?o(r):t===xi&&function(t,e){var n=i.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ii=function(t){f(ui,i,(function(){var e,n=t.facade,r=t.value;if(ki(t)&&(e=Yo((function(){ho?bi.emit("unhandledRejection",r,n):Li(xi,n,r)})),t.rejection=ho||ki(t)?2:1,e.error))throw e.value}))},ki=function(t){return 1!==t.rejection&&!t.parent},Ni=function(t){f(ui,i,(function(){var e=t.facade;ho?bi.emit("rejectionHandled",e):Li("rejectionhandled",e,t.value)}))},Mi=function(t,e,n){return function(r){t(e,r,n)}},Ui=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Pi(t,!0))},Bi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw mi("Promise can't be resolved itself");var r=Ai(e);r?$o((function(){var n={done:!1};try{f(r,e,Mi(Bi,n,t),Mi(Ui,n,t))}catch(e){Ui(n,e,t)}})):(t.value=e,t.state=1,Pi(t,!1))}catch(e){Ui({done:!1},e,t)}}};if(Ti&&(gi=(vi=function(t){!function(t,e){if(k(e,t))return t;throw Nr("Incorrect invocation")}(this,gi),X(t),f(Zo,this);var e=li(this);try{t(Mi(Bi,e),Mi(Ui,e))}catch(t){Ui(e,t)}}).prototype,(Zo=function(t){pi(this,{type:fi,done:!1,notified:!1,parent:!1,reactions:new ai,rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)ie(t,r,e[r],n);return t}(gi,{then:function(t,e){var n=di(this),r=wi(oo(this,vi));return n.parent=!0,r.ok=!C(t)||t,r.fail=C(e)&&e,r.domain=ho?bi.domain:void 0,0==n.state?n.reactions.add(r):$o((function(){Ci(r,n)})),r.promise},catch:function(t){return this.then(void 0,t)}}),ti=function(){var t=new Zo,e=li(t);this.promise=t,this.resolve=Mi(Bi,e),this.reject=Mi(Ui,e)},Jo.f=wi=function(t){return t===vi||t===ei?new ti(t):Ei(t)},C(Rr)&&hi!==Object.prototype)){ni=hi.then,Oi||(ie(hi,"then",(function(t,e){var n=this;return new vi((function(t,e){f(ni,n,t,e)})).then(t,e)}),{unsafe:!0}),ie(hi,"catch",gi.catch,{unsafe:!0}));try{delete hi.constructor}catch(t){}Pr&&Pr(hi,gi)}Ne({global:!0,wrap:!0,forced:Ti},{Promise:vi}),oi=fi,ii=!1,(ri=vi)&&!ii&&(ri=ri.prototype),ri&&!ot(ri,Ir)&&Lr(ri,Ir,{configurable:!0,value:oi}),function(t){var e=I(t),n=Nt.f;c&&e&&!e[kr]&&n(e,kr,{configurable:!0,get:function(){return this}})}(fi),ei=I(fi),Ne({target:fi,stat:!0,forced:Ti},{reject:function(t){var e=wi(this);return f(e.reject,void 0,t),e.promise}}),Ne({target:fi,stat:!0,forced:Ti},{resolve:function(t){return function(t,e){if(Rt(t),P(e)&&e.constructor===t)return e;var n=Jo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Ne({target:fi,stat:!0,forced:Ri},{all:function(t){var e=this,n=wi(e),r=n.resolve,o=n.reject,i=Yo((function(){var n=X(e.resolve),i=[],a=0,c=1;Xr(t,(function(t){var u=a++,s=!1;c++,f(n,e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=wi(e),r=n.reject,o=Yo((function(){var o=X(e.resolve);Xr(t,(function(t){f(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Fi=Object.assign,qi=Object.defineProperty,Di=b([].concat),_i=!Fi||a((function(){if(c&&1!==Fi({b:1},Fi(qi({},"a",{enumerable:!0,get:function(){qi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fi({},t)[n]||Ve(Fi({},e)).join("")!=r}))?function(t,e){for(var n=nt(t),r=arguments.length,o=1,i=je.f,a=d.f;r>o;)for(var u,s=O(arguments[o++]),l=i?Di(Ve(s),i(s)):Ve(s),p=l.length,h=0;p>h;)u=l[h++],c&&!f(a,s,u)||(n[u]=s[u]);return n}:Fi;Ne({target:"Object",stat:!0,forced:Object.assign!==_i},{assign:_i});var zi=oe.EXISTS,Wi=Nt.f,Gi=Function.prototype,Hi=b(Gi.toString),Vi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Xi=b(Vi.exec);c&&!zi&&Wi(Gi,"name",{configurable:!0,get:function(){try{return Xi(Vi,Hi(this))[1]}catch(t){return""}}});var $i={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},Ki=wt("span").classList,Ji=Ki&&Ki.constructor&&Ki.constructor.prototype,Yi=Ji===Object.prototype?void 0:Ji,Qi=b([].push),Zi=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,d,h=nt(u),v=O(h),g=Ur(s,f),m=de(v),y=0,b=l||un,w=e?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((c||y in v)&&(d=g(p=v[y],y,h),t))if(e)w[y]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:Qi(w,p)}else switch(t){case 4:return!1;case 7:Qi(w,p)}return i?-1:r||o?o:w}},ta={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)}.forEach,ea=Me("forEach")?[].forEach:function(t){return ta(this,t,arguments.length>1?arguments[1]:void 0)},na=function(t){if(t&&t.forEach!==ea)try{Mt(t,"forEach",ea)}catch(e){t.forEach=ea}};for(var ra in $i)$i[ra]&&na(i[ra]&&i[ra].prototype);na(Yi);var oa=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},ia=Object.prototype.toString;function aa(t){return"[object Array]"===ia.call(t)}function ca(t){return void 0===t}function ua(t){return null!==t&&"object"==typeof t}function sa(t){if("[object Object]"!==ia.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function fa(t){return"[object Function]"===ia.call(t)}function la(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),aa(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var pa={isArray:aa,isArrayBuffer:function(t){return"[object ArrayBuffer]"===ia.call(t)},isBuffer:function(t){return null!==t&&!ca(t)&&null!==t.constructor&&!ca(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:ua,isPlainObject:sa,isUndefined:ca,isDate:function(t){return"[object Date]"===ia.call(t)},isFile:function(t){return"[object File]"===ia.call(t)},isBlob:function(t){return"[object Blob]"===ia.call(t)},isFunction:fa,isStream:function(t){return ua(t)&&fa(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:la,merge:function t(){var e={};function n(n,r){sa(e[r])&&sa(n)?e[r]=t(e[r],n):sa(n)?e[r]=t({},n):aa(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)la(arguments[r],n);return e},extend:function(t,e,n){return la(e,(function(e,r){t[r]=n&&"function"==typeof e?oa(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function da(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ha=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(pa.isURLSearchParams(e))r=e.toString();else{var o=[];pa.forEach(e,(function(t,e){null!=t&&(pa.isArray(t)?e+="[]":t=[t],pa.forEach(t,(function(t){pa.isDate(t)?t=t.toISOString():pa.isObject(t)&&(t=JSON.stringify(t)),o.push(da(e)+"="+da(t))})))})),r=o.join("&")}if(r){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function va(){this.handlers=[]}va.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},va.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},va.prototype.forEach=function(t){pa.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var ga=va,ma=function(t,e,n){return pa.forEach(n,(function(n){t=n(t,e)})),t},ya=function(t){return!(!t||!t.__CANCEL__)},ba=function(t,e){pa.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},wa=function(t,e,n,r,o){return function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.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}},t}(new Error(t),e,n,r,o)},Ea=pa.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),pa.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),pa.isString(r)&&a.push("path="+r),pa.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ja=["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"],Sa=pa.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=r(window.location.href),function(e){var n=pa.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},xa=function(t){return new Promise((function(e,n){var r=t.data,o=t.headers;pa.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",c=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(a+":"+c)}var u,s,f=(u=t.baseURL,s=t.url,u&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(s)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,s):s);if(i.open(t.method.toUpperCase(),ha(f,t.params,t.paramsSerializer),!0),i.timeout=t.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(t){var e,n,r,o={};return t?(pa.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=pa.trim(t.substr(0,r)).toLowerCase(),n=pa.trim(t.substr(r+1)),e){if(o[e]&&ja.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:t,request:i};!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(wa("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}(e,n,o),i=null}},i.onabort=function(){i&&(n(wa("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(wa("Network Error",t,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(wa(e,t,"ECONNABORTED",i)),i=null},pa.isStandardBrowserEnv()){var l=(t.withCredentials||Sa(f))&&t.xsrfCookieName?Ea.read(t.xsrfCookieName):void 0;l&&(o[t.xsrfHeaderName]=l)}if("setRequestHeader"in i&&pa.forEach(o,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete o[e]:i.setRequestHeader(e,t)})),pa.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),t.responseType)try{i.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&i.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){i&&(i.abort(),n(t),i=null)})),r||(r=null),i.send(r)}))},Oa={"Content-Type":"application/x-www-form-urlencoded"};function Ta(t,e){!pa.isUndefined(t)&&pa.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Ra,Aa={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Ra=xa),Ra),transformRequest:[function(t,e){return ba(e,"Accept"),ba(e,"Content-Type"),pa.isFormData(t)||pa.isArrayBuffer(t)||pa.isBuffer(t)||pa.isStream(t)||pa.isFile(t)||pa.isBlob(t)?t:pa.isArrayBufferView(t)?t.buffer:pa.isURLSearchParams(t)?(Ta(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):pa.isObject(t)?(Ta(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Aa.headers={common:{Accept:"application/json, text/plain, */*"}},pa.forEach(["delete","get","head"],(function(t){Aa.headers[t]={}})),pa.forEach(["post","put","patch"],(function(t){Aa.headers[t]=pa.merge(Oa)}));var Ca=Aa;function Pa(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var La=function(t){return Pa(t),t.headers=t.headers||{},t.data=ma(t.data,t.headers,t.transformRequest),t.headers=pa.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),pa.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ca.adapter)(t).then((function(e){return Pa(t),e.data=ma(e.data,e.headers,t.transformResponse),e}),(function(e){return ya(e)||(Pa(t),e&&e.response&&(e.response.data=ma(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Ia=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return pa.isPlainObject(t)&&pa.isPlainObject(e)?pa.merge(t,e):pa.isPlainObject(e)?pa.merge({},e):pa.isArray(e)?e.slice():e}function u(r){pa.isUndefined(e[r])?pa.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(t[r],e[r])}pa.forEach(r,(function(t){pa.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),pa.forEach(o,u),pa.forEach(i,(function(r){pa.isUndefined(e[r])?pa.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(void 0,e[r])})),pa.forEach(a,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var s=r.concat(o).concat(i).concat(a),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===s.indexOf(t)}));return pa.forEach(f,u),n};function ka(t){this.defaults=t,this.interceptors={request:new ga,response:new ga}}ka.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=Ia(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[La,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},ka.prototype.getUri=function(t){return t=Ia(this.defaults,t),ha(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},pa.forEach(["delete","get","head","options"],(function(t){ka.prototype[t]=function(e,n){return this.request(Ia(n||{},{method:t,url:e,data:(n||{}).data}))}})),pa.forEach(["post","put","patch"],(function(t){ka.prototype[t]=function(e,n,r){return this.request(Ia(r||{},{method:t,url:e,data:n}))}}));var Na=ka;function Ma(t){this.message=t}Ma.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Ma.prototype.__CANCEL__=!0;var Ua=Ma;function Ba(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new Ua(t),e(n.reason))}))}Ba.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ba.source=function(){var t;return{token:new Ba((function(e){t=e})),cancel:t}};var Fa=Ba;function qa(t){var e=new Na(t),n=oa(Na.prototype.request,e);return pa.extend(n,Na.prototype,e),pa.extend(n,e),n}var Da=qa(Ca);Da.Axios=Na,Da.create=function(t){return qa(Ia(Da.defaults,t))},Da.Cancel=Ua,Da.CancelToken=Fa,Da.isCancel=ya,Da.all=function(t){return Promise.all(t)},Da.spread=function(t){return function(e){return t.apply(null,e)}},Da.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var _a=Da,za=Da;_a.default=za;var Wa=_a,Ga="v4.0",Ha=["v2","v3","v4","v5","canary"],Va="@tryghost/content-api",Xa=function(t){var e=t.url,n=t.method,r=t.params,o=t.headers;return Wa[n](e,{params:r,paramsSerializer:function(t){return Object.keys(t).reduce((function(e,n){var r=encodeURIComponent([].concat(t[n]).join(","));return e.concat("".concat(n,"=").concat(r))}),[]).join("&")},headers:o})};return function t(e){var n,r=e.url,o=e.key,i=e.host,a=e.version,c=e.ghostPath,u=void 0===c?"ghost":c,s=e.makeRequest,f=void 0===s?Xa:s;if(i&&(console.warn("".concat(Va,": The 'host' parameter is deprecated, please use 'url' instead")),r||(r=i)),this instanceof t)return t({url:r,key:o,version:a,ghostPath:u,makeRequest:f});if(void 0===a)throw new Error("".concat(Va," Config Missing: 'version' is required. E.g. ").concat(Ha.join(",")));if("boolean"==typeof a)!0===a&&(n=Ga),a=void 0;else{if(a&&!Ha.includes(a)&&!a.match(/^v\d+\.\d+/))throw new Error("".concat(Va," Config Invalid: 'version' ").concat(a," is not supported"));"canary"===a?(console.warn("".concat(Va,": The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead")),n=Ga):a.match(/^v\d+$/)?(console.warn("".concat(Va,": The 'version' parameter has a deprecated format 'v{major}', please use 'v{major}.{minor}' format instead")),n="".concat(a,".0")):n=a}if(!r)throw new Error("".concat(Va," Config Missing: 'url' is required. E.g. 'https://site.com'"));if(!/https?:\/\//.test(r))throw new Error("".concat(Va," Config Invalid: 'url' ").concat(r," requires a protocol. E.g. 'https://site.com'"));if(r.endsWith("/"))throw new Error("".concat(Va," Config Invalid: 'url' ").concat(r," must not have a trailing slash. E.g. 'https://site.com'"));if(u.endsWith("/")||u.startsWith("/"))throw new Error("".concat(Va," Config Invalid: 'ghostPath' ").concat(u," must not have a leading or trailing slash. E.g. 'ghost'"));if(o&&!/[0-9a-f]{26}/.test(o))throw new Error("".concat(Va," Config Invalid: 'key' ").concat(o," must have 26 hex characters"));var l=["posts","authors","tags","pages","settings"].reduce((function(t,e){return Object.assign(t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,{read:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||!t.id&&!t.slug)return Promise.reject(new Error("".concat(Va," read requires an id or slug.")));var o=Object.assign({},t,n);return p(e,o,t.id||"slug/".concat(t.slug),r)},browse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return p(e,t,null,n)}}))}),{});return delete l.settings.read,l;function p(t,e,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!c&&!o)return Promise.reject(new Error("".concat(Va," Config Missing: 'key' is required.")));delete e.id;var s=c?{Authorization:"GhostMembers ".concat(c)}:{};n&&(s["Accept-Version"]=n),e=Object.assign({key:o},e);var l=a?"".concat(r,"/").concat(u,"/api/").concat(a,"/content/").concat(t,"/").concat(i?i+"/":""):"".concat(r,"/").concat(u,"/api/content/").concat(t,"/").concat(i?i+"/":"");return f({url:l,method:"get",params:e,headers:s}).then((function(e){return Array.isArray(e.data[t])?1!==e.data[t].length||e.data.meta?Object.assign(e.data[t],{meta:e.data.meta}):e.data[t][0]:e.data[t]})).catch((function(t){if(t.response&&t.response.data&&t.response.data.errors){var e=t.response.data.errors[0],n=new Error(e.message),r=Object.keys(e);throw n.name=e.type,r.forEach((function(t){n[t]=e[t]})),n.response=t.response,n.request=t.request,n.config=t.config,n}throw t}))}}}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).GhostContentAPI=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,f=u?s.bind(s):function(){return s.apply(s,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=Function.prototype,m=v.bind,g=v.call,y=u&&m.bind(g,g),b=u?function(t){return t&&y(t)}:function(t){return t&&function(){return g.apply(t,arguments)}},w=b({}.toString),E=b("".slice),S=function(t){return E(w(t),8,-1)},j=i.Object,O=b("".split),x=a((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?O(t,""):j(t)}:j,T=i.TypeError,C=function(t){if(null==t)throw T("Can't call method on "+t);return t},R=function(t){return x(C(t))},P=function(t){return"function"==typeof t},A=function(t){return"object"==typeof t?null!==t:P(t)},L=function(t){return P(t)?t:void 0},N=function(t,e){return arguments.length<2?L(i[t]):i[t]&&i[t][e]},I=b({}.isPrototypeOf),k=N("navigator","userAgent")||"",U=i.process,M=i.Deno,B=U&&U.versions||M&&M.version,D=B&&B.v8;D&&(r=(n=D.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&k&&(!(n=k.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=k.match(/Chrome\/(\d+)/))&&(r=+n[1]);var _=r,q=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_&&_<41})),F=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,z=i.Object,G=F?function(t){return"symbol"==typeof t}:function(t){var e=N("Symbol");return P(e)&&I(e.prototype,z(t))},W=i.String,V=function(t){try{return W(t)}catch(t){return"Object"}},H=i.TypeError,K=function(t){if(P(t))return t;throw H(V(t)+" is not a function")},X=function(t,e){var n=t[e];return null==n?void 0:K(n)},$=i.TypeError,J=Object.defineProperty,Y=function(t,e){try{J(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},Q="__core-js_shared__",Z=i[Q]||Y(Q,{}),tt=e((function(t){(t.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),et=i.Object,nt=function(t){return et(C(t))},rt=b({}.hasOwnProperty),ot=Object.hasOwn||function(t,e){return rt(nt(t),e)},it=0,at=Math.random(),ct=b(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++it+at,36)},st=tt("wks"),ft=i.Symbol,lt=ft&&ft.for,pt=F?ft:ft&&ft.withoutSetter||ut,dt=function(t){if(!ot(st,t)||!q&&"string"!=typeof st[t]){var e="Symbol."+t;q&&ot(ft,t)?st[t]=ft[t]:st[t]=F&&lt?lt(e):pt(e)}return st[t]},ht=i.TypeError,vt=dt("toPrimitive"),mt=function(t,e){if(!A(t)||G(t))return t;var n,r=X(t,vt);if(r){if(void 0===e&&(e="default"),n=f(r,t,e),!A(n)||G(n))return n;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&P(n=t.toString)&&!A(r=f(n,t)))return r;if(P(n=t.valueOf)&&!A(r=f(n,t)))return r;if("string"!==e&&P(n=t.toString)&&!A(r=f(n,t)))return r;throw $("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=mt(t,"string");return G(e)?e:e+""},yt=i.document,bt=A(yt)&&A(yt.createElement),wt=function(t){return bt?yt.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,jt={f:c?St:function(t,e){if(t=R(t),e=gt(e),Et)try{return St(t,e)}catch(t){}if(ot(t,e))return h(!f(d.f,t,e),t[e])}},Ot=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xt=i.String,Tt=i.TypeError,Ct=function(t){if(A(t))return t;throw Tt(xt(t)+" is not an object")},Rt=i.TypeError,Pt=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Lt="enumerable",Nt="configurable",It="writable",kt={f:c?Ot?function(t,e,n){if(Ct(t),e=gt(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&It in n&&!n.writable){var r=At(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Nt in n?n.configurable:r.configurable,enumerable:Lt in n?n.enumerable:r.enumerable,writable:!1})}return Pt(t,e,n)}:Pt:function(t,e,n){if(Ct(t),e=gt(e),Ct(n),Et)try{return Pt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Rt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ut=c?function(t,e,n){return kt.f(t,e,h(1,n))}:function(t,e,n){return t[e]=n,t},Mt=b(Function.toString);P(Z.inspectSource)||(Z.inspectSource=function(t){return Mt(t)});var Bt,Dt,_t,qt=Z.inspectSource,Ft=i.WeakMap,zt=P(Ft)&&/native code/.test(qt(Ft)),Gt=tt("keys"),Wt=function(t){return Gt[t]||(Gt[t]=ut(t))},Vt={},Ht="Object already initialized",Kt=i.TypeError,Xt=i.WeakMap;if(zt||Z.state){var $t=Z.state||(Z.state=new Xt),Jt=b($t.get),Yt=b($t.has),Qt=b($t.set);Bt=function(t,e){if(Yt($t,t))throw new Kt(Ht);return e.facade=t,Qt($t,t,e),e},Dt=function(t){return Jt($t,t)||{}},_t=function(t){return Yt($t,t)}}else{var Zt=Wt("state");Vt[Zt]=!0,Bt=function(t,e){if(ot(t,Zt))throw new Kt(Ht);return e.facade=t,Ut(t,Zt,e),e},Dt=function(t){return ot(t,Zt)?t[Zt]:{}},_t=function(t){return ot(t,Zt)}}var te={set:Bt,get:Dt,has:_t,enforce:function(t){return _t(t)?Dt(t):Bt(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=Dt(e)).type!==t)throw Kt("Incompatible receiver, "+t+" required");return n}}},ee=Function.prototype,ne=c&&Object.getOwnPropertyDescriptor,re=ot(ee,"name"),oe={EXISTS:re,PROPER:re&&"something"===function(){}.name,CONFIGURABLE:re&&(!c||c&&ne(ee,"name").configurable)},ie=e((function(t){var e=oe.CONFIGURABLE,n=te.get,r=te.enforce,o=String(String).split("String");(t.exports=function(t,n,a,c){var u,s=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:n;P(a)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ot(a,"name")||e&&a.name!==p)&&Ut(a,"name",p),(u=r(a)).source||(u.source=o.join("string"==typeof p?p:""))),t!==i?(s?!l&&t[n]&&(f=!0):delete t[n],f?t[n]=a:Ut(t,n,a)):f?t[n]=a:Y(n,a)})(Function.prototype,"toString",(function(){return P(this)&&n(this).source||qt(this)}))})),ae=Math.ceil,ce=Math.floor,ue=function(t){var e=+t;return e!=e||0===e?0:(e>0?ce:ae)(e)},se=Math.max,fe=Math.min,le=Math.min,pe=function(t){return t>0?le(ue(t),9007199254740991):0},de=function(t){return pe(t.length)},he=function(t){return function(e,n,r){var o,i=R(e),a=de(i),c=function(t,e){var n=ue(t);return n<0?se(n+e,0):fe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ve={includes:he(!0),indexOf:he(!1)},me=ve.indexOf,ge=b([].push),ye=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!ot(Vt,n)&&ot(r,n)&&ge(i,n);for(;e.length>o;)ot(r,n=e[o++])&&(~me(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(t){return ye(t,we)}},Se={f:Object.getOwnPropertySymbols},je=b([].concat),Oe=N("Reflect","ownKeys")||function(t){var e=Ee.f(Ct(t)),n=Se.f;return n?je(e,n(t)):e},xe=function(t,e,n){for(var r=Oe(e),o=kt.f,i=jt.f,a=0;a<r.length;a++){var c=r[a];ot(t,c)||n&&ot(n,c)||o(t,c,i(e,c))}},Te=/#|\.prototype\./,Ce=function(t,e){var n=Pe[Re(t)];return n==Le||n!=Ae&&(P(e)?a(e):!!e)},Re=Ce.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},Pe=Ce.data={},Ae=Ce.NATIVE="N",Le=Ce.POLYFILL="P",Ne=Ce,Ie=jt.f,ke=function(t,e){var n,r,o,a,c,u=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[u]||Y(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(c=Ie(n,r))&&c.value:n[r],!Ne(s?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;xe(a,o)}(t.sham||o&&o.sham)&&Ut(a,"sham",!0),ie(n,r,a,t)}},Ue=function(t,e){var n=[][t];return!!n&&a((function(){n.call(null,e||function(){return 1},1)}))},Me=b([].join),Be=x!=Object,De=Ue("join",",");ke({target:"Array",proto:!0,forced:Be||!De},{join:function(t){return Me(R(this),void 0===t?",":t)}});var _e={};_e[dt("toStringTag")]="z";var qe="[object z]"===String(_e),Fe=dt("toStringTag"),ze=i.Object,Ge="Arguments"==S(function(){return arguments}()),We=qe?S:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ze(t),Fe))?n:Ge?S(e):"Object"==(r=S(e))&&P(e.callee)?"Arguments":r},Ve=qe?{}.toString:function(){return"[object "+We(this)+"]"};qe||ie(Object.prototype,"toString",Ve,{unsafe:!0});var He=Object.keys||function(t){return ye(t,be)};ke({target:"Object",stat:!0,forced:a((function(){He(1)}))},{keys:function(t){return He(nt(t))}});var Ke=Array.isArray||function(t){return"Array"==S(t)},Xe=function(t,e,n){var r=gt(e);r in t?kt.f(t,r,h(0,n)):t[r]=n},$e=function(){},Je=[],Ye=N("Reflect","construct"),Qe=/^\s*(?:class|function)\b/,Ze=b(Qe.exec),tn=!Qe.exec($e),en=function(t){if(!P(t))return!1;try{return Ye($e,Je,t),!0}catch(t){return!1}},nn=function(t){if(!P(t))return!1;switch(We(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tn||!!Ze(Qe,qt(t))}catch(t){return!0}};nn.sham=!0;var rn,on=!Ye||a((function(){var t;return en(en.call)||!en(Object)||!en((function(){t=!0}))||t}))?nn:en,an=dt("species"),cn=i.Array,un=function(t,e){return new(function(t){var e;return Ke(t)&&(e=t.constructor,(on(e)&&(e===cn||Ke(e.prototype))||A(e)&&null===(e=e[an]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},sn=dt("species"),fn=dt("isConcatSpreadable"),ln=9007199254740991,pn="Maximum allowed index exceeded",dn=i.TypeError,hn=_>=51||!a((function(){var t=[];return t[fn]=!1,t.concat()[0]!==t})),vn=(rn="concat",_>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[rn](Boolean).foo}))),mn=function(t){if(!A(t))return!1;var e=t[fn];return void 0!==e?!!e:Ke(t)};ke({target:"Array",proto:!0,forced:!hn||!vn},{concat:function(t){var e,n,r,o,i,a=nt(this),c=un(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(mn(i=-1===e?a:arguments[e])){if(u+(o=de(i))>ln)throw dn(pn);for(n=0;n<o;n++,u++)n in i&&Xe(c,u,i[n])}else{if(u>=ln)throw dn(pn);Xe(c,u++,i)}return c.length=u,c}});var gn,yn={f:c&&!Ot?Object.defineProperties:function(t,e){Ct(t);for(var n,r=R(e),o=He(e),i=o.length,a=0;i>a;)kt.f(t,n=o[a++],r[n]);return t}},bn=N("document","documentElement"),wn=Wt("IE_PROTO"),En=function(){},Sn=function(t){return"<script>"+t+"</"+"script>"},jn=function(t){t.write(Sn("")),t.close();var e=t.parentWindow.Object;return t=null,e},On=function(){try{gn=new ActiveXObject("htmlfile")}catch(t){}var t,e;On="undefined"!=typeof document?document.domain&&gn?jn(gn):((e=wt("iframe")).style.display="none",bn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Sn("document.F=Object")),t.close(),t.F):jn(gn);for(var n=be.length;n--;)delete On.prototype[be[n]];return On()};Vt[wn]=!0;var xn=Object.create||function(t,e){var n;return null!==t?(En.prototype=Ct(t),n=new En,En.prototype=null,n[wn]=t):n=On(),void 0===e?n:yn.f(n,e)},Tn=dt("unscopables"),Cn=Array.prototype;null==Cn[Tn]&&kt.f(Cn,Tn,{configurable:!0,value:xn(null)});var Rn,Pn=ve.includes;ke({target:"Array",proto:!0},{includes:function(t){return Pn(this,t,arguments.length>1?arguments[1]:void 0)}}),Rn="includes",Cn[Tn][Rn]=!0;var An,Ln,Nn=i.String,In=function(t){if("Symbol"===We(t))throw TypeError("Cannot convert a Symbol value to a string");return Nn(t)},kn=function(){var t=Ct(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Un=i.RegExp,Mn=a((function(){var t=Un("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Bn=Mn||a((function(){return!Un("a","y").sticky})),Dn={BROKEN_CARET:Mn||a((function(){var t=Un("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Bn,UNSUPPORTED_Y:Mn},_n=i.RegExp,qn=a((function(){var t=_n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Fn=i.RegExp,zn=a((function(){var t=Fn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gn=te.get,Wn=tt("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Hn=Vn,Kn=b("".charAt),Xn=b("".indexOf),$n=b("".replace),Jn=b("".slice),Yn=(Ln=/b*/g,f(Vn,An=/a/,"a"),f(Vn,Ln,"a"),0!==An.lastIndex||0!==Ln.lastIndex),Qn=Dn.BROKEN_CARET,Zn=void 0!==/()??/.exec("")[1];(Yn||Zn||Qn||qn||zn)&&(Hn=function(t){var e,n,r,o,i,a,c,u=this,s=Gn(u),l=In(t),p=s.raw;if(p)return p.lastIndex=u.lastIndex,e=f(Hn,p,l),u.lastIndex=p.lastIndex,e;var d=s.groups,h=Qn&&u.sticky,v=f(kn,u),m=u.source,g=0,y=l;if(h&&(v=$n(v,"y",""),-1===Xn(v,"g")&&(v+="g"),y=Jn(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Kn(l,u.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Zn&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Yn&&(r=u.lastIndex),o=f(Vn,h?n:u,y),h?o?(o.input=Jn(o.input,g),o[0]=Jn(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Yn&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Zn&&o&&o.length>1&&f(Wn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=xn(null),i=0;i<d.length;i++)a[(c=d[i])[0]]=o[c[1]];return o});var tr=Hn;ke({target:"RegExp",proto:!0,forced:/./.exec!==tr},{exec:tr});var er=dt("species"),nr=RegExp.prototype,rr=b("".charAt),or=b("".charCodeAt),ir=b("".slice),ar=function(t){return function(e,n){var r,o,i=In(C(e)),a=ue(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=or(i,a))<55296||r>56319||a+1===c||(o=or(i,a+1))<56320||o>57343?t?rr(i,a):r:t?ir(i,a,a+2):o-56320+(r-55296<<10)+65536}},cr={codeAt:ar(!1),charAt:ar(!0)}.charAt,ur=function(t,e,n){return e+(n?cr(t,e).length:1)},sr=i.TypeError,fr=function(t,e){var n=t.exec;if(P(n)){var r=f(n,t,e);return null!==r&&Ct(r),r}if("RegExp"===S(t))return f(tr,t,e);throw sr("RegExp#exec called on incompatible receiver")};!function(t,e,n,r){var o=dt(t),i=!a((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[er]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||n){var u=b(/./[o]),s=e(o,""[t],(function(t,e,n,r,o){var a=b(t),c=e.exec;return c===tr||c===nr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));ie(String.prototype,t,s[0]),ie(nr,o,s[1])}r&&Ut(nr[o],"sham",!0)}("match",(function(t,e,n){return[function(e){var n=C(this),r=null==e?void 0:X(e,t);return r?f(r,e,n):new RegExp(e)[t](In(n))},function(t){var r=Ct(this),o=In(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return fr(r,o);var a=r.unicode;r.lastIndex=0;for(var c,u=[],s=0;null!==(c=fr(r,o));){var f=In(c[0]);u[s]=f,""===f&&(r.lastIndex=ur(o,pe(r.lastIndex),a)),s++}return 0===s?null:u}]}));var lr,pr=dt("match"),dr=i.TypeError,hr=function(t){if(function(t){var e;return A(t)&&(void 0!==(e=t[pr])?!!e:"RegExp"==S(t))}(t))throw dr("The method doesn't accept regular expressions");return t},vr=dt("match"),mr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[vr]=!1,"/./"[t](e)}catch(t){}}return!1},gr=jt.f,yr=b("".endsWith),br=b("".slice),wr=Math.min,Er=mr("endsWith");ke({target:"String",proto:!0,forced:!!(Er||(lr=gr(String.prototype,"endsWith"),!lr||lr.writable))&&!Er},{endsWith:function(t){var e=In(C(this));hr(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=void 0===n?r:wr(pe(n),r),i=In(t);return yr?yr(e,i,o):br(e,o-i.length,o)===i}});var Sr=jt.f,jr=b("".startsWith),Or=b("".slice),xr=Math.min,Tr=mr("startsWith");ke({target:"String",proto:!0,forced:!(!Tr&&!!function(){var t=Sr(String.prototype,"startsWith");return t&&!t.writable}())&&!Tr},{startsWith:function(t){var e=In(C(this));hr(t);var n=pe(xr(arguments.length>1?arguments[1]:void 0,e.length)),r=In(t);return jr?jr(e,r,n):Or(e,n,n+r.length)===r}});var Cr,Rr,Pr,Ar,Lr="process"==S(i.process),Nr=i.String,Ir=i.TypeError,kr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ct(n),function(t){if("object"==typeof t||P(t))return t;throw Ir("Can't set "+Nr(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ur=kt.f,Mr=dt("toStringTag"),Br=dt("species"),Dr=i.TypeError,_r=i.TypeError,qr=dt("species"),Fr=function(t,e){var n,r=Ct(t).constructor;return void 0===r||null==(n=Ct(r)[qr])?e:function(t){if(on(t))return t;throw _r(V(t)+" is not a constructor")}(n)},zr=Function.prototype,Gr=zr.apply,Wr=zr.call,Vr="object"==typeof Reflect&&Reflect.apply||(u?Wr.bind(Gr):function(){return Wr.apply(Gr,arguments)}),Hr=b(b.bind),Kr=function(t,e){return K(t),void 0===e?t:u?Hr(t,e):function(){return t.apply(e,arguments)}},Xr=b([].slice),$r=i.TypeError,Jr=function(t,e){if(t<e)throw $r("Not enough arguments");return t},Yr=/(?:ipad|iphone|ipod).*applewebkit/i.test(k),Qr=i.setImmediate,Zr=i.clearImmediate,to=i.process,eo=i.Dispatch,no=i.Function,ro=i.MessageChannel,oo=i.String,io=0,ao={},co="onreadystatechange";try{Cr=i.location}catch(t){}var uo=function(t){if(ot(ao,t)){var e=ao[t];delete ao[t],e()}},so=function(t){return function(){uo(t)}},fo=function(t){uo(t.data)},lo=function(t){i.postMessage(oo(t),Cr.protocol+"//"+Cr.host)};Qr&&Zr||(Qr=function(t){Jr(arguments.length,1);var e=P(t)?t:no(t),n=Xr(arguments,1);return ao[++io]=function(){Vr(e,void 0,n)},Rr(io),io},Zr=function(t){delete ao[t]},Lr?Rr=function(t){to.nextTick(so(t))}:eo&&eo.now?Rr=function(t){eo.now(so(t))}:ro&&!Yr?(Ar=(Pr=new ro).port2,Pr.port1.onmessage=fo,Rr=Kr(Ar.postMessage,Ar)):i.addEventListener&&P(i.postMessage)&&!i.importScripts&&Cr&&"file:"!==Cr.protocol&&!a(lo)?(Rr=lo,i.addEventListener("message",fo,!1)):Rr=co in wt("script")?function(t){bn.appendChild(wt("script")).onreadystatechange=function(){bn.removeChild(this),uo(t)}}:function(t){setTimeout(so(t),0)});var po,ho,vo,mo,go,yo,bo,wo,Eo={set:Qr,clear:Zr},So=/ipad|iphone|ipod/i.test(k)&&void 0!==i.Pebble,jo=/web0s(?!.*chrome)/i.test(k),Oo=jt.f,xo=Eo.set,To=i.MutationObserver||i.WebKitMutationObserver,Co=i.document,Ro=i.process,Po=i.Promise,Ao=Oo(i,"queueMicrotask"),Lo=Ao&&Ao.value;Lo||(po=function(){var t,e;for(Lr&&(t=Ro.domain)&&t.exit();ho;){e=ho.fn,ho=ho.next;try{e()}catch(t){throw ho?mo():vo=void 0,t}}vo=void 0,t&&t.enter()},Yr||Lr||jo||!To||!Co?!So&&Po&&Po.resolve?((bo=Po.resolve(void 0)).constructor=Po,wo=Kr(bo.then,bo),mo=function(){wo(po)}):Lr?mo=function(){Ro.nextTick(po)}:(xo=Kr(xo,i),mo=function(){xo(po)}):(go=!0,yo=Co.createTextNode(""),new To(po).observe(yo,{characterData:!0}),mo=function(){yo.data=go=!go}));var No=Lo||function(t){var e={fn:t,next:void 0};vo&&(vo.next=e),ho||(ho=e,mo()),vo=e},Io=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ko=function(){this.head=null,this.tail=null};ko.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Uo=ko,Mo=i.Promise,Bo="object"==typeof window&&"object"!=typeof Deno;Mo&&Mo.prototype;var Do,_o,qo,Fo,zo,Go,Wo=dt("species"),Vo=!1,Ho=P(i.PromiseRejectionEvent),Ko={CONSTRUCTOR:Ne("Promise",(function(){var t=qt(Mo),e=t!==String(Mo);if(!e&&66===_)return!0;if(_>=51&&/native code/.test(t))return!1;var n=new Mo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Wo]=r,!(Vo=n.then((function(){}))instanceof r)||!e&&Bo&&!Ho})),REJECTION_EVENT:Ho,SUBCLASSING:Vo},Xo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=K(e),this.reject=K(n)},$o={f:function(t){return new Xo(t)}},Jo=Eo.set,Yo="Promise",Qo=Ko.CONSTRUCTOR,Zo=Ko.REJECTION_EVENT,ti=Ko.SUBCLASSING,ei=te.getterFor(Yo),ni=te.set,ri=Mo&&Mo.prototype,oi=Mo,ii=ri,ai=i.TypeError,ci=i.document,ui=i.process,si=$o.f,fi=si,li=!!(ci&&ci.createEvent&&i.dispatchEvent),pi="unhandledrejection",di=function(t){var e;return!(!A(t)||!P(e=t.then))&&e},hi=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&bi(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(ai("Promise-chain cycle")):(r=di(n))?f(r,n,u,s):u(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},vi=function(t,e){t.notified||(t.notified=!0,No((function(){for(var n,r=t.reactions;n=r.get();)hi(n,t);t.notified=!1,e&&!t.rejection&&gi(t)})))},mi=function(t,e,n){var r,o;li?((r=ci.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Zo&&(o=i["on"+t])?o(r):t===pi&&function(t,e){var n=i.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},gi=function(t){f(Jo,i,(function(){var e,n=t.facade,r=t.value;if(yi(t)&&(e=Io((function(){Lr?ui.emit("unhandledRejection",r,n):mi(pi,n,r)})),t.rejection=Lr||yi(t)?2:1,e.error))throw e.value}))},yi=function(t){return 1!==t.rejection&&!t.parent},bi=function(t){f(Jo,i,(function(){var e=t.facade;Lr?ui.emit("rejectionHandled",e):mi("rejectionhandled",e,t.value)}))},wi=function(t,e,n){return function(r){t(e,r,n)}},Ei=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vi(t,!0))},Si=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ai("Promise can't be resolved itself");var r=di(e);r?No((function(){var n={done:!1};try{f(r,e,wi(Si,n,t),wi(Ei,n,t))}catch(e){Ei(n,e,t)}})):(t.value=e,t.state=1,vi(t,!1))}catch(e){Ei({done:!1},e,t)}}};if(Qo&&(ii=(oi=function(t){!function(t,e){if(I(e,t))return t;throw Dr("Incorrect invocation")}(this,ii),K(t),f(Do,this);var e=ei(this);try{t(wi(Si,e),wi(Ei,e))}catch(t){Ei(e,t)}}).prototype,(Do=function(t){ni(this,{type:Yo,done:!1,notified:!1,parent:!1,reactions:new Uo,rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)ie(t,r,e[r],n);return t}(ii,{then:function(t,e){var n=ei(this),r=si(Fr(this,oi));return n.parent=!0,r.ok=!P(t)||t,r.fail=P(e)&&e,r.domain=Lr?ui.domain:void 0,0==n.state?n.reactions.add(r):No((function(){hi(r,n)})),r.promise}}),_o=function(){var t=new Do,e=ei(t);this.promise=t,this.resolve=wi(Si,e),this.reject=wi(Ei,e)},$o.f=si=function(t){return t===oi||undefined===t?new _o(t):fi(t)},P(Mo)&&ri!==Object.prototype)){qo=ri.then,ti||ie(ri,"then",(function(t,e){var n=this;return new oi((function(t,e){f(qo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete ri.constructor}catch(t){}kr&&kr(ri,ii)}ke({global:!0,wrap:!0,forced:Qo},{Promise:oi}),zo=Yo,Go=!1,(Fo=oi)&&!Go&&(Fo=Fo.prototype),Fo&&!ot(Fo,Mr)&&Ur(Fo,Mr,{configurable:!0,value:zo}),function(t){var e=N(t),n=kt.f;c&&e&&!e[Br]&&n(e,Br,{configurable:!0,get:function(){return this}})}(Yo);var ji={},Oi=dt("iterator"),xi=Array.prototype,Ti=dt("iterator"),Ci=function(t){if(null!=t)return X(t,Ti)||X(t,"@@iterator")||ji[We(t)]},Ri=i.TypeError,Pi=function(t,e,n){var r,o;Ct(t);try{if(!(r=X(t,"return"))){if("throw"===e)throw n;return n}r=f(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},Ai=i.TypeError,Li=function(t,e){this.stopped=t,this.result=e},Ni=Li.prototype,Ii=function(t,e,n){var r,o,i,a,c,u,s,l,p=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=Kr(e,p),g=function(t){return r&&Pi(r,"normal",t),new Li(!0,t)},y=function(t){return d?(Ct(t),v?m(t[0],t[1],g):m(t[0],t[1])):v?m(t,g):m(t)};if(h)r=t;else{if(!(o=Ci(t)))throw Ai(V(t)+" is not iterable");if(void 0!==(l=o)&&(ji.Array===l||xi[Oi]===l)){for(i=0,a=de(t);a>i;i++)if((c=y(t[i]))&&I(Ni,c))return c;return new Li(!1)}r=function(t,e){var n=arguments.length<2?Ci(t):e;if(K(n))return Ct(f(n,t));throw Ri(V(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=f(u,r)).done;){try{c=y(s.value)}catch(t){Pi(r,"throw",t)}if("object"==typeof c&&c&&I(Ni,c))return c}return new Li(!1)},ki=dt("iterator"),Ui=!1;try{var Mi=0,Bi={next:function(){return{done:!!Mi++}},return:function(){Ui=!0}};Bi[ki]=function(){return this},Array.from(Bi,(function(){throw 2}))}catch(t){}var Di=Ko.CONSTRUCTOR||!function(t,e){if(!e&&!Ui)return!1;var n=!1;try{var r={};r[ki]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Mo.all(t).then(void 0,(function(){}))}));ke({target:"Promise",stat:!0,forced:Di},{all:function(t){var e=this,n=$o.f(e),r=n.resolve,o=n.reject,i=Io((function(){var n=K(e.resolve),i=[],a=0,c=1;Ii(t,(function(t){var u=a++,s=!1;c++,f(n,e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var _i=Ko.CONSTRUCTOR,qi=Mo&&Mo.prototype;if(ke({target:"Promise",proto:!0,forced:_i,real:!0},{catch:function(t){return this.then(void 0,t)}}),P(Mo)){var Fi=N("Promise").prototype.catch;qi.catch!==Fi&&ie(qi,"catch",Fi,{unsafe:!0})}ke({target:"Promise",stat:!0,forced:Di},{race:function(t){var e=this,n=$o.f(e),r=n.reject,o=Io((function(){var o=K(e.resolve);Ii(t,(function(t){f(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ke({target:"Promise",stat:!0,forced:Ko.CONSTRUCTOR},{reject:function(t){var e=$o.f(this);return f(e.reject,void 0,t),e.promise}});var zi=Ko.CONSTRUCTOR;N("Promise"),ke({target:"Promise",stat:!0,forced:zi},{resolve:function(t){return function(t,e){if(Ct(t),A(e)&&e.constructor===t)return e;var n=$o.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Gi=Object.assign,Wi=Object.defineProperty,Vi=b([].concat),Hi=!Gi||a((function(){if(c&&1!==Gi({b:1},Gi(Wi({},"a",{enumerable:!0,get:function(){Wi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Gi({},t)[n]||He(Gi({},e)).join("")!=r}))?function(t,e){for(var n=nt(t),r=arguments.length,o=1,i=Se.f,a=d.f;r>o;)for(var u,s=x(arguments[o++]),l=i?Vi(He(s),i(s)):He(s),p=l.length,h=0;p>h;)u=l[h++],c&&!f(a,s,u)||(n[u]=s[u]);return n}:Gi;ke({target:"Object",stat:!0,forced:Object.assign!==Hi},{assign:Hi});var Ki=oe.EXISTS,Xi=kt.f,$i=Function.prototype,Ji=b($i.toString),Yi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qi=b(Yi.exec);c&&!Ki&&Xi($i,"name",{configurable:!0,get:function(){try{return Qi(Yi,Ji(this))[1]}catch(t){return""}}});var Zi={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=wt("span").classList,ea=ta&&ta.constructor&&ta.constructor.prototype,na=ea===Object.prototype?void 0:ea,ra=b([].push),oa=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,d,h=nt(u),v=x(h),m=Kr(s,f),g=de(v),y=0,b=l||un,w=e?b(u,g):n||a?b(u,0):void 0;g>y;y++)if((c||y in v)&&(d=m(p=v[y],y,h),t))if(e)w[y]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:ra(w,p)}else switch(t){case 4:return!1;case 7:ra(w,p)}return i?-1:r||o?o:w}},ia={forEach:oa(0),map:oa(1),filter:oa(2),some:oa(3),every:oa(4),find:oa(5),findIndex:oa(6),filterReject:oa(7)}.forEach,aa=Ue("forEach")?[].forEach:function(t){return ia(this,t,arguments.length>1?arguments[1]:void 0)},ca=function(t){if(t&&t.forEach!==aa)try{Ut(t,"forEach",aa)}catch(e){t.forEach=aa}};for(var ua in Zi)Zi[ua]&&ca(i[ua]&&i[ua].prototype);ca(na);var sa=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},fa=Object.prototype.toString;function la(t){return"[object Array]"===fa.call(t)}function pa(t){return void 0===t}function da(t){return null!==t&&"object"==typeof t}function ha(t){if("[object Object]"!==fa.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function va(t){return"[object Function]"===fa.call(t)}function ma(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),la(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var ga={isArray:la,isArrayBuffer:function(t){return"[object ArrayBuffer]"===fa.call(t)},isBuffer:function(t){return null!==t&&!pa(t)&&null!==t.constructor&&!pa(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:da,isPlainObject:ha,isUndefined:pa,isDate:function(t){return"[object Date]"===fa.call(t)},isFile:function(t){return"[object File]"===fa.call(t)},isBlob:function(t){return"[object Blob]"===fa.call(t)},isFunction:va,isStream:function(t){return da(t)&&va(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:ma,merge:function t(){var e={};function n(n,r){ha(e[r])&&ha(n)?e[r]=t(e[r],n):ha(n)?e[r]=t({},n):la(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)ma(arguments[r],n);return e},extend:function(t,e,n){return ma(e,(function(e,r){t[r]=n&&"function"==typeof e?sa(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function ya(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ba=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(ga.isURLSearchParams(e))r=e.toString();else{var o=[];ga.forEach(e,(function(t,e){null!=t&&(ga.isArray(t)?e+="[]":t=[t],ga.forEach(t,(function(t){ga.isDate(t)?t=t.toISOString():ga.isObject(t)&&(t=JSON.stringify(t)),o.push(ya(e)+"="+ya(t))})))})),r=o.join("&")}if(r){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function wa(){this.handlers=[]}wa.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},wa.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},wa.prototype.forEach=function(t){ga.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var Ea=wa,Sa=function(t,e,n){return ga.forEach(n,(function(n){t=n(t,e)})),t},ja=function(t){return!(!t||!t.__CANCEL__)},Oa=function(t,e){ga.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},xa=function(t,e,n,r,o){return function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.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}},t}(new Error(t),e,n,r,o)},Ta=ga.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),ga.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ga.isString(r)&&a.push("path="+r),ga.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Ca=["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"],Ra=ga.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=r(window.location.href),function(e){var n=ga.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},Pa=function(t){return new Promise((function(e,n){var r=t.data,o=t.headers;ga.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",c=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(a+":"+c)}var u,s,f=(u=t.baseURL,s=t.url,u&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(s)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,s):s);if(i.open(t.method.toUpperCase(),ba(f,t.params,t.paramsSerializer),!0),i.timeout=t.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(t){var e,n,r,o={};return t?(ga.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=ga.trim(t.substr(0,r)).toLowerCase(),n=ga.trim(t.substr(r+1)),e){if(o[e]&&Ca.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:t,request:i};!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(xa("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}(e,n,o),i=null}},i.onabort=function(){i&&(n(xa("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(xa("Network Error",t,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(xa(e,t,"ECONNABORTED",i)),i=null},ga.isStandardBrowserEnv()){var l=(t.withCredentials||Ra(f))&&t.xsrfCookieName?Ta.read(t.xsrfCookieName):void 0;l&&(o[t.xsrfHeaderName]=l)}if("setRequestHeader"in i&&ga.forEach(o,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete o[e]:i.setRequestHeader(e,t)})),ga.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),t.responseType)try{i.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&i.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){i&&(i.abort(),n(t),i=null)})),r||(r=null),i.send(r)}))},Aa={"Content-Type":"application/x-www-form-urlencoded"};function La(t,e){!ga.isUndefined(t)&&ga.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Na,Ia={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Na=Pa),Na),transformRequest:[function(t,e){return Oa(e,"Accept"),Oa(e,"Content-Type"),ga.isFormData(t)||ga.isArrayBuffer(t)||ga.isBuffer(t)||ga.isStream(t)||ga.isFile(t)||ga.isBlob(t)?t:ga.isArrayBufferView(t)?t.buffer:ga.isURLSearchParams(t)?(La(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ga.isObject(t)?(La(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Ia.headers={common:{Accept:"application/json, text/plain, */*"}},ga.forEach(["delete","get","head"],(function(t){Ia.headers[t]={}})),ga.forEach(["post","put","patch"],(function(t){Ia.headers[t]=ga.merge(Aa)}));var ka=Ia;function Ua(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var Ma=function(t){return Ua(t),t.headers=t.headers||{},t.data=Sa(t.data,t.headers,t.transformRequest),t.headers=ga.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ga.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||ka.adapter)(t).then((function(e){return Ua(t),e.data=Sa(e.data,e.headers,t.transformResponse),e}),(function(e){return ja(e)||(Ua(t),e&&e.response&&(e.response.data=Sa(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Ba=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return ga.isPlainObject(t)&&ga.isPlainObject(e)?ga.merge(t,e):ga.isPlainObject(e)?ga.merge({},e):ga.isArray(e)?e.slice():e}function u(r){ga.isUndefined(e[r])?ga.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(t[r],e[r])}ga.forEach(r,(function(t){ga.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),ga.forEach(o,u),ga.forEach(i,(function(r){ga.isUndefined(e[r])?ga.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(void 0,e[r])})),ga.forEach(a,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var s=r.concat(o).concat(i).concat(a),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===s.indexOf(t)}));return ga.forEach(f,u),n};function Da(t){this.defaults=t,this.interceptors={request:new Ea,response:new Ea}}Da.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=Ba(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[Ma,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},Da.prototype.getUri=function(t){return t=Ba(this.defaults,t),ba(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},ga.forEach(["delete","get","head","options"],(function(t){Da.prototype[t]=function(e,n){return this.request(Ba(n||{},{method:t,url:e,data:(n||{}).data}))}})),ga.forEach(["post","put","patch"],(function(t){Da.prototype[t]=function(e,n,r){return this.request(Ba(r||{},{method:t,url:e,data:n}))}}));var _a=Da;function qa(t){this.message=t}qa.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},qa.prototype.__CANCEL__=!0;var Fa=qa;function za(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new Fa(t),e(n.reason))}))}za.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},za.source=function(){var t;return{token:new za((function(e){t=e})),cancel:t}};var Ga=za;function Wa(t){var e=new _a(t),n=sa(_a.prototype.request,e);return ga.extend(n,_a.prototype,e),ga.extend(n,e),n}var Va=Wa(ka);Va.Axios=_a,Va.create=function(t){return Wa(Ba(Va.defaults,t))},Va.Cancel=Fa,Va.CancelToken=Ga,Va.isCancel=ja,Va.all=function(t){return Promise.all(t)},Va.spread=function(t){return function(e){return t.apply(null,e)}},Va.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var Ha=Va,Ka=Va;Ha.default=Ka;var Xa=Ha,$a="1.9.0",Ja="v4.0",Ya=["v2","v3","v4","v5","canary"],Qa="@tryghost/content-api",Za=function(t){var e=t.url,n=t.method,r=t.params,o=t.headers;return Xa[n](e,{params:r,paramsSerializer:function(t){return Object.keys(t).reduce((function(e,n){var r=encodeURIComponent([].concat(t[n]).join(","));return e.concat("".concat(n,"=").concat(r))}),[]).join("&")},headers:o})};return function t(e){var n,r=e.url,o=e.key,i=e.host,a=e.version,c=e.ghostPath,u=void 0===c?"ghost":c,s=e.makeRequest,f=void 0===s?Za:s;if(i&&(console.warn("".concat(Qa,": The 'host' parameter is deprecated, please use 'url' instead")),r||(r=i)),this instanceof t)return t({url:r,key:o,version:a,ghostPath:u,makeRequest:f});if(void 0===a)throw new Error("".concat(Qa," Config Missing: 'version' is required. E.g. ").concat(Ya.join(",")));if("boolean"==typeof a)!0===a&&(n=Ja),a=void 0;else{if(a&&!Ya.includes(a)&&!a.match(/^v\d+\.\d+/))throw new Error("".concat(Qa," Config Invalid: 'version' ").concat(a," is not supported"));"canary"===a?(console.warn("".concat(Qa,": The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead")),n=Ja):a.match(/^v\d+$/)?(console.warn("".concat(Qa,": The 'version' parameter has a deprecated format 'v{major}', please use 'v{major}.{minor}' format instead")),n="".concat(a,".0")):n=a}if(!r)throw new Error("".concat(Qa," Config Missing: 'url' is required. E.g. 'https://site.com'"));if(!/https?:\/\//.test(r))throw new Error("".concat(Qa," Config Invalid: 'url' ").concat(r," requires a protocol. E.g. 'https://site.com'"));if(r.endsWith("/"))throw new Error("".concat(Qa," Config Invalid: 'url' ").concat(r," must not have a trailing slash. E.g. 'https://site.com'"));if(u.endsWith("/")||u.startsWith("/"))throw new Error("".concat(Qa," Config Invalid: 'ghostPath' ").concat(u," must not have a leading or trailing slash. E.g. 'ghost'"));if(o&&!/[0-9a-f]{26}/.test(o))throw new Error("".concat(Qa," Config Invalid: 'key' ").concat(o," must have 26 hex characters"));var l=["posts","authors","tags","pages","settings"].reduce((function(t,e){return Object.assign(t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,{read:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||!t.id&&!t.slug)return Promise.reject(new Error("".concat(Qa," read requires an id or slug.")));var o=Object.assign({},t,n);return p(e,o,t.id||"slug/".concat(t.slug),r)},browse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return p(e,t,null,n)}}))}),{});return delete l.settings.read,l;function p(t,e,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!c&&!o)return Promise.reject(new Error("".concat(Qa," Config Missing: 'key' is required.")));delete e.id;var s=c?{Authorization:"GhostMembers ".concat(c)}:{};s["User-Agent"]="GhostContentSDK/".concat($a),n&&(s["Accept-Version"]=n),e=Object.assign({key:o},e);var l=a?"".concat(r,"/").concat(u,"/api/").concat(a,"/content/").concat(t,"/").concat(i?i+"/":""):"".concat(r,"/").concat(u,"/api/content/").concat(t,"/").concat(i?i+"/":"");return f({url:l,method:"get",params:e,headers:s}).then((function(e){return Array.isArray(e.data[t])?1!==e.data[t].length||e.data.meta?Object.assign(e.data[t],{meta:e.data.meta}):e.data[t][0]:e.data[t]})).catch((function(t){if(t.response&&t.response.data&&t.response.data.errors){var e=t.response.data.errors[0],n=new Error(e.message),r=Object.keys(e);throw n.name=e.type,r.forEach((function(t){n[t]=e[t]})),n.response=t.response,n.request=t.request,n.config=t.config,n}throw t}))}}}));
//# sourceMappingURL=content-api.min.js.map

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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