!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 r,n,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}},s=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,f=c?u.bind(u):function(){return u.apply(u,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,d={f:p},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=Function.prototype,g=m.bind,y=m.call,b=c&&g.bind(y,y),w=c?function(t){return t&&b(t)}:function(t){return t&&function(){return y.apply(t,arguments)}},E=w({}.toString),O=w("".slice),j=function(t){return O(E(t),8,-1)},S=i.Object,R=w("".split),x=a((function(){return!S("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?R(t,""):S(t)}:S,T=i.TypeError,A=function(t){if(null==t)throw T("Can't call method on "+t);return t},C=function(t){return x(A(t))},P=function(t){return"function"==typeof t},I=function(t){return"object"==typeof t?null!==t:P(t)},N=function(t){return P(t)?t:void 0},_=function(t,e){return arguments.length<2?N(i[t]):i[t]&&i[t][e]},L=w({}.isPrototypeOf),U=_("navigator","userAgent")||"",k=i.process,D=i.Deno,q=k&&k.versions||D&&D.version,B=q&&q.v8;B&&(n=(r=B.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&U&&(!(r=U.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=U.match(/Chrome\/(\d+)/))&&(n=+r[1]);var F=n,M=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),W=M&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,z=i.Object,V=W?function(t){return"symbol"==typeof t}:function(t){var e=_("Symbol");return P(e)&&L(e.prototype,z(t))},G=i.String,H=function(t){try{return G(t)}catch(t){return"Object"}},J=i.TypeError,K=function(t){if(P(t))return t;throw J(H(t)+" is not a function")},$=function(t,e){var r=t[e];return null==r?void 0:K(r)},X=i.TypeError,Q=Object.defineProperty,Y=function(t,e){try{Q(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},Z="__core-js_shared__",tt=i[Z]||Y(Z,{}),et=e((function(t){(t.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.7",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE",source:"https://github.com/zloirock/core-js"})})),rt=i.Object,nt=function(t){return rt(A(t))},ot=w({}.hasOwnProperty),it=Object.hasOwn||function(t,e){return ot(nt(t),e)},at=0,st=Math.random(),ct=w(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++at+st,36)},ft=et("wks"),lt=i.Symbol,ht=lt&<.for,pt=W?lt:lt&<.withoutSetter||ut,dt=function(t){if(!it(ft,t)||!M&&"string"!=typeof ft[t]){var e="Symbol."+t;M&&it(lt,t)?ft[t]=lt[t]:ft[t]=W&&ht?ht(e):pt(e)}return ft[t]},vt=i.TypeError,mt=dt("toPrimitive"),gt=function(t,e){if(!I(t)||V(t))return t;var r,n=$(t,mt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!I(r)||V(r))return r;throw vt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&P(r=t.toString)&&!I(n=f(r,t)))return n;if(P(r=t.valueOf)&&!I(n=f(r,t)))return n;if("string"!==e&&P(r=t.toString)&&!I(n=f(r,t)))return n;throw X("Can't convert object to primitive value")}(t,e)},yt=function(t){var e=gt(t,"string");return V(e)?e:e+""},bt=i.document,wt=I(bt)&&I(bt.createElement),Et=function(t){return wt?bt.createElement(t):{}},Ot=!s&&!a((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,St={f:s?jt:function(t,e){if(t=C(t),e=yt(e),Ot)try{return jt(t,e)}catch(t){}if(it(t,e))return v(!f(d.f,t,e),t[e])}},Rt=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xt=i.String,Tt=i.TypeError,At=function(t){if(I(t))return t;throw Tt(xt(t)+" is not an object")},Ct=i.TypeError,Pt=Object.defineProperty,It=Object.getOwnPropertyDescriptor,Nt="enumerable",_t="configurable",Lt="writable",Ut={f:s?Rt?function(t,e,r){if(At(t),e=yt(e),At(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Lt in r&&!r.writable){var n=It(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:_t in r?r.configurable:n.configurable,enumerable:Nt in r?r.enumerable:n.enumerable,writable:!1})}return Pt(t,e,r)}:Pt:function(t,e,r){if(At(t),e=yt(e),At(r),Ot)try{return Pt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ct("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},kt=s?function(t,e,r){return Ut.f(t,e,v(1,r))}:function(t,e,r){return t[e]=r,t},Dt=Function.prototype,qt=s&&Object.getOwnPropertyDescriptor,Bt=it(Dt,"name"),Ft={EXISTS:Bt,PROPER:Bt&&"something"===function(){}.name,CONFIGURABLE:Bt&&(!s||s&&qt(Dt,"name").configurable)},Mt=w(Function.toString);P(tt.inspectSource)||(tt.inspectSource=function(t){return Mt(t)});var Wt,zt,Vt,Gt=tt.inspectSource,Ht=i.WeakMap,Jt=P(Ht)&&/native code/.test(Gt(Ht)),Kt=et("keys"),$t=function(t){return Kt[t]||(Kt[t]=ut(t))},Xt={},Qt="Object already initialized",Yt=i.TypeError,Zt=i.WeakMap;if(Jt||tt.state){var te=tt.state||(tt.state=new Zt),ee=w(te.get),re=w(te.has),ne=w(te.set);Wt=function(t,e){if(re(te,t))throw new Yt(Qt);return e.facade=t,ne(te,t,e),e},zt=function(t){return ee(te,t)||{}},Vt=function(t){return re(te,t)}}else{var oe=$t("state");Xt[oe]=!0,Wt=function(t,e){if(it(t,oe))throw new Yt(Qt);return e.facade=t,kt(t,oe,e),e},zt=function(t){return it(t,oe)?t[oe]:{}},Vt=function(t){return it(t,oe)}}var ie={set:Wt,get:zt,has:Vt,enforce:function(t){return Vt(t)?zt(t):Wt(t,{})},getterFor:function(t){return function(e){var r;if(!I(e)||(r=zt(e)).type!==t)throw Yt("Incompatible receiver, "+t+" required");return r}}},ae=e((function(t){var e=Ft.CONFIGURABLE,r=ie.enforce,n=ie.get,o=Object.defineProperty,i=s&&!a((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),u=t.exports=function(t,n,a){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!it(t,"name")||e&&t.name!==n)&&o(t,"name",{value:n,configurable:!0}),i&&a&&it(a,"arity")&&t.length!==a.arity&&o(t,"length",{value:a.arity});try{a&&it(a,"constructor")&&a.constructor?s&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=r(t);return it(u,"source")||(u.source=c.join("string"==typeof n?n:"")),t};Function.prototype.toString=u((function(){return P(this)&&n(this).source||Gt(this)}),"toString")})),se=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;return P(r)&&ae(r,i,n),n.global?o?t[e]=r:Y(e,r):(n.unsafe?t[e]&&(o=!0):delete t[e],o?t[e]=r:kt(t,e,r)),t},ce=Math.ceil,ue=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?ue:ce)(e)},le=function(t){var e=+t;return e!=e||0===e?0:fe(e)},he=Math.max,pe=Math.min,de=Math.min,ve=function(t){return t>0?de(le(t),9007199254740991):0},me=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o,i=C(e),a=me(i),s=function(t,e){var r=le(t);return r<0?he(r+e,0):pe(r,e)}(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},be=ye.indexOf,we=w([].push),Ee=function(t,e){var r,n=C(t),o=0,i=[];for(r in n)!it(Xt,r)&&it(n,r)&&we(i,r);for(;e.length>o;)it(n,r=e[o++])&&(~be(i,r)||we(i,r));return i},Oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Oe.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return Ee(t,je)}},Re={f:Object.getOwnPropertySymbols},xe=w([].concat),Te=_("Reflect","ownKeys")||function(t){var e=Se.f(At(t)),r=Re.f;return r?xe(e,r(t)):e},Ae=function(t,e,r){for(var n=Te(e),o=Ut.f,i=St.f,a=0;aa;)Ut.f(t,r=o[a++],n[r]);return t},tr={f:Ze},er=_("document","documentElement"),rr=$t("IE_PROTO"),nr=function(){},or=function(t){return"